@reltio/graph 1.4.1006 → 1.4.1007

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bundle.js +1 -1
  2. package/package.json +3 -3
package/bundle.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see bundle.js.LICENSE.txt */
2
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("classnames"),require("mdm-module"),require("mdm-sdk"),require("moment"),require("prop-types"),require("ramda"),require("react"),require("react-dom"),require("react-redux"),require("ui-i18n"));else if("function"==typeof define&&define.amd)define(["classnames","mdm-module","mdm-sdk","moment","prop-types","ramda","react","react-dom","react-redux","ui-i18n"],t);else{var n="object"==typeof exports?t(require("classnames"),require("mdm-module"),require("mdm-sdk"),require("moment"),require("prop-types"),require("ramda"),require("react"),require("react-dom"),require("react-redux"),require("ui-i18n")):t(e.classnames,e["mdm-module"],e["mdm-sdk"],e.moment,e["prop-types"],e.ramda,e.react,e["react-dom"],e["react-redux"],e["ui-i18n"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(e,t,n,r,o,i,a,s,u,c){return(()=>{var l={1232:e=>{e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},1260:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},8527:e=>{function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t},4859:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}}},1557:e=>{e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},1359:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},5182:(e,t,n)=>{var r=n(1232),o=n(1557),i=n(1359);e.exports=function(e){return r(e)||o(e)||i()}},7685:(e,t,n)=>{"use strict";var r=n(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.default=i},7291:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}),"Done");t.Z=i},2726:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.Z=i},3054:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.Z=i},175:(e,t,n)=>{"use strict";var r=n(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=i.default.memo(i.default.forwardRef((function(t,n){return i.default.createElement(a.default,(0,o.default)({ref:n},t),e)})));return n.muiName=a.default.muiName,n};var o=r(n(8527)),i=r(n(8156)),a=r(n(2298))},8884:e=>{e.exports=function(e,t){var n=t.length;if(0!==n){var r=e.length;e.length+=n;for(var o=0;o<n;o++)e[r+o]=t[o]}}},8994:e=>{e.exports=function(){for(var e=arguments.length,t=[],n=0;n<e;n++)t[n]=arguments[n];if(0!==(t=t.filter((function(e){return null!=e}))).length)return 1===t.length?t[0]:t.reduce((function(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}))}},2196:(e,t,n)=>{"use strict";var r=n(4859);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=r(n(7218));e.exports=t.default},7218:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},4812:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"==typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},4596:(e,t,n)=>{"use strict";var r=n(4859);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var o,i,a,s,u,c,l,d,f,h,p,g=r(n(6892)),m="transform";if(t.transform=m,t.animationEnd=a,t.transitionEnd=i,t.transitionDelay=l,t.transitionTiming=c,t.transitionDuration=u,t.transitionProperty=s,t.animationDelay=p,t.animationTiming=h,t.animationDuration=f,t.animationName=d,g.default){var v=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},o=Object.keys(r),i="",a=0;a<o.length;a++){var s=o[a];if(s+"TransitionProperty"in n){i="-"+s.toLowerCase(),e=r[s]("TransitionEnd"),t=r[s]("AnimationEnd");break}}return!e&&"transitionProperty"in n&&(e="transitionend"),!t&&"animationName"in n&&(t="animationend"),n=null,{animationEnd:t,transitionEnd:e,prefix:i}}();o=v.prefix,t.transitionEnd=i=v.transitionEnd,t.animationEnd=a=v.animationEnd,t.transform=m=o+"-"+m,t.transitionProperty=s=o+"-transition-property",t.transitionDuration=u=o+"-transition-duration",t.transitionDelay=l=o+"-transition-delay",t.transitionTiming=c=o+"-transition-timing-function",t.animationName=d=o+"-animation-name",t.animationDuration=f=o+"-animation-duration",t.animationTiming=h=o+"-animation-delay",t.animationDelay=p=o+"-animation-timing-function"}var y={transform:m,end:i,property:s,timing:c,delay:l,duration:u};t.default=y},6892:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default},6463:(e,t,n)=>{"use strict";var r=n(4859);t.__esModule=!0,t.default=void 0;var o,i=r(n(6892)),a="clearTimeout",s=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-c)),r=setTimeout(e,n);return c=t,r},u=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};i.default&&["","webkit","moz","o","ms"].some((function(e){var t=u(e,"request");if(t in window)return a=u(e,"cancel"),s=function(e){return window[t](e)}}));var c=(new Date).getTime();(o=function(e){return s(e)}).cancel=function(e){window[a]&&"function"==typeof window[a]&&window[a](e)};var l=o;t.default=l,e.exports=t.default},2699:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}g(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var o,i,a,c;if(s(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=u(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function f(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):p(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=p(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return f(this,e,!0)},i.prototype.rawListeners=function(e){return f(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},9869:e=>{e.exports={linLogMode:!1,outboundAttractionDistribution:!1,adjustSizes:!1,edgeWeightInfluence:1,scalingRatio:1,strongGravityMode:!1,gravity:1,slowDown:1,barnesHutOptimize:!1,barnesHutTheta:.5}},6061:(e,t)=>{t.assign=function(e){e=e||{};var t,n,r,o=Array.prototype.slice.call(arguments).slice(1);for(t=0,r=o.length;t<r;t++)if(o[t])for(n in o[t])e[n]=o[t][n];return e},t.validateSettings=function(e){return"linLogMode"in e&&"boolean"!=typeof e.linLogMode?{message:"the `linLogMode` setting should be a boolean."}:"outboundAttractionDistribution"in e&&"boolean"!=typeof e.outboundAttractionDistribution?{message:"the `outboundAttractionDistribution` setting should be a boolean."}:"adjustSizes"in e&&"boolean"!=typeof e.adjustSizes?{message:"the `adjustSizes` setting should be a boolean."}:"edgeWeightInfluence"in e&&"number"!=typeof e.edgeWeightInfluence?{message:"the `edgeWeightInfluence` setting should be a number."}:!("scalingRatio"in e)||"number"==typeof e.scalingRatio&&e.scalingRatio>=0?"strongGravityMode"in e&&"boolean"!=typeof e.strongGravityMode?{message:"the `strongGravityMode` setting should be a boolean."}:!("gravity"in e)||"number"==typeof e.gravity&&e.gravity>=0?"slowDown"in e&&!("number"==typeof e.slowDown||e.slowDown>=0)?{message:"the `slowDown` setting should be a number >= 0."}:"barnesHutOptimize"in e&&"boolean"!=typeof e.barnesHutOptimize?{message:"the `barnesHutOptimize` setting should be a boolean."}:!("barnesHutTheta"in e)||"number"==typeof e.barnesHutTheta&&e.barnesHutTheta>=0?null:{message:"the `barnesHutTheta` setting should be a number >= 0."}:{message:"the `gravity` setting should be a number >= 0."}:{message:"the `scalingRatio` setting should be a number >= 0."}},t.graphToByteArrays=function(e,t){var n,r=e.order,o=e.size,i={},a=new Float32Array(10*r),s=new Float32Array(3*o);return n=0,e.forEachNode((function(t,r){i[t]=n,a[n]=r.x,a[n+1]=r.y,a[n+2]=0,a[n+3]=0,a[n+4]=0,a[n+5]=0,a[n+6]=1+e.degree(t),a[n+7]=1,a[n+8]=r.size||1,a[n+9]=r.fixed?1:0,n+=10})),n=0,e.forEachEdge((function(e,r,o,a){s[n]=i[o],s[n+1]=i[a],s[n+2]=function(e){if(!t)return 1;var n=e[t];return("number"!=typeof n||isNaN(n))&&(n=1),n}(r),n+=3})),{nodes:a,edges:s}},t.assignLayoutChanges=function(e,t,n){var r=0;e.updateEachNodeAttributes((function(e,o){return o.x=t[r],o.y=t[r+1],r+=10,n?n(e,o):o}))},t.readGraphPositions=function(e,t){var n=0;e.forEachNode((function(e,r){t[n]=r.x,t[n+1]=r.y,n+=10}))},t.collectLayoutChanges=function(e,t,n){for(var r=e.nodes(),o={},i=0,a=0,s=t.length;i<s;i+=10){if(n){var u=Object.assign({},e.getNodeAttributes(r[a]));u.x=t[i],u.y=t[i+1],u=n(r[a],u),o[r[a]]={x:u.x,y:u.y}}else o[r[a]]={x:t[i],y:t[i+1]};a++}return o},t.createWorker=function(e){var t=window.URL||window.webkitURL,n=e.toString(),r=t.createObjectURL(new Blob(["("+n+").call(this);"],{type:"text/javascript"})),o=new Worker(r);return t.revokeObjectURL(r),o}},3660:(e,t,n)=>{var r=n(1880),o=n(8725),i=n(6061),a=n(9869);function s(e,t,n){if(!r(t))throw new Error("graphology-layout-forceatlas2: the given graph is not a valid graphology instance.");"number"==typeof n&&(n={iterations:n});var s=n.iterations;if("number"!=typeof s)throw new Error("graphology-layout-forceatlas2: invalid number of iterations.");if(s<=0)throw new Error("graphology-layout-forceatlas2: you should provide a positive number of iterations.");var u=n.attributes||{},c=n.weighted?u.weight||"weight":null,l="function"==typeof n.outputReducer?n.outputReducer:null,d=i.assign({},a,n.settings),f=i.validateSettings(d);if(f)throw new Error("graphology-layout-forceatlas2: "+f.message);var h,p=i.graphToByteArrays(t,c);for(h=0;h<s;h++)o(d,p.nodes,p.edges);if(!e)return i.collectLayoutChanges(t,p.nodes);i.assignLayoutChanges(t,p.nodes,l)}var u=s.bind(null,!1);u.assign=s.bind(null,!0),u.inferSettings=function(e){var t="number"==typeof e?e:e.order;return{barnesHutOptimize:t>2e3,strongGravityMode:!0,gravity:.05,scalingRatio:10,slowDown:1+Math.log(t)}},e.exports=u},8725:e=>{var t=10;e.exports=function(e,n,r){var o,i,a,s,u,c,l,d,f,h,p,g,m,v,y,b,w,E,x,_,C,S,A,k=n.length,O=r.length,D=e.adjustSizes,L=e.barnesHutTheta*e.barnesHutTheta,T=[];for(a=0;a<k;a+=t)n[a+4]=n[a+2],n[a+5]=n[a+3],n[a+2]=0,n[a+3]=0;if(e.outboundAttractionDistribution){for(p=0,a=0;a<k;a+=t)p+=n[a+6];p/=k/t}if(e.barnesHutOptimize){var M,P,F,N=1/0,j=-1/0,R=1/0,I=-1/0;for(a=0;a<k;a+=t)N=Math.min(N,n[a+0]),j=Math.max(j,n[a+0]),R=Math.min(R,n[a+1]),I=Math.max(I,n[a+1]);var B=j-N,G=I-R;for(B>G?I=(R-=(B-G)/2)+B:j=(N-=(G-B)/2)+G,T[0]=-1,T[1]=(N+j)/2,T[2]=(R+I)/2,T[3]=Math.max(j-N,I-R),T[4]=-1,T[5]=-1,T[6]=0,T[7]=0,T[8]=0,o=1,a=0;a<k;a+=t)for(i=0,F=3;;){if(!(T[i+5]>=0)){if(T[i+0]<0){T[i+0]=a;break}if(T[i+5]=9*o,d=T[i+3]/2,T[(f=T[i+5])+0]=-1,T[f+1]=T[i+1]-d,T[f+2]=T[i+2]-d,T[f+3]=d,T[f+4]=f+9,T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,T[(f+=9)+0]=-1,T[f+1]=T[i+1]-d,T[f+2]=T[i+2]+d,T[f+3]=d,T[f+4]=f+9,T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,T[(f+=9)+0]=-1,T[f+1]=T[i+1]+d,T[f+2]=T[i+2]-d,T[f+3]=d,T[f+4]=f+9,T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,T[(f+=9)+0]=-1,T[f+1]=T[i+1]+d,T[f+2]=T[i+2]+d,T[f+3]=d,T[f+4]=T[i+4],T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,o+=4,M=n[T[i+0]+0]<T[i+1]?n[T[i+0]+1]<T[i+2]?T[i+5]:T[i+5]+9:n[T[i+0]+1]<T[i+2]?T[i+5]+18:T[i+5]+27,T[i+6]=n[T[i+0]+6],T[i+7]=n[T[i+0]+0],T[i+8]=n[T[i+0]+1],T[M+0]=T[i+0],T[i+0]=-1,M===(P=n[a+0]<T[i+1]?n[a+1]<T[i+2]?T[i+5]:T[i+5]+9:n[a+1]<T[i+2]?T[i+5]+18:T[i+5]+27)){if(F--){i=M;continue}F=3;break}T[P+0]=a;break}M=n[a+0]<T[i+1]?n[a+1]<T[i+2]?T[i+5]:T[i+5]+9:n[a+1]<T[i+2]?T[i+5]+18:T[i+5]+27,T[i+7]=(T[i+7]*T[i+6]+n[a+0]*n[a+6])/(T[i+6]+n[a+6]),T[i+8]=(T[i+8]*T[i+6]+n[a+1]*n[a+6])/(T[i+6]+n[a+6]),T[i+6]+=n[a+6],i=M}}if(e.barnesHutOptimize){for(g=e.scalingRatio,a=0;a<k;a+=t)for(i=0;;)if(T[i+5]>=0){if(b=Math.pow(n[a+0]-T[i+7],2)+Math.pow(n[a+1]-T[i+8],2),4*(h=T[i+3])*h/b<L){if(m=n[a+0]-T[i+7],v=n[a+1]-T[i+8],!0===D?b>0?(w=g*n[a+6]*T[i+6]/b,n[a+2]+=m*w,n[a+3]+=v*w):b<0&&(w=-g*n[a+6]*T[i+6]/Math.sqrt(b),n[a+2]+=m*w,n[a+3]+=v*w):b>0&&(w=g*n[a+6]*T[i+6]/b,n[a+2]+=m*w,n[a+3]+=v*w),(i=T[i+4])<0)break;continue}i=T[i+5]}else if((c=T[i+0])>=0&&c!==a&&(b=(m=n[a+0]-n[c+0])*m+(v=n[a+1]-n[c+1])*v,!0===D?b>0?(w=g*n[a+6]*n[c+6]/b,n[a+2]+=m*w,n[a+3]+=v*w):b<0&&(w=-g*n[a+6]*n[c+6]/Math.sqrt(b),n[a+2]+=m*w,n[a+3]+=v*w):b>0&&(w=g*n[a+6]*n[c+6]/b,n[a+2]+=m*w,n[a+3]+=v*w)),(i=T[i+4])<0)break}else for(g=e.scalingRatio,s=0;s<k;s+=t)for(u=0;u<s;u+=t)m=n[s+0]-n[u+0],v=n[s+1]-n[u+1],!0===D?(b=Math.sqrt(m*m+v*v)-n[s+8]-n[u+8])>0?(w=g*n[s+6]*n[u+6]/b/b,n[s+2]+=m*w,n[s+3]+=v*w,n[u+2]+=m*w,n[u+3]+=v*w):b<0&&(w=100*g*n[s+6]*n[u+6],n[s+2]+=m*w,n[s+3]+=v*w,n[u+2]-=m*w,n[u+3]-=v*w):(b=Math.sqrt(m*m+v*v))>0&&(w=g*n[s+6]*n[u+6]/b/b,n[s+2]+=m*w,n[s+3]+=v*w,n[u+2]-=m*w,n[u+3]-=v*w);for(f=e.gravity/e.scalingRatio,g=e.scalingRatio,a=0;a<k;a+=t)w=0,m=n[a+0],v=n[a+1],b=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)),e.strongGravityMode?b>0&&(w=g*n[a+6]*f):b>0&&(w=g*n[a+6]*f/b),n[a+2]-=m*w,n[a+3]-=v*w;for(g=1*(e.outboundAttractionDistribution?p:1),l=0;l<O;l+=3)s=r[l+0],u=r[l+1],d=r[l+2],y=Math.pow(d,e.edgeWeightInfluence),m=n[s+0]-n[u+0],v=n[s+1]-n[u+1],!0===D?(b=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)-n[s+8]-n[u+8]),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-g*y*Math.log(1+b)/b/n[s+6]):b>0&&(w=-g*y*Math.log(1+b)/b):e.outboundAttractionDistribution?b>0&&(w=-g*y/n[s+6]):b>0&&(w=-g*y)):(b=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-g*y*Math.log(1+b)/b/n[s+6]):b>0&&(w=-g*y*Math.log(1+b)/b):e.outboundAttractionDistribution?(b=1,w=-g*y/n[s+6]):(b=1,w=-g*y)),b>0&&(n[s+2]+=m*w,n[s+3]+=v*w,n[u+2]-=m*w,n[u+3]-=v*w);if(!0===D)for(a=0;a<k;a+=t)1!==n[a+9]&&((E=Math.sqrt(Math.pow(n[a+2],2)+Math.pow(n[a+3],2)))>10&&(n[a+2]=10*n[a+2]/E,n[a+3]=10*n[a+3]/E),x=n[a+6]*Math.sqrt((n[a+4]-n[a+2])*(n[a+4]-n[a+2])+(n[a+5]-n[a+3])*(n[a+5]-n[a+3])),_=Math.sqrt((n[a+4]+n[a+2])*(n[a+4]+n[a+2])+(n[a+5]+n[a+3])*(n[a+5]+n[a+3]))/2,C=.1*Math.log(1+_)/(1+Math.sqrt(x)),S=n[a+0]+n[a+2]*(C/e.slowDown),n[a+0]=S,A=n[a+1]+n[a+3]*(C/e.slowDown),n[a+1]=A);else for(a=0;a<k;a+=t)1!==n[a+9]&&(x=n[a+6]*Math.sqrt((n[a+4]-n[a+2])*(n[a+4]-n[a+2])+(n[a+5]-n[a+3])*(n[a+5]-n[a+3])),_=Math.sqrt((n[a+4]+n[a+2])*(n[a+4]+n[a+2])+(n[a+5]+n[a+3])*(n[a+5]+n[a+3]))/2,C=n[a+7]*Math.log(1+_)/(1+Math.sqrt(x)),n[a+7]=Math.min(1,Math.sqrt(C*(Math.pow(n[a+2],2)+Math.pow(n[a+3],2))/(1+Math.sqrt(x)))),S=n[a+0]+n[a+2]*(C/e.slowDown),n[a+0]=S,A=n[a+1]+n[a+3]*(C/e.slowDown),n[a+1]=A);return{}}},1026:e=>{e.exports=function(){var e,t,n,r={};n=10,r.exports=function(e,t,r){var o,i,a,s,u,c,l,d,f,h,p,g,m,v,y,b,w,E,x,_,C,S,A,k=t.length,O=r.length,D=e.adjustSizes,L=e.barnesHutTheta*e.barnesHutTheta,T=[];for(a=0;a<k;a+=n)t[a+4]=t[a+2],t[a+5]=t[a+3],t[a+2]=0,t[a+3]=0;if(e.outboundAttractionDistribution){for(p=0,a=0;a<k;a+=n)p+=t[a+6];p/=k/n}if(e.barnesHutOptimize){var M,P,F,N=1/0,j=-1/0,R=1/0,I=-1/0;for(a=0;a<k;a+=n)N=Math.min(N,t[a+0]),j=Math.max(j,t[a+0]),R=Math.min(R,t[a+1]),I=Math.max(I,t[a+1]);var B=j-N,G=I-R;for(B>G?I=(R-=(B-G)/2)+B:j=(N-=(G-B)/2)+G,T[0]=-1,T[1]=(N+j)/2,T[2]=(R+I)/2,T[3]=Math.max(j-N,I-R),T[4]=-1,T[5]=-1,T[6]=0,T[7]=0,T[8]=0,o=1,a=0;a<k;a+=n)for(i=0,F=3;;){if(!(T[i+5]>=0)){if(T[i+0]<0){T[i+0]=a;break}if(T[i+5]=9*o,d=T[i+3]/2,T[(f=T[i+5])+0]=-1,T[f+1]=T[i+1]-d,T[f+2]=T[i+2]-d,T[f+3]=d,T[f+4]=f+9,T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,T[(f+=9)+0]=-1,T[f+1]=T[i+1]-d,T[f+2]=T[i+2]+d,T[f+3]=d,T[f+4]=f+9,T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,T[(f+=9)+0]=-1,T[f+1]=T[i+1]+d,T[f+2]=T[i+2]-d,T[f+3]=d,T[f+4]=f+9,T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,T[(f+=9)+0]=-1,T[f+1]=T[i+1]+d,T[f+2]=T[i+2]+d,T[f+3]=d,T[f+4]=T[i+4],T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,o+=4,M=t[T[i+0]+0]<T[i+1]?t[T[i+0]+1]<T[i+2]?T[i+5]:T[i+5]+9:t[T[i+0]+1]<T[i+2]?T[i+5]+18:T[i+5]+27,T[i+6]=t[T[i+0]+6],T[i+7]=t[T[i+0]+0],T[i+8]=t[T[i+0]+1],T[M+0]=T[i+0],T[i+0]=-1,M===(P=t[a+0]<T[i+1]?t[a+1]<T[i+2]?T[i+5]:T[i+5]+9:t[a+1]<T[i+2]?T[i+5]+18:T[i+5]+27)){if(F--){i=M;continue}F=3;break}T[P+0]=a;break}M=t[a+0]<T[i+1]?t[a+1]<T[i+2]?T[i+5]:T[i+5]+9:t[a+1]<T[i+2]?T[i+5]+18:T[i+5]+27,T[i+7]=(T[i+7]*T[i+6]+t[a+0]*t[a+6])/(T[i+6]+t[a+6]),T[i+8]=(T[i+8]*T[i+6]+t[a+1]*t[a+6])/(T[i+6]+t[a+6]),T[i+6]+=t[a+6],i=M}}if(e.barnesHutOptimize){for(g=e.scalingRatio,a=0;a<k;a+=n)for(i=0;;)if(T[i+5]>=0){if(b=Math.pow(t[a+0]-T[i+7],2)+Math.pow(t[a+1]-T[i+8],2),4*(h=T[i+3])*h/b<L){if(m=t[a+0]-T[i+7],v=t[a+1]-T[i+8],!0===D?b>0?(w=g*t[a+6]*T[i+6]/b,t[a+2]+=m*w,t[a+3]+=v*w):b<0&&(w=-g*t[a+6]*T[i+6]/Math.sqrt(b),t[a+2]+=m*w,t[a+3]+=v*w):b>0&&(w=g*t[a+6]*T[i+6]/b,t[a+2]+=m*w,t[a+3]+=v*w),(i=T[i+4])<0)break;continue}i=T[i+5]}else if((c=T[i+0])>=0&&c!==a&&(b=(m=t[a+0]-t[c+0])*m+(v=t[a+1]-t[c+1])*v,!0===D?b>0?(w=g*t[a+6]*t[c+6]/b,t[a+2]+=m*w,t[a+3]+=v*w):b<0&&(w=-g*t[a+6]*t[c+6]/Math.sqrt(b),t[a+2]+=m*w,t[a+3]+=v*w):b>0&&(w=g*t[a+6]*t[c+6]/b,t[a+2]+=m*w,t[a+3]+=v*w)),(i=T[i+4])<0)break}else for(g=e.scalingRatio,s=0;s<k;s+=n)for(u=0;u<s;u+=n)m=t[s+0]-t[u+0],v=t[s+1]-t[u+1],!0===D?(b=Math.sqrt(m*m+v*v)-t[s+8]-t[u+8])>0?(w=g*t[s+6]*t[u+6]/b/b,t[s+2]+=m*w,t[s+3]+=v*w,t[u+2]+=m*w,t[u+3]+=v*w):b<0&&(w=100*g*t[s+6]*t[u+6],t[s+2]+=m*w,t[s+3]+=v*w,t[u+2]-=m*w,t[u+3]-=v*w):(b=Math.sqrt(m*m+v*v))>0&&(w=g*t[s+6]*t[u+6]/b/b,t[s+2]+=m*w,t[s+3]+=v*w,t[u+2]-=m*w,t[u+3]-=v*w);for(f=e.gravity/e.scalingRatio,g=e.scalingRatio,a=0;a<k;a+=n)w=0,m=t[a+0],v=t[a+1],b=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)),e.strongGravityMode?b>0&&(w=g*t[a+6]*f):b>0&&(w=g*t[a+6]*f/b),t[a+2]-=m*w,t[a+3]-=v*w;for(g=1*(e.outboundAttractionDistribution?p:1),l=0;l<O;l+=3)s=r[l+0],u=r[l+1],d=r[l+2],y=Math.pow(d,e.edgeWeightInfluence),m=t[s+0]-t[u+0],v=t[s+1]-t[u+1],!0===D?(b=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)-t[s+8]-t[u+8]),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-g*y*Math.log(1+b)/b/t[s+6]):b>0&&(w=-g*y*Math.log(1+b)/b):e.outboundAttractionDistribution?b>0&&(w=-g*y/t[s+6]):b>0&&(w=-g*y)):(b=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-g*y*Math.log(1+b)/b/t[s+6]):b>0&&(w=-g*y*Math.log(1+b)/b):e.outboundAttractionDistribution?(b=1,w=-g*y/t[s+6]):(b=1,w=-g*y)),b>0&&(t[s+2]+=m*w,t[s+3]+=v*w,t[u+2]-=m*w,t[u+3]-=v*w);if(!0===D)for(a=0;a<k;a+=n)1!==t[a+9]&&((E=Math.sqrt(Math.pow(t[a+2],2)+Math.pow(t[a+3],2)))>10&&(t[a+2]=10*t[a+2]/E,t[a+3]=10*t[a+3]/E),x=t[a+6]*Math.sqrt((t[a+4]-t[a+2])*(t[a+4]-t[a+2])+(t[a+5]-t[a+3])*(t[a+5]-t[a+3])),_=Math.sqrt((t[a+4]+t[a+2])*(t[a+4]+t[a+2])+(t[a+5]+t[a+3])*(t[a+5]+t[a+3]))/2,C=.1*Math.log(1+_)/(1+Math.sqrt(x)),S=t[a+0]+t[a+2]*(C/e.slowDown),t[a+0]=S,A=t[a+1]+t[a+3]*(C/e.slowDown),t[a+1]=A);else for(a=0;a<k;a+=n)1!==t[a+9]&&(x=t[a+6]*Math.sqrt((t[a+4]-t[a+2])*(t[a+4]-t[a+2])+(t[a+5]-t[a+3])*(t[a+5]-t[a+3])),_=Math.sqrt((t[a+4]+t[a+2])*(t[a+4]+t[a+2])+(t[a+5]+t[a+3])*(t[a+5]+t[a+3]))/2,C=t[a+7]*Math.log(1+_)/(1+Math.sqrt(x)),t[a+7]=Math.min(1,Math.sqrt(C*(Math.pow(t[a+2],2)+Math.pow(t[a+3],2))/(1+Math.sqrt(x)))),S=t[a+0]+t[a+2]*(C/e.slowDown),t[a+0]=S,A=t[a+1]+t[a+3]*(C/e.slowDown),t[a+1]=A);return{}};var o=r.exports;self.addEventListener("message",(function(n){var r=n.data;e=new Float32Array(r.nodes),r.edges&&(t=new Float32Array(r.edges)),o(r.settings,e,t),self.postMessage({nodes:e.buffer},[e.buffer])}))}},8301:(e,t,n)=>{var r=n(1026),o=n(1880),i=n(6061),a=n(9869);function s(e,t){if(t=t||{},!o(e))throw new Error("graphology-layout-forceatlas2/worker: the given graph is not a valid graphology instance.");var n=t.attributes||{},r=t.weighted?n.weight||"weight":null,s=i.assign({},a,t.settings),u=i.validateSettings(s);if(u)throw new Error("graphology-layout-forceatlas2/worker: "+u.message);this.worker=null,this.graph=e,this.settings=s,this.weightAttribute=r,this.matrices=null,this.running=!1,this.killed=!1,this.outputReducer="function"==typeof t.outputReducer?t.outputReducer:null,this.handleMessage=this.handleMessage.bind(this);var c=void 0,l=this;this.handleGraphUpdate=function(){l.worker&&l.worker.terminate(),c&&clearTimeout(c),c=setTimeout((function(){c=void 0,l.spawnWorker()}),0)},e.on("nodeAdded",this.handleGraphUpdate),e.on("edgeAdded",this.handleGraphUpdate),e.on("nodeDropped",this.handleGraphUpdate),e.on("edgeDropped",this.handleGraphUpdate),this.spawnWorker()}s.prototype.isRunning=function(){return this.running},s.prototype.spawnWorker=function(){this.worker&&this.worker.terminate(),this.worker=i.createWorker(r),this.worker.addEventListener("message",this.handleMessage),this.running&&(this.running=!1,this.start())},s.prototype.handleMessage=function(e){if(this.running){var t=new Float32Array(e.data.nodes);i.assignLayoutChanges(this.graph,t,this.outputReducer),this.outputReducer&&i.readGraphPositions(this.graph,t),this.matrices.nodes=t,this.askForIterations()}},s.prototype.askForIterations=function(e){var t=this.matrices,n={settings:this.settings,nodes:t.nodes.buffer},r=[t.nodes.buffer];return e&&(n.edges=t.edges.buffer,r.push(t.edges.buffer)),this.worker.postMessage(n,r),this},s.prototype.start=function(){if(this.killed)throw new Error("graphology-layout-forceatlas2/worker.start: layout was killed.");return this.running||(this.matrices=i.graphToByteArrays(this.graph,this.weightAttribute),this.running=!0,this.askForIterations(!0)),this},s.prototype.stop=function(){return this.running=!1,this},s.prototype.kill=function(){if(this.killed)return this;this.running=!1,this.killed=!0,this.matrices=null,this.worker.terminate(),this.graph.removeListener("nodeAdded",this.handleGraphUpdate),this.graph.removeListener("edgeAdded",this.handleGraphUpdate),this.graph.removeListener("nodeDropped",this.handleGraphUpdate),this.graph.removeListener("edgeDropped",this.handleGraphUpdate)},e.exports=s},8833:(e,t,n)=>{var r=n(6586),o=n(1880),i={dimensions:["x","y"],center:.5,scale:1};function a(e,t,n){if(!o(t))throw new Error("graphology-layout/random: the given graph is not a valid graphology instance.");var a=(n=r(n,i)).dimensions;if(!Array.isArray(a)||2!==a.length)throw new Error("graphology-layout/random: given dimensions are invalid.");var s=n.center,u=n.scale,c=2*Math.PI,l=(s-.5)*u,d=t.order,f=a[0],h=a[1];function p(e,t){return t[f]=u*Math.cos(e*c/d)+l,t[h]=u*Math.sin(e*c/d)+l,t}var g=0;if(!e){var m={};return t.forEachNode((function(e){m[e]=p(g++,{})})),m}t.updateEachNodeAttributes((function(e,t){return p(g++,t),t}),{attributes:a})}var s=a.bind(null,!1);s.assign=a.bind(null,!0),e.exports=s},6586:e=>{e.exports=function e(t,n){t=t||{};var r,o={};for(var i in n){var a=t[i],s=n[i];!(r=s)||"object"!=typeof r||"function"==typeof r||Array.isArray(r)||r instanceof Set||r instanceof Map||r instanceof RegExp||r instanceof Date?o[i]=void 0===a?s:a:o[i]=e(a,s)}return o}},1880:e=>{e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.addUndirectedEdgeWithKey&&"function"==typeof e.dropNode&&"boolean"==typeof e.multi}},8996:function(e){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function i(e,t,n){return i=o()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},i.apply(null,arguments)}function a(e){var t="function"==typeof Map?new Map:void 0;return a=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return i(e,arguments,n(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r(a,e)},a(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++)if(arguments[t])for(var r in arguments[t])e[r]=arguments[t][r];return e};function c(e,t,n,r){var o=e._nodes.get(t),i=null;return o?i="mixed"===r?o.out&&o.out[n]||o.undirected&&o.undirected[n]:"directed"===r?o.out&&o.out[n]:o.undirected&&o.undirected[n]:i}function l(t){return null!==t&&"object"===e(t)&&"function"==typeof t.addUndirectedEdgeWithKey&&"function"==typeof t.dropNode}function d(t){return"object"===e(t)&&null!==t&&t.constructor===Object}function f(e){var t;for(t in e)return!1;return!0}function h(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!1,writable:!0,value:n})}function p(e,t,n){var r={enumerable:!0,configurable:!0};"function"==typeof n?r.get=n:(r.value=n,r.writable=!1),Object.defineProperty(e,t,r)}function g(e){return!(!d(e)||e.attributes&&!Array.isArray(e.attributes))}"function"==typeof Object.assign&&(u=Object.assign);var m,v={exports:{}},y="object"==typeof Reflect?Reflect:null,b=y&&"function"==typeof y.apply?y.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};m=y&&"function"==typeof y.ownKeys?y.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var w=Number.isNaN||function(e){return e!=e};function E(){E.init.call(this)}v.exports=E,v.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}T(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&T(e,"error",t,{once:!0})}(e,o)}))},E.EventEmitter=E,E.prototype._events=void 0,E.prototype._eventsCount=0,E.prototype._maxListeners=void 0;var x=10;function _(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function C(e){return void 0===e._maxListeners?E.defaultMaxListeners:e._maxListeners}function S(e,t,n,r){var o,i,a,s;if(_(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=C(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function A(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function k(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=A.bind(r);return o.listener=n,r.wrapFn=o,o}function O(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):L(o,o.length)}function D(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function L(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function T(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}function M(e){if("function"!=typeof e)throw new Error("obliterator/iterator: expecting a function!");this.next=e}Object.defineProperty(E,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(e){if("number"!=typeof e||e<0||w(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");x=e}}),E.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},E.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||w(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},E.prototype.getMaxListeners=function(){return C(this)},E.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)b(s,this,t);else{var u=s.length,c=L(s,u);for(n=0;n<u;++n)b(c[n],this,t)}return!0},E.prototype.addListener=function(e,t){return S(this,e,t,!1)},E.prototype.on=E.prototype.addListener,E.prototype.prependListener=function(e,t){return S(this,e,t,!0)},E.prototype.once=function(e,t){return _(t),this.on(e,k(this,e,t)),this},E.prototype.prependOnceListener=function(e,t){return _(t),this.prependListener(e,k(this,e,t)),this},E.prototype.removeListener=function(e,t){var n,r,o,i,a;if(_(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},E.prototype.off=E.prototype.removeListener,E.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},E.prototype.listeners=function(e){return O(this,e,!0)},E.prototype.rawListeners=function(e){return O(this,e,!1)},E.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):D.call(e,t)},E.prototype.listenerCount=D,E.prototype.eventNames=function(){return this._eventsCount>0?m(this._events):[]},"undefined"!=typeof Symbol&&(M.prototype[Symbol.iterator]=function(){return this}),M.of=function(){var e=arguments,t=e.length,n=0;return new M((function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}}))},M.empty=function(){return new M((function(){return{done:!0}}))},M.fromSequence=function(e){var t=0,n=e.length;return new M((function(){return t>=n?{done:!0}:{done:!1,value:e[t++]}}))},M.is=function(e){return e instanceof M||"object"==typeof e&&null!==e&&"function"==typeof e.next};var P=M,F={};F.ARRAY_BUFFER_SUPPORT="undefined"!=typeof ArrayBuffer,F.SYMBOL_SUPPORT="undefined"!=typeof Symbol;var N=P,j=F,R=j.ARRAY_BUFFER_SUPPORT,I=j.SYMBOL_SUPPORT,B=function(e){var t=function(e){return"string"==typeof e||Array.isArray(e)||R&&ArrayBuffer.isView(e)?N.fromSequence(e):"object"!=typeof e||null===e?null:I&&"function"==typeof e[Symbol.iterator]?e[Symbol.iterator]():"function"==typeof e.next?e:null}(e);if(!t)throw new Error("obliterator: target is not iterable nor a valid iterator.");return t},G=B,z=function(e,t){for(var n,r=arguments.length>1?t:1/0,o=r!==1/0?new Array(r):[],i=0,a=G(e);;){if(i===r)return o;if((n=a.next()).done)return i!==t&&(o.length=i),o;o[i++]=n.value}},U=function(e){function n(t){var n;return(n=e.call(this)||this).name="GraphError",n.message=t,n}return t(n,e),n}(a(Error)),W=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="InvalidArgumentsGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s(r),n.prototype.constructor),r}return t(n,e),n}(U),H=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="NotFoundGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s(r),n.prototype.constructor),r}return t(n,e),n}(U),q=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="UsageGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s(r),n.prototype.constructor),r}return t(n,e),n}(U);function V(e,t){this.key=e,this.attributes=t,this.clear()}function Y(e,t){this.key=e,this.attributes=t,this.clear()}function K(e,t){this.key=e,this.attributes=t,this.clear()}function $(e,t,n,r,o){this.key=t,this.attributes=o,this.undirected=e,this.source=n,this.target=r}function Z(e,t,n,r,o,i,a){var s,u,c,l;if(r=""+r,0===n){if(!(s=e._nodes.get(r)))throw new H("Graph.".concat(t,': could not find the "').concat(r,'" node in the graph.'));c=o,l=i}else if(3===n){if(o=""+o,!(u=e._edges.get(o)))throw new H("Graph.".concat(t,': could not find the "').concat(o,'" edge in the graph.'));var d=u.source.key,f=u.target.key;if(r===d)s=u.target;else{if(r!==f)throw new H("Graph.".concat(t,': the "').concat(r,'" node is not attached to the "').concat(o,'" edge (').concat(d,", ").concat(f,")."));s=u.source}c=i,l=a}else{if(!(u=e._edges.get(r)))throw new H("Graph.".concat(t,': could not find the "').concat(r,'" edge in the graph.'));s=1===n?u.source:u.target,c=o,l=i}return[s,c,l]}V.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.undirectedDegree=0,this.in={},this.out={},this.undirected={}},Y.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.in={},this.out={}},K.prototype.clear=function(){this.undirectedDegree=0,this.undirected={}},$.prototype.attach=function(){var e="out",t="in";this.undirected&&(e=t="undirected");var n=this.source.key,r=this.target.key;this.source[e][r]=this,this.undirected&&n===r||(this.target[t][n]=this)},$.prototype.attachMulti=function(){var e="out",t="in",n=this.source.key,r=this.target.key;this.undirected&&(e=t="undirected");var o=this.source[e],i=o[r];if(void 0===i)return o[r]=this,void(this.undirected&&n===r||(this.target[t][n]=this));i.previous=this,this.next=i,o[r]=this,this.target[t][n]=this},$.prototype.detach=function(){var e=this.source.key,t=this.target.key,n="out",r="in";this.undirected&&(n=r="undirected"),delete this.source[n][t],delete this.target[r][e]},$.prototype.detachMulti=function(){var e=this.source.key,t=this.target.key,n="out",r="in";this.undirected&&(n=r="undirected"),void 0===this.previous?void 0===this.next?(delete this.source[n][t],delete this.target[r][e]):(this.next.previous=void 0,this.source[n][t]=this.next,this.target[r][e]=this.next):(this.previous.next=this.next,void 0!==this.next&&(this.next.previous=this.previous))};var X=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];return a.attributes[s]}}},{name:function(e){return"get".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){return Z(this,t,n,e,r)[0].attributes}}},{name:function(e){return"has".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];return a.attributes.hasOwnProperty(s)}}},{name:function(e){return"set".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o,i){var a=Z(this,t,n,e,r,o,i),s=a[0],u=a[1],c=a[2];return s.attributes[u]=c,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:u}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o,i){var a=Z(this,t,n,e,r,o,i),s=a[0],u=a[1],c=a[2];if("function"!=typeof c)throw new W("Graph.".concat(t,": updater should be a function."));var l=s.attributes,d=c(l[u]);return l[u]=d,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:u}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];return delete a.attributes[s],this.emit("nodeAttributesUpdated",{key:a.key,type:"remove",attributes:a.attributes,name:s}),this}}},{name:function(e){return"replace".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];if(!d(s))throw new W("Graph.".concat(t,": provided attributes are not a plain object."));return a.attributes=s,this.emit("nodeAttributesUpdated",{key:a.key,type:"replace",attributes:a.attributes}),this}}},{name:function(e){return"merge".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];if(!d(s))throw new W("Graph.".concat(t,": provided attributes are not a plain object."));return u(a.attributes,s),this.emit("nodeAttributesUpdated",{key:a.key,type:"merge",attributes:a.attributes,data:s}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];if("function"!=typeof s)throw new W("Graph.".concat(t,": provided updater is not a function."));return a.attributes=s(a.attributes),this.emit("nodeAttributesUpdated",{key:a.key,type:"update",attributes:a.attributes}),this}}}],Q=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=c(this,i,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return o.attributes[r]}}},{name:function(e){return"get".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e){var r;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>1){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,i=""+arguments[1];if(!(r=c(this,o,i,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(i,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(r=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return r.attributes}}},{name:function(e){return"has".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=c(this,i,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return o.attributes.hasOwnProperty(r)}}},{name:function(e){return"set".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var a=""+e,s=""+r;if(r=arguments[2],o=arguments[3],!(i=c(this,a,s,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(s,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return i.attributes[r]=o,this.emit("edgeAttributesUpdated",{key:i.key,type:"set",attributes:i.attributes,name:r}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var a=""+e,s=""+r;if(r=arguments[2],o=arguments[3],!(i=c(this,a,s,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(s,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if("function"!=typeof o)throw new W("Graph.".concat(t,": updater should be a function."));return i.attributes[r]=o(i.attributes[r]),this.emit("edgeAttributesUpdated",{key:i.key,type:"set",attributes:i.attributes,name:r}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=c(this,i,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return delete o.attributes[r],this.emit("edgeAttributesUpdated",{key:o.key,type:"remove",attributes:o.attributes,name:r}),this}}},{name:function(e){return"replace".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=c(this,i,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if(!d(r))throw new W("Graph.".concat(t,": provided attributes are not a plain object."));return o.attributes=r,this.emit("edgeAttributesUpdated",{key:o.key,type:"replace",attributes:o.attributes}),this}}},{name:function(e){return"merge".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=c(this,i,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if(!d(r))throw new W("Graph.".concat(t,": provided attributes are not a plain object."));return u(o.attributes,r),this.emit("edgeAttributesUpdated",{key:o.key,type:"merge",attributes:o.attributes,data:r}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=c(this,i,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if("function"!=typeof r)throw new W("Graph.".concat(t,": provided updater is not a function."));return o.attributes=r(o.attributes),this.emit("edgeAttributesUpdated",{key:o.key,type:"update",attributes:o.attributes}),this}}}],J=P,ee=B,te=function(){var e=arguments,t=null,n=-1;return new J((function(){for(var r=null;;){if(null===t){if(++n>=e.length)return{done:!0};t=ee(e[n])}if(!0!==(r=t.next()).done)break;t=null}return r}))},ne=[{name:"edges",type:"mixed"},{name:"inEdges",type:"directed",direction:"in"},{name:"outEdges",type:"directed",direction:"out"},{name:"inboundEdges",type:"mixed",direction:"in"},{name:"outboundEdges",type:"mixed",direction:"out"},{name:"directedEdges",type:"directed"},{name:"undirectedEdges",type:"undirected"}];function re(e,t,n,r){var o=!1;for(var i in t)if(i!==r){var a=t[i];if(o=n(a.key,a.attributes,a.source.key,a.target.key,a.source.attributes,a.target.attributes,a.undirected),e&&o)return a.key}}function oe(e,t,n,r){var o,i,a,s=!1;for(var u in t)if(u!==r){o=t[u];do{if(i=o.source,a=o.target,s=n(o.key,o.attributes,i.key,a.key,i.attributes,a.attributes,o.undirected),e&&s)return o.key;o=o.next}while(void 0!==o)}}function ie(e,t){var n,r=Object.keys(e),o=r.length,i=0;return new P((function(){do{if(n)n=n.next;else{if(i>=o)return{done:!0};var a=r[i++];if(a===t){n=void 0;continue}n=e[a]}}while(!n);return{done:!1,value:{edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected}}}))}function ae(e,t,n,r){var o=t[n];if(o){var i=o.source,a=o.target;return r(o.key,o.attributes,i.key,a.key,i.attributes,a.attributes,o.undirected)&&e?o.key:void 0}}function se(e,t,n,r){var o=t[n];if(o){var i=!1;do{if(i=r(o.key,o.attributes,o.source.key,o.target.key,o.source.attributes,o.target.attributes,o.undirected),e&&i)return o.key;o=o.next}while(void 0!==o)}}function ue(e,t){var n=e[t];return void 0!==n.next?new P((function(){if(!n)return{done:!0};var e={edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected};return n=n.next,{done:!1,value:e}})):P.of({edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected})}function ce(e,t){if(0===e.size)return[];if("mixed"===t||t===e.type)return"function"==typeof Array.from?Array.from(e._edges.keys()):z(e._edges.keys(),e._edges.size);for(var n,r,o="undirected"===t?e.undirectedSize:e.directedSize,i=new Array(o),a="undirected"===t,s=e._edges.values(),u=0;!0!==(n=s.next()).done;)(r=n.value).undirected===a&&(i[u++]=r.key);return i}function le(e,t,n,r){if(0!==t.size)for(var o,i,a="mixed"!==n&&n!==t.type,s="undirected"===n,u=!1,c=t._edges.values();!0!==(o=c.next()).done;)if(i=o.value,!a||i.undirected===s){var l=i,d=l.key,f=l.attributes,h=l.source,p=l.target;if(u=r(d,f,h.key,p.key,h.attributes,p.attributes,i.undirected),e&&u)return d}}function de(e,t){if(0===e.size)return P.empty();var n="mixed"!==t&&t!==e.type,r="undirected"===t,o=e._edges.values();return new P((function(){for(var e,t;;){if((e=o.next()).done)return e;if(t=e.value,!n||t.undirected===r)break}return{value:{edge:t.key,attributes:t.attributes,source:t.source.key,target:t.target.key,sourceAttributes:t.source.attributes,targetAttributes:t.target.attributes,undirected:t.undirected},done:!1}}))}function fe(e,t,n,r,o,i){var a,s=t?oe:re;if("undirected"!==n){if("out"!==r&&(a=s(e,o.in,i),e&&a))return a;if("in"!==r&&(a=s(e,o.out,i,r?void 0:o.key),e&&a))return a}if("directed"!==n&&(a=s(e,o.undirected,i),e&&a))return a}function he(e,t,n,r){var o=[];return fe(!1,e,t,n,r,(function(e){o.push(e)})),o}function pe(e,t,n){var r=P.empty();return"undirected"!==e&&("out"!==t&&void 0!==n.in&&(r=te(r,ie(n.in))),"in"!==t&&void 0!==n.out&&(r=te(r,ie(n.out,t?void 0:n.key)))),"directed"!==e&&void 0!==n.undirected&&(r=te(r,ie(n.undirected))),r}function ge(e,t,n,r,o,i,a){var s,u=n?se:ae;if("undirected"!==t){if(void 0!==o.in&&"out"!==r&&(s=u(e,o.in,i,a),e&&s))return s;if(void 0!==o.out&&"in"!==r&&(r||o.key!==i)&&(s=u(e,o.out,i,a),e&&s))return s}if("directed"!==t&&void 0!==o.undirected&&(s=u(e,o.undirected,i,a),e&&s))return s}function me(e,t,n,r,o){var i=[];return ge(!1,e,t,n,r,o,(function(e){i.push(e)})),i}function ve(e,t,n,r){var o=P.empty();return"undirected"!==e&&(void 0!==n.in&&"out"!==t&&r in n.in&&(o=te(o,ue(n.in,r))),void 0!==n.out&&"in"!==t&&r in n.out&&(t||n.key!==r)&&(o=te(o,ue(n.out,r)))),"directed"!==e&&void 0!==n.undirected&&r in n.undirected&&(o=te(o,ue(n.undirected,r))),o}var ye=[{name:"neighbors",type:"mixed"},{name:"inNeighbors",type:"directed",direction:"in"},{name:"outNeighbors",type:"directed",direction:"out"},{name:"inboundNeighbors",type:"mixed",direction:"in"},{name:"outboundNeighbors",type:"mixed",direction:"out"},{name:"directedNeighbors",type:"directed"},{name:"undirectedNeighbors",type:"undirected"}];function be(){this.A=null,this.B=null}function we(e,t,n,r,o){for(var i in r){var a=r[i],s=a.source,u=a.target,c=s===n?u:s;if(!t||!t.has(c.key)){var l=o(c.key,c.attributes);if(e&&l)return c.key}}}function Ee(e,t,n,r,o){if("mixed"!==t){if("undirected"===t)return we(e,null,r,r.undirected,o);if("string"==typeof n)return we(e,null,r,r[n],o)}var i,a=new be;if("undirected"!==t){if("out"!==n){if(i=we(e,null,r,r.in,o),e&&i)return i;a.wrap(r.in)}if("in"!==n){if(i=we(e,a,r,r.out,o),e&&i)return i;a.wrap(r.out)}}if("directed"!==t&&(i=we(e,a,r,r.undirected,o),e&&i))return i}function xe(e,t,n){var r=Object.keys(n),o=r.length,i=0;return new P((function(){var a=null;do{if(i>=o)return e&&e.wrap(n),{done:!0};var s=n[r[i++]],u=s.source,c=s.target;a=u===t?c:u,e&&e.has(a.key)&&(a=null)}while(null===a);return{done:!1,value:{neighbor:a.key,attributes:a.attributes}}}))}function _e(e,t,n,r,o){for(var i,a,s,u,c,l,d,f=r._nodes.values(),h=r.type;!0!==(i=f.next()).done;){var p=!1;if(a=i.value,"undirected"!==h)for(s in u=a.out){c=u[s];do{if(l=c.target,p=!0,d=o(a.key,l.key,a.attributes,l.attributes,c.key,c.attributes,c.undirected),e&&d)return c;c=c.next}while(c)}if("directed"!==h)for(s in u=a.undirected)if(!(t&&a.key>s)){c=u[s];do{if((l=c.target).key!==s&&(l=c.source),p=!0,d=o(a.key,l.key,a.attributes,l.attributes,c.key,c.attributes,c.undirected),e&&d)return c;c=c.next}while(c)}if(n&&!p&&(d=o(a.key,null,a.attributes,null,null,null,null),e&&d))return null}}function Ce(e){if(!d(e))throw new W('Graph.import: invalid serialized node. A serialized node should be a plain object with at least a "key" property.');if(!("key"in e))throw new W("Graph.import: serialized node is missing its key.");if("attributes"in e&&(!d(e.attributes)||null===e.attributes))throw new W("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.")}function Se(e){if(!d(e))throw new W('Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.');if(!("source"in e))throw new W("Graph.import: serialized edge is missing its source.");if(!("target"in e))throw new W("Graph.import: serialized edge is missing its target.");if("attributes"in e&&(!d(e.attributes)||null===e.attributes))throw new W("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.");if("undirected"in e&&"boolean"!=typeof e.undirected)throw new W("Graph.import: invalid undirectedness information. Undirected should be boolean or omitted.")}be.prototype.wrap=function(e){null===this.A?this.A=e:null===this.B&&(this.B=e)},be.prototype.has=function(e){return null!==this.A&&e in this.A||null!==this.B&&e in this.B};var Ae,ke=(Ae=255&Math.floor(256*Math.random()),function(){return Ae++}),Oe=new Set(["directed","undirected","mixed"]),De=new Set(["domain","_events","_eventsCount","_maxListeners"]),Le={allowSelfLoops:!0,multi:!1,type:"mixed"};function Te(e,t,n){var r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function Me(e,t,n,r,o,i,a,s){if(!r&&"undirected"===e.type)throw new q("Graph.".concat(t,": you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead."));if(r&&"directed"===e.type)throw new q("Graph.".concat(t,": you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead."));if(s&&!d(s))throw new W("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(s,'"'));if(i=""+i,a=""+a,s=s||{},!e.allowSelfLoops&&i===a)throw new q("Graph.".concat(t,': source & target are the same ("').concat(i,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var u=e._nodes.get(i),c=e._nodes.get(a);if(!u)throw new H("Graph.".concat(t,': source node "').concat(i,'" not found.'));if(!c)throw new H("Graph.".concat(t,': target node "').concat(a,'" not found.'));var l={key:null,undirected:r,source:i,target:a,attributes:s};if(n)o=e._edgeKeyGenerator();else if(o=""+o,e._edges.has(o))throw new q("Graph.".concat(t,': the "').concat(o,'" edge already exists in the graph.'));if(!e.multi&&(r?void 0!==u.undirected[a]:void 0!==u.out[a]))throw new q("Graph.".concat(t,': an edge linking "').concat(i,'" to "').concat(a,"\" already exists. If you really want to add multiple edges linking those nodes, you should create a multi graph by using the 'multi' option."));var f=new $(r,o,u,c,s);e._edges.set(o,f);var h=i===a;return r?(u.undirectedDegree++,c.undirectedDegree++,h&&e._undirectedSelfLoopCount++):(u.outDegree++,c.inDegree++,h&&e._directedSelfLoopCount++),e.multi?f.attachMulti():f.attach(),r?e._undirectedSize++:e._directedSize++,l.key=o,e.emit("edgeAdded",l),o}function Pe(e,t,n,r,o,i,a,s,c){if(!r&&"undirected"===e.type)throw new q("Graph.".concat(t,": you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead."));if(r&&"directed"===e.type)throw new q("Graph.".concat(t,": you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead."));if(s)if(c){if("function"!=typeof s)throw new W("Graph.".concat(t,': invalid updater function. Expecting a function but got "').concat(s,'"'))}else if(!d(s))throw new W("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(s,'"'));var l;if(i=""+i,a=""+a,c&&(l=s,s=void 0),!e.allowSelfLoops&&i===a)throw new q("Graph.".concat(t,': source & target are the same ("').concat(i,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var f,h,p=e._nodes.get(i),g=e._nodes.get(a);if(!n&&(f=e._edges.get(o))){if(!(f.source.key===i&&f.target.key===a||r&&f.source.key===a&&f.target.key===i))throw new q("Graph.".concat(t,': inconsistency detected when attempting to merge the "').concat(o,'" edge with "').concat(i,'" source & "').concat(a,'" target vs. ("').concat(f.source.key,'", "').concat(f.target.key,'").'));h=f}if(h||e.multi||!p||(h=r?p.undirected[a]:p.out[a]),h){var m=[h.key,!1,!1,!1];if(c?!l:!s)return m;if(c){var v=h.attributes;h.attributes=l(v),e.emit("edgeAttributesUpdated",{type:"replace",key:h.key,attributes:h.attributes})}else u(h.attributes,s),e.emit("edgeAttributesUpdated",{type:"merge",key:h.key,attributes:h.attributes,data:s});return m}s=s||{},c&&l&&(s=l(s));var y={key:null,undirected:r,source:i,target:a,attributes:s};if(n)o=e._edgeKeyGenerator();else if(o=""+o,e._edges.has(o))throw new q("Graph.".concat(t,': the "').concat(o,'" edge already exists in the graph.'));var b=!1,w=!1;p||(p=Te(e,i,{}),b=!0,i===a&&(g=p,w=!0)),g||(g=Te(e,a,{}),w=!0),f=new $(r,o,p,g,s),e._edges.set(o,f);var E=i===a;return r?(p.undirectedDegree++,g.undirectedDegree++,E&&e._undirectedSelfLoopCount++):(p.outDegree++,g.inDegree++,E&&e._directedSelfLoopCount++),e.multi?f.attachMulti():f.attach(),r?e._undirectedSize++:e._directedSize++,y.key=o,e.emit("edgeAdded",y),[o,!0,b,w]}function Fe(e,t){e._edges.delete(t.key);var n=t.source,r=t.target,o=t.attributes,i=t.undirected,a=n===r;i?(n.undirectedDegree--,r.undirectedDegree--,a&&e._undirectedSelfLoopCount--):(n.outDegree--,r.inDegree--,a&&e._directedSelfLoopCount--),e.multi?t.detachMulti():t.detach(),i?e._undirectedSize--:e._directedSize--,e.emit("edgeDropped",{key:t.key,attributes:o,source:n.key,target:r.key,undirected:i})}var Ne=function(n){function r(e){var t;if(t=n.call(this)||this,"boolean"!=typeof(e=u({},Le,e)).multi)throw new W("Graph.constructor: invalid 'multi' option. Expecting a boolean but got \"".concat(e.multi,'".'));if(!Oe.has(e.type))throw new W('Graph.constructor: invalid \'type\' option. Should be one of "mixed", "directed" or "undirected" but got "'.concat(e.type,'".'));if("boolean"!=typeof e.allowSelfLoops)throw new W("Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got \"".concat(e.allowSelfLoops,'".'));var r="mixed"===e.type?V:"directed"===e.type?Y:K;h(s(t),"NodeDataClass",r);var o="geid_"+ke()+"_",i=0;return h(s(t),"_attributes",{}),h(s(t),"_nodes",new Map),h(s(t),"_edges",new Map),h(s(t),"_directedSize",0),h(s(t),"_undirectedSize",0),h(s(t),"_directedSelfLoopCount",0),h(s(t),"_undirectedSelfLoopCount",0),h(s(t),"_edgeKeyGenerator",(function(){var e;do{e=o+i++}while(t._edges.has(e));return e})),h(s(t),"_options",e),De.forEach((function(e){return h(s(t),e,t[e])})),p(s(t),"order",(function(){return t._nodes.size})),p(s(t),"size",(function(){return t._edges.size})),p(s(t),"directedSize",(function(){return t._directedSize})),p(s(t),"undirectedSize",(function(){return t._undirectedSize})),p(s(t),"selfLoopCount",(function(){return t._directedSelfLoopCount+t._undirectedSelfLoopCount})),p(s(t),"directedSelfLoopCount",(function(){return t._directedSelfLoopCount})),p(s(t),"undirectedSelfLoopCount",(function(){return t._undirectedSelfLoopCount})),p(s(t),"multi",t._options.multi),p(s(t),"type",t._options.type),p(s(t),"allowSelfLoops",t._options.allowSelfLoops),p(s(t),"implementation",(function(){return"graphology"})),t}t(r,n);var o=r.prototype;return o._resetInstanceCounters=function(){this._directedSize=0,this._undirectedSize=0,this._directedSelfLoopCount=0,this._undirectedSelfLoopCount=0},o.hasNode=function(e){return this._nodes.has(""+e)},o.hasDirectedEdge=function(e,t){if("undirected"===this.type)return!1;if(1===arguments.length){var n=""+e,r=this._edges.get(n);return!!r&&!r.undirected}if(2===arguments.length){e=""+e,t=""+t;var o=this._nodes.get(e);if(!o)return!1;var i=o.out[t];return!(!i||this.multi&&!i.size)}throw new W("Graph.hasDirectedEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},o.hasUndirectedEdge=function(e,t){if("directed"===this.type)return!1;if(1===arguments.length){var n=""+e,r=this._edges.get(n);return!!r&&r.undirected}if(2===arguments.length){e=""+e,t=""+t;var o=this._nodes.get(e);if(!o)return!1;var i=o.undirected[t];return!(!i||this.multi&&!i.size)}throw new W("Graph.hasDirectedEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},o.hasEdge=function(e,t){if(1===arguments.length){var n=""+e;return this._edges.has(n)}if(2===arguments.length){e=""+e,t=""+t;var r=this._nodes.get(e);if(!r)return!1;var o=void 0!==r.out&&r.out[t];return o||(o=void 0!==r.undirected&&r.undirected[t]),!(!o||this.multi&&!o.size)}throw new W("Graph.hasEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},o.directedEdge=function(e,t){if("undirected"!==this.type){if(e=""+e,t=""+t,this.multi)throw new q("Graph.directedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.directedEdges instead.");var n=this._nodes.get(e);if(!n)throw new H('Graph.directedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H('Graph.directedEdge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.out&&n.out[t]||void 0;return r?r.key:void 0}},o.undirectedEdge=function(e,t){if("directed"!==this.type){if(e=""+e,t=""+t,this.multi)throw new q("Graph.undirectedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.undirectedEdges instead.");var n=this._nodes.get(e);if(!n)throw new H('Graph.undirectedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H('Graph.undirectedEdge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.undirected&&n.undirected[t]||void 0;return r?r.key:void 0}},o.edge=function(e,t){if(this.multi)throw new q("Graph.edge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.edges instead.");e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.edge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H('Graph.edge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.out&&n.out[t]||n.undirected&&n.undirected[t]||void 0;if(r)return r.key},o.areDirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areDirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&(t in n.in||t in n.out)},o.areOutNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areOutNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.out},o.areInNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areInNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.in},o.areUndirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areUndirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"directed"!==this.type&&t in n.undirected},o.areNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&(t in n.in||t in n.out)||"directed"!==this.type&&t in n.undirected},o.areInboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areInboundNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.in||"directed"!==this.type&&t in n.undirected},o.areOutboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areOutboundNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.out||"directed"!==this.type&&t in n.undirected},o.inDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree},o.outDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.outDegree},o.directedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.directedDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree+t.outDegree},o.undirectedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.undirectedDegree: could not find the "'.concat(e,'" node in the graph.'));return"directed"===this.type?0:t.undirectedDegree},o.inboundDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inboundDegree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.inDegree),n},o.outboundDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outboundDegree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.outDegree),n},o.degree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.degree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.inDegree+t.outDegree),n},o.inDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));if("undirected"===this.type)return 0;var n=t.in[e],r=n?this.multi?n.size:1:0;return t.inDegree-r},o.outDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));if("undirected"===this.type)return 0;var n=t.out[e],r=n?this.multi?n.size:1:0;return t.outDegree-r},o.directedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.directedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));if("undirected"===this.type)return 0;var n=t.out[e],r=n?this.multi?n.size:1:0;return t.inDegree+t.outDegree-2*r},o.undirectedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.undirectedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));if("directed"===this.type)return 0;var n=t.undirected[e],r=n?this.multi?n.size:1:0;return t.undirectedDegree-2*r},o.inboundDegreeWithoutSelfLoops=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new H('Graph.inboundDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var r=0,o=0;return"directed"!==this.type&&(r+=n.undirectedDegree,o+=2*((t=n.undirected[e])?this.multi?t.size:1:0)),"undirected"!==this.type&&(r+=n.inDegree,o+=(t=n.out[e])?this.multi?t.size:1:0),r-o},o.outboundDegreeWithoutSelfLoops=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new H('Graph.outboundDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var r=0,o=0;return"directed"!==this.type&&(r+=n.undirectedDegree,o+=2*((t=n.undirected[e])?this.multi?t.size:1:0)),"undirected"!==this.type&&(r+=n.outDegree,o+=(t=n.in[e])?this.multi?t.size:1:0),r-o},o.degreeWithoutSelfLoops=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new H('Graph.degreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var r=0,o=0;return"directed"!==this.type&&(r+=n.undirectedDegree,o+=2*((t=n.undirected[e])?this.multi?t.size:1:0)),"undirected"!==this.type&&(r+=n.inDegree+n.outDegree,o+=2*((t=n.out[e])?this.multi?t.size:1:0)),r-o},o.source=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.source: could not find the "'.concat(e,'" edge in the graph.'));return t.source.key},o.target=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.target: could not find the "'.concat(e,'" edge in the graph.'));return t.target.key},o.extremities=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.extremities: could not find the "'.concat(e,'" edge in the graph.'));return[t.source.key,t.target.key]},o.opposite=function(e,t){e=""+e,t=""+t;var n=this._edges.get(t);if(!n)throw new H('Graph.opposite: could not find the "'.concat(t,'" edge in the graph.'));var r=n.source.key,o=n.target.key;if(e===r)return o;if(e===o)return r;throw new H('Graph.opposite: the "'.concat(e,'" node is not attached to the "').concat(t,'" edge (').concat(r,", ").concat(o,")."))},o.hasExtremity=function(e,t){e=""+e,t=""+t;var n=this._edges.get(e);if(!n)throw new H('Graph.hasExtremity: could not find the "'.concat(e,'" edge in the graph.'));return n.source.key===t||n.target.key===t},o.isUndirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.isUndirected: could not find the "'.concat(e,'" edge in the graph.'));return t.undirected},o.isDirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.isDirected: could not find the "'.concat(e,'" edge in the graph.'));return!t.undirected},o.isSelfLoop=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.isSelfLoop: could not find the "'.concat(e,'" edge in the graph.'));return t.source===t.target},o.addNode=function(e,t){var n=function(e,t,n){if(n&&!d(n))throw new W('Graph.addNode: invalid attributes. Expecting an object but got "'.concat(n,'"'));if(t=""+t,n=n||{},e._nodes.has(t))throw new q('Graph.addNode: the "'.concat(t,'" node already exist in the graph.'));var r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}(this,e,t);return n.key},o.mergeNode=function(e,t){if(t&&!d(t))throw new W('Graph.mergeNode: invalid attributes. Expecting an object but got "'.concat(t,'"'));e=""+e,t=t||{};var n=this._nodes.get(e);return n?(t&&(u(n.attributes,t),this.emit("nodeAttributesUpdated",{type:"merge",key:e,attributes:n.attributes,data:t})),[e,!1]):(n=new this.NodeDataClass(e,t),this._nodes.set(e,n),this.emit("nodeAdded",{key:e,attributes:t}),[e,!0])},o.updateNode=function(e,t){if(t&&"function"!=typeof t)throw new W('Graph.updateNode: invalid updater function. Expecting a function but got "'.concat(t,'"'));e=""+e;var n=this._nodes.get(e);if(n){if(t){var r=n.attributes;n.attributes=t(r),this.emit("nodeAttributesUpdated",{type:"replace",key:e,attributes:n.attributes})}return[e,!1]}var o=t?t({}):{};return n=new this.NodeDataClass(e,o),this._nodes.set(e,n),this.emit("nodeAdded",{key:e,attributes:o}),[e,!0]},o.dropNode=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new H('Graph.dropNode: could not find the "'.concat(e,'" node in the graph.'));if("undirected"!==this.type){for(var r in n.out){t=n.out[r];do{Fe(this,t),t=t.next}while(t)}for(var o in n.in){t=n.in[o];do{Fe(this,t),t=t.next}while(t)}}if("directed"!==this.type)for(var i in n.undirected){t=n.undirected[i];do{Fe(this,t),t=t.next}while(t)}this._nodes.delete(e),this.emit("nodeDropped",{key:e,attributes:n.attributes})},o.dropEdge=function(e){var t;if(arguments.length>1){var n=""+arguments[0],r=""+arguments[1];if(!(t=c(this,n,r,this.type)))throw new H('Graph.dropEdge: could not find the "'.concat(n,'" -> "').concat(r,'" edge in the graph.'))}else if(e=""+e,!(t=this._edges.get(e)))throw new H('Graph.dropEdge: could not find the "'.concat(e,'" edge in the graph.'));return Fe(this,t),this},o.dropDirectedEdge=function(e,t){if(arguments.length<2)throw new q("Graph.dropDirectedEdge: it does not make sense to try and drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new q("Graph.dropDirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");var n=c(this,e=""+e,t=""+t,"directed");if(!n)throw new H('Graph.dropDirectedEdge: could not find a "'.concat(e,'" -> "').concat(t,'" edge in the graph.'));return Fe(this,n),this},o.dropUndirectedEdge=function(e,t){if(arguments.length<2)throw new q("Graph.dropUndirectedEdge: it does not make sense to drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new q("Graph.dropUndirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");var n=c(this,e,t,"undirected");if(!n)throw new H('Graph.dropUndirectedEdge: could not find a "'.concat(e,'" -> "').concat(t,'" edge in the graph.'));return Fe(this,n),this},o.clear=function(){this._edges.clear(),this._nodes.clear(),this._resetInstanceCounters(),this.emit("cleared")},o.clearEdges=function(){for(var e,t=this._nodes.values();!0!==(e=t.next()).done;)e.value.clear();this._edges.clear(),this._resetInstanceCounters(),this.emit("edgesCleared")},o.getAttribute=function(e){return this._attributes[e]},o.getAttributes=function(){return this._attributes},o.hasAttribute=function(e){return this._attributes.hasOwnProperty(e)},o.setAttribute=function(e,t){return this._attributes[e]=t,this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:e}),this},o.updateAttribute=function(e,t){if("function"!=typeof t)throw new W("Graph.updateAttribute: updater should be a function.");var n=this._attributes[e];return this._attributes[e]=t(n),this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:e}),this},o.removeAttribute=function(e){return delete this._attributes[e],this.emit("attributesUpdated",{type:"remove",attributes:this._attributes,name:e}),this},o.replaceAttributes=function(e){if(!d(e))throw new W("Graph.replaceAttributes: provided attributes are not a plain object.");return this._attributes=e,this.emit("attributesUpdated",{type:"replace",attributes:this._attributes}),this},o.mergeAttributes=function(e){if(!d(e))throw new W("Graph.mergeAttributes: provided attributes are not a plain object.");return u(this._attributes,e),this.emit("attributesUpdated",{type:"merge",attributes:this._attributes,data:e}),this},o.updateAttributes=function(e){if("function"!=typeof e)throw new W("Graph.updateAttributes: provided updater is not a function.");return this._attributes=e(this._attributes),this.emit("attributesUpdated",{type:"update",attributes:this._attributes}),this},o.updateEachNodeAttributes=function(e,t){if("function"!=typeof e)throw new W("Graph.updateEachNodeAttributes: expecting an updater function.");if(t&&!g(t))throw new W("Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,o=this._nodes.values();!0!==(n=o.next()).done;)(r=n.value).attributes=e(r.key,r.attributes);this.emit("eachNodeAttributesUpdated",{hints:t||null})},o.updateEachEdgeAttributes=function(e,t){if("function"!=typeof e)throw new W("Graph.updateEachEdgeAttributes: expecting an updater function.");if(t&&!g(t))throw new W("Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,o,i,a=this._edges.values();!0!==(n=a.next()).done;)o=(r=n.value).source,i=r.target,r.attributes=e(r.key,r.attributes,o.key,i.key,o.attributes,i.attributes,r.undirected);this.emit("eachEdgeAttributesUpdated",{hints:t||null})},o.forEachAdjacencyEntry=function(e){if("function"!=typeof e)throw new W("Graph.forEachAdjacencyEntry: expecting a callback.");_e(!1,!1,!1,this,e)},o.forEachAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new W("Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.");_e(!1,!1,!0,this,e)},o.forEachAssymetricAdjacencyEntry=function(e){if("function"!=typeof e)throw new W("Graph.forEachAssymetricAdjacencyEntry: expecting a callback.");_e(!1,!0,!1,this,e)},o.forEachAssymetricAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new W("Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.");_e(!1,!0,!0,this,e)},o.nodes=function(){return"function"==typeof Array.from?Array.from(this._nodes.keys()):z(this._nodes.keys(),this._nodes.size)},o.forEachNode=function(e){if("function"!=typeof e)throw new W("Graph.forEachNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)e((n=t.value).key,n.attributes)},o.findNode=function(e){if("function"!=typeof e)throw new W("Graph.findNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(e((n=t.value).key,n.attributes))return n.key},o.mapNodes=function(e){if("function"!=typeof e)throw new W("Graph.mapNode: expecting a callback.");for(var t,n,r=this._nodes.values(),o=new Array(this.order),i=0;!0!==(t=r.next()).done;)n=t.value,o[i++]=e(n.key,n.attributes);return o},o.someNode=function(e){if("function"!=typeof e)throw new W("Graph.someNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(e((n=t.value).key,n.attributes))return!0;return!1},o.everyNode=function(e){if("function"!=typeof e)throw new W("Graph.everyNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(!e((n=t.value).key,n.attributes))return!1;return!0},o.filterNodes=function(e){if("function"!=typeof e)throw new W("Graph.filterNodes: expecting a callback.");for(var t,n,r=this._nodes.values(),o=[];!0!==(t=r.next()).done;)e((n=t.value).key,n.attributes)&&o.push(n.key);return o},o.reduceNodes=function(e,t){if("function"!=typeof e)throw new W("Graph.reduceNodes: expecting a callback.");if(arguments.length<2)throw new W("Graph.reduceNodes: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.");for(var n,r,o=t,i=this._nodes.values();!0!==(n=i.next()).done;)o=e(o,(r=n.value).key,r.attributes);return o},o.nodeEntries=function(){var e=this._nodes.values();return new P((function(){var t=e.next();if(t.done)return t;var n=t.value;return{value:{node:n.key,attributes:n.attributes},done:!1}}))},o.export=function(){var e=new Array(this._nodes.size),t=0;this._nodes.forEach((function(n,r){e[t++]=function(e,t){var n={key:e};return f(t.attributes)||(n.attributes=u({},t.attributes)),n}(r,n)}));var n=new Array(this._edges.size);return t=0,this._edges.forEach((function(e,r){n[t++]=function(e,t){var n={key:e,source:t.source.key,target:t.target.key};return f(t.attributes)||(n.attributes=u({},t.attributes)),t.undirected&&(n.undirected=!0),n}(r,e)})),{options:{type:this.type,multi:this.multi,allowSelfLoops:this.allowSelfLoops},attributes:this.getAttributes(),nodes:e,edges:n}},o.import=function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(l(e))return e.forEachNode((function(e,t){s?a.mergeNode(e,t):a.addNode(e,t)})),e.forEachEdge((function(e,t,n,r,o,i,u){s?u?a.mergeUndirectedEdgeWithKey(e,n,r,t):a.mergeDirectedEdgeWithKey(e,n,r,t):u?a.addUndirectedEdgeWithKey(e,n,r,t):a.addDirectedEdgeWithKey(e,n,r,t)})),this;if(!d(e))throw new W("Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.");if(e.attributes){if(!d(e.attributes))throw new W("Graph.import: invalid attributes. Expecting a plain object.");s?this.mergeAttributes(e.attributes):this.replaceAttributes(e.attributes)}if(e.nodes){if(r=e.nodes,!Array.isArray(r))throw new W("Graph.import: invalid nodes. Expecting an array.");for(t=0,n=r.length;t<n;t++){Ce(o=r[t]);var u=o,c=u.key,f=u.attributes;s?this.mergeNode(c,f):this.addNode(c,f)}}if(e.edges){if(r=e.edges,!Array.isArray(r))throw new W("Graph.import: invalid edges. Expecting an array.");for(t=0,n=r.length;t<n;t++){Se(i=r[t]);var h=i,p=h.source,g=h.target,m=h.attributes,v=h.undirected,y=void 0!==v&&v;"key"in i?(s?y?this.mergeUndirectedEdgeWithKey:this.mergeDirectedEdgeWithKey:y?this.addUndirectedEdgeWithKey:this.addDirectedEdgeWithKey).call(this,i.key,p,g,m):(s?y?this.mergeUndirectedEdge:this.mergeDirectedEdge:y?this.addUndirectedEdge:this.addDirectedEdge).call(this,p,g,m)}}return this},o.nullCopy=function(e){var t=new r(u({},this._options,e));return t.replaceAttributes(u({},this.getAttributes())),t},o.emptyCopy=function(e){var t=this.nullCopy(e);return this._nodes.forEach((function(e,n){var r=u({},e.attributes);e=new t.NodeDataClass(n,r),t._nodes.set(n,e)})),t},o.copy=function(e){if("string"==typeof(e=e||{}).type&&e.type!==this.type&&"mixed"!==e.type)throw new q('Graph.copy: cannot create an incompatible copy from "'.concat(this.type,'" type to "').concat(e.type,'" because this would mean losing information about the current graph.'));if("boolean"==typeof e.multi&&e.multi!==this.multi&&!0!==e.multi)throw new q("Graph.copy: cannot create an incompatible copy by downgrading a multi graph to a simple one because this would mean losing information about the current graph.");if("boolean"==typeof e.allowSelfLoops&&e.allowSelfLoops!==this.allowSelfLoops&&!0!==e.allowSelfLoops)throw new q("Graph.copy: cannot create an incompatible copy from a graph allowing self loops to one that does not because this would mean losing information about the current graph.");for(var t,n,r=this.emptyCopy(e),o=this._edges.values();!0!==(t=o.next()).done;)Me(r,"copy",!1,(n=t.value).undirected,n.key,n.source.key,n.target.key,u({},n.attributes));return r},o.toJSON=function(){return this.export()},o.toString=function(){return"[object Graph]"},o.inspect=function(){var t=this,n={};this._nodes.forEach((function(e,t){n[t]=e.attributes}));var r={},o={};this._edges.forEach((function(e,n){var i,a=e.undirected?"--":"->",s="",u=e.source.key,c=e.target.key;e.undirected&&u>c&&(i=u,u=c,c=i);var l="(".concat(u,")").concat(a,"(").concat(c,")");n.startsWith("geid_")?t.multi&&(void 0===o[l]?o[l]=0:o[l]++,s+="".concat(o[l],". ")):s+="[".concat(n,"]: "),r[s+=l]=e.attributes}));var i={};for(var a in this)this.hasOwnProperty(a)&&!De.has(a)&&"function"!=typeof this[a]&&"symbol"!==e(a)&&(i[a]=this[a]);return i.attributes=this._attributes,i.nodes=n,i.edges=r,h(i,"constructor",this.constructor),i},r}(v.exports.EventEmitter);"undefined"!=typeof Symbol&&(Ne.prototype[Symbol.for("nodejs.util.inspect.custom")]=Ne.prototype.inspect),[{name:function(e){return"".concat(e,"Edge")},generateKey:!0},{name:function(e){return"".concat(e,"DirectedEdge")},generateKey:!0,type:"directed"},{name:function(e){return"".concat(e,"UndirectedEdge")},generateKey:!0,type:"undirected"},{name:function(e){return"".concat(e,"EdgeWithKey")}},{name:function(e){return"".concat(e,"DirectedEdgeWithKey")},type:"directed"},{name:function(e){return"".concat(e,"UndirectedEdgeWithKey")},type:"undirected"}].forEach((function(e){["add","merge","update"].forEach((function(t){var n=e.name(t),r="add"===t?Me:Pe;e.generateKey?Ne.prototype[n]=function(o,i,a){return r(this,n,!0,"undirected"===(e.type||this.type),null,o,i,a,"update"===t)}:Ne.prototype[n]=function(o,i,a,s){return r(this,n,!1,"undirected"===(e.type||this.type),o,i,a,s,"update"===t)}}))})),function(e){X.forEach((function(t){var n=t.name,r=t.attacher;r(e,n("Node"),0),r(e,n("Source"),1),r(e,n("Target"),2),r(e,n("Opposite"),3)}))}(Ne),function(e){Q.forEach((function(t){var n=t.name,r=t.attacher;r(e,n("Edge"),"mixed"),r(e,n("DirectedEdge"),"directed"),r(e,n("UndirectedEdge"),"undirected")}))}(Ne),function(e){ne.forEach((function(t){!function(e,t){var n=t.name,r=t.type,o=t.direction;e.prototype[n]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return[];if(!arguments.length)return ce(this,r);if(1===arguments.length){e=""+e;var i=this._nodes.get(e);if(void 0===i)throw new H("Graph.".concat(n,': could not find the "').concat(e,'" node in the graph.'));return he(this.multi,"mixed"===r?this.type:r,o,i)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new H("Graph.".concat(n,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(n,': could not find the "').concat(t,'" target node in the graph.'));return me(r,this.multi,o,a,t)}throw new W("Graph.".concat(n,": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length,")."))}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(e,t,n){if("mixed"===r||"mixed"===this.type||r===this.type){if(1===arguments.length)return le(!1,this,r,n=e);if(2===arguments.length){e=""+e,n=t;var a=this._nodes.get(e);if(void 0===a)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return fe(!1,this.multi,"mixed"===r?this.type:r,o,a,n)}if(3===arguments.length){e=""+e,t=""+t;var s=this._nodes.get(e);if(!s)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(i,': could not find the "').concat(t,'" target node in the graph.'));return ge(!1,r,this.multi,o,s,t,n)}throw new W("Graph.".concat(i,": too many arguments (expecting 1, 2 or 3 and got ").concat(arguments.length,")."))}};var a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(){var e,t=Array.prototype.slice.call(arguments),n=t.pop();if(0===t.length){var o=0;"directed"!==r&&(o+=this.undirectedSize),"undirected"!==r&&(o+=this.directedSize),e=new Array(o);var a=0;t.push((function(t,r,o,i,s,u,c){e[a++]=n(t,r,o,i,s,u,c)}))}else e=[],t.push((function(t,r,o,i,a,s,u){e.push(n(t,r,o,i,a,s,u))}));return this[i].apply(this,t),e};var s="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=[];return e.push((function(e,r,o,i,a,s,u){t(e,r,o,i,a,s,u)&&n.push(e)})),this[i].apply(this,e),n};var u="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[u]=function(){var e,t,n=Array.prototype.slice.call(arguments);if(n.length<2||n.length>4)throw new W("Graph.".concat(u,": invalid number of arguments (expecting 2, 3 or 4 and got ").concat(n.length,")."));if("function"==typeof n[n.length-1]&&"function"!=typeof n[n.length-2])throw new W("Graph.".concat(u,": missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array."));2===n.length?(e=n[0],t=n[1],n=[]):3===n.length?(e=n[1],t=n[2],n=[n[0]]):4===n.length&&(e=n[2],t=n[3],n=[n[0],n[1]]);var r=t;return n.push((function(t,n,o,i,a,s,u){r=e(r,t,n,o,i,a,s,u)})),this[i].apply(this,n),r}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i="find"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(e,t,n){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return!1;if(1===arguments.length)return le(!0,this,r,n=e);if(2===arguments.length){e=""+e,n=t;var a=this._nodes.get(e);if(void 0===a)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return fe(!0,this.multi,"mixed"===r?this.type:r,o,a,n)}if(3===arguments.length){e=""+e,t=""+t;var s=this._nodes.get(e);if(!s)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(i,': could not find the "').concat(t,'" target node in the graph.'));return ge(!0,r,this.multi,o,s,t,n)}throw new W("Graph.".concat(i,": too many arguments (expecting 1, 2 or 3 and got ").concat(arguments.length,")."))};var a="some"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();return e.push((function(e,n,r,o,i,a,s){return t(e,n,r,o,i,a,s)})),!!this[i].apply(this,e)};var s="every"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[s]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();return e.push((function(e,n,r,o,i,a,s){return!t(e,n,r,o,i,a,s)})),!this[i].apply(this,e)}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i=n.slice(0,-1)+"Entries";e.prototype[i]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return P.empty();if(!arguments.length)return de(this,r);if(1===arguments.length){e=""+e;var n=this._nodes.get(e);if(!n)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return pe(r,o,n)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(i,': could not find the "').concat(t,'" target node in the graph.'));return ve(r,o,a,t)}throw new W("Graph.".concat(i,": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length,")."))}}(e,t)}))}(Ne),function(e){ye.forEach((function(t){(function(e,t){var n=t.name,r=t.type,o=t.direction;e.prototype[n]=function(e){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return[];e=""+e;var t=this._nodes.get(e);if(void 0===t)throw new H("Graph.".concat(n,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){if("mixed"!==e){if("undirected"===e)return Object.keys(n.undirected);if("string"==typeof t)return Object.keys(n[t])}var r=[];return Ee(!1,e,t,n,(function(e){r.push(e)})),r}("mixed"===r?this.type:r,o,t)}})(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(e,t){if("mixed"===r||"mixed"===this.type||r===this.type){e=""+e;var n=this._nodes.get(e);if(void 0===n)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));Ee(!1,"mixed"===r?this.type:r,o,n,t)}};var a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(e,t){var n=[];return this[i](e,(function(e,r){n.push(t(e,r))})),n};var s="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(e,t){var n=[];return this[i](e,(function(e,r){t(e,r)&&n.push(e)})),n};var u="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[u]=function(e,t,n){if(arguments.length<3)throw new W("Graph.".concat(u,": missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array."));var r=n;return this[i](e,(function(e,n){r=t(r,e,n)})),r}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i=n[0].toUpperCase()+n.slice(1,-1),a="find"+i;e.prototype[a]=function(e,t){if("mixed"===r||"mixed"===this.type||r===this.type){e=""+e;var n=this._nodes.get(e);if(void 0===n)throw new H("Graph.".concat(a,': could not find the "').concat(e,'" node in the graph.'));return Ee(!0,"mixed"===r?this.type:r,o,n,t)}};var s="some"+i;e.prototype[s]=function(e,t){return!!this[a](e,t)};var u="every"+i;e.prototype[u]=function(e,t){return!this[a](e,(function(e,n){return!t(e,n)}))}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i=n.slice(0,-1)+"Entries";e.prototype[i]=function(e){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return P.empty();e=""+e;var t=this._nodes.get(e);if(void 0===t)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){if("mixed"!==e){if("undirected"===e)return xe(null,n,n.undirected);if("string"==typeof t)return xe(null,n,n[t])}var r=P.empty(),o=new be;return"undirected"!==e&&("out"!==t&&(r=te(r,xe(o,n,n.in))),"in"!==t&&(r=te(r,xe(o,n,n.out)))),"directed"!==e&&(r=te(r,xe(o,n,n.undirected))),r}("mixed"===r?this.type:r,o,t)}}(e,t)}))}(Ne);var je=function(e){function n(t){var n=u({type:"directed"},t);if("multi"in n&&!1!==n.multi)throw new W("DirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("directed"!==n.type)throw new W('DirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Ne),Re=function(e){function n(t){var n=u({type:"undirected"},t);if("multi"in n&&!1!==n.multi)throw new W("UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("undirected"!==n.type)throw new W('UndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Ne),Ie=function(e){function n(t){var n=u({multi:!0},t);if("multi"in n&&!0!==n.multi)throw new W("MultiGraph.from: inconsistent indication that the graph should be simple in given options!");return e.call(this,n)||this}return t(n,e),n}(Ne),Be=function(e){function n(t){var n=u({type:"directed",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new W("MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("directed"!==n.type)throw new W('MultiDirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Ne),Ge=function(e){function n(t){var n=u({type:"undirected",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new W("MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("undirected"!==n.type)throw new W('MultiUndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Ne);function ze(e){e.from=function(t,n){var r=u({},t.options,n),o=new e(r);return o.import(t),o}}return ze(Ne),ze(je),ze(Re),ze(Ie),ze(Be),ze(Ge),Ne.Graph=Ne,Ne.DirectedGraph=je,Ne.UndirectedGraph=Re,Ne.MultiGraph=Ie,Ne.MultiDirectedGraph=Be,Ne.MultiUndirectedGraph=Ge,Ne.InvalidArgumentsGraphError=W,Ne.NotFoundGraphError=H,Ne.UsageGraphError=q,Ne}()},7677:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;(u=new Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},4660:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(8156)),o=l(n(5099)),i=l(n(6929)),a=l(n(683)),s=l(n(7685)),u=l(n(5751)),c=l(n(8310));function l(e){return e&&e.__esModule?e:{default:e}}function d(e){var t=e.classes,n=e.title,o=e.message;return r.default.createElement("div",null,r.default.createElement("span",{className:t.errorTitle},n),r.default.createElement("span",{className:t.errorMessage},o))}d.defaultProps={title:u.default.text("Error:"),message:u.default.text("Something was wrong"),classes:{}},d.propTypes={title:o.default.string,message:o.default.string,classes:o.default.object};var f=function(e){var t,n=e.error,o=e.onClose,l=e.style,f=e.classes,h=e.className,p=u.default.text("Close");if(r.default.isValidElement(n))t=n;else{var g=n||{},m=g.title,v=g.message;t=r.default.createElement(d,{classes:f,title:m,message:v})}return r.default.createElement("div",{className:(0,c.default)(f.errorBlock,h),style:l},r.default.createElement("div",{className:f.descriptionBlock},t),r.default.createElement("div",{className:f.closeIconContainer},r.default.createElement(i.default,{title:p,placement:"bottom"},r.default.createElement(a.default,{onClick:o,"aria-label":p},r.default.createElement(s.default,null)))))};f.propTypes={id:o.default.oneOfType([o.default.string,o.default.number]),error:o.default.oneOfType([o.default.node,o.default.shape({title:o.default.string,message:o.default.string})]),style:o.default.object,onClose:o.default.func,className:o.default.oneOfType([o.default.string,o.default.object]),classes:o.default.object},f.defaultProps={classes:{}};var h=f;t.default=h},4176:(e,t,n)=>{"use strict";t.ZP=void 0;var r=l(n(8096)),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(8156)),i=l(n(5099)),a=n(72),s=l(n(4660)),u=l(n(1444));function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function l(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function p(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,n,r,i=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=m(e);if(t()){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}(u);function u(e){var t,n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),o=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t.autoCloseInterval&&(t.timer&&(clearTimeout(t.timer),t.timer=null),e&&(t.timer=setTimeout((function(){t.handleCloseErrorMessage()}),t.autoCloseInterval)))},(r="processAutoCloseInterval")in(n=g(t=i.call(this,e)))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,u.$$instance=g(t),t.handleCloseErrorMessage=t.handleCloseErrorMessage.bind(g(t)),t.state={errors:[]},t}return t=u,r=[{key:"addError",value:function(e){u.$$instance&&(u.$$instance.setState({errors:u.$$instance.state.errors.concat(e)}),u.$$instance.processAutoCloseInterval())}}],(n=[{key:"handleCloseErrorMessage",value:function(){var e=this.state.errors,t=e.length;this.setState({errors:e.slice(0,t-1)}),this.processAutoCloseInterval(t>1)}},{key:"autoCloseInterval",get:function(){return 1e3*(this.props.autoCloseInterval||0)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.classes,r=this.state.errors,i=r.length,u=r[i-1];return o.default.createElement(a.CSSTransitionGroup,{transitionName:{enter:n.errorContainerEnter,enterActive:n.errorContainerEnterActive,leave:n.errorContainerLeave,leaveActive:n.errorContainerLeaveActive,appear:n.errorContainerEnter,appearActive:n.errorContainerEnterActive},transitionAppearTimeout:600,transitionEnterTimeout:600,transitionLeaveTimeout:300,transitionAppear:!0},Boolean(i)&&o.default.createElement(s.default,{classes:n,key:"errorMessage".concat(i),onClose:this.handleCloseErrorMessage,error:u,className:t}))}}])&&f(t.prototype,n),r&&f(t,r),u}(o.PureComponent);v.propTypes={className:i.default.oneOfType([i.default.string,i.default.object]),classes:i.default.object,autoCloseInterval:i.default.number},v.defaultProps={classes:{}};var y=(0,r.default)(u.default)(v);t.ZP=y},1444:(e,t)=>{"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="#FFFFFF";t.default=function(e){var t;return{errorContainer:{zIndex:2},errorContainerEnter:{opacity:0},errorContainerEnterActive:{opacity:1,transition:"opacity 600ms ease-in"},errorContainerLeave:{opacity:1},errorContainerLeaveActive:{opacity:0,transition:"opacity 300ms ease-in"},errorBlock:(t={zIndex:2,color:r,position:"absolute",display:"flex",left:346,top:64,right:90,background:"linear-gradient(180deg, ".concat("#E54C4C"," 0%, ").concat("#F16262"," 100%)"),minHeight:48,justifyContent:"space-between",alignItems:"baseline",boxShadow:"0 0 24px 0 rgba(0,0,0,0.22)"},n(t,e.breakpoints.down("sm"),{left:0,right:0}),n(t,e.breakpoints.down("md"),{left:288,right:32}),n(t,e.breakpoints.down("lg"),{left:336,right:80}),n(t,e.breakpoints.up("xl"),{left:456,right:200}),t),descriptionBlock:{fontSize:13,padding:"20px 32px",alignSelf:"center",overflow:"hidden",textOverflow:"ellipsis"},errorTitle:{fontWeight:"bold",marginRight:7},errorMessage:{},closeIconContainer:{position:"relative","& button":{color:r,marginTop:5}}}}},4129:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=c(n(8156)),i=c(n(5099)),a=c(n(2205)),s=c(n(9490)),u=n(9685);function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}u.nameShape.isRequired,i.default.bool,i.default.bool,i.default.bool,(0,u.transitionTimeout)("Appear"),(0,u.transitionTimeout)("Enter"),(0,u.transitionTimeout)("Leave");var f=function(e){function t(){var n,r;l(this,t);for(var i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=r=d(this,e.call.apply(e,[this].concat(a))),r._wrapChild=function(e){return o.default.createElement(s.default,{name:r.props.transitionName,appear:r.props.transitionAppear,enter:r.props.transitionEnter,leave:r.props.transitionLeave,appearTimeout:r.props.transitionAppearTimeout,enterTimeout:r.props.transitionEnterTimeout,leaveTimeout:r.props.transitionLeaveTimeout},e)},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return o.default.createElement(a.default,r({},this.props,{childFactory:this._wrapChild}))},t}(o.default.Component);f.displayName="CSSTransitionGroup",f.propTypes={},f.defaultProps={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},t.default=f,e.exports=t.default},9490:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=f(n(2196)),i=f(n(4812)),a=f(n(6463)),s=n(4596),u=f(n(8156)),c=f(n(5099)),l=n(7111),d=n(9685);function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=[];s.transitionEnd&&g.push(s.transitionEnd),s.animationEnd&&g.push(s.animationEnd),c.default.node,d.nameShape.isRequired,c.default.bool,c.default.bool,c.default.bool,c.default.number,c.default.number,c.default.number;var m=function(e){function t(){var n,r;h(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=p(this,e.call.apply(e,[this].concat(i))),r.componentWillAppear=function(e){r.props.appear?r.transition("appear",e,r.props.appearTimeout):e()},r.componentWillEnter=function(e){r.props.enter?r.transition("enter",e,r.props.enterTimeout):e()},r.componentWillLeave=function(e){r.props.leave?r.transition("leave",e,r.props.leaveTimeout):e()},p(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach((function(e){clearTimeout(e)})),this.classNameAndNodeQueue.length=0},t.prototype.transition=function(e,t,n){var r=(0,l.findDOMNode)(this);if(r){var a=this.props.name[e]||this.props.name+"-"+e,u=this.props.name[e+"Active"]||a+"-active",c=null,d=void 0;(0,o.default)(r,a),this.queueClassAndNode(u,r);var f=function(e){e&&e.target!==r||(clearTimeout(c),d&&d(),(0,i.default)(r,a),(0,i.default)(r,u),d&&d(),t&&t())};n?(c=setTimeout(f,n),this.transitionTimeouts.push(c)):s.transitionEnd&&(d=function(e,t){return g.length?g.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){g.length&&g.forEach((function(n){return e.removeEventListener(n,t,!1)}))}}(r,f))}else t&&t()},t.prototype.queueClassAndNode=function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=(0,a.default)((function(){return n.flushClassNameAndNodeQueue()})))},t.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,(0,o.default)(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null},t.prototype.render=function(){var e=r({},this.props);return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,u.default.cloneElement(u.default.Children.only(this.props.children),e)},t}(u.default.Component);m.displayName="CSSTransitionGroupChild",m.propTypes={},t.default=m,e.exports=t.default},2205:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=u(n(8994)),i=u(n(8156)),a=u(n(5099)),s=(u(n(2564)),n(276));function u(e){return e&&e.__esModule?e:{default:e}}a.default.any,a.default.func,a.default.node;var c=function(e){function t(n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,o));return i.performAppear=function(e,t){i.currentlyTransitioningKeys[e]=!0,t.componentWillAppear?t.componentWillAppear(i._handleDoneAppearing.bind(i,e,t)):i._handleDoneAppearing(e,t)},i._handleDoneAppearing=function(e,t){t.componentDidAppear&&t.componentDidAppear(),delete i.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(i.props.children);n&&n.hasOwnProperty(e)||i.performLeave(e,t)},i.performEnter=function(e,t){i.currentlyTransitioningKeys[e]=!0,t.componentWillEnter?t.componentWillEnter(i._handleDoneEntering.bind(i,e,t)):i._handleDoneEntering(e,t)},i._handleDoneEntering=function(e,t){t.componentDidEnter&&t.componentDidEnter(),delete i.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(i.props.children);n&&n.hasOwnProperty(e)||i.performLeave(e,t)},i.performLeave=function(e,t){i.currentlyTransitioningKeys[e]=!0,t.componentWillLeave?t.componentWillLeave(i._handleDoneLeaving.bind(i,e,t)):i._handleDoneLeaving(e,t)},i._handleDoneLeaving=function(e,t){t.componentDidLeave&&t.componentDidLeave(),delete i.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(i.props.children);n&&n.hasOwnProperty(e)?i.keysToEnter.push(e):i.setState((function(t){var n=r({},t.children);return delete n[e],{children:n}}))},i.childRefs=Object.create(null),i.state={children:(0,s.getChildMapping)(n.children)},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},t.prototype.componentDidMount=function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t,this.childRefs[t])},t.prototype.componentWillReceiveProps=function(e){var t=(0,s.getChildMapping)(e.children),n=this.state.children;for(var r in this.setState({children:(0,s.mergeChildMappings)(n,t)}),t){var o=n&&n.hasOwnProperty(r);!t[r]||o||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(var i in n){var a=t&&t.hasOwnProperty(i);!n[i]||a||this.currentlyTransitioningKeys[i]||this.keysToLeave.push(i)}},t.prototype.componentDidUpdate=function(){var e=this,t=this.keysToEnter;this.keysToEnter=[],t.forEach((function(t){return e.performEnter(t,e.childRefs[t])}));var n=this.keysToLeave;this.keysToLeave=[],n.forEach((function(t){return e.performLeave(t,e.childRefs[t])}))},t.prototype.render=function(){var e=this,t=[],n=function(n){var r=e.state.children[n];if(r){var a="string"!=typeof r.ref,s=e.props.childFactory(r),u=function(t){e.childRefs[n]=t};s===r&&a&&(u=(0,o.default)(r.ref,u)),t.push(i.default.cloneElement(s,{key:n,ref:u}))}};for(var a in this.state.children)n(a);var s=r({},this.props);return delete s.transitionLeave,delete s.transitionName,delete s.transitionAppear,delete s.transitionEnter,delete s.childFactory,delete s.transitionLeaveTimeout,delete s.transitionEnterTimeout,delete s.transitionAppearTimeout,delete s.component,i.default.createElement(this.props.component,s,t)},t}(i.default.Component);c.displayName="TransitionGroup",c.propTypes={},c.defaultProps={component:"span",childFactory:function(e){return e}},t.default=c,e.exports=t.default},72:(e,t,n)=>{"use strict";var r=i(n(4129)),o=i(n(2205));function i(e){return e&&e.__esModule?e:{default:e}}e.exports={TransitionGroup:o.default,CSSTransitionGroup:r.default}},276:(e,t,n)=>{"use strict";t.__esModule=!0,t.getChildMapping=function(e){if(!e)return e;var t={};return r.Children.map(e,(function(e){return e})).forEach((function(e){t[e.key]=e})),t},t.mergeChildMappings=function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},o=[];for(var i in e)t.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);var a=void 0,s={};for(var u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var c=r[u][a];s[r[u][a]]=n(c)}s[u]=n(u)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s};var r=n(8156)},9685:(e,t,n)=>{"use strict";t.__esModule=!0,t.nameShape=void 0,t.transitionTimeout=function(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}},o(n(8156));var r=o(n(5099));function o(e){return e&&e.__esModule?e:{default:e}}t.nameShape=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,leave:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterActive:r.default.string,leave:r.default.string,leaveActive:r.default.string,appear:r.default.string,appearActive:r.default.string})])},8765:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigmaContainer=void 0;const r=n(8303),o=r.__importStar(n(8156)),i=n(9358),a=r.__importDefault(n(8996)),s=n(222),u=n(4222);t.SigmaContainer=({graphOptions:e,id:t,className:n,style:r,initialSettings:c,children:l})=>{const d=o.useRef(null),f=o.useRef(null),h={className:`react-sigma-v2 ${n||""}`,id:t,style:r},[p,g]=o.useState(null),m=o.useRef();u.isEqual(m.current,c)||(m.current=c);const v=o.useRef();u.isEqual(v.current,e)||(v.current=e),o.useEffect((()=>{let e=null;return null!==f.current&&(e=new i.Sigma(new a.default(v.current),f.current,m.current),g(e)),()=>{g((()=>(e&&e.kill(),null)))}}),[f,v,m]);const y=o.useMemo((()=>p&&d.current?{sigma:p,container:d.current}:null),[p,d.current]),b=null!==y?o.default.createElement(s.SigmaProvider,{value:y},l):null;return o.default.createElement("div",Object.assign({},h,{ref:d}),o.default.createElement("div",{className:"sigma-container",ref:f}),b)}},222:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSigmaContext=t.SigmaProvider=t.SigmaContext=void 0;const r=n(8156);t.SigmaContext=r.createContext(null),t.SigmaProvider=t.SigmaContext.Provider,t.useSigmaContext=function(){const e=r.useContext(t.SigmaContext);if(null==e)throw new Error("No context provided: useSigmaContext() can only be used in a descendant of <SigmaContainer>");return e}},178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlsContainer=void 0;const r=n(8303).__importDefault(n(8156));t.ControlsContainer=({id:e,className:t,style:n,children:o,position:i="bottom-left"})=>{const a={className:`react-sigma-controls ${t||""} ${i}`,id:e,style:n};return r.default.createElement("div",Object.assign({},a),o)}},8460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ForceAtlasControl=void 0;const r=n(8303),o=r.__importStar(n(8156)),i=r.__importDefault(n(8301)),a=n(4222),s=n(4739);t.ForceAtlasControl=({id:e,className:t,style:n,settings:r,autoRunFor:u=-1,customStopLayout:c,customStartLayout:l})=>{const d=s.useSigma(),f=o.useRef(null);r&&!a.isEqual(f.current,r)&&(f.current=r);const[h,p]=o.useState(null),[g,m]=o.useState(!1);o.useEffect((()=>{if(!d)return;const e=new i.default(d.getGraph(),f.current||{});p(e);let t=null;return u>-1&&d.getGraph().order>0&&(m(!0),t=u>0?window.setTimeout((()=>{m(!1)}),u):null),()=>{e&&e.kill(),t&&clearTimeout(t)}}),[u,f,d]),o.useEffect((()=>{try{h&&(!0===g?h.start():h.stop())}catch(e){}}),[h,g]);const v=!0===g&&!c||!1===g&&!l?"default":"",y={className:`react-sigma-control-forceatlas2 ${g?"running":"stopped"} ${t||""}`,id:e,style:n};return o.default.createElement("div",Object.assign({},y),o.default.createElement("button",{className:v,onClick:()=>m((e=>!e)),title:g?"Stop the layout animation":"Start the layout animation"},!0===g?c:l))}},484:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FullScreenControl=void 0;const r=n(8303).__importStar(n(8156)),o=n(222);t.FullScreenControl=({id:e,className:t,style:n,customEnterFullScreen:i,customExitFullScreen:a})=>{const{container:s}=o.useSigmaContext(),[u,c]=r.useState(!1),l=()=>c((e=>!e));r.useEffect((()=>(document.addEventListener("fullscreenchange",l),()=>document.removeEventListener("fullscreenchange",l))),[l]);const d=u&&!a||!u&&!i?"default":"",f={className:`react-sigma-control-${u?"normalscreen":"fullscreen"} ${t||""}`,id:e,style:n};return document.fullscreenEnabled?r.default.createElement("div",Object.assign({},f),r.default.createElement("button",{className:d,onClick:()=>{return e=s,void(document.fullscreenElement!==e?e.requestFullscreen():document.exitFullscreen&&document.exitFullscreen());var e},title:"Toggle Fullscreen"},u?a:i)):null}},948:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchControl=void 0;const r=n(8303).__importStar(n(8156)),o=n(4739);t.SearchControl=({id:e,className:t,style:n})=>{const i=o.useSigma(),[a,s]=r.useState(""),[u,c]=r.useState([]),[l,d]=r.useState(null);r.useEffect((()=>{const e=[];!l&&a.length>1&&i.getGraph().forEachNode(((t,n)=>{n.label&&n.label.toLowerCase().includes(a.toLowerCase())&&e.push({id:t,label:n.label})})),c(e)}),[a]),r.useEffect((()=>{if(!l)return;i.getGraph().setNodeAttribute(l,"highlighted",!0);const e=i.getNodeDisplayData(l);return e&&i.getCamera().animate(e,{easing:"linear",duration:500}),()=>{i.getGraph().setNodeAttribute(l,"highlighted",!1)}}),[l]);const f={className:`react-sigma-search ${t||""}`,id:e,style:n};return r.default.createElement("div",Object.assign({},f),r.default.createElement("input",{type:"text",placeholder:"Search...",list:"nodes",value:a,onChange:e=>{const t=e.target.value,n=u.find((e=>e.label===t));n?(s(n.label),c([]),d(n.id)):(d(null),s(t))}}),r.default.createElement("datalist",{id:"nodes"},u.map((e=>r.default.createElement("option",{key:e.id,value:e.label},e.label)))))}},3855:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZoomControl=void 0;const r=n(8303).__importDefault(n(8156)),o=n(4739);t.ZoomControl=({className:e,style:t,animationDuration:n=200,customZoomIn:i,customZoomOut:a,customZoomCenter:s})=>{const u=o.useSigma();function c(e){u&&(e?e>0?u.getCamera().animatedZoom({duration:n,factor:1.5}):e<0&&u.getCamera().animatedUnzoom({duration:n,factor:1.5}):u.getCamera().animatedReset({duration:n}))}const l={className:e,style:t};return r.default.createElement(r.default.Fragment,null,r.default.createElement("div",Object.assign({},l,{className:`react-sigma-control-zoom-in ${e||""}`}),r.default.createElement("button",{className:i?"":"default",onClick:()=>c(1),title:"Zoom In"},i)),r.default.createElement("div",Object.assign({},l,{className:`react-sigma-control-zoom-out ${e||""}`}),r.default.createElement("button",{className:a?"":"default",onClick:()=>c(-1),title:"Zoom Out"},a)),r.default.createElement("div",Object.assign({},l,{className:`react-sigma-control-zoom-center ${e||""}`}),r.default.createElement("button",{className:s?"":"default",onClick:()=>c(),title:"See whole graph"},s)))}},6370:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLoadGraph=void 0;const r=n(8156),o=n(4739);t.useLoadGraph=function(){const e=o.useSigma();return r.useCallback(((t,n=!0)=>{e&&t&&(n&&e.getGraph().order>0&&e.getGraph().clear(),e.getGraph().import(t),e.refresh())}),[e])}},4282:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useRegisterEvents=void 0;const r=n(8156),o=n(4739),i=n(5945),a=["clickNode","rightClickNode","downNode","enterNode","leaveNode","doubleClickNode","wheelNode","clickEdge","rightClickEdge","downEdge","enterEdge","leaveEdge","doubleClickEdge","wheelEdge","clickStage","rightClickStage","downStage","doubleClickStage","wheelStage","kill"],s=["click","rightClick","mouseup","mousedown","mousemove","doubleClick","wheel"],u=["mouseup","mousedown","mousemove"],c=["cameraUpdated"];t.useRegisterEvents=function(){const e=o.useSigma(),t=i.useSetSettings(),[n,l]=r.useState({});return r.useEffect((()=>{if(!e||!n)return;const r=Object.keys(n),o={},i={},l=e.getSettings();return r.some((e=>["clickEdge","rightClickEdge","doubleClickEdge","downEdge"].includes(e)))&&!1===l.enableEdgeClickEvents&&(o.enableEdgeClickEvents=!0,i.enableEdgeClickEvents=!1),r.some((e=>["enterEdge","leaveEdge"].includes(e)))&&!1===l.enableEdgeHoverEvents&&(o.enableEdgeHoverEvents=!0,i.enableEdgeHoverEvents=!1),r.some((e=>["wheelEdge"].includes(e)))&&!1===l.enableEdgeWheelEvents&&(o.enableEdgeWheelEvents=!0,i.enableEdgeWheelEvents=!1),Object.keys(o).length>0&&t(o),r.forEach((t=>{const r=n[t];a.includes(t)&&e.on(t,r),s.includes(t)&&e.getMouseCaptor().on(t,r),u.includes(t)&&e.getTouchCaptor().on(t,r),c.includes(t)&&e.getCamera().on("updated",r)})),()=>{let r;for(r in Object.keys(i).length>0&&t(i),n){const t=n[r];a.includes(r)&&e.removeListener(r,t),s.includes(r)&&e.getMouseCaptor().removeListener(r,t),u.includes(r)&&e.getTouchCaptor().removeListener(r,t),c.includes(r)&&e.getCamera().removeListener("updated",t)}}}),[e,n,t]),l}},5945:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSetSettings=void 0;const r=n(8156),o=n(4739);t.useSetSettings=function(){const e=o.useSigma(),[t,n]=r.useState({});return r.useEffect((()=>{if(!e||!t)return;const n={};return Object.keys(t).forEach((r=>{n[r]=t[r],e.setSetting(r,t[r])})),()=>{Object.keys(n).forEach((t=>{e.setSetting(t,n[t])}))}}),[e,t]),n}},4739:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSigma=void 0;const r=n(222);t.useSigma=function(){return r.useSigmaContext().sigma}},4986:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8303);r.__exportStar(n(8765),t),r.__exportStar(n(4739),t),r.__exportStar(n(4282),t),r.__exportStar(n(6370),t),r.__exportStar(n(5945),t),r.__exportStar(n(178),t),r.__exportStar(n(8460),t),r.__exportStar(n(3855),t),r.__exportStar(n(484),t),r.__exportStar(n(948),t),r.__exportStar(n(6799),t)},6799:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4222:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,c=128,l=1/0,d=9007199254740991,f=NaN,h=4294967295,p=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",w="[object Function]",E="[object GeneratorFunction]",x="[object Map]",_="[object Number]",C="[object Object]",S="[object Promise]",A="[object RegExp]",k="[object Set]",O="[object String]",D="[object Symbol]",L="[object WeakMap]",T="[object ArrayBuffer]",M="[object DataView]",P="[object Float32Array]",F="[object Float64Array]",N="[object Int8Array]",j="[object Int16Array]",R="[object Int32Array]",I="[object Uint8Array]",B="[object Uint8ClampedArray]",G="[object Uint16Array]",z="[object Uint32Array]",U=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,Y=RegExp(q.source),K=RegExp(V.source),$=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="a-z\\xdf-\\xf6\\xf8-\\xff",_e="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Se="["+Ce+"]",Ae="["+Ee+"]",ke="\\d+",Oe="["+xe+"]",De="[^\\ud800-\\udfff"+Ce+ke+"\\u2700-\\u27bf"+xe+_e+"]",Le="\\ud83c[\\udffb-\\udfff]",Te="[^\\ud800-\\udfff]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",Pe="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+_e+"]",Ne="(?:"+Oe+"|"+De+")",je="(?:"+Fe+"|"+De+")",Re="(?:['’](?:d|ll|m|re|s|t|ve))?",Ie="(?:['’](?:D|LL|M|RE|S|T|VE))?",Be="(?:"+Ae+"|"+Le+")?",Ge="[\\ufe0e\\ufe0f]?",ze=Ge+Be+"(?:\\u200d(?:"+[Te,Me,Pe].join("|")+")"+Ge+Be+")*",Ue="(?:"+["[\\u2700-\\u27bf]",Me,Pe].join("|")+")"+ze,We="(?:"+[Te+Ae+"?",Ae,Me,Pe,"[\\ud800-\\udfff]"].join("|")+")",He=RegExp("['’]","g"),qe=RegExp(Ae,"g"),Ve=RegExp(Le+"(?="+Le+")|"+We+ze,"g"),Ye=RegExp([Fe+"?"+Oe+"+"+Re+"(?="+[Se,Fe,"$"].join("|")+")",je+"+"+Ie+"(?="+[Se,Fe+Ne,"$"].join("|")+")",Fe+"?"+Ne+"+"+Re,Fe+"+"+Ie,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ke,Ue].join("|"),"g"),Ke=RegExp("[\\u200d\\ud800-\\udfff"+Ee+"\\ufe0e\\ufe0f]"),$e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ze=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xe=-1,Qe={};Qe[P]=Qe[F]=Qe[N]=Qe[j]=Qe[R]=Qe[I]=Qe[B]=Qe[G]=Qe[z]=!0,Qe[g]=Qe[m]=Qe[T]=Qe[v]=Qe[M]=Qe[y]=Qe[b]=Qe[w]=Qe[x]=Qe[_]=Qe[C]=Qe[A]=Qe[k]=Qe[O]=Qe[L]=!1;var Je={};Je[g]=Je[m]=Je[T]=Je[M]=Je[v]=Je[y]=Je[P]=Je[F]=Je[N]=Je[j]=Je[R]=Je[x]=Je[_]=Je[C]=Je[A]=Je[k]=Je[O]=Je[D]=Je[I]=Je[B]=Je[G]=Je[z]=!0,Je[b]=Je[w]=Je[L]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ot="object"==typeof self&&self&&self.Object===Object&&self,it=rt||ot||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,ut=st&&st.exports===at,ct=ut&&rt.process,lt=function(){try{return st&&st.require&&st.require("util").types||ct&&ct.binding&&ct.binding("util")}catch(e){}}(),dt=lt&&lt.isArrayBuffer,ft=lt&&lt.isDate,ht=lt&&lt.isMap,pt=lt&&lt.isRegExp,gt=lt&&lt.isSet,mt=lt&&lt.isTypedArray;function vt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function yt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function wt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Et(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function xt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function _t(e,t){return!(null==e||!e.length)&&Pt(e,t,0)>-1}function Ct(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function St(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function At(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function kt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ot(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Lt=Rt("length");function Tt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Mt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Pt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Mt(e,Nt,n)}function Ft(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Nt(e){return e!=e}function jt(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:f}function Rt(e){return function(t){return null==t?o:t[e]}}function It(e){return function(t){return null==e?o:e[t]}}function Bt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Gt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function zt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ut(e){return e?e.slice(0,sn(e)+1).replace(re,""):e}function Wt(e){return function(t){return e(t)}}function Ht(e,t){return St(t,(function(t){return e[t]}))}function qt(e,t){return e.has(t)}function Vt(e,t){for(var n=-1,r=e.length;++n<r&&Pt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length;n--&&Pt(t,e[n],0)>-1;);return n}function Kt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var $t=It({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Zt=It({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Xt(e){return"\\"+et[e]}function Qt(e){return Ke.test(e)}function Jt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Qt(e)?function(e){for(var t=Ve.lastIndex=0;Ve.test(e);)++t;return t}(e):Lt(e)}function an(e){return Qt(e)?function(e){return e.match(Ve)||[]}(e):function(e){return e.split("")}(e)}function sn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var un=It({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),cn=function e(t){var n,r=(t=null==t?it:cn.defaults(it.Object(),t,cn.pick(it,Ze))).Array,oe=t.Date,Ee=t.Error,xe=t.Function,_e=t.Math,Ce=t.Object,Se=t.RegExp,Ae=t.String,ke=t.TypeError,Oe=r.prototype,De=xe.prototype,Le=Ce.prototype,Te=t["__core-js_shared__"],Me=De.toString,Pe=Le.hasOwnProperty,Fe=0,Ne=(n=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",je=Le.toString,Re=Me.call(Ce),Ie=it._,Be=Se("^"+Me.call(Pe).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=ut?t.Buffer:o,ze=t.Symbol,Ue=t.Uint8Array,We=Ge?Ge.allocUnsafe:o,Ve=en(Ce.getPrototypeOf,Ce),Ke=Ce.create,et=Le.propertyIsEnumerable,rt=Oe.splice,ot=ze?ze.isConcatSpreadable:o,at=ze?ze.iterator:o,st=ze?ze.toStringTag:o,ct=function(){try{var e=li(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==it.clearTimeout&&t.clearTimeout,Lt=oe&&oe.now!==it.Date.now&&oe.now,It=t.setTimeout!==it.setTimeout&&t.setTimeout,ln=_e.ceil,dn=_e.floor,fn=Ce.getOwnPropertySymbols,hn=Ge?Ge.isBuffer:o,pn=t.isFinite,gn=Oe.join,mn=en(Ce.keys,Ce),vn=_e.max,yn=_e.min,bn=oe.now,wn=t.parseInt,En=_e.random,xn=Oe.reverse,_n=li(t,"DataView"),Cn=li(t,"Map"),Sn=li(t,"Promise"),An=li(t,"Set"),kn=li(t,"WeakMap"),On=li(Ce,"create"),Dn=kn&&new kn,Ln={},Tn=Bi(_n),Mn=Bi(Cn),Pn=Bi(Sn),Fn=Bi(An),Nn=Bi(kn),jn=ze?ze.prototype:o,Rn=jn?jn.valueOf:o,In=jn?jn.toString:o;function Bn(e){if(ns(e)&&!qa(e)&&!(e instanceof Wn)){if(e instanceof Un)return e;if(Pe.call(e,"__wrapped__"))return Gi(e)}return new Un(e)}var Gn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function zn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Vn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new qn(e);this.size=t.size}function $n(e,t){var n=qa(e),r=!n&&Ha(e),o=!n&&!r&&$a(e),i=!n&&!r&&!o&&ls(e),a=n||r||o||i,s=a?zt(e.length,Ae):[],u=s.length;for(var c in e)!t&&!Pe.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vi(c,u))||s.push(c);return s}function Zn(e){var t=e.length;return t?e[Vr(0,t-1)]:o}function Xn(e,t){return Fi(Oo(e),ar(t,0,e.length))}function Qn(e){return Fi(Oo(e))}function Jn(e,t,n){(n!==o&&!za(e[t],n)||n===o&&!(t in e))&&or(e,t,n)}function er(e,t,n){var r=e[t];Pe.call(e,t)&&za(r,n)&&(n!==o||t in e)||or(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(za(e[n][0],t))return n;return-1}function nr(e,t,n,r){return dr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function rr(e,t){return e&&Do(t,Ms(t),e)}function or(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:ks(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function sr(e,t,n,r,i,a){var s,u=1&t,c=2&t,l=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ts(e))return e;var d=qa(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Pe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Oo(e,s)}else{var f=hi(e),h=f==w||f==E;if($a(e))return xo(e,u);if(f==C||f==g||h&&!i){if(s=c||h?{}:gi(e),!u)return c?function(e,t){return Do(e,fi(e),t)}(e,function(e,t){return e&&Do(t,Ps(t),e)}(s,e)):function(e,t){return Do(e,di(e),t)}(e,rr(s,e))}else{if(!Je[f])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case T:return _o(e);case v:case y:return new o(+e);case M:return function(e,t){var n=t?_o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case P:case F:case N:case j:case R:case I:case B:case G:case z:return Co(e,n);case x:return new o;case _:case O:return new o(e);case A:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new o;case D:return r=e,Rn?Ce(Rn.call(r)):{}}}(e,f,u)}}a||(a=new Kn);var p=a.get(e);if(p)return p;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,o){s.set(o,sr(r,t,n,o,e,a))}));var m=d?o:(l?c?ri:ni:c?Ps:Ms)(e);return bt(m||e,(function(r,o){m&&(r=e[o=r]),er(s,o,sr(r,t,n,o,e,a))})),s}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ce(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new ke(i);return Li((function(){e.apply(o,n)}),t)}function lr(e,t,n,r){var o=-1,i=_t,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=St(t,Wt(n))),r?(i=Ct,a=!1):t.length>=200&&(i=qt,a=!1,t=new Yn(t));e:for(;++o<s;){var l=e[o],d=null==n?l:n(l);if(l=r||0!==l?l:0,a&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;u.push(l)}else i(t,d,r)||u.push(l)}return u}Bn.templateSettings={escape:$,evaluate:Z,interpolate:X,variable:"",imports:{_:Bn}},Bn.prototype=zn.prototype,Bn.prototype.constructor=Bn,Un.prototype=Gn(zn.prototype),Un.prototype.constructor=Un,Wn.prototype=Gn(zn.prototype),Wn.prototype.constructor=Wn,Hn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===a?o:n}return Pe.call(t,e)?t[e]:o},Hn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==o:Pe.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===o?a:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},qn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?o:t[n][1]},qn.prototype.has=function(e){return tr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(Cn||qn),string:new Hn}},Vn.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},Vn.prototype.get=function(e){return ui(this,e).get(e)},Vn.prototype.has=function(e){return ui(this,e).has(e)},Vn.prototype.set=function(e,t){var n=ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,a),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new qn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vn(r)}return n.set(e,t),this.size=n.size,this};var dr=Mo(br),fr=Mo(wr,!0);function hr(e,t){var n=!0;return dr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function pr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(u===o?s==s&&!cs(s):n(s,u)))var u=s,c=a}return c}function gr(e,t){var n=[];return dr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function mr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=mi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?mr(s,t-1,n,r,o):At(o,s):r||(o[o.length]=s)}return o}var vr=Po(),yr=Po(!0);function br(e,t){return e&&vr(e,t,Ms)}function wr(e,t){return e&&yr(e,t,Ms)}function Er(e,t){return xt(t,(function(t){return Qa(e[t])}))}function xr(e,t){for(var n=0,r=(t=yo(t,e)).length;null!=e&&n<r;)e=e[Ii(t[n++])];return n&&n==r?e:o}function _r(e,t,n){var r=t(e);return qa(e)?r:At(r,n(e))}function Cr(e){return null==e?e===o?"[object Undefined]":"[object Null]":st&&st in Ce(e)?function(e){var t=Pe.call(e,st),n=e[st];try{e[st]=o;var r=!0}catch(e){}var i=je.call(e);return r&&(t?e[st]=n:delete e[st]),i}(e):function(e){return je.call(e)}(e)}function Sr(e,t){return e>t}function Ar(e,t){return null!=e&&Pe.call(e,t)}function kr(e,t){return null!=e&&t in Ce(e)}function Or(e,t,n){for(var i=n?Ct:_t,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,d=[];u--;){var f=e[u];u&&t&&(f=St(f,Wt(t))),l=yn(f.length,l),c[u]=!n&&(t||a>=120&&f.length>=120)?new Yn(u&&f):o}f=e[0];var h=-1,p=c[0];e:for(;++h<a&&d.length<l;){var g=f[h],m=t?t(g):g;if(g=n||0!==g?g:0,!(p?qt(p,m):i(d,m,n))){for(u=s;--u;){var v=c[u];if(!(v?qt(v,m):i(e[u],m,n)))continue e}p&&p.push(m),d.push(g)}}return d}function Dr(e,t,n){var r=null==(e=Ai(e,t=yo(t,e)))?e:e[Ii(Xi(t))];return null==r?o:vt(r,e,n)}function Lr(e){return ns(e)&&Cr(e)==g}function Tr(e,t,n,r,i){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=qa(e),u=qa(t),c=s?m:hi(e),l=u?m:hi(t),d=(c=c==g?C:c)==C,f=(l=l==g?C:l)==C,h=c==l;if(h&&$a(e)){if(!$a(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new Kn),s||ls(e)?ei(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!i(new Ue(e),new Ue(t)));case v:case y:case _:return za(+e,+t);case b:return e.name==t.name&&e.message==t.message;case A:case O:return e==t+"";case x:var s=Jt;case k:var u=1&r;if(s||(s=nn),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=ei(s(e),s(t),r,o,i,a);return a.delete(e),l;case D:if(Rn)return Rn.call(e)==Rn.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var p=d&&Pe.call(e,"__wrapped__"),w=f&&Pe.call(t,"__wrapped__");if(p||w){var E=p?e.value():e,S=w?t.value():t;return a||(a=new Kn),i(E,S,n,r,a)}}return!!h&&(a||(a=new Kn),function(e,t,n,r,i,a){var s=1&n,u=ni(e),c=u.length;if(c!=ni(t).length&&!s)return!1;for(var l=c;l--;){var d=u[l];if(!(s?d in t:Pe.call(t,d)))return!1}var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=s;++l<c;){var m=e[d=u[l]],v=t[d];if(r)var y=s?r(v,m,d,t,e,a):r(m,v,d,e,t,a);if(!(y===o?m===v||i(m,v,n,r,a):y)){p=!1;break}g||(g="constructor"==d)}if(p&&!g){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,r,i,a))}(e,t,n,r,Tr,i))}function Mr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Ce(e);i--;){var u=n[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var c=(u=n[i])[0],l=e[c],d=u[1];if(s&&u[2]){if(l===o&&!(c in e))return!1}else{var f=new Kn;if(r)var h=r(l,d,c,e,t,f);if(!(h===o?Tr(d,l,3,r,f):h))return!1}}return!0}function Pr(e){return!(!ts(e)||(t=e,Ne&&Ne in t))&&(Qa(e)?Be:ge).test(Bi(e));var t}function Fr(e){return"function"==typeof e?e:null==e?ou:"object"==typeof e?qa(e)?Br(e[0],e[1]):Ir(e):hu(e)}function Nr(e){if(!xi(e))return mn(e);var t=[];for(var n in Ce(e))Pe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function jr(e,t){return e<t}function Rr(e,t){var n=-1,o=Ya(e)?r(e.length):[];return dr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Ir(e){var t=ci(e);return 1==t.length&&t[0][2]?Ci(t[0][0],t[0][1]):function(n){return n===e||Mr(n,e,t)}}function Br(e,t){return bi(e)&&_i(t)?Ci(Ii(e),t):function(n){var r=ks(n,e);return r===o&&r===t?Os(n,e):Tr(t,r,3)}}function Gr(e,t,n,r,i){e!==t&&vr(t,(function(a,s){if(i||(i=new Kn),ts(a))!function(e,t,n,r,i,a,s){var u=Oi(e,n),c=Oi(t,n),l=s.get(c);if(l)Jn(e,n,l);else{var d=a?a(u,c,n+"",e,t,s):o,f=d===o;if(f){var h=qa(c),p=!h&&$a(c),g=!h&&!p&&ls(c);d=c,h||p||g?qa(u)?d=u:Ka(u)?d=Oo(u):p?(f=!1,d=xo(c,!0)):g?(f=!1,d=Co(c,!0)):d=[]:is(c)||Ha(c)?(d=u,Ha(u)?d=ys(u):ts(u)&&!Qa(u)||(d=gi(c))):f=!1}f&&(s.set(c,d),i(d,c,r,a,s),s.delete(c)),Jn(e,n,d)}}(e,t,s,n,Gr,r,i);else{var u=r?r(Oi(e,s),a,s+"",e,t,i):o;u===o&&(u=a),Jn(e,s,u)}}),Ps)}function zr(e,t){var n=e.length;if(n)return vi(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?St(t,(function(e){return qa(e)?function(t){return xr(t,1===e.length?e[0]:e)}:e})):[ou];var r=-1;t=St(t,Wt(si()));var o=Rr(e,(function(e,n,o){var i=St(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var u=So(o[r],i[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Wr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=xr(e,a);n(s,a)&&Xr(i,yo(a,e),s)}return i}function Hr(e,t,n,r){var o=r?Ft:Pt,i=-1,a=t.length,s=e;for(e===t&&(t=Oo(t)),n&&(s=St(e,Wt(n)));++i<a;)for(var u=0,c=t[i],l=n?n(c):c;(u=o(s,l,u,r))>-1;)s!==e&&rt.call(s,u,1),rt.call(e,u,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;vi(o)?rt.call(e,o,1):co(e,o)}}return e}function Vr(e,t){return e+dn(En()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=dn(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Ti(Si(e,t,ou),e+"")}function $r(e){return Zn(zs(e))}function Zr(e,t){var n=zs(e);return Fi(n,ar(t,0,n.length))}function Xr(e,t,n,r){if(!ts(e))return e;for(var i=-1,a=(t=yo(t,e)).length,s=a-1,u=e;null!=u&&++i<a;){var c=Ii(t[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=u[c];(l=r?r(d,c,u):o)===o&&(l=ts(d)?d:vi(t[i+1])?[]:{})}er(u,c,l),u=u[c]}return e}var Qr=Dn?function(e,t){return Dn.set(e,t),e}:ou,Jr=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:tu(t),writable:!0})}:ou;function eo(e){return Fi(zs(e))}function to(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function no(e,t){var n;return dr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,ou,n)}function oo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,u=null===t,c=cs(t),l=t===o;i<a;){var d=dn((i+a)/2),f=n(e[d]),h=f!==o,p=null===f,g=f==f,m=cs(f);if(s)var v=r||g;else v=l?g&&(r||h):u?g&&h&&(r||!p):c?g&&h&&!p&&(r||!m):!p&&!m&&(r?f<=t:f<t);v?i=d+1:a=d}return yn(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!za(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:cs(e)?f:+e}function so(e){if("string"==typeof e)return e;if(qa(e))return St(e,so)+"";if(cs(e))return In?In.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function uo(e,t,n){var r=-1,o=_t,i=e.length,a=!0,s=[],u=s;if(n)a=!1,o=Ct;else if(i>=200){var c=t?null:Ko(e);if(c)return nn(c);a=!1,o=qt,u=new Yn}else u=t?[]:s;e:for(;++r<i;){var l=e[r],d=t?t(l):l;if(l=n||0!==l?l:0,a&&d==d){for(var f=u.length;f--;)if(u[f]===d)continue e;t&&u.push(d),s.push(l)}else o(u,d,n)||(u!==s&&u.push(d),s.push(l))}return s}function co(e,t){return null==(e=Ai(e,t=yo(t,e)))||delete e[Ii(Xi(t))]}function lo(e,t,n,r){return Xr(e,t,n(xr(e,t)),r)}function fo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function ho(e,t){var n=e;return n instanceof Wn&&(n=n.value()),kt(t,(function(e,t){return t.func.apply(t.thisArg,At([e],t.args))}),n)}function po(e,t,n){var o=e.length;if(o<2)return o?uo(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],u=-1;++u<o;)u!=i&&(a[i]=lr(a[i]||s,e[u],t,n));return uo(mr(a,1),t,n)}function go(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var u=r<a?t[r]:o;n(s,e[r],u)}return s}function mo(e){return Ka(e)?e:[]}function vo(e){return"function"==typeof e?e:ou}function yo(e,t){return qa(e)?e:bi(e,t)?[e]:Ri(bs(e))}var bo=Kr;function wo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:to(e,t,n)}var Eo=lt||function(e){return it.clearTimeout(e)};function xo(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function _o(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Co(e,t){var n=t?_o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function So(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=cs(e),s=t!==o,u=null===t,c=t==t,l=cs(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||u&&n&&i||!s&&i||!c)return-1}return 0}function Ao(e,t,n,o){for(var i=-1,a=e.length,s=n.length,u=-1,c=t.length,l=vn(a-s,0),d=r(c+l),f=!o;++u<c;)d[u]=t[u];for(;++i<s;)(f||i<a)&&(d[n[i]]=e[i]);for(;l--;)d[u++]=e[i++];return d}function ko(e,t,n,o){for(var i=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,d=vn(a-u,0),f=r(d+l),h=!o;++i<d;)f[i]=e[i];for(var p=i;++c<l;)f[p+c]=t[c];for(;++s<u;)(h||i<a)&&(f[p+n[s]]=e[i++]);return f}function Oo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Do(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):o;c===o&&(c=e[u]),i?or(n,u,c):er(n,u,c)}return n}function Lo(e,t){return function(n,r){var o=qa(n)?yt:nr,i=t?t():{};return o(n,e,si(r,2),i)}}function To(e){return Kr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&yi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Ce(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Mo(e,t){return function(n,r){if(null==n)return n;if(!Ya(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ce(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Po(e){return function(t,n,r){for(var o=-1,i=Ce(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}function Fo(e){return function(t){var n=Qt(t=bs(t))?an(t):o,r=n?n[0]:t.charAt(0),i=n?wo(n,1).join(""):t.slice(1);return r[e]()+i}}function No(e){return function(t){return kt(Qs(Hs(t).replace(He,"")),e,"")}}function jo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Gn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Ro(e){return function(t,n,r){var i=Ce(t);if(!Ya(t)){var a=si(n,3);t=Ms(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Io(e){return ti((function(t){var n=t.length,r=n,a=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new ke(i);if(a&&!u&&"wrapper"==ii(s))var u=new Un([],!0)}for(r=u?r:n;++r<n;){var c=ii(s=t[r]),l="wrapper"==c?oi(s):o;u=l&&wi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[ii(l[0])].apply(u,l[3]):1==s.length&&wi(s)?u[c]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&qa(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Bo(e,t,n,i,a,s,u,l,d,f){var h=t&c,p=1&t,g=2&t,m=24&t,v=512&t,y=g?o:jo(e);return function o(){for(var c=arguments.length,b=r(c),w=c;w--;)b[w]=arguments[w];if(m)var E=ai(o),x=Kt(b,E);if(i&&(b=Ao(b,i,a,m)),s&&(b=ko(b,s,u,m)),c-=x,m&&c<f){var _=tn(b,E);return Vo(e,t,Bo,o.placeholder,n,b,_,l,d,f-c)}var C=p?n:this,S=g?C[e]:e;return c=b.length,l?b=ki(b,l):v&&c>1&&b.reverse(),h&&d<c&&(b.length=d),this&&this!==it&&this instanceof o&&(S=y||jo(S)),S.apply(C,b)}}function Go(e,t){return function(n,r){return function(e,t,n,r){return br(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function zo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=so(n),r=so(r)):(n=ao(n),r=ao(r)),i=e(n,r)}return i}}function Uo(e){return ti((function(t){return t=St(t,Wt(si())),Kr((function(n){var r=this;return e(t,(function(e){return vt(e,r,n)}))}))}))}function Wo(e,t){var n=(t=t===o?" ":so(t)).length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,ln(e/on(t)));return Qt(t)?wo(an(r),0,e).join(""):r.slice(0,e)}function Ho(e){return function(t,n,i){return i&&"number"!=typeof i&&yi(t,n,i)&&(n=i=o),t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n,o){for(var i=-1,a=vn(ln((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:ps(i),e)}}function qo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function Vo(e,t,n,r,i,a,s,c,l,d){var f=8&t;t|=f?u:64,4&(t&=~(f?64:u))||(t&=-4);var h=[e,t,i,f?a:o,f?s:o,f?o:a,f?o:s,c,l,d],p=n.apply(o,h);return wi(e)&&Di(p,h),p.placeholder=r,Mi(p,e,t)}function Yo(e){var t=_e[e];return function(e,n){if(e=vs(e),(n=null==n?0:yn(gs(n),292))&&pn(e)){var r=(bs(e)+"e").split("e");return+((r=(bs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ko=An&&1/nn(new An([,-0]))[1]==l?function(e){return new An(e)}:cu;function $o(e){return function(t){var n=hi(t);return n==x?Jt(t):n==k?rn(t):function(e,t){return St(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Zo(e,t,n,a,l,d,f,h){var p=2&t;if(!p&&"function"!=typeof e)throw new ke(i);var g=a?a.length:0;if(g||(t&=-97,a=l=o),f=f===o?f:vn(gs(f),0),h=h===o?h:gs(h),g-=l?l.length:0,64&t){var m=a,v=l;a=l=o}var y=p?o:oi(e),b=[e,t,n,a,l,m,v,d,f,h];if(y&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Ao(l,u,t[4]):u,e[4]=l?tn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?ko(l,u,t[6]):u,e[6]=l?tn(e[5],s):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,y),e=b[0],t=b[1],n=b[2],a=b[3],l=b[4],!(h=b[9]=b[9]===o?p?0:e.length:vn(b[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var i=jo(e);return function a(){for(var s=arguments.length,u=r(s),c=s,l=ai(a);c--;)u[c]=arguments[c];var d=s<3&&u[0]!==l&&u[s-1]!==l?[]:tn(u,l);return(s-=d.length)<n?Vo(e,t,Bo,a.placeholder,o,u,d,o,o,n-s):vt(this&&this!==it&&this instanceof a?i:e,this,u)}}(e,t,h):t!=u&&33!=t||l.length?Bo.apply(o,b):function(e,t,n,o){var i=1&t,a=jo(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=o.length,d=r(l+u),f=this&&this!==it&&this instanceof t?a:e;++c<l;)d[c]=o[c];for(;u--;)d[c++]=arguments[++s];return vt(f,i?n:this,d)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,o=jo(e);return function t(){return(this&&this!==it&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Mi((y?Qr:Di)(w,b),e,t)}function Xo(e,t,n,r){return e===o||za(e,Le[n])&&!Pe.call(r,n)?t:e}function Qo(e,t,n,r,i,a){return ts(e)&&ts(t)&&(a.set(t,e),Gr(e,t,o,Qo,a),a.delete(t)),e}function Jo(e){return is(e)?o:e}function ei(e,t,n,r,i,a){var s=1&n,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var f=-1,h=!0,p=2&n?new Yn:o;for(a.set(e,t),a.set(t,e);++f<u;){var g=e[f],m=t[f];if(r)var v=s?r(m,g,f,t,e,a):r(g,m,f,e,t,a);if(v!==o){if(v)continue;h=!1;break}if(p){if(!Dt(t,(function(e,t){if(!qt(p,t)&&(g===e||i(g,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(g!==m&&!i(g,m,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function ti(e){return Ti(Si(e,o,Vi),e+"")}function ni(e){return _r(e,Ms,di)}function ri(e){return _r(e,Ps,fi)}var oi=Dn?function(e){return Dn.get(e)}:cu;function ii(e){for(var t=e.name+"",n=Ln[t],r=Pe.call(Ln,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(Pe.call(Bn,"placeholder")?Bn:e).placeholder}function si(){var e=Bn.iteratee||iu;return e=e===iu?Fr:e,arguments.length?e(arguments[0],arguments[1]):e}function ui(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ci(e){for(var t=Ms(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,_i(o)]}return t}function li(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Pr(n)?n:o}var di=fn?function(e){return null==e?[]:(e=Ce(e),xt(fn(e),(function(t){return et.call(e,t)})))}:mu,fi=fn?function(e){for(var t=[];e;)At(t,di(e)),e=Ve(e);return t}:mu,hi=Cr;function pi(e,t,n){for(var r=-1,o=(t=yo(t,e)).length,i=!1;++r<o;){var a=Ii(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&es(o)&&vi(a,o)&&(qa(e)||Ha(e))}function gi(e){return"function"!=typeof e.constructor||xi(e)?{}:Gn(Ve(e))}function mi(e){return qa(e)||Ha(e)||!!(ot&&e&&e[ot])}function vi(e,t){var n=typeof e;return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function yi(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Ya(n)&&vi(t,n.length):"string"==r&&t in n)&&za(n[t],e)}function bi(e,t){if(qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||J.test(e)||!Q.test(e)||null!=t&&e in Ce(t)}function wi(e){var t=ii(e),n=Bn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(_n&&hi(new _n(new ArrayBuffer(1)))!=M||Cn&&hi(new Cn)!=x||Sn&&hi(Sn.resolve())!=S||An&&hi(new An)!=k||kn&&hi(new kn)!=L)&&(hi=function(e){var t=Cr(e),n=t==C?e.constructor:o,r=n?Bi(n):"";if(r)switch(r){case Tn:return M;case Mn:return x;case Pn:return S;case Fn:return k;case Nn:return L}return t});var Ei=Te?Qa:vu;function xi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function _i(e){return e==e&&!ts(e)}function Ci(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Ce(n))}}function Si(e,t,n){return t=vn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=vn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var u=r(t+1);++i<t;)u[i]=o[i];return u[t]=n(s),vt(e,this,u)}}function Ai(e,t){return t.length<2?e:xr(e,to(t,0,-1))}function ki(e,t){for(var n=e.length,r=yn(t.length,n),i=Oo(e);r--;){var a=t[r];e[r]=vi(a,n)?i[a]:o}return e}function Oi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Di=Pi(Qr),Li=It||function(e,t){return it.setTimeout(e,t)},Ti=Pi(Jr);function Mi(e,t,n){var r=t+"";return Ti(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return bt(p,(function(n){var r="_."+n[0];t&n[1]&&!_t(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Pi(e){var t=0,n=0;return function(){var r=bn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Fi(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Vr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Ni,ji,Ri=(Ni=Na((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(le,"$1"):n||e)})),t}),(function(e){return 500===ji.size&&ji.clear(),e})),ji=Ni.cache,Ni);function Ii(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Bi(e){if(null!=e){try{return Me.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Gi(e){if(e instanceof Wn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Oo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Kr((function(e,t){return Ka(e)?lr(e,mr(t,1,Ka,!0)):[]})),Ui=Kr((function(e,t){var n=Xi(t);return Ka(n)&&(n=o),Ka(e)?lr(e,mr(t,1,Ka,!0),si(n,2)):[]})),Wi=Kr((function(e,t){var n=Xi(t);return Ka(n)&&(n=o),Ka(e)?lr(e,mr(t,1,Ka,!0),o,n):[]}));function Hi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gs(n);return o<0&&(o=vn(r+o,0)),Mt(e,si(t,3),o)}function qi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=gs(n),i=n<0?vn(r+i,0):yn(i,r-1)),Mt(e,si(t,3),i,!0)}function Vi(e){return null!=e&&e.length?mr(e,1):[]}function Yi(e){return e&&e.length?e[0]:o}var Ki=Kr((function(e){var t=St(e,mo);return t.length&&t[0]===e[0]?Or(t):[]})),$i=Kr((function(e){var t=Xi(e),n=St(e,mo);return t===Xi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Or(n,si(t,2)):[]})),Zi=Kr((function(e){var t=Xi(e),n=St(e,mo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Or(n,o,t):[]}));function Xi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Qi=Kr(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var ea=ti((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return qr(e,St(t,(function(e){return vi(e,n)?+e:e})).sort(So)),r}));function ta(e){return null==e?e:xn.call(e)}var na=Kr((function(e){return uo(mr(e,1,Ka,!0))})),ra=Kr((function(e){var t=Xi(e);return Ka(t)&&(t=o),uo(mr(e,1,Ka,!0),si(t,2))})),oa=Kr((function(e){var t=Xi(e);return t="function"==typeof t?t:o,uo(mr(e,1,Ka,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=xt(e,(function(e){if(Ka(e))return t=vn(e.length,t),!0})),zt(t,(function(t){return St(e,Rt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:St(n,(function(e){return vt(t,o,e)}))}var sa=Kr((function(e,t){return Ka(e)?lr(e,t):[]})),ua=Kr((function(e){return po(xt(e,Ka))})),ca=Kr((function(e){var t=Xi(e);return Ka(t)&&(t=o),po(xt(e,Ka),si(t,2))})),la=Kr((function(e){var t=Xi(e);return t="function"==typeof t?t:o,po(xt(e,Ka),o,t)})),da=Kr(ia),fa=Kr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function ha(e){var t=Bn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var ga=ti((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),ma=Lo((function(e,t,n){Pe.call(e,n)?++e[n]:or(e,n,1)})),va=Ro(Hi),ya=Ro(qi);function ba(e,t){return(qa(e)?bt:dr)(e,si(t,3))}function wa(e,t){return(qa(e)?wt:fr)(e,si(t,3))}var Ea=Lo((function(e,t,n){Pe.call(e,n)?e[n].push(t):or(e,n,[t])})),xa=Kr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ya(e)?r(e.length):[];return dr(e,(function(e){a[++o]=i?vt(t,e,n):Dr(e,t,n)})),a})),_a=Lo((function(e,t,n){or(e,n,t)}));function Ca(e,t){return(qa(e)?St:Rr)(e,si(t,3))}var Sa=Lo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Aa=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yi(e,t[0],t[1])?t=[]:n>2&&yi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,mr(t,1),[])})),ka=Lt||function(){return it.Date.now()};function Oa(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Zo(e,c,o,o,o,o,t)}function Da(e,t){var n;if("function"!=typeof t)throw new ke(i);return e=gs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var La=Kr((function(e,t,n){var r=1;if(n.length){var o=tn(n,ai(La));r|=u}return Zo(e,r,t,n,o)})),Ta=Kr((function(e,t,n){var r=3;if(n.length){var o=tn(n,ai(Ta));r|=u}return Zo(t,r,e,n,o)}));function Ma(e,t,n){var r,a,s,u,c,l,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new ke(i);function g(t){var n=r,i=a;return r=a=o,d=t,u=e.apply(i,n)}function m(e){return d=e,c=Li(y,t),f?g(e):u}function v(e){var n=e-l;return l===o||n>=t||n<0||h&&e-d>=s}function y(){var e=ka();if(v(e))return b(e);c=Li(y,function(e){var n=t-(e-l);return h?yn(n,s-(e-d)):n}(e))}function b(e){return c=o,p&&r?g(e):(r=a=o,u)}function w(){var e=ka(),n=v(e);if(r=arguments,a=this,l=e,n){if(c===o)return m(l);if(h)return Eo(c),c=Li(y,t),g(l)}return c===o&&(c=Li(y,t)),u}return t=vs(t)||0,ts(n)&&(f=!!n.leading,s=(h="maxWait"in n)?vn(vs(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),w.cancel=function(){c!==o&&Eo(c),d=0,r=l=a=c=o},w.flush=function(){return c===o?u:b(ka())},w}var Pa=Kr((function(e,t){return cr(e,1,t)})),Fa=Kr((function(e,t,n){return cr(e,vs(t)||0,n)}));function Na(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Na.Cache||Vn),n}function ja(e){if("function"!=typeof e)throw new ke(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Na.Cache=Vn;var Ra=bo((function(e,t){var n=(t=1==t.length&&qa(t[0])?St(t[0],Wt(si())):St(mr(t,1),Wt(si()))).length;return Kr((function(r){for(var o=-1,i=yn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return vt(e,this,r)}))})),Ia=Kr((function(e,t){var n=tn(t,ai(Ia));return Zo(e,u,o,t,n)})),Ba=Kr((function(e,t){var n=tn(t,ai(Ba));return Zo(e,64,o,t,n)})),Ga=ti((function(e,t){return Zo(e,256,o,o,o,t)}));function za(e,t){return e===t||e!=e&&t!=t}var Ua=qo(Sr),Wa=qo((function(e,t){return e>=t})),Ha=Lr(function(){return arguments}())?Lr:function(e){return ns(e)&&Pe.call(e,"callee")&&!et.call(e,"callee")},qa=r.isArray,Va=dt?Wt(dt):function(e){return ns(e)&&Cr(e)==T};function Ya(e){return null!=e&&es(e.length)&&!Qa(e)}function Ka(e){return ns(e)&&Ya(e)}var $a=hn||vu,Za=ft?Wt(ft):function(e){return ns(e)&&Cr(e)==y};function Xa(e){if(!ns(e))return!1;var t=Cr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Qa(e){if(!ts(e))return!1;var t=Cr(e);return t==w||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==gs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=ht?Wt(ht):function(e){return ns(e)&&hi(e)==x};function os(e){return"number"==typeof e||ns(e)&&Cr(e)==_}function is(e){if(!ns(e)||Cr(e)!=C)return!1;var t=Ve(e);if(null===t)return!0;var n=Pe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Me.call(n)==Re}var as=pt?Wt(pt):function(e){return ns(e)&&Cr(e)==A},ss=gt?Wt(gt):function(e){return ns(e)&&hi(e)==k};function us(e){return"string"==typeof e||!qa(e)&&ns(e)&&Cr(e)==O}function cs(e){return"symbol"==typeof e||ns(e)&&Cr(e)==D}var ls=mt?Wt(mt):function(e){return ns(e)&&es(e.length)&&!!Qe[Cr(e)]},ds=qo(jr),fs=qo((function(e,t){return e<=t}));function hs(e){if(!e)return[];if(Ya(e))return us(e)?an(e):Oo(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=hi(e);return(t==x?Jt:t==k?nn:zs)(e)}function ps(e){return e?(e=vs(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gs(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function ms(e){return e?ar(gs(e),0,h):0}function vs(e){if("number"==typeof e)return e;if(cs(e))return f;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ut(e);var n=pe.test(e);return n||me.test(e)?nt(e.slice(2),n?2:8):he.test(e)?f:+e}function ys(e){return Do(e,Ps(e))}function bs(e){return null==e?"":so(e)}var ws=To((function(e,t){if(xi(t)||Ya(t))Do(t,Ms(t),e);else for(var n in t)Pe.call(t,n)&&er(e,n,t[n])})),Es=To((function(e,t){Do(t,Ps(t),e)})),xs=To((function(e,t,n,r){Do(t,Ps(t),e,r)})),_s=To((function(e,t,n,r){Do(t,Ms(t),e,r)})),Cs=ti(ir),Ss=Kr((function(e,t){e=Ce(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&yi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Ps(a),u=-1,c=s.length;++u<c;){var l=s[u],d=e[l];(d===o||za(d,Le[l])&&!Pe.call(e,l))&&(e[l]=a[l])}return e})),As=Kr((function(e){return e.push(o,Qo),vt(Ns,o,e)}));function ks(e,t,n){var r=null==e?o:xr(e,t);return r===o?n:r}function Os(e,t){return null!=e&&pi(e,t,kr)}var Ds=Go((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),e[t]=n}),tu(ou)),Ls=Go((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),Pe.call(e,t)?e[t].push(n):e[t]=[n]}),si),Ts=Kr(Dr);function Ms(e){return Ya(e)?$n(e):Nr(e)}function Ps(e){return Ya(e)?$n(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=xi(e),n=[];for(var r in e)("constructor"!=r||!t&&Pe.call(e,r))&&n.push(r);return n}(e)}var Fs=To((function(e,t,n){Gr(e,t,n)})),Ns=To((function(e,t,n,r){Gr(e,t,n,r)})),js=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=St(t,(function(t){return t=yo(t,e),r||(r=t.length>1),t})),Do(e,ri(e),n),r&&(n=sr(n,7,Jo));for(var o=t.length;o--;)co(n,t[o]);return n})),Rs=ti((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return Os(e,n)}))}(e,t)}));function Is(e,t){if(null==e)return{};var n=St(ri(e),(function(e){return[e]}));return t=si(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var Bs=$o(Ms),Gs=$o(Ps);function zs(e){return null==e?[]:Ht(e,Ms(e))}var Us=No((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Xs(bs(e).toLowerCase())}function Hs(e){return(e=bs(e))&&e.replace(ye,$t).replace(qe,"")}var qs=No((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Vs=No((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ys=Fo("toLowerCase"),Ks=No((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),$s=No((function(e,t,n){return e+(n?" ":"")+Xs(t)})),Zs=No((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xs=Fo("toUpperCase");function Qs(e,t,n){return e=bs(e),(t=n?o:t)===o?function(e){return $e.test(e)}(e)?function(e){return e.match(Ye)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Js=Kr((function(e,t){try{return vt(e,o,t)}catch(e){return Xa(e)?e:new Ee(e)}})),eu=ti((function(e,t){return bt(t,(function(t){t=Ii(t),or(e,t,La(e[t],e))})),e}));function tu(e){return function(){return e}}var nu=Io(),ru=Io(!0);function ou(e){return e}function iu(e){return Fr("function"==typeof e?e:sr(e,1))}var au=Kr((function(e,t){return function(n){return Dr(n,e,t)}})),su=Kr((function(e,t){return function(n){return Dr(e,n,t)}}));function uu(e,t,n){var r=Ms(t),o=Er(t,r);null!=n||ts(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Er(t,Ms(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),a=Qa(e);return bt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Oo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,At([this.value()],arguments))})})),e}function cu(){}var lu=Uo(St),du=Uo(Et),fu=Uo(Dt);function hu(e){return bi(e)?Rt(Ii(e)):function(e){return function(t){return xr(t,e)}}(e)}var pu=Ho(),gu=Ho(!0);function mu(){return[]}function vu(){return!1}var yu,bu=zo((function(e,t){return e+t}),0),wu=Yo("ceil"),Eu=zo((function(e,t){return e/t}),1),xu=Yo("floor"),_u=zo((function(e,t){return e*t}),1),Cu=Yo("round"),Su=zo((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new ke(i);return e=gs(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Oa,Bn.assign=ws,Bn.assignIn=Es,Bn.assignInWith=xs,Bn.assignWith=_s,Bn.at=Cs,Bn.before=Da,Bn.bind=La,Bn.bindAll=eu,Bn.bindKey=Ta,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Bn.chain=ha,Bn.chunk=function(e,t,n){t=(n?yi(e,t,n):t===o)?1:vn(gs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=r(ln(i/t));a<i;)u[s++]=to(e,a,a+=t);return u},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return At(qa(n)?Oo(n):[n],mr(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=si();return e=t?St(e,(function(e){if("function"!=typeof e[1])throw new ke(i);return[n(e[0]),e[1]]})):[],Kr((function(n){for(var r=-1;++r<t;){var o=e[r];if(vt(o[0],this,n))return vt(o[1],this,n)}}))},Bn.conforms=function(e){return function(e){var t=Ms(e);return function(n){return ur(n,e,t)}}(sr(e,1))},Bn.constant=tu,Bn.countBy=ma,Bn.create=function(e,t){var n=Gn(e);return null==t?n:rr(n,t)},Bn.curry=function e(t,n,r){var i=Zo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.curryRight=function e(t,n,r){var i=Zo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.debounce=Ma,Bn.defaults=Ss,Bn.defaultsDeep=As,Bn.defer=Pa,Bn.delay=Fa,Bn.difference=zi,Bn.differenceBy=Ui,Bn.differenceWith=Wi,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=n||t===o?1:gs(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,0,(t=r-(t=n||t===o?1:gs(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!0):[]},Bn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&yi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=gs(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:gs(r))<0&&(r+=i),r=n>r?0:ms(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(qa(e)?xt:gr)(e,si(t,3))},Bn.flatMap=function(e,t){return mr(Ca(e,t),1)},Bn.flatMapDeep=function(e,t){return mr(Ca(e,t),l)},Bn.flatMapDepth=function(e,t,n){return n=n===o?1:gs(n),mr(Ca(e,t),n)},Bn.flatten=Vi,Bn.flattenDeep=function(e){return null!=e&&e.length?mr(e,l):[]},Bn.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===o?1:gs(t)):[]},Bn.flip=function(e){return Zo(e,512)},Bn.flow=nu,Bn.flowRight=ru,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Bn.functions=function(e){return null==e?[]:Er(e,Ms(e))},Bn.functionsIn=function(e){return null==e?[]:Er(e,Ps(e))},Bn.groupBy=Ea,Bn.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},Bn.intersection=Ki,Bn.intersectionBy=$i,Bn.intersectionWith=Zi,Bn.invert=Ds,Bn.invertBy=Ls,Bn.invokeMap=xa,Bn.iteratee=iu,Bn.keyBy=_a,Bn.keys=Ms,Bn.keysIn=Ps,Bn.map=Ca,Bn.mapKeys=function(e,t){var n={};return t=si(t,3),br(e,(function(e,r,o){or(n,t(e,r,o),e)})),n},Bn.mapValues=function(e,t){var n={};return t=si(t,3),br(e,(function(e,r,o){or(n,r,t(e,r,o))})),n},Bn.matches=function(e){return Ir(sr(e,1))},Bn.matchesProperty=function(e,t){return Br(e,sr(t,1))},Bn.memoize=Na,Bn.merge=Fs,Bn.mergeWith=Ns,Bn.method=au,Bn.methodOf=su,Bn.mixin=uu,Bn.negate=ja,Bn.nthArg=function(e){return e=gs(e),Kr((function(t){return zr(t,e)}))},Bn.omit=js,Bn.omitBy=function(e,t){return Is(e,ja(si(t)))},Bn.once=function(e){return Da(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Bn.over=lu,Bn.overArgs=Ra,Bn.overEvery=du,Bn.overSome=fu,Bn.partial=Ia,Bn.partialRight=Ba,Bn.partition=Sa,Bn.pick=Rs,Bn.pickBy=Is,Bn.property=hu,Bn.propertyOf=function(e){return function(t){return null==e?o:xr(e,t)}},Bn.pull=Qi,Bn.pullAll=Ji,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,si(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,o,n):e},Bn.pullAt=ea,Bn.range=pu,Bn.rangeRight=gu,Bn.rearg=Ga,Bn.reject=function(e,t){return(qa(e)?xt:gr)(e,ja(si(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=si(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return qr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new ke(i);return Kr(e,t=t===o?t:gs(t))},Bn.reverse=ta,Bn.sampleSize=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:gs(t),(qa(e)?Xn:Zr)(e,t)},Bn.set=function(e,t,n){return null==e?e:Xr(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Xr(e,t,n,r)},Bn.shuffle=function(e){return(qa(e)?Qn:eo)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&yi(e,t,n)?(t=0,n=r):(t=null==t?0:gs(t),n=n===o?r:gs(n)),to(e,t,n)):[]},Bn.sortBy=Aa,Bn.sortedUniq=function(e){return e&&e.length?io(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?io(e,si(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&yi(e,t,n)&&(t=n=o),(n=n===o?h:n>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=so(t))&&Qt(e)?wo(an(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new ke(i);return t=null==t?0:vn(gs(t),0),Kr((function(n){var r=n[t],o=wo(n,0,t);return r&&At(o,r),vt(e,this,o)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?to(e,0,(t=n||t===o?1:gs(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=r-(t=n||t===o?1:gs(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?fo(e,si(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ke(i);return ts(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ma(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=pa,Bn.toArray=hs,Bn.toPairs=Bs,Bn.toPairsIn=Gs,Bn.toPath=function(e){return qa(e)?St(e,Ii):cs(e)?[e]:Oo(Ri(bs(e)))},Bn.toPlainObject=ys,Bn.transform=function(e,t,n){var r=qa(e),o=r||$a(e)||ls(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ts(e)&&Qa(i)?Gn(Ve(e)):{}}return(o?bt:br)(e,(function(e,r,o){return t(n,e,r,o)})),n},Bn.unary=function(e){return Oa(e,1)},Bn.union=na,Bn.unionBy=ra,Bn.unionWith=oa,Bn.uniq=function(e){return e&&e.length?uo(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?uo(e,si(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?uo(e,o,t):[]},Bn.unset=function(e,t){return null==e||co(e,t)},Bn.unzip=ia,Bn.unzipWith=aa,Bn.update=function(e,t,n){return null==e?e:lo(e,t,vo(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:lo(e,t,vo(n),r)},Bn.values=zs,Bn.valuesIn=function(e){return null==e?[]:Ht(e,Ps(e))},Bn.without=sa,Bn.words=Qs,Bn.wrap=function(e,t){return Ia(vo(t),e)},Bn.xor=ua,Bn.xorBy=ca,Bn.xorWith=la,Bn.zip=da,Bn.zipObject=function(e,t){return go(e||[],t||[],er)},Bn.zipObjectDeep=function(e,t){return go(e||[],t||[],Xr)},Bn.zipWith=fa,Bn.entries=Bs,Bn.entriesIn=Gs,Bn.extend=Es,Bn.extendWith=xs,uu(Bn,Bn),Bn.add=bu,Bn.attempt=Js,Bn.camelCase=Us,Bn.capitalize=Ws,Bn.ceil=wu,Bn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=vs(n))==n?n:0),t!==o&&(t=(t=vs(t))==t?t:0),ar(vs(e),t,n)},Bn.clone=function(e){return sr(e,4)},Bn.cloneDeep=function(e){return sr(e,5)},Bn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:o)},Bn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:o)},Bn.conformsTo=function(e,t){return null==t||ur(e,t,Ms(t))},Bn.deburr=Hs,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=Eu,Bn.endsWith=function(e,t,n){e=bs(e),t=so(t);var r=e.length,i=n=n===o?r:ar(gs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Bn.eq=za,Bn.escape=function(e){return(e=bs(e))&&K.test(e)?e.replace(V,Zt):e},Bn.escapeRegExp=function(e){return(e=bs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Bn.every=function(e,t,n){var r=qa(e)?Et:hr;return n&&yi(e,t,n)&&(t=o),r(e,si(t,3))},Bn.find=va,Bn.findIndex=Hi,Bn.findKey=function(e,t){return Tt(e,si(t,3),br)},Bn.findLast=ya,Bn.findLastIndex=qi,Bn.findLastKey=function(e,t){return Tt(e,si(t,3),wr)},Bn.floor=xu,Bn.forEach=ba,Bn.forEachRight=wa,Bn.forIn=function(e,t){return null==e?e:vr(e,si(t,3),Ps)},Bn.forInRight=function(e,t){return null==e?e:yr(e,si(t,3),Ps)},Bn.forOwn=function(e,t){return e&&br(e,si(t,3))},Bn.forOwnRight=function(e,t){return e&&wr(e,si(t,3))},Bn.get=ks,Bn.gt=Ua,Bn.gte=Wa,Bn.has=function(e,t){return null!=e&&pi(e,t,Ar)},Bn.hasIn=Os,Bn.head=Yi,Bn.identity=ou,Bn.includes=function(e,t,n,r){e=Ya(e)?e:zs(e),n=n&&!r?gs(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),us(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Pt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gs(n);return o<0&&(o=vn(r+o,0)),Pt(e,t,o)},Bn.inRange=function(e,t,n){return t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n){return e>=yn(t,n)&&e<vn(t,n)}(e=vs(e),t,n)},Bn.invoke=Ts,Bn.isArguments=Ha,Bn.isArray=qa,Bn.isArrayBuffer=Va,Bn.isArrayLike=Ya,Bn.isArrayLikeObject=Ka,Bn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Cr(e)==v},Bn.isBuffer=$a,Bn.isDate=Za,Bn.isElement=function(e){return ns(e)&&1===e.nodeType&&!is(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Ya(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||$a(e)||ls(e)||Ha(e)))return!e.length;var t=hi(e);if(t==x||t==k)return!e.size;if(xi(e))return!Nr(e).length;for(var n in e)if(Pe.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Tr(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Tr(e,t,o,n):!!r},Bn.isError=Xa,Bn.isFinite=function(e){return"number"==typeof e&&pn(e)},Bn.isFunction=Qa,Bn.isInteger=Ja,Bn.isLength=es,Bn.isMap=rs,Bn.isMatch=function(e,t){return e===t||Mr(e,t,ci(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Mr(e,t,ci(t),n)},Bn.isNaN=function(e){return os(e)&&e!=+e},Bn.isNative=function(e){if(Ei(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=os,Bn.isObject=ts,Bn.isObjectLike=ns,Bn.isPlainObject=is,Bn.isRegExp=as,Bn.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=d},Bn.isSet=ss,Bn.isString=us,Bn.isSymbol=cs,Bn.isTypedArray=ls,Bn.isUndefined=function(e){return e===o},Bn.isWeakMap=function(e){return ns(e)&&hi(e)==L},Bn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Cr(e)},Bn.join=function(e,t){return null==e?"":gn.call(e,t)},Bn.kebabCase=qs,Bn.last=Xi,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=gs(n))<0?vn(r+i,0):yn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Mt(e,Nt,i,!0)},Bn.lowerCase=Vs,Bn.lowerFirst=Ys,Bn.lt=ds,Bn.lte=fs,Bn.max=function(e){return e&&e.length?pr(e,ou,Sr):o},Bn.maxBy=function(e,t){return e&&e.length?pr(e,si(t,2),Sr):o},Bn.mean=function(e){return jt(e,ou)},Bn.meanBy=function(e,t){return jt(e,si(t,2))},Bn.min=function(e){return e&&e.length?pr(e,ou,jr):o},Bn.minBy=function(e,t){return e&&e.length?pr(e,si(t,2),jr):o},Bn.stubArray=mu,Bn.stubFalse=vu,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=_u,Bn.nth=function(e,t){return e&&e.length?zr(e,gs(t)):o},Bn.noConflict=function(){return it._===this&&(it._=Ie),this},Bn.noop=cu,Bn.now=ka,Bn.pad=function(e,t,n){e=bs(e);var r=(t=gs(t))?on(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Wo(dn(o),n)+e+Wo(ln(o),n)},Bn.padEnd=function(e,t,n){e=bs(e);var r=(t=gs(t))?on(e):0;return t&&r<t?e+Wo(t-r,n):e},Bn.padStart=function(e,t,n){e=bs(e);var r=(t=gs(t))?on(e):0;return t&&r<t?Wo(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(bs(e).replace(re,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&yi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ps(e),t===o?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=En();return yn(e+i*(t-e+tt("1e-"+((i+"").length-1))),t)}return Vr(e,t)},Bn.reduce=function(e,t,n){var r=qa(e)?kt:Bt,o=arguments.length<3;return r(e,si(t,4),n,o,dr)},Bn.reduceRight=function(e,t,n){var r=qa(e)?Ot:Bt,o=arguments.length<3;return r(e,si(t,4),n,o,fr)},Bn.repeat=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:gs(t),Yr(bs(e),t)},Bn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,i=(t=yo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Ii(t[r])];a===o&&(r=i,a=n),e=Qa(a)?a.call(e):a}return e},Bn.round=Cu,Bn.runInContext=e,Bn.sample=function(e){return(qa(e)?Zn:$r)(e)},Bn.size=function(e){if(null==e)return 0;if(Ya(e))return us(e)?on(e):e.length;var t=hi(e);return t==x||t==k?e.size:Nr(e).length},Bn.snakeCase=Ks,Bn.some=function(e,t,n){var r=qa(e)?Dt:no;return n&&yi(e,t,n)&&(t=o),r(e,si(t,3))},Bn.sortedIndex=function(e,t){return ro(e,t)},Bn.sortedIndexBy=function(e,t,n){return oo(e,t,si(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&za(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return ro(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return oo(e,t,si(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(za(e[n],t))return n}return-1},Bn.startCase=$s,Bn.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:ar(gs(n),0,e.length),t=so(t),e.slice(n,n+t.length)==t},Bn.subtract=Su,Bn.sum=function(e){return e&&e.length?Gt(e,ou):0},Bn.sumBy=function(e,t){return e&&e.length?Gt(e,si(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&yi(e,t,n)&&(t=o),e=bs(e),t=xs({},t,r,Xo);var i,a,s=xs({},t.imports,r.imports,Xo),u=Ms(s),c=Ht(s,u),l=0,d=t.interpolate||be,f="__p += '",h=Se((t.escape||be).source+"|"+d.source+"|"+(d===X?de:be).source+"|"+(t.evaluate||be).source+"|$","g"),p="//# sourceURL="+(Pe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xe+"]")+"\n";e.replace(h,(function(t,n,r,o,s,u){return r||(r=o),f+=e.slice(l,u).replace(we,Xt),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),f+="';\n";var g=Pe.call(t,"variable")&&t.variable;if(g){if(ce.test(g))throw new Ee("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(U,""):f).replace(W,"$1").replace(H,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=Js((function(){return xe(u,p+"return "+f).apply(o,c)}));if(m.source=f,Xa(m))throw m;return m},Bn.times=function(e,t){if((e=gs(e))<1||e>d)return[];var n=h,r=yn(e,h);t=si(t),e-=h;for(var o=zt(r,t);++n<e;)t(n);return o},Bn.toFinite=ps,Bn.toInteger=gs,Bn.toLength=ms,Bn.toLower=function(e){return bs(e).toLowerCase()},Bn.toNumber=vs,Bn.toSafeInteger=function(e){return e?ar(gs(e),-9007199254740991,d):0===e?e:0},Bn.toString=bs,Bn.toUpper=function(e){return bs(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=bs(e))&&(n||t===o))return Ut(e);if(!e||!(t=so(t)))return e;var r=an(e),i=an(t);return wo(r,Vt(r,i),Yt(r,i)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=bs(e))&&(n||t===o))return e.slice(0,sn(e)+1);if(!e||!(t=so(t)))return e;var r=an(e);return wo(r,0,Yt(r,an(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=bs(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=so(t)))return e;var r=an(e);return wo(r,Vt(r,an(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if(ts(t)){var i="separator"in t?t.separator:i;n="length"in t?gs(t.length):n,r="omission"in t?so(t.omission):r}var a=(e=bs(e)).length;if(Qt(e)){var s=an(e);a=s.length}if(n>=a)return e;var u=n-on(r);if(u<1)return r;var c=s?wo(s,0,u).join(""):e.slice(0,u);if(i===o)return c+r;if(s&&(u+=c.length-u),as(i)){if(e.slice(u).search(i)){var l,d=c;for(i.global||(i=Se(i.source,bs(fe.exec(i))+"g")),i.lastIndex=0;l=i.exec(d);)var f=l.index;c=c.slice(0,f===o?u:f)}}else if(e.indexOf(so(i),u)!=u){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},Bn.unescape=function(e){return(e=bs(e))&&Y.test(e)?e.replace(q,un):e},Bn.uniqueId=function(e){var t=++Fe;return bs(e)+t},Bn.upperCase=Zs,Bn.upperFirst=Xs,Bn.each=ba,Bn.eachRight=wa,Bn.first=Yi,uu(Bn,(yu={},br(Bn,(function(e,t){Pe.call(Bn.prototype,t)||(yu[t]=e)})),yu),{chain:!1}),Bn.VERSION="4.17.21",bt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),bt(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===o?1:vn(gs(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,h),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),bt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),bt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),bt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ou)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Dr(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(ja(si(e)))},Wn.prototype.slice=function(e,t){e=gs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=gs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(h)},br(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Bn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Wn,c=s[0],l=u||qa(t),d=function(e){var t=i.apply(Bn,At([e],s));return r&&f?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,g=u&&!h;if(!a&&l){t=g?t:new Wn(this);var m=e.apply(t,s);return m.__actions__.push({func:pa,args:[d],thisArg:o}),new Un(m,f)}return p&&g?e.apply(this,s):(m=this.thru(d),p?r?m.value()[0]:m.value():m)})})),bt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(qa(o)?o:[],e)}return this[n]((function(n){return t.apply(qa(n)?n:[],e)}))}})),br(Wn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Pe.call(Ln,r)||(Ln[r]=[]),Ln[r].push({name:t,func:n})}})),Ln[Bo(o,2).name]=[{name:"wrapper",func:o}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Oo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oo(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,d=l.length,f=0,h=yn(u,this.__takeCount__);if(!n||!r&&o==u&&h==u)return ho(e,this.__actions__);var p=[];e:for(;u--&&f<h;){for(var g=-1,m=e[c+=t];++g<d;){var v=l[g],y=v.iteratee,b=v.type,w=y(m);if(2==b)m=w;else if(!w){if(1==b)continue e;break e}}p[f++]=m}return p},Bn.prototype.at=ga,Bn.prototype.chain=function(){return ha(this)},Bn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===o&&(this.__values__=hs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof zn;){var r=Gi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:pa,args:[ta],thisArg:o}),new Un(t,this.__chain__)}return this.thru(ta)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return ho(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,at&&(Bn.prototype[at]=function(){return this}),Bn}();it._=cn,(r=function(){return cn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},8303:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__extends:()=>o,__assign:()=>i,__rest:()=>a,__decorate:()=>s,__param:()=>u,__metadata:()=>c,__awaiter:()=>l,__generator:()=>d,__createBinding:()=>f,__exportStar:()=>h,__values:()=>p,__read:()=>g,__spread:()=>m,__spreadArrays:()=>v,__spreadArray:()=>y,__await:()=>b,__asyncGenerator:()=>w,__asyncDelegator:()=>E,__asyncValues:()=>x,__makeTemplateObject:()=>_,__importStar:()=>S,__importDefault:()=>A,__classPrivateFieldGet:()=>k,__classPrivateFieldSet:()=>O});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var f=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function h(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||f(t,e,n)}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function y(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof b?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function E(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&f(t,e,n);return C(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function k(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function O(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}},1250:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1181),s=i(n(2383)),u=n(8586),c=n(432),l=1.5,d=function(e){function t(){var t=e.call(this)||this;return t.x=.5,t.y=.5,t.angle=0,t.ratio=1,t.minRatio=null,t.maxRatio=null,t.nextFrame=null,t.previousState=null,t.enabled=!0,t.previousState=t.getState(),t}return o(t,e),t.from=function(e){return(new t).setState(e)},t.prototype.enable=function(){return this.enabled=!0,this},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.getState=function(){return{x:this.x,y:this.y,angle:this.angle,ratio:this.ratio}},t.prototype.hasState=function(e){return this.x===e.x&&this.y===e.y&&this.ratio===e.ratio&&this.angle===e.angle},t.prototype.getPreviousState=function(){var e=this.previousState;return e?{x:e.x,y:e.y,angle:e.angle,ratio:e.ratio}:null},t.prototype.getBoundedRatio=function(e){var t=e;return"number"==typeof this.minRatio&&(t=Math.max(t,this.minRatio)),"number"==typeof this.maxRatio&&(t=Math.min(t,this.maxRatio)),t},t.prototype.validateState=function(e){var t={};return"number"==typeof e.x&&(t.x=e.x),"number"==typeof e.y&&(t.y=e.y),"number"==typeof e.angle&&(t.angle=e.angle),"number"==typeof e.ratio&&(t.ratio=this.getBoundedRatio(e.ratio)),t},t.prototype.isAnimated=function(){return!!this.nextFrame},t.prototype.setState=function(e){if(!this.enabled)return this;this.previousState=this.getState();var t=this.validateState(e);return"number"==typeof t.x&&(this.x=t.x),"number"==typeof t.y&&(this.y=t.y),"number"==typeof t.angle&&(this.angle=t.angle),"number"==typeof t.ratio&&(this.ratio=t.ratio),this.hasState(this.previousState)||this.emit("updated",this.getState()),this},t.prototype.animate=function(e,t,n){var r=this;if(this.enabled){var o=Object.assign({},a.ANIMATE_DEFAULTS,t),i=this.validateState(e),c="function"==typeof o.easing?o.easing:s.default[o.easing],l=Date.now(),d=this.getState(),f=function(){var e=(Date.now()-l)/o.duration;if(e>=1)return r.nextFrame=null,r.setState(i),void(r.animationCallback&&(r.animationCallback.call(null),r.animationCallback=void 0));var t=c(e),n={};"number"==typeof i.x&&(n.x=d.x+(i.x-d.x)*t),"number"==typeof i.y&&(n.y=d.y+(i.y-d.y)*t),"number"==typeof i.angle&&(n.angle=d.angle+(i.angle-d.angle)*t),"number"==typeof i.ratio&&(n.ratio=d.ratio+(i.ratio-d.ratio)*t),r.setState(n),r.nextFrame=(0,u.requestFrame)(f)};this.nextFrame?((0,u.cancelFrame)(this.nextFrame),this.animationCallback&&this.animationCallback.call(null),this.nextFrame=(0,u.requestFrame)(f)):f(),this.animationCallback=n}},t.prototype.animatedZoom=function(e){if(e){if("number"==typeof e)return this.animate({ratio:this.ratio/e});this.animate({ratio:this.ratio/(e.factor||l)},e)}else this.animate({ratio:this.ratio/l})},t.prototype.animatedUnzoom=function(e){if(e){if("number"==typeof e)return this.animate({ratio:this.ratio*e});this.animate({ratio:this.ratio*(e.factor||l)},e)}else this.animate({ratio:this.ratio*l})},t.prototype.animatedReset=function(e){this.animate({x:.5,y:.5,ratio:1,angle:0},e)},t.prototype.copy=function(){return t.from(this.getState())},t}(c.TypedEventEmitter);t.default=d},8231:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getWheelDelta=t.getTouchCoords=t.getTouchesArray=t.getWheelCoords=t.getMouseCoords=t.getPosition=void 0;var a=n(432);function s(e,t){var n=t.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}function u(e,t){return i(i({},s(e,t)),{sigmaDefaultPrevented:!1,preventSigmaDefault:function(){this.sigmaDefaultPrevented=!0},original:e})}function c(e){for(var t=[],n=0,r=Math.min(e.length,2);n<r;n++)t.push(e[n]);return t}function l(e){if(void 0!==e.deltaY)return-3*e.deltaY/360;if(void 0!==e.detail)return e.detail/-9;throw new Error("Captor: could not extract delta from event.")}t.getPosition=s,t.getMouseCoords=u,t.getWheelCoords=function(e,t){return i(i({},u(e,t)),{delta:l(e)})},t.getTouchesArray=c,t.getTouchCoords=function(e,t){return{touches:c(e.touches).map((function(e){return s(e,t)})),original:e}},t.getWheelDelta=l;var d=function(e){function t(t,n){var r=e.call(this)||this;return r.container=t,r.renderer=n,r}return o(t,e),t}(a.TypedEventEmitter);t.default=d},3834:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var u=s(n(8231)),c=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.enabled=!0,r.draggedEvents=0,r.downStartTime=null,r.lastMouseX=null,r.lastMouseY=null,r.isMouseDown=!1,r.isMoving=!1,r.movingTimeout=null,r.startCameraState=null,r.clicks=0,r.doubleClickTimeout=null,r.currentWheelDirection=0,r.handleClick=r.handleClick.bind(r),r.handleRightClick=r.handleRightClick.bind(r),r.handleDown=r.handleDown.bind(r),r.handleUp=r.handleUp.bind(r),r.handleMove=r.handleMove.bind(r),r.handleWheel=r.handleWheel.bind(r),r.handleOut=r.handleOut.bind(r),t.addEventListener("click",r.handleClick,!1),t.addEventListener("contextmenu",r.handleRightClick,!1),t.addEventListener("mousedown",r.handleDown,!1),t.addEventListener("wheel",r.handleWheel,!1),t.addEventListener("mouseout",r.handleOut,!1),document.addEventListener("mousemove",r.handleMove,!1),document.addEventListener("mouseup",r.handleUp,!1),r}return o(t,e),t.prototype.kill=function(){var e=this.container;e.removeEventListener("click",this.handleClick),e.removeEventListener("contextmenu",this.handleRightClick),e.removeEventListener("mousedown",this.handleDown),e.removeEventListener("wheel",this.handleWheel),e.removeEventListener("mouseout",this.handleOut),document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseup",this.handleUp)},t.prototype.handleClick=function(e){var t=this;if(this.enabled){if(this.clicks++,2===this.clicks)return this.clicks=0,"number"==typeof this.doubleClickTimeout&&(clearTimeout(this.doubleClickTimeout),this.doubleClickTimeout=null),this.handleDoubleClick(e);setTimeout((function(){t.clicks=0,t.doubleClickTimeout=null}),300),this.draggedEvents<3&&this.emit("click",(0,u.getMouseCoords)(e,this.container))}},t.prototype.handleRightClick=function(e){this.enabled&&this.emit("rightClick",(0,u.getMouseCoords)(e,this.container))},t.prototype.handleDoubleClick=function(e){if(this.enabled){e.preventDefault(),e.stopPropagation();var t=(0,u.getMouseCoords)(e,this.container);if(this.emit("doubleClick",t),!t.sigmaDefaultPrevented){var n=this.renderer.getCamera(),r=n.getBoundedRatio(n.getState().ratio/2.2);n.animate(this.renderer.getViewportZoomedState((0,u.getPosition)(e,this.container),r),{easing:"quadraticInOut",duration:200})}}},t.prototype.handleDown=function(e){if(this.enabled){this.startCameraState=this.renderer.getCamera().getState();var t=(0,u.getPosition)(e,this.container),n=t.x,r=t.y;this.lastMouseX=n,this.lastMouseY=r,this.draggedEvents=0,this.downStartTime=Date.now(),this.isMouseDown=!0,this.emit("mousedown",(0,u.getMouseCoords)(e,this.container))}},t.prototype.handleUp=function(e){var t=this;if(this.enabled&&this.isMouseDown){var n=this.renderer.getCamera();this.isMouseDown=!1,"number"==typeof this.movingTimeout&&(clearTimeout(this.movingTimeout),this.movingTimeout=null);var r=(0,u.getPosition)(e,this.container),o=r.x,i=r.y,a=n.getState(),s=n.getPreviousState()||{x:0,y:0};this.isMoving?n.animate({x:a.x+3*(a.x-s.x),y:a.y+3*(a.y-s.y)},{duration:200,easing:"quadraticOut"}):this.lastMouseX===o&&this.lastMouseY===i||n.setState({x:a.x,y:a.y}),this.isMoving=!1,setTimeout((function(){t.draggedEvents=0,t.renderer.refresh()}),0),this.emit("mouseup",(0,u.getMouseCoords)(e,this.container))}},t.prototype.handleMove=function(e){var t=this;if(this.enabled){var n=(0,u.getMouseCoords)(e,this.container);if(this.emit("mousemovebody",n),e.target===this.container&&this.emit("mousemove",n),this.isMouseDown){this.isMoving=!0,this.draggedEvents++,"number"==typeof this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout((function(){t.movingTimeout=null,t.isMoving=!1}),100);var r=this.renderer.getCamera(),o=(0,u.getPosition)(e,this.container),i=o.x,a=o.y,s=this.renderer.viewportToFramedGraph({x:this.lastMouseX,y:this.lastMouseY}),c=this.renderer.viewportToFramedGraph({x:i,y:a}),l=s.x-c.x,d=s.y-c.y,f=r.getState(),h=f.x+l,p=f.y+d;r.setState({x:h,y:p}),this.lastMouseX=i,this.lastMouseY=a,e.preventDefault(),e.stopPropagation()}}},t.prototype.handleWheel=function(e){var t=this;if(this.enabled){e.preventDefault(),e.stopPropagation();var n=(0,u.getWheelDelta)(e);if(n){var r=(0,u.getWheelCoords)(e,this.container);if(this.emit("wheel",r),!r.sigmaDefaultPrevented){var o=n>0?1/1.7:1.7,i=this.renderer.getCamera(),a=i.getBoundedRatio(i.getState().ratio*o),s=n>0?1:-1,c=Date.now();this.currentWheelDirection===s&&this.lastWheelTriggerTime&&c-this.lastWheelTriggerTime<50||(i.animate(this.renderer.getViewportZoomedState((0,u.getPosition)(e,this.container),a),{easing:"quadraticOut",duration:250},(function(){t.currentWheelDirection=0})),this.currentWheelDirection=s,this.lastWheelTriggerTime=c)}}}},t.prototype.handleOut=function(){},t}(u.default);t.default=c},916:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t},u=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var c=s(n(8231)),l=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.enabled=!0,r.isMoving=!1,r.touchMode=0,r.handleStart=r.handleStart.bind(r),r.handleLeave=r.handleLeave.bind(r),r.handleMove=r.handleMove.bind(r),t.addEventListener("touchstart",r.handleStart,!1),t.addEventListener("touchend",r.handleLeave,!1),t.addEventListener("touchcancel",r.handleLeave,!1),t.addEventListener("touchmove",r.handleMove,!1),r}return o(t,e),t.prototype.kill=function(){var e=this.container;e.removeEventListener("touchstart",this.handleStart),e.removeEventListener("touchend",this.handleLeave),e.removeEventListener("touchcancel",this.handleLeave),e.removeEventListener("touchmove",this.handleMove)},t.prototype.getDimensions=function(){return{width:this.container.offsetWidth,height:this.container.offsetHeight}},t.prototype.dispatchRelatedMouseEvent=function(e,t,n,r){var o=n||(0,c.getPosition)(t.touches[0],this.container),i=new MouseEvent(e,{clientX:o.x,clientY:o.y,altKey:t.altKey,ctrlKey:t.ctrlKey});(r||this.container).dispatchEvent(i)},t.prototype.handleStart=function(e){var t=this;if(this.enabled){e.preventDefault(),1===e.touches.length&&this.dispatchRelatedMouseEvent("mousedown",e);var n=(0,c.getTouchesArray)(e.touches);if(this.isMoving=!0,this.touchMode=n.length,this.startCameraState=this.renderer.getCamera().getState(),this.startTouchesPositions=n.map((function(e){return(0,c.getPosition)(e,t.container)})),this.lastTouchesPositions=this.startTouchesPositions,2===this.touchMode){var r=u(this.startTouchesPositions,2),o=r[0],i=o.x,a=o.y,s=r[1],l=s.x,d=s.y;this.startTouchesAngle=Math.atan2(d-a,l-i),this.startTouchesDistance=Math.sqrt(Math.pow(l-i,2)+Math.pow(d-a,2))}this.emit("touchdown",(0,c.getTouchCoords)(e,this.container))}},t.prototype.handleLeave=function(e){if(this.enabled){switch(e.preventDefault(),0===e.touches.length&&this.lastTouchesPositions&&this.lastTouchesPositions.length&&(this.dispatchRelatedMouseEvent("mouseup",e,this.lastTouchesPositions[0],document),this.dispatchRelatedMouseEvent("click",e,this.lastTouchesPositions[0])),this.movingTimeout&&(this.isMoving=!1,clearTimeout(this.movingTimeout)),this.touchMode){case 2:if(1===e.touches.length){this.handleStart(e),e.preventDefault();break}case 1:if(this.isMoving){var t=this.renderer.getCamera(),n=t.getState(),r=t.getPreviousState()||{x:0,y:0};t.animate({x:n.x+3*(n.x-r.x),y:n.y+3*(n.y-r.y)},{duration:200,easing:"quadraticOut"})}this.isMoving=!1,this.touchMode=0}this.emit("touchup",(0,c.getTouchCoords)(e,this.container))}},t.prototype.handleMove=function(e){var t,n=this;if(this.enabled){e.preventDefault(),1===e.touches.length&&this.dispatchRelatedMouseEvent("mousemove",e);var r=this.renderer.getCamera(),o=this.startCameraState,i=(0,c.getTouchesArray)(e.touches).map((function(e){return(0,c.getPosition)(e,n.container)}));switch(this.lastTouchesPositions=i,this.isMoving=!0,this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout((function(){n.isMoving=!1}),200),this.touchMode){case 1:var a=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0]),s=a.x,l=a.y,d=this.renderer.viewportToFramedGraph(i[0]),f=d.x,h=d.y;r.setState({x:o.x+s-f,y:o.y+l-h});break;case 2:var p={},g=i[0],m=g.x,v=g.y,y=i[1],b=y.x,w=y.y,E=Math.atan2(w-v,b-m)-this.startTouchesAngle,x=Math.hypot(w-v,b-m)/this.startTouchesDistance,_=r.getBoundedRatio(o.ratio/x);p.ratio=_,p.angle=o.angle+E;var C=this.getDimensions(),S=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0],{cameraState:o}),A=Math.min(C.width,C.height),k=A/C.width,O=_/A;h=v-A/2/(A/C.height),f=(t=u([(f=m-A/2/k)*Math.cos(-p.angle)-h*Math.sin(-p.angle),h*Math.cos(-p.angle)+f*Math.sin(-p.angle)],2))[0],h=t[1],p.x=S.x-f*O,p.y=S.y+h*O,r.setState(p)}this.emit("touchmove",(0,c.getTouchCoords)(e,this.container))}},t}(c.default);t.default=l},2306:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edgeLabelsToDisplayFromNodes=t.LabelGrid=void 0;var n=function(){function e(e,t){this.key=e,this.size=t}return e.compare=function(e,t){return e.size>t.size?-1:e.size<t.size||e.key>t.key?1:-1},e}(),r=function(){function e(){this.width=0,this.height=0,this.cellSize=0,this.columns=0,this.rows=0,this.cells={}}return e.prototype.resizeAndClear=function(e,t){this.width=e.width,this.height=e.height,this.cellSize=t,this.columns=Math.ceil(e.width/t),this.rows=Math.ceil(e.height/t),this.cells={}},e.prototype.getIndex=function(e){var t=Math.floor(e.x/this.cellSize);return Math.floor(e.y/this.cellSize)*this.columns+t},e.prototype.add=function(e,t,r){var o=new n(e,t),i=this.getIndex(r),a=this.cells[i];a||(a=[],this.cells[i]=a),a.push(o)},e.prototype.organize=function(){for(var e in this.cells)this.cells[e].sort(n.compare)},e.prototype.getLabelsToDisplay=function(e,t){var n=this.cellSize*this.cellSize,r=n/e/e*t/n,o=Math.ceil(r),i=[];for(var a in this.cells)for(var s=this.cells[a],u=0;u<Math.min(o,s.length);u++)i.push(s[u].key);return i},e}();t.LabelGrid=r,t.edgeLabelsToDisplayFromNodes=function(e){var t=e.graph,n=e.hoveredNode,r=e.highlightedNodes,o=e.displayedNodeLabels,i=[];return t.forEachEdge((function(e,t,a,s){(a===n||s===n||r.has(a)||r.has(s)||o.has(a)&&o.has(s))&&i.push(e)})),i}},9316:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.rectangleCollidesWithQuad=t.squareCollidesWithQuad=t.getCircumscribedAlignedRectangle=t.isRectangleAligned=void 0;var a=i(n(8884)),s=!1;function u(e){return e.x1===e.x2||e.y1===e.y2}function c(e){var t=Math.sqrt(Math.pow(e.x2-e.x1,2)+Math.pow(e.y2-e.y1,2)),n=(e.y1-e.y2)*e.height/t,r=(e.x2-e.x1)*e.height/t,o={x:e.x1,y:e.y1},i={x:e.x2,y:e.y2},a={x:e.x1+n,y:e.y1+r},s={x:e.x2+n,y:e.y2+r},u=Math.min(o.x,i.x,a.x,s.x),c=Math.max(o.x,i.x,a.x,s.x),l=Math.min(o.y,i.y,a.y,s.y);return{x1:u,y1:l,x2:c,y2:l,height:Math.max(o.y,i.y,a.y,s.y)-l}}function l(e,t,n,r,o,i,a){return e<r+i&&e+n>r&&t<o+a&&t+n>o}function d(e,t,n,r,o,i,a,s){return e<o+a&&e+n>o&&t<i+s&&t+r>i}function f(e,t,n,r,o,i){var a=e<n+o/2;return t<r+i/2?a?1:2:a?3:4}t.isRectangleAligned=u,t.getCircumscribedAlignedRectangle=c,t.squareCollidesWithQuad=l,t.rectangleCollidesWithQuad=d;var h=function(){function e(e){var t;void 0===e&&(e={}),this.containers=((t={}).outside=[],t),this.cache=null,this.lastRectangle=null;var n=Math.pow(4,5);this.data=new Float32Array((4*n-1)/3*4),e.boundaries?this.resize(e.boundaries):this.resize({x:0,y:0,width:1,height:1})}return e.prototype.add=function(e,t,n,r){return function(e,t,n,r,o,i,a){for(var u=o-a,c=i-a,d=2*a,f=0,h=0;;){if(f>=5)return n[h]=n[h]||[],void n[h].push(r);var p=4*h+4,g=4*h+8,m=4*h+12,v=4*h+16,y=l(u,c,d,t[p+0],t[p+1],t[p+2],t[p+3]),b=l(u,c,d,t[g+0],t[g+1],t[g+2],t[g+3]),w=l(u,c,d,t[m+0],t[m+1],t[m+2],t[m+3]),E=l(u,c,d,t[v+0],t[v+1],t[v+2],t[v+3]),x=[y,b,w,E].reduce((function(e,t){return t?e+1:e}),0);if(0===x&&0===f)return n.outside.push(r),void(!s&&n.outside.length>=5&&(s=!0,console.warn("sigma/quadtree.insertNode: At least 5 nodes are outside the global quadtree zone. You might have a problem with the normalization function or the custom bounding box.")));if(0===x)throw new Error("sigma/quadtree.insertNode: no collision (level: ".concat(f,", key: ").concat(r,", x: ").concat(o,", y: ").concat(i,", size: ").concat(a,")."));if(3===x)throw new Error("sigma/quadtree.insertNode: 3 impossible collisions (level: ".concat(f,", key: ").concat(r,", x: ").concat(o,", y: ").concat(i,", size: ").concat(a,")."));if(x>1)return n[h]=n[h]||[],void n[h].push(r);f++,y&&(h=p),b&&(h=g),w&&(h=m),E&&(h=v)}}(0,this.data,this.containers,e,t,n,r),this},e.prototype.resize=function(e){this.clear(),this.data[0]=e.x,this.data[1]=e.y,this.data[2]=e.width,this.data[3]=e.height,function(e,t){for(var n=[0,0];n.length;){var r=n.pop(),o=n.pop(),i=4*o+4,a=4*o+8,s=4*o+12,u=4*o+16,c=t[o+0],l=t[o+1],d=t[o+2]/2,f=t[o+3]/2;t[i+0]=c,t[i+1]=l,t[i+2]=d,t[i+3]=f,t[a+0]=c+d,t[a+1]=l,t[a+2]=d,t[a+3]=f,t[s+0]=c,t[s+1]=l+f,t[s+2]=d,t[s+3]=f,t[u+0]=c+d,t[u+1]=l+f,t[u+2]=d,t[u+3]=f,r<4&&(n.push(u,r+1),n.push(s,r+1),n.push(a,r+1),n.push(i,r+1))}}(0,this.data)},e.prototype.clear=function(){var e;return this.containers=((e={}).outside=[],e),this},e.prototype.point=function(e,t){var n=this.containers.outside,i=0,a=0;do{this.containers[i]&&n.push.apply(n,o([],r(this.containers[i]),!1)),i=4*i+4*f(e,t,this.data[i+0],this.data[i+1],this.data[i+2],this.data[i+3]),a++}while(a<=5);return n},e.prototype.rectangle=function(e,t,n,i,s){var l,f=this.lastRectangle;return f&&e===f.x1&&n===f.x2&&t===f.y1&&i===f.y2&&s===f.height||(this.lastRectangle={x1:e,y1:t,x2:n,y2:i,height:s},u(this.lastRectangle)||(this.lastRectangle=c(this.lastRectangle)),this.cache=function(e,t,n,r,o,i,s){for(var u,c=[0,0],l=[];c.length;){var f=c.pop(),h=c.pop();if((u=n[h])&&(0,a.default)(l,u),!(f>=5)){var p=4*h+4,g=4*h+8,m=4*h+12,v=4*h+16,y=d(r,o,i,s,t[p+0],t[p+1],t[p+2],t[p+3]),b=d(r,o,i,s,t[g+0],t[g+1],t[g+2],t[g+3]),w=d(r,o,i,s,t[m+0],t[m+1],t[m+2],t[m+3]),E=d(r,o,i,s,t[v+0],t[v+1],t[v+2],t[v+3]);y&&c.push(p,f+1),b&&c.push(g,f+1),w&&c.push(m,f+1),E&&c.push(v,f+1)}}return l}(0,this.data,this.containers,e,t,Math.abs(e-n)||Math.abs(t-i),s),(l=this.cache).push.apply(l,o([],r(this.containers.outside),!1))),this.cache},e}();t.default=h},9358:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Sigma=t.MouseCaptor=t.QuadTree=t.Camera=void 0;var o=r(n(8953));t.Sigma=o.default;var i=r(n(1250));t.Camera=i.default;var a=r(n(9316));t.QuadTree=a.default;var s=r(n(3834));t.MouseCaptor=s.default,t.default=o.default},284:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){var i=o.edgeLabelSize,a=o.edgeLabelFont,s=o.edgeLabelWeight,u=o.edgeLabelColor.attribute?t[o.edgeLabelColor.attribute]||o.edgeLabelColor.color||"#000":o.edgeLabelColor.color,c=t.label;if(c){e.fillStyle=u,e.font="".concat(s," ").concat(i,"px ").concat(a);var l,d,f=n.size,h=r.size,p=n.x,g=n.y,m=r.x,v=r.y,y=m-p,b=v-g,w=Math.sqrt(y*y+b*b);if(!(w<f+h)){l=((p+=y*f/w)+(m-=y*h/w))/2,d=((g+=b*f/w)+(v-=b*h/w))/2,y=m-p,b=v-g,w=Math.sqrt(y*y+b*b);var E,x=e.measureText(c).width;if(x>w){for(c+="…",x=e.measureText(c).width;x>w&&c.length>1;)c=c.slice(0,-2)+"…",x=e.measureText(c).width;if(c.length<4)return}E=y>0?b>0?Math.acos(y/w):Math.asin(b/w):b>0?Math.acos(y/w)+Math.PI:Math.asin(y/w)+Math.PI/2,e.save(),e.translate(l,d),e.rotate(E),e.fillText(c,-x/2,t.size/2+i),e.restore()}}}},4362:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2193));t.default=function(e,t,n){var r=n.labelSize,i=n.labelFont,a=n.labelWeight;if(e.font="".concat(a," ").concat(r,"px ").concat(i),e.fillStyle="#FFF",e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=8,e.shadowColor="#000","string"==typeof t.label){var s=e.measureText(t.label).width,u=Math.round(s+5),c=Math.round(r+4),l=Math.max(t.size,r/2)+2,d=Math.asin(c/2/l),f=Math.sqrt(Math.abs(Math.pow(l,2)-Math.pow(c/2,2)));e.beginPath(),e.moveTo(t.x+f,t.y+c/2),e.lineTo(t.x+l+u,t.y+c/2),e.lineTo(t.x+l+u,t.y-c/2),e.lineTo(t.x+f,t.y-c/2),e.arc(t.x,t.y,l,d,-d),e.closePath(),e.fill()}else e.beginPath(),e.arc(t.x,t.y,t.size+2,0,2*Math.PI),e.closePath(),e.fill();e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0,(0,o.default)(e,t,n)}},2193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(t.label){var r=n.labelSize,o=n.labelFont,i=n.labelWeight,a=n.labelColor.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color;e.fillStyle=a,e.font="".concat(i," ").concat(r,"px ").concat(o),e.fillText(t.label,t.x+t.size+3,t.y+r/3)}}},4488:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.createEdgeCompoundProgram=t.AbstractEdgeProgram=void 0;var i=function(e){function t(t,n,r,o,i){return e.call(this,t,n,r,o,i)||this}return o(t,e),t}(n(1549).AbstractProgram);t.AbstractEdgeProgram=i,t.createEdgeCompoundProgram=function(e){return function(){function t(t,n){this.programs=e.map((function(e){return new e(t,n)}))}return t.prototype.bufferData=function(){this.programs.forEach((function(e){return e.bufferData()}))},t.prototype.allocate=function(e){this.programs.forEach((function(t){return t.allocate(e)}))},t.prototype.bind=function(){},t.prototype.computeIndices=function(){this.programs.forEach((function(e){return e.computeIndices()}))},t.prototype.render=function(e){this.programs.forEach((function(t){t.bind(),t.bufferData(),t.render(e)}))},t.prototype.process=function(e,t,n,r,o){this.programs.forEach((function(i){return i.process(e,t,n,r,o)}))},t}()}},1624:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.createNodeCompoundProgram=t.AbstractNodeProgram=void 0;var i=function(e){function t(t,n,r,o,i){var a=e.call(this,t,n,r,o,i)||this;a.positionLocation=t.getAttribLocation(a.program,"a_position"),a.sizeLocation=t.getAttribLocation(a.program,"a_size"),a.colorLocation=t.getAttribLocation(a.program,"a_color");var s=t.getUniformLocation(a.program,"u_matrix");if(null===s)throw new Error("AbstractNodeProgram: error while getting matrixLocation");a.matrixLocation=s;var u=t.getUniformLocation(a.program,"u_ratio");if(null===u)throw new Error("AbstractNodeProgram: error while getting ratioLocation");a.ratioLocation=u;var c=t.getUniformLocation(a.program,"u_scale");if(null===c)throw new Error("AbstractNodeProgram: error while getting scaleLocation");return a.scaleLocation=c,a}return o(t,e),t.prototype.bind=function(){var e=this.gl;e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.sizeLocation),e.enableVertexAttribArray(this.colorLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.sizeLocation,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,this.attributes*Float32Array.BYTES_PER_ELEMENT,12)},t}(n(1549).AbstractProgram);t.AbstractNodeProgram=i,t.createNodeCompoundProgram=function(e){return function(){function t(t,n){this.programs=e.map((function(e){return new e(t,n)}))}return t.prototype.bufferData=function(){this.programs.forEach((function(e){return e.bufferData()}))},t.prototype.allocate=function(e){this.programs.forEach((function(t){return t.allocate(e)}))},t.prototype.bind=function(){},t.prototype.render=function(e){this.programs.forEach((function(t){return t.render(e)}))},t.prototype.process=function(e,t,n){this.programs.forEach((function(r){return r.process(e,t,n)}))},t}()}},1549:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractProgram=void 0;var r=n(3451),o=function(){function e(e,t,n,o,i){this.array=new Float32Array,this.points=o,this.attributes=i,this.gl=e,this.vertexShaderSource=t,this.fragmentShaderSource=n;var a=e.createBuffer();if(null===a)throw new Error("AbstractProgram: error while creating the buffer");this.buffer=a,e.bindBuffer(e.ARRAY_BUFFER,this.buffer),this.vertexShader=(0,r.loadVertexShader)(e,this.vertexShaderSource),this.fragmentShader=(0,r.loadFragmentShader)(e,this.fragmentShaderSource),this.program=(0,r.loadProgram)(e,[this.vertexShader,this.fragmentShader])}return e.prototype.bufferData=function(){var e=this.gl;e.bufferData(e.ARRAY_BUFFER,this.array,e.DYNAMIC_DRAW)},e.prototype.allocate=function(e){this.array=new Float32Array(this.points*this.attributes*e)},e.prototype.hasNothingToRender=function(){return 0===this.array.length},e}();t.AbstractProgram=o},5696:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(4488),i=r(n(3193)),a=r(n(3653)),s=(0,o.createEdgeCompoundProgram)([a.default,i.default]);t.default=s},3193:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=i(n(577)),u=i(n(1604)),c=function(e){function t(t){var n=e.call(this,t,s.default,u.default,3,9)||this;n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal"),n.radiusLocation=t.getAttribLocation(n.program,"a_radius"),n.barycentricLocation=t.getAttribLocation(n.program,"a_barycentric");var r=t.getUniformLocation(n.program,"u_matrix");if(null===r)throw new Error("EdgeArrowHeadProgram: error while getting matrixLocation");n.matrixLocation=r;var o=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===o)throw new Error("EdgeArrowHeadProgram: error while getting sqrtZoomRatioLocation");n.sqrtZoomRatioLocation=o;var i=t.getUniformLocation(n.program,"u_correctionRatio");if(null===i)throw new Error("EdgeArrowHeadProgram: error while getting correctionRatioLocation");return n.correctionRatioLocation=i,n.bind(),n}return o(t,e),t.prototype.bind=function(){var e=this.gl;e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.radiusLocation),e.enableVertexAttribArray(this.colorLocation),e.enableVertexAttribArray(this.barycentricLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,9*Float32Array.BYTES_PER_ELEMENT,20),e.vertexAttribPointer(this.barycentricLocation,3,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,24)},t.prototype.computeIndices=function(){},t.prototype.process=function(e,t,n,r,o){if(r)for(var i=27*o,s=i+27;i<s;i++)this.array[i]=0;else{var u=n.size||1,c=t.size||1,l=e.x,d=e.y,f=t.x,h=t.y,p=(0,a.floatColor)(n.color),g=f-l,m=h-d,v=g*g+m*m,y=0,b=0;v&&(y=-m*(v=1/Math.sqrt(v))*u,b=g*v*u);var w=27*o,E=this.array;E[w++]=f,E[w++]=h,E[w++]=-y,E[w++]=-b,E[w++]=c,E[w++]=p,E[w++]=1,E[w++]=0,E[w++]=0,E[w++]=f,E[w++]=h,E[w++]=-y,E[w++]=-b,E[w++]=c,E[w++]=p,E[w++]=0,E[w++]=1,E[w++]=0,E[w++]=f,E[w++]=h,E[w++]=-y,E[w++]=-b,E[w++]=c,E[w++]=p,E[w++]=0,E[w++]=0,E[w]=1}},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawArrays(t.TRIANGLES,0,this.array.length/9)}},t}(n(4488).AbstractEdgeProgram);t.default=c},3653:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(4488),s=n(8586),u=i(n(3574)),c=i(n(3343)),l=function(e){function t(t){var n=e.call(this,t,u.default,c.default,4,6)||this,r=t.createBuffer();if(null===r)throw new Error("EdgeClampedProgram: error while getting resolutionLocation");n.indicesBuffer=r,n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal"),n.radiusLocation=t.getAttribLocation(n.program,"a_radius");var o=t.getUniformLocation(n.program,"u_matrix");if(null===o)throw new Error("EdgeClampedProgram: error while getting matrixLocation");n.matrixLocation=o;var i=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===i)throw new Error("EdgeClampedProgram: error while getting cameraRatioLocation");n.sqrtZoomRatioLocation=i;var a=t.getUniformLocation(n.program,"u_correctionRatio");if(null===a)throw new Error("EdgeClampedProgram: error while getting viewportRatioLocation");return n.correctionRatioLocation=a,n.canUse32BitsIndices=(0,s.canUse32BitsIndices)(t),n.IndicesArray=n.canUse32BitsIndices?Uint32Array:Uint16Array,n.indicesArray=new n.IndicesArray,n.indicesType=n.canUse32BitsIndices?t.UNSIGNED_INT:t.UNSIGNED_SHORT,n.bind(),n}return o(t,e),t.prototype.bind=function(){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.colorLocation),e.enableVertexAttribArray(this.radiusLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,6*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,20)},t.prototype.process=function(e,t,n,r,o){if(r)for(var i=24*o,a=i+24;i<a;i++)this.array[i]=0;else{var u=n.size||1,c=e.x,l=e.y,d=t.x,f=t.y,h=t.size||1,p=(0,s.floatColor)(n.color),g=d-c,m=f-l,v=g*g+m*m,y=0,b=0;v&&(y=-m*(v=1/Math.sqrt(v))*u,b=g*v*u);var w=24*o,E=this.array;E[w++]=c,E[w++]=l,E[w++]=y,E[w++]=b,E[w++]=p,E[w++]=0,E[w++]=c,E[w++]=l,E[w++]=-y,E[w++]=-b,E[w++]=p,E[w++]=0,E[w++]=d,E[w++]=f,E[w++]=y,E[w++]=b,E[w++]=p,E[w++]=h,E[w++]=d,E[w++]=f,E[w++]=-y,E[w++]=-b,E[w++]=p,E[w]=-h}},t.prototype.computeIndices=function(){for(var e=this.array.length/6,t=e+e/2,n=new this.IndicesArray(t),r=0,o=0;r<e;r+=4)n[o++]=r,n[o++]=r+1,n[o++]=r+2,n[o++]=r+2,n[o++]=r+1,n[o++]=r+3;this.indicesArray=n},t.prototype.bufferData=function(){e.prototype.bufferData.call(this);var t=this.gl;t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indicesArray,t.STATIC_DRAW)},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}},t}(a.AbstractEdgeProgram);t.default=l},5372:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=i(n(9843)),u=i(n(3343)),c=function(e){function t(t){var n=e.call(this,t,s.default,u.default,4,5)||this,r=t.createBuffer();if(null===r)throw new Error("EdgeProgram: error while creating indicesBuffer");n.indicesBuffer=r,n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal");var o=t.getUniformLocation(n.program,"u_matrix");if(null===o)throw new Error("EdgeProgram: error while getting matrixLocation");n.matrixLocation=o;var i=t.getUniformLocation(n.program,"u_correctionRatio");if(null===i)throw new Error("EdgeProgram: error while getting correctionRatioLocation");n.correctionRatioLocation=i;var c=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===c)throw new Error("EdgeProgram: error while getting sqrtZoomRatioLocation");return n.sqrtZoomRatioLocation=c,n.canUse32BitsIndices=(0,a.canUse32BitsIndices)(t),n.IndicesArray=n.canUse32BitsIndices?Uint32Array:Uint16Array,n.indicesArray=new n.IndicesArray,n.indicesType=n.canUse32BitsIndices?t.UNSIGNED_INT:t.UNSIGNED_SHORT,n.bind(),n}return o(t,e),t.prototype.bind=function(){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.colorLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,5*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,5*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,5*Float32Array.BYTES_PER_ELEMENT,16)},t.prototype.computeIndices=function(){for(var e=this.array.length/5,t=e+e/2,n=new this.IndicesArray(t),r=0,o=0;r<e;r+=4)n[o++]=r,n[o++]=r+1,n[o++]=r+2,n[o++]=r+2,n[o++]=r+1,n[o++]=r+3;this.indicesArray=n},t.prototype.bufferData=function(){e.prototype.bufferData.call(this);var t=this.gl;t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indicesArray,t.STATIC_DRAW)},t.prototype.process=function(e,t,n,r,o){if(r)for(var i=20*o,s=i+20;i<s;i++)this.array[i]=0;else{var u=n.size||1,c=e.x,l=e.y,d=t.x,f=t.y,h=(0,a.floatColor)(n.color),p=d-c,g=f-l,m=p*p+g*g,v=0,y=0;m&&(v=-g*(m=1/Math.sqrt(m))*u,y=p*m*u);var b=20*o,w=this.array;w[b++]=c,w[b++]=l,w[b++]=v,w[b++]=y,w[b++]=h,w[b++]=c,w[b++]=l,w[b++]=-v,w[b++]=-y,w[b++]=h,w[b++]=d,w[b++]=f,w[b++]=v,w[b++]=y,w[b++]=h,w[b++]=d,w[b++]=f,w[b++]=-v,w[b++]=-y,w[b]=h}},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}},t}(n(4488).AbstractEdgeProgram);t.default=c},732:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=i(n(1432)),u=i(n(6846)),c=function(e){function t(t){var n=e.call(this,t,s.default,u.default,1,4)||this;return n.bind(),n}return o(t,e),t.prototype.process=function(e,t,n){var r=this.array,o=1*n*4;if(t)return r[o++]=0,r[o++]=0,r[o++]=0,void(r[o++]=0);var i=(0,a.floatColor)(e.color);r[o++]=e.x,r[o++]=e.y,r[o++]=e.size,r[o]=i},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniform1f(this.ratioLocation,1/Math.sqrt(e.ratio)),t.uniform1f(this.scaleLocation,e.scalingRatio),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.drawArrays(t.POINTS,0,this.array.length/4)}},t}(n(1624).AbstractNodeProgram);t.default=c},1604:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="precision mediump float;\n\nvarying vec4 v_color;\n\nvoid main(void) {\n gl_FragColor = v_color;\n}\n";e.exports=n})()},577:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="attribute vec2 a_position;\nattribute vec2 a_normal;\nattribute float a_radius;\nattribute vec4 a_color;\nattribute vec3 a_barycentric;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\nconst float arrowHeadWidthLengthRatio = 0.66;\nconst float arrowHeadLengthThicknessRatio = 2.5;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // These first computations are taken from edge.vert.glsl and\n // edge.clamped.vert.glsl. Please read it to get better comments on what's\n // happening:\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n float webGLThickness = pixelsThickness * u_correctionRatio;\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n float adaptedWebGLNodeRadius = a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio;\n float adaptedWebGLArrowHeadHalfWidth = adaptedWebGLArrowHeadLength * arrowHeadWidthLengthRatio / 2.0;\n\n float da = a_barycentric.x;\n float db = a_barycentric.y;\n float dc = a_barycentric.z;\n\n vec2 delta = vec2(\n da * (adaptedWebGLNodeRadius * unitNormal.y)\n + db * ((adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.y + adaptedWebGLArrowHeadHalfWidth * unitNormal.x)\n + dc * ((adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.y - adaptedWebGLArrowHeadHalfWidth * unitNormal.x),\n\n da * (-adaptedWebGLNodeRadius * unitNormal.x)\n + db * (-(adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.x + adaptedWebGLArrowHeadHalfWidth * unitNormal.y)\n + dc * (-(adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.x - adaptedWebGLArrowHeadHalfWidth * unitNormal.y)\n );\n\n vec2 position = (u_matrix * vec3(a_position + delta, 1)).xy;\n\n gl_Position = vec4(position, 0, 1);\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n})()},3574:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="attribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\nattribute float a_radius;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\nconst float arrowHeadLengthThicknessRatio = 2.5;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // These first computations are taken from edge.vert.glsl. Please read it to\n // get better comments on what's happening:\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n float webGLThickness = pixelsThickness * u_correctionRatio;\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // Here, we move the point to leave space for the arrow head:\n float direction = sign(a_radius);\n float adaptedWebGLNodeRadius = direction * a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio;\n\n vec2 compensationVector = vec2(-direction * unitNormal.y, direction * unitNormal.x) * (adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength);\n\n // Here is the proper position of the vertex\n gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness + compensationVector, 1)).xy, 0, 1);\n\n v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n v_normal = unitNormal;\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n})()},3343:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="precision mediump float;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float feather = 0.001;\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\n\n\nvoid main(void) {\n float dist = length(v_normal) * v_thickness;\n\n float t = smoothstep(\n v_thickness - feather,\n v_thickness,\n dist\n );\n\n gl_FragColor = mix(v_color, transparent, t);\n}";e.exports=n})()},9843:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r='attribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // We require edges to be at least `minThickness` pixels thick *on screen*\n // (so we need to compensate the SQRT zoom ratio):\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n\n // Then, we need to retrieve the normalized thickness of the edge in the WebGL\n // referential (in a ([0, 1], [0, 1]) space), using our "magic" correction\n // ratio:\n float webGLThickness = pixelsThickness * u_correctionRatio;\n\n // Finally, we adapt the edge thickness to the "SQRT rule" in sigma (so that\n // items are not too big when zoomed in, and not too small when zoomed out).\n // The exact computation should be `adapted = value * zoom / sqrt(zoom)`, but\n // it\'s simpler like this:\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // Here is the proper position of the vertex\n gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness, 1)).xy, 0, 1);\n\n // For the fragment shader though, we need a thickness that takes the "magic"\n // correction ratio into account (as in webGLThickness), but so that the\n // antialiasint effect does not depend on the zoom level. So here\'s yet\n // another thickness version:\n v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n v_normal = unitNormal;\n v_color = a_color;\n v_color.a *= bias;\n}\n';e.exports=n})()},6846:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="precision mediump float;\n\nvarying vec4 v_color;\nvarying float v_border;\n\nconst float radius = 0.5;\n\nvoid main(void) {\n vec4 color0 = vec4(0.0, 0.0, 0.0, 0.0);\n vec2 m = gl_PointCoord - vec2(0.5, 0.5);\n float dist = radius - length(m);\n\n float t = 0.0;\n if (dist > v_border)\n t = 1.0;\n else if (dist > 0.0)\n t = dist / v_border;\n\n gl_FragColor = mix(color0, v_color, t);\n}\n";e.exports=n})()},1432:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="attribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying vec4 v_color;\nvarying float v_border;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n gl_Position = vec4(\n (u_matrix * vec3(a_position, 1)).xy,\n 0,\n 1\n );\n\n // Multiply the point size twice:\n // - x SCALING_RATIO to correct the canvas scaling\n // - x 2 to correct the formulae\n gl_PointSize = a_size * u_ratio * u_scale * 2.0;\n\n v_border = (1.0 / u_ratio) * (0.5 / a_size);\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n})()},3451:(e,t)=>{"use strict";function n(e,t,n){var r="VERTEX"===e?t.VERTEX_SHADER:t.FRAGMENT_SHADER,o=t.createShader(r);if(null===o)throw new Error("loadShader: error while creating the shader");if(t.shaderSource(o,n),t.compileShader(o),!t.getShaderParameter(o,t.COMPILE_STATUS)){var i=t.getShaderInfoLog(o);throw t.deleteShader(o),new Error("loadShader: error while compiling the shader:\n".concat(i,"\n").concat(n))}return o}Object.defineProperty(t,"__esModule",{value:!0}),t.loadProgram=t.loadFragmentShader=t.loadVertexShader=void 0,t.loadVertexShader=function(e,t){return n("VERTEX",e,t)},t.loadFragmentShader=function(e,t){return n("FRAGMENT",e,t)},t.loadProgram=function(e,t){var n,r,o=e.createProgram();if(null===o)throw new Error("loadProgram: error while creating the program.");for(n=0,r=t.length;n<r;n++)e.attachShader(o,t[n]);if(e.linkProgram(o),!e.getProgramParameter(o,e.LINK_STATUS))throw e.deleteProgram(o),new Error("loadProgram: error while linking the program.");return o}},9061:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_SETTINGS=t.validateSettings=void 0;var o=r(n(2193)),i=r(n(4362)),a=r(n(284)),s=r(n(732)),u=r(n(5372)),c=r(n(5696));t.validateSettings=function(e){if("number"!=typeof e.labelDensity||e.labelDensity<0)throw new Error("Settings: invalid `labelDensity`. Expecting a positive number.");var t=e.minCameraRatio,n=e.maxCameraRatio;if("number"==typeof t&&"number"==typeof n&&n<t)throw new Error("Settings: invalid camera ratio boundaries. Expecting `maxCameraRatio` to be greater than `minCameraRatio`.")},t.DEFAULT_SETTINGS={hideEdgesOnMove:!1,hideLabelsOnMove:!1,renderLabels:!0,renderEdgeLabels:!1,enableEdgeClickEvents:!1,enableEdgeWheelEvents:!1,enableEdgeHoverEvents:!1,defaultNodeColor:"#999",defaultNodeType:"circle",defaultEdgeColor:"#ccc",defaultEdgeType:"line",labelFont:"Arial",labelSize:14,labelWeight:"normal",labelColor:{color:"#000"},edgeLabelFont:"Arial",edgeLabelSize:14,edgeLabelWeight:"normal",edgeLabelColor:{attribute:"color"},stagePadding:30,labelDensity:1,labelGridCellSize:100,labelRenderedSizeThreshold:6,nodeReducer:null,edgeReducer:null,zIndex:!1,minCameraRatio:null,maxCameraRatio:null,labelRenderer:o.default,hoverRenderer:i.default,edgeLabelRenderer:a.default,nodeProgramClasses:{circle:s.default},edgeProgramClasses:{arrow:c.default,line:u.default}}},8953:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=s(n(1250)),c=s(n(3834)),l=s(n(9316)),d=n(432),f=n(8586),h=n(2306),p=n(9061),g=s(n(916)),m=n(2237),v=n(8073),y=(0,f.getPixelRatio)();function b(e,t,n){if(!n.hasOwnProperty("x")||!n.hasOwnProperty("y"))throw new Error('Sigma: could not find a valid position (x, y) for node "'.concat(t,'". All your nodes must have a number "x" and "y". Maybe your forgot to apply a layout or your "nodeReducer" is not returning the correct data?'));return n.color||(n.color=e.defaultNodeColor),n.label||""===n.label||(n.label=null),void 0!==n.label&&null!==n.label?n.label=""+n.label:n.label=null,n.size||(n.size=2),n.hasOwnProperty("hidden")||(n.hidden=!1),n.hasOwnProperty("highlighted")||(n.highlighted=!1),n.hasOwnProperty("forceLabel")||(n.forceLabel=!1),n.type&&""!==n.type||(n.type=e.defaultNodeType),n.zIndex||(n.zIndex=0),n}function w(e,t,n){return n.color||(n.color=e.defaultEdgeColor),n.label||(n.label=""),n.size||(n.size=.5),n.hasOwnProperty("hidden")||(n.hidden=!1),n.hasOwnProperty("forceLabel")||(n.forceLabel=!1),n.type&&""!==n.type||(n.type=e.defaultEdgeType),n.zIndex||(n.zIndex=0),n}var E=function(e){function t(t,n,r){void 0===r&&(r={});var o=e.call(this)||this;if(o.elements={},o.canvasContexts={},o.webGLContexts={},o.activeListeners={},o.quadtree=new l.default,o.labelGrid=new h.LabelGrid,o.nodeDataCache={},o.edgeDataCache={},o.nodesWithForcedLabels=[],o.edgesWithForcedLabels=[],o.nodeKeyToIndex={},o.edgeKeyToIndex={},o.nodeExtent={x:[0,1],y:[0,1]},o.matrix=(0,m.identity)(),o.invMatrix=(0,m.identity)(),o.correctionRatio=1,o.customBBox=null,o.normalizationFunction=(0,f.createNormalizationFunction)({x:[-1/0,1/0],y:[-1/0,1/0]}),o.cameraSizeRatio=1,o.width=0,o.height=0,o.displayedLabels=new Set,o.highlightedNodes=new Set,o.hoveredNode=null,o.hoveredEdge=null,o.renderFrame=null,o.renderHighlightedNodesFrame=null,o.needToProcess=!1,o.needToSoftProcess=!1,o.checkEdgesEventsFrame=null,o.nodePrograms={},o.hoverNodePrograms={},o.edgePrograms={},o.settings=(0,f.assign)({},p.DEFAULT_SETTINGS,r),(0,p.validateSettings)(o.settings),(0,f.validateGraph)(t),!(n instanceof HTMLElement))throw new Error("Sigma: container should be an html element.");for(var i in o.graph=t,o.container=n,o.initializeCache(),o.createWebGLContext("edges",{preserveDrawingBuffer:!0}),o.createCanvasContext("edgeLabels"),o.createWebGLContext("nodes"),o.createCanvasContext("labels"),o.createCanvasContext("hovers"),o.createWebGLContext("hoverNodes"),o.createCanvasContext("mouse"),o.webGLContexts){var a=o.webGLContexts[i];a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA),a.enable(a.BLEND)}for(var s in o.settings.nodeProgramClasses){var d=o.settings.nodeProgramClasses[s];o.nodePrograms[s]=new d(o.webGLContexts.nodes,o),o.hoverNodePrograms[s]=new d(o.webGLContexts.hoverNodes,o)}for(var s in o.settings.edgeProgramClasses){var v=o.settings.edgeProgramClasses[s];o.edgePrograms[s]=new v(o.webGLContexts.edges,o)}return o.resize(),o.camera=new u.default,o.bindCameraHandlers(),o.mouseCaptor=new c.default(o.elements.mouse,o),o.touchCaptor=new g.default(o.elements.mouse,o),o.bindEventHandlers(),o.bindGraphHandlers(),o.handleSettingsUpdate(),o.process(),o.render(),o}return o(t,e),t.prototype.createCanvas=function(e){var t=(0,f.createElement)("canvas",{position:"absolute"},{class:"sigma-".concat(e)});return this.elements[e]=t,this.container.appendChild(t),t},t.prototype.createCanvasContext=function(e){var t=this.createCanvas(e);return this.canvasContexts[e]=t.getContext("2d",{preserveDrawingBuffer:!1,antialias:!1}),this},t.prototype.createWebGLContext=function(e,t){var n,r=this.createCanvas(e),o=i({preserveDrawingBuffer:!1,antialias:!1},t||{});return(n=r.getContext("webgl2",o))||(n=r.getContext("webgl",o)),n||(n=r.getContext("experimental-webgl",o)),this.webGLContexts[e]=n,this},t.prototype.initializeCache=function(){var e=this,t=this.graph,n=0;t.forEachNode((function(t){e.nodeKeyToIndex[t]=n++})),n=0,t.forEachEdge((function(t){e.edgeKeyToIndex[t]=n++}))},t.prototype.bindCameraHandlers=function(){var e=this;return this.activeListeners.camera=function(){e._scheduleRefresh()},this.camera.on("updated",this.activeListeners.camera),this},t.prototype.bindEventHandlers=function(){var e=this;this.activeListeners.handleResize=function(){e.needToSoftProcess=!0,e._scheduleRefresh()},window.addEventListener("resize",this.activeListeners.handleResize);var t=function(e,t,n,r,o){return e>n-o&&e<n+o&&t>r-o&&t<r+o&&Math.sqrt(Math.pow(e-n,2)+Math.pow(t-r,2))<o};this.activeListeners.handleMove=function(n){for(var r,o,a,s=(r=n.x,o=n.y,a=e.viewportToFramedGraph({x:r,y:o}),e.quadtree.point(a.x,1-a.y)),u={event:n,preventSigmaDefault:function(){this.event.preventSigmaDefault()}},c=1/0,l=null,d=0,h=s.length;d<h;d++){var p=s[d],g=e.nodeDataCache[p],m=e.framedGraphToViewport(g),v=e.scaleSize(g.size);if(!g.hidden&&t(n.x,n.y,m.x,m.y,v)){var y=Math.sqrt(Math.pow(n.x-m.x,2)+Math.pow(n.y-m.y,2));y<c&&(c=y,l=p)}}return l&&e.hoveredNode!==l&&!e.nodeDataCache[l].hidden?(e.hoveredNode&&e.emit("leaveNode",i(i({},u),{node:e.hoveredNode})),e.hoveredNode=l,e.emit("enterNode",i(i({},u),{node:l})),void e.scheduleHighlightedNodesRender()):e.hoveredNode&&(g=e.nodeDataCache[e.hoveredNode],m=e.framedGraphToViewport(g),v=e.scaleSize(g.size),!t(n.x,n.y,m.x,m.y,v))?(p=e.hoveredNode,e.hoveredNode=null,e.emit("leaveNode",i(i({},u),{node:p})),e.scheduleHighlightedNodesRender()):void(!0===e.settings.enableEdgeHoverEvents?e.checkEdgeHoverEvents(u):"debounce"===e.settings.enableEdgeHoverEvents&&(e.checkEdgesEventsFrame||(e.checkEdgesEventsFrame=(0,f.requestFrame)((function(){e.checkEdgeHoverEvents(u),e.checkEdgesEventsFrame=null})))))};var n=function(t){return function(n){var r={event:n,preventSigmaDefault:function(){this.event.preventSigmaDefault()}};if(e.hoveredNode)return e.emit("".concat(t,"Node"),i(i({},r),{node:e.hoveredNode}));if("wheel"===t?e.settings.enableEdgeWheelEvents:e.settings.enableEdgeClickEvents){var o=e.getEdgeAtPoint(n.x,n.y);if(o)return e.emit("".concat(t,"Edge"),i(i({},r),{edge:o}))}return e.emit("".concat(t,"Stage"),r)}};return this.activeListeners.handleClick=n("click"),this.activeListeners.handleRightClick=n("rightClick"),this.activeListeners.handleDoubleClick=n("doubleClick"),this.activeListeners.handleWheel=n("wheel"),this.activeListeners.handleDown=n("down"),this.mouseCaptor.on("mousemove",this.activeListeners.handleMove),this.mouseCaptor.on("click",this.activeListeners.handleClick),this.mouseCaptor.on("rightClick",this.activeListeners.handleRightClick),this.mouseCaptor.on("doubleClick",this.activeListeners.handleDoubleClick),this.mouseCaptor.on("wheel",this.activeListeners.handleWheel),this.mouseCaptor.on("mousedown",this.activeListeners.handleDown),this},t.prototype.bindGraphHandlers=function(){var e=this,t=this.graph;return this.activeListeners.graphUpdate=function(){e.needToProcess=!0,e._scheduleRefresh()},this.activeListeners.softGraphUpdate=function(){e.needToSoftProcess=!0,e._scheduleRefresh()},this.activeListeners.addNodeGraphUpdate=function(n){e.nodeKeyToIndex[n.key]=t.order-1,e.activeListeners.graphUpdate()},this.activeListeners.addEdgeGraphUpdate=function(n){e.nodeKeyToIndex[n.key]=t.order-1,e.activeListeners.graphUpdate()},t.on("nodeAdded",this.activeListeners.addNodeGraphUpdate),t.on("nodeDropped",this.activeListeners.graphUpdate),t.on("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgeAdded",this.activeListeners.addEdgeGraphUpdate),t.on("edgeDropped",this.activeListeners.graphUpdate),t.on("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgesCleared",this.activeListeners.graphUpdate),t.on("cleared",this.activeListeners.graphUpdate),this},t.prototype.checkEdgeHoverEvents=function(e){var t=this.hoveredNode?null:this.getEdgeAtPoint(e.event.x,e.event.y);return t!==this.hoveredEdge&&(this.hoveredEdge&&this.emit("leaveEdge",i(i({},e),{edge:this.hoveredEdge})),t&&this.emit("enterEdge",i(i({},e),{edge:t})),this.hoveredEdge=t),this},t.prototype.getEdgeAtPoint=function(e,t){var n,r,o=this,i=this.edgeDataCache,s=this.nodeDataCache;if(!(0,v.isPixelColored)(this.webGLContexts.edges,e*y,t*y))return null;var u=this.viewportToGraph({x:e,y:t}),c=u.x,l=u.y,d=0;if(this.graph.someEdge((function(e,t,n,r,a,u){var c=a.x,l=a.y,f=u.x,h=u.y;if(i[e].hidden||s[n].hidden||s[r].hidden)return!1;if(c!==f||l!==h){var p=Math.sqrt(Math.pow(f-c,2)+Math.pow(h-l,2)),g=o.graphToViewport({x:c,y:l}),m=g.x,v=g.y,y=o.graphToViewport({x:f,y:h}),b=y.x,w=y.y,E=Math.sqrt(Math.pow(b-m,2)+Math.pow(w-v,2));return d=p/E,!0}})),!d)return null;var f=this.graph.filterEdges((function(e,t,n,r,a,u){return!(i[e].hidden||s[n].hidden||s[r].hidden)&&(!!(0,v.doEdgeCollideWithPoint)(c,l,a.x,a.y,u.x,u.y,i[e].size*d/o.cameraSizeRatio)||void 0)}));if(0===f.length)return null;var h=f[f.length-1],p=-1/0;try{for(var g=a(f),m=g.next();!m.done;m=g.next()){var b=m.value,w=this.graph.getEdgeAttribute(b,"zIndex");w>=p&&(h=b,p=w)}}catch(e){n={error:e}}finally{try{m&&!m.done&&(r=g.return)&&r.call(g)}finally{if(n)throw n.error}}return h},t.prototype.process=function(e){var t=this;void 0===e&&(e=!1);var n=this.graph,r=this.settings,o=this.getDimensions(),i=[1/0,-1/0],a=[1/0,-1/0];this.quadtree.clear(),this.labelGrid.resizeAndClear(o,r.labelGridCellSize),this.highlightedNodes=new Set,this.nodeExtent=(0,f.graphExtent)(n),this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[];var s=new u.default,c=(0,f.matrixFromCamera)(s.getState(),this.getDimensions(),this.getGraphDimensions(),this.getSetting("stagePadding")||0);this.normalizationFunction=(0,f.createNormalizationFunction)(this.customBBox||this.nodeExtent);for(var l={},d=n.nodes(),h=0,p=d.length;h<p;h++){var g=d[h],m=Object.assign({},n.getNodeAttributes(g));r.nodeReducer&&(m=r.nodeReducer(g,m)),l[(y=b(this.settings,g,m)).type]=(l[y.type]||0)+1,this.nodeDataCache[g]=y,this.normalizationFunction.applyTo(y),y.forceLabel&&this.nodesWithForcedLabels.push(g),this.settings.zIndex&&(y.zIndex<i[0]&&(i[0]=y.zIndex),y.zIndex>i[1]&&(i[1]=y.zIndex))}for(var v in this.nodePrograms){if(!this.nodePrograms.hasOwnProperty(v))throw new Error('Sigma: could not find a suitable program for node type "'.concat(v,'"!'));e||this.nodePrograms[v].allocate(l[v]||0),l[v]=0}for(this.settings.zIndex&&i[0]!==i[1]&&(d=(0,f.zIndexOrdering)(i,(function(e){return t.nodeDataCache[e].zIndex}),d)),h=0,p=d.length;h<p;h++){g=d[h];var y=this.nodeDataCache[g];this.quadtree.add(g,y.x,1-y.y,y.size/this.width),"string"!=typeof y.label||y.hidden||this.labelGrid.add(g,y.size,this.framedGraphToViewport(y,{matrix:c})),this.nodePrograms[y.type].process(y,y.hidden,l[y.type]++),y.highlighted&&!y.hidden&&this.highlightedNodes.add(g),this.nodeKeyToIndex[g]=h}this.labelGrid.organize();var E={},x=n.edges();for(h=0,p=x.length;h<p;h++){var _=x[h];m=Object.assign({},n.getEdgeAttributes(_)),r.edgeReducer&&(m=r.edgeReducer(_,m)),E[(y=w(this.settings,0,m)).type]=(E[y.type]||0)+1,this.edgeDataCache[_]=y,y.forceLabel&&!y.hidden&&this.edgesWithForcedLabels.push(_),this.settings.zIndex&&(y.zIndex<a[0]&&(a[0]=y.zIndex),y.zIndex>a[1]&&(a[1]=y.zIndex))}for(var v in this.edgePrograms){if(!this.edgePrograms.hasOwnProperty(v))throw new Error('Sigma: could not find a suitable program for edge type "'.concat(v,'"!'));e||this.edgePrograms[v].allocate(E[v]||0),E[v]=0}for(this.settings.zIndex&&a[0]!==a[1]&&(x=(0,f.zIndexOrdering)(a,(function(e){return t.edgeDataCache[e].zIndex}),x)),h=0,p=x.length;h<p;h++){_=x[h],y=this.edgeDataCache[_];var C=n.extremities(_),S=this.nodeDataCache[C[0]],A=this.nodeDataCache[C[1]],k=y.hidden||S.hidden||A.hidden;this.edgePrograms[y.type].process(S,A,y,k,E[y.type]++),this.nodeKeyToIndex[_]=h}for(var v in this.edgePrograms){var O=this.edgePrograms[v];e||"function"!=typeof O.computeIndices||O.computeIndices()}return this},t.prototype.handleSettingsUpdate=function(){return this.camera.minRatio=this.settings.minCameraRatio,this.camera.maxRatio=this.settings.maxCameraRatio,this.camera.setState(this.camera.validateState(this.camera.getState())),this},t.prototype._refresh=function(){return this.needToProcess?this.process():this.needToSoftProcess&&this.process(!0),this.needToProcess=!1,this.needToSoftProcess=!1,this.render(),this},t.prototype._scheduleRefresh=function(){var e=this;return this.renderFrame||(this.renderFrame=(0,f.requestFrame)((function(){e._refresh(),e.renderFrame=null}))),this},t.prototype.renderLabels=function(){if(!this.settings.renderLabels)return this;var e,t=this.camera.getState();if(t.ratio>=1)e=new Set(this.graph.nodes());else{var n=this.viewRectangle();e=new Set(this.quadtree.rectangle(n.x1,1-n.y1,n.x2,1-n.y2,n.height))}var r=this.labelGrid.getLabelsToDisplay(t.ratio,this.settings.labelDensity).concat(this.nodesWithForcedLabels);this.displayedLabels=new Set;for(var o=this.canvasContexts.labels,a=0,s=r.length;a<s;a++){var u=r[a],c=this.nodeDataCache[u];if(!this.displayedLabels.has(u)&&!c.hidden){var l=this.framedGraphToViewport(c),d=l.x,f=l.y,h=this.scaleSize(c.size);!c.forceLabel&&h<this.settings.labelRenderedSizeThreshold||e.has(u)&&(this.displayedLabels.add(u),this.settings.labelRenderer(o,i(i({key:u},c),{size:h,x:d,y:f}),this.settings))}}return this},t.prototype.renderEdgeLabels=function(){if(!this.settings.renderEdgeLabels)return this;var e=this.canvasContexts.edgeLabels;e.clearRect(0,0,this.width,this.height);for(var t=(0,h.edgeLabelsToDisplayFromNodes)({graph:this.graph,hoveredNode:this.hoveredNode,displayedNodeLabels:this.displayedLabels,highlightedNodes:this.highlightedNodes}).concat(this.edgesWithForcedLabels),n=new Set,r=0,o=t.length;r<o;r++){var a=t[r],s=this.graph.extremities(a),u=this.nodeDataCache[s[0]],c=this.nodeDataCache[s[1]],l=this.edgeDataCache[a];n.has(a)||l.hidden||u.hidden||c.hidden||(this.settings.edgeLabelRenderer(e,i(i({key:a},l),{size:this.scaleSize(l.size)}),i(i(i({key:s[0]},u),this.framedGraphToViewport(u)),{size:this.scaleSize(u.size)}),i(i(i({key:s[1]},c),this.framedGraphToViewport(c)),{size:this.scaleSize(c.size)}),this.settings),n.add(a))}return this},t.prototype.renderHighlightedNodes=function(){var e=this,t=this.canvasContexts.hovers;t.clearRect(0,0,this.width,this.height);var n=[];this.hoveredNode&&!this.nodeDataCache[this.hoveredNode].hidden&&n.push(this.hoveredNode),this.highlightedNodes.forEach((function(t){t!==e.hoveredNode&&n.push(t)})),n.forEach((function(n){return function(n){var r=e.nodeDataCache[n],o=e.framedGraphToViewport(r),a=o.x,s=o.y,u=e.scaleSize(r.size);e.settings.hoverRenderer(t,i(i({key:n},r),{size:u,x:a,y:s}),e.settings)}(n)}));var r={};for(var o in n.forEach((function(t){var n=e.nodeDataCache[t].type;r[n]=(r[n]||0)+1})),this.hoverNodePrograms)this.hoverNodePrograms[o].allocate(r[o]||0),r[o]=0;for(var o in n.forEach((function(t){var n=e.nodeDataCache[t];e.hoverNodePrograms[n.type].process(n,n.hidden,r[n.type]++)})),this.hoverNodePrograms){var a=this.hoverNodePrograms[o];a.bind(),a.bufferData(),a.render({matrix:this.matrix,width:this.width,height:this.height,ratio:this.camera.ratio,correctionRatio:this.correctionRatio/this.camera.ratio,scalingRatio:y})}},t.prototype.scheduleHighlightedNodesRender=function(){var e=this;this.renderHighlightedNodesFrame||this.renderFrame||(this.renderHighlightedNodesFrame=(0,f.requestFrame)((function(){e.renderHighlightedNodesFrame=null,e.renderHighlightedNodes(),e.renderEdgeLabels()})))},t.prototype.render=function(){if(this.renderFrame&&((0,f.cancelFrame)(this.renderFrame),this.renderFrame=null,this.needToProcess=!1,this.needToSoftProcess=!1),this.resize(),this.clear(),this.updateCachedValues(),!this.graph.order)return this;var e=this.mouseCaptor,t=this.camera.isAnimated()||e.isMoving||e.draggedEvents||e.currentWheelDirection,n=this.camera.getState(),r=this.getDimensions(),o=this.getGraphDimensions(),i=this.getSetting("stagePadding")||0;for(var a in this.matrix=(0,f.matrixFromCamera)(n,r,o,i),this.invMatrix=(0,f.matrixFromCamera)(n,r,o,i,!0),this.correctionRatio=(0,f.getMatrixImpact)(this.matrix,n,r),this.nodePrograms)(s=this.nodePrograms[a]).bind(),s.bufferData(),s.render({matrix:this.matrix,width:this.width,height:this.height,ratio:n.ratio,correctionRatio:this.correctionRatio/n.ratio,scalingRatio:y});if(!this.settings.hideEdgesOnMove||!t)for(var a in this.edgePrograms){var s;(s=this.edgePrograms[a]).bind(),s.bufferData(),s.render({matrix:this.matrix,width:this.width,height:this.height,ratio:n.ratio,correctionRatio:this.correctionRatio/n.ratio,scalingRatio:y})}return this.settings.hideLabelsOnMove&&t||(this.renderLabels(),this.renderEdgeLabels(),this.renderHighlightedNodes(),this.emit("afterRender")),this},t.prototype.updateCachedValues=function(){var e=this.camera.getState().ratio;this.cameraSizeRatio=Math.sqrt(e)},t.prototype.getCamera=function(){return this.camera},t.prototype.getGraph=function(){return this.graph},t.prototype.getMouseCaptor=function(){return this.mouseCaptor},t.prototype.getTouchCaptor=function(){return this.touchCaptor},t.prototype.getDimensions=function(){return{width:this.width,height:this.height}},t.prototype.getGraphDimensions=function(){var e=this.customBBox||this.nodeExtent;return{width:e.x[1]-e.x[0]||1,height:e.y[1]-e.y[0]||1}},t.prototype.getNodeDisplayData=function(e){var t=this.nodeDataCache[e];return t?Object.assign({},t):void 0},t.prototype.getEdgeDisplayData=function(e){var t=this.edgeDataCache[e];return t?Object.assign({},t):void 0},t.prototype.getSettings=function(){return i({},this.settings)},t.prototype.getSetting=function(e){return this.settings[e]},t.prototype.setSetting=function(e,t){return this.settings[e]=t,(0,p.validateSettings)(this.settings),this.handleSettingsUpdate(),this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.updateSetting=function(e,t){return this.settings[e]=t(this.settings[e]),(0,p.validateSettings)(this.settings),this.handleSettingsUpdate(),this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.resize=function(){var e=this.width,t=this.height;if(this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,0===this.width)throw new Error("Sigma: container has no width.");if(0===this.height)throw new Error("Sigma: container has no height.");if(e===this.width&&t===this.height)return this;for(var n in this.elements){var r=this.elements[n];r.style.width=this.width+"px",r.style.height=this.height+"px"}for(var n in this.canvasContexts)this.elements[n].setAttribute("width",this.width*y+"px"),this.elements[n].setAttribute("height",this.height*y+"px"),1!==y&&this.canvasContexts[n].scale(y,y);for(var n in this.webGLContexts)this.elements[n].setAttribute("width",this.width*y+"px"),this.elements[n].setAttribute("height",this.height*y+"px"),this.webGLContexts[n].viewport(0,0,this.width*y,this.height*y);return this},t.prototype.clear=function(){return this.webGLContexts.nodes.clear(this.webGLContexts.nodes.COLOR_BUFFER_BIT),this.webGLContexts.edges.clear(this.webGLContexts.edges.COLOR_BUFFER_BIT),this.webGLContexts.hoverNodes.clear(this.webGLContexts.nodes.COLOR_BUFFER_BIT),this.canvasContexts.labels.clearRect(0,0,this.width,this.height),this.canvasContexts.hovers.clearRect(0,0,this.width,this.height),this.canvasContexts.edgeLabels.clearRect(0,0,this.width,this.height),this},t.prototype.refresh=function(){return this.needToProcess=!0,this._refresh(),this},t.prototype.scheduleRefresh=function(){return this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.getViewportZoomedState=function(e,t){var n=this.camera.getState(),r=n.ratio,o=n.angle,i=n.x,a=n.y,s=t/r,u={x:this.width/2,y:this.height/2},c=this.viewportToFramedGraph(e),l=this.viewportToFramedGraph(u);return{angle:o,x:(c.x-l.x)*(1-s)+i,y:(c.y-l.y)*(1-s)+a,ratio:t}},t.prototype.viewRectangle=function(){var e=0*this.width/8,t=0*this.height/8,n=this.viewportToFramedGraph({x:0-e,y:0-t}),r=this.viewportToFramedGraph({x:this.width+e,y:0-t}),o=this.viewportToFramedGraph({x:0,y:this.height+t});return{x1:n.x,y1:n.y,x2:r.x,y2:r.y,height:r.y-o.y}},t.prototype.framedGraphToViewport=function(e,t){void 0===t&&(t={});var n=!!t.cameraState||!!t.viewportDimensions||!!t.graphDimensions,r=t.matrix?t.matrix:n?(0,f.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0):this.matrix,o=[e.x,e.y,1],i=(0,m.multiplyVec)(r,o);return{x:(1+i[0])*this.width/2,y:(1-i[1])*this.height/2}},t.prototype.viewportToFramedGraph=function(e,t){void 0===t&&(t={});var n=!!t.cameraState||!!t.viewportDimensions||!t.graphDimensions,r=t.matrix?t.matrix:n?(0,f.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0,!0):this.invMatrix,o=[e.x/this.width*2-1,1-e.y/this.height*2,1],i=(0,m.multiplyVec)(r,o);return{x:i[0],y:i[1]}},t.prototype.viewportToGraph=function(e,t){return void 0===t&&(t={}),this.normalizationFunction.inverse(this.viewportToFramedGraph(e,t))},t.prototype.graphToViewport=function(e,t){return void 0===t&&(t={}),this.framedGraphToViewport(this.normalizationFunction(e),t)},t.prototype.getBBox=function(){return(0,f.graphExtent)(this.graph)},t.prototype.getCustomBBox=function(){return this.customBBox},t.prototype.setCustomBBox=function(e){return this.customBBox=e,this._scheduleRefresh(),this},t.prototype.kill=function(){var e=this.graph;this.emit("kill"),this.removeAllListeners(),this.camera.removeListener("updated",this.activeListeners.camera),window.removeEventListener("resize",this.activeListeners.handleResize),this.mouseCaptor.kill(),this.touchCaptor.kill(),e.removeListener("nodeAdded",this.activeListeners.addNodeGraphUpdate),e.removeListener("nodeDropped",this.activeListeners.graphUpdate),e.removeListener("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgeAdded",this.activeListeners.addEdgeGraphUpdate),e.removeListener("edgeDropped",this.activeListeners.graphUpdate),e.removeListener("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgesCleared",this.activeListeners.graphUpdate),e.removeListener("cleared",this.activeListeners.graphUpdate),this.quadtree=new l.default,this.nodeDataCache={},this.edgeDataCache={},this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[],this.highlightedNodes.clear(),this.renderFrame&&((0,f.cancelFrame)(this.renderFrame),this.renderFrame=null),this.renderHighlightedNodesFrame&&((0,f.cancelFrame)(this.renderHighlightedNodesFrame),this.renderHighlightedNodesFrame=null);for(var t=this.container;t.firstChild;)t.removeChild(t.firstChild)},t.prototype.scaleSize=function(e){return e/this.cameraSizeRatio},t.prototype.getCanvases=function(){return i({},this.elements)},t}(d.TypedEventEmitter);t.default=E},432:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TypedEventEmitter=void 0;var i=function(e){function t(){var t=e.call(this)||this;return t.rawEmitter=t,t}return o(t,e),t}(n(2699).EventEmitter);t.TypedEventEmitter=i},1181:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.animateNodes=t.ANIMATE_DEFAULTS=void 0;var o=n(8586),i=r(n(2383));t.ANIMATE_DEFAULTS={easing:"quadraticInOut",duration:150},t.animateNodes=function(e,n,r,a){var s=Object.assign({},t.ANIMATE_DEFAULTS,r),u="function"==typeof s.easing?s.easing:i.default[s.easing],c=Date.now(),l={};for(var d in n){var f=n[d];for(var h in l[d]={},f)l[d][h]=e.getNodeAttribute(d,h)}var p=null,g=function(){var t=(Date.now()-c)/s.duration;if(t>=1){for(var r in n){var i=n[r];for(var d in i)e.setNodeAttribute(r,d,i[d])}"function"==typeof a&&a()}else{for(var r in t=u(t),n){i=n[r];var f=l[r];for(var d in i)e.setNodeAttribute(r,d,i[d]*t+f[d]*(1-t))}p=(0,o.requestFrame)(g)}};return g(),function(){p&&(0,o.cancelFrame)(p)}}},1078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTML_COLORS=void 0,t.HTML_COLORS={black:"#000000",silver:"#C0C0C0",gray:"#808080",grey:"#808080",white:"#FFFFFF",maroon:"#800000",red:"#FF0000",purple:"#800080",fuchsia:"#FF00FF",green:"#008000",lime:"#00FF00",olive:"#808000",yellow:"#FFFF00",navy:"#000080",blue:"#0000FF",teal:"#008080",aqua:"#00FFFF",darkblue:"#00008B",mediumblue:"#0000CD",darkgreen:"#006400",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",rebeccapurple:"#663399",mediumaquamarine:"#66CDAA",dimgray:"#696969",dimgrey:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",slategrey:"#708090",lightslategray:"#778899",lightslategrey:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370DB",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",palevioletred:"#DB7093",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",lightyellow:"#FFFFE0",ivory:"#FFFFF0"}},2383:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cubicInOut=t.cubicOut=t.cubicIn=t.quadraticInOut=t.quadraticOut=t.quadraticIn=t.linear=void 0,t.linear=function(e){return e},t.quadraticIn=function(e){return e*e},t.quadraticOut=function(e){return e*(2-e)},t.quadraticInOut=function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},t.cubicIn=function(e){return e*e*e},t.cubicOut=function(e){return--e*e*e+1},t.cubicInOut=function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)};var n={linear:t.linear,quadraticIn:t.quadraticIn,quadraticOut:t.quadraticOut,quadraticInOut:t.quadraticInOut,cubicIn:t.cubicIn,cubicOut:t.cubicOut,cubicInOut:t.cubicInOut};t.default=n},8073:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doEdgeCollideWithPoint=t.isPixelColored=void 0,t.isPixelColored=function(e,t,n){var r=new Uint8Array(4);return e.readPixels(t,e.drawingBufferHeight-n,1,1,e.RGBA,e.UNSIGNED_BYTE,r),r[3]>0},t.doEdgeCollideWithPoint=function(e,t,n,r,o,i,a){return!(e<n-a&&e<o-a||t<r-a&&t<i-a||e>n+a&&e>o+a||t>r+a&&t>i+a||!(Math.abs((o-n)*(r-t)-(n-e)*(i-r))/Math.sqrt(Math.pow(o-n,2)+Math.pow(i-r,2))<a/2))}},8586:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateGraph=t.canUse32BitsIndices=t.extractPixel=t.getMatrixImpact=t.matrixFromCamera=t.getCorrectionRatio=t.floatColor=t.zIndexOrdering=t.createNormalizationFunction=t.graphExtent=t.getPixelRatio=t.createElement=t.cancelFrame=t.requestFrame=t.assignDeep=t.assign=t.isPlainObject=void 0;var i=o(n(1880)),a=n(2237),s=n(1078);function u(e){return"object"==typeof e&&null!==e&&e.constructor===Object}t.isPlainObject=u,t.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e=e||{};for(var r=0,o=t.length;r<o;r++){var i=t[r];i&&Object.assign(e,i)}return e},t.assignDeep=function e(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];t=t||{};for(var o=0,i=n.length;o<i;o++){var a=n[o];if(a)for(var s in a)u(a[s])?t[s]=e(t[s],a[s]):t[s]=a[s]}return t},t.requestFrame="undefined"!=typeof requestAnimationFrame?function(e){return requestAnimationFrame(e)}:function(e){return setTimeout(e,0)},t.cancelFrame="undefined"!=typeof cancelAnimationFrame?function(e){return cancelAnimationFrame(e)}:function(e){return clearTimeout(e)},t.createElement=function(e,t,n){var r=document.createElement(e);if(t)for(var o in t)r.style[o]=t[o];if(n)for(var o in n)r.setAttribute(o,n[o]);return r},t.getPixelRatio=function(){return void 0!==window.devicePixelRatio?window.devicePixelRatio:1},t.graphExtent=function(e){var t=1/0,n=-1/0,r=1/0,o=-1/0;return e.forEachNode((function(e,i){var a=i.x,s=i.y;a<t&&(t=a),a>n&&(n=a),s<r&&(r=s),s>o&&(o=s)})),{x:[t,n],y:[r,o]}},t.createNormalizationFunction=function(e){var t=r(e.x,2),n=t[0],o=t[1],i=r(e.y,2),a=i[0],s=i[1],u=Math.max(o-n,s-a);0===u&&(u=1);var c=(o+n)/2,l=(s+a)/2,d=function(e){return{x:.5+(e.x-c)/u,y:.5+(e.y-l)/u}};return d.applyTo=function(e){e.x=.5+(e.x-c)/u,e.y=.5+(e.y-l)/u},d.inverse=function(e){return{x:c+u*(e.x-.5),y:l+u*(e.y-.5)}},d.ratio=u,d},t.zIndexOrdering=function(e,t,n){return n.sort((function(e,n){var r=t(e)||0,o=t(n)||0;return r<o?-1:r>o?1:0}))};var c=new Int8Array(4),l=new Int32Array(c.buffer,0,1),d=new Float32Array(c.buffer,0,1),f=/^\s*rgba?\s*\(/,h=/^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/,p={};for(var g in s.HTML_COLORS)p[g]=m(s.HTML_COLORS[g]);function m(e){if(void 0!==p[e])return p[e];var t=0,n=0,r=0,o=1;if("#"===e[0])4===e.length?(t=parseInt(e.charAt(1)+e.charAt(1),16),n=parseInt(e.charAt(2)+e.charAt(2),16),r=parseInt(e.charAt(3)+e.charAt(3),16)):(t=parseInt(e.charAt(1)+e.charAt(2),16),n=parseInt(e.charAt(3)+e.charAt(4),16),r=parseInt(e.charAt(5)+e.charAt(6),16));else if(f.test(e)){var i=e.match(h);i&&(t=+i[1],n=+i[2],r=+i[3],i[4]&&(o=+i[4]))}o=255*o|0,l[0]=4278190079&(o<<24|r<<16|n<<8|t);var a=d[0];return p[e]=a,a}function v(e,t){var n=e.height/e.width,r=t.height/t.width;return n<1&&r>1||n>1&&r<1?1:Math.min(Math.max(r,1/r),Math.max(1/n,n))}t.floatColor=m,t.getCorrectionRatio=v,t.matrixFromCamera=function(e,t,n,r,o){var i=e.angle,s=e.ratio,u=e.x,c=e.y,l=t.width,d=t.height,f=(0,a.identity)(),h=Math.min(l,d)-2*r,p=v(t,n);return o?((0,a.multiply)(f,(0,a.translate)((0,a.identity)(),u,c)),(0,a.multiply)(f,(0,a.scale)((0,a.identity)(),s)),(0,a.multiply)(f,(0,a.rotate)((0,a.identity)(),i)),(0,a.multiply)(f,(0,a.scale)((0,a.identity)(),l/h/2/p,d/h/2/p))):((0,a.multiply)(f,(0,a.scale)((0,a.identity)(),h/l*2*p,h/d*2*p)),(0,a.multiply)(f,(0,a.rotate)((0,a.identity)(),-i)),(0,a.multiply)(f,(0,a.scale)((0,a.identity)(),1/s)),(0,a.multiply)(f,(0,a.translate)((0,a.identity)(),-u,-c))),f},t.getMatrixImpact=function(e,t,n){var o=r((0,a.multiplyVec)(e,[Math.cos(t.angle),Math.sin(t.angle),0]),2),i=o[0],s=o[1];return 1/Math.sqrt(Math.pow(i,2)+Math.pow(s,2))/n.width},t.extractPixel=function(e,t,n,r){var o=r||new Uint8Array(4);return e.readPixels(t,n,1,1,e.RGBA,e.UNSIGNED_BYTE,o),o},t.canUse32BitsIndices=function(e){return"undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||!!e.getExtension("OES_element_index_uint")},t.validateGraph=function(e){if(!(0,i.default)(e))throw new Error("Sigma: invalid graph instance.");e.forEachNode((function(e,t){if(!Number.isFinite(t.x)||!Number.isFinite(t.y))throw new Error("Sigma: Coordinates of node ".concat(e," are invalid. A node must have a numeric 'x' and 'y' attribute."))}))}},2237:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiplyVec=t.multiply=t.translate=t.rotate=t.scale=t.identity=void 0,t.identity=function(){return Float32Array.of(1,0,0,0,1,0,0,0,1)},t.scale=function(e,t,n){return e[0]=t,e[4]="number"==typeof n?n:t,e},t.rotate=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[3]=-n,e[4]=r,e},t.translate=function(e,t,n){return e[6]=t,e[7]=n,e},t.multiply=function(e,t){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],d=t[0],f=t[1],h=t[2],p=t[3],g=t[4],m=t[5],v=t[6],y=t[7],b=t[8];return e[0]=d*n+f*i+h*u,e[1]=d*r+f*a+h*c,e[2]=d*o+f*s+h*l,e[3]=p*n+g*i+m*u,e[4]=p*r+g*a+m*c,e[5]=p*o+g*s+m*l,e[6]=v*n+y*i+b*u,e[7]=v*r+y*a+b*c,e[8]=v*o+y*s+b*l,e},t.multiplyVec=function(e,t){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],d=t[0],f=t[1],h=t[2],p=Array.isArray(t)?[0,0,0]:Float32Array.of(0,0,0);return p[0]=d*n+f*i+h*u,p[1]=d*r+f*a+h*c,p[2]=d*o+f*s+h*l,p}},2564:e=>{"use strict";e.exports=function(){}},8096:e=>{"use strict";e.exports=window["material-ui-coreStyles"].withStyles},683:e=>{"use strict";e.exports=window["material-ui"].IconButton},2298:e=>{"use strict";e.exports=window["material-ui"].SvgIcon},6929:e=>{"use strict";e.exports=window["material-ui"].Tooltip},8310:t=>{"use strict";t.exports=e},2308:e=>{"use strict";e.exports=t},2396:e=>{"use strict";e.exports=n},3192:e=>{"use strict";e.exports=r},5099:e=>{"use strict";e.exports=o},3288:e=>{"use strict";e.exports=i},8156:e=>{"use strict";e.exports=a},7111:e=>{"use strict";e.exports=s},4756:e=>{"use strict";e.exports=u},5751:e=>{"use strict";e.exports=c}},d={};function f(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={id:e,loaded:!1,exports:{}};return l[e].call(n.exports,n,n.exports,f),n.loaded=!0,n.exports}f.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return f.d(t,{a:t}),t},f.d=(e,t)=>{for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var h={};return(()=>{"use strict";f.r(h),f.d(h,{GraphView:()=>Qu});var e=f(8156),t=f.n(e),n=f(4756);const r=window["material-ui-coreStyles"];var o=f(5099),i=f.n(o),a=f(8310),s=f.n(a),u=f(3288),c=f(5751),l=f.n(c);const d=window["material-ui"].Portal;var p=f.n(d),g=f(4176),m=f(2308),v=f.n(m);const y=(0,r.makeStyles)((()=>({errorBlock:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",minHeight:"58px",zIndex:1e4}})));function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}const w=r=>{const o=y(),i=(0,n.useSelector)(v().selectors.getAutoCloseInterval),a=(0,n.useSelector)(v().selectors.getUiError),c=(0,n.useDispatch)();return(0,e.useEffect)((()=>{a&&r.showErrorFromStore&&(w.addError({title:l().text("Error"),message:a}),c(m.ui.actions.errorSet(null)))}),[c,a,r.showErrorFromStore]),t().createElement(p(),{container:document.body},t().createElement(g.ZP,b({classes:{errorBlock:s()(o.errorBlock,(0,u.path)(["classes","errorBlock"],r))},autoCloseInterval:i},r)))};w.propTypes={showErrorFromStore:i().bool},w.addError=g.ZP.addError;const E=w;var x=function(e,t){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},x(e,t)};function _(e,t){function n(){this.constructor=e}x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},C.apply(this,arguments)};function S(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n}function A(e){var t,n,r="";if(e)if("object"==typeof e)if(e.push)for(t=0;t<e.length;t++)e[t]&&(n=A(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(n=A(t))&&(r&&(r+=" "),r+=n);else"boolean"==typeof e||e.call||(r&&(r+=" "),r+=e);return r}function k(){for(var e,t=0,n="";t<arguments.length;)(e=A(arguments[t++]))&&(n&&(n+=" "),n+=e);return n}const O=window["material-ui"].Typography;var D=f.n(O);const L=window["material-ui"].Button;var T=f.n(L);const M=window["material-ui"].Toolbar;var P=f.n(M),F=f(683),N=f.n(F);function j(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function R(){return R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R.apply(this,arguments)}function I(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function B(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const G=t().createContext(null);function z(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)})),r}function U(e,t,n){return null!=n[t]?n[t]:e.props[t]}function W(t,n,r){var o=z(t.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var u in t){if(o[u])for(r=0;r<o[u].length;r++){var c=o[u][r];s[o[u][r]]=n(c)}s[u]=n(u)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(n,o);return Object.keys(i).forEach((function(a){var s=i[a];if((0,e.isValidElement)(s)){var u=a in n,c=a in o,l=n[a],d=(0,e.isValidElement)(l)&&!l.props.in;!c||u&&!d?c||!u||d?c&&u&&(0,e.isValidElement)(l)&&(i[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:l.props.in,exit:U(s,"exit",t),enter:U(s,"enter",t)})):i[a]=(0,e.cloneElement)(s,{in:!1}):i[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:U(s,"exit",t),enter:U(s,"enter",t)})}})),i}var H=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},q=function(n){function r(e,t){var r,o=(r=n.call(this,e,t)||this).handleExited.bind(B(B(r)));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}I(r,n);var o=r.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(t,n){var r,o,i=n.children,a=n.handleExited;return{children:n.firstRender?(r=t,o=a,z(r.children,(function(t){return(0,e.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:U(t,"appear",r),enter:U(t,"enter",r),exit:U(t,"exit",r)})}))):W(t,i,a),firstRender:!1}},o.handleExited=function(e,t){var n=z(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=R({},t.children);return delete n[e.key],{children:n}})))},o.render=function(){var e=this.props,n=e.component,r=e.childFactory,o=j(e,["component","childFactory"]),i=this.state.contextValue,a=H(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?t().createElement(G.Provider,{value:i},a):t().createElement(G.Provider,{value:i},t().createElement(n,o,a))},r}(t().Component);q.propTypes={},q.defaultProps={component:"div",childFactory:function(e){return e}};const V=q;var Y=f(2196),K=f.n(Y),$=f(4812),Z=f.n($),X=f(7111),Q=f.n(X);var J="unmounted",ee="exited",te="entering",ne="entered",re="exiting",oe=function(e){function n(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=ee,r.appearStatus=te):o=ne:o=t.unmountOnExit||t.mountOnEnter?J:ee,r.state={status:o},r.nextCallback=null,r}I(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===J?{status:ee}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==te&&n!==ne&&(t=te):n!==te&&n!==ne||(t=re)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=Q().findDOMNode(this);t===te?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===ee&&this.setState({status:J})},r.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;t||r?(this.props.onEnter(e,o),this.safeSetState({status:te},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:ne},(function(){n.props.onEntered(e,o)}))}))}))):this.safeSetState({status:ne},(function(){n.props.onEntered(e)}))},r.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:re},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:ee},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:ee},(function(){t.props.onExited(e)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===J)return null;var n=this.props,r=n.children,o=j(n,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"==typeof r)return t().createElement(G.Provider,{value:null},r(e,o));var i=t().Children.only(r);return t().createElement(G.Provider,{value:null},t().cloneElement(i,o))},n}(t().Component);function ie(){}oe.contextType=G,oe.propTypes={},oe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ie,onEntering:ie,onEntered:ie,onExit:ie,onExiting:ie,onExited:ie},oe.UNMOUNTED=0,oe.EXITED=1,oe.ENTERING=2,oe.ENTERED=3,oe.EXITING=4;const ae=oe;var se=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return Z()(e,t)}))},ue=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){t.removeClasses(e,"exit"),t.addClass(e,n?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=n?"appear":"enter";t.addClass(e,r,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=n?"appear":"enter";t.removeClasses(e,r),t.addClass(e,r,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),t.addClass(e,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){t.addClass(e,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){t.removeClasses(e,"exit"),t.addClass(e,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}I(n,e);var r=n.prototype;return r.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"];"appear"===t&&"done"===n&&(r+=" "+this.getClassNames("enter").doneClassName),"active"===n&&e&&e.scrollTop,this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return K()(e,t)}))}(e,r)},r.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&se(e,r),o&&se(e,o),i&&se(e,i)},r.render=function(){var e=this.props,n=(e.classNames,j(e,["classNames"]));return t().createElement(ae,R({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(t().Component);ue.defaultProps={classNames:""},ue.propTypes={};const ce=ue;var le=f(2298),de=f.n(le);const fe=window["material-ui"].CircularProgress;var he=f.n(fe);function pe(){return pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pe.apply(this,arguments)}const ge=window["material-ui-styles"];function me(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ve(e){return ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ve(e)}function ye(e){return ye="function"==typeof Symbol&&"symbol"===ve(Symbol.iterator)?function(e){return ve(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":ve(e)},ye(e)}function be(e){return e&&"object"===ye(e)&&e.constructor===Object}function we(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?pe({},e):e;return be(e)&&be(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(be(t[o])&&o in e?r[o]=we(e[o],t[o],n):r[o]=t[o])})),r}var Ee=["xs","sm","md","lg","xl"];function xe(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=me(e,["values","unit","step"]);function u(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=Ee.indexOf(t);return r===Ee.length-1?u(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[Ee[r+1]]?n[Ee[r+1]]:t)-a/100).concat(o,")")}return pe({keys:Ee,values:n,up:u,down:function(e){var t=Ee.indexOf(e)+1,r=n[Ee[t]];return t===Ee.length?u("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}function _e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ce(e,t,n){var r;return pe({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return pe({paddingLeft:t(2),paddingRight:t(2)},n,_e({},e.up("sm"),pe({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},_e(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),_e(r,e.up("sm"),{minHeight:64}),r)},n)}function Se(e){for(var t="https://material-ui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}const Ae={black:"#000",white:"#fff"},ke={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},Oe="#7986cb",De="#3f51b5",Le="#303f9f",Te="#ff4081",Me="#f50057",Pe="#c51162",Fe="#e57373",Ne="#f44336",je="#d32f2f",Re="#ffb74d",Ie="#ff9800",Be="#f57c00",Ge="#64b5f6",ze="#2196f3",Ue="#1976d2",We="#81c784",He="#4caf50",qe="#388e3c";function Ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function Ye(e){if(e.type)return e;if("#"===e.charAt(0))return Ye(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Se(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Ke(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function $e(e){var t="hsl"===(e=Ye(e)).type?Ye(function(e){var t=(e=Ye(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",u=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",u.push(t[3])),Ke({type:s,values:u})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ze(e,t){return e=Ye(e),t=Ve(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Ke(e)}var Xe={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ae.white,default:ke[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Qe={text:{primary:Ae.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:ke[800],default:"#303030"},action:{active:Ae.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Je(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Ye(e),t=Ve(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Ke(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Ye(e),t=Ve(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Ke(e)}(e.main,i)))}function et(e){var t=e.primary,n=void 0===t?{light:Oe,main:De,dark:Le}:t,r=e.secondary,o=void 0===r?{light:Te,main:Me,dark:Pe}:r,i=e.error,a=void 0===i?{light:Fe,main:Ne,dark:je}:i,s=e.warning,u=void 0===s?{light:Re,main:Ie,dark:Be}:s,c=e.info,l=void 0===c?{light:Ge,main:ze,dark:Ue}:c,d=e.success,f=void 0===d?{light:We,main:He,dark:qe}:d,h=e.type,p=void 0===h?"light":h,g=e.contrastThreshold,m=void 0===g?3:g,v=e.tonalOffset,y=void 0===v?.2:v,b=me(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function w(e){var t=function(e,t){var n=$e(e),r=$e(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Qe.text.primary)>=m?Qe.text.primary:Xe.text.primary;return t}var E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=pe({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Se(4,t));if("string"!=typeof e.main)throw new Error(Se(5,JSON.stringify(e.main)));return Je(e,"light",n,y),Je(e,"dark",r,y),e.contrastText||(e.contrastText=w(e.main)),e},x={dark:Qe,light:Xe};return we(pe({common:Ae,type:p,primary:E(n),secondary:E(o,"A400","A200","A700"),error:E(a),warning:E(u),info:E(l),success:E(f),grey:ke,contrastThreshold:m,getContrastText:w,augmentColor:E,tonalOffset:y},x[p]),b)}function tt(e){return Math.round(1e5*e)/1e5}var nt={textTransform:"uppercase"},rt='"Roboto", "Helvetica", "Arial", sans-serif';function ot(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?rt:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,u=void 0===s?300:s,c=n.fontWeightRegular,l=void 0===c?400:c,d=n.fontWeightMedium,f=void 0===d?500:d,h=n.fontWeightBold,p=void 0===h?700:h,g=n.htmlFontSize,m=void 0===g?16:g,v=n.allVariants,y=n.pxToRem,b=me(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),w=a/14,E=y||function(e){return"".concat(e/m*w,"rem")},x=function(e,t,n,r,i){return pe({fontFamily:o,fontWeight:e,fontSize:E(t),lineHeight:n},o===rt?{letterSpacing:"".concat(tt(r/t),"em")}:{},i,v)},_={h1:x(u,96,1.167,-1.5),h2:x(u,60,1.2,-.5),h3:x(l,48,1.167,0),h4:x(l,34,1.235,.25),h5:x(l,24,1.334,0),h6:x(f,20,1.6,.15),subtitle1:x(l,16,1.75,.15),subtitle2:x(f,14,1.57,.1),body1:x(l,16,1.5,.15),body2:x(l,14,1.43,.15),button:x(f,14,1.75,.4,nt),caption:x(l,12,1.66,.4),overline:x(l,12,2.66,1,nt)};return we(pe({htmlFontSize:m,pxToRem:E,round:tt,fontFamily:o,fontSize:a,fontWeightLight:u,fontWeightRegular:l,fontWeightMedium:f,fontWeightBold:p},_),b,{clone:!1})}function it(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const at=["none",it(0,2,1,-1,0,1,1,0,0,1,3,0),it(0,3,1,-2,0,2,2,0,0,1,5,0),it(0,3,3,-2,0,3,4,0,0,1,8,0),it(0,2,4,-1,0,4,5,0,0,1,10,0),it(0,3,5,-1,0,5,8,0,0,1,14,0),it(0,3,5,-1,0,6,10,0,0,1,18,0),it(0,4,5,-2,0,7,10,1,0,2,16,1),it(0,5,5,-3,0,8,10,1,0,3,14,2),it(0,5,6,-3,0,9,12,1,0,3,16,2),it(0,6,6,-3,0,10,14,1,0,4,18,3),it(0,6,7,-4,0,11,15,1,0,4,20,3),it(0,7,8,-4,0,12,17,2,0,5,22,4),it(0,7,8,-4,0,13,19,2,0,5,24,4),it(0,7,9,-4,0,14,21,2,0,5,26,4),it(0,8,9,-5,0,15,22,2,0,6,28,5),it(0,8,10,-5,0,16,24,2,0,6,30,5),it(0,8,11,-5,0,17,26,2,0,6,32,5),it(0,9,11,-5,0,18,28,2,0,7,34,6),it(0,9,12,-6,0,19,29,2,0,7,36,6),it(0,10,13,-6,0,20,31,3,0,8,38,7),it(0,10,13,-6,0,21,33,3,0,8,40,7),it(0,10,14,-6,0,22,35,3,0,8,42,7),it(0,11,14,-7,0,23,36,3,0,9,44,8),it(0,11,15,-7,0,24,38,3,0,9,46,8)],st={borderRadius:4};var ut={xs:0,sm:600,md:960,lg:1280,xl:1920},ct={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(ut[e],"px)")}};function lt(e){return e&&"object"===ye(e)&&e.constructor===Object}function dt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?pe({},e):e;return lt(e)&&lt(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(lt(t[o])&&o in e?r[o]=dt(e[o],t[o],n):r[o]=t[o])})),r}const ft=function(e,t){return t?dt(e,t,{clone:!1}):e};var ht,pt,gt={m:"margin",p:"padding"},mt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vt={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yt=(ht=function(e){if(e.length>2){if(!vt[e])return[e];e=vt[e]}var t,n,r=(t=e.split(""),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),o=r[0],i=r[1],a=gt[o],s=mt[i]||"";return Array.isArray(s)?s.map((function(e){return a+e})):[a+s]},pt={},function(e){return void 0===pt[e]&&(pt[e]=ht(e)),pt[e]}),bt=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function wt(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function Et(e){var t=wt(e.theme);return Object.keys(e).map((function(n){if(-1===bt.indexOf(n))return null;var r=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}(yt(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||ct;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===ye(t)){var o=e.theme.breakpoints||ct;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(ft,{})}function xt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=wt({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}Et.propTypes={},Et.filterProps=bt;var _t={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ct={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function St(e){return"".concat(Math.round(e),"ms")}const At={easing:_t,duration:Ct,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?Ct.standard:n,o=t.easing,i=void 0===o?_t.easeInOut:o,a=t.delay,s=void 0===a?0:a;return me(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:St(r)," ").concat(i," ").concat("string"==typeof s?s:St(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},kt={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ot=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,u=e.typography,c=void 0===u?{}:u,l=me(e,["breakpoints","mixins","palette","spacing","typography"]),d=et(a),f=xe(n),h=xt(s),p=we({breakpoints:f,direction:"ltr",mixins:Ce(f,h,o),overrides:{},palette:d,props:{},shadows:at,typography:ot(d,c),spacing:h,shape:st,transitions:At,zIndex:kt},l),g=arguments.length,m=new Array(g>1?g-1:0),v=1;v<g;v++)m[v-1]=arguments[v];return m.reduce((function(e,t){return we(e,t)}),p)}(),Dt=function(e,t){return(0,ge.withStyles)(e,pe({defaultTheme:Ot},t))};function Lt(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Tt(t,n){return e.useMemo((function(){return null==t&&null==n?null:function(e){Lt(t,e),Lt(n,e)}}),[t,n])}var Mt="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function Pt(t){var n=e.useRef(t);return Mt((function(){n.current=t})),e.useCallback((function(){return n.current.apply(void 0,arguments)}),[])}var Ft=!0,Nt=!1,jt=null,Rt={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function It(e){e.metaKey||e.altKey||e.ctrlKey||(Ft=!0)}function Bt(){Ft=!1}function Gt(){"hidden"===this.visibilityState&&Nt&&(Ft=!0)}function zt(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return Ft||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!Rt[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function Ut(){Nt=!0,window.clearTimeout(jt),jt=window.setTimeout((function(){Nt=!1}),100)}function Wt(){return{isFocusVisible:zt,onBlurVisible:Ut,ref:e.useCallback((function(e){var t,n=X.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",It,!0),t.addEventListener("mousedown",Bt,!0),t.addEventListener("pointerdown",Bt,!0),t.addEventListener("touchstart",Bt,!0),t.addEventListener("visibilitychange",Gt,!0))}),[])}}function Ht(){return Ht=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ht.apply(this,arguments)}function qt(e,t){return qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qt(e,t)}const Vt=t().createContext(null);function Yt(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)})),r}function Kt(e,t,n){return null!=n[t]?n[t]:e.props[t]}function $t(t,n,r){var o=Yt(t.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var u in t){if(o[u])for(r=0;r<o[u].length;r++){var c=o[u][r];s[o[u][r]]=n(c)}s[u]=n(u)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(n,o);return Object.keys(i).forEach((function(a){var s=i[a];if((0,e.isValidElement)(s)){var u=a in n,c=a in o,l=n[a],d=(0,e.isValidElement)(l)&&!l.props.in;!c||u&&!d?c||!u||d?c&&u&&(0,e.isValidElement)(l)&&(i[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:l.props.in,exit:Kt(s,"exit",t),enter:Kt(s,"enter",t)})):i[a]=(0,e.cloneElement)(s,{in:!1}):i[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:Kt(s,"exit",t),enter:Kt(s,"enter",t)})}})),i}var Zt=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Xt=function(n){var r,o;function i(e,t){var r,o=(r=n.call(this,e,t)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}o=n,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,qt(r,o);var a=i.prototype;return a.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},a.componentWillUnmount=function(){this.mounted=!1},i.getDerivedStateFromProps=function(t,n){var r,o,i=n.children,a=n.handleExited;return{children:n.firstRender?(r=t,o=a,Yt(r.children,(function(t){return(0,e.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:Kt(t,"appear",r),enter:Kt(t,"enter",r),exit:Kt(t,"exit",r)})}))):$t(t,i,a),firstRender:!1}},a.handleExited=function(e,t){var n=Yt(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Ht({},t.children);return delete n[e.key],{children:n}})))},a.render=function(){var e=this.props,n=e.component,r=e.childFactory,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),i=this.state.contextValue,a=Zt(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?t().createElement(Vt.Provider,{value:i},a):t().createElement(Vt.Provider,{value:i},t().createElement(n,o,a))},i}(t().Component);Xt.propTypes={},Xt.defaultProps={component:"div",childFactory:function(e){return e}};const Qt=Xt;var Jt="undefined"==typeof window?e.useEffect:e.useLayoutEffect;const en=function(t){var n=t.classes,r=t.pulsate,o=void 0!==r&&r,i=t.rippleX,a=t.rippleY,s=t.rippleSize,u=t.in,c=t.onExited,l=void 0===c?function(){}:c,d=t.timeout,f=e.useState(!1),h=f[0],p=f[1],g=k(n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:s,height:s,top:-s/2+a,left:-s/2+i},v=k(n.child,h&&n.childLeaving,o&&n.childPulsate),y=Pt(l);return Jt((function(){if(!u){p(!0);var e=setTimeout(y,d);return function(){clearTimeout(e)}}}),[y,u,d]),e.createElement("span",{className:g,style:m},e.createElement("span",{className:v}))};var tn=e.forwardRef((function(t,n){var r=t.center,o=void 0!==r&&r,i=t.classes,a=t.className,s=me(t,["center","classes","className"]),u=e.useState([]),c=u[0],l=u[1],d=e.useRef(0),f=e.useRef(null);e.useEffect((function(){f.current&&(f.current(),f.current=null)}),[c]);var h=e.useRef(!1),p=e.useRef(null),g=e.useRef(null),m=e.useRef(null);e.useEffect((function(){return function(){clearTimeout(p.current)}}),[]);var v=e.useCallback((function(t){var n=t.pulsate,r=t.rippleX,o=t.rippleY,a=t.rippleSize,s=t.cb;l((function(t){return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(s=t)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}(),[e.createElement(en,{key:d.current,classes:i,timeout:550,pulsate:n,rippleX:r,rippleY:o,rippleSize:a})]);var s})),d.current+=1,f.current=s}),[i]),y=e.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,a=t.center,s=void 0===a?o||t.pulsate:a,u=t.fakeElement,c=void 0!==u&&u;if("mousedown"===e.type&&h.current)h.current=!1;else{"touchstart"===e.type&&(h.current=!0);var l,d,f,y=c?null:m.current,b=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(b.width/2),d=Math.round(b.height/2);else{var w=e.touches?e.touches[0]:e,E=w.clientX,x=w.clientY;l=Math.round(E-b.left),d=Math.round(x-b.top)}if(s)(f=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(f+=1);else{var _=2*Math.max(Math.abs((y?y.clientWidth:0)-l),l)+2,C=2*Math.max(Math.abs((y?y.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(_,2)+Math.pow(C,2))}e.touches?null===g.current&&(g.current=function(){v({pulsate:i,rippleX:l,rippleY:d,rippleSize:f,cb:n})},p.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),80)):v({pulsate:i,rippleX:l,rippleY:d,rippleSize:f,cb:n})}}),[o,v]),b=e.useCallback((function(){y({},{pulsate:!0})}),[y]),w=e.useCallback((function(e,t){if(clearTimeout(p.current),"touchend"===e.type&&g.current)return e.persist(),g.current(),g.current=null,void(p.current=setTimeout((function(){w(e,t)})));g.current=null,l((function(e){return e.length>0?e.slice(1):e})),f.current=t}),[]);return e.useImperativeHandle(n,(function(){return{pulsate:b,start:y,stop:w}}),[b,y,w]),e.createElement("span",pe({className:k(i.root,a),ref:m},s),e.createElement(Qt,{component:null,exit:!0},c))}));const nn=Dt((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(e.memo(tn));var rn=e.forwardRef((function(t,n){var r=t.action,o=t.buttonRef,i=t.centerRipple,a=void 0!==i&&i,s=t.children,u=t.classes,c=t.className,l=t.component,d=void 0===l?"button":l,f=t.disabled,h=void 0!==f&&f,p=t.disableRipple,g=void 0!==p&&p,m=t.disableTouchRipple,v=void 0!==m&&m,y=t.focusRipple,b=void 0!==y&&y,w=t.focusVisibleClassName,E=t.onBlur,x=t.onClick,_=t.onFocus,C=t.onFocusVisible,S=t.onKeyDown,A=t.onKeyUp,O=t.onMouseDown,D=t.onMouseLeave,L=t.onMouseUp,T=t.onTouchEnd,M=t.onTouchMove,P=t.onTouchStart,F=t.onDragLeave,N=t.tabIndex,j=void 0===N?0:N,R=t.TouchRippleProps,I=t.type,B=void 0===I?"button":I,G=me(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),z=e.useRef(null),U=e.useRef(null),W=e.useState(!1),H=W[0],q=W[1];h&&H&&q(!1);var V=Wt(),Y=V.isFocusVisible,K=V.onBlurVisible,$=V.ref;function Z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;return Pt((function(r){return t&&t(r),!n&&U.current&&U.current[e](r),!0}))}e.useImperativeHandle(r,(function(){return{focusVisible:function(){q(!0),z.current.focus()}}}),[]),e.useEffect((function(){H&&b&&!g&&U.current.pulsate()}),[g,b,H]);var Q=Z("start",O),J=Z("stop",F),ee=Z("stop",L),te=Z("stop",(function(e){H&&e.preventDefault(),D&&D(e)})),ne=Z("start",P),re=Z("stop",T),oe=Z("stop",M),ie=Z("stop",(function(e){H&&(K(e),q(!1)),E&&E(e)}),!1),ae=Pt((function(e){z.current||(z.current=e.currentTarget),Y(e)&&(q(!0),C&&C(e)),_&&_(e)})),se=function(){var e=X.findDOMNode(z.current);return d&&"button"!==d&&!("A"===e.tagName&&e.href)},ue=e.useRef(!1),ce=Pt((function(e){b&&!ue.current&&H&&U.current&&" "===e.key&&(ue.current=!0,e.persist(),U.current.stop(e,(function(){U.current.start(e)}))),e.target===e.currentTarget&&se()&&" "===e.key&&e.preventDefault(),S&&S(e),e.target===e.currentTarget&&se()&&"Enter"===e.key&&!h&&(e.preventDefault(),x&&x(e))})),le=Pt((function(e){b&&" "===e.key&&U.current&&H&&!e.defaultPrevented&&(ue.current=!1,e.persist(),U.current.stop(e,(function(){U.current.pulsate(e)}))),A&&A(e),x&&e.target===e.currentTarget&&se()&&" "===e.key&&!e.defaultPrevented&&x(e)})),de=d;"button"===de&&G.href&&(de="a");var fe={};"button"===de?(fe.type=B,fe.disabled=h):("a"===de&&G.href||(fe.role="button"),fe["aria-disabled"]=h);var he=Tt(o,n),ge=Tt($,z),ve=Tt(he,ge),ye=e.useState(!1),be=ye[0],we=ye[1];e.useEffect((function(){we(!0)}),[]);var Ee=be&&!g&&!h;return e.createElement(de,pe({className:k(u.root,c,H&&[u.focusVisible,w],h&&u.disabled),onBlur:ie,onClick:x,onFocus:ae,onKeyDown:ce,onKeyUp:le,onMouseDown:Q,onMouseLeave:te,onMouseUp:ee,onDragLeave:J,onTouchEnd:re,onTouchMove:oe,onTouchStart:ne,ref:ve,tabIndex:h?-1:j},fe,G),s,Ee?e.createElement(nn,pe({ref:U,center:a},R)):null)}));const on=Dt({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(rn);function an(e){if("string"!=typeof e)throw new Error(Se(7));return e.charAt(0).toUpperCase()+e.slice(1)}var sn=e.forwardRef((function(t,n){var r=t.edge,o=void 0!==r&&r,i=t.children,a=t.classes,s=t.className,u=t.color,c=void 0===u?"default":u,l=t.disabled,d=void 0!==l&&l,f=t.disableFocusRipple,h=void 0!==f&&f,p=t.size,g=void 0===p?"medium":p,m=me(t,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return e.createElement(on,pe({className:k(a.root,s,"default"!==c&&a["color".concat(an(c))],d&&a.disabled,"small"===g&&a["size".concat(an(g))],{start:a.edgeStart,end:a.edgeEnd}[o]),centerRipple:!0,focusRipple:!h,disabled:d,ref:n},m),e.createElement("span",{className:a.label},i))}));const un=Dt((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Ze(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Ze(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Ze(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(sn);var cn=[0,1,2,3,4,5,6,7,8,9,10],ln=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var fn=e.forwardRef((function(t,n){var r=t.alignContent,o=void 0===r?"stretch":r,i=t.alignItems,a=void 0===i?"stretch":i,s=t.classes,u=t.className,c=t.component,l=void 0===c?"div":c,d=t.container,f=void 0!==d&&d,h=t.direction,p=void 0===h?"row":h,g=t.item,m=void 0!==g&&g,v=t.justify,y=void 0===v?"flex-start":v,b=t.lg,w=void 0!==b&&b,E=t.md,x=void 0!==E&&E,_=t.sm,C=void 0!==_&&_,S=t.spacing,A=void 0===S?0:S,O=t.wrap,D=void 0===O?"wrap":O,L=t.xl,T=void 0!==L&&L,M=t.xs,P=void 0!==M&&M,F=t.zeroMinWidth,N=void 0!==F&&F,j=me(t,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),R=k(s.root,u,f&&[s.container,0!==A&&s["spacing-xs-".concat(String(A))]],m&&s.item,N&&s.zeroMinWidth,"row"!==p&&s["direction-xs-".concat(String(p))],"wrap"!==D&&s["wrap-xs-".concat(String(D))],"stretch"!==a&&s["align-items-xs-".concat(String(a))],"stretch"!==o&&s["align-content-xs-".concat(String(o))],"flex-start"!==y&&s["justify-xs-".concat(String(y))],!1!==P&&s["grid-xs-".concat(String(P))],!1!==C&&s["grid-sm-".concat(String(C))],!1!==x&&s["grid-md-".concat(String(x))],!1!==w&&s["grid-lg-".concat(String(w))],!1!==T&&s["grid-xl-".concat(String(T))]);return e.createElement(l,pe({className:R,ref:n},j))})),hn=Dt((function(e){return pe({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return cn.forEach((function(t){var r=e.spacing(t);0!==r&&(n["spacing-".concat("xs","-").concat(t)]={margin:"-".concat(dn(r,2)),width:"calc(100% + ".concat(dn(r),")"),"& > $item":{padding:dn(r,2)}})})),n}(e),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};ln.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?pe(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(fn);const pn=hn,gn=window["material-ui"].DialogActions;var mn=f.n(gn);const vn=window["material-ui"].DialogContent;var yn=f.n(vn);const bn=window["material-ui"].Dialog;var wn=f.n(bn);const En=window["material-ui"].Popover;var xn=f.n(En);const _n=window["material-ui"].TextField;var Cn=f.n(_n);const Sn=window["material-ui"].InputAdornment;var An=f.n(Sn),kn=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this)._state=null,n._del=!1,n._handleChange=function(e){var t=n.state.value,r=e.target.value,o=e.target,i=r.length>t.length,a=n._del,s=t===n.props.format(r);n.setState({value:r,local:!0},(function(){var e=o.selectionStart,u=n.props.refuse||/[^\d]+/g,c=r.substr(0,e).replace(u,"");if(n._state={input:o,before:c,op:i,di:a&&s,del:a},n.props.replace&&n.props.replace(t)&&i&&!s){for(var l=-1,d=0;d!==c.length;++d)l=Math.max(l,r.toLowerCase().indexOf(c[d].toLowerCase(),l+1));var f=r.substr(l+1).replace(u,"")[0];l=r.indexOf(f,l+1),r=""+r.substr(0,l)+r.substr(l+1)}var h=n.props.format(r);t===h?n.setState({value:r}):n.props.onChange(h)}))},n._hKD=function(e){"Delete"===e.code&&(n._del=!0)},n._hKU=function(e){"Delete"===e.code&&(n._del=!1)},n.state={value:t.value,local:!0},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.getDerivedStateFromProps=function(e,t){return{value:t.local?t.value:e.value,local:!1}};var o=r.prototype;return o.render=function(){var e=this._handleChange,t=this.state.value;return(0,this.props.children)({value:t,onChange:e})},o.componentWillUnmount=function(){document.removeEventListener("keydown",this._hKD),document.removeEventListener("keyup",this._hKU)},o.componentDidMount=function(){document.addEventListener("keydown",this._hKD),document.addEventListener("keyup",this._hKU)},o.componentDidUpdate=function(){var e=this._state;if(e){for(var t=this.state.value,n=-1,r=0;r!==e.before.length;++r)n=Math.max(n,t.toLowerCase().indexOf(e.before[r].toLowerCase(),n+1));if(this.props.replace&&(e.op||e.del&&!e.di))for(;t[n+1]&&(this.props.refuse||/[^\d]+/).test(t[n+1]);)n+=1;e.input.selectionStart=e.input.selectionEnd=n+1+(e.di?1:0)}this._state=null},r}(e.Component);const On=window["material-ui"].Tab;var Dn=f.n(On);const Ln=window["material-ui"].Tabs;var Tn=f.n(Ln);const Mn=window["material-ui"].Paper;var Pn=f.n(Mn),Fn=(0,e.createContext)(null),Nn=function(t){var n=t.utils,r=t.children,o=t.locale,i=t.libInstance,a=(0,e.useMemo)((function(){return new n({locale:o,moment:i})}),[n,i,o]);return(0,e.createElement)(Fn.Provider,{value:a,children:r})};function jn(){var t=(0,e.useContext)(Fn);return function(e){if(!e)throw new Error("Can not find utils in context. You either a) forgot to wrap your component tree in MuiPickersUtilsProvider; or b) mixed named and direct file imports. Recommendation: use named imports from the module index.")}(t),t}var Rn=(0,r.makeStyles)((function(e){var t="light"===e.palette.type?e.palette.primary.contrastText:e.palette.getContrastText(e.palette.background.default);return{toolbarTxt:{color:(0,r.fade)(t,.54)},toolbarBtnSelected:{color:t}}}),{name:"MuiPickersToolbarText"}),In=function(t){var n,r=t.selected,o=t.label,i=t.className,a=void 0===i?null:i,s=S(t,["selected","label","className"]),u=Rn();return(0,e.createElement)(D(),C({children:o,className:k(u.toolbarTxt,a,(n={},n[u.toolbarBtnSelected]=r,n))},s))},Bn=function(t){var n=t.classes,r=t.className,o=void 0===r?null:r,i=t.label,a=t.selected,s=t.variant,u=t.align,c=t.typographyClassName,l=S(t,["classes","className","label","selected","variant","align","typographyClassName"]);return(0,e.createElement)(T(),C({variant:"text",className:k(n.toolbarBtn,o)},l),(0,e.createElement)(In,{align:u,className:c,variant:s,label:i,selected:a}))};Bn.defaultProps={className:""};var Gn=(0,r.createStyles)({toolbarBtn:{padding:0,minWidth:"16px",textTransform:"none"}}),zn=(0,r.withStyles)(Gn,{name:"MuiPickersToolbarButton"})(Bn),Un=(0,r.makeStyles)((function(e){return{toolbar:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:100,backgroundColor:"light"===e.palette.type?e.palette.primary.main:e.palette.background.default},toolbarLandscape:{height:"auto",maxWidth:150,padding:8,justifyContent:"flex-start"}}}),{name:"MuiPickersToolbar"}),Wn=function(t){var n,r=t.children,o=t.isLandscape,i=t.className,a=void 0===i?null:i,s=S(t,["children","isLandscape","className"]),u=Un();return(0,e.createElement)(P(),C({className:k(u.toolbar,(n={},n[u.toolbarLandscape]=o,n),a)},s),r)};function Hn(e,t){return Array.isArray(t)?t.every((function(t){return-1!==e.indexOf(t)})):-1!==e.indexOf(t)}var qn=function(e){return 1===e.length&&"year"===e[0]},Vn=function(e){return 2===e.length&&Hn(e,"month")&&Hn(e,"year")},Yn=(0,r.makeStyles)({toolbar:{flexDirection:"column",alignItems:"flex-start"},toolbarLandscape:{padding:16},dateLandscape:{marginRight:16}},{name:"MuiPickersDatePickerRoot"}),Kn=function(t){var n,r,o=t.date,i=t.views,a=t.setOpenView,s=t.isLandscape,u=t.openView,c=jn(),l=Yn(),d=(0,e.useMemo)((function(){return qn(i)}),[i]),f=(0,e.useMemo)((function(){return Vn(i)}),[i]);return(0,e.createElement)(Wn,{isLandscape:s,className:k((n={},n[l.toolbar]=!d,n[l.toolbarLandscape]=s,n))},(0,e.createElement)(zn,{variant:d?"h3":"subtitle1",onClick:function(){return a("year")},selected:"year"===u,label:c.getYearText(o)}),!d&&!f&&(0,e.createElement)(zn,{variant:"h4",selected:"date"===u,onClick:function(){return a("date")},align:s?"left":"center",label:c.getDatePickerHeaderText(o),className:k((r={},r[l.dateLandscape]=s,r))}),f&&(0,e.createElement)(zn,{variant:"h4",onClick:function(){return a("month")},selected:"month"===u,label:c.getMonthText(o)}))},$n=((0,o.oneOfType)([o.object,o.string,o.number,(0,o.instanceOf)(Date)]),(0,o.oneOf)(["year","month","day"]),{ampm:!0,invalidDateMessage:"Invalid Time Format"}),Zn={minDate:new Date("1900-01-01"),maxDate:new Date("2100-01-01"),invalidDateMessage:"Invalid Date Format",minDateMessage:"Date should not be before minimal date",maxDateMessage:"Date should not be after maximal date",allowKeyboardControl:!0},Xn=C({},$n,Zn,{showTabs:!0}),Qn=(0,r.makeStyles)((function(e){return{day:{width:36,height:36,fontSize:e.typography.caption.fontSize,margin:"0 2px",color:e.palette.text.primary,fontWeight:e.typography.fontWeightMedium,padding:0},hidden:{opacity:0,pointerEvents:"none"},current:{color:e.palette.primary.main,fontWeight:600},daySelected:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{backgroundColor:e.palette.primary.main}},dayDisabled:{pointerEvents:"none",color:e.palette.text.hint}}}),{name:"MuiPickersDay"}),Jn=function(t){var n,r=t.children,o=t.disabled,i=t.hidden,a=t.current,s=t.selected,u=S(t,["children","disabled","hidden","current","selected"]),c=Qn(),l=k(c.day,((n={})[c.hidden]=i,n[c.current]=a,n[c.daySelected]=s,n[c.dayDisabled]=o,n));return(0,e.createElement)(N(),C({className:l,tabIndex:i||o?-1:0},u),(0,e.createElement)(D(),{variant:"body2",color:"inherit"},r))};Jn.displayName="Day",Jn.defaultProps={disabled:!1,hidden:!1,current:!1,selected:!1};var er=function(t){var n=t.children,r=t.value,o=t.disabled,i=t.onSelect,a=t.dayInCurrentMonth,s=S(t,["children","value","disabled","onSelect","dayInCurrentMonth"]),u=(0,e.useCallback)((function(){return i(r)}),[i,r]);return(0,e.createElement)("div",C({role:"presentation",onClick:a&&!o?u:void 0,onKeyPress:a&&!o?u:void 0},s),n)},tr=(0,r.makeStyles)((function(e){var t=e.transitions.create("transform",{duration:350,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{transitionContainer:{display:"block",position:"relative","& > *":{position:"absolute",top:0,right:0,left:0}},"slideEnter-left":{willChange:"transform",transform:"translate(100%)"},"slideEnter-right":{willChange:"transform",transform:"translate(-100%)"},slideEnterActive:{transform:"translate(0%)",transition:t},slideExit:{transform:"translate(0%)"},"slideExitActiveLeft-left":{willChange:"transform",transform:"translate(-200%)",transition:t},"slideExitActiveLeft-right":{willChange:"transform",transform:"translate(200%)",transition:t}}}),{name:"MuiPickersSlideTransition"}),nr=function(t){var n=t.children,r=t.transKey,o=t.slideDirection,i=t.className,a=void 0===i?null:i,s=tr(),u={exit:s.slideExit,enterActive:s.slideEnterActive,enter:s["slideEnter-"+o],exitActive:s["slideExitActiveLeft-"+o]};return(0,e.createElement)(V,{className:k(s.transitionContainer,a),childFactory:function(t){return(0,e.cloneElement)(t,{classNames:u})}},(0,e.createElement)(ce,{mountOnEnter:!0,unmountOnExit:!0,key:r+o,timeout:350,classNames:u,children:n}))},rr=(0,r.makeStyles)((function(e){return{switchHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:e.spacing(.5),marginBottom:e.spacing(1)},transitionContainer:{width:"100%",overflow:"hidden",height:23},iconButton:{zIndex:1,backgroundColor:e.palette.background.paper},daysHeader:{display:"flex",justifyContent:"center",alignItems:"center",maxHeight:16},dayLabel:{width:36,margin:"0 2px",textAlign:"center",color:e.palette.text.hint}}}),{name:"MuiPickersCalendarHeader"}),or=function(t){var n=t.currentMonth,o=t.onMonthChange,i=t.leftArrowIcon,a=t.rightArrowIcon,s=t.leftArrowButtonProps,u=t.rightArrowButtonProps,c=t.disablePrevMonth,l=t.disableNextMonth,d=t.slideDirection,f=jn(),h=rr(),p="rtl"===(0,r.useTheme)().direction;return(0,e.createElement)("div",null,(0,e.createElement)("div",{className:h.switchHeader},(0,e.createElement)(N(),C({},s,{disabled:c,onClick:function(){return o(f.getPreviousMonth(n),"right")},className:h.iconButton}),p?a:i),(0,e.createElement)(nr,{slideDirection:d,transKey:n.toString(),className:h.transitionContainer},(0,e.createElement)(D(),{align:"center",variant:"body1"},f.getCalendarHeaderText(n))),(0,e.createElement)(N(),C({},u,{disabled:l,onClick:function(){return o(f.getNextMonth(n),"left")},className:h.iconButton}),p?i:a)),(0,e.createElement)("div",{className:h.daysHeader},f.getWeekdays().map((function(t,n){return(0,e.createElement)(D(),{key:n,variant:"caption",className:h.dayLabel},t)}))))};or.displayName="CalendarHeader",or.defaultProps={leftArrowIcon:(0,e.createElement)((function(e){return t().createElement(de(),C({},e),t().createElement("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),t().createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))}),null),rightArrowIcon:(0,e.createElement)((function(e){return t().createElement(de(),C({},e),t().createElement("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),t().createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))}),null),disablePrevMonth:!1,disableNextMonth:!1};var ir="undefined"==typeof window?e.useEffect:e.useLayoutEffect;function ar(e,t){var n=t[e.key];n&&(n(),e.preventDefault())}function sr(t,n){var r=(0,e.useRef)(n);ir((function(){r.current=n})),(0,e.useEffect)((function(){if(t){var e=function(e){ar(e,n)};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}}),[t,n])}var ur,cr,lr=function(t){var n=t.onKeyDown;return(0,e.useEffect)((function(){return window.addEventListener("keydown",n),function(){window.removeEventListener("keydown",n)}}),[n]),null},dr=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={slideDirection:"left",currentMonth:n.props.utils.startOfMonth(n.props.date),loadingQueue:0},n.pushToLoadingQueue=function(){var e=n.state.loadingQueue+1;n.setState({loadingQueue:e})},n.popFromLoadingQueue=function(){var e=n.state.loadingQueue;e=e<=0?0:e-1,n.setState({loadingQueue:e})},n.handleChangeMonth=function(e,t){if(n.setState({currentMonth:e,slideDirection:t}),n.props.onMonthChange){var r=n.props.onMonthChange(e);r&&(n.pushToLoadingQueue(),r.then((function(){n.popFromLoadingQueue()})))}},n.validateMinMaxDate=function(e){var t=n.props,r=t.minDate,o=t.maxDate,i=t.utils,a=t.disableFuture,s=t.disablePast,u=i.date();return Boolean(a&&i.isAfterDay(e,u)||s&&i.isBeforeDay(e,u)||r&&i.isBeforeDay(e,i.date(r))||o&&i.isAfterDay(e,i.date(o)))},n.shouldDisablePrevMonth=function(){var e=n.props,t=e.utils,r=e.disablePast,o=e.minDate,i=t.date(),a=t.startOfMonth(r&&t.isAfter(i,t.date(o))?i:t.date(o));return!t.isBefore(a,n.state.currentMonth)},n.shouldDisableNextMonth=function(){var e=n.props,t=e.utils,r=e.disableFuture,o=e.maxDate,i=t.date(),a=t.startOfMonth(r&&t.isBefore(i,t.date(o))?i:t.date(o));return!t.isAfter(a,n.state.currentMonth)},n.shouldDisableDate=function(e){var t=n.props.shouldDisableDate;return n.validateMinMaxDate(e)||Boolean(t&&t(e))},n.handleDaySelect=function(e,t){void 0===t&&(t=!0);var r=n.props,o=r.date,i=r.utils;n.props.onChange(i.mergeDateAndTime(e,o),t)},n.moveToDay=function(e){var t=n.props.utils;e&&!n.shouldDisableDate(e)&&(t.getMonth(e)!==t.getMonth(n.state.currentMonth)&&n.handleChangeMonth(t.startOfMonth(e),"left"),n.handleDaySelect(e,!1))},n.handleKeyDown=function(e){var t=n.props,r=t.theme,o=t.date,i=t.utils;ar(e,{ArrowUp:function(){return n.moveToDay(i.addDays(o,-7))},ArrowDown:function(){return n.moveToDay(i.addDays(o,7))},ArrowLeft:function(){return n.moveToDay(i.addDays(o,"ltr"===r.direction?-1:1))},ArrowRight:function(){return n.moveToDay(i.addDays(o,"ltr"===r.direction?1:-1))}})},n.renderWeeks=function(){var t=n.props,r=t.utils,o=t.classes;return r.getWeekArray(n.state.currentMonth).map((function(t){return(0,e.createElement)("div",{key:"week-"+t[0].toString(),className:o.week},n.renderDays(t))}))},n.renderDays=function(t){var r=n.props,o=r.date,i=r.renderDay,a=r.utils,s=a.date(),u=a.startOfDay(o),c=a.getMonth(n.state.currentMonth);return t.map((function(t){var r=n.shouldDisableDate(t),o=a.getMonth(t)===c,l=(0,e.createElement)(Jn,{disabled:r,current:a.isSameDay(t,s),hidden:!o,selected:a.isSameDay(u,t)},a.getDayText(t));return i&&(l=i(t,u,o,l)),(0,e.createElement)(er,{value:t,key:t.toString(),disabled:r,dayInCurrentMonth:o,onSelect:n.handleDaySelect},l)}))},n}return _(n,t),n.getDerivedStateFromProps=function(e,t){var n=e.utils,r=e.date;if(!n.isEqual(r,t.lastDate)){var o=n.getMonth(r),i=t.lastDate||r,a=n.getMonth(i);return{lastDate:r,currentMonth:e.utils.startOfMonth(r),slideDirection:o===a?t.slideDirection:n.isAfterDay(r,i)?"left":"right"}}return null},n.prototype.componentDidMount=function(){var e=this.props,t=e.date,n=e.minDate,r=e.maxDate,o=e.utils,i=e.disablePast,a=e.disableFuture;if(this.shouldDisableDate(t)){var s=function(e){var t=e.date,n=e.utils,r=e.minDate,o=e.maxDate,i=e.disableFuture,a=e.disablePast,s=e.shouldDisableDate,u=n.startOfDay(n.date());a&&n.isBefore(r,u)&&(r=u),i&&n.isAfter(o,u)&&(o=u);var c=t,l=t;for(n.isBefore(t,r)&&(c=n.date(r),l=null),n.isAfter(t,o)&&(l&&(l=n.date(o)),c=null);c||l;){if(c&&n.isAfter(c,o)&&(c=null),l&&n.isBefore(l,r)&&(l=null),c){if(!s(c))return c;c=n.addDays(c,1)}if(l){if(!s(l))return l;l=n.addDays(l,-1)}}return null}({date:t,utils:o,minDate:o.date(n),maxDate:o.date(r),disablePast:Boolean(i),disableFuture:Boolean(a),shouldDisableDate:this.shouldDisableDate});this.handleDaySelect(s,!1)}},n.prototype.render=function(){var t=this.state,n=t.currentMonth,r=t.slideDirection,o=this.props,i=o.classes,a=o.allowKeyboardControl,s=o.leftArrowButtonProps,u=o.leftArrowIcon,c=o.rightArrowButtonProps,l=o.rightArrowIcon,d=o.loadingIndicator||(0,e.createElement)(he(),null);return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(lr,{onKeyDown:this.handleKeyDown}),(0,e.createElement)(or,{currentMonth:n,slideDirection:r,onMonthChange:this.handleChangeMonth,leftArrowIcon:u,leftArrowButtonProps:s,rightArrowIcon:l,rightArrowButtonProps:c,disablePrevMonth:this.shouldDisablePrevMonth(),disableNextMonth:this.shouldDisableNextMonth()}),(0,e.createElement)(nr,{slideDirection:r,transKey:n.toString(),className:i.transitionContainer},(0,e.createElement)(e.Fragment,null,this.state.loadingQueue>0&&(0,e.createElement)("div",{className:i.progressContainer},d)||(0,e.createElement)("div",null,this.renderWeeks()))))},n.defaultProps={minDate:new Date("1900-01-01"),maxDate:new Date("2100-01-01"),disablePast:!1,disableFuture:!1,allowKeyboardControl:!0},n}(e.Component),fr=(0,r.withStyles)((function(e){return{transitionContainer:{minHeight:216,marginTop:e.spacing(1.5)},progressContainer:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},week:{display:"flex",justifyContent:"center"}}}),{name:"MuiPickersCalendar",withTheme:!0})(((cr=function(t){var n=jn();return(0,e.createElement)(ur,C({utils:n},t))}).displayName="WithUtils("+((ur=dr).displayName||ur.name)+")",cr)),hr=(0,r.makeStyles)((function(e){return{root:{height:40,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",outline:"none","&:focus":{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium}},yearSelected:{margin:"10px 0",fontWeight:e.typography.fontWeightMedium},yearDisabled:{pointerEvents:"none",color:e.palette.text.hint}}}),{name:"MuiPickersYear"}),pr=function(t){var n,r=t.onSelect,o=t.forwardedRef,i=t.value,a=t.selected,s=t.disabled,u=t.children,c=S(t,["onSelect","forwardedRef","value","selected","disabled","children"]),l=hr(),d=(0,e.useCallback)((function(){return r(i)}),[r,i]);return(0,e.createElement)(D(),C({role:"button",component:"div",tabIndex:s?-1:0,onClick:d,onKeyPress:d,color:a?"primary":void 0,variant:a?"h5":"subtitle1",children:u,ref:o,className:k(l.root,(n={},n[l.yearSelected]=a,n[l.yearDisabled]=s,n))},c))};pr.displayName="Year";var gr=(0,e.forwardRef)((function(t,n){return(0,e.createElement)(pr,C({},t,{forwardedRef:n}))})),mr=310,vr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,ge.makeStyles)(e,pe({defaultTheme:Ot},t))}((function(e){return{staticWrapperRoot:{overflow:"hidden",minWidth:mr,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}}}),{name:"MuiPickersStaticWrapper"}),yr=function(t){var n=t.children,r=vr();return(0,e.createElement)("div",{className:r.staticWrapperRoot,children:n})},br=function(t){var n,r,o=t.children,i=t.classes,a=t.onAccept,s=t.onDismiss,u=t.onClear,c=t.onSetToday,l=t.okLabel,d=t.cancelLabel,f=t.clearLabel,h=t.todayLabel,p=t.clearable,g=t.showTodayButton,m=(t.showTabs,t.wider),v=S(t,["children","classes","onAccept","onDismiss","onClear","onSetToday","okLabel","cancelLabel","clearLabel","todayLabel","clearable","showTodayButton","showTabs","wider"]);return(0,e.createElement)(wn(),C({role:"dialog",onClose:s,classes:{paper:k(i.dialogRoot,(n={},n[i.dialogRootWider]=m,n))}},v),(0,e.createElement)(yn(),{children:o,className:i.dialog}),(0,e.createElement)(mn(),{classes:{root:k((r={},r[i.withAdditionalAction]=p||g,r))}},p&&(0,e.createElement)(T(),{color:"primary",onClick:u},f),!p&&g&&(0,e.createElement)(T(),{color:"primary",onClick:c},h),d&&(0,e.createElement)(T(),{color:"primary",onClick:s},d),l&&(0,e.createElement)(T(),{color:"primary",onClick:a},l)))};br.displayName="ModalDialog";var wr=(0,r.createStyles)({dialogRoot:{minWidth:mr},dialogRootWider:{},dialog:{"&:first-child":{padding:0}},withAdditionalAction:{justifyContent:"flex-start","& > *:first-child":{marginRight:"auto"}}}),Er=(0,r.withStyles)(wr,{name:"MuiPickersModal"})(br),xr=function(t){var n=t.open,r=t.children,o=t.okLabel,i=t.cancelLabel,a=t.clearLabel,s=t.todayLabel,u=t.showTodayButton,c=t.clearable,l=t.DialogProps,d=t.showTabs,f=t.wider,h=t.InputComponent,p=t.DateInputProps,g=t.onClear,m=t.onAccept,v=t.onDismiss,y=t.onSetToday,b=S(t,["open","children","okLabel","cancelLabel","clearLabel","todayLabel","showTodayButton","clearable","DialogProps","showTabs","wider","InputComponent","DateInputProps","onClear","onAccept","onDismiss","onSetToday"]);return sr(n,{Enter:m}),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,C({},b,p)),(0,e.createElement)(Er,C({wider:f,showTabs:d,open:n,onClear:g,onAccept:m,onDismiss:v,onSetToday:y,clearLabel:a,todayLabel:s,okLabel:o,cancelLabel:i,clearable:c,showTodayButton:u,children:r},l)))};xr.defaultProps={okLabel:"OK",cancelLabel:"Cancel",clearLabel:"Clear",todayLabel:"Today",clearable:!1,showTodayButton:!1};var _r,Cr=(0,r.makeStyles)({popoverPaper:{width:mr,paddingBottom:8},popoverPaperWider:{width:325}},{name:"MuiPickersInlineWrapper"}),Sr=function(t){var n,r=t.open,o=t.wider,i=t.children,a=t.PopoverProps,s=(t.onClear,t.onDismiss),u=(t.onSetToday,t.onAccept),c=(t.showTabs,t.DateInputProps),l=t.InputComponent,d=S(t,["open","wider","children","PopoverProps","onClear","onDismiss","onSetToday","onAccept","showTabs","DateInputProps","InputComponent"]),f=(0,e.useRef)(),h=Cr();return sr(r,{Enter:u}),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l,C({},d,c,{inputRef:f})),(0,e.createElement)(xn(),C({open:r,onClose:s,anchorEl:f.current,classes:{paper:k(h.popoverPaper,(n={},n[h.popoverPaperWider]=o,n))},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:i},a)))},Ar=(0,e.createContext)(null),kr=function(t){var n=t.variant,r=S(t,["variant"]),o=function(e){switch(e){case"inline":return Sr;case"static":return yr;default:return xr}}(n);return(0,e.createElement)(Ar.Provider,{value:n||"dialog"},(0,e.createElement)(o,C({},r)))},Or=(0,r.makeStyles)({container:{height:300,overflowY:"auto"}},{name:"MuiPickersYearSelection"}),Dr=function(t){var n=t.date,r=t.onChange,o=t.onYearChange,i=t.minDate,a=t.maxDate,s=t.disablePast,u=t.disableFuture,c=t.animateYearScrolling,l=jn(),d=Or(),f=(0,e.useContext)(Ar),h=(0,e.useRef)(null);(0,e.useEffect)((function(){h.current&&h.current.scrollIntoView&&h.current.scrollIntoView({block:"static"===f?"nearest":"center",behavior:c?"smooth":"auto"})}),[]);var p=l.getYear(n),g=(0,e.useCallback)((function(e){var t=l.setYear(n,e);o&&o(t),r(t,!0)}),[n,r,o,l]);return(0,e.createElement)("div",{className:d.container},l.getYearRange(i,a).map((function(t){var n=l.getYear(t),r=n===p;return(0,e.createElement)(gr,{key:l.getYearText(t),selected:r,value:n,onSelect:g,ref:r?h:void 0,disabled:Boolean(s&&l.isBeforeYear(t,l.date())||u&&l.isAfterYear(t,l.date()))},l.getYearText(t))})))};!function(e){e.HOURS="hours",e.MINUTES="minutes",e.SECONDS="seconds"}(_r||(_r={}));var Lr=_r,Tr=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={toAnimateTransform:!1,previousType:void 0},e.getAngleStyle=function(){var t=e.props,n=t.value,r=t.isInner,o=t.type,i=360/(o===Lr.HOURS?12:60)*n;return o===Lr.HOURS&&n>12&&(i-=360),{height:r?"26%":"40%",transform:"rotateZ("+i+"deg)"}},e}return _(n,t),n.prototype.render=function(){var t,n,r=this.props,o=r.classes,i=r.hasSelected;return(0,e.createElement)("div",{style:this.getAngleStyle(),className:k(o.pointer,(t={},t[o.animateTransform]=this.state.toAnimateTransform,t))},(0,e.createElement)("div",{className:k(o.thumb,(n={},n[o.noPoint]=i,n))}))},n.getDerivedStateFromProps=function(e,t){return e.type!==t.previousType?{toAnimateTransform:!0,previousType:e.type}:{toAnimateTransform:!1,previousType:e.type}},n}(e.Component),Mr=(0,r.withStyles)((function(e){return(0,r.createStyles)({pointer:{width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},animateTransform:{transition:e.transitions.create(["transform","height"])},thumb:{width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"100%",position:"absolute",top:-21,left:-15,border:"14px solid "+e.palette.primary.main,boxSizing:"content-box"},noPoint:{backgroundColor:e.palette.primary.main}})}),{name:"MuiPickersClockPointer"})(Tr),Pr=130,Fr=130,Nr=Pr-Pr,jr=0-Fr,Rr=function(e,t,n){var r=t-Pr,o=n-Fr,i=57.29577951308232*(Math.atan2(Nr,jr)-Math.atan2(r,o));i=Math.round(i/e)*e,i%=360;var a=Math.floor(i/e)||0,s=Math.pow(r,2)+Math.pow(o,2);return{value:a,distance:Math.sqrt(s)}},Ir=function(e,t){return t.getHours(e)>=12?"pm":"am"},Br=function(e,t,n,r){if(n&&(r.getHours(e)>=12?"pm":"am")!==t){var o="am"===t?r.getHours(e)-12:r.getHours(e)+12;return r.setHours(e,o)}return e},Gr=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.isMoving=!1,e.handleTouchMove=function(t){e.isMoving=!0,e.setTime(t)},e.handleTouchEnd=function(t){e.isMoving&&(e.setTime(t,!0),e.isMoving=!1)},e.handleMove=function(t){t.preventDefault(),t.stopPropagation(),(void 0===t.buttons?1===t.nativeEvent.which:1===t.buttons)&&e.setTime(t.nativeEvent,!1)},e.handleMouseUp=function(t){e.isMoving&&(e.isMoving=!1),e.setTime(t.nativeEvent,!0)},e.hasSelected=function(){var t=e.props,n=t.type,r=t.value;return n===Lr.HOURS||r%5==0},e}return _(n,t),n.prototype.setTime=function(e,t){void 0===t&&(t=!1);var n=e.offsetX,r=e.offsetY;if(void 0===n){var o=e.target.getBoundingClientRect();n=e.changedTouches[0].clientX-o.left,r=e.changedTouches[0].clientY-o.top}var i=this.props.type===Lr.SECONDS||this.props.type===Lr.MINUTES?function(e,t,n){return void 0===n&&(n=1),Rr(6*n,e,t).value*n%60}(n,r,this.props.minutesStep):function(e,t,n){var r=Rr(30,e,t),o=r.value,i=r.distance;return o=o||12,n?o%=12:i<90&&(o+=12,o%=24),o}(n,r,Boolean(this.props.ampm));this.props.onChange(i,t)},n.prototype.render=function(){var t=this.props,n=t.classes,r=t.value,o=t.children,i=t.type,a=!t.ampm&&i===Lr.HOURS&&(r<1||r>12);return(0,e.createElement)("div",{className:n.container},(0,e.createElement)("div",{className:n.clock},(0,e.createElement)("div",{role:"menu",tabIndex:-1,className:n.squareMask,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,onMouseUp:this.handleMouseUp,onMouseMove:this.handleMove}),(0,e.createElement)("div",{className:n.pin}),(0,e.createElement)(Mr,{type:i,value:r,isInner:a,hasSelected:this.hasSelected()}),o))},n.defaultProps={ampm:!1,minutesStep:1},n}(e.Component),zr=(0,r.withStyles)((function(e){return(0,r.createStyles)({container:{display:"flex",justifyContent:"center",alignItems:"flex-end",margin:e.spacing(2)+"px 0 "+e.spacing(1)+"px"},clock:{backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:260,width:260,position:"relative",pointerEvents:"none",zIndex:1},squareMask:{width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:"none",touchActions:"none",userSelect:"none","&:active":{cursor:"move"}},pin:{width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})}),{name:"MuiPickersClock"})(Gr),Ur={0:[0,40],1:[55,19.6],2:[94.4,59.5],3:[109,114],4:[94.4,168.5],5:[54.5,208.4],6:[0,223],7:[-54.5,208.4],8:[-94.4,168.5],9:[-109,114],10:[-94.4,59.5],11:[-54.5,19.6],12:[0,5],13:[36.9,49.9],14:[64,77],15:[74,114],16:[64,151],17:[37,178],18:[0,188],19:[-37,178],20:[-64,151],21:[-74,114],22:[-64,77],23:[-37,50]},Wr=(0,r.makeStyles)((function(e){var t=e.spacing(4);return{clockNumber:{width:t,height:32,userSelect:"none",position:"absolute",left:"calc(50% - "+t/2+"px)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:"light"===e.palette.type?e.palette.text.primary:e.palette.text.hint},clockNumberSelected:{color:e.palette.primary.contrastText}}}),{name:"MuiPickersClockNumber"}),Hr=function(t){var n,r=t.selected,o=t.label,i=t.index,a=t.isInner,s=Wr(),u=k(s.clockNumber,((n={})[s.clockNumberSelected]=r,n)),c=(0,e.useMemo)((function(){var e=Ur[i];return{transform:"translate("+e[0]+"px, "+e[1]+"px"}}),[i]);return(0,e.createElement)(D(),{component:"span",className:u,variant:a?"body2":"body1",style:c,children:o})},qr=function(t){for(var n=t.ampm,r=t.utils,o=t.date,i=r.getHours(o),a=[],s=n?12:23,u=function(e){return n?12===e?12===i||0===i:i===e||i-12===e:i===e},c=n?1:0;c<=s;c+=1){var l=c.toString();0===c&&(l="00");var d={index:c,label:r.formatNumber(l),selected:u(c),isInner:!n&&(0===c||c>12)};a.push((0,e.createElement)(Hr,C({key:c},d)))}return a},Vr=function(t){var n=t.value,r=t.utils.formatNumber;return[(0,e.createElement)(Hr,{label:r("00"),selected:0===n,index:12,key:12}),(0,e.createElement)(Hr,{label:r("05"),selected:5===n,index:1,key:1}),(0,e.createElement)(Hr,{label:r("10"),selected:10===n,index:2,key:2}),(0,e.createElement)(Hr,{label:r("15"),selected:15===n,index:3,key:3}),(0,e.createElement)(Hr,{label:r("20"),selected:20===n,index:4,key:4}),(0,e.createElement)(Hr,{label:r("25"),selected:25===n,index:5,key:5}),(0,e.createElement)(Hr,{label:r("30"),selected:30===n,index:6,key:6}),(0,e.createElement)(Hr,{label:r("35"),selected:35===n,index:7,key:7}),(0,e.createElement)(Hr,{label:r("40"),selected:40===n,index:8,key:8}),(0,e.createElement)(Hr,{label:r("45"),selected:45===n,index:9,key:9}),(0,e.createElement)(Hr,{label:r("50"),selected:50===n,index:10,key:10}),(0,e.createElement)(Hr,{label:r("55"),selected:55===n,index:11,key:11})]},Yr=function(t){var n=t.type,r=t.onHourChange,o=t.onMinutesChange,i=t.onSecondsChange,a=t.ampm,s=t.date,u=t.minutesStep,c=jn(),l=(0,e.useMemo)((function(){switch(n){case Lr.HOURS:return{value:c.getHours(s),children:qr({date:s,utils:c,ampm:Boolean(a)}),onChange:function(e,t){var n=Ir(s,c),o=Br(c.setHours(s,e),n,Boolean(a),c);r(o,t)}};case Lr.MINUTES:var e=c.getMinutes(s);return{value:e,children:Vr({value:e,utils:c}),onChange:function(e,t){var n=c.setMinutes(s,e);o(n,t)}};case Lr.SECONDS:var t=c.getSeconds(s);return{value:t,children:Vr({value:t,utils:c}),onChange:function(e,t){var n=c.setSeconds(s,e);i(n,t)}};default:throw new Error("You must provide the type for TimePickerView")}}),[a,s,r,o,i,n,c]);return(0,e.createElement)(zr,C({type:n,ampm:a,minutesStep:u},l))};Yr.displayName="TimePickerView",Yr.defaultProps={ampm:!0,minutesStep:1},(0,e.memo)(Yr);var Kr=(0,r.makeStyles)((function(e){return{root:{flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",outline:"none",height:75,transition:e.transitions.create("font-size",{duration:"100ms"}),"&:focus":{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium}},monthSelected:{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium},monthDisabled:{pointerEvents:"none",color:e.palette.text.hint}}}),{name:"MuiPickersMonth"}),$r=function(t){var n,r=t.selected,o=t.onSelect,i=t.disabled,a=t.value,s=t.children,u=S(t,["selected","onSelect","disabled","value","children"]),c=Kr(),l=(0,e.useCallback)((function(){o(a)}),[o,a]);return(0,e.createElement)(D(),C({role:"button",component:"div",className:k(c.root,(n={},n[c.monthSelected]=r,n[c.monthDisabled]=i,n)),tabIndex:i?-1:0,onClick:l,onKeyPress:l,color:r?"primary":void 0,variant:r?"h5":"subtitle1",children:s},u))};$r.displayName="Month";var Zr=(0,r.makeStyles)({container:{width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch"}},{name:"MuiPickersMonthSelection"}),Xr=function(t){var n=t.disablePast,r=t.disableFuture,o=t.minDate,i=t.maxDate,a=t.date,s=t.onMonthChange,u=t.onChange,c=jn(),l=Zr(),d=c.getMonth(a),f=function(e){var t=c.date(),a=c.date(o),s=c.date(i),u=c.startOfMonth(n&&c.isAfter(t,a)?t:a),l=c.startOfMonth(r&&c.isBefore(t,s)?t:s),d=c.isBefore(e,u),f=c.isAfter(e,l);return d||f},h=(0,e.useCallback)((function(e){var t=c.setMonth(a,e);u(t,!0),s&&s(t)}),[a,u,s,c]);return(0,e.createElement)("div",{className:l.container},c.getMonthArray(a).map((function(t){var n=c.getMonth(t),r=c.format(t,"MMM");return(0,e.createElement)($r,{key:r,value:n,selected:n===d,onSelect:h,disabled:f(t)},r)})))},Qr=function(){return"undefined"!=typeof window&&window.screen&&window.orientation&&90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait"},Jr={year:Dr,month:Xr,date:fr,hours:Yr,minutes:Yr,seconds:Yr},eo=(0,r.makeStyles)({container:{display:"flex",flexDirection:"column"},containerLandscape:{flexDirection:"row"},pickerView:{overflowX:"hidden",minHeight:305,minWidth:mr,maxWidth:325,display:"flex",flexDirection:"column",justifyContent:"center"},pickerViewLandscape:{padding:"0 8px"}},{name:"MuiPickersBasePicker"}),to=function(t){var n,r,o=t.date,i=t.ampm,a=t.views,s=t.disableToolbar,u=t.disablePast,c=t.disableFuture,l=t.hideTabs,d=t.onChange,f=t.openTo,h=t.minutesStep,p=t.dateRangeIcon,g=t.timeIcon,m=t.minDate,v=t.maxDate,y=t.animateYearScrolling,b=t.leftArrowIcon,w=t.rightArrowIcon,E=t.renderDay,x=t.shouldDisableDate,_=t.allowKeyboardControl,S=t.onMonthChange,A=t.onYearChange,O=t.leftArrowButtonProps,D=t.rightArrowButtonProps,L=t.ToolbarComponent,T=t.loadingIndicator,M=t.orientation,P=jn(),F=eo(),N=function(t){var n=(0,e.useState)(Qr()),r=n[0],o=n[1],i=(0,e.useCallback)((function(){return o(Qr())}),[]);return ir((function(){return window.addEventListener("orientationchange",i),function(){return window.removeEventListener("orientationchange",i)}}),[i]),"landscape"===(t||r)}(M),j=function(t,n,r){var o=(0,e.useState)(n&&Hn(t,n)?n:t[0]),i=o[0],a=o[1],s=(0,e.useCallback)((function(e,n){var o=t[t.indexOf(i)+1];if(n&&o)return r(e,!1),void a(o);r(e,Boolean(n))}),[r,i,t]);return{handleChangeAndOpenNext:s,openView:i,setOpenView:a}}(a,f,d),R=j.openView,I=j.setOpenView,B=j.handleChangeAndOpenNext,G=(0,e.useMemo)((function(){return P.date(m)}),[m,P]),z=(0,e.useMemo)((function(){return P.date(v)}),[v,P]);return(0,e.createElement)("div",{className:k(F.container,(n={},n[F.containerLandscape]=N,n))},!s&&(0,e.createElement)(L,C({date:o,onChange:d,setOpenView:I,openView:R,hideTabs:l,dateRangeIcon:p,timeIcon:g,isLandscape:N},t)),(0,e.createElement)("div",{className:k(F.pickerView,(r={},r[F.pickerViewLandscape]=N,r))},"year"===R&&(0,e.createElement)(Dr,{date:o,onChange:B,minDate:G,maxDate:z,disablePast:u,disableFuture:c,onYearChange:A,animateYearScrolling:y}),"month"===R&&(0,e.createElement)(Xr,{date:o,onChange:B,minDate:G,maxDate:z,disablePast:u,disableFuture:c,onMonthChange:S}),"date"===R&&(0,e.createElement)(fr,{date:o,onChange:B,onMonthChange:S,disablePast:u,disableFuture:c,minDate:G,maxDate:z,leftArrowIcon:b,leftArrowButtonProps:O,rightArrowIcon:w,rightArrowButtonProps:D,renderDay:E,shouldDisableDate:x,allowKeyboardControl:_,loadingIndicator:T}),("hours"===R||"minutes"===R||"seconds"===R)&&(0,e.createElement)(Yr,{date:o,ampm:i,type:R,minutesStep:h,onHourChange:B,onMinutesChange:B,onSecondsChange:B})))};to.defaultProps=C({},Zn,{views:Object.keys(Jr)});var no=function(e,t,n,r,o){var i=o.invalidLabel,a=o.emptyLabel,s=o.labelFunc,u=n.date(e);return s?s(r?null:u,i):r?a||"":n.isValid(u)?n.format(u,t):i},ro=function(e,t,n){return t?n:e.endOfDay(n)},oo=function(e,t,n){return t?n:e.startOfDay(n)};function io(e,t,n){return void 0===t&&(t=!0),e||(t?n["12h"]:n["24h"])}function ao(t,n){var r=t.autoOk,o=t.disabled,i=t.onAccept,a=t.onChange,s=t.onError,u=t.value,c=t.variant,l=jn(),d=function(t){var n,r=t.open,o=t.onOpen,i=t.onClose,a=null;return null==r&&(r=(n=(0,e.useState)(!1))[0],a=n[1]),{isOpen:r,setIsOpen:(0,e.useCallback)((function(e){return a&&a(e),e?o&&o():i&&i()}),[o,i,a])}}(t),f=d.isOpen,h=d.setIsOpen,p=function(t,n){return{date:function(t,n){var r=n.value,o=n.initialFocusedDate,i=(0,e.useRef)(t.date()),a=t.date(r||o||i.current);return a&&t.isValid(a)?a:i.current}(jn(),t),format:t.format||n.getDefaultFormat()}}(t,n),g=p.date,m=p.format,v=(0,e.useState)(g),y=v[0],b=v[1];(0,e.useEffect)((function(){f||l.isEqual(y,g)||b(g)}),[g,f,y,l]);var w=(0,e.useCallback)((function(e){h(!1),a(e),i&&i(e)}),[i,a,h]),E=(0,e.useMemo)((function(){return{format:m,open:f,onClear:function(){return w(null)},onAccept:function(){return w(y)},onSetToday:function(){return b(l.date())},onDismiss:function(){h(!1)}}}),[w,m,f,y,h,l]),x=(0,e.useMemo)((function(){return{date:y,onChange:function(e,t){void 0===t&&(t=!0),b(e),"inline"!==c&&"static"!==c||a(e),t&&r&&w(e)}}}),[w,r,a,y,c]),_=function(e,t,n){var r=n.maxDate,o=n.minDate,i=n.disablePast,a=n.disableFuture,s=n.maxDateMessage,u=n.minDateMessage,c=n.invalidDateMessage,l=n.strictCompareDates,d=t.date(e);return null===e?"":t.isValid(e)?r&&t.isAfter(d,ro(t,!!l,t.date(r)))||a&&t.isAfter(d,ro(t,!!l,t.date()))?s:o&&t.isBefore(d,oo(t,!!l,t.date(o)))||i&&t.isBefore(d,oo(t,!!l,t.date()))?u:"":c}(u,l,t);(0,e.useEffect)((function(){_&&s&&s(_,u)}),[s,_,u]);var C=no(g,m,l,null===u,t),S={pickerProps:x,inputProps:(0,e.useMemo)((function(){return{inputValue:C,validationError:_,onClick:function(){return!o&&h(!0)}}}),[o,C,h,_]),wrapperProps:E};return(0,e.useDebugValue)(S),S}var so=function(t){var n=t.inputValue,r=t.inputVariant,o=t.validationError,i=t.InputProps,a=t.TextFieldComponent,s=void 0===a?Cn():a,u=S(t,["inputValue","inputVariant","validationError","InputProps","TextFieldComponent"]),c=(0,e.useMemo)((function(){return C({},i,{readOnly:!0})}),[i]);return(0,e.createElement)(s,C({error:Boolean(o),helperText:o},u,{value:n,variant:r,InputProps:c}))};function uo(t){var n=t.useOptions,r=t.getCustomProps,o=t.DefaultToolbarComponent;return function(t){var i=t.allowKeyboardControl,a=t.ampm,s=t.hideTabs,u=t.animateYearScrolling,c=(t.autoOk,t.disableFuture),l=t.disablePast,d=(t.format,t.forwardedRef,t.initialFocusedDate,t.invalidDateMessage,t.labelFunc,t.leftArrowIcon),f=t.leftArrowButtonProps,h=t.maxDate,p=(t.maxDateMessage,t.minDate),g=(t.onOpen,t.onClose,t.minDateMessage,t.strictCompareDates),m=t.minutesStep,v=(t.onAccept,t.onChange,t.onMonthChange),y=t.onYearChange,b=t.renderDay,w=t.views,E=t.openTo,x=t.rightArrowIcon,_=t.rightArrowButtonProps,A=t.shouldDisableDate,k=t.dateRangeIcon,O=(t.emptyLabel,t.invalidLabel,t.timeIcon),D=(t.value,t.variant),L=t.orientation,T=t.disableToolbar,M=t.loadingIndicator,P=t.ToolbarComponent,F=void 0===P?o:P,N=S(t,["allowKeyboardControl","ampm","hideTabs","animateYearScrolling","autoOk","disableFuture","disablePast","format","forwardedRef","initialFocusedDate","invalidDateMessage","labelFunc","leftArrowIcon","leftArrowButtonProps","maxDate","maxDateMessage","minDate","onOpen","onClose","minDateMessage","strictCompareDates","minutesStep","onAccept","onChange","onMonthChange","onYearChange","renderDay","views","openTo","rightArrowIcon","rightArrowButtonProps","shouldDisableDate","dateRangeIcon","emptyLabel","invalidLabel","timeIcon","value","variant","orientation","disableToolbar","loadingIndicator","ToolbarComponent"]),j=r?r(t):{},R=ao(t,n(t)),I=R.pickerProps,B=R.inputProps,G=R.wrapperProps;return(0,e.createElement)(kr,C({variant:D,InputComponent:so,DateInputProps:B},G,j,N),(0,e.createElement)(to,C({},I,{orientation:L,disableToolbar:T,ToolbarComponent:F,hideTabs:s,ampm:a,views:w,openTo:E,allowKeyboardControl:i,minutesStep:m,animateYearScrolling:u,disableFuture:c,disablePast:l,leftArrowIcon:d,leftArrowButtonProps:f,maxDate:h,minDate:p,strictCompareDates:g,onMonthChange:v,onYearChange:y,renderDay:b,dateRangeIcon:k,timeIcon:O,rightArrowIcon:x,rightArrowButtonProps:_,shouldDisableDate:A,loadingIndicator:M})))}}so.displayName="PureDateInput";var co=function(t){var n=t.inputValue,r=t.inputVariant,o=t.validationError,i=t.KeyboardButtonProps,a=t.InputAdornmentProps,s=t.onClick,u=t.onChange,c=t.InputProps,l=t.mask,d=t.maskChar,f=void 0===d?"_":d,h=t.refuse,p=void 0===h?/[^\d]+/gi:h,g=t.format,m=t.keyboardIcon,v=t.disabled,y=t.rifmFormatter,b=t.TextFieldComponent,w=void 0===b?Cn():b,E=S(t,["inputValue","inputVariant","validationError","KeyboardButtonProps","InputAdornmentProps","onClick","onChange","InputProps","mask","maskChar","refuse","format","keyboardIcon","disabled","rifmFormatter","TextFieldComponent"]),x=l||function(e,t){return e.replace(/[a-z]/gi,t)}(g,f),_=(0,e.useCallback)(function(e,t,n){return function(r){if(""===r)return r;for(var o="",i=r.replace(n,""),a=0,s=0;a<e.length;){var u=e[a];u===t&&s<i.length?(o+=i[s],s+=1):o+=u,a+=1}return o}}(x,f,p),[l,f]),A=a&&a.position?a.position:"end";return(0,e.createElement)(kn,{value:n,onChange:function(e){u(""===e||e===x?null:e)},refuse:p,format:y||_},(function(t){var n,u=t.onChange,l=t.value;return(0,e.createElement)(w,C({disabled:v,error:Boolean(o),helperText:o},E,{value:l,onChange:u,variant:r,InputProps:C({},c,(n={},n[A+"Adornment"]=(0,e.createElement)(An(),C({position:A},a),(0,e.createElement)(un,C({disabled:v},i,{onClick:s}),m)),n))}))}))};function lo(t){var n=t.useOptions,r=t.getCustomProps,o=t.DefaultToolbarComponent;return function(t){var i=t.allowKeyboardControl,a=t.ampm,s=t.hideTabs,u=t.animateYearScrolling,c=(t.autoOk,t.disableFuture),l=t.disablePast,d=(t.format,t.forwardedRef,t.initialFocusedDate,t.invalidDateMessage,t.labelFunc,t.leftArrowIcon),f=t.leftArrowButtonProps,h=t.maxDate,p=(t.maxDateMessage,t.minDate),g=(t.onOpen,t.onClose,t.minDateMessage,t.strictCompareDates),m=t.minutesStep,v=(t.onAccept,t.onChange,t.onMonthChange),y=t.onYearChange,b=t.renderDay,w=t.views,E=t.openTo,x=t.rightArrowIcon,_=t.rightArrowButtonProps,A=t.shouldDisableDate,k=(t.value,t.dateRangeIcon),O=(t.emptyLabel,t.invalidLabel,t.timeIcon),D=t.orientation,L=t.variant,T=t.disableToolbar,M=t.loadingIndicator,P=t.ToolbarComponent,F=void 0===P?o:P,N=S(t,["allowKeyboardControl","ampm","hideTabs","animateYearScrolling","autoOk","disableFuture","disablePast","format","forwardedRef","initialFocusedDate","invalidDateMessage","labelFunc","leftArrowIcon","leftArrowButtonProps","maxDate","maxDateMessage","minDate","onOpen","onClose","minDateMessage","strictCompareDates","minutesStep","onAccept","onChange","onMonthChange","onYearChange","renderDay","views","openTo","rightArrowIcon","rightArrowButtonProps","shouldDisableDate","value","dateRangeIcon","emptyLabel","invalidLabel","timeIcon","orientation","variant","disableToolbar","loadingIndicator","ToolbarComponent"]),j=r?r(t):{},R=function(t,n){var r=t.format,o=void 0===r?n.getDefaultFormat():r,i=t.inputValue,a=t.onChange,s=t.value,u=jn(),c=no(s,o,u,null===s,t),l=(0,e.useState)(c),d=l[0],f=l[1],h=i?function(e,t,n){try{return t.parse(e,n)}catch(e){return null}}(i,u,o):s;(0,e.useEffect)((function(){(null===s||u.isValid(s))&&f(c)}),[c,f,u,s]);var p=(0,e.useCallback)((function(e){a(e,null===e?null:u.format(e,o))}),[o,a,u]),g=ao(C({},t,{value:h,onChange:p}),n),m=g.inputProps,v=g.wrapperProps,y=g.pickerProps,b=(0,e.useMemo)((function(){return C({},m,{format:v.format,inputValue:i||d,onChange:function(e){f(e||"");var t=null===e?null:u.parse(e,v.format);a(t,e)}})}),[m,d,i,a,u,v.format]);return{inputProps:b,wrapperProps:v,pickerProps:y}}(t,n(t)),I=R.pickerProps,B=R.inputProps,G=R.wrapperProps;return(0,e.createElement)(kr,C({variant:L,InputComponent:co,DateInputProps:B},j,G,N),(0,e.createElement)(to,C({},I,{ToolbarComponent:F,disableToolbar:T,hideTabs:s,orientation:D,ampm:a,views:w,openTo:E,allowKeyboardControl:i,minutesStep:m,animateYearScrolling:u,disableFuture:c,disablePast:l,leftArrowIcon:d,leftArrowButtonProps:f,maxDate:h,minDate:p,strictCompareDates:g,onMonthChange:v,onYearChange:y,renderDay:b,dateRangeIcon:k,timeIcon:O,rightArrowIcon:x,rightArrowButtonProps:_,shouldDisableDate:A,loadingIndicator:M})))}}co.defaultProps={keyboardIcon:(0,e.createElement)((function(e){return t().createElement(de(),C({},e),t().createElement("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),t().createElement("path",{fill:"none",d:"M0 0h24v24H0z"}))}),null)};var fo=C({},Zn,{openTo:"date",views:["year","date"]});function ho(e){var t=jn();return{getDefaultFormat:function(){return function(e,t){return qn(e)?t.yearFormat:Vn(e)?t.yearMonthFormat:t.dateFormat}(e.views,t)}}}var po=uo({useOptions:ho,DefaultToolbarComponent:Kn}),go=lo({useOptions:ho,DefaultToolbarComponent:Kn});po.defaultProps=fo,go.defaultProps=fo;var mo=(0,r.makeStyles)({toolbarLandscape:{flexWrap:"wrap"},toolbarAmpmLeftPadding:{paddingLeft:50},separator:{margin:"0 4px 0 2px",cursor:"default"},hourMinuteLabel:{display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},hourMinuteLabelLandscape:{marginTop:"auto"},hourMinuteLabelReverse:{flexDirection:"row-reverse"},ampmSelection:{marginLeft:20,marginRight:-20,display:"flex",flexDirection:"column"},ampmLandscape:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},ampmSelectionWithSeconds:{marginLeft:15,marginRight:10},ampmLabel:{fontSize:18}},{name:"MuiPickersTimePickerToolbar"});function vo(t,n,r){var o=jn();return{meridiemMode:Ir(t,o),handleMeridiemChange:(0,e.useCallback)((function(e){var i=Br(t,e,Boolean(n),o);r(i,!1)}),[n,t,r,o])}}var yo=function(t){var n,o,i,a=t.date,s=t.views,u=t.ampm,c=t.openView,l=t.onChange,d=t.isLandscape,f=t.setOpenView,h=jn(),p=(0,r.useTheme)(),g=mo(),m=vo(a,u,l),v=m.meridiemMode,y=m.handleMeridiemChange,b=d?"h3":"h2";return(0,e.createElement)(Wn,{isLandscape:d,className:k((n={},n[g.toolbarLandscape]=d,n[g.toolbarAmpmLeftPadding]=u&&!d,n))},(0,e.createElement)("div",{className:k(g.hourMinuteLabel,(o={},o[g.hourMinuteLabelLandscape]=d,o[g.hourMinuteLabelReverse]="rtl"===p.direction,o))},Hn(s,"hours")&&(0,e.createElement)(zn,{variant:b,onClick:function(){return f(Lr.HOURS)},selected:c===Lr.HOURS,label:h.getHourText(a,Boolean(u))}),Hn(s,["hours","minutes"])&&(0,e.createElement)(In,{label:":",variant:b,selected:!1,className:g.separator}),Hn(s,"minutes")&&(0,e.createElement)(zn,{variant:b,onClick:function(){return f(Lr.MINUTES)},selected:c===Lr.MINUTES,label:h.getMinuteText(a)}),Hn(s,["minutes","seconds"])&&(0,e.createElement)(In,{variant:"h2",label:":",selected:!1,className:g.separator}),Hn(s,"seconds")&&(0,e.createElement)(zn,{variant:"h2",onClick:function(){return f(Lr.SECONDS)},selected:c===Lr.SECONDS,label:h.getSecondText(a)})),u&&(0,e.createElement)("div",{className:k(g.ampmSelection,(i={},i[g.ampmLandscape]=d,i[g.ampmSelectionWithSeconds]=Hn(s,"seconds"),i))},(0,e.createElement)(zn,{disableRipple:!0,variant:"subtitle1",selected:"am"===v,typographyClassName:g.ampmLabel,label:h.getMeridiemText("am"),onClick:function(){return y("am")}}),(0,e.createElement)(zn,{disableRipple:!0,variant:"subtitle1",selected:"pm"===v,typographyClassName:g.ampmLabel,label:h.getMeridiemText("pm"),onClick:function(){return y("pm")}})))},bo=C({},$n,{openTo:"hours",views:["hours","minutes"]});function wo(e){var t=jn();return{getDefaultFormat:function(){return io(e.format,e.ampm,{"12h":t.time12hFormat,"24h":t.time24hFormat})}}}var Eo=uo({useOptions:wo,DefaultToolbarComponent:yo}),xo=lo({useOptions:wo,DefaultToolbarComponent:yo,getCustomProps:function(e){return{refuse:e.ampm?/[^\dap]+/gi:/[^\d]+/gi}}});Eo.defaultProps=bo,xo.defaultProps=bo;var _o=function(e){return"date"===e||"year"===e?"date":"time"},Co=(0,r.makeStyles)((function(e){var t="light"===e.palette.type?e.palette.primary.main:e.palette.background.default;return{tabs:{color:e.palette.getContrastText(t),backgroundColor:t}}}),{name:"MuiPickerDTTabs"}),So=function(t){var n=t.view,o=t.onChange,i=t.dateRangeIcon,a=t.timeIcon,s=Co(),u="light"===(0,r.useTheme)().palette.type?"secondary":"primary";return(0,e.createElement)(Pn(),null,(0,e.createElement)(Tn(),{variant:"fullWidth",value:_o(n),onChange:function(e,t){t!==_o(n)&&o("date"===t?"date":"hours")},className:s.tabs,indicatorColor:u},(0,e.createElement)(Dn(),{value:"date",icon:(0,e.createElement)(e.Fragment,null,i)}),(0,e.createElement)(Dn(),{value:"time",icon:(0,e.createElement)(e.Fragment,null,a)})))};So.defaultProps={dateRangeIcon:(0,e.createElement)((function(e){return t().createElement(de(),C({},e),t().createElement("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),t().createElement("path",{fill:"none",d:"M0 0h24v24H0z"}))}),null),timeIcon:(0,e.createElement)((function(e){return t().createElement(de(),C({},e),t().createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),t().createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),t().createElement("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}))}),null)};var Ao=(0,r.makeStyles)((function(e){return{toolbar:{paddingLeft:16,paddingRight:16,justifyContent:"space-around"},separator:{margin:"0 4px 0 2px",cursor:"default"}}}),{name:"MuiPickerDTToolbar"}),ko=function(t){var n=t.date,o=t.openView,i=t.setOpenView,a=t.ampm,s=t.hideTabs,u=t.dateRangeIcon,c=t.timeIcon,l=t.onChange,d=jn(),f=Ao(),h=!s&&"undefined"!=typeof window&&window.innerHeight>667,p=vo(n,a,l),g=p.meridiemMode,m=p.handleMeridiemChange,v="rtl"===(0,r.useTheme)().direction;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Wn,{isLandscape:!1,className:f.toolbar},(0,e.createElement)(pn,{container:!0,justify:"center",wrap:"nowrap"},(0,e.createElement)(pn,{item:!0,container:!0,xs:5,justify:"flex-start",direction:"column"},(0,e.createElement)("div",null,(0,e.createElement)(zn,{variant:"subtitle1",onClick:function(){return i("year")},selected:"year"===o,label:d.getYearText(n)})),(0,e.createElement)("div",null,(0,e.createElement)(zn,{variant:"h4",onClick:function(){return i("date")},selected:"date"===o,label:d.getDateTimePickerHeaderText(n)}))),(0,e.createElement)(pn,{item:!0,container:!0,xs:6,justify:"center",alignItems:"flex-end",direction:v?"row-reverse":"row"},(0,e.createElement)(zn,{variant:"h3",onClick:function(){return i("hours")},selected:"hours"===o,label:d.getHourText(n,a)}),(0,e.createElement)(In,{variant:"h3",label:":",className:f.separator}),(0,e.createElement)(zn,{variant:"h3",onClick:function(){return i("minutes")},selected:"minutes"===o,label:d.getMinuteText(n)})),a&&(0,e.createElement)(pn,{item:!0,container:!0,xs:1,direction:"column",justify:"flex-end"},(0,e.createElement)(zn,{variant:"subtitle1",selected:"am"===g,label:d.getMeridiemText("am"),onClick:function(){return m("am")}}),(0,e.createElement)(zn,{variant:"subtitle1",selected:"pm"===g,label:d.getMeridiemText("pm"),onClick:function(){return m("pm")}})))),h&&(0,e.createElement)(So,{dateRangeIcon:u,timeIcon:c,view:o,onChange:i}))},Oo=C({},Xn,{wider:!0,orientation:"portrait",openTo:"date",views:["year","date","hours","minutes"]});function Do(e){var t=jn();if("portrait"!==e.orientation)throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return{getDefaultFormat:function(){return io(e.format,e.ampm,{"12h":t.dateTime12hFormat,"24h":t.dateTime24hFormat})}}}var Lo=uo({useOptions:Do,DefaultToolbarComponent:ko}),To=lo({useOptions:Do,DefaultToolbarComponent:ko,getCustomProps:function(e){return{refuse:e.ampm?/[^\dap]+/gi:/[^\d]+/gi}}});Lo.defaultProps=Oo,To.defaultProps=Oo;var Mo=f(3192),Po=f.n(Mo);const Fo=function(){function e(e){var t=void 0===e?{}:e,n=t.locale,r=t.instance,o=t.moment;this.yearFormat="YYYY",this.yearMonthFormat="MMMM YYYY",this.dateTime12hFormat="MMMM Do hh:mm a",this.dateTime24hFormat="MMMM Do HH:mm",this.time12hFormat="hh:mm A",this.time24hFormat="HH:mm",this.dateFormat="MMMM Do",this.moment=r||o||Po(),this.locale=n}return e.prototype.parse=function(e,t){return""===e?null:this.moment(e,t,!0)},e.prototype.date=function(e){if(null===e)return null;var t=this.moment(e);return t.locale(this.locale),t},e.prototype.isValid=function(e){return this.moment(e).isValid()},e.prototype.isNull=function(e){return null===e},e.prototype.getDiff=function(e,t){return e.diff(t)},e.prototype.isAfter=function(e,t){return e.isAfter(t)},e.prototype.isBefore=function(e,t){return e.isBefore(t)},e.prototype.isAfterDay=function(e,t){return e.isAfter(t,"day")},e.prototype.isBeforeDay=function(e,t){return e.isBefore(t,"day")},e.prototype.isBeforeYear=function(e,t){return e.isBefore(t,"year")},e.prototype.isAfterYear=function(e,t){return e.isAfter(t,"year")},e.prototype.startOfDay=function(e){return e.clone().startOf("day")},e.prototype.endOfDay=function(e){return e.clone().endOf("day")},e.prototype.format=function(e,t){return e.locale(this.locale),e.format(t)},e.prototype.formatNumber=function(e){return e},e.prototype.getHours=function(e){return e.get("hours")},e.prototype.addDays=function(e,t){return t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days")},e.prototype.setHours=function(e,t){return e.clone().hours(t)},e.prototype.getMinutes=function(e){return e.get("minutes")},e.prototype.setMinutes=function(e,t){return e.clone().minutes(t)},e.prototype.getSeconds=function(e){return e.get("seconds")},e.prototype.setSeconds=function(e,t){return e.clone().seconds(t)},e.prototype.getMonth=function(e){return e.get("month")},e.prototype.isSameDay=function(e,t){return e.isSame(t,"day")},e.prototype.isSameMonth=function(e,t){return e.isSame(t,"month")},e.prototype.isSameYear=function(e,t){return e.isSame(t,"year")},e.prototype.isSameHour=function(e,t){return e.isSame(t,"hour")},e.prototype.setMonth=function(e,t){return e.clone().month(t)},e.prototype.getMeridiemText=function(e){return"am"===e?"AM":"PM"},e.prototype.startOfMonth=function(e){return e.clone().startOf("month")},e.prototype.endOfMonth=function(e){return e.clone().endOf("month")},e.prototype.getNextMonth=function(e){return e.clone().add(1,"month")},e.prototype.getPreviousMonth=function(e){return e.clone().subtract(1,"month")},e.prototype.getMonthArray=function(e){for(var t=[e.clone().startOf("year")];t.length<12;){var n=t[t.length-1];t.push(this.getNextMonth(n))}return t},e.prototype.getYear=function(e){return e.get("year")},e.prototype.setYear=function(e,t){return e.clone().set("year",t)},e.prototype.mergeDateAndTime=function(e,t){return this.setMinutes(this.setHours(e,this.getHours(t)),this.getMinutes(t))},e.prototype.getWeekdays=function(){return this.moment.weekdaysShort(!0)},e.prototype.isEqual=function(e,t){return null===e&&null===t||this.moment(e).isSame(t)},e.prototype.getWeekArray=function(e){for(var t=e.clone().startOf("month").startOf("week"),n=e.clone().endOf("month").endOf("week"),r=0,o=t,i=[];o.isBefore(n);){var a=Math.floor(r/7);i[a]=i[a]||[],i[a].push(o),o=o.clone().add(1,"day"),r+=1}return i},e.prototype.getYearRange=function(e,t){for(var n=this.moment(e).startOf("year"),r=this.moment(t).endOf("year"),o=[],i=n;i.isBefore(r);)o.push(i),i=i.clone().add(1,"year");return o},e.prototype.getCalendarHeaderText=function(e){return this.format(e,this.yearMonthFormat)},e.prototype.getYearText=function(e){return this.format(e,"YYYY")},e.prototype.getDatePickerHeaderText=function(e){return this.format(e,"ddd, MMM D")},e.prototype.getDateTimePickerHeaderText=function(e){return this.format(e,"MMM D")},e.prototype.getMonthText=function(e){return this.format(e,"MMMM")},e.prototype.getDayText=function(e){return this.format(e,"D")},e.prototype.getHourText=function(e,t){return this.format(e,t?"hh":"HH")},e.prototype.getMinuteText=function(e){return this.format(e,"mm")},e.prototype.getSecondText=function(e){return this.format(e,"ss")},e}(),No=window["material-ui"].LinearProgress;var jo=f.n(No);const Ro=(0,r.makeStyles)({loadingOverlay:{position:"absolute",width:"100%",height:"100%",top:0,left:0,opacity:.37,zIndex:10,backgroundColor:"#fff"},transparent:{backgroundColor:"transparent"},relativePosition:{"&$loadingOverlay":{position:"relative"}}}),Io=e=>{let{transparent:n=!1,relativePosition:r=!1,className:o}=e;const i=Ro();return t().createElement(t().Fragment,null,t().createElement("div",{className:s()(i.loadingOverlay,o,{[i.transparent]:n,[i.relativePosition]:r})},t().createElement(jo(),{color:"secondary"})))},Bo=(0,r.makeStyles)((e=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,fontFamily:"Roboto, Helvetica, Arial, sans-serif",overflowX:"hidden",overflowY:"auto",display:"flex",flexDirection:"column",backgroundColor:e.palette.background.default},graphWrapper:{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1},graphContainer:{display:"flex",overflow:"hidden",flexGrow:1},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"}})));var Go=f(2396);const zo=()=>{},Uo=new Promise((()=>{})),Wo=function(){let{cancelPrevious:t=!0,cancelOnUnmount:n=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=(0,e.useRef)(zo),o=()=>r.current();return(0,e.useEffect)((()=>()=>{n&&o()}),[]),(0,e.useCallback)((e=>(t&&o(),new Promise(((t,n)=>{r.current=()=>n("canceled"),e.then(t,n)})).catch((function(e){if("canceled"===e)return Uo;throw e})))),[])};function Ho(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qo=(e,t)=>{const n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ho(e,t,n[t])}))}return e}({},e,{[null==t?void 0:t.uri]:t}),r=Object.keys(n);return r.length>50&&delete n[r[0]],n},Vo=t().createContext({graphLoading:!1,data:null,selectedEntityLoading:!1,selectedEntity:null,onEntitySelect:()=>{}});Vo.displayName="GraphStateContext";var Yo=f(6929),Ko=f.n(Yo);const $o=window["material-ui"].Avatar;var Zo=f.n($o);const Xo=e=>{let{entity:r,avatarClassName:o,imageClassName:i}=e;const a=(0,n.useSelector)(v().selectors.getMetadata),u=(0,n.useSelector)(v().selectors.getAbsoluteImagePath)||"",c=(0,Go.getEntityImage)(a,u,r),l=(0,Go.getAbsoluteImageUrl)(u,(0,Go.getEntityTypeImage)(a,r.type)),d=e=>{e.target.onError=null,e.target.src=(0,Go.svg2Url)('\n<svg width="400px" height="400px" viewBox="0 0 400 400" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>Group</title>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="Group" fill-rule="nonzero">\n <rect id="Rectangle" fill="#DFE5E9" x="0" y="0" width="400" height="400"></rect>\n <path d="M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n <path d="M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n <path d="M5.68434189e-14,387.023257 L5.68434189e-14,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 5.68434189e-14,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n </g>\n </g>\n</svg>\n')};return t().createElement(Zo(),{className:s()(o,i),src:c,imgProps:{onError:d}},t().createElement("img",{className:i,src:l,alt:"fallback entity avatar",onError:d}))},Qo=(0,r.makeStyles)({container:{display:"flex",flexShrink:0,marginLeft:"10px",alignItems:"center"},value:{marginLeft:"4px",minWidth:"20px",textAlign:"center"}}),Jo=(0,r.makeStyles)({dqiq:{width:"14px",height:"14px",lineHeight:"14px",background:"#e6605e",color:"#fff",fontSize:"10px",fontWeight:100,marginLeft:"2px",marginRight:"1px",borderRadius:"2px",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,textIndent:0}}),ei=()=>{const e=Jo();return t().createElement(t().Fragment,null,t().createElement("span",null,"DQ"),t().createElement("span",{className:e.dqiq},"IQ"))},ti=["analyticsAttributes/DQ/analyticsAttributes/score","analyticsAttributes/DQ"],ni=["analyticsAttributes/IQ/analyticsAttributes/score","analyticsAttributes/IQ"],ri=e=>{let{label:n="",attrTypeUri:r=""}=e;const o=r.indexOf("analyticsAttributes/"),i=r.substr(o),a=(0,u.includes)(i,ti),s=(0,u.includes)(i,ni);return(0,u.cond)([[(0,u.always)(a),(0,u.always)(t().createElement(ei,null))],[(0,u.always)(s),(0,u.always)(l().text("Rank"))],[u.T,(0,u.always)(n)]])()};ri.propTypes={label:i().string,attrTypeUri:i().string};const oi=ri,ii=e=>{let{label:n,value:r,uri:o,rangeColorsConfig:i,className:a}=e;const u=Qo();return t().createElement("div",{className:s()(u.container,a),key:o},t().createElement(oi,{attrTypeUri:o,label:n}),t().createElement("span",{className:u.value,style:{color:(0,Go.getScoreColor)(o,r,i)}},r))};ii.propTypes={label:i().string,value:i().oneOfType([i().string,i().number]),uri:i().string,rangeColorsConfig:i().object,className:i().string};const ai=ii,si=(0,r.makeStyles)({"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",display:"inline-flex",marginRight:"12px",borderRadius:"2px"},"entityType-medium":{padding:"2px 8px 3px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"15px",display:"inline-flex",marginRight:"16px"}}),ui=e=>{let{entity:r,className:o,size:i="small"}=e;const a=si(),u=(0,n.useSelector)(v().selectors.getMetadata),c=r.type,l=(0,Go.getEntityType)(u,c)||{},d=(0,Go.getPropWithInheritance)(u,l,"typeColor")||Go.theme.palette.primary.main;return t().createElement(D(),{style:{backgroundColor:d,color:Go.utils.Colors.getColor(d)?"#FFFFFF":"#212121"},className:s()(a[`entityType-${i}`],o),component:"div"},(0,Go.getEntityTypeLabel)(u,r))},ci=(0,r.makeStyles)((e=>({profileBandWrapper:{flexShrink:0},profileBand:{display:"flex",padding:"16px 12px 16px 16px",alignItems:"flex-start",backgroundColor:"#fff",boxShadow:"inset 0 -1px 0 0 rgba(0,114,206,0.06), inset 0 1px 0 0 rgba(0,114,206,0.06);","&:after":{content:'""',minHeight:"inherit",fontSize:0}},inactive:{background:e.inactiveBackground},profileIcon:{marginRight:"12px"},imageProfileIcon:{width:"48px",height:"48px"},profileInfo:{display:"flex",flexDirection:"column",flex:"1 1 50%"},badge:{},label:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary,wordBreak:"break-word","&+ $specialInfo":{marginTop:"4px"}},secondaryLabel:{display:"inline-flex",color:e.palette.text.primary,marginTop:"2px",lineHeight:"16px",fontSize:"14px",fontWeight:400,"&+ $businessCard":{marginLeft:"12px"}},businessCard:{color:e.palette.text.secondary,display:"inline-flex",fontSize:"14px",marginTop:"4px",lineHeight:"1.2"},specialInfo:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",width:"100%",marginTop:"8px"},entityType:{display:"flex",flexWrap:"wrap"},entityId:{fontSize:"13px",color:e.palette.text.secondary,whiteSpace:"nowrap",cursor:"pointer","&:hover":{textDecoration:"underline"}},scores:{display:"flex",flexGrow:1,justifyContent:"flex-end",paddingRight:"20px"}})));function li(){return li=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},li.apply(this,arguments)}const di=r=>{let{className:o,entity:i,scoresToShow:a,rangeColorsConfig:c,children:d,classes:f}=r;const h=ci({classes:f}),p=(0,n.useSelector)(v().selectors.getMetadata),g=(0,e.useCallback)((()=>{navigator.clipboard.writeText((0,Go.getEntityId)(i))}),[i]);if((0,u.isNil)(i))return null;const m=(0,Go.getLabel)(i.label),y=i.secondaryLabel,b=(0,Go.getBusinessCardAttributesText)(p,i),w=(0,Go.isActiveObject)(i),E=(0,Go.getScores)(p,i,a),x=i.uri,_=(0,Go.getEntityId)(i);return t().createElement("div",{className:s()(h.profileBandWrapper,o)},t().createElement("div",{className:s()(h.profileBand,{[h.inactive]:!w}),"data-entity-uri":x},t().createElement(Xo,{key:i.uri,entity:i,avatarClassName:h.profileIcon,imageClassName:h.imageProfileIcon}),t().createElement("div",{className:h.profileInfo},t().createElement("div",null,t().createElement(D(),{variant:"h6",className:h.label},m),y&&t().createElement(D(),{variant:"subtitle2",className:h.secondaryLabel},y),b&&t().createElement(D(),{variant:"subtitle1",className:h.businessCard},b)),t().createElement("div",{className:h.specialInfo},t().createElement("div",{className:h.entityType},t().createElement(ui,{entity:i,size:"medium",className:h.badge}),E.length>0&&t().createElement("div",{className:h.scores},E.map((e=>t().createElement(ai,li({key:e.uri},e,{rangeColorsConfig:c}))))),!(0,Go.isTempUri)(x)&&t().createElement(Ko(),{title:l().text("Copy to clipboard")},t().createElement(D(),{display:"inline",variant:"body2",className:h.entityId,onClick:g},l().text("Entity ID"),": ",_))))),d&&t().createElement("div",null,d)))};di.propTypes={className:i().string,entity:i().object,scoresToShow:i().arrayOf(i().string),rangeColorsConfig:i().object,children:i().node,classes:i().object};const fi=di,hi=(0,r.makeStyles)((()=>({root:{display:"flex",alignItems:"start"},addButton:{visibility:"hidden","&$showAlways":{visibility:"visible"},".commentsContainerVisibilityArea:hover &":{visibility:"visible"}},showAlways:{}}))),pi=(t,n)=>{const r=(0,e.useRef)(!1);(0,e.useEffect)((()=>{r.current?t():r.current=!0}),n)},gi=()=>{},mi=t().createContext({comments:[],commentsMap:null,currentComment:null,getComment:gi,getComments:()=>new Promise(gi),getCommentsCount:gi,createComment:()=>new Promise(gi),editComment:()=>new Promise(gi),createReply:()=>new Promise(gi),resolveThread:gi,reOpenThread:gi,clearCurrentComment:gi,deleteComment:gi,sending:!1,loading:!1,pageToken:null});mi.displayName="CollaborationContext";const vi=t().createContext([]);function yi(){return yi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yi.apply(this,arguments)}vi.displayName="RelatedObjectUrisContext";const bi=e=>t().createElement("svg",yi({width:20,height:20,fillOpacity:.54,fill:"#000",fillRule:"nonzero",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),t().createElement("path",{d:"M2.8 1h14.4c.99 0 1.8.81 1.8 1.8v10.8c0 .99-.81 1.8-1.8 1.8H4.6L1 19V2.8C1 1.81 1.81 1 2.8 1z"})),wi=(0,r.makeStyles)((()=>({root:{position:"relative",height:"18px",display:"flex",alignItems:"center",justifyContent:"center",marginLeft:"4px",cursor:"pointer"},icon:{"&:hover":{fillOpacity:.7}},childrenWrapper:{position:"absolute",width:"100%",height:"100%",lineHeight:"15px",display:"flex",alignItems:"center",justifyContent:"center",top:"-2px",left:0,right:0,bottom:0,color:"white",fontSize:"10px",pointerEvents:"none"}}))),Ei=t().forwardRef(((e,n)=>{let{children:r,onClick:o}=e;const i=wi();return t().createElement(Ko(),{title:l().text("Show comment")},t().createElement("div",{ref:n,className:i.root,onClick:o},t().createElement(bi,{className:i.icon}),t().createElement("div",{className:i.childrenWrapper},r)))}));Ei.displayName="CommentButton";const xi=Ei;function _i(){return _i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_i.apply(this,arguments)}const Ci=e=>t().createElement("svg",_i({width:20,height:20,fillOpacity:.54,fill:"#000",fillRule:"nonzero",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),t().createElement("path",{d:"M2.8 14.653L3.853 13.6H17.2V2.8H2.8v11.853zM17.2 1c.99 0 1.8.81 1.8 1.8v10.8c0 .99-.81 1.8-1.8 1.8H4.6L1 19V2.8C1 1.81 1.81 1 2.8 1h14.4zm-6.3 3.6H9.1v2.699L6.4 7.3v1.8l2.7-.001V11.8h1.8V9.099l2.7.001V7.3l-2.7-.001V4.6z"})),Si=e=>{let{className:n,onClick:r}=e;const o=wi();return t().createElement(Ko(),{title:l().text("Add comment")},t().createElement("div",{className:s()(o.root,n),onClick:r},t().createElement(Ci,{className:o.icon})))},Ai=window["material-ui"].Box;var ki=f.n(Ai),Oi=f(7291);const Di=window["material-ui"].Link;var Li=f.n(Di),Ti=f(3054);const Mi=window["material-ui"].Menu;var Pi=f.n(Mi);const Fi=window["material-ui"].MenuItem;var Ni=f.n(Fi);const ji={tooltipTitle:i().node,tooltipPlacement:i().string,showForDisabled:i().bool};const Ri=(0,r.makeStyles)((e=>({tooltip:e.tooltip,wrapper:{lineHeight:0}}))),Ii=n=>{const r=(0,e.forwardRef)(((e,r)=>{let{tooltipTitle:o,tooltipPlacement:i,showForDisabled:a=!1}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["tooltipTitle","tooltipPlacement","showForDisabled"]);const u=Ri();return o?t().createElement(Ko(),{ref:r,title:o,placement:i||"bottom",disableFocusListener:!0,disableTouchListener:!0,classes:{tooltip:u.tooltip}},(e=>e?t().createElement("span",{className:u.wrapper},t().createElement(n,s)):t().createElement(n,s))(a)):t().createElement(n,s)}));return r.displayName="WithTooltip",r.propTypes=ji,r},Bi=(0,r.makeStyles)((e=>({buttonRoot:{"&$selected":{color:e.palette.action.active,backgroundColor:(0,r.fade)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,r.fade)(e.palette.action.active,.15)}}},selected:{},paper:{minWidth:"112px"},menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}}))),Gi=Ii(Ni()),zi=(0,e.forwardRef)(((e,n)=>{let{item:r,onMenuClose:o=u.identity}=e;const i=Bi(),{disabled:a,text:s,tooltip:c,onClick:l,id:d=""}=r;return t().createElement(Gi,{tooltipTitle:c,showForDisabled:!0,classes:{root:i.menuItem},onClick:e=>{o(e),l(e)},disabled:a,ref:n,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${d}`},t().createElement(D(),{classes:{root:i.menuText}},s))}));zi.displayName="MenuItemRenderer";const Ui=zi;function Wi(){return Wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wi.apply(this,arguments)}function Hi(n){let{className:r,menuId:o,buttonComponent:i=T(),buttonContent:a,menuItems:c=[],buttonProps:l={},popoverProps:d={},onMenuOpen:f=u.identity,onMenuClose:h=u.identity,MenuItemRenderer:p=Ui}=n;const g=i,m=Bi(),v=(0,e.useRef)(),[y,b]=(0,e.useState)(!1);pi((()=>{y?f():h()}),[y]);const w=(0,e.useCallback)((e=>{null==e||e.stopPropagation(),b((e=>!e))}),[]);return t().createElement(t().Fragment,null,t().createElement(g,Wi({ref:v,className:s()(m.buttonRoot,{[m.selected]:y},r),onClick:w,"aria-pressed":y,"aria-controls":y?o:void 0,"aria-haspopup":"true"},l),a),t().createElement(Pi(),Wi({id:o,variant:"menu",open:y,autoFocus:!1,classes:{paper:m.paper},anchorEl:v.current,onClose:w,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:y}},d),c.map(((e,n)=>t().createElement(p,{item:e,key:n,onMenuClose:w})))))}Hi.displayName="DropDownMenuButton";const qi=Hi;function Vi(){return Vi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vi.apply(this,arguments)}const Yi={XXS:"XXS",XS:"XS",S:"S",M:"M",MPlus:"MPlus",L:"L",XL:"XL"},Ki=(0,e.forwardRef)(((e,n)=>{const{classes:r,className:o,onClick:i,icon:a,size:s=Yi.XS,iconClassName:u}=e,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["classes","className","onClick","icon","size","iconClassName"]);return t().createElement(N(),Vi({ref:n,classes:{root:`${r[`root${s}`]} ${r.rootAll}`,disabled:r.disabled},onClick:i,className:o},c),a&&t().createElement(a,{classes:{root:r[`icon${s}`]},className:u}))}));Ki.displayName="SmallIconButton";const $i=Ii((0,r.withStyles)((()=>({rootAll:{padding:"0"},rootXXS:{height:"16px",width:"16px"},iconXXS:{fontSize:"16px"},rootXS:{height:"20px",width:"20px"},iconXS:{fontSize:"20px"},rootS:{height:"24px",width:"24px"},iconS:{fontSize:"24px"},rootM:{height:"30px",width:"30px"},rootMPlus:{height:"36px",width:"36px"},rootL:{height:"40px",width:"40px"},rootXL:{height:"48px",width:"48px"},disabled:{fillOpacity:.5}})))(Ki)),Zi=t().createContext({});Zi.displayName="EntitiesMapContext";const Xi=t().createContext(null);Xi.displayName="ViewIdContext";const Qi=(0,e.forwardRef)(((r,o)=>{let{value:i,children:a,className:s}=r;const u=(0,n.useDispatch)(),c=(0,e.useContext)(Xi),l=(0,n.useSelector)(v().selectors.getUIPath),d=(0,e.useCallback)((()=>{u(m.ui.actions.openEntity({uri:i,viewId:c}))}),[c,i,u]);return t().createElement("a",{ref:o,href:(f=i,(0,Go.getEntityLink)({uiPath:l,uri:f})),onClick:e=>{d(),e.stopPropagation(),e.preventDefault()},className:s},a);var f}));Qi.displayName="EntityUriLink";const Ji=Qi,ea=(e,t)=>{const n=e.relatedObjectUris.indexOf(t);if(n>=0)return e.relatedObjectUris[1-n]},ta=e=>`${l().date(e,"LT")} ${l().date(e,"LL")}`,na=(0,r.makeStyles)((e=>({title:{marginBottom:"10px",color:e.palette.divider,fontSize:"12px",lineHeight:"14px"},label:{paddingLeft:"9px",borderLeft:"1px solid #D8D8D8",fontSize:"13px",color:e.palette.text.primary,lineHeight:"15px"},link:{color:e.palette.primary.main,textDecoration:"none"}}))),ra=r=>{let{comment:o,className:i}=r;const a=na(),u=(0,n.useSelector)(v().selectors.getEntity),c=(0,n.useSelector)(v().selectors.getMetadata),d=(0,e.useContext)(Zi);return t().createElement(ki(),{className:i},(()=>{switch(o.objectType){case Go.CollaborationObjectTypes.ENTITY_ATTRIBUTE:{const e=(0,Go.getAttributeTypeUriByValueUri)(o.objectId,u.type),n=(0,Go.findAttributeTypeByUri)(c,e);return t().createElement(t().Fragment,null,t().createElement(D(),{className:a.title},l().text("Selected attribute:")),t().createElement(D(),{className:a.label},null==n?void 0:n.label))}case Go.CollaborationObjectTypes.ENTITY:return t().createElement(t().Fragment,null,t().createElement(D(),{className:a.title},l().text("Selected profile:")),t().createElement(Ji,{className:s()(a.label,a.link),value:(0,Go.getEntityUriForLink)(u)},(0,Go.getLabel)(u.label)));case Go.CollaborationObjectTypes.RELATION:{var e;const n=ea(o,u.uri),r={uri:n,label:null===(e=d[n])||void 0===e?void 0:e.label};return t().createElement(t().Fragment,null,t().createElement(D(),{className:a.title},l().text("Selected relation:")),t().createElement(D(),{className:a.label},t().createElement(Ji,{className:a.link,value:(0,Go.getEntityUriForLink)(u)},(0,Go.getLabel)(u.label)),n&&t().createElement(t().Fragment,null,` ${l().text("to")} `,t().createElement(Ji,{className:a.link,value:(0,Go.getEntityUriForLink)(r)},r.label?(0,Go.getLabel)(r.label):(0,Go.getEntityId)(r)))))}case Go.CollaborationObjectTypes.POTENTIAL_MATCH:{var n;const e=ea(o,u.uri),r={uri:e,label:null===(n=d[e])||void 0===n?void 0:n.label};return t().createElement(t().Fragment,null,t().createElement(D(),{className:a.title},l().text("Selected potential match:")),t().createElement(D(),{className:a.label},t().createElement(Ji,{className:a.link,value:(0,Go.getEntityUriForLink)(u)},(0,Go.getLabel)(u.label)),e&&t().createElement(t().Fragment,null,` ${l().text("and")} `,t().createElement(Ji,{className:a.link,value:(0,Go.getEntityUriForLink)(r)},r.label?(0,Go.getLabel)(r.label):(0,Go.getEntityId)(r)))))}default:return null}})())},oa=t().createContext([]);oa.displayName="UsersContext";const ia=(0,r.makeStyles)((e=>({root:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",wordBreak:"break-word"}}))),aa=n=>{let{comment:r,className:o}=n;const i=ia(),a=(0,e.useContext)(oa);return t().createElement(D(),{className:s()(i.root,o)},function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"+";const o=[];let i="",a=!1;for(let s=0;s<=e.length;s++){const u=e[s],c=e[s+1],l=s===e.length-1;i+=u,u===r&&0===s&&(a=!0),a&&t.includes(i.slice(r.length))&&(a=!1,o.push(n(i)),i=""),c===r&&(a=!0,o.push(i),i=""),l&&o.push(i)}return o}(r.content,r.namedUsers,(e=>{const n=a.find((t=>t.username===e.slice(1)));return n?t().createElement(Li(),{href:`mailto:${n.email}`},e):e})).map(((n,r)=>t().createElement(e.Fragment,{key:r},n))))},sa=(0,r.makeStyles)((e=>({root:{width:"32px",height:"32px",fontSize:"12px",color:e.palette.text.secondary,backgroundColor:"rgba(144, 164, 174, 0.2)"}})));function ua(){return ua=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ua.apply(this,arguments)}const ca=e=>{let{className:n,children:r}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","children"]);const i=sa();return t().createElement(Zo(),ua({},o,{className:s()(i.root,n)}),r.split(".").map((e=>e[0].toUpperCase())).join(""))},la=(0,r.makeStyles)((e=>({header:{display:"flex"},avatar:{marginRight:"8px"},username:{marginBottom:"1px",color:e.palette.text.primary,fontSize:"13px",fontWeight:500,lineHeight:"15px"},createdAt:{marginTop:"3px",marginRight:"4px",color:e.palette.text.secondary,fontSize:"11px",lineHeight:"13px",whiteSpace:"nowrap"},body:{marginLeft:"40px"},commentTarget:{marginTop:"-15px"},message:{marginTop:"12px"},dropdownMenu:{zIndex:"3000 !important"},buttons:{marginTop:"15px",marginBottom:"12px",display:"flex","& $button + $button":{marginLeft:"10px"}},button:{fontSize:"13px",lineHeight:"15px"}}))),da=r=>{let{onReply:o,className:i,uri:a,comment:s,onStartEditing:u}=r;const c=la(),d=(0,n.useSelector)(v().selectors.getUserName),f=s.createdBy===d,{resolveThread:h,reOpenThread:p,sending:g,deleteComment:m}=(0,e.useContext)(mi),y=(0,e.useMemo)((()=>[{text:l().text("Edit"),onClick:u},{text:l().text("Delete"),onClick:()=>m({uri:a,commentId:s.commentId})}]),[u,m,a,s]);return t().createElement(ki(),{className:i},t().createElement(ki(),{className:c.header},t().createElement(ca,{classes:{root:c.avatar}},s.createdBy),t().createElement(ki(),{width:"100%"},t().createElement(D(),{className:c.username},s.createdBy)),t().createElement(D(),{className:c.createdAt},ta(s.createdTime)),f&&t().createElement(qi,{buttonComponent:$i,buttonProps:{icon:Ti.Z,tooltipTitle:l().text("Open menu")},popoverProps:{PopoverClasses:{root:c.dropdownMenu}},menuItems:y,menuId:"collaboration-comment-menu"})),t().createElement(ki(),{className:c.body},t().createElement(ra,{comment:s,className:c.commentTarget}),t().createElement(aa,{comment:s,className:c.message}),t().createElement(ki(),{className:c.buttons},t().createElement(Li(),{className:c.button,onClick:o,component:"button"},l().text("Reply")),"open"===s.status&&t().createElement(Li(),{disabled:g,className:c.button,onClick:()=>{h({commentId:s.commentId,uri:a})},component:"button"},l().text("Resolve")),"resolved"===s.status&&t().createElement(Li(),{disabled:g,className:c.button,onClick:()=>{p({commentId:s.commentId,uri:a})},component:"button"},l().text("Re-open")))))},fa=(0,r.makeStyles)((e=>({root:{display:"flex",padding:"8px",borderRadius:"4px",backgroundColor:"rgba(0,114,206,0.06)"},avatar:{marginRight:"8px"},header:{display:"flex",marginBottom:"8px"},username:{color:e.palette.text.primary,fontSize:"13px",fontWeight:500,lineHeight:"15px"},message:{marginBottom:"8px",color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px"},createdAt:{color:e.palette.text.secondary,fontSize:"11px",lineHeight:"13px",whiteSpace:"nowrap"},marked:{marginLeft:"8px",color:e.palette.text.secondary,fontSize:"13px",fontStyle:"italic",lineHeight:"15px"}}))),ha=e=>{let{className:n,reply:r}=e;const{createdBy:o,action:i,createdTime:a}=r,u=fa();return t().createElement(ki(),{className:s()(u.root,n)},t().createElement(ca,{classes:{root:u.avatar}},o),t().createElement(ki(),null,t().createElement(ki(),{className:u.header},t().createElement(D(),{className:u.username},o),"resolve"===i&&t().createElement(D(),{className:u.marked},l().text("Marked as resolved")),"reopen"===i&&t().createElement(D(),{className:u.marked},l().text("Re-opened"))),"resolve"!==i&&t().createElement(aa,{className:u.message,comment:r}),t().createElement(D(),{className:u.createdAt},ta(a))))};function pa(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ga(){return ga=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ga.apply(this,arguments)}function ma(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function va(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ya(e,t,n){return t&&va(e.prototype,t),n&&va(e,n),e}function ba(e){return ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ba(e)}function wa(e){return wa="function"==typeof Symbol&&"symbol"===ba(Symbol.iterator)?function(e){return ba(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":ba(e)},wa(e)}function Ea(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xa(e,t){return!t||"object"!==wa(t)&&"function"!=typeof t?Ea(e):t}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_a(e)}function Ca(e,t){return Ca=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ca(e,t)}function Sa(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ca(e,t)}function Aa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ka=f(7677),Oa=f.n(ka);var Da=f(1260),La=f.n(Da),Ta=f(5182),Ma=f.n(Ta),Pa=function(e){return e===Object(e)?Object.keys(e):[]},Fa=function(e){return e===Object(e)?Object.values(e):[]};function Na(e,t){var n=Object.assign({},e);return Ia(e)&&Ia(t)&&Pa(t).forEach((function(r){Ia(t[r])&&r in e?n[r]=Na(e[r],t[r]):Object.assign(n,La()({},r,t[r]))})),n}var ja=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(e,t){return Na(e,t)}),e)},Ra=function(e,t){var n=Object.assign({},e);if(t)for(var r=0;r<t.length;r++)delete n[t[r]];return n},Ia=function(e){return!(e!==Object(e)||e instanceof Date||Array.isArray(e))},Ba=function(e){return(e||[]).filter(Boolean)},Ga=function(e){return"&"===e[0]},za=function(e){return!Ga(e)},Ua=function(e){return e.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))},Wa=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Pa(e),r={},o=0,i=n.length;o<i;o+=1){var a=n[o],s="[object Object]"!==Object.prototype.toString.call(e[a])||":"===a[0]||"@"===a[0]||t.indexOf(a)>=0;s&&(r[a]=e[a])}return r},Ha=function(e,t){for(var n=t.map(Ua),r=Pa(e),o={},i=0,a=r.length;i<a;i+=1){var s=r[i];(t.indexOf(s)>=0||n.indexOf(Ua(s))>=0)&&(o[s]=e[s])}return o},qa=function e(t,n){for(var r=ja.apply(void 0,[{},Ra(t,n)].concat(Ma()(Fa(Ha(t,n))))),o=Pa(r).filter(Ga),i=0,a=o.length;i<a;i+=1){var s=o[i],u=e(r[s],n);n.indexOf(s)>=0?(delete r[s],r=ja({},r,u)):r[s]=u}return r};function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Va(Object(n),!0).forEach((function(t){La()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ka=["animationName"];const $a=function(e){var t=e.style,n=e.className;return Ya(Ya({},t?{style:Wa(t,Ka)}:{}),n?{className:n}:{})};var Za=(0,e.createContext)($a);Za.Provider;const Xa=function(e){if(!e)return[];if("string"==typeof e)return[e];if(!Array.isArray(e)){var t=e;return Pa(e).reduce((function(e,n){return e.concat(t[n]?[n]:[])}),[])}return e};var Qa={};const Ja=function(e){return function(t,n){var r,o=n||Qa;e.memoize=e.memoize||new WeakMap,e.memoize.has(o)?r=e.memoize.get(o):(r={},e.memoize.set(o,r));var i=Xa(t).join(" ");return i in r?r[i]:r[i]=e(t||[],n)}};function es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ts(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?es(Object(n),!0).forEach((function(t){La()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):es(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ns=function(e){var t=e&&Pa(e)[0];return t&&t.split("__")[0].split("--")[0]},rs=function(e,t,n){if(e){var r=e.split(" ")[0],o=[].concat(Ma()(0===t.length?n.map((function(e){return"".concat(r,"--").concat(e.substring(1))})):[]),Ma()(t.map((function(e){return"".concat(r,"__").concat(e)}))));return 0===t.length?[e].concat(Ma()(o)):o}};const os=function e(t){var n=t.style,r=t.className,o=t.classNames,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$a,a=r||ns(o)||(null==n?void 0:n.className),s="function"==typeof n?n:Ja((function(t,r){var s=Xa(t);Oa()(Array.isArray(s),"First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."),Oa()(!r||Ia(r),"Optional second parameter must be a plain object.");var u=s.filter(Ga),c=s.filter(za),l=c.length>0?function(e){return Fa(Ha(e,c))}:function(e){return[e]},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l(qa(e,u))},f=rs(a,c,u);return e(ts(ts(ts({},(n||r)&&{style:ja.apply(void 0,[{}].concat(Ma()(d(r)),Ma()(d(n))))}),f&&{className:f.join(" ")}),o&&{classNames:o}),i)})),u=ts({},"function"==typeof n?n:{style:n}),c=Ma()(new Set([].concat(Ma()(u.className?u.className.split(" "):[]),Ma()(a?a.split(" "):[])))),l=o?Ba(c.map((function(e){return o[e]}))):c,d=i(ts(ts({},u),l.length>0?{className:l.join(" ")}:{}));return Object.assign(s,d),s},is=function(t,n,r){var o=n.style,i=n.className,a=n.classNames,s=(0,e.useContext)(Za);return(0,e.useMemo)((function(){return os({style:o,className:i,classNames:a},s)}),[o,i,a,s])(r,t)};function as(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?as(Object(n),!0).forEach((function(t){La()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):as(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var us=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},cs="__id__",ls="__display__",ds=function(e,t){Oa()("id"===t||"display"===t,'Second arg must be either "id" or "display", got: "'.concat(t,'"'));var n=e.indexOf(ls),r=e.indexOf(cs);return n<0&&(n=null),r<0&&(r=null),Oa()(null!==n||null!==r,"The markup '".concat(e,"' does not contain either of the placeholders '__id__' or '__display__'")),null!==n&&null!==r?"id"===t&&r<=n||"display"===t&&n<=r?0:1:0},fs=function(e){var t=/^\/(.+)\/(\w+)?$/;return new RegExp(e.map((function(e){var n,r,o=(n=t.exec(e.toString()),r=3,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),i=o[1],a=o[2];return Oa()(!a,"RegExp flags are not supported. Change /".concat(i,"/").concat(a," into /").concat(i,"/")),"(".concat(i,")")})).join("|"),"g")},hs=function(e){var t=0;return e.indexOf("__id__")>=0&&t++,e.indexOf("__display__")>=0&&t++,t},ps=function(){},gs=function(e,t,n){for(var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ps,i=fs(t.map((function(e){return e.regex}))),a=2,s=t.map((function(e){var t=e.markup,n=a;return a+=hs(t)+1,n})),u=0,c=0;null!==(r=i.exec(e));){var l=s.find((function(e){return!!r[e]})),d=s.indexOf(l),f=t[d],h=f.markup,p=f.displayTransform,g=l+ds(h,"id"),m=l+ds(h,"display"),v=r[g],y=p(v,r[m]),b=e.substring(u,r.index);o(b,u,c),c+=b.length,n(r[0],r.index,c,v,y,d,u),c+=y.length,u=i.lastIndex}u<e.length&&o(e.substring(u),u,c)},ms=function(e,t){var n="";return gs(e,t,(function(e,t,r,o,i){n+=i}),(function(e){n+=e})),n},vs=function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"START";if("number"!=typeof n)return n;var i=function(e,t,o){void 0===r&&o+e.length>=n&&(r=t+n-o)},a=function(e,t,i,a,s,u,c){void 0===r&&i+s.length>n&&(r="NULL"===o?null:t+("END"===o?e.length:0))};return gs(e,t,a,i),void 0===r?e.length:r},ys=function(e,t,n,r){return e.substring(0,t)+r+e.substring(n)},bs=function(e,t){var n=[];return gs(e,t,(function(e,t,r,o,i,a,s){n.push({id:o,display:i,childIndex:a,index:t,plainTextIndex:r})})),n},ws=function(e,t){return"".concat(e,"-").concat(t)},Es=function(e){return Object.values(e).reduce((function(e,t){return e+t.results.length}),0)},xs=function(e){var t=us(e),n=e[e.indexOf(ls)+ls.length],r=e[e.indexOf(cs)+cs.length];return new RegExp(t.replace(ls,"([^".concat(us(n||""),"]+?)")).replace(cs,"([^".concat(us(r||""),"]+?)")))},_s=function(t){return e.Children.toArray(t).map((function(e){var t=e.props,n=t.markup,r=t.regex,o=t.displayTransform;return{markup:n,regex:r?Cs(r,n):xs(n),displayTransform:o||function(e,t){return t||e}}}))},Cs=function(e,t){var n=new RegExp(e.toString()+"|").exec("").length-1,r=hs(t);return Oa()(n===r,"Number of capturing groups in RegExp ".concat(e.toString()," (").concat(n,") does not match the number of placeholders in the markup '").concat(t,"' (").concat(r,")")),e},Ss=[{base:"A",letters:/(&#65;|&#9398;|&#65313;|&#192;|&#193;|&#194;|&#7846;|&#7844;|&#7850;|&#7848;|&#195;|&#256;|&#258;|&#7856;|&#7854;|&#7860;|&#7858;|&#550;|&#480;|&#196;|&#478;|&#7842;|&#197;|&#506;|&#461;|&#512;|&#514;|&#7840;|&#7852;|&#7862;|&#7680;|&#260;|&#570;|&#11375;|[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F])/g},{base:"AA",letters:/(&#42802;|[\uA732])/g},{base:"AE",letters:/(&#198;|&#508;|&#482;|[\u00C6\u01FC\u01E2])/g},{base:"AO",letters:/(&#42804;|[\uA734])/g},{base:"AU",letters:/(&#42806;|[\uA736])/g},{base:"AV",letters:/(&#42808;|&#42810;|[\uA738\uA73A])/g},{base:"AY",letters:/(&#42812;|[\uA73C])/g},{base:"B",letters:/(&#66;|&#9399;|&#65314;|&#7682;|&#7684;|&#7686;|&#579;|&#386;|&#385;|[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181])/g},{base:"C",letters:/(&#67;|&#9400;|&#65315;|&#262;|&#264;|&#266;|&#268;|&#199;|&#7688;|&#391;|&#571;|&#42814;|[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E])/g},{base:"D",letters:/(&#68;|&#9401;|&#65316;|&#7690;|&#270;|&#7692;|&#7696;|&#7698;|&#7694;|&#272;|&#395;|&#394;|&#393;|&#42873;|&#208;|[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0])/g},{base:"DZ",letters:/(&#497;|&#452;|[\u01F1\u01C4])/g},{base:"Dz",letters:/(&#498;|&#453;|[\u01F2\u01C5])/g},{base:"E",letters:/(&#69;|&#9402;|&#65317;|&#200;|&#201;|&#202;|&#7872;|&#7870;|&#7876;|&#7874;|&#7868;|&#274;|&#7700;|&#7702;|&#276;|&#278;|&#203;|&#7866;|&#282;|&#516;|&#518;|&#7864;|&#7878;|&#552;|&#7708;|&#280;|&#7704;|&#7706;|&#400;|&#398;|[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E])/g},{base:"F",letters:/(&#70;|&#9403;|&#65318;|&#7710;|&#401;|&#42875;|[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B])/g},{base:"G",letters:/(&#71;|&#9404;|&#65319;|&#500;|&#284;|&#7712;|&#286;|&#288;|&#486;|&#290;|&#484;|&#403;|&#42912;|&#42877;|&#42878;|[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E])/g},{base:"H",letters:/(&#72;|&#9405;|&#65320;|&#292;|&#7714;|&#7718;|&#542;|&#7716;|&#7720;|&#7722;|&#294;|&#11367;|&#11381;|&#42893;|[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D])/g},{base:"I",letters:/(&#73;|&#9406;|&#65321;|&#204;|&#205;|&#206;|&#296;|&#298;|&#300;|&#304;|&#207;|&#7726;|&#7880;|&#463;|&#520;|&#522;|&#7882;|&#302;|&#7724;|&#407;|[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197])/g},{base:"J",letters:/(&#74;|&#9407;|&#65322;|&#308;|&#584;|[\u004A\u24BF\uFF2A\u0134\u0248])/g},{base:"K",letters:/(&#75;|&#9408;|&#65323;|&#7728;|&#488;|&#7730;|&#310;|&#7732;|&#408;|&#11369;|&#42816;|&#42818;|&#42820;|&#42914;|[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2])/g},{base:"L",letters:/(&#76;|&#9409;|&#65324;|&#319;|&#313;|&#317;|&#7734;|&#7736;|&#315;|&#7740;|&#7738;|&#321;|&#573;|&#11362;|&#11360;|&#42824;|&#42822;|&#42880;|[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780])/g},{base:"LJ",letters:/(&#455;|[\u01C7])/g},{base:"Lj",letters:/(&#456;|[\u01C8])/g},{base:"M",letters:/(&#77;|&#9410;|&#65325;|&#7742;|&#7744;|&#7746;|&#11374;|&#412;|[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C])/g},{base:"N",letters:/(&#78;|&#9411;|&#65326;|&#504;|&#323;|&#209;|&#7748;|&#327;|&#7750;|&#325;|&#7754;|&#7752;|&#544;|&#413;|&#42896;|&#42916;|&#330;|[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u014A])/g},{base:"NJ",letters:/(&#458;|[\u01CA])/g},{base:"Nj",letters:/(&#459;|[\u01CB])/g},{base:"O",letters:/(&#79;|&#9412;|&#65327;|&#210;|&#211;|&#212;|&#7890;|&#7888;|&#7894;|&#7892;|&#213;|&#7756;|&#556;|&#7758;|&#332;|&#7760;|&#7762;|&#334;|&#558;|&#560;|&#214;|&#554;|&#7886;|&#336;|&#465;|&#524;|&#526;|&#416;|&#7900;|&#7898;|&#7904;|&#7902;|&#7906;|&#7884;|&#7896;|&#490;|&#492;|&#216;|&#510;|&#390;|&#415;|&#42826;|&#42828;|[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C])/g},{base:"OE",letters:/(&#338;|[\u0152])/g},{base:"OI",letters:/(&#418;|[\u01A2])/g},{base:"OO",letters:/(&#42830;|[\uA74E])/g},{base:"OU",letters:/(&#546;|[\u0222])/g},{base:"P",letters:/(&#80;|&#9413;|&#65328;|&#7764;|&#7766;|&#420;|&#11363;|&#42832;|&#42834;|&#42836;|[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754])/g},{base:"Q",letters:/(&#81;|&#9414;|&#65329;|&#42838;|&#42840;|&#586;|[\u0051\u24C6\uFF31\uA756\uA758\u024A])/g},{base:"R",letters:/(&#82;|&#9415;|&#65330;|&#340;|&#7768;|&#344;|&#528;|&#530;|&#7770;|&#7772;|&#342;|&#7774;|&#588;|&#11364;|&#42842;|&#42918;|&#42882;|[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782])/g},{base:"S",letters:/(&#83;|&#9416;|&#65331;|&#7838;|&#346;|&#7780;|&#348;|&#7776;|&#352;|&#7782;|&#7778;|&#7784;|&#536;|&#350;|&#11390;|&#42920;|&#42884;|[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784])/g},{base:"T",letters:/(&#84;|&#9417;|&#65332;|&#7786;|&#356;|&#7788;|&#538;|&#354;|&#7792;|&#7790;|&#358;|&#428;|&#430;|&#574;|&#42886;|[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786])/g},{base:"TH",letters:/(&#222;|[\u00DE])/g},{base:"TZ",letters:/(&#42792;|[\uA728])/g},{base:"U",letters:/(&#85;|&#9418;|&#65333;|&#217;|&#218;|&#219;|&#360;|&#7800;|&#362;|&#7802;|&#364;|&#220;|&#475;|&#471;|&#469;|&#473;|&#7910;|&#366;|&#368;|&#467;|&#532;|&#534;|&#431;|&#7914;|&#7912;|&#7918;|&#7916;|&#7920;|&#7908;|&#7794;|&#370;|&#7798;|&#7796;|&#580;|[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244])/g},{base:"V",letters:/(&#86;|&#9419;|&#65334;|&#7804;|&#7806;|&#434;|&#42846;|&#581;|[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245])/g},{base:"VY",letters:/(&#42848;|[\uA760])/g},{base:"W",letters:/(&#87;|&#9420;|&#65335;|&#7808;|&#7810;|&#372;|&#7814;|&#7812;|&#7816;|&#11378;|[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72])/g},{base:"X",letters:/(&#88;|&#9421;|&#65336;|&#7818;|&#7820;|[\u0058\u24CD\uFF38\u1E8A\u1E8C])/g},{base:"Y",letters:/(&#89;|&#9422;|&#65337;|&#7922;|&#221;|&#374;|&#7928;|&#562;|&#7822;|&#376;|&#7926;|&#7924;|&#435;|&#590;|&#7934;|[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE])/g},{base:"Z",letters:/(&#90;|&#9423;|&#65338;|&#377;|&#7824;|&#379;|&#381;|&#7826;|&#7828;|&#437;|&#548;|&#11391;|&#11371;|&#42850;|[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762])/g},{base:"a",letters:/(&#97;|&#9424;|&#65345;|&#7834;|&#224;|&#225;|&#226;|&#7847;|&#7845;|&#7851;|&#7849;|&#227;|&#257;|&#259;|&#7857;|&#7855;|&#7861;|&#7859;|&#551;|&#481;|&#228;|&#479;|&#7843;|&#229;|&#507;|&#462;|&#513;|&#515;|&#7841;|&#7853;|&#7863;|&#7681;|&#261;|&#11365;|&#592;|[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250])/g},{base:"aa",letters:/(&#42803;|[\uA733])/g},{base:"ae",letters:/(&#230;|&#509;|&#483;|[\u00E6\u01FD\u01E3])/g},{base:"ao",letters:/(&#42805;|[\uA735])/g},{base:"au",letters:/(&#42807;|[\uA737])/g},{base:"av",letters:/(&#42809;|&#42811;|[\uA739\uA73B])/g},{base:"ay",letters:/(&#42813;|[\uA73D])/g},{base:"b",letters:/(&#98;|&#9425;|&#65346;|&#7683;|&#7685;|&#7687;|&#384;|&#387;|&#595;|[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253])/g},{base:"c",letters:/(&#99;|&#9426;|&#65347;|&#263;|&#265;|&#267;|&#269;|&#231;|&#7689;|&#392;|&#572;|&#42815;|&#8580;|[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184])/g},{base:"d",letters:/(&#100;|&#9427;|&#65348;|&#7691;|&#271;|&#7693;|&#7697;|&#7699;|&#7695;|&#273;|&#396;|&#598;|&#599;|&#42874;|&#240;|[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u00F0])/g},{base:"dz",letters:/(&#499;|&#454;|[\u01F3\u01C6])/g},{base:"e",letters:/(&#101;|&#9428;|&#65349;|&#232;|&#233;|&#234;|&#7873;|&#7871;|&#7877;|&#7875;|&#7869;|&#275;|&#7701;|&#7703;|&#277;|&#279;|&#235;|&#7867;|&#283;|&#517;|&#519;|&#7865;|&#7879;|&#553;|&#7709;|&#281;|&#7705;|&#7707;|&#583;|&#603;|&#477;|[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD])/g},{base:"f",letters:/(&#102;|&#9429;|&#65350;|&#7711;|&#402;|&#42876;|[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C])/g},{base:"g",letters:/(&#103;|&#9430;|&#65351;|&#501;|&#285;|&#7713;|&#287;|&#289;|&#487;|&#291;|&#485;|&#608;|&#42913;|&#7545;|&#42879;|[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F])/g},{base:"h",letters:/(&#104;|&#9431;|&#65352;|&#293;|&#7715;|&#7719;|&#543;|&#7717;|&#7721;|&#7723;|&#7830;|&#295;|&#11368;|&#11382;|&#613;|[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265])/g},{base:"hv",letters:/(&#405;|[\u0195])/g},{base:"i",letters:/(&#105;|&#9432;|&#65353;|&#236;|&#237;|&#238;|&#297;|&#299;|&#301;|&#239;|&#7727;|&#7881;|&#464;|&#521;|&#523;|&#7883;|&#303;|&#7725;|&#616;|&#305;|[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131])/g},{base:"ij",letters:/(&#307;|[\u0133])/g},{base:"j",letters:/(&#106;|&#9433;|&#65354;|&#309;|&#496;|&#585;|[\u006A\u24D9\uFF4A\u0135\u01F0\u0249])/g},{base:"k",letters:/(&#107;|&#9434;|&#65355;|&#7729;|&#489;|&#7731;|&#311;|&#7733;|&#409;|&#11370;|&#42817;|&#42819;|&#42821;|&#42915;|[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3])/g},{base:"l",letters:/(&#108;|&#9435;|&#65356;|&#320;|&#314;|&#318;|&#7735;|&#7737;|&#316;|&#7741;|&#7739;|&#322;|&#410;|&#619;|&#11361;|&#42825;|&#42881;|&#42823;|[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u0142\u019A\u026B\u2C61\uA749\uA781\uA747])/g},{base:"lj",letters:/(&#457;|[\u01C9])/g},{base:"m",letters:/(&#109;|&#9436;|&#65357;|&#7743;|&#7745;|&#7747;|&#625;|&#623;|[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F])/g},{base:"n",letters:/(&#110;|&#9437;|&#65358;|&#505;|&#324;|&#241;|&#7749;|&#328;|&#7751;|&#326;|&#7755;|&#7753;|&#414;|&#626;|&#329;|&#42897;|&#42917;|&#331;|[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u014B])/g},{base:"nj",letters:/(&#460;|[\u01CC])/g},{base:"o",letters:/(&#111;|&#9438;|&#65359;|&#242;|&#243;|&#244;|&#7891;|&#7889;|&#7895;|&#7893;|&#245;|&#7757;|&#557;|&#7759;|&#333;|&#7761;|&#7763;|&#335;|&#559;|&#561;|&#246;|&#555;|&#7887;|&#337;|&#466;|&#525;|&#527;|&#417;|&#7901;|&#7899;|&#7905;|&#7903;|&#7907;|&#7885;|&#7897;|&#491;|&#493;|&#248;|&#511;|&#596;|&#42827;|&#42829;|&#629;|[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275])/g},{base:"oe",letters:/(&#339;|[\u0153])/g},{base:"oi",letters:/(&#419;|[\u01A3])/g},{base:"ou",letters:/(&#547;|[\u0223])/g},{base:"oo",letters:/(&#42831;|[\uA74F])/g},{base:"p",letters:/(&#112;|&#9439;|&#65360;|&#7765;|&#7767;|&#421;|&#7549;|&#42833;|&#42835;|&#42837;|[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755])/g},{base:"q",letters:/(&#113;|&#9440;|&#65361;|&#587;|&#42839;|&#42841;|[\u0071\u24E0\uFF51\u024B\uA757\uA759])/g},{base:"r",letters:/(&#114;|&#9441;|&#65362;|&#341;|&#7769;|&#345;|&#529;|&#531;|&#7771;|&#7773;|&#343;|&#7775;|&#589;|&#637;|&#42843;|&#42919;|&#42883;|[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783])/g},{base:"s",letters:/(&#115;|&#9442;|&#65363;|&#347;|&#7781;|&#349;|&#7777;|&#353;|&#7783;|&#7779;|&#7785;|&#537;|&#351;|&#575;|&#42921;|&#42885;|&#7835;|&#383;|[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u017F])/g},{base:"ss",letters:/(&#223;|[\u00DF])/g},{base:"t",letters:/(&#116;|&#9443;|&#65364;|&#7787;|&#7831;|&#357;|&#7789;|&#539;|&#355;|&#7793;|&#7791;|&#359;|&#429;|&#648;|&#11366;|&#42887;|[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787])/g},{base:"th",letters:/(&#254;|[\u00FE])/g},{base:"tz",letters:/(&#42793;|[\uA729])/g},{base:"u",letters:/(&#117;|&#9444;|&#65365;|&#249;|&#250;|&#251;|&#361;|&#7801;|&#363;|&#7803;|&#365;|&#252;|&#476;|&#472;|&#470;|&#474;|&#7911;|&#367;|&#369;|&#468;|&#533;|&#535;|&#432;|&#7915;|&#7913;|&#7919;|&#7917;|&#7921;|&#7909;|&#7795;|&#371;|&#7799;|&#7797;|&#649;|[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289])/g},{base:"v",letters:/(&#118;|&#9445;|&#65366;|&#7805;|&#7807;|&#651;|&#42847;|&#652;|[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C])/g},{base:"vy",letters:/(&#42849;|[\uA761])/g},{base:"w",letters:/(&#119;|&#9446;|&#65367;|&#7809;|&#7811;|&#373;|&#7815;|&#7813;|&#7832;|&#7817;|&#11379;|[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73])/g},{base:"x",letters:/(&#120;|&#9447;|&#65368;|&#7819;|&#7821;|[\u0078\u24E7\uFF58\u1E8B\u1E8D])/g},{base:"y",letters:/(&#121;|&#9448;|&#65369;|&#7923;|&#253;|&#375;|&#7929;|&#563;|&#7823;|&#255;|&#7927;|&#7833;|&#7925;|&#436;|&#591;|&#7935;|[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF])/g},{base:"z",letters:/(&#122;|&#9449;|&#65370;|&#378;|&#7825;|&#380;|&#382;|&#7827;|&#7829;|&#438;|&#549;|&#576;|&#11372;|&#42851;|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g}],As=function(e){return function(e){var t=e;return Ss.forEach((function(e){t=t.replace(e.letters,e.base)})),t}(e).toLowerCase()},ks=function(e,t,n){return n?As(e).indexOf(As(t)):e.toLowerCase().indexOf(t.toLowerCase())},Os=function(e){return"number"==typeof e},Ds=function(e){return e===Object(e)?Object.keys(e):[]},Ls=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=(t=[]).concat.apply(t,r);return Object.keys(e).reduce((function(t,n){return e.hasOwnProperty(n)&&!i.includes(n)&&void 0!==e[n]&&(t[n]=e[n]),t}),{})};function Ts(e,n){return function(r){var o=function(o){var i=o.style,a=o.className,s=o.classNames,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(o,["style","className","classNames"]),c=n?n(u):void 0,l=is(e,{style:i,className:a,classNames:s},c);return t().createElement(r,ga({},u,{style:l}))},i=r.displayName||r.name||"Component";return o.displayName="defaultStyle(".concat(i,")"),o}}var Ms=function(n){function r(){var e;return ma(this,r),Aa(Ea(e=xa(this,_a(r).apply(this,arguments))),"setCaretElement",(function(t){e.caretElement=t})),e.state={left:void 0,top:void 0},e}return Sa(r,n),ya(r,[{key:"componentDidMount",value:function(){this.notifyCaretPosition()}},{key:"componentDidUpdate",value:function(){this.notifyCaretPosition()}},{key:"notifyCaretPosition",value:function(){if(this.caretElement){var e=this.caretElement,t=e.offsetLeft,n=e.offsetTop;if(this.state.left!==t||this.state.top!==n){var r={left:t,top:n};this.setState(r),this.props.onCaretPositionChange(r)}}}},{key:"render",value:function(){var e,n=this,r=this.props,o=r.selectionStart,i=r.selectionEnd,a=r.value,s=r.style,u=r.children,c=r.containerRef,l=_s(u);o===i&&(e=vs(a,l,o,"START"));var d=[],f={},h=d,p=0;return gs(a,l,(function(e,t,r,o,i,a,s){var u=function(e,t){return e.hasOwnProperty(t)?e[t]++:e[t]=0,t+"_"+e[t]}(f,o);h.push(n.getMentionComponentForMatch(o,i,a,u))}),(function(t,r,o){if(Os(e)&&e>=r&&e<=r+t.length){var i=e-r;h.push(n.renderSubstring(t.substring(0,i),p)),h=[n.renderSubstring(t.substring(i),p)]}else h.push(n.renderSubstring(t,p));p++})),h.push(" "),h!==d&&d.push(this.renderHighlighterCaret(h)),t().createElement("div",ga({},s,{ref:c}),d)}},{key:"renderSubstring",value:function(e,n){return t().createElement("span",ga({},this.props.style("substring"),{key:n}),e)}},{key:"getMentionComponentForMatch",value:function(n,r,o,i){var a={id:n,display:r,key:i},s=e.Children.toArray(this.props.children)[o];return t().cloneElement(s,a)}},{key:"renderHighlighterCaret",value:function(e){return t().createElement("span",ga({},this.props.style("caret"),{ref:this.setCaretElement,key:"caret"}),e)}}]),r}(e.Component);Aa(Ms,"propTypes",{selectionStart:i().number,selectionEnd:i().number,value:i().string.isRequired,onCaretPositionChange:i().func.isRequired,containerRef:i().oneOfType([i().func,i().shape({current:"undefined"==typeof Element?i().any:i().instanceOf(Element)})]),children:i().oneOfType([i().element,i().arrayOf(i().element)]).isRequired}),Aa(Ms,"defaultProps",{value:""});var Ps=Ts({position:"relative",boxSizing:"border-box",width:"100%",color:"transparent",overflow:"hidden",whiteSpace:"pre-wrap",wordWrap:"break-word",border:"1px solid transparent",textAlign:"start","&singleLine":{whiteSpace:"pre",wordWrap:null},substring:{visibility:"hidden"}},(function(e){return{"&singleLine":e.singleLine}}))(Ms),Fs=function(e){function n(){return ma(this,n),xa(this,_a(n).apply(this,arguments))}return Sa(n,e),ya(n,[{key:"render",value:function(){var e=Ls(this.props,["style","classNames","className"],Ds(n.propTypes));return t().createElement("li",ga({id:this.props.id,role:"option","aria-selected":this.props.focused},e,this.props.style),this.renderContent())}},{key:"renderContent",value:function(){var e=this.props,t=e.query,n=e.renderSuggestion,r=e.suggestion,o=e.index,i=e.focused,a=this.getDisplay(),s=this.renderHighlightedDisplay(a,t);return n?n(r,t,s,o,i):s}},{key:"getDisplay",value:function(){var e=this.props.suggestion;if("string"==typeof e)return e;var t=e.id,n=e.display;return void 0!==t&&n?n:t}},{key:"renderHighlightedDisplay",value:function(e){var n=this.props,r=n.ignoreAccents,o=n.query,i=n.style,a=ks(e,o,r);return-1===a?t().createElement("span",i("display"),e):t().createElement("span",i("display"),e.substring(0,a),t().createElement("b",i("highlight"),e.substring(a,a+o.length)),e.substring(a+o.length))}}]),n}(e.Component);Aa(Fs,"propTypes",{id:i().string.isRequired,query:i().string.isRequired,index:i().number.isRequired,ignoreAccents:i().bool,suggestion:i().oneOfType([i().string,i().shape({id:i().oneOfType([i().string,i().number]).isRequired,display:i().string})]).isRequired,renderSuggestion:i().func,focused:i().bool});var Ns=Ts({cursor:"pointer"},(function(e){return{"&focused":e.focused}}))(Fs);function js(){var e=is(),n=e("spinner");return t().createElement("div",e,t().createElement("div",n,t().createElement("div",n(["element","element1"])),t().createElement("div",n(["element","element2"])),t().createElement("div",n(["element","element3"])),t().createElement("div",n(["element","element4"])),t().createElement("div",n(["element","element5"]))))}var Rs=function(n){function r(){var e,t;ma(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return Aa(Ea(t=xa(this,(e=_a(r)).call.apply(e,[this].concat(o)))),"handleMouseEnter",(function(e,n){t.props.onMouseEnter&&t.props.onMouseEnter(e)})),Aa(Ea(t),"select",(function(e,n){t.props.onSelect(e,n)})),Aa(Ea(t),"setUlElement",(function(e){t.ulElement=e})),t}return Sa(r,n),ya(r,[{key:"componentDidUpdate",value:function(){if(this.ulElement&&!(this.ulElement.offsetHeight>=this.ulElement.scrollHeight)&&this.props.scrollFocusedIntoView){var e=this.ulElement.scrollTop,t=this.ulElement.children[this.props.focusIndex].getBoundingClientRect(),n=t.top,r=t.bottom,o=this.ulElement.getBoundingClientRect().top;r=r-o+e,(n=n-o+e)<e?this.ulElement.scrollTop=n:r>this.ulElement.offsetHeight&&(this.ulElement.scrollTop=r-this.ulElement.offsetHeight)}}},{key:"render",value:function(){var e=this.props,n=e.id,r=e.a11ySuggestionsListLabel,o=e.isOpened,i=e.style,a=e.onMouseDown,s=e.containerRef,u=e.position,c=e.left,l=e.top;return o?t().createElement("div",ga({},function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return ss(ss(ss({},e),"function"==typeof t?t:{}),{},{style:ss(ss({},e.style),"function"==typeof t?t.style:t)})}),{})}({position:u||"absolute",left:c,top:l},i),{onMouseDown:a,ref:s}),t().createElement("ul",ga({ref:this.setUlElement,id:n,role:"listbox","aria-label":r},i("list")),this.renderSuggestions()),this.renderLoadingIndicator()):null}},{key:"renderSuggestions",value:function(){var e=this;return Object.values(this.props.suggestions).reduce((function(t,n){var r=n.results,o=n.queryInfo;return[].concat(pa(t),pa(r.map((function(n,r){return e.renderSuggestion(n,o,t.length+r)}))))}),[])}},{key:"renderSuggestion",value:function(n,r,o){var i=this,a=o===this.props.focusIndex,s=r.childIndex,u=r.query,c=e.Children.toArray(this.props.children)[s].props.renderSuggestion,l=this.props.ignoreAccents;return t().createElement(Ns,{style:this.props.style("item"),key:"".concat(s,"-").concat(Is(n)),id:ws(this.props.id,o),query:u,index:o,ignoreAccents:l,renderSuggestion:c,suggestion:n,focused:a,onClick:function(){return i.select(n,r)},onMouseEnter:function(){return i.handleMouseEnter(o)}})}},{key:"renderLoadingIndicator",value:function(){if(this.props.isLoading)return t().createElement(js,{style:this.props.style("loadingIndicator")})}}]),r}(e.Component);Aa(Rs,"propTypes",{id:i().string.isRequired,suggestions:i().object.isRequired,a11ySuggestionsListLabel:i().string,focusIndex:i().number,position:i().string,left:i().number,top:i().number,scrollFocusedIntoView:i().bool,isLoading:i().bool,isOpened:i().bool.isRequired,onSelect:i().func,ignoreAccents:i().bool,containerRef:i().oneOfType([i().func,i().shape({current:"undefined"==typeof Element?i().any:i().instanceOf(Element)})]),children:i().oneOfType([i().element,i().arrayOf(i().element)]).isRequired}),Aa(Rs,"defaultProps",{suggestions:{},onSelect:function(){return null}});var Is=function(e){return"string"==typeof e?e:e.id},Bs=Ts({zIndex:1,backgroundColor:"white",marginTop:14,minWidth:100,list:{margin:0,padding:0,listStyleType:"none"}})(Rs);function Gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gs(n,!0).forEach((function(t){Aa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gs(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Us={TAB:9,RETURN:13,ESC:27,UP:38,DOWN:40},Ws=!1,Hs={singleLine:i().bool,allowSpaceInQuery:i().bool,allowSuggestionsAboveCursor:i().bool,forceSuggestionsAboveCursor:i().bool,ignoreAccents:i().bool,a11ySuggestionsListLabel:i().string,value:i().string,onKeyDown:i().func,onSelect:i().func,onBlur:i().func,onChange:i().func,suggestionsPortalHost:"undefined"==typeof Element?i().any:i().PropTypes.instanceOf(Element),inputRef:i().oneOfType([i().func,i().shape({current:"undefined"==typeof Element?i().any:i().instanceOf(Element)})]),children:i().oneOfType([i().element,i().arrayOf(i().element)]).isRequired},qs=function(n){function r(n){var o;return ma(this,r),Aa(Ea(o=xa(this,_a(r).call(this,n))),"setContainerElement",(function(e){o.containerElement=e})),Aa(Ea(o),"getInputProps",(function(){var e=o.props,t=e.readOnly,n=e.disabled,r=e.style;return zs({},Ls(o.props,["style","classNames","className"],Ds(Hs)),{},r("input"),{value:o.getPlainText()},!t&&!n&&{onChange:o.handleChange,onSelect:o.handleSelect,onKeyDown:o.handleKeyDown,onBlur:o.handleBlur,onCompositionStart:o.handleCompositionStart,onCompositionEnd:o.handleCompositionEnd,onScroll:o.updateHighlighterScroll},{},o.isOpened()&&{role:"combobox","aria-controls":o.uuidSuggestionsOverlay,"aria-expanded":!0,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":ws(o.uuidSuggestionsOverlay,o.state.focusIndex)})})),Aa(Ea(o),"renderControl",(function(){var e=o.props,n=e.singleLine,r=e.style,i=o.getInputProps();return t().createElement("div",r("control"),o.renderHighlighter(),n?o.renderInput(i):o.renderTextarea(i))})),Aa(Ea(o),"renderInput",(function(e){return t().createElement("input",ga({type:"text",ref:o.setInputRef},e))})),Aa(Ea(o),"renderTextarea",(function(e){return t().createElement("textarea",ga({ref:o.setInputRef},e))})),Aa(Ea(o),"setInputRef",(function(e){o.inputElement=e;var t=o.props.inputRef;"function"==typeof t?t(e):t&&(t.current=e)})),Aa(Ea(o),"setSuggestionsElement",(function(e){o.suggestionsElement=e})),Aa(Ea(o),"renderSuggestionsOverlay",(function(){if(!Os(o.state.selectionStart))return null;var e=o.state.suggestionsPosition,n=e.position,r=e.left,i=e.top,a=t().createElement(Bs,{id:o.uuidSuggestionsOverlay,style:o.props.style("suggestions"),position:n,left:r,top:i,focusIndex:o.state.focusIndex,scrollFocusedIntoView:o.state.scrollFocusedIntoView,containerRef:o.setSuggestionsElement,suggestions:o.state.suggestions,onSelect:o.addMention,onMouseDown:o.handleSuggestionsMouseDown,onMouseEnter:o.handleSuggestionsMouseEnter,isLoading:o.isLoading(),isOpened:o.isOpened(),ignoreAccents:o.props.ignoreAccents,a11ySuggestionsListLabel:o.props.a11ySuggestionsListLabel},o.props.children);return o.props.suggestionsPortalHost?Q().createPortal(a,o.props.suggestionsPortalHost):a})),Aa(Ea(o),"renderHighlighter",(function(){var e=o.state,n=e.selectionStart,r=e.selectionEnd,i=o.props,a=i.singleLine,s=i.children,u=i.value,c=i.style;return t().createElement(Ps,{containerRef:o.setHighlighterElement,style:c("highlighter"),value:u,singleLine:a,selectionStart:n,selectionEnd:r,onCaretPositionChange:o.handleCaretPositionChange},s)})),Aa(Ea(o),"setHighlighterElement",(function(e){o.highlighterElement=e})),Aa(Ea(o),"handleCaretPositionChange",(function(e){o.setState({caretPosition:e})})),Aa(Ea(o),"getPlainText",(function(){return ms(o.props.value||"",_s(o.props.children))})),Aa(Ea(o),"executeOnChange",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,a;return o.props.onChange?(i=o.props).onChange.apply(i,[e].concat(n)):o.props.valueLink?(a=o.props.valueLink).requestChange.apply(a,[e.target.value].concat(n)):void 0})),Aa(Ea(o),"handleChange",(function(e){if(Ws=!1,!document.documentMode||(document.activeElement&&document.activeElement.contentDocument||document).activeElement===e.target){var t=o.props.value||"",n=_s(o.props.children),r=e.target.value,i=function(e,t,n,r){var o=n.selectionStartBefore,i=n.selectionEndBefore,a=n.selectionEndAfter,s=ms(e,r),u=s.length-t.length;"undefined"===o&&(o=a+u),"undefined"===i&&(i=o),o===i&&i===a&&s.length===t.length&&(o-=1);var c=t.slice(o,a),l=Math.min(o,a),d=i;o===a&&(d=Math.max(i,o+u));var f=vs(e,r,l,"START"),h=vs(e,r,d,"END"),p=vs(e,r,l,"NULL"),g=vs(e,r,d,"NULL"),m=null===p||null===g,v=ys(e,f,h,c);if(!m){var y=ms(v,r);if(y!==t){for(l=0;t[l]===y[l];)l++;c=t.slice(l,a),d=s.lastIndexOf(t.substring(a)),f=vs(e,r,l,"START"),h=vs(e,r,d,"END"),v=ys(e,f,h,c)}}return v}(t,r,{selectionStartBefore:o.state.selectionStart,selectionEndBefore:o.state.selectionEnd,selectionEndAfter:e.target.selectionEnd},n);r=ms(i,n);var a=e.target.selectionStart,s=e.target.selectionEnd,u=!1,c=function(e,t,n){var r=n,o=!1;if(gs(e,t,(function(e,t,i,a,s,u,c){i<=n&&i+s.length>n&&(r=i,o=!0)})),o)return r}(t,n,a);void 0!==c&&o.state.selectionEnd>c&&(s=a=c,u=!0),o.setState({selectionStart:a,selectionEnd:s,setSelectionAfterMentionChange:u});var l=bs(i,n),d={target:{value:i}};o.executeOnChange(d,i,r,l)}})),Aa(Ea(o),"handleSelect",(function(e){if(o.setState({selectionStart:e.target.selectionStart,selectionEnd:e.target.selectionEnd}),!Ws){var t=o.inputElement;e.target.selectionStart===e.target.selectionEnd?o.updateMentionsQueries(t.value,e.target.selectionStart):o.clearSuggestions(),o.updateHighlighterScroll(),o.props.onSelect(e)}})),Aa(Ea(o),"handleKeyDown",(function(e){if(0!==Es(o.state.suggestions)&&o.suggestionsElement)switch(Object.values(Us).indexOf(e.keyCode)>=0&&(e.preventDefault(),e.stopPropagation()),e.keyCode){case Us.ESC:return void o.clearSuggestions();case Us.DOWN:return void o.shiftFocus(1);case Us.UP:return void o.shiftFocus(-1);case Us.RETURN:case Us.TAB:return void o.selectFocused();default:return}else o.props.onKeyDown(e)})),Aa(Ea(o),"shiftFocus",(function(e){var t=Es(o.state.suggestions);o.setState({focusIndex:(t+o.state.focusIndex+e)%t,scrollFocusedIntoView:!0})})),Aa(Ea(o),"selectFocused",(function(){var e=o.state,t=e.suggestions,n=e.focusIndex,r=Object.values(t).reduce((function(e,t){var n=t.results,r=t.queryInfo;return[].concat(pa(e),pa(n.map((function(e){return{result:e,queryInfo:r}}))))}),[])[n],i=r.result,a=r.queryInfo;o.addMention(i,a),o.setState({focusIndex:0})})),Aa(Ea(o),"handleBlur",(function(e){var t=o._suggestionsMouseDown;o._suggestionsMouseDown=!1,t||o.setState({selectionStart:null,selectionEnd:null}),window.setTimeout((function(){o.updateHighlighterScroll()}),1),o.props.onBlur(e,t)})),Aa(Ea(o),"handleSuggestionsMouseDown",(function(e){o._suggestionsMouseDown=!0})),Aa(Ea(o),"handleSuggestionsMouseEnter",(function(e){o.setState({focusIndex:e,scrollFocusedIntoView:!1})})),Aa(Ea(o),"updateSuggestionsPosition",(function(){var e=o.state.caretPosition,t=o.props,n=t.suggestionsPortalHost,r=t.allowSuggestionsAboveCursor,i=t.forceSuggestionsAboveCursor;if(e&&o.suggestionsElement){var a=o.suggestionsElement,s=o.highlighterElement,u=s.getBoundingClientRect(),c=Vs(s,"font-size"),l={left:u.left+e.left,top:u.top+e.top+c},d=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(a){var f={};if(n){f.position="fixed";var h=l.left,p=l.top;h-=Vs(a,"margin-left"),p-=Vs(a,"margin-top"),h-=s.scrollLeft,p-=s.scrollTop;var g=Math.max(document.documentElement.clientWidth,window.innerWidth||0);h+a.offsetWidth>g?f.left=Math.max(0,g-a.offsetWidth):f.left=h,r&&p+a.offsetHeight>d&&a.offsetHeight<p-c||i?f.top=Math.max(0,p-a.offsetHeight-c):f.top=p}else{var m=e.left-s.scrollLeft,v=e.top-s.scrollTop;m+a.offsetWidth>o.containerElement.offsetWidth?f.right=0:f.left=m,r&&l.top-s.scrollTop+a.offsetHeight>d&&a.offsetHeight<u.top-c-s.scrollTop?f.top=v-a.offsetHeight-c:f.top=v}f.left===o.state.suggestionsPosition.left&&f.top===o.state.suggestionsPosition.top&&f.position===o.state.suggestionsPosition.position||o.setState({suggestionsPosition:f})}}})),Aa(Ea(o),"updateHighlighterScroll",(function(){var e=o.inputElement,t=o.highlighterElement;e&&t&&(t.scrollLeft=e.scrollLeft,t.scrollTop=e.scrollTop,t.height=e.height)})),Aa(Ea(o),"handleCompositionStart",(function(){Ws=!0})),Aa(Ea(o),"handleCompositionEnd",(function(){Ws=!1})),Aa(Ea(o),"setSelection",(function(e,t){if(null!==e&&null!==t){var n=o.inputElement;if(n.setSelectionRange)n.setSelectionRange(e,t);else if(n.createTextRange){var r=n.createTextRange();r.collapse(!0),r.moveEnd("character",t),r.moveStart("character",e),r.select()}}})),Aa(Ea(o),"updateMentionsQueries",(function(e,n){o._queryId++,o.suggestions={},o.setState({suggestions:{}});var r=o.props.value||"",i=o.props.children,a=_s(i),s=vs(r,a,n,"NULL");if(null!==s){var u=function(e,t){var n=bs(e,t),r=n[n.length-1];return r?r.plainTextIndex+r.display.length:0}(r.substring(0,s),a),c=e.substring(u,n);t().Children.forEach(i,(function(t,n){if(t){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e instanceof RegExp)return e;var n=t.allowSpaceInQuery,r=us(e);return new RegExp("(?:^|\\s)(".concat(r,"([^").concat(n?"":"\\s").concat(r,"]*))$"))}(t.props.trigger,o.props),i=c.match(r);if(i){var a=u+c.indexOf(i[1],i.index);o.queryData(i[2],n,a,a+i[1].length,e)}}}))}})),Aa(Ea(o),"clearSuggestions",(function(){o._queryId++,o.suggestions={},o.setState({suggestions:{},focusIndex:0})})),Aa(Ea(o),"queryData",(function(t,n,r,i,a){var s=o.props,u=s.children,c=s.ignoreAccents,l=function(e,t){return e instanceof Array?function(n,r){for(var o=[],i=0,a=e.length;i<a;++i){var s=e[i].display||e[i].id;ks(s,n,t)>=0&&o.push(e[i])}return o}:e}(e.Children.toArray(u)[n].props.data,c),d=l(t,o.updateSuggestions.bind(null,o._queryId,n,t,r,i,a));d instanceof Array&&o.updateSuggestions(o._queryId,n,t,r,i,a,d)})),Aa(Ea(o),"updateSuggestions",(function(e,t,n,r,i,a,s){if(e===o._queryId){o.suggestions=zs({},o.suggestions,Aa({},t,{queryInfo:{childIndex:t,query:n,querySequenceStart:r,querySequenceEnd:i,plainTextValue:a},results:s}));var u=o.state.focusIndex,c=Es(o.suggestions);o.setState({suggestions:o.suggestions,focusIndex:u>=c?Math.max(c-1,0):u})}})),Aa(Ea(o),"addMention",(function(t,n){var r=t.id,i=t.display,a=n.childIndex,s=n.querySequenceStart,u=n.querySequenceEnd,c=n.plainTextValue,l=o.props.value||"",d=_s(o.props.children),f=e.Children.toArray(o.props.children)[a].props,h=f.markup,p=f.displayTransform,g=f.appendSpaceOnAdd,m=f.onAdd,v=vs(l,d,s,"START"),y=v+u-s,b=function(e,t,n){return e.replace(cs,t).replace(ls,n)}(h,r,i);g&&(b+=" ");var w=ys(l,v,y,b);o.inputElement.focus();var E=p(r,i);g&&(E+=" ");var x=s+E.length;o.setState({selectionStart:x,selectionEnd:x,setSelectionAfterMentionChange:!0});var _={target:{value:w}},C=bs(w,d),S=ys(c,s,u,E);o.executeOnChange(_,w,S,C),m&&m(r,i,v,y),o.clearSuggestions()})),Aa(Ea(o),"isLoading",(function(){var e=!1;return t().Children.forEach(o.props.children,(function(t){e=e||t&&t.props.isLoading})),e})),Aa(Ea(o),"isOpened",(function(){return Os(o.state.selectionStart)&&(0!==Es(o.state.suggestions)||o.isLoading())})),Aa(Ea(o),"_queryId",0),o.suggestions={},o.uuidSuggestionsOverlay=Math.random().toString(16).substring(2),o.handleCopy=o.handleCopy.bind(Ea(o)),o.handleCut=o.handleCut.bind(Ea(o)),o.handlePaste=o.handlePaste.bind(Ea(o)),o.state={focusIndex:0,selectionStart:null,selectionEnd:null,suggestions:{},caretPosition:null,suggestionsPosition:{}},o}return Sa(r,n),ya(r,[{key:"componentDidMount",value:function(){document.addEventListener("copy",this.handleCopy),document.addEventListener("cut",this.handleCut),document.addEventListener("paste",this.handlePaste),this.updateSuggestionsPosition()}},{key:"componentDidUpdate",value:function(e,t){t.suggestionsPosition===this.state.suggestionsPosition&&this.updateSuggestionsPosition(),this.state.setSelectionAfterMentionChange&&(this.setState({setSelectionAfterMentionChange:!1}),this.setSelection(this.state.selectionStart,this.state.selectionEnd))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("copy",this.handleCopy),document.removeEventListener("cut",this.handleCut),document.removeEventListener("paste",this.handlePaste)}},{key:"render",value:function(){return t().createElement("div",ga({ref:this.setContainerElement},this.props.style),this.renderControl(),this.renderSuggestionsOverlay())}},{key:"handlePaste",value:function(e){if(e.target===this.inputElement&&this.supportsClipboardActions(e)){e.preventDefault();var t=this.state,n=t.selectionStart,r=t.selectionEnd,o=this.props,i=o.value,a=o.children,s=_s(a),u=vs(i,s,n,"START"),c=vs(i,s,r,"END"),l=e.clipboardData.getData("text/react-mentions"),d=e.clipboardData.getData("text/plain"),f=ys(i,u,c,l||d).replace(/\r/g,""),h=ms(f,s),p={target:zs({},e.target,{value:f})};this.executeOnChange(p,f,h,bs(f,s))}}},{key:"saveSelectionToClipboard",value:function(e){var t=this.state,n=t.selectionStart,r=t.selectionEnd,o=this.props,i=o.children,a=o.value,s=_s(i),u=vs(a,s,n,"START"),c=vs(a,s,r,"END");e.clipboardData.setData("text/plain",e.target.value.slice(n,r)),e.clipboardData.setData("text/react-mentions",a.slice(u,c))}},{key:"supportsClipboardActions",value:function(e){return!!e.clipboardData}},{key:"handleCopy",value:function(e){e.target===this.inputElement&&this.supportsClipboardActions(e)&&(e.preventDefault(),this.saveSelectionToClipboard(e))}},{key:"handleCut",value:function(e){if(e.target===this.inputElement&&this.supportsClipboardActions(e)){e.preventDefault(),this.saveSelectionToClipboard(e);var t=this.state,n=t.selectionStart,r=t.selectionEnd,o=this.props,i=o.children,a=o.value,s=_s(i),u=vs(a,s,n,"START"),c=vs(a,s,r,"END"),l=[a.slice(0,u),a.slice(c)].join(""),d=ms(l,s),f={target:zs({},e.target,{value:d})};this.executeOnChange(f,l,d,bs(a,s))}}}]),r}(t().Component);Aa(qs,"propTypes",Hs),Aa(qs,"defaultProps",{ignoreAccents:!1,singleLine:!1,allowSuggestionsAboveCursor:!1,onKeyDown:function(){return null},onSelect:function(){return null},onBlur:function(){return null}});var Vs=function(e,t){var n=parseFloat(window.getComputedStyle(e,null).getPropertyValue(t));return isFinite(n)?n:0},Ys=Ts({position:"relative",overflowY:"visible",input:{display:"block",width:"100%",position:"absolute",margin:0,top:0,left:0,boxSizing:"border-box",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",letterSpacing:"inherit"},"&multiLine":{input:zs({height:"100%",bottom:0,overflow:"hidden",resize:"none"},"undefined"!=typeof navigator&&/iPhone|iPad|iPod/i.test(navigator.userAgent)?{marginTop:1,marginLeft:-3}:null)}},(function(e){var t=e.singleLine;return{"&singleLine":t,"&multiLine":!t}}))(qs),Ks={fontWeight:"inherit"},$s=function(e){var n=e.display,r=e.style,o=e.className,i=e.classNames,a=is(Ks,{style:r,className:o,classNames:i});return t().createElement("strong",a,n)};$s.propTypes={onAdd:i().func,onRemove:i().func,renderSuggestion:i().func,trigger:i().oneOfType([i().string,i().instanceOf(RegExp)]),markup:i().string,displayTransform:i().func,allowSpaceInQuery:i().bool,isLoading:i().bool},$s.defaultProps={trigger:"@",markup:"@[__display__](__id__)",displayTransform:function(e,t){return t||e},onAdd:function(){return null},onRemove:function(){return null},renderSuggestion:null,isLoading:!1,appendSpaceOnAdd:!1};const Zs=(0,r.makeStyles)((e=>({root:{width:"100%",backgroundColor:"#fff",fontFamily:"Roboto","&__control":{fontSize:"13px"},"&__highlighter":{padding:"10px 22px",border:"1px solid transparent !important",maxHeight:"70px"},"&__input":{borderRadius:"2px",border:"1px solid rgba(0,0,0,0.12)",padding:"10px 22px",outline:0,maxHeight:"70px",overflow:"auto !important"},"&__suggestions":{padding:"8px 0",borderRadius:"4px",backgroundColor:"#fafafa !important",boxShadow:"0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)",transform:"translateY(-100%)"},"&__suggestions__list":{maxHeight:"200px",overflowY:"scroll"},"&__suggestions__item":{padding:"6px 12px",color:e.palette.text.primary,fontSize:"13px",transition:e.transitions.create(["background-color"]),"&:hover, &--focused":{backgroundColor:"rgba(0,0,0,0.04)"}}},mention:{position:"relative",zIndex:1,color:e.palette.primary.main,textShadow:"1px 1px 1px white, 1px -1px 1px white, -1px 1px 1px white, -1px -1px 1px white",pointerEvents:"none"}})));function Xs(){return Xs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xs.apply(this,arguments)}const Qs=n=>{let{onChange:r,className:o}=n,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,["onChange","className"]);const a=Zs(),c=(0,e.useContext)(oa);return t().createElement(Ys,Xs({},i,{onChange:(e,t,n,o)=>{r(t,n,(0,u.uniq)(o.map((e=>{let{display:t}=e;return t.slice(1)}))))},className:s()(a.root,o)}),t().createElement($s,{trigger:"+",data:c.map((e=>{let{username:t}=e;return{id:t,display:t}})),displayTransform:(e,t)=>`+${t}`,appendSpaceOnAdd:!0,className:a.mention}))},Js=(0,r.makeStyles)({root:{padding:"6px 6px 6px 8px",borderRadius:"4px",backgroundColor:"rgba(0,114,206,0.06)"},textField:{maxWidth:"calc(100% - 40px)"},form:{marginBottom:0},main:{display:"flex",alignItems:"center"},avatar:{marginRight:"8px"},buttons:{marginLeft:"40px",marginTop:"8px"},button:{"& + $button":{marginLeft:"8px"}}}),eu=e=>{switch(e){case"open":return l().text("Reply...");case"resolved":return l().text("Adding a comment will re-open this");default:return""}},tu=r=>{let{inputRef:o,className:i,uri:a,relatedObjectUris:c,objectType:d,popperRef:f,comment:h,isEditingComment:p,onCancel:g}=r;const m=Js(),y=(0,n.useSelector)(v().selectors.getUserName),{createReply:b,createComment:w,sending:E,editComment:x}=(0,e.useContext)(mi),[_,C]=(0,e.useState)(""),[S,A]=(0,e.useState)(""),[k,O]=(0,e.useState)([]),[D,L]=(0,e.useState)(!1),M=Wo(),P=""!==_.trim(),F=D||P,N=null==h?void 0:h.status,j=(e,t,n)=>{O(n),C(e),A(t)},R=()=>{null==g||g(),j("","",[])};return(0,e.useEffect)((()=>{f&&f.current.update()}),[f,F]),(0,e.useEffect)((()=>{p?C(h.content):R()}),[p]),t().createElement(ki(),{className:s()(m.root,i)},t().createElement("form",{onSubmit:e=>{e.preventDefault();const t=(0,u.cond)([[(0,u.always)(!h),()=>w({content:S,namedUsers:k,objectType:d,uri:a,relatedObjectUris:c})],[(0,u.always)(p),()=>x({content:S,namedUsers:k,commentId:h.commentId,objectType:d,replies:h.replies,relatedObjectUris:c,uri:a})],[u.T,()=>b({content:S,namedUsers:k,commentId:h.commentId,action:"open"===h.status?"none":"reopen",uri:a})]]);return M(t()).then(R).catch(console.log)},className:m.form},t().createElement(ki(),{className:m.main},t().createElement(ca,{classes:{root:m.avatar}},y),t().createElement(Qs,{className:m.textField,disabled:E,onChange:(e,t,n)=>{j(e,t,n)},inputRef:o,value:_,onFocus:()=>L(!0),onBlur:()=>L(!1),placeholder:eu(N)})),F&&t().createElement(ki(),{className:m.buttons},t().createElement(T(),{className:m.button,variant:"contained",color:"primary",disabled:!P||E,type:"submit"},((e,t)=>t?l().text("Edit"):"open"===e||"resolved"===e?l().text("Reply"):l().text("Comment"))(N,p)),t().createElement(T(),{disabled:E,onClick:()=>R(),className:m.button,variant:"outlined",color:"primary"},l().text("Cancel")))))},nu=(0,r.makeStyles)((()=>({root:{maxWidth:"100%",padding:"8px 4px 10px 16px"},messages:{},repliedComment:{marginBottom:"2px"},replies:{marginLeft:"40px"},sendMessageArea:{marginLeft:"40px"},comment:{}}))),ru=(0,e.memo)((n=>{let{uri:r,relatedObjectUris:o,objectType:i,classes:a,popperRef:s,messagesRef:u,comment:c}=n;const l=(0,e.useRef)(),d=nu({classes:a}),[f,h]=(0,e.useState)(!1),p=t().createElement(tu,{className:d.sendMessageArea,inputRef:l,popperRef:s,uri:r,relatedObjectUris:o,objectType:i,comment:c,onCancel:()=>h(!1),isEditingComment:f});return t().createElement(ki(),{className:d.root},c&&t().createElement(t().Fragment,null,t().createElement("div",{className:d.messages,ref:u},t().createElement(da,{comment:c,uri:r,onReply:()=>{f&&h(!1),l.current.focus()},onStartEditing:()=>{h(!0)},className:d.comment}),t().createElement(ki(),{className:d.replies},c.replies.map((e=>t().createElement(ha,{key:e.replyId,className:d.repliedComment,reply:e}))))),p),!c&&p)})),ou=window["material-ui"].ClickAwayListener;var iu=f.n(ou);const au=window["material-ui"].Popper;var su=f.n(au);const uu=(0,r.makeStyles)({backdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:10},popper:{zIndex:1300}}),cu=e=>{let{anchorEl:t,leftBackdropRef:n,rightBackdropRef:r,topBackdropRef:o,bottomBackdropRef:i,rafIdRef:a,lastResizeTimestamp:s=0}=e;if(t){if(Date.now()-s>100&&o.current&&n.current&&r.current&&i.current){const e=t.getBoundingClientRect();o.current.style.top="0",o.current.style.left="0",o.current.style.right="0",o.current.style.height=e.top+"px",n.current.style.top="0",n.current.style.left="0",n.current.style.width=e.left+"px",n.current.style.bottom="0",r.current.style.top="0",r.current.style.left=e.right+"px",r.current.style.right="0",r.current.style.bottom="0",i.current.style.top=e.bottom+"px",i.current.style.left="0",i.current.style.right="0",i.current.style.bottom="0",s=Date.now()}a.current=requestAnimationFrame((()=>cu({anchorEl:t,leftBackdropRef:n,rightBackdropRef:r,topBackdropRef:o,bottomBackdropRef:i,rafIdRef:a,lastResizeTimestamp:s})))}};function lu(){return lu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lu.apply(this,arguments)}function du(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fu=(0,e.forwardRef)(((n,r)=>{let{modifiers:o,modal:i=!0,onClose:a,anchorEl:c,open:l,className:d}=n,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,["modifiers","modal","onClose","anchorEl","open","className"]);const h=uu(),g=(0,e.useRef)(),m=(0,e.useRef)(),v=(0,e.useRef)(),y=(0,e.useRef)(),b=(0,e.useRef)();(0,e.useEffect)((()=>{if(l&&i)return cu({anchorEl:c,leftBackdropRef:g,rightBackdropRef:m,topBackdropRef:v,bottomBackdropRef:y,rafIdRef:b}),()=>cancelAnimationFrame(b.current)}),[c,l,i]);const w=(0,e.useMemo)((()=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){du(e,t,n[t])}))}return e}({},o,(0,u.compose)((0,u.either)((0,u.includes)("MSIE "),(0,u.includes)("Trident/")),(0,u.path)(["navigator","userAgent"]))(window)?{computeStyle:{gpuAcceleration:!1}}:{})),[o]);return t().createElement(t().Fragment,null,i&&l&&t().createElement(p(),{container:document.body},t().createElement("div",{ref:v,className:h.backdrop,onClick:a}),t().createElement("div",{ref:m,className:h.backdrop,onClick:a}),t().createElement("div",{ref:y,className:h.backdrop,onClick:a}),t().createElement("div",{ref:g,className:h.backdrop,onClick:a})),t().createElement(su(),lu({open:l,anchorEl:c},f,{modifiers:w,className:s()(d,h.popper),ref:r})))}));fu.displayName="Popper",fu.defaultProps={modifiers:{}};const hu=fu,pu=(0,r.makeStyles)((e=>{const t=e.palette.background.paper;return{popoverRoot:{backgroundColor:t,maxWidth:1e3},popper:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t,"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",boxShadow:e.shadows[1],backgroundColor:"currentColor",transform:"rotate(45deg)"}}}})),gu=e=>{let{anchorEl:n,placement:r="top",arrow:o=!0,open:i,onClose:a=(()=>{}),children:u,className:c,popperRef:l}=e;const d=pu(),[f,h]=t().useState(null);return t().createElement(hu,{anchorEl:n,placement:r,className:s()(d.popper,c),modifiers:{preventOverflow:{enabled:!0,boundariesElement:"window"},arrow:{enabled:o,element:f}},open:i,modal:!1,popperRef:l},t().createElement(ki(),null,t().createElement(iu(),{onClickAway:e=>{var t;t=e.target,Array.from(document.querySelectorAll("[data-modal]")).some((e=>e.contains(t)))||a()}},t().createElement(Pn(),{className:d.popoverRoot},o?t().createElement("span",{className:d.arrow,ref:h}):null,t().createElement(ki(),null,u)))))},mu=(0,r.makeStyles)((e=>({root:{},header:{display:"flex",alignItems:"center",height:"48px",paddingLeft:"16px",paddingRight:"8px"},headerInfo:{marginRight:"auto",display:"flex",alignItems:"center"},title:{marginRight:"15px",color:e.palette.text.primary,fontSize:"16px"},counter:{paddingLeft:"15px",borderLeft:"1px solid rgba(0,0,0,0.12)",color:e.palette.text.secondary,fontSize:"14px",lineHeight:"24px"},resolveButton:{zIndex:3e3,"&:hover":{backgroundColor:"transparent"}},popper:{width:"424px",borderRadius:"0 0 4px 4px"},collaborationItem:{padding:"0 0 10px 0"},comment:e=>{let{hasScroll:t}=e;return{marginLeft:"16px",marginRight:t?"2px":"8px"}},replies:e=>{let{hasScroll:t}=e;return{marginLeft:"8px",marginRight:t?"2px":"8px"}},sendMessageArea:e=>{let{hasScroll:t,scrollWidth:n}=e;return{marginLeft:"8px",marginRight:t?n+2:"8px"}},messages:{maxHeight:"400px",overflowY:"auto"}}))),vu=n=>{let{uri:r,relatedObjectUris:o,objectType:i,anchorEl:a,onClose:s,open:u,comment:c}=n;const[d,f]=(0,e.useState)(0),h=mu({scrollWidth:d,hasScroll:0!==d}),p=(0,e.useRef)(null),{resolveThread:g,loading:m,sending:v}=(0,e.useContext)(mi),y=1+(null==c?void 0:c.replies.length);return t().createElement(gu,{popperRef:p,anchorEl:a,open:u,placement:"right-start",onClose:s,className:h.popper},t().createElement(ki(),{className:h.header},t().createElement(ki(),{className:h.headerInfo},t().createElement(D(),{className:h.title},l().text("Comments")),c&&!m&&t().createElement(D(),{className:h.counter},l().number(y)," ",1===y?l().text("item"):l().text("items"))),c&&!m&&t().createElement($i,{className:h.resolveButton,size:"S",onClick:()=>{g({commentId:c.commentId,uri:r})},disabled:v,showForDisabled:!0,tooltipTitle:l().text("Resolve"),icon:Oi.Z,color:"primary"})),!m&&t().createElement(ru,{popperRef:p,messagesRef:e=>{e&&f(e.offsetWidth-e.clientWidth)},classes:{root:h.collaborationItem,replies:h.replies,sendMessageArea:h.sendMessageArea,messages:h.messages,comment:h.comment},uri:r,relatedObjectUris:o,objectType:i,comment:c}))},yu=n=>{let{className:r,uri:o,objectType:i,relatedObjectUris:a,onChangePopupVisibility:u,allowOnlyOneComment:c=!1,showAlways:l=!1}=n;const d=hi(),[f,h]=(0,e.useState)(null),[p,g]=(0,e.useState)(!1),m=p&&Boolean(f),{currentComment:v,commentsMap:y,getComment:b,clearCurrentComment:w,objectTypes:E}=(0,e.useContext)(mi),x=!!y&&(!E||E.includes(i)),_=((null==y?void 0:y[o])||[]).filter((e=>{let{status:t}=e;return"resolved"!==t})).reverse(),C=!c||c&&0===_.length,S=null===v&&m;pi((()=>{u&&u(m)}),[m]);const A=(0,e.useContext)(vi),k=(0,e.useMemo)((()=>A?[...a,...A]:a),[A,a]);return x&&t().createElement("div",{className:s()(d.root,r)},C&&t().createElement(Si,{className:s()(d.addButton,{[d.showAlways]:l||S}),onClick:e=>{h(e.currentTarget),g(!0)}}),_.map((e=>{let{replies:n,commentId:r}=e;return t().createElement(xi,{ref:r===(null==v?void 0:v.commentId)?h:null,key:r,onClick:()=>(e=>{b(e),g(!0)})(r)},1+n)})),t().createElement(vu,{anchorEl:f,open:m,onClose:()=>{h(null),w(),g(!1)},uri:o,relatedObjectUris:k,objectType:i,comment:v}))},bu=(0,r.makeStyles)({comments:{display:"flex",justifyContent:"flex-end",marginTop:"10px"}}),wu=(0,e.memo)((e=>{let{className:r}=e;const o=bu(),i=(0,n.useSelector)(v().selectors.getEntity),a=(0,n.useSelector)(v().selectors.getRangeColors);return t().createElement(fi,{className:s()(r,"commentsContainerVisibilityArea"),entity:i,rangeColorsConfig:a},t().createElement(ki(),{className:o.comments},t().createElement(yu,{uri:i.uri,relatedObjectUris:(0,Go.createRelatedObjectUris)(Go.CollaborationObjectTypes.ENTITY,{entityUri:i.uri}),objectType:Go.CollaborationObjectTypes.ENTITY})))}));wu.displayName="GraphProfileBand";const Eu=wu,xu=(0,r.makeStyles)((e=>({contentWrapper:{display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)",marginLeft:"3px",transition:e.transitions.create(["width"],{duration:e.transitions.duration.enteringScreen})}}))),_u=e=>{let{width:n,open:r,children:o}=e;const i=xu();return t().createElement("div",{className:i.contentWrapper,style:{width:`${r?n:0}px`}},r&&t().createElement(t().Fragment,null,o))},Cu=(0,r.makeStyles)((e=>({container:{display:"flex",flexDirection:"column",flexShrink:0,width:"64px",paddingTop:"8px",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)"},active:{backgroundColor:(0,r.fade)(e.palette.primary.main,.12),"&:after":{content:'""',position:"absolute",height:"42px",width:"3px",backgroundColor:e.palette.primary.main,left:"-8px",borderRadius:"0 6px 6px 0"}},buttonWrapper:{position:"relative",width:"48px",height:"44px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"6px",margin:"2px 8px",color:e.palette.text.secondary,"&$active":{color:e.palette.primary.main}}})));function Su(){return Su=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Su.apply(this,arguments)}const Au=e=>{let{buttonsProps:n,activeIndexId:r,className:o,onButtonClick:i}=e;const a=Cu();return t().createElement("div",{className:s()(a.container,o)},n.map((e=>{let{id:n}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["id"]);return t().createElement($i,Su({},o,{size:"S",key:n,className:s()({[a.active]:r===n},a.buttonWrapper),onClick:()=>i(n),"data-reltio-id":`reltio-profile-right-side-button-${n}`}))})))};var ku=f(2726);const Ou=(0,r.makeStyles)({wrapper:{display:"flex",overflow:"hidden",marginLeft:"auto",flexShrink:0}});function Du(){return Du=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Du.apply(this,arguments)}const Lu=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return t().createElement("svg",Du({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7v2h2V7H6zm0 4v2h2v-2H6zm0 4v2h2v-2H6zm4-8v2h8V7h-8zm10-2v5.02a6.52 6.52 0 012 2.01V3H2v18h11.028a6.52 6.52 0 01-2.009-2H4V5h16zm-9.503 8a6.497 6.497 0 011.31-2H10v2h.497zM10 15.5c0-.168.006-.335.019-.5H10v.5zm0 0c0 .516.06 1.018.173 1.5H10v-1.5zm10.3 2.39L23.42 21 22 22.42l-3.12-3.12c-.69.44-1.51.7-2.39.7-2.48 0-4.49-2.01-4.49-4.5s2.01-4.5 4.5-4.5 4.5 2.01 4.5 4.5c0 .88-.26 1.69-.7 2.39zm-3.8.11a2.5 2.5 0 000-5 2.5 2.5 0 000 5z",fill:"currentColor"}))};function Tu(){return Tu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tu.apply(this,arguments)}const Mu=(n,r,o)=>{if(n&&r){const i=(0,e.memo)(o);return e=>t().createElement(n.Consumer,null,(n=>t().createElement(i,Tu({},e,r(n,e)))))}return o},Pu=Mu(Vo,(0,u.pick)(["selectedEntity"]),(e=>{let{selectedEntity:n}=e;return t().createElement(fi,{entity:n})}));let Fu;!function(e){e[e.Relationship=0]="Relationship",e[e.EntityDetails=1]="EntityDetails"}(Fu||(Fu={}));const Nu=(0,e.memo)((()=>{var n;const r=Ou(),[o,i]=(0,e.useState)(null),a=(0,e.useCallback)((e=>{i((t=>t===e?null:e))}),[]),s=null!==o,c=(0,e.useMemo)((()=>[{buttonProps:{id:Fu.Relationship,icon:Lu,tooltipTitle:l().text("Relationship")},content:"Relationship"},{buttonProps:{id:Fu.EntityDetails,icon:ku.Z,tooltipTitle:l().text("Entity Details")},content:"Entity Details"}]),[]);return t().createElement("div",{className:r.wrapper},t().createElement(_u,{open:s,width:480},t().createElement(Pu,null),null===(n=c[o])||void 0===n?void 0:n.content),t().createElement(Au,{buttonsProps:(0,u.pluck)("buttonProps",c),onButtonClick:a,activeIndexId:o}))}));Nu.displayName="GraphRightSidePanel";const ju=Nu;var Ru=f(4986);const Iu=e=>{let{children:n}=e;return t().createElement("div",{style:{height:"calc(100% - 5px)"}},t().createElement(Ru.SigmaContainer,{style:{background:"transparent"}},n))};var Bu=f(8996),Gu=f.n(Bu),zu=f(8833),Uu=f.n(zu),Wu=f(3660),Hu=f.n(Wu);function qu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Vu(e,t,n[t])}))}return e}function Vu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yu=t=>{let{data:n,selectedNode:r,onNodeClick:o}=t;const i=(0,Ru.useSigma)(),a=(0,Ru.useRegisterEvents)(),s=(0,Ru.useLoadGraph)(),u=(0,Ru.useSetSettings)(),[c,l]=(0,e.useState)({hoverNode:void 0,hoverNeighbours:void 0});return(0,e.useEffect)((()=>{const e=new(Gu());n.nodes.forEach((t=>{e.addNode(t.id,{label:t.name,size:21,color:"#0072CE"})})),n.edges.forEach((t=>{e.addEdge(t.from,t.to,{size:5})})),Uu().assign(e);const t=Hu().inferSettings(e);Hu().assign(e,{settings:t,iterations:600}),s(e)}),[s,n]),(0,e.useEffect)((()=>{a({enterNode:e=>{let{node:t}=e;l({hoverNode:t,hoverNeighbours:n.edges.filter((e=>e.from===t||e.to===t)).map((e=>{var r,o;const i=e.from===t?e.to:e.from;return null!==(r=null===(o=n.nodes.find((e=>e.id===i)))||void 0===o?void 0:o.id)&&void 0!==r?r:""}))})},leaveNode:()=>{l({hoverNode:void 0,hoverNeighbours:void 0})},clickNode:e=>{let{node:t}=e;o(t)}})}),[i,a,n,o]),(0,e.useEffect)((()=>{u({nodeReducer:(e,t)=>{const n=qu({},t);return c.hoverNeighbours&&!c.hoverNeighbours.includes(e)&&c.hoverNode!==e&&(n.label="",n.color="#f6f6f6"),e===r&&(n.color="red"),n},edgeReducer:(e,t)=>{const n=i.getGraph(),r=qu({},t,{hidden:!1});return c.hoverNode&&!n.hasExtremity(e,c.hoverNode)&&(r.hidden=!0),r}})}),[i,u,c,r]),null},Ku=Mu(Vo,(e=>{let{data:t,selectedEntity:n,onEntitySelect:r}=e;return{data:t,selectedNode:null==n?void 0:n.uri,onNodeSelect:r}}),(n=>{let{data:r,selectedNode:o,onNodeSelect:i}=n;const a=(0,e.useMemo)((()=>r&&(e=>{const t=new Set,n=new Set;e.entities.forEach((e=>t.add(e.uri))),e.relations.filter((e=>t.has(e.startObject.objectURI)&&t.has(e.endObject.objectURI))).forEach((e=>{n.has(`${e.endObject.objectURI}--${e.startObject.objectURI}`)||n.add(`${e.startObject.objectURI}--${e.endObject.objectURI}--${e.direction}`)}));const r=e.entities.map((e=>({id:e.uri,name:e.label}))),o=[];return n.forEach((e=>{const t=e.split("--");o.push({from:t[0],to:t[1]})})),{nodes:r,edges:o}})(r)),[r]);return a&&t().createElement(Iu,null,t().createElement(Yu,{data:a,selectedNode:o,onNodeClick:i}))})),$u=(0,e.memo)((()=>{const r=(0,n.useDispatch)();(0,e.useEffect)((()=>{r(m.profile.entity.actions.entityLoaded({uri:"entities/1IPdCSY1",type:"configuration/entityTypes/HCP"}))}),[r]);const o=Bo(),i=(0,n.useSelector)(v().selectors.getEntity),a=(t=>{const{graphLoading:r,data:o}=(t=>{const r=(0,n.useDispatch)(),[o,i]=(0,e.useState)(null),[a,s]=(0,e.useState)(!1),u=null==t?void 0:t.uri,c=(0,Go.isDataTenantEntity)(t);return(0,e.useEffect)((()=>(!u||(0,Go.isTempUri)(u)||c||(s(!0),(0,Go.getHops)({uri:u,deep:2,limitCreditsConsumption:!0,graphTypes:null,activenessDate:null}).then(i).catch((e=>{i(null),r(m.ui.actions.errorSet((0,Go.getRequestErrorMessage)(e,l().text("Something went wrong"))))})).finally((()=>{s(!1)}))),()=>{i(null),s(!1)})),[u,c,r]),{graphLoading:a,data:o}})(t),{selectedEntity:i,onEntitySelect:a,selectedEntityLoading:s}=((t,r)=>{const o=Wo(),i=(0,n.useDispatch)(),[a,s]=(0,e.useState)(null),c=(0,e.useRef)({}),[d,f]=(0,e.useState)(!1),h=(0,e.useCallback)((e=>{var t;if(c.current[e])return void s(c.current[e]);const n=null==r||null===(t=r.entities)||void 0===t?void 0:t.find((0,u.propEq)("uri",e));n&&s(n),f(!0),o((0,Go.getEntity)(e)).then((e=>{c.current=qo(c.current,e),s(e)})).catch((e=>{i(m.ui.actions.errorSet((0,Go.getRequestErrorMessage)(e,l().text("Something went wrong"))))})).finally((()=>{f(!1)}))}),[i,r,o]);return(0,e.useEffect)((()=>{null!=t&&t.uri&&(c.current=qo({},t),h(t.uri))}),[null==t?void 0:t.uri]),{selectedEntityLoading:d,selectedEntity:a,onEntitySelect:h}})(t,o);return{graphLoading:r,data:o,selectedEntity:i,onEntitySelect:a,selectedEntityLoading:s}})(i),{graphLoading:s}=a;return t().createElement(Vo.Provider,{value:a},t().createElement("div",{className:o.perspectiveView},s&&t().createElement(Io,null),(null==i?void 0:i.uri)&&t().createElement("div",{className:o.graphContainer},t().createElement("div",{className:o.graphWrapper},t().createElement(Eu,null),t().createElement(Ku,null)),t().createElement(ju,null))))}));$u.displayName="GraphPerspectiveView";const Zu=$u,Xu=(0,r.createGenerateClassName)({productionPrefix:"graph",disableGlobal:!0}),Qu=e=>{let{store:o}=e;return t().createElement(n.Provider,{store:o},t().createElement(r.StylesProvider,{generateClassName:Xu},t().createElement(Nn,{utils:Fo},t().createElement(Zu,null),t().createElement(E,{showErrorFromStore:!0}))))}})(),h})()}));
2
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("classnames"),require("mdm-module"),require("mdm-sdk"),require("moment"),require("prop-types"),require("ramda"),require("react"),require("react-dom"),require("react-redux"),require("ui-i18n"));else if("function"==typeof define&&define.amd)define(["classnames","mdm-module","mdm-sdk","moment","prop-types","ramda","react","react-dom","react-redux","ui-i18n"],t);else{var n="object"==typeof exports?t(require("classnames"),require("mdm-module"),require("mdm-sdk"),require("moment"),require("prop-types"),require("ramda"),require("react"),require("react-dom"),require("react-redux"),require("ui-i18n")):t(e.classnames,e["mdm-module"],e["mdm-sdk"],e.moment,e["prop-types"],e.ramda,e.react,e["react-dom"],e["react-redux"],e["ui-i18n"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(e,t,n,r,o,i,a,s,u,c){return(()=>{var l={1232:e=>{e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},1260:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},8527:e=>{function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t},4859:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}}},1557:e=>{e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},1359:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},5182:(e,t,n)=>{var r=n(1232),o=n(1557),i=n(1359);e.exports=function(e){return r(e)||o(e)||i()}},7685:(e,t,n)=>{"use strict";var r=n(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.default=i},7291:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}),"Done");t.Z=i},2726:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.Z=i},3054:(e,t,n)=>{"use strict";var r=n(4859);t.Z=void 0;var o=r(n(8156)),i=(0,r(n(175)).default)(o.default.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.Z=i},175:(e,t,n)=>{"use strict";var r=n(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=i.default.memo(i.default.forwardRef((function(t,n){return i.default.createElement(a.default,(0,o.default)({ref:n},t),e)})));return n.muiName=a.default.muiName,n};var o=r(n(8527)),i=r(n(8156)),a=r(n(2298))},8884:e=>{e.exports=function(e,t){var n=t.length;if(0!==n){var r=e.length;e.length+=n;for(var o=0;o<n;o++)e[r+o]=t[o]}}},8994:e=>{e.exports=function(){for(var e=arguments.length,t=[],n=0;n<e;n++)t[n]=arguments[n];if(0!==(t=t.filter((function(e){return null!=e}))).length)return 1===t.length?t[0]:t.reduce((function(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}))}},2196:(e,t,n)=>{"use strict";var r=n(4859);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=r(n(7218));e.exports=t.default},7218:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},4812:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"==typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},4596:(e,t,n)=>{"use strict";var r=n(4859);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var o,i,a,s,u,c,l,d,f,h,p,g=r(n(6892)),m="transform";if(t.transform=m,t.animationEnd=a,t.transitionEnd=i,t.transitionDelay=l,t.transitionTiming=c,t.transitionDuration=u,t.transitionProperty=s,t.animationDelay=p,t.animationTiming=h,t.animationDuration=f,t.animationName=d,g.default){var v=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},o=Object.keys(r),i="",a=0;a<o.length;a++){var s=o[a];if(s+"TransitionProperty"in n){i="-"+s.toLowerCase(),e=r[s]("TransitionEnd"),t=r[s]("AnimationEnd");break}}return!e&&"transitionProperty"in n&&(e="transitionend"),!t&&"animationName"in n&&(t="animationend"),n=null,{animationEnd:t,transitionEnd:e,prefix:i}}();o=v.prefix,t.transitionEnd=i=v.transitionEnd,t.animationEnd=a=v.animationEnd,t.transform=m=o+"-"+m,t.transitionProperty=s=o+"-transition-property",t.transitionDuration=u=o+"-transition-duration",t.transitionDelay=l=o+"-transition-delay",t.transitionTiming=c=o+"-transition-timing-function",t.animationName=d=o+"-animation-name",t.animationDuration=f=o+"-animation-duration",t.animationTiming=h=o+"-animation-delay",t.animationDelay=p=o+"-animation-timing-function"}var y={transform:m,end:i,property:s,timing:c,delay:l,duration:u};t.default=y},6892:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default},6463:(e,t,n)=>{"use strict";var r=n(4859);t.__esModule=!0,t.default=void 0;var o,i=r(n(6892)),a="clearTimeout",s=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-c)),r=setTimeout(e,n);return c=t,r},u=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};i.default&&["","webkit","moz","o","ms"].some((function(e){var t=u(e,"request");if(t in window)return a=u(e,"cancel"),s=function(e){return window[t](e)}}));var c=(new Date).getTime();(o=function(e){return s(e)}).cancel=function(e){window[a]&&"function"==typeof window[a]&&window[a](e)};var l=o;t.default=l,e.exports=t.default},2699:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}g(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var o,i,a,c;if(s(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=u(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function f(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):p(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=p(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return f(this,e,!0)},i.prototype.rawListeners=function(e){return f(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},9869:e=>{e.exports={linLogMode:!1,outboundAttractionDistribution:!1,adjustSizes:!1,edgeWeightInfluence:1,scalingRatio:1,strongGravityMode:!1,gravity:1,slowDown:1,barnesHutOptimize:!1,barnesHutTheta:.5}},6061:(e,t)=>{t.assign=function(e){e=e||{};var t,n,r,o=Array.prototype.slice.call(arguments).slice(1);for(t=0,r=o.length;t<r;t++)if(o[t])for(n in o[t])e[n]=o[t][n];return e},t.validateSettings=function(e){return"linLogMode"in e&&"boolean"!=typeof e.linLogMode?{message:"the `linLogMode` setting should be a boolean."}:"outboundAttractionDistribution"in e&&"boolean"!=typeof e.outboundAttractionDistribution?{message:"the `outboundAttractionDistribution` setting should be a boolean."}:"adjustSizes"in e&&"boolean"!=typeof e.adjustSizes?{message:"the `adjustSizes` setting should be a boolean."}:"edgeWeightInfluence"in e&&"number"!=typeof e.edgeWeightInfluence?{message:"the `edgeWeightInfluence` setting should be a number."}:!("scalingRatio"in e)||"number"==typeof e.scalingRatio&&e.scalingRatio>=0?"strongGravityMode"in e&&"boolean"!=typeof e.strongGravityMode?{message:"the `strongGravityMode` setting should be a boolean."}:!("gravity"in e)||"number"==typeof e.gravity&&e.gravity>=0?"slowDown"in e&&!("number"==typeof e.slowDown||e.slowDown>=0)?{message:"the `slowDown` setting should be a number >= 0."}:"barnesHutOptimize"in e&&"boolean"!=typeof e.barnesHutOptimize?{message:"the `barnesHutOptimize` setting should be a boolean."}:!("barnesHutTheta"in e)||"number"==typeof e.barnesHutTheta&&e.barnesHutTheta>=0?null:{message:"the `barnesHutTheta` setting should be a number >= 0."}:{message:"the `gravity` setting should be a number >= 0."}:{message:"the `scalingRatio` setting should be a number >= 0."}},t.graphToByteArrays=function(e,t){var n,r=e.order,o=e.size,i={},a=new Float32Array(10*r),s=new Float32Array(3*o);return n=0,e.forEachNode((function(t,r){i[t]=n,a[n]=r.x,a[n+1]=r.y,a[n+2]=0,a[n+3]=0,a[n+4]=0,a[n+5]=0,a[n+6]=1+e.degree(t),a[n+7]=1,a[n+8]=r.size||1,a[n+9]=r.fixed?1:0,n+=10})),n=0,e.forEachEdge((function(e,r,o,a){s[n]=i[o],s[n+1]=i[a],s[n+2]=function(e){if(!t)return 1;var n=e[t];return("number"!=typeof n||isNaN(n))&&(n=1),n}(r),n+=3})),{nodes:a,edges:s}},t.assignLayoutChanges=function(e,t,n){var r=0;e.updateEachNodeAttributes((function(e,o){return o.x=t[r],o.y=t[r+1],r+=10,n?n(e,o):o}))},t.readGraphPositions=function(e,t){var n=0;e.forEachNode((function(e,r){t[n]=r.x,t[n+1]=r.y,n+=10}))},t.collectLayoutChanges=function(e,t,n){for(var r=e.nodes(),o={},i=0,a=0,s=t.length;i<s;i+=10){if(n){var u=Object.assign({},e.getNodeAttributes(r[a]));u.x=t[i],u.y=t[i+1],u=n(r[a],u),o[r[a]]={x:u.x,y:u.y}}else o[r[a]]={x:t[i],y:t[i+1]};a++}return o},t.createWorker=function(e){var t=window.URL||window.webkitURL,n=e.toString(),r=t.createObjectURL(new Blob(["("+n+").call(this);"],{type:"text/javascript"})),o=new Worker(r);return t.revokeObjectURL(r),o}},3660:(e,t,n)=>{var r=n(1880),o=n(8725),i=n(6061),a=n(9869);function s(e,t,n){if(!r(t))throw new Error("graphology-layout-forceatlas2: the given graph is not a valid graphology instance.");"number"==typeof n&&(n={iterations:n});var s=n.iterations;if("number"!=typeof s)throw new Error("graphology-layout-forceatlas2: invalid number of iterations.");if(s<=0)throw new Error("graphology-layout-forceatlas2: you should provide a positive number of iterations.");var u=n.attributes||{},c=n.weighted?u.weight||"weight":null,l="function"==typeof n.outputReducer?n.outputReducer:null,d=i.assign({},a,n.settings),f=i.validateSettings(d);if(f)throw new Error("graphology-layout-forceatlas2: "+f.message);var h,p=i.graphToByteArrays(t,c);for(h=0;h<s;h++)o(d,p.nodes,p.edges);if(!e)return i.collectLayoutChanges(t,p.nodes);i.assignLayoutChanges(t,p.nodes,l)}var u=s.bind(null,!1);u.assign=s.bind(null,!0),u.inferSettings=function(e){var t="number"==typeof e?e:e.order;return{barnesHutOptimize:t>2e3,strongGravityMode:!0,gravity:.05,scalingRatio:10,slowDown:1+Math.log(t)}},e.exports=u},8725:e=>{var t=10;e.exports=function(e,n,r){var o,i,a,s,u,c,l,d,f,h,p,g,m,v,y,b,w,E,x,_,C,S,A,k=n.length,O=r.length,D=e.adjustSizes,L=e.barnesHutTheta*e.barnesHutTheta,T=[];for(a=0;a<k;a+=t)n[a+4]=n[a+2],n[a+5]=n[a+3],n[a+2]=0,n[a+3]=0;if(e.outboundAttractionDistribution){for(p=0,a=0;a<k;a+=t)p+=n[a+6];p/=k/t}if(e.barnesHutOptimize){var M,P,F,N=1/0,j=-1/0,R=1/0,I=-1/0;for(a=0;a<k;a+=t)N=Math.min(N,n[a+0]),j=Math.max(j,n[a+0]),R=Math.min(R,n[a+1]),I=Math.max(I,n[a+1]);var B=j-N,G=I-R;for(B>G?I=(R-=(B-G)/2)+B:j=(N-=(G-B)/2)+G,T[0]=-1,T[1]=(N+j)/2,T[2]=(R+I)/2,T[3]=Math.max(j-N,I-R),T[4]=-1,T[5]=-1,T[6]=0,T[7]=0,T[8]=0,o=1,a=0;a<k;a+=t)for(i=0,F=3;;){if(!(T[i+5]>=0)){if(T[i+0]<0){T[i+0]=a;break}if(T[i+5]=9*o,d=T[i+3]/2,T[(f=T[i+5])+0]=-1,T[f+1]=T[i+1]-d,T[f+2]=T[i+2]-d,T[f+3]=d,T[f+4]=f+9,T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,T[(f+=9)+0]=-1,T[f+1]=T[i+1]-d,T[f+2]=T[i+2]+d,T[f+3]=d,T[f+4]=f+9,T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,T[(f+=9)+0]=-1,T[f+1]=T[i+1]+d,T[f+2]=T[i+2]-d,T[f+3]=d,T[f+4]=f+9,T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,T[(f+=9)+0]=-1,T[f+1]=T[i+1]+d,T[f+2]=T[i+2]+d,T[f+3]=d,T[f+4]=T[i+4],T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,o+=4,M=n[T[i+0]+0]<T[i+1]?n[T[i+0]+1]<T[i+2]?T[i+5]:T[i+5]+9:n[T[i+0]+1]<T[i+2]?T[i+5]+18:T[i+5]+27,T[i+6]=n[T[i+0]+6],T[i+7]=n[T[i+0]+0],T[i+8]=n[T[i+0]+1],T[M+0]=T[i+0],T[i+0]=-1,M===(P=n[a+0]<T[i+1]?n[a+1]<T[i+2]?T[i+5]:T[i+5]+9:n[a+1]<T[i+2]?T[i+5]+18:T[i+5]+27)){if(F--){i=M;continue}F=3;break}T[P+0]=a;break}M=n[a+0]<T[i+1]?n[a+1]<T[i+2]?T[i+5]:T[i+5]+9:n[a+1]<T[i+2]?T[i+5]+18:T[i+5]+27,T[i+7]=(T[i+7]*T[i+6]+n[a+0]*n[a+6])/(T[i+6]+n[a+6]),T[i+8]=(T[i+8]*T[i+6]+n[a+1]*n[a+6])/(T[i+6]+n[a+6]),T[i+6]+=n[a+6],i=M}}if(e.barnesHutOptimize){for(g=e.scalingRatio,a=0;a<k;a+=t)for(i=0;;)if(T[i+5]>=0){if(b=Math.pow(n[a+0]-T[i+7],2)+Math.pow(n[a+1]-T[i+8],2),4*(h=T[i+3])*h/b<L){if(m=n[a+0]-T[i+7],v=n[a+1]-T[i+8],!0===D?b>0?(w=g*n[a+6]*T[i+6]/b,n[a+2]+=m*w,n[a+3]+=v*w):b<0&&(w=-g*n[a+6]*T[i+6]/Math.sqrt(b),n[a+2]+=m*w,n[a+3]+=v*w):b>0&&(w=g*n[a+6]*T[i+6]/b,n[a+2]+=m*w,n[a+3]+=v*w),(i=T[i+4])<0)break;continue}i=T[i+5]}else if((c=T[i+0])>=0&&c!==a&&(b=(m=n[a+0]-n[c+0])*m+(v=n[a+1]-n[c+1])*v,!0===D?b>0?(w=g*n[a+6]*n[c+6]/b,n[a+2]+=m*w,n[a+3]+=v*w):b<0&&(w=-g*n[a+6]*n[c+6]/Math.sqrt(b),n[a+2]+=m*w,n[a+3]+=v*w):b>0&&(w=g*n[a+6]*n[c+6]/b,n[a+2]+=m*w,n[a+3]+=v*w)),(i=T[i+4])<0)break}else for(g=e.scalingRatio,s=0;s<k;s+=t)for(u=0;u<s;u+=t)m=n[s+0]-n[u+0],v=n[s+1]-n[u+1],!0===D?(b=Math.sqrt(m*m+v*v)-n[s+8]-n[u+8])>0?(w=g*n[s+6]*n[u+6]/b/b,n[s+2]+=m*w,n[s+3]+=v*w,n[u+2]+=m*w,n[u+3]+=v*w):b<0&&(w=100*g*n[s+6]*n[u+6],n[s+2]+=m*w,n[s+3]+=v*w,n[u+2]-=m*w,n[u+3]-=v*w):(b=Math.sqrt(m*m+v*v))>0&&(w=g*n[s+6]*n[u+6]/b/b,n[s+2]+=m*w,n[s+3]+=v*w,n[u+2]-=m*w,n[u+3]-=v*w);for(f=e.gravity/e.scalingRatio,g=e.scalingRatio,a=0;a<k;a+=t)w=0,m=n[a+0],v=n[a+1],b=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)),e.strongGravityMode?b>0&&(w=g*n[a+6]*f):b>0&&(w=g*n[a+6]*f/b),n[a+2]-=m*w,n[a+3]-=v*w;for(g=1*(e.outboundAttractionDistribution?p:1),l=0;l<O;l+=3)s=r[l+0],u=r[l+1],d=r[l+2],y=Math.pow(d,e.edgeWeightInfluence),m=n[s+0]-n[u+0],v=n[s+1]-n[u+1],!0===D?(b=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)-n[s+8]-n[u+8]),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-g*y*Math.log(1+b)/b/n[s+6]):b>0&&(w=-g*y*Math.log(1+b)/b):e.outboundAttractionDistribution?b>0&&(w=-g*y/n[s+6]):b>0&&(w=-g*y)):(b=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-g*y*Math.log(1+b)/b/n[s+6]):b>0&&(w=-g*y*Math.log(1+b)/b):e.outboundAttractionDistribution?(b=1,w=-g*y/n[s+6]):(b=1,w=-g*y)),b>0&&(n[s+2]+=m*w,n[s+3]+=v*w,n[u+2]-=m*w,n[u+3]-=v*w);if(!0===D)for(a=0;a<k;a+=t)1!==n[a+9]&&((E=Math.sqrt(Math.pow(n[a+2],2)+Math.pow(n[a+3],2)))>10&&(n[a+2]=10*n[a+2]/E,n[a+3]=10*n[a+3]/E),x=n[a+6]*Math.sqrt((n[a+4]-n[a+2])*(n[a+4]-n[a+2])+(n[a+5]-n[a+3])*(n[a+5]-n[a+3])),_=Math.sqrt((n[a+4]+n[a+2])*(n[a+4]+n[a+2])+(n[a+5]+n[a+3])*(n[a+5]+n[a+3]))/2,C=.1*Math.log(1+_)/(1+Math.sqrt(x)),S=n[a+0]+n[a+2]*(C/e.slowDown),n[a+0]=S,A=n[a+1]+n[a+3]*(C/e.slowDown),n[a+1]=A);else for(a=0;a<k;a+=t)1!==n[a+9]&&(x=n[a+6]*Math.sqrt((n[a+4]-n[a+2])*(n[a+4]-n[a+2])+(n[a+5]-n[a+3])*(n[a+5]-n[a+3])),_=Math.sqrt((n[a+4]+n[a+2])*(n[a+4]+n[a+2])+(n[a+5]+n[a+3])*(n[a+5]+n[a+3]))/2,C=n[a+7]*Math.log(1+_)/(1+Math.sqrt(x)),n[a+7]=Math.min(1,Math.sqrt(C*(Math.pow(n[a+2],2)+Math.pow(n[a+3],2))/(1+Math.sqrt(x)))),S=n[a+0]+n[a+2]*(C/e.slowDown),n[a+0]=S,A=n[a+1]+n[a+3]*(C/e.slowDown),n[a+1]=A);return{}}},1026:e=>{e.exports=function(){var e,t,n,r={};n=10,r.exports=function(e,t,r){var o,i,a,s,u,c,l,d,f,h,p,g,m,v,y,b,w,E,x,_,C,S,A,k=t.length,O=r.length,D=e.adjustSizes,L=e.barnesHutTheta*e.barnesHutTheta,T=[];for(a=0;a<k;a+=n)t[a+4]=t[a+2],t[a+5]=t[a+3],t[a+2]=0,t[a+3]=0;if(e.outboundAttractionDistribution){for(p=0,a=0;a<k;a+=n)p+=t[a+6];p/=k/n}if(e.barnesHutOptimize){var M,P,F,N=1/0,j=-1/0,R=1/0,I=-1/0;for(a=0;a<k;a+=n)N=Math.min(N,t[a+0]),j=Math.max(j,t[a+0]),R=Math.min(R,t[a+1]),I=Math.max(I,t[a+1]);var B=j-N,G=I-R;for(B>G?I=(R-=(B-G)/2)+B:j=(N-=(G-B)/2)+G,T[0]=-1,T[1]=(N+j)/2,T[2]=(R+I)/2,T[3]=Math.max(j-N,I-R),T[4]=-1,T[5]=-1,T[6]=0,T[7]=0,T[8]=0,o=1,a=0;a<k;a+=n)for(i=0,F=3;;){if(!(T[i+5]>=0)){if(T[i+0]<0){T[i+0]=a;break}if(T[i+5]=9*o,d=T[i+3]/2,T[(f=T[i+5])+0]=-1,T[f+1]=T[i+1]-d,T[f+2]=T[i+2]-d,T[f+3]=d,T[f+4]=f+9,T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,T[(f+=9)+0]=-1,T[f+1]=T[i+1]-d,T[f+2]=T[i+2]+d,T[f+3]=d,T[f+4]=f+9,T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,T[(f+=9)+0]=-1,T[f+1]=T[i+1]+d,T[f+2]=T[i+2]-d,T[f+3]=d,T[f+4]=f+9,T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,T[(f+=9)+0]=-1,T[f+1]=T[i+1]+d,T[f+2]=T[i+2]+d,T[f+3]=d,T[f+4]=T[i+4],T[f+5]=-1,T[f+6]=0,T[f+7]=0,T[f+8]=0,o+=4,M=t[T[i+0]+0]<T[i+1]?t[T[i+0]+1]<T[i+2]?T[i+5]:T[i+5]+9:t[T[i+0]+1]<T[i+2]?T[i+5]+18:T[i+5]+27,T[i+6]=t[T[i+0]+6],T[i+7]=t[T[i+0]+0],T[i+8]=t[T[i+0]+1],T[M+0]=T[i+0],T[i+0]=-1,M===(P=t[a+0]<T[i+1]?t[a+1]<T[i+2]?T[i+5]:T[i+5]+9:t[a+1]<T[i+2]?T[i+5]+18:T[i+5]+27)){if(F--){i=M;continue}F=3;break}T[P+0]=a;break}M=t[a+0]<T[i+1]?t[a+1]<T[i+2]?T[i+5]:T[i+5]+9:t[a+1]<T[i+2]?T[i+5]+18:T[i+5]+27,T[i+7]=(T[i+7]*T[i+6]+t[a+0]*t[a+6])/(T[i+6]+t[a+6]),T[i+8]=(T[i+8]*T[i+6]+t[a+1]*t[a+6])/(T[i+6]+t[a+6]),T[i+6]+=t[a+6],i=M}}if(e.barnesHutOptimize){for(g=e.scalingRatio,a=0;a<k;a+=n)for(i=0;;)if(T[i+5]>=0){if(b=Math.pow(t[a+0]-T[i+7],2)+Math.pow(t[a+1]-T[i+8],2),4*(h=T[i+3])*h/b<L){if(m=t[a+0]-T[i+7],v=t[a+1]-T[i+8],!0===D?b>0?(w=g*t[a+6]*T[i+6]/b,t[a+2]+=m*w,t[a+3]+=v*w):b<0&&(w=-g*t[a+6]*T[i+6]/Math.sqrt(b),t[a+2]+=m*w,t[a+3]+=v*w):b>0&&(w=g*t[a+6]*T[i+6]/b,t[a+2]+=m*w,t[a+3]+=v*w),(i=T[i+4])<0)break;continue}i=T[i+5]}else if((c=T[i+0])>=0&&c!==a&&(b=(m=t[a+0]-t[c+0])*m+(v=t[a+1]-t[c+1])*v,!0===D?b>0?(w=g*t[a+6]*t[c+6]/b,t[a+2]+=m*w,t[a+3]+=v*w):b<0&&(w=-g*t[a+6]*t[c+6]/Math.sqrt(b),t[a+2]+=m*w,t[a+3]+=v*w):b>0&&(w=g*t[a+6]*t[c+6]/b,t[a+2]+=m*w,t[a+3]+=v*w)),(i=T[i+4])<0)break}else for(g=e.scalingRatio,s=0;s<k;s+=n)for(u=0;u<s;u+=n)m=t[s+0]-t[u+0],v=t[s+1]-t[u+1],!0===D?(b=Math.sqrt(m*m+v*v)-t[s+8]-t[u+8])>0?(w=g*t[s+6]*t[u+6]/b/b,t[s+2]+=m*w,t[s+3]+=v*w,t[u+2]+=m*w,t[u+3]+=v*w):b<0&&(w=100*g*t[s+6]*t[u+6],t[s+2]+=m*w,t[s+3]+=v*w,t[u+2]-=m*w,t[u+3]-=v*w):(b=Math.sqrt(m*m+v*v))>0&&(w=g*t[s+6]*t[u+6]/b/b,t[s+2]+=m*w,t[s+3]+=v*w,t[u+2]-=m*w,t[u+3]-=v*w);for(f=e.gravity/e.scalingRatio,g=e.scalingRatio,a=0;a<k;a+=n)w=0,m=t[a+0],v=t[a+1],b=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)),e.strongGravityMode?b>0&&(w=g*t[a+6]*f):b>0&&(w=g*t[a+6]*f/b),t[a+2]-=m*w,t[a+3]-=v*w;for(g=1*(e.outboundAttractionDistribution?p:1),l=0;l<O;l+=3)s=r[l+0],u=r[l+1],d=r[l+2],y=Math.pow(d,e.edgeWeightInfluence),m=t[s+0]-t[u+0],v=t[s+1]-t[u+1],!0===D?(b=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)-t[s+8]-t[u+8]),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-g*y*Math.log(1+b)/b/t[s+6]):b>0&&(w=-g*y*Math.log(1+b)/b):e.outboundAttractionDistribution?b>0&&(w=-g*y/t[s+6]):b>0&&(w=-g*y)):(b=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-g*y*Math.log(1+b)/b/t[s+6]):b>0&&(w=-g*y*Math.log(1+b)/b):e.outboundAttractionDistribution?(b=1,w=-g*y/t[s+6]):(b=1,w=-g*y)),b>0&&(t[s+2]+=m*w,t[s+3]+=v*w,t[u+2]-=m*w,t[u+3]-=v*w);if(!0===D)for(a=0;a<k;a+=n)1!==t[a+9]&&((E=Math.sqrt(Math.pow(t[a+2],2)+Math.pow(t[a+3],2)))>10&&(t[a+2]=10*t[a+2]/E,t[a+3]=10*t[a+3]/E),x=t[a+6]*Math.sqrt((t[a+4]-t[a+2])*(t[a+4]-t[a+2])+(t[a+5]-t[a+3])*(t[a+5]-t[a+3])),_=Math.sqrt((t[a+4]+t[a+2])*(t[a+4]+t[a+2])+(t[a+5]+t[a+3])*(t[a+5]+t[a+3]))/2,C=.1*Math.log(1+_)/(1+Math.sqrt(x)),S=t[a+0]+t[a+2]*(C/e.slowDown),t[a+0]=S,A=t[a+1]+t[a+3]*(C/e.slowDown),t[a+1]=A);else for(a=0;a<k;a+=n)1!==t[a+9]&&(x=t[a+6]*Math.sqrt((t[a+4]-t[a+2])*(t[a+4]-t[a+2])+(t[a+5]-t[a+3])*(t[a+5]-t[a+3])),_=Math.sqrt((t[a+4]+t[a+2])*(t[a+4]+t[a+2])+(t[a+5]+t[a+3])*(t[a+5]+t[a+3]))/2,C=t[a+7]*Math.log(1+_)/(1+Math.sqrt(x)),t[a+7]=Math.min(1,Math.sqrt(C*(Math.pow(t[a+2],2)+Math.pow(t[a+3],2))/(1+Math.sqrt(x)))),S=t[a+0]+t[a+2]*(C/e.slowDown),t[a+0]=S,A=t[a+1]+t[a+3]*(C/e.slowDown),t[a+1]=A);return{}};var o=r.exports;self.addEventListener("message",(function(n){var r=n.data;e=new Float32Array(r.nodes),r.edges&&(t=new Float32Array(r.edges)),o(r.settings,e,t),self.postMessage({nodes:e.buffer},[e.buffer])}))}},8301:(e,t,n)=>{var r=n(1026),o=n(1880),i=n(6061),a=n(9869);function s(e,t){if(t=t||{},!o(e))throw new Error("graphology-layout-forceatlas2/worker: the given graph is not a valid graphology instance.");var n=t.attributes||{},r=t.weighted?n.weight||"weight":null,s=i.assign({},a,t.settings),u=i.validateSettings(s);if(u)throw new Error("graphology-layout-forceatlas2/worker: "+u.message);this.worker=null,this.graph=e,this.settings=s,this.weightAttribute=r,this.matrices=null,this.running=!1,this.killed=!1,this.outputReducer="function"==typeof t.outputReducer?t.outputReducer:null,this.handleMessage=this.handleMessage.bind(this);var c=void 0,l=this;this.handleGraphUpdate=function(){l.worker&&l.worker.terminate(),c&&clearTimeout(c),c=setTimeout((function(){c=void 0,l.spawnWorker()}),0)},e.on("nodeAdded",this.handleGraphUpdate),e.on("edgeAdded",this.handleGraphUpdate),e.on("nodeDropped",this.handleGraphUpdate),e.on("edgeDropped",this.handleGraphUpdate),this.spawnWorker()}s.prototype.isRunning=function(){return this.running},s.prototype.spawnWorker=function(){this.worker&&this.worker.terminate(),this.worker=i.createWorker(r),this.worker.addEventListener("message",this.handleMessage),this.running&&(this.running=!1,this.start())},s.prototype.handleMessage=function(e){if(this.running){var t=new Float32Array(e.data.nodes);i.assignLayoutChanges(this.graph,t,this.outputReducer),this.outputReducer&&i.readGraphPositions(this.graph,t),this.matrices.nodes=t,this.askForIterations()}},s.prototype.askForIterations=function(e){var t=this.matrices,n={settings:this.settings,nodes:t.nodes.buffer},r=[t.nodes.buffer];return e&&(n.edges=t.edges.buffer,r.push(t.edges.buffer)),this.worker.postMessage(n,r),this},s.prototype.start=function(){if(this.killed)throw new Error("graphology-layout-forceatlas2/worker.start: layout was killed.");return this.running||(this.matrices=i.graphToByteArrays(this.graph,this.weightAttribute),this.running=!0,this.askForIterations(!0)),this},s.prototype.stop=function(){return this.running=!1,this},s.prototype.kill=function(){if(this.killed)return this;this.running=!1,this.killed=!0,this.matrices=null,this.worker.terminate(),this.graph.removeListener("nodeAdded",this.handleGraphUpdate),this.graph.removeListener("edgeAdded",this.handleGraphUpdate),this.graph.removeListener("nodeDropped",this.handleGraphUpdate),this.graph.removeListener("edgeDropped",this.handleGraphUpdate)},e.exports=s},8833:(e,t,n)=>{var r=n(6586),o=n(1880),i={dimensions:["x","y"],center:.5,scale:1};function a(e,t,n){if(!o(t))throw new Error("graphology-layout/random: the given graph is not a valid graphology instance.");var a=(n=r(n,i)).dimensions;if(!Array.isArray(a)||2!==a.length)throw new Error("graphology-layout/random: given dimensions are invalid.");var s=n.center,u=n.scale,c=2*Math.PI,l=(s-.5)*u,d=t.order,f=a[0],h=a[1];function p(e,t){return t[f]=u*Math.cos(e*c/d)+l,t[h]=u*Math.sin(e*c/d)+l,t}var g=0;if(!e){var m={};return t.forEachNode((function(e){m[e]=p(g++,{})})),m}t.updateEachNodeAttributes((function(e,t){return p(g++,t),t}),{attributes:a})}var s=a.bind(null,!1);s.assign=a.bind(null,!0),e.exports=s},6586:e=>{e.exports=function e(t,n){t=t||{};var r,o={};for(var i in n){var a=t[i],s=n[i];!(r=s)||"object"!=typeof r||"function"==typeof r||Array.isArray(r)||r instanceof Set||r instanceof Map||r instanceof RegExp||r instanceof Date?o[i]=void 0===a?s:a:o[i]=e(a,s)}return o}},1880:e=>{e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.addUndirectedEdgeWithKey&&"function"==typeof e.dropNode&&"boolean"==typeof e.multi}},8996:function(e){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function i(e,t,n){return i=o()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},i.apply(null,arguments)}function a(e){var t="function"==typeof Map?new Map:void 0;return a=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return i(e,arguments,n(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r(a,e)},a(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++)if(arguments[t])for(var r in arguments[t])e[r]=arguments[t][r];return e};function c(e,t,n,r){var o=e._nodes.get(t),i=null;return o?i="mixed"===r?o.out&&o.out[n]||o.undirected&&o.undirected[n]:"directed"===r?o.out&&o.out[n]:o.undirected&&o.undirected[n]:i}function l(t){return null!==t&&"object"===e(t)&&"function"==typeof t.addUndirectedEdgeWithKey&&"function"==typeof t.dropNode}function d(t){return"object"===e(t)&&null!==t&&t.constructor===Object}function f(e){var t;for(t in e)return!1;return!0}function h(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!1,writable:!0,value:n})}function p(e,t,n){var r={enumerable:!0,configurable:!0};"function"==typeof n?r.get=n:(r.value=n,r.writable=!1),Object.defineProperty(e,t,r)}function g(e){return!(!d(e)||e.attributes&&!Array.isArray(e.attributes))}"function"==typeof Object.assign&&(u=Object.assign);var m,v={exports:{}},y="object"==typeof Reflect?Reflect:null,b=y&&"function"==typeof y.apply?y.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};m=y&&"function"==typeof y.ownKeys?y.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var w=Number.isNaN||function(e){return e!=e};function E(){E.init.call(this)}v.exports=E,v.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}T(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&T(e,"error",t,{once:!0})}(e,o)}))},E.EventEmitter=E,E.prototype._events=void 0,E.prototype._eventsCount=0,E.prototype._maxListeners=void 0;var x=10;function _(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function C(e){return void 0===e._maxListeners?E.defaultMaxListeners:e._maxListeners}function S(e,t,n,r){var o,i,a,s;if(_(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=C(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function A(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function k(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=A.bind(r);return o.listener=n,r.wrapFn=o,o}function O(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):L(o,o.length)}function D(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function L(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function T(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}function M(e){if("function"!=typeof e)throw new Error("obliterator/iterator: expecting a function!");this.next=e}Object.defineProperty(E,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(e){if("number"!=typeof e||e<0||w(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");x=e}}),E.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},E.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||w(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},E.prototype.getMaxListeners=function(){return C(this)},E.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)b(s,this,t);else{var u=s.length,c=L(s,u);for(n=0;n<u;++n)b(c[n],this,t)}return!0},E.prototype.addListener=function(e,t){return S(this,e,t,!1)},E.prototype.on=E.prototype.addListener,E.prototype.prependListener=function(e,t){return S(this,e,t,!0)},E.prototype.once=function(e,t){return _(t),this.on(e,k(this,e,t)),this},E.prototype.prependOnceListener=function(e,t){return _(t),this.prependListener(e,k(this,e,t)),this},E.prototype.removeListener=function(e,t){var n,r,o,i,a;if(_(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},E.prototype.off=E.prototype.removeListener,E.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},E.prototype.listeners=function(e){return O(this,e,!0)},E.prototype.rawListeners=function(e){return O(this,e,!1)},E.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):D.call(e,t)},E.prototype.listenerCount=D,E.prototype.eventNames=function(){return this._eventsCount>0?m(this._events):[]},"undefined"!=typeof Symbol&&(M.prototype[Symbol.iterator]=function(){return this}),M.of=function(){var e=arguments,t=e.length,n=0;return new M((function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}}))},M.empty=function(){return new M((function(){return{done:!0}}))},M.fromSequence=function(e){var t=0,n=e.length;return new M((function(){return t>=n?{done:!0}:{done:!1,value:e[t++]}}))},M.is=function(e){return e instanceof M||"object"==typeof e&&null!==e&&"function"==typeof e.next};var P=M,F={};F.ARRAY_BUFFER_SUPPORT="undefined"!=typeof ArrayBuffer,F.SYMBOL_SUPPORT="undefined"!=typeof Symbol;var N=P,j=F,R=j.ARRAY_BUFFER_SUPPORT,I=j.SYMBOL_SUPPORT,B=function(e){var t=function(e){return"string"==typeof e||Array.isArray(e)||R&&ArrayBuffer.isView(e)?N.fromSequence(e):"object"!=typeof e||null===e?null:I&&"function"==typeof e[Symbol.iterator]?e[Symbol.iterator]():"function"==typeof e.next?e:null}(e);if(!t)throw new Error("obliterator: target is not iterable nor a valid iterator.");return t},G=B,z=function(e,t){for(var n,r=arguments.length>1?t:1/0,o=r!==1/0?new Array(r):[],i=0,a=G(e);;){if(i===r)return o;if((n=a.next()).done)return i!==t&&(o.length=i),o;o[i++]=n.value}},U=function(e){function n(t){var n;return(n=e.call(this)||this).name="GraphError",n.message=t,n}return t(n,e),n}(a(Error)),W=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="InvalidArgumentsGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s(r),n.prototype.constructor),r}return t(n,e),n}(U),H=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="NotFoundGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s(r),n.prototype.constructor),r}return t(n,e),n}(U),q=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="UsageGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s(r),n.prototype.constructor),r}return t(n,e),n}(U);function V(e,t){this.key=e,this.attributes=t,this.clear()}function Y(e,t){this.key=e,this.attributes=t,this.clear()}function K(e,t){this.key=e,this.attributes=t,this.clear()}function $(e,t,n,r,o){this.key=t,this.attributes=o,this.undirected=e,this.source=n,this.target=r}function Z(e,t,n,r,o,i,a){var s,u,c,l;if(r=""+r,0===n){if(!(s=e._nodes.get(r)))throw new H("Graph.".concat(t,': could not find the "').concat(r,'" node in the graph.'));c=o,l=i}else if(3===n){if(o=""+o,!(u=e._edges.get(o)))throw new H("Graph.".concat(t,': could not find the "').concat(o,'" edge in the graph.'));var d=u.source.key,f=u.target.key;if(r===d)s=u.target;else{if(r!==f)throw new H("Graph.".concat(t,': the "').concat(r,'" node is not attached to the "').concat(o,'" edge (').concat(d,", ").concat(f,")."));s=u.source}c=i,l=a}else{if(!(u=e._edges.get(r)))throw new H("Graph.".concat(t,': could not find the "').concat(r,'" edge in the graph.'));s=1===n?u.source:u.target,c=o,l=i}return[s,c,l]}V.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.undirectedDegree=0,this.in={},this.out={},this.undirected={}},Y.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.in={},this.out={}},K.prototype.clear=function(){this.undirectedDegree=0,this.undirected={}},$.prototype.attach=function(){var e="out",t="in";this.undirected&&(e=t="undirected");var n=this.source.key,r=this.target.key;this.source[e][r]=this,this.undirected&&n===r||(this.target[t][n]=this)},$.prototype.attachMulti=function(){var e="out",t="in",n=this.source.key,r=this.target.key;this.undirected&&(e=t="undirected");var o=this.source[e],i=o[r];if(void 0===i)return o[r]=this,void(this.undirected&&n===r||(this.target[t][n]=this));i.previous=this,this.next=i,o[r]=this,this.target[t][n]=this},$.prototype.detach=function(){var e=this.source.key,t=this.target.key,n="out",r="in";this.undirected&&(n=r="undirected"),delete this.source[n][t],delete this.target[r][e]},$.prototype.detachMulti=function(){var e=this.source.key,t=this.target.key,n="out",r="in";this.undirected&&(n=r="undirected"),void 0===this.previous?void 0===this.next?(delete this.source[n][t],delete this.target[r][e]):(this.next.previous=void 0,this.source[n][t]=this.next,this.target[r][e]=this.next):(this.previous.next=this.next,void 0!==this.next&&(this.next.previous=this.previous))};var X=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];return a.attributes[s]}}},{name:function(e){return"get".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){return Z(this,t,n,e,r)[0].attributes}}},{name:function(e){return"has".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];return a.attributes.hasOwnProperty(s)}}},{name:function(e){return"set".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o,i){var a=Z(this,t,n,e,r,o,i),s=a[0],u=a[1],c=a[2];return s.attributes[u]=c,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:u}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o,i){var a=Z(this,t,n,e,r,o,i),s=a[0],u=a[1],c=a[2];if("function"!=typeof c)throw new W("Graph.".concat(t,": updater should be a function."));var l=s.attributes,d=c(l[u]);return l[u]=d,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:u}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];return delete a.attributes[s],this.emit("nodeAttributesUpdated",{key:a.key,type:"remove",attributes:a.attributes,name:s}),this}}},{name:function(e){return"replace".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];if(!d(s))throw new W("Graph.".concat(t,": provided attributes are not a plain object."));return a.attributes=s,this.emit("nodeAttributesUpdated",{key:a.key,type:"replace",attributes:a.attributes}),this}}},{name:function(e){return"merge".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];if(!d(s))throw new W("Graph.".concat(t,": provided attributes are not a plain object."));return u(a.attributes,s),this.emit("nodeAttributesUpdated",{key:a.key,type:"merge",attributes:a.attributes,data:s}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=Z(this,t,n,e,r,o),a=i[0],s=i[1];if("function"!=typeof s)throw new W("Graph.".concat(t,": provided updater is not a function."));return a.attributes=s(a.attributes),this.emit("nodeAttributesUpdated",{key:a.key,type:"update",attributes:a.attributes}),this}}}],Q=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=c(this,i,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return o.attributes[r]}}},{name:function(e){return"get".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e){var r;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>1){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,i=""+arguments[1];if(!(r=c(this,o,i,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(i,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(r=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return r.attributes}}},{name:function(e){return"has".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=c(this,i,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return o.attributes.hasOwnProperty(r)}}},{name:function(e){return"set".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var a=""+e,s=""+r;if(r=arguments[2],o=arguments[3],!(i=c(this,a,s,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(s,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return i.attributes[r]=o,this.emit("edgeAttributesUpdated",{key:i.key,type:"set",attributes:i.attributes,name:r}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var a=""+e,s=""+r;if(r=arguments[2],o=arguments[3],!(i=c(this,a,s,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(s,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if("function"!=typeof o)throw new W("Graph.".concat(t,": updater should be a function."));return i.attributes[r]=o(i.attributes[r]),this.emit("edgeAttributesUpdated",{key:i.key,type:"set",attributes:i.attributes,name:r}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=c(this,i,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return delete o.attributes[r],this.emit("edgeAttributesUpdated",{key:o.key,type:"remove",attributes:o.attributes,name:r}),this}}},{name:function(e){return"replace".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=c(this,i,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if(!d(r))throw new W("Graph.".concat(t,": provided attributes are not a plain object."));return o.attributes=r,this.emit("edgeAttributesUpdated",{key:o.key,type:"replace",attributes:o.attributes}),this}}},{name:function(e){return"merge".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=c(this,i,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if(!d(r))throw new W("Graph.".concat(t,": provided attributes are not a plain object."));return u(o.attributes,r),this.emit("edgeAttributesUpdated",{key:o.key,type:"merge",attributes:o.attributes,data:r}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=c(this,i,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new q("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if("function"!=typeof r)throw new W("Graph.".concat(t,": provided updater is not a function."));return o.attributes=r(o.attributes),this.emit("edgeAttributesUpdated",{key:o.key,type:"update",attributes:o.attributes}),this}}}],J=P,ee=B,te=function(){var e=arguments,t=null,n=-1;return new J((function(){for(var r=null;;){if(null===t){if(++n>=e.length)return{done:!0};t=ee(e[n])}if(!0!==(r=t.next()).done)break;t=null}return r}))},ne=[{name:"edges",type:"mixed"},{name:"inEdges",type:"directed",direction:"in"},{name:"outEdges",type:"directed",direction:"out"},{name:"inboundEdges",type:"mixed",direction:"in"},{name:"outboundEdges",type:"mixed",direction:"out"},{name:"directedEdges",type:"directed"},{name:"undirectedEdges",type:"undirected"}];function re(e,t,n,r){var o=!1;for(var i in t)if(i!==r){var a=t[i];if(o=n(a.key,a.attributes,a.source.key,a.target.key,a.source.attributes,a.target.attributes,a.undirected),e&&o)return a.key}}function oe(e,t,n,r){var o,i,a,s=!1;for(var u in t)if(u!==r){o=t[u];do{if(i=o.source,a=o.target,s=n(o.key,o.attributes,i.key,a.key,i.attributes,a.attributes,o.undirected),e&&s)return o.key;o=o.next}while(void 0!==o)}}function ie(e,t){var n,r=Object.keys(e),o=r.length,i=0;return new P((function(){do{if(n)n=n.next;else{if(i>=o)return{done:!0};var a=r[i++];if(a===t){n=void 0;continue}n=e[a]}}while(!n);return{done:!1,value:{edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected}}}))}function ae(e,t,n,r){var o=t[n];if(o){var i=o.source,a=o.target;return r(o.key,o.attributes,i.key,a.key,i.attributes,a.attributes,o.undirected)&&e?o.key:void 0}}function se(e,t,n,r){var o=t[n];if(o){var i=!1;do{if(i=r(o.key,o.attributes,o.source.key,o.target.key,o.source.attributes,o.target.attributes,o.undirected),e&&i)return o.key;o=o.next}while(void 0!==o)}}function ue(e,t){var n=e[t];return void 0!==n.next?new P((function(){if(!n)return{done:!0};var e={edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected};return n=n.next,{done:!1,value:e}})):P.of({edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected})}function ce(e,t){if(0===e.size)return[];if("mixed"===t||t===e.type)return"function"==typeof Array.from?Array.from(e._edges.keys()):z(e._edges.keys(),e._edges.size);for(var n,r,o="undirected"===t?e.undirectedSize:e.directedSize,i=new Array(o),a="undirected"===t,s=e._edges.values(),u=0;!0!==(n=s.next()).done;)(r=n.value).undirected===a&&(i[u++]=r.key);return i}function le(e,t,n,r){if(0!==t.size)for(var o,i,a="mixed"!==n&&n!==t.type,s="undirected"===n,u=!1,c=t._edges.values();!0!==(o=c.next()).done;)if(i=o.value,!a||i.undirected===s){var l=i,d=l.key,f=l.attributes,h=l.source,p=l.target;if(u=r(d,f,h.key,p.key,h.attributes,p.attributes,i.undirected),e&&u)return d}}function de(e,t){if(0===e.size)return P.empty();var n="mixed"!==t&&t!==e.type,r="undirected"===t,o=e._edges.values();return new P((function(){for(var e,t;;){if((e=o.next()).done)return e;if(t=e.value,!n||t.undirected===r)break}return{value:{edge:t.key,attributes:t.attributes,source:t.source.key,target:t.target.key,sourceAttributes:t.source.attributes,targetAttributes:t.target.attributes,undirected:t.undirected},done:!1}}))}function fe(e,t,n,r,o,i){var a,s=t?oe:re;if("undirected"!==n){if("out"!==r&&(a=s(e,o.in,i),e&&a))return a;if("in"!==r&&(a=s(e,o.out,i,r?void 0:o.key),e&&a))return a}if("directed"!==n&&(a=s(e,o.undirected,i),e&&a))return a}function he(e,t,n,r){var o=[];return fe(!1,e,t,n,r,(function(e){o.push(e)})),o}function pe(e,t,n){var r=P.empty();return"undirected"!==e&&("out"!==t&&void 0!==n.in&&(r=te(r,ie(n.in))),"in"!==t&&void 0!==n.out&&(r=te(r,ie(n.out,t?void 0:n.key)))),"directed"!==e&&void 0!==n.undirected&&(r=te(r,ie(n.undirected))),r}function ge(e,t,n,r,o,i,a){var s,u=n?se:ae;if("undirected"!==t){if(void 0!==o.in&&"out"!==r&&(s=u(e,o.in,i,a),e&&s))return s;if(void 0!==o.out&&"in"!==r&&(r||o.key!==i)&&(s=u(e,o.out,i,a),e&&s))return s}if("directed"!==t&&void 0!==o.undirected&&(s=u(e,o.undirected,i,a),e&&s))return s}function me(e,t,n,r,o){var i=[];return ge(!1,e,t,n,r,o,(function(e){i.push(e)})),i}function ve(e,t,n,r){var o=P.empty();return"undirected"!==e&&(void 0!==n.in&&"out"!==t&&r in n.in&&(o=te(o,ue(n.in,r))),void 0!==n.out&&"in"!==t&&r in n.out&&(t||n.key!==r)&&(o=te(o,ue(n.out,r)))),"directed"!==e&&void 0!==n.undirected&&r in n.undirected&&(o=te(o,ue(n.undirected,r))),o}var ye=[{name:"neighbors",type:"mixed"},{name:"inNeighbors",type:"directed",direction:"in"},{name:"outNeighbors",type:"directed",direction:"out"},{name:"inboundNeighbors",type:"mixed",direction:"in"},{name:"outboundNeighbors",type:"mixed",direction:"out"},{name:"directedNeighbors",type:"directed"},{name:"undirectedNeighbors",type:"undirected"}];function be(){this.A=null,this.B=null}function we(e,t,n,r,o){for(var i in r){var a=r[i],s=a.source,u=a.target,c=s===n?u:s;if(!t||!t.has(c.key)){var l=o(c.key,c.attributes);if(e&&l)return c.key}}}function Ee(e,t,n,r,o){if("mixed"!==t){if("undirected"===t)return we(e,null,r,r.undirected,o);if("string"==typeof n)return we(e,null,r,r[n],o)}var i,a=new be;if("undirected"!==t){if("out"!==n){if(i=we(e,null,r,r.in,o),e&&i)return i;a.wrap(r.in)}if("in"!==n){if(i=we(e,a,r,r.out,o),e&&i)return i;a.wrap(r.out)}}if("directed"!==t&&(i=we(e,a,r,r.undirected,o),e&&i))return i}function xe(e,t,n){var r=Object.keys(n),o=r.length,i=0;return new P((function(){var a=null;do{if(i>=o)return e&&e.wrap(n),{done:!0};var s=n[r[i++]],u=s.source,c=s.target;a=u===t?c:u,e&&e.has(a.key)&&(a=null)}while(null===a);return{done:!1,value:{neighbor:a.key,attributes:a.attributes}}}))}function _e(e,t,n,r,o){for(var i,a,s,u,c,l,d,f=r._nodes.values(),h=r.type;!0!==(i=f.next()).done;){var p=!1;if(a=i.value,"undirected"!==h)for(s in u=a.out){c=u[s];do{if(l=c.target,p=!0,d=o(a.key,l.key,a.attributes,l.attributes,c.key,c.attributes,c.undirected),e&&d)return c;c=c.next}while(c)}if("directed"!==h)for(s in u=a.undirected)if(!(t&&a.key>s)){c=u[s];do{if((l=c.target).key!==s&&(l=c.source),p=!0,d=o(a.key,l.key,a.attributes,l.attributes,c.key,c.attributes,c.undirected),e&&d)return c;c=c.next}while(c)}if(n&&!p&&(d=o(a.key,null,a.attributes,null,null,null,null),e&&d))return null}}function Ce(e){if(!d(e))throw new W('Graph.import: invalid serialized node. A serialized node should be a plain object with at least a "key" property.');if(!("key"in e))throw new W("Graph.import: serialized node is missing its key.");if("attributes"in e&&(!d(e.attributes)||null===e.attributes))throw new W("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.")}function Se(e){if(!d(e))throw new W('Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.');if(!("source"in e))throw new W("Graph.import: serialized edge is missing its source.");if(!("target"in e))throw new W("Graph.import: serialized edge is missing its target.");if("attributes"in e&&(!d(e.attributes)||null===e.attributes))throw new W("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.");if("undirected"in e&&"boolean"!=typeof e.undirected)throw new W("Graph.import: invalid undirectedness information. Undirected should be boolean or omitted.")}be.prototype.wrap=function(e){null===this.A?this.A=e:null===this.B&&(this.B=e)},be.prototype.has=function(e){return null!==this.A&&e in this.A||null!==this.B&&e in this.B};var Ae,ke=(Ae=255&Math.floor(256*Math.random()),function(){return Ae++}),Oe=new Set(["directed","undirected","mixed"]),De=new Set(["domain","_events","_eventsCount","_maxListeners"]),Le={allowSelfLoops:!0,multi:!1,type:"mixed"};function Te(e,t,n){var r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function Me(e,t,n,r,o,i,a,s){if(!r&&"undirected"===e.type)throw new q("Graph.".concat(t,": you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead."));if(r&&"directed"===e.type)throw new q("Graph.".concat(t,": you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead."));if(s&&!d(s))throw new W("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(s,'"'));if(i=""+i,a=""+a,s=s||{},!e.allowSelfLoops&&i===a)throw new q("Graph.".concat(t,': source & target are the same ("').concat(i,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var u=e._nodes.get(i),c=e._nodes.get(a);if(!u)throw new H("Graph.".concat(t,': source node "').concat(i,'" not found.'));if(!c)throw new H("Graph.".concat(t,': target node "').concat(a,'" not found.'));var l={key:null,undirected:r,source:i,target:a,attributes:s};if(n)o=e._edgeKeyGenerator();else if(o=""+o,e._edges.has(o))throw new q("Graph.".concat(t,': the "').concat(o,'" edge already exists in the graph.'));if(!e.multi&&(r?void 0!==u.undirected[a]:void 0!==u.out[a]))throw new q("Graph.".concat(t,': an edge linking "').concat(i,'" to "').concat(a,"\" already exists. If you really want to add multiple edges linking those nodes, you should create a multi graph by using the 'multi' option."));var f=new $(r,o,u,c,s);e._edges.set(o,f);var h=i===a;return r?(u.undirectedDegree++,c.undirectedDegree++,h&&e._undirectedSelfLoopCount++):(u.outDegree++,c.inDegree++,h&&e._directedSelfLoopCount++),e.multi?f.attachMulti():f.attach(),r?e._undirectedSize++:e._directedSize++,l.key=o,e.emit("edgeAdded",l),o}function Pe(e,t,n,r,o,i,a,s,c){if(!r&&"undirected"===e.type)throw new q("Graph.".concat(t,": you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead."));if(r&&"directed"===e.type)throw new q("Graph.".concat(t,": you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead."));if(s)if(c){if("function"!=typeof s)throw new W("Graph.".concat(t,': invalid updater function. Expecting a function but got "').concat(s,'"'))}else if(!d(s))throw new W("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(s,'"'));var l;if(i=""+i,a=""+a,c&&(l=s,s=void 0),!e.allowSelfLoops&&i===a)throw new q("Graph.".concat(t,': source & target are the same ("').concat(i,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var f,h,p=e._nodes.get(i),g=e._nodes.get(a);if(!n&&(f=e._edges.get(o))){if(!(f.source.key===i&&f.target.key===a||r&&f.source.key===a&&f.target.key===i))throw new q("Graph.".concat(t,': inconsistency detected when attempting to merge the "').concat(o,'" edge with "').concat(i,'" source & "').concat(a,'" target vs. ("').concat(f.source.key,'", "').concat(f.target.key,'").'));h=f}if(h||e.multi||!p||(h=r?p.undirected[a]:p.out[a]),h){var m=[h.key,!1,!1,!1];if(c?!l:!s)return m;if(c){var v=h.attributes;h.attributes=l(v),e.emit("edgeAttributesUpdated",{type:"replace",key:h.key,attributes:h.attributes})}else u(h.attributes,s),e.emit("edgeAttributesUpdated",{type:"merge",key:h.key,attributes:h.attributes,data:s});return m}s=s||{},c&&l&&(s=l(s));var y={key:null,undirected:r,source:i,target:a,attributes:s};if(n)o=e._edgeKeyGenerator();else if(o=""+o,e._edges.has(o))throw new q("Graph.".concat(t,': the "').concat(o,'" edge already exists in the graph.'));var b=!1,w=!1;p||(p=Te(e,i,{}),b=!0,i===a&&(g=p,w=!0)),g||(g=Te(e,a,{}),w=!0),f=new $(r,o,p,g,s),e._edges.set(o,f);var E=i===a;return r?(p.undirectedDegree++,g.undirectedDegree++,E&&e._undirectedSelfLoopCount++):(p.outDegree++,g.inDegree++,E&&e._directedSelfLoopCount++),e.multi?f.attachMulti():f.attach(),r?e._undirectedSize++:e._directedSize++,y.key=o,e.emit("edgeAdded",y),[o,!0,b,w]}function Fe(e,t){e._edges.delete(t.key);var n=t.source,r=t.target,o=t.attributes,i=t.undirected,a=n===r;i?(n.undirectedDegree--,r.undirectedDegree--,a&&e._undirectedSelfLoopCount--):(n.outDegree--,r.inDegree--,a&&e._directedSelfLoopCount--),e.multi?t.detachMulti():t.detach(),i?e._undirectedSize--:e._directedSize--,e.emit("edgeDropped",{key:t.key,attributes:o,source:n.key,target:r.key,undirected:i})}var Ne=function(n){function r(e){var t;if(t=n.call(this)||this,"boolean"!=typeof(e=u({},Le,e)).multi)throw new W("Graph.constructor: invalid 'multi' option. Expecting a boolean but got \"".concat(e.multi,'".'));if(!Oe.has(e.type))throw new W('Graph.constructor: invalid \'type\' option. Should be one of "mixed", "directed" or "undirected" but got "'.concat(e.type,'".'));if("boolean"!=typeof e.allowSelfLoops)throw new W("Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got \"".concat(e.allowSelfLoops,'".'));var r="mixed"===e.type?V:"directed"===e.type?Y:K;h(s(t),"NodeDataClass",r);var o="geid_"+ke()+"_",i=0;return h(s(t),"_attributes",{}),h(s(t),"_nodes",new Map),h(s(t),"_edges",new Map),h(s(t),"_directedSize",0),h(s(t),"_undirectedSize",0),h(s(t),"_directedSelfLoopCount",0),h(s(t),"_undirectedSelfLoopCount",0),h(s(t),"_edgeKeyGenerator",(function(){var e;do{e=o+i++}while(t._edges.has(e));return e})),h(s(t),"_options",e),De.forEach((function(e){return h(s(t),e,t[e])})),p(s(t),"order",(function(){return t._nodes.size})),p(s(t),"size",(function(){return t._edges.size})),p(s(t),"directedSize",(function(){return t._directedSize})),p(s(t),"undirectedSize",(function(){return t._undirectedSize})),p(s(t),"selfLoopCount",(function(){return t._directedSelfLoopCount+t._undirectedSelfLoopCount})),p(s(t),"directedSelfLoopCount",(function(){return t._directedSelfLoopCount})),p(s(t),"undirectedSelfLoopCount",(function(){return t._undirectedSelfLoopCount})),p(s(t),"multi",t._options.multi),p(s(t),"type",t._options.type),p(s(t),"allowSelfLoops",t._options.allowSelfLoops),p(s(t),"implementation",(function(){return"graphology"})),t}t(r,n);var o=r.prototype;return o._resetInstanceCounters=function(){this._directedSize=0,this._undirectedSize=0,this._directedSelfLoopCount=0,this._undirectedSelfLoopCount=0},o.hasNode=function(e){return this._nodes.has(""+e)},o.hasDirectedEdge=function(e,t){if("undirected"===this.type)return!1;if(1===arguments.length){var n=""+e,r=this._edges.get(n);return!!r&&!r.undirected}if(2===arguments.length){e=""+e,t=""+t;var o=this._nodes.get(e);if(!o)return!1;var i=o.out[t];return!(!i||this.multi&&!i.size)}throw new W("Graph.hasDirectedEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},o.hasUndirectedEdge=function(e,t){if("directed"===this.type)return!1;if(1===arguments.length){var n=""+e,r=this._edges.get(n);return!!r&&r.undirected}if(2===arguments.length){e=""+e,t=""+t;var o=this._nodes.get(e);if(!o)return!1;var i=o.undirected[t];return!(!i||this.multi&&!i.size)}throw new W("Graph.hasDirectedEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},o.hasEdge=function(e,t){if(1===arguments.length){var n=""+e;return this._edges.has(n)}if(2===arguments.length){e=""+e,t=""+t;var r=this._nodes.get(e);if(!r)return!1;var o=void 0!==r.out&&r.out[t];return o||(o=void 0!==r.undirected&&r.undirected[t]),!(!o||this.multi&&!o.size)}throw new W("Graph.hasEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},o.directedEdge=function(e,t){if("undirected"!==this.type){if(e=""+e,t=""+t,this.multi)throw new q("Graph.directedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.directedEdges instead.");var n=this._nodes.get(e);if(!n)throw new H('Graph.directedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H('Graph.directedEdge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.out&&n.out[t]||void 0;return r?r.key:void 0}},o.undirectedEdge=function(e,t){if("directed"!==this.type){if(e=""+e,t=""+t,this.multi)throw new q("Graph.undirectedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.undirectedEdges instead.");var n=this._nodes.get(e);if(!n)throw new H('Graph.undirectedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H('Graph.undirectedEdge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.undirected&&n.undirected[t]||void 0;return r?r.key:void 0}},o.edge=function(e,t){if(this.multi)throw new q("Graph.edge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.edges instead.");e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.edge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H('Graph.edge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.out&&n.out[t]||n.undirected&&n.undirected[t]||void 0;if(r)return r.key},o.areDirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areDirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&(t in n.in||t in n.out)},o.areOutNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areOutNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.out},o.areInNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areInNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.in},o.areUndirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areUndirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"directed"!==this.type&&t in n.undirected},o.areNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&(t in n.in||t in n.out)||"directed"!==this.type&&t in n.undirected},o.areInboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areInboundNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.in||"directed"!==this.type&&t in n.undirected},o.areOutboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areOutboundNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.out||"directed"!==this.type&&t in n.undirected},o.inDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree},o.outDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.outDegree},o.directedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.directedDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree+t.outDegree},o.undirectedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.undirectedDegree: could not find the "'.concat(e,'" node in the graph.'));return"directed"===this.type?0:t.undirectedDegree},o.inboundDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inboundDegree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.inDegree),n},o.outboundDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outboundDegree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.outDegree),n},o.degree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.degree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.inDegree+t.outDegree),n},o.inDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));if("undirected"===this.type)return 0;var n=t.in[e],r=n?this.multi?n.size:1:0;return t.inDegree-r},o.outDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));if("undirected"===this.type)return 0;var n=t.out[e],r=n?this.multi?n.size:1:0;return t.outDegree-r},o.directedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.directedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));if("undirected"===this.type)return 0;var n=t.out[e],r=n?this.multi?n.size:1:0;return t.inDegree+t.outDegree-2*r},o.undirectedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.undirectedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));if("directed"===this.type)return 0;var n=t.undirected[e],r=n?this.multi?n.size:1:0;return t.undirectedDegree-2*r},o.inboundDegreeWithoutSelfLoops=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new H('Graph.inboundDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var r=0,o=0;return"directed"!==this.type&&(r+=n.undirectedDegree,o+=2*((t=n.undirected[e])?this.multi?t.size:1:0)),"undirected"!==this.type&&(r+=n.inDegree,o+=(t=n.out[e])?this.multi?t.size:1:0),r-o},o.outboundDegreeWithoutSelfLoops=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new H('Graph.outboundDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var r=0,o=0;return"directed"!==this.type&&(r+=n.undirectedDegree,o+=2*((t=n.undirected[e])?this.multi?t.size:1:0)),"undirected"!==this.type&&(r+=n.outDegree,o+=(t=n.in[e])?this.multi?t.size:1:0),r-o},o.degreeWithoutSelfLoops=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new H('Graph.degreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var r=0,o=0;return"directed"!==this.type&&(r+=n.undirectedDegree,o+=2*((t=n.undirected[e])?this.multi?t.size:1:0)),"undirected"!==this.type&&(r+=n.inDegree+n.outDegree,o+=2*((t=n.out[e])?this.multi?t.size:1:0)),r-o},o.source=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.source: could not find the "'.concat(e,'" edge in the graph.'));return t.source.key},o.target=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.target: could not find the "'.concat(e,'" edge in the graph.'));return t.target.key},o.extremities=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.extremities: could not find the "'.concat(e,'" edge in the graph.'));return[t.source.key,t.target.key]},o.opposite=function(e,t){e=""+e,t=""+t;var n=this._edges.get(t);if(!n)throw new H('Graph.opposite: could not find the "'.concat(t,'" edge in the graph.'));var r=n.source.key,o=n.target.key;if(e===r)return o;if(e===o)return r;throw new H('Graph.opposite: the "'.concat(e,'" node is not attached to the "').concat(t,'" edge (').concat(r,", ").concat(o,")."))},o.hasExtremity=function(e,t){e=""+e,t=""+t;var n=this._edges.get(e);if(!n)throw new H('Graph.hasExtremity: could not find the "'.concat(e,'" edge in the graph.'));return n.source.key===t||n.target.key===t},o.isUndirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.isUndirected: could not find the "'.concat(e,'" edge in the graph.'));return t.undirected},o.isDirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.isDirected: could not find the "'.concat(e,'" edge in the graph.'));return!t.undirected},o.isSelfLoop=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.isSelfLoop: could not find the "'.concat(e,'" edge in the graph.'));return t.source===t.target},o.addNode=function(e,t){var n=function(e,t,n){if(n&&!d(n))throw new W('Graph.addNode: invalid attributes. Expecting an object but got "'.concat(n,'"'));if(t=""+t,n=n||{},e._nodes.has(t))throw new q('Graph.addNode: the "'.concat(t,'" node already exist in the graph.'));var r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}(this,e,t);return n.key},o.mergeNode=function(e,t){if(t&&!d(t))throw new W('Graph.mergeNode: invalid attributes. Expecting an object but got "'.concat(t,'"'));e=""+e,t=t||{};var n=this._nodes.get(e);return n?(t&&(u(n.attributes,t),this.emit("nodeAttributesUpdated",{type:"merge",key:e,attributes:n.attributes,data:t})),[e,!1]):(n=new this.NodeDataClass(e,t),this._nodes.set(e,n),this.emit("nodeAdded",{key:e,attributes:t}),[e,!0])},o.updateNode=function(e,t){if(t&&"function"!=typeof t)throw new W('Graph.updateNode: invalid updater function. Expecting a function but got "'.concat(t,'"'));e=""+e;var n=this._nodes.get(e);if(n){if(t){var r=n.attributes;n.attributes=t(r),this.emit("nodeAttributesUpdated",{type:"replace",key:e,attributes:n.attributes})}return[e,!1]}var o=t?t({}):{};return n=new this.NodeDataClass(e,o),this._nodes.set(e,n),this.emit("nodeAdded",{key:e,attributes:o}),[e,!0]},o.dropNode=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new H('Graph.dropNode: could not find the "'.concat(e,'" node in the graph.'));if("undirected"!==this.type){for(var r in n.out){t=n.out[r];do{Fe(this,t),t=t.next}while(t)}for(var o in n.in){t=n.in[o];do{Fe(this,t),t=t.next}while(t)}}if("directed"!==this.type)for(var i in n.undirected){t=n.undirected[i];do{Fe(this,t),t=t.next}while(t)}this._nodes.delete(e),this.emit("nodeDropped",{key:e,attributes:n.attributes})},o.dropEdge=function(e){var t;if(arguments.length>1){var n=""+arguments[0],r=""+arguments[1];if(!(t=c(this,n,r,this.type)))throw new H('Graph.dropEdge: could not find the "'.concat(n,'" -> "').concat(r,'" edge in the graph.'))}else if(e=""+e,!(t=this._edges.get(e)))throw new H('Graph.dropEdge: could not find the "'.concat(e,'" edge in the graph.'));return Fe(this,t),this},o.dropDirectedEdge=function(e,t){if(arguments.length<2)throw new q("Graph.dropDirectedEdge: it does not make sense to try and drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new q("Graph.dropDirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");var n=c(this,e=""+e,t=""+t,"directed");if(!n)throw new H('Graph.dropDirectedEdge: could not find a "'.concat(e,'" -> "').concat(t,'" edge in the graph.'));return Fe(this,n),this},o.dropUndirectedEdge=function(e,t){if(arguments.length<2)throw new q("Graph.dropUndirectedEdge: it does not make sense to drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new q("Graph.dropUndirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");var n=c(this,e,t,"undirected");if(!n)throw new H('Graph.dropUndirectedEdge: could not find a "'.concat(e,'" -> "').concat(t,'" edge in the graph.'));return Fe(this,n),this},o.clear=function(){this._edges.clear(),this._nodes.clear(),this._resetInstanceCounters(),this.emit("cleared")},o.clearEdges=function(){for(var e,t=this._nodes.values();!0!==(e=t.next()).done;)e.value.clear();this._edges.clear(),this._resetInstanceCounters(),this.emit("edgesCleared")},o.getAttribute=function(e){return this._attributes[e]},o.getAttributes=function(){return this._attributes},o.hasAttribute=function(e){return this._attributes.hasOwnProperty(e)},o.setAttribute=function(e,t){return this._attributes[e]=t,this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:e}),this},o.updateAttribute=function(e,t){if("function"!=typeof t)throw new W("Graph.updateAttribute: updater should be a function.");var n=this._attributes[e];return this._attributes[e]=t(n),this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:e}),this},o.removeAttribute=function(e){return delete this._attributes[e],this.emit("attributesUpdated",{type:"remove",attributes:this._attributes,name:e}),this},o.replaceAttributes=function(e){if(!d(e))throw new W("Graph.replaceAttributes: provided attributes are not a plain object.");return this._attributes=e,this.emit("attributesUpdated",{type:"replace",attributes:this._attributes}),this},o.mergeAttributes=function(e){if(!d(e))throw new W("Graph.mergeAttributes: provided attributes are not a plain object.");return u(this._attributes,e),this.emit("attributesUpdated",{type:"merge",attributes:this._attributes,data:e}),this},o.updateAttributes=function(e){if("function"!=typeof e)throw new W("Graph.updateAttributes: provided updater is not a function.");return this._attributes=e(this._attributes),this.emit("attributesUpdated",{type:"update",attributes:this._attributes}),this},o.updateEachNodeAttributes=function(e,t){if("function"!=typeof e)throw new W("Graph.updateEachNodeAttributes: expecting an updater function.");if(t&&!g(t))throw new W("Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,o=this._nodes.values();!0!==(n=o.next()).done;)(r=n.value).attributes=e(r.key,r.attributes);this.emit("eachNodeAttributesUpdated",{hints:t||null})},o.updateEachEdgeAttributes=function(e,t){if("function"!=typeof e)throw new W("Graph.updateEachEdgeAttributes: expecting an updater function.");if(t&&!g(t))throw new W("Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,o,i,a=this._edges.values();!0!==(n=a.next()).done;)o=(r=n.value).source,i=r.target,r.attributes=e(r.key,r.attributes,o.key,i.key,o.attributes,i.attributes,r.undirected);this.emit("eachEdgeAttributesUpdated",{hints:t||null})},o.forEachAdjacencyEntry=function(e){if("function"!=typeof e)throw new W("Graph.forEachAdjacencyEntry: expecting a callback.");_e(!1,!1,!1,this,e)},o.forEachAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new W("Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.");_e(!1,!1,!0,this,e)},o.forEachAssymetricAdjacencyEntry=function(e){if("function"!=typeof e)throw new W("Graph.forEachAssymetricAdjacencyEntry: expecting a callback.");_e(!1,!0,!1,this,e)},o.forEachAssymetricAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new W("Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.");_e(!1,!0,!0,this,e)},o.nodes=function(){return"function"==typeof Array.from?Array.from(this._nodes.keys()):z(this._nodes.keys(),this._nodes.size)},o.forEachNode=function(e){if("function"!=typeof e)throw new W("Graph.forEachNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)e((n=t.value).key,n.attributes)},o.findNode=function(e){if("function"!=typeof e)throw new W("Graph.findNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(e((n=t.value).key,n.attributes))return n.key},o.mapNodes=function(e){if("function"!=typeof e)throw new W("Graph.mapNode: expecting a callback.");for(var t,n,r=this._nodes.values(),o=new Array(this.order),i=0;!0!==(t=r.next()).done;)n=t.value,o[i++]=e(n.key,n.attributes);return o},o.someNode=function(e){if("function"!=typeof e)throw new W("Graph.someNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(e((n=t.value).key,n.attributes))return!0;return!1},o.everyNode=function(e){if("function"!=typeof e)throw new W("Graph.everyNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(!e((n=t.value).key,n.attributes))return!1;return!0},o.filterNodes=function(e){if("function"!=typeof e)throw new W("Graph.filterNodes: expecting a callback.");for(var t,n,r=this._nodes.values(),o=[];!0!==(t=r.next()).done;)e((n=t.value).key,n.attributes)&&o.push(n.key);return o},o.reduceNodes=function(e,t){if("function"!=typeof e)throw new W("Graph.reduceNodes: expecting a callback.");if(arguments.length<2)throw new W("Graph.reduceNodes: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.");for(var n,r,o=t,i=this._nodes.values();!0!==(n=i.next()).done;)o=e(o,(r=n.value).key,r.attributes);return o},o.nodeEntries=function(){var e=this._nodes.values();return new P((function(){var t=e.next();if(t.done)return t;var n=t.value;return{value:{node:n.key,attributes:n.attributes},done:!1}}))},o.export=function(){var e=new Array(this._nodes.size),t=0;this._nodes.forEach((function(n,r){e[t++]=function(e,t){var n={key:e};return f(t.attributes)||(n.attributes=u({},t.attributes)),n}(r,n)}));var n=new Array(this._edges.size);return t=0,this._edges.forEach((function(e,r){n[t++]=function(e,t){var n={key:e,source:t.source.key,target:t.target.key};return f(t.attributes)||(n.attributes=u({},t.attributes)),t.undirected&&(n.undirected=!0),n}(r,e)})),{options:{type:this.type,multi:this.multi,allowSelfLoops:this.allowSelfLoops},attributes:this.getAttributes(),nodes:e,edges:n}},o.import=function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(l(e))return e.forEachNode((function(e,t){s?a.mergeNode(e,t):a.addNode(e,t)})),e.forEachEdge((function(e,t,n,r,o,i,u){s?u?a.mergeUndirectedEdgeWithKey(e,n,r,t):a.mergeDirectedEdgeWithKey(e,n,r,t):u?a.addUndirectedEdgeWithKey(e,n,r,t):a.addDirectedEdgeWithKey(e,n,r,t)})),this;if(!d(e))throw new W("Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.");if(e.attributes){if(!d(e.attributes))throw new W("Graph.import: invalid attributes. Expecting a plain object.");s?this.mergeAttributes(e.attributes):this.replaceAttributes(e.attributes)}if(e.nodes){if(r=e.nodes,!Array.isArray(r))throw new W("Graph.import: invalid nodes. Expecting an array.");for(t=0,n=r.length;t<n;t++){Ce(o=r[t]);var u=o,c=u.key,f=u.attributes;s?this.mergeNode(c,f):this.addNode(c,f)}}if(e.edges){if(r=e.edges,!Array.isArray(r))throw new W("Graph.import: invalid edges. Expecting an array.");for(t=0,n=r.length;t<n;t++){Se(i=r[t]);var h=i,p=h.source,g=h.target,m=h.attributes,v=h.undirected,y=void 0!==v&&v;"key"in i?(s?y?this.mergeUndirectedEdgeWithKey:this.mergeDirectedEdgeWithKey:y?this.addUndirectedEdgeWithKey:this.addDirectedEdgeWithKey).call(this,i.key,p,g,m):(s?y?this.mergeUndirectedEdge:this.mergeDirectedEdge:y?this.addUndirectedEdge:this.addDirectedEdge).call(this,p,g,m)}}return this},o.nullCopy=function(e){var t=new r(u({},this._options,e));return t.replaceAttributes(u({},this.getAttributes())),t},o.emptyCopy=function(e){var t=this.nullCopy(e);return this._nodes.forEach((function(e,n){var r=u({},e.attributes);e=new t.NodeDataClass(n,r),t._nodes.set(n,e)})),t},o.copy=function(e){if("string"==typeof(e=e||{}).type&&e.type!==this.type&&"mixed"!==e.type)throw new q('Graph.copy: cannot create an incompatible copy from "'.concat(this.type,'" type to "').concat(e.type,'" because this would mean losing information about the current graph.'));if("boolean"==typeof e.multi&&e.multi!==this.multi&&!0!==e.multi)throw new q("Graph.copy: cannot create an incompatible copy by downgrading a multi graph to a simple one because this would mean losing information about the current graph.");if("boolean"==typeof e.allowSelfLoops&&e.allowSelfLoops!==this.allowSelfLoops&&!0!==e.allowSelfLoops)throw new q("Graph.copy: cannot create an incompatible copy from a graph allowing self loops to one that does not because this would mean losing information about the current graph.");for(var t,n,r=this.emptyCopy(e),o=this._edges.values();!0!==(t=o.next()).done;)Me(r,"copy",!1,(n=t.value).undirected,n.key,n.source.key,n.target.key,u({},n.attributes));return r},o.toJSON=function(){return this.export()},o.toString=function(){return"[object Graph]"},o.inspect=function(){var t=this,n={};this._nodes.forEach((function(e,t){n[t]=e.attributes}));var r={},o={};this._edges.forEach((function(e,n){var i,a=e.undirected?"--":"->",s="",u=e.source.key,c=e.target.key;e.undirected&&u>c&&(i=u,u=c,c=i);var l="(".concat(u,")").concat(a,"(").concat(c,")");n.startsWith("geid_")?t.multi&&(void 0===o[l]?o[l]=0:o[l]++,s+="".concat(o[l],". ")):s+="[".concat(n,"]: "),r[s+=l]=e.attributes}));var i={};for(var a in this)this.hasOwnProperty(a)&&!De.has(a)&&"function"!=typeof this[a]&&"symbol"!==e(a)&&(i[a]=this[a]);return i.attributes=this._attributes,i.nodes=n,i.edges=r,h(i,"constructor",this.constructor),i},r}(v.exports.EventEmitter);"undefined"!=typeof Symbol&&(Ne.prototype[Symbol.for("nodejs.util.inspect.custom")]=Ne.prototype.inspect),[{name:function(e){return"".concat(e,"Edge")},generateKey:!0},{name:function(e){return"".concat(e,"DirectedEdge")},generateKey:!0,type:"directed"},{name:function(e){return"".concat(e,"UndirectedEdge")},generateKey:!0,type:"undirected"},{name:function(e){return"".concat(e,"EdgeWithKey")}},{name:function(e){return"".concat(e,"DirectedEdgeWithKey")},type:"directed"},{name:function(e){return"".concat(e,"UndirectedEdgeWithKey")},type:"undirected"}].forEach((function(e){["add","merge","update"].forEach((function(t){var n=e.name(t),r="add"===t?Me:Pe;e.generateKey?Ne.prototype[n]=function(o,i,a){return r(this,n,!0,"undirected"===(e.type||this.type),null,o,i,a,"update"===t)}:Ne.prototype[n]=function(o,i,a,s){return r(this,n,!1,"undirected"===(e.type||this.type),o,i,a,s,"update"===t)}}))})),function(e){X.forEach((function(t){var n=t.name,r=t.attacher;r(e,n("Node"),0),r(e,n("Source"),1),r(e,n("Target"),2),r(e,n("Opposite"),3)}))}(Ne),function(e){Q.forEach((function(t){var n=t.name,r=t.attacher;r(e,n("Edge"),"mixed"),r(e,n("DirectedEdge"),"directed"),r(e,n("UndirectedEdge"),"undirected")}))}(Ne),function(e){ne.forEach((function(t){!function(e,t){var n=t.name,r=t.type,o=t.direction;e.prototype[n]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return[];if(!arguments.length)return ce(this,r);if(1===arguments.length){e=""+e;var i=this._nodes.get(e);if(void 0===i)throw new H("Graph.".concat(n,': could not find the "').concat(e,'" node in the graph.'));return he(this.multi,"mixed"===r?this.type:r,o,i)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new H("Graph.".concat(n,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(n,': could not find the "').concat(t,'" target node in the graph.'));return me(r,this.multi,o,a,t)}throw new W("Graph.".concat(n,": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length,")."))}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(e,t,n){if("mixed"===r||"mixed"===this.type||r===this.type){if(1===arguments.length)return le(!1,this,r,n=e);if(2===arguments.length){e=""+e,n=t;var a=this._nodes.get(e);if(void 0===a)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return fe(!1,this.multi,"mixed"===r?this.type:r,o,a,n)}if(3===arguments.length){e=""+e,t=""+t;var s=this._nodes.get(e);if(!s)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(i,': could not find the "').concat(t,'" target node in the graph.'));return ge(!1,r,this.multi,o,s,t,n)}throw new W("Graph.".concat(i,": too many arguments (expecting 1, 2 or 3 and got ").concat(arguments.length,")."))}};var a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(){var e,t=Array.prototype.slice.call(arguments),n=t.pop();if(0===t.length){var o=0;"directed"!==r&&(o+=this.undirectedSize),"undirected"!==r&&(o+=this.directedSize),e=new Array(o);var a=0;t.push((function(t,r,o,i,s,u,c){e[a++]=n(t,r,o,i,s,u,c)}))}else e=[],t.push((function(t,r,o,i,a,s,u){e.push(n(t,r,o,i,a,s,u))}));return this[i].apply(this,t),e};var s="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=[];return e.push((function(e,r,o,i,a,s,u){t(e,r,o,i,a,s,u)&&n.push(e)})),this[i].apply(this,e),n};var u="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[u]=function(){var e,t,n=Array.prototype.slice.call(arguments);if(n.length<2||n.length>4)throw new W("Graph.".concat(u,": invalid number of arguments (expecting 2, 3 or 4 and got ").concat(n.length,")."));if("function"==typeof n[n.length-1]&&"function"!=typeof n[n.length-2])throw new W("Graph.".concat(u,": missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array."));2===n.length?(e=n[0],t=n[1],n=[]):3===n.length?(e=n[1],t=n[2],n=[n[0]]):4===n.length&&(e=n[2],t=n[3],n=[n[0],n[1]]);var r=t;return n.push((function(t,n,o,i,a,s,u){r=e(r,t,n,o,i,a,s,u)})),this[i].apply(this,n),r}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i="find"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(e,t,n){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return!1;if(1===arguments.length)return le(!0,this,r,n=e);if(2===arguments.length){e=""+e,n=t;var a=this._nodes.get(e);if(void 0===a)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return fe(!0,this.multi,"mixed"===r?this.type:r,o,a,n)}if(3===arguments.length){e=""+e,t=""+t;var s=this._nodes.get(e);if(!s)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(i,': could not find the "').concat(t,'" target node in the graph.'));return ge(!0,r,this.multi,o,s,t,n)}throw new W("Graph.".concat(i,": too many arguments (expecting 1, 2 or 3 and got ").concat(arguments.length,")."))};var a="some"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();return e.push((function(e,n,r,o,i,a,s){return t(e,n,r,o,i,a,s)})),!!this[i].apply(this,e)};var s="every"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[s]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();return e.push((function(e,n,r,o,i,a,s){return!t(e,n,r,o,i,a,s)})),!this[i].apply(this,e)}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i=n.slice(0,-1)+"Entries";e.prototype[i]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return P.empty();if(!arguments.length)return de(this,r);if(1===arguments.length){e=""+e;var n=this._nodes.get(e);if(!n)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return pe(r,o,n)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(i,': could not find the "').concat(t,'" target node in the graph.'));return ve(r,o,a,t)}throw new W("Graph.".concat(i,": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length,")."))}}(e,t)}))}(Ne),function(e){ye.forEach((function(t){(function(e,t){var n=t.name,r=t.type,o=t.direction;e.prototype[n]=function(e){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return[];e=""+e;var t=this._nodes.get(e);if(void 0===t)throw new H("Graph.".concat(n,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){if("mixed"!==e){if("undirected"===e)return Object.keys(n.undirected);if("string"==typeof t)return Object.keys(n[t])}var r=[];return Ee(!1,e,t,n,(function(e){r.push(e)})),r}("mixed"===r?this.type:r,o,t)}})(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(e,t){if("mixed"===r||"mixed"===this.type||r===this.type){e=""+e;var n=this._nodes.get(e);if(void 0===n)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));Ee(!1,"mixed"===r?this.type:r,o,n,t)}};var a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(e,t){var n=[];return this[i](e,(function(e,r){n.push(t(e,r))})),n};var s="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(e,t){var n=[];return this[i](e,(function(e,r){t(e,r)&&n.push(e)})),n};var u="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[u]=function(e,t,n){if(arguments.length<3)throw new W("Graph.".concat(u,": missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array."));var r=n;return this[i](e,(function(e,n){r=t(r,e,n)})),r}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i=n[0].toUpperCase()+n.slice(1,-1),a="find"+i;e.prototype[a]=function(e,t){if("mixed"===r||"mixed"===this.type||r===this.type){e=""+e;var n=this._nodes.get(e);if(void 0===n)throw new H("Graph.".concat(a,': could not find the "').concat(e,'" node in the graph.'));return Ee(!0,"mixed"===r?this.type:r,o,n,t)}};var s="some"+i;e.prototype[s]=function(e,t){return!!this[a](e,t)};var u="every"+i;e.prototype[u]=function(e,t){return!this[a](e,(function(e,n){return!t(e,n)}))}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i=n.slice(0,-1)+"Entries";e.prototype[i]=function(e){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return P.empty();e=""+e;var t=this._nodes.get(e);if(void 0===t)throw new H("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){if("mixed"!==e){if("undirected"===e)return xe(null,n,n.undirected);if("string"==typeof t)return xe(null,n,n[t])}var r=P.empty(),o=new be;return"undirected"!==e&&("out"!==t&&(r=te(r,xe(o,n,n.in))),"in"!==t&&(r=te(r,xe(o,n,n.out)))),"directed"!==e&&(r=te(r,xe(o,n,n.undirected))),r}("mixed"===r?this.type:r,o,t)}}(e,t)}))}(Ne);var je=function(e){function n(t){var n=u({type:"directed"},t);if("multi"in n&&!1!==n.multi)throw new W("DirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("directed"!==n.type)throw new W('DirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Ne),Re=function(e){function n(t){var n=u({type:"undirected"},t);if("multi"in n&&!1!==n.multi)throw new W("UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("undirected"!==n.type)throw new W('UndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Ne),Ie=function(e){function n(t){var n=u({multi:!0},t);if("multi"in n&&!0!==n.multi)throw new W("MultiGraph.from: inconsistent indication that the graph should be simple in given options!");return e.call(this,n)||this}return t(n,e),n}(Ne),Be=function(e){function n(t){var n=u({type:"directed",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new W("MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("directed"!==n.type)throw new W('MultiDirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Ne),Ge=function(e){function n(t){var n=u({type:"undirected",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new W("MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("undirected"!==n.type)throw new W('MultiUndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Ne);function ze(e){e.from=function(t,n){var r=u({},t.options,n),o=new e(r);return o.import(t),o}}return ze(Ne),ze(je),ze(Re),ze(Ie),ze(Be),ze(Ge),Ne.Graph=Ne,Ne.DirectedGraph=je,Ne.UndirectedGraph=Re,Ne.MultiGraph=Ie,Ne.MultiDirectedGraph=Be,Ne.MultiUndirectedGraph=Ge,Ne.InvalidArgumentsGraphError=W,Ne.NotFoundGraphError=H,Ne.UsageGraphError=q,Ne}()},7677:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;(u=new Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},4660:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(8156)),o=l(n(5099)),i=l(n(6929)),a=l(n(683)),s=l(n(7685)),u=l(n(5751)),c=l(n(8310));function l(e){return e&&e.__esModule?e:{default:e}}function d(e){var t=e.classes,n=e.title,o=e.message;return r.default.createElement("div",null,r.default.createElement("span",{className:t.errorTitle},n),r.default.createElement("span",{className:t.errorMessage},o))}d.defaultProps={title:u.default.text("Error:"),message:u.default.text("Something was wrong"),classes:{}},d.propTypes={title:o.default.string,message:o.default.string,classes:o.default.object};var f=function(e){var t,n=e.error,o=e.onClose,l=e.style,f=e.classes,h=e.className,p=u.default.text("Close");if(r.default.isValidElement(n))t=n;else{var g=n||{},m=g.title,v=g.message;t=r.default.createElement(d,{classes:f,title:m,message:v})}return r.default.createElement("div",{className:(0,c.default)(f.errorBlock,h),style:l},r.default.createElement("div",{className:f.descriptionBlock},t),r.default.createElement("div",{className:f.closeIconContainer},r.default.createElement(i.default,{title:p,placement:"bottom"},r.default.createElement(a.default,{onClick:o,"aria-label":p},r.default.createElement(s.default,null)))))};f.propTypes={id:o.default.oneOfType([o.default.string,o.default.number]),error:o.default.oneOfType([o.default.node,o.default.shape({title:o.default.string,message:o.default.string})]),style:o.default.object,onClose:o.default.func,className:o.default.oneOfType([o.default.string,o.default.object]),classes:o.default.object},f.defaultProps={classes:{}};var h=f;t.default=h},4176:(e,t,n)=>{"use strict";t.ZP=void 0;var r=l(n(8096)),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(8156)),i=l(n(5099)),a=n(72),s=l(n(4660)),u=l(n(1444));function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function l(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function p(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,n,r,i=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,r=m(e);if(t()){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}(u);function u(e){var t,n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),o=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t.autoCloseInterval&&(t.timer&&(clearTimeout(t.timer),t.timer=null),e&&(t.timer=setTimeout((function(){t.handleCloseErrorMessage()}),t.autoCloseInterval)))},(r="processAutoCloseInterval")in(n=g(t=i.call(this,e)))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,u.$$instance=g(t),t.handleCloseErrorMessage=t.handleCloseErrorMessage.bind(g(t)),t.state={errors:[]},t}return t=u,r=[{key:"addError",value:function(e){u.$$instance&&(u.$$instance.setState({errors:u.$$instance.state.errors.concat(e)}),u.$$instance.processAutoCloseInterval())}}],(n=[{key:"handleCloseErrorMessage",value:function(){var e=this.state.errors,t=e.length;this.setState({errors:e.slice(0,t-1)}),this.processAutoCloseInterval(t>1)}},{key:"autoCloseInterval",get:function(){return 1e3*(this.props.autoCloseInterval||0)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.classes,r=this.state.errors,i=r.length,u=r[i-1];return o.default.createElement(a.CSSTransitionGroup,{transitionName:{enter:n.errorContainerEnter,enterActive:n.errorContainerEnterActive,leave:n.errorContainerLeave,leaveActive:n.errorContainerLeaveActive,appear:n.errorContainerEnter,appearActive:n.errorContainerEnterActive},transitionAppearTimeout:600,transitionEnterTimeout:600,transitionLeaveTimeout:300,transitionAppear:!0},Boolean(i)&&o.default.createElement(s.default,{classes:n,key:"errorMessage".concat(i),onClose:this.handleCloseErrorMessage,error:u,className:t}))}}])&&f(t.prototype,n),r&&f(t,r),u}(o.PureComponent);v.propTypes={className:i.default.oneOfType([i.default.string,i.default.object]),classes:i.default.object,autoCloseInterval:i.default.number},v.defaultProps={classes:{}};var y=(0,r.default)(u.default)(v);t.ZP=y},1444:(e,t)=>{"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="#FFFFFF";t.default=function(e){var t;return{errorContainer:{zIndex:2},errorContainerEnter:{opacity:0},errorContainerEnterActive:{opacity:1,transition:"opacity 600ms ease-in"},errorContainerLeave:{opacity:1},errorContainerLeaveActive:{opacity:0,transition:"opacity 300ms ease-in"},errorBlock:(t={zIndex:2,color:r,position:"absolute",display:"flex",left:346,top:64,right:90,background:"linear-gradient(180deg, ".concat("#E54C4C"," 0%, ").concat("#F16262"," 100%)"),minHeight:48,justifyContent:"space-between",alignItems:"baseline",boxShadow:"0 0 24px 0 rgba(0,0,0,0.22)"},n(t,e.breakpoints.down("sm"),{left:0,right:0}),n(t,e.breakpoints.down("md"),{left:288,right:32}),n(t,e.breakpoints.down("lg"),{left:336,right:80}),n(t,e.breakpoints.up("xl"),{left:456,right:200}),t),descriptionBlock:{fontSize:13,padding:"20px 32px",alignSelf:"center",overflow:"hidden",textOverflow:"ellipsis"},errorTitle:{fontWeight:"bold",marginRight:7},errorMessage:{},closeIconContainer:{position:"relative","& button":{color:r,marginTop:5}}}}},4129:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=c(n(8156)),i=c(n(5099)),a=c(n(2205)),s=c(n(9490)),u=n(9685);function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}u.nameShape.isRequired,i.default.bool,i.default.bool,i.default.bool,(0,u.transitionTimeout)("Appear"),(0,u.transitionTimeout)("Enter"),(0,u.transitionTimeout)("Leave");var f=function(e){function t(){var n,r;l(this,t);for(var i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=r=d(this,e.call.apply(e,[this].concat(a))),r._wrapChild=function(e){return o.default.createElement(s.default,{name:r.props.transitionName,appear:r.props.transitionAppear,enter:r.props.transitionEnter,leave:r.props.transitionLeave,appearTimeout:r.props.transitionAppearTimeout,enterTimeout:r.props.transitionEnterTimeout,leaveTimeout:r.props.transitionLeaveTimeout},e)},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return o.default.createElement(a.default,r({},this.props,{childFactory:this._wrapChild}))},t}(o.default.Component);f.displayName="CSSTransitionGroup",f.propTypes={},f.defaultProps={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},t.default=f,e.exports=t.default},9490:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=f(n(2196)),i=f(n(4812)),a=f(n(6463)),s=n(4596),u=f(n(8156)),c=f(n(5099)),l=n(7111),d=n(9685);function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=[];s.transitionEnd&&g.push(s.transitionEnd),s.animationEnd&&g.push(s.animationEnd),c.default.node,d.nameShape.isRequired,c.default.bool,c.default.bool,c.default.bool,c.default.number,c.default.number,c.default.number;var m=function(e){function t(){var n,r;h(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=p(this,e.call.apply(e,[this].concat(i))),r.componentWillAppear=function(e){r.props.appear?r.transition("appear",e,r.props.appearTimeout):e()},r.componentWillEnter=function(e){r.props.enter?r.transition("enter",e,r.props.enterTimeout):e()},r.componentWillLeave=function(e){r.props.leave?r.transition("leave",e,r.props.leaveTimeout):e()},p(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach((function(e){clearTimeout(e)})),this.classNameAndNodeQueue.length=0},t.prototype.transition=function(e,t,n){var r=(0,l.findDOMNode)(this);if(r){var a=this.props.name[e]||this.props.name+"-"+e,u=this.props.name[e+"Active"]||a+"-active",c=null,d=void 0;(0,o.default)(r,a),this.queueClassAndNode(u,r);var f=function(e){e&&e.target!==r||(clearTimeout(c),d&&d(),(0,i.default)(r,a),(0,i.default)(r,u),d&&d(),t&&t())};n?(c=setTimeout(f,n),this.transitionTimeouts.push(c)):s.transitionEnd&&(d=function(e,t){return g.length?g.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){g.length&&g.forEach((function(n){return e.removeEventListener(n,t,!1)}))}}(r,f))}else t&&t()},t.prototype.queueClassAndNode=function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=(0,a.default)((function(){return n.flushClassNameAndNodeQueue()})))},t.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,(0,o.default)(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null},t.prototype.render=function(){var e=r({},this.props);return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,u.default.cloneElement(u.default.Children.only(this.props.children),e)},t}(u.default.Component);m.displayName="CSSTransitionGroupChild",m.propTypes={},t.default=m,e.exports=t.default},2205:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=u(n(8994)),i=u(n(8156)),a=u(n(5099)),s=(u(n(2564)),n(276));function u(e){return e&&e.__esModule?e:{default:e}}a.default.any,a.default.func,a.default.node;var c=function(e){function t(n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,o));return i.performAppear=function(e,t){i.currentlyTransitioningKeys[e]=!0,t.componentWillAppear?t.componentWillAppear(i._handleDoneAppearing.bind(i,e,t)):i._handleDoneAppearing(e,t)},i._handleDoneAppearing=function(e,t){t.componentDidAppear&&t.componentDidAppear(),delete i.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(i.props.children);n&&n.hasOwnProperty(e)||i.performLeave(e,t)},i.performEnter=function(e,t){i.currentlyTransitioningKeys[e]=!0,t.componentWillEnter?t.componentWillEnter(i._handleDoneEntering.bind(i,e,t)):i._handleDoneEntering(e,t)},i._handleDoneEntering=function(e,t){t.componentDidEnter&&t.componentDidEnter(),delete i.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(i.props.children);n&&n.hasOwnProperty(e)||i.performLeave(e,t)},i.performLeave=function(e,t){i.currentlyTransitioningKeys[e]=!0,t.componentWillLeave?t.componentWillLeave(i._handleDoneLeaving.bind(i,e,t)):i._handleDoneLeaving(e,t)},i._handleDoneLeaving=function(e,t){t.componentDidLeave&&t.componentDidLeave(),delete i.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(i.props.children);n&&n.hasOwnProperty(e)?i.keysToEnter.push(e):i.setState((function(t){var n=r({},t.children);return delete n[e],{children:n}}))},i.childRefs=Object.create(null),i.state={children:(0,s.getChildMapping)(n.children)},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},t.prototype.componentDidMount=function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t,this.childRefs[t])},t.prototype.componentWillReceiveProps=function(e){var t=(0,s.getChildMapping)(e.children),n=this.state.children;for(var r in this.setState({children:(0,s.mergeChildMappings)(n,t)}),t){var o=n&&n.hasOwnProperty(r);!t[r]||o||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(var i in n){var a=t&&t.hasOwnProperty(i);!n[i]||a||this.currentlyTransitioningKeys[i]||this.keysToLeave.push(i)}},t.prototype.componentDidUpdate=function(){var e=this,t=this.keysToEnter;this.keysToEnter=[],t.forEach((function(t){return e.performEnter(t,e.childRefs[t])}));var n=this.keysToLeave;this.keysToLeave=[],n.forEach((function(t){return e.performLeave(t,e.childRefs[t])}))},t.prototype.render=function(){var e=this,t=[],n=function(n){var r=e.state.children[n];if(r){var a="string"!=typeof r.ref,s=e.props.childFactory(r),u=function(t){e.childRefs[n]=t};s===r&&a&&(u=(0,o.default)(r.ref,u)),t.push(i.default.cloneElement(s,{key:n,ref:u}))}};for(var a in this.state.children)n(a);var s=r({},this.props);return delete s.transitionLeave,delete s.transitionName,delete s.transitionAppear,delete s.transitionEnter,delete s.childFactory,delete s.transitionLeaveTimeout,delete s.transitionEnterTimeout,delete s.transitionAppearTimeout,delete s.component,i.default.createElement(this.props.component,s,t)},t}(i.default.Component);c.displayName="TransitionGroup",c.propTypes={},c.defaultProps={component:"span",childFactory:function(e){return e}},t.default=c,e.exports=t.default},72:(e,t,n)=>{"use strict";var r=i(n(4129)),o=i(n(2205));function i(e){return e&&e.__esModule?e:{default:e}}e.exports={TransitionGroup:o.default,CSSTransitionGroup:r.default}},276:(e,t,n)=>{"use strict";t.__esModule=!0,t.getChildMapping=function(e){if(!e)return e;var t={};return r.Children.map(e,(function(e){return e})).forEach((function(e){t[e.key]=e})),t},t.mergeChildMappings=function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},o=[];for(var i in e)t.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);var a=void 0,s={};for(var u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var c=r[u][a];s[r[u][a]]=n(c)}s[u]=n(u)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s};var r=n(8156)},9685:(e,t,n)=>{"use strict";t.__esModule=!0,t.nameShape=void 0,t.transitionTimeout=function(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}},o(n(8156));var r=o(n(5099));function o(e){return e&&e.__esModule?e:{default:e}}t.nameShape=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,leave:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterActive:r.default.string,leave:r.default.string,leaveActive:r.default.string,appear:r.default.string,appearActive:r.default.string})])},8765:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigmaContainer=void 0;const r=n(8303),o=r.__importStar(n(8156)),i=n(9358),a=r.__importDefault(n(8996)),s=n(222),u=n(4222);t.SigmaContainer=({graphOptions:e,id:t,className:n,style:r,initialSettings:c,children:l})=>{const d=o.useRef(null),f=o.useRef(null),h={className:`react-sigma-v2 ${n||""}`,id:t,style:r},[p,g]=o.useState(null),m=o.useRef();u.isEqual(m.current,c)||(m.current=c);const v=o.useRef();u.isEqual(v.current,e)||(v.current=e),o.useEffect((()=>{let e=null;return null!==f.current&&(e=new i.Sigma(new a.default(v.current),f.current,m.current),g(e)),()=>{g((()=>(e&&e.kill(),null)))}}),[f,v,m]);const y=o.useMemo((()=>p&&d.current?{sigma:p,container:d.current}:null),[p,d.current]),b=null!==y?o.default.createElement(s.SigmaProvider,{value:y},l):null;return o.default.createElement("div",Object.assign({},h,{ref:d}),o.default.createElement("div",{className:"sigma-container",ref:f}),b)}},222:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSigmaContext=t.SigmaProvider=t.SigmaContext=void 0;const r=n(8156);t.SigmaContext=r.createContext(null),t.SigmaProvider=t.SigmaContext.Provider,t.useSigmaContext=function(){const e=r.useContext(t.SigmaContext);if(null==e)throw new Error("No context provided: useSigmaContext() can only be used in a descendant of <SigmaContainer>");return e}},178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlsContainer=void 0;const r=n(8303).__importDefault(n(8156));t.ControlsContainer=({id:e,className:t,style:n,children:o,position:i="bottom-left"})=>{const a={className:`react-sigma-controls ${t||""} ${i}`,id:e,style:n};return r.default.createElement("div",Object.assign({},a),o)}},8460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ForceAtlasControl=void 0;const r=n(8303),o=r.__importStar(n(8156)),i=r.__importDefault(n(8301)),a=n(4222),s=n(4739);t.ForceAtlasControl=({id:e,className:t,style:n,settings:r,autoRunFor:u=-1,customStopLayout:c,customStartLayout:l})=>{const d=s.useSigma(),f=o.useRef(null);r&&!a.isEqual(f.current,r)&&(f.current=r);const[h,p]=o.useState(null),[g,m]=o.useState(!1);o.useEffect((()=>{if(!d)return;const e=new i.default(d.getGraph(),f.current||{});p(e);let t=null;return u>-1&&d.getGraph().order>0&&(m(!0),t=u>0?window.setTimeout((()=>{m(!1)}),u):null),()=>{e&&e.kill(),t&&clearTimeout(t)}}),[u,f,d]),o.useEffect((()=>{try{h&&(!0===g?h.start():h.stop())}catch(e){}}),[h,g]);const v=!0===g&&!c||!1===g&&!l?"default":"",y={className:`react-sigma-control-forceatlas2 ${g?"running":"stopped"} ${t||""}`,id:e,style:n};return o.default.createElement("div",Object.assign({},y),o.default.createElement("button",{className:v,onClick:()=>m((e=>!e)),title:g?"Stop the layout animation":"Start the layout animation"},!0===g?c:l))}},484:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FullScreenControl=void 0;const r=n(8303).__importStar(n(8156)),o=n(222);t.FullScreenControl=({id:e,className:t,style:n,customEnterFullScreen:i,customExitFullScreen:a})=>{const{container:s}=o.useSigmaContext(),[u,c]=r.useState(!1),l=()=>c((e=>!e));r.useEffect((()=>(document.addEventListener("fullscreenchange",l),()=>document.removeEventListener("fullscreenchange",l))),[l]);const d=u&&!a||!u&&!i?"default":"",f={className:`react-sigma-control-${u?"normalscreen":"fullscreen"} ${t||""}`,id:e,style:n};return document.fullscreenEnabled?r.default.createElement("div",Object.assign({},f),r.default.createElement("button",{className:d,onClick:()=>{return e=s,void(document.fullscreenElement!==e?e.requestFullscreen():document.exitFullscreen&&document.exitFullscreen());var e},title:"Toggle Fullscreen"},u?a:i)):null}},948:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchControl=void 0;const r=n(8303).__importStar(n(8156)),o=n(4739);t.SearchControl=({id:e,className:t,style:n})=>{const i=o.useSigma(),[a,s]=r.useState(""),[u,c]=r.useState([]),[l,d]=r.useState(null);r.useEffect((()=>{const e=[];!l&&a.length>1&&i.getGraph().forEachNode(((t,n)=>{n.label&&n.label.toLowerCase().includes(a.toLowerCase())&&e.push({id:t,label:n.label})})),c(e)}),[a]),r.useEffect((()=>{if(!l)return;i.getGraph().setNodeAttribute(l,"highlighted",!0);const e=i.getNodeDisplayData(l);return e&&i.getCamera().animate(e,{easing:"linear",duration:500}),()=>{i.getGraph().setNodeAttribute(l,"highlighted",!1)}}),[l]);const f={className:`react-sigma-search ${t||""}`,id:e,style:n};return r.default.createElement("div",Object.assign({},f),r.default.createElement("input",{type:"text",placeholder:"Search...",list:"nodes",value:a,onChange:e=>{const t=e.target.value,n=u.find((e=>e.label===t));n?(s(n.label),c([]),d(n.id)):(d(null),s(t))}}),r.default.createElement("datalist",{id:"nodes"},u.map((e=>r.default.createElement("option",{key:e.id,value:e.label},e.label)))))}},3855:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZoomControl=void 0;const r=n(8303).__importDefault(n(8156)),o=n(4739);t.ZoomControl=({className:e,style:t,animationDuration:n=200,customZoomIn:i,customZoomOut:a,customZoomCenter:s})=>{const u=o.useSigma();function c(e){u&&(e?e>0?u.getCamera().animatedZoom({duration:n,factor:1.5}):e<0&&u.getCamera().animatedUnzoom({duration:n,factor:1.5}):u.getCamera().animatedReset({duration:n}))}const l={className:e,style:t};return r.default.createElement(r.default.Fragment,null,r.default.createElement("div",Object.assign({},l,{className:`react-sigma-control-zoom-in ${e||""}`}),r.default.createElement("button",{className:i?"":"default",onClick:()=>c(1),title:"Zoom In"},i)),r.default.createElement("div",Object.assign({},l,{className:`react-sigma-control-zoom-out ${e||""}`}),r.default.createElement("button",{className:a?"":"default",onClick:()=>c(-1),title:"Zoom Out"},a)),r.default.createElement("div",Object.assign({},l,{className:`react-sigma-control-zoom-center ${e||""}`}),r.default.createElement("button",{className:s?"":"default",onClick:()=>c(),title:"See whole graph"},s)))}},6370:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLoadGraph=void 0;const r=n(8156),o=n(4739);t.useLoadGraph=function(){const e=o.useSigma();return r.useCallback(((t,n=!0)=>{e&&t&&(n&&e.getGraph().order>0&&e.getGraph().clear(),e.getGraph().import(t),e.refresh())}),[e])}},4282:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useRegisterEvents=void 0;const r=n(8156),o=n(4739),i=n(5945),a=["clickNode","rightClickNode","downNode","enterNode","leaveNode","doubleClickNode","wheelNode","clickEdge","rightClickEdge","downEdge","enterEdge","leaveEdge","doubleClickEdge","wheelEdge","clickStage","rightClickStage","downStage","doubleClickStage","wheelStage","kill"],s=["click","rightClick","mouseup","mousedown","mousemove","doubleClick","wheel"],u=["mouseup","mousedown","mousemove"],c=["cameraUpdated"];t.useRegisterEvents=function(){const e=o.useSigma(),t=i.useSetSettings(),[n,l]=r.useState({});return r.useEffect((()=>{if(!e||!n)return;const r=Object.keys(n),o={},i={},l=e.getSettings();return r.some((e=>["clickEdge","rightClickEdge","doubleClickEdge","downEdge"].includes(e)))&&!1===l.enableEdgeClickEvents&&(o.enableEdgeClickEvents=!0,i.enableEdgeClickEvents=!1),r.some((e=>["enterEdge","leaveEdge"].includes(e)))&&!1===l.enableEdgeHoverEvents&&(o.enableEdgeHoverEvents=!0,i.enableEdgeHoverEvents=!1),r.some((e=>["wheelEdge"].includes(e)))&&!1===l.enableEdgeWheelEvents&&(o.enableEdgeWheelEvents=!0,i.enableEdgeWheelEvents=!1),Object.keys(o).length>0&&t(o),r.forEach((t=>{const r=n[t];a.includes(t)&&e.on(t,r),s.includes(t)&&e.getMouseCaptor().on(t,r),u.includes(t)&&e.getTouchCaptor().on(t,r),c.includes(t)&&e.getCamera().on("updated",r)})),()=>{let r;for(r in Object.keys(i).length>0&&t(i),n){const t=n[r];a.includes(r)&&e.removeListener(r,t),s.includes(r)&&e.getMouseCaptor().removeListener(r,t),u.includes(r)&&e.getTouchCaptor().removeListener(r,t),c.includes(r)&&e.getCamera().removeListener("updated",t)}}}),[e,n,t]),l}},5945:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSetSettings=void 0;const r=n(8156),o=n(4739);t.useSetSettings=function(){const e=o.useSigma(),[t,n]=r.useState({});return r.useEffect((()=>{if(!e||!t)return;const n={};return Object.keys(t).forEach((r=>{n[r]=t[r],e.setSetting(r,t[r])})),()=>{Object.keys(n).forEach((t=>{e.setSetting(t,n[t])}))}}),[e,t]),n}},4739:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSigma=void 0;const r=n(222);t.useSigma=function(){return r.useSigmaContext().sigma}},4986:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8303);r.__exportStar(n(8765),t),r.__exportStar(n(4739),t),r.__exportStar(n(4282),t),r.__exportStar(n(6370),t),r.__exportStar(n(5945),t),r.__exportStar(n(178),t),r.__exportStar(n(8460),t),r.__exportStar(n(3855),t),r.__exportStar(n(484),t),r.__exportStar(n(948),t),r.__exportStar(n(6799),t)},6799:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4222:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,c=128,l=1/0,d=9007199254740991,f=NaN,h=4294967295,p=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",w="[object Function]",E="[object GeneratorFunction]",x="[object Map]",_="[object Number]",C="[object Object]",S="[object Promise]",A="[object RegExp]",k="[object Set]",O="[object String]",D="[object Symbol]",L="[object WeakMap]",T="[object ArrayBuffer]",M="[object DataView]",P="[object Float32Array]",F="[object Float64Array]",N="[object Int8Array]",j="[object Int16Array]",R="[object Int32Array]",I="[object Uint8Array]",B="[object Uint8ClampedArray]",G="[object Uint16Array]",z="[object Uint32Array]",U=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,Y=RegExp(q.source),K=RegExp(V.source),$=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="a-z\\xdf-\\xf6\\xf8-\\xff",_e="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Se="["+Ce+"]",Ae="["+Ee+"]",ke="\\d+",Oe="["+xe+"]",De="[^\\ud800-\\udfff"+Ce+ke+"\\u2700-\\u27bf"+xe+_e+"]",Le="\\ud83c[\\udffb-\\udfff]",Te="[^\\ud800-\\udfff]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",Pe="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+_e+"]",Ne="(?:"+Oe+"|"+De+")",je="(?:"+Fe+"|"+De+")",Re="(?:['’](?:d|ll|m|re|s|t|ve))?",Ie="(?:['’](?:D|LL|M|RE|S|T|VE))?",Be="(?:"+Ae+"|"+Le+")?",Ge="[\\ufe0e\\ufe0f]?",ze=Ge+Be+"(?:\\u200d(?:"+[Te,Me,Pe].join("|")+")"+Ge+Be+")*",Ue="(?:"+["[\\u2700-\\u27bf]",Me,Pe].join("|")+")"+ze,We="(?:"+[Te+Ae+"?",Ae,Me,Pe,"[\\ud800-\\udfff]"].join("|")+")",He=RegExp("['’]","g"),qe=RegExp(Ae,"g"),Ve=RegExp(Le+"(?="+Le+")|"+We+ze,"g"),Ye=RegExp([Fe+"?"+Oe+"+"+Re+"(?="+[Se,Fe,"$"].join("|")+")",je+"+"+Ie+"(?="+[Se,Fe+Ne,"$"].join("|")+")",Fe+"?"+Ne+"+"+Re,Fe+"+"+Ie,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ke,Ue].join("|"),"g"),Ke=RegExp("[\\u200d\\ud800-\\udfff"+Ee+"\\ufe0e\\ufe0f]"),$e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ze=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xe=-1,Qe={};Qe[P]=Qe[F]=Qe[N]=Qe[j]=Qe[R]=Qe[I]=Qe[B]=Qe[G]=Qe[z]=!0,Qe[g]=Qe[m]=Qe[T]=Qe[v]=Qe[M]=Qe[y]=Qe[b]=Qe[w]=Qe[x]=Qe[_]=Qe[C]=Qe[A]=Qe[k]=Qe[O]=Qe[L]=!1;var Je={};Je[g]=Je[m]=Je[T]=Je[M]=Je[v]=Je[y]=Je[P]=Je[F]=Je[N]=Je[j]=Je[R]=Je[x]=Je[_]=Je[C]=Je[A]=Je[k]=Je[O]=Je[D]=Je[I]=Je[B]=Je[G]=Je[z]=!0,Je[b]=Je[w]=Je[L]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ot="object"==typeof self&&self&&self.Object===Object&&self,it=rt||ot||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,ut=st&&st.exports===at,ct=ut&&rt.process,lt=function(){try{return st&&st.require&&st.require("util").types||ct&&ct.binding&&ct.binding("util")}catch(e){}}(),dt=lt&&lt.isArrayBuffer,ft=lt&&lt.isDate,ht=lt&&lt.isMap,pt=lt&&lt.isRegExp,gt=lt&&lt.isSet,mt=lt&&lt.isTypedArray;function vt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function yt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function wt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Et(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function xt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function _t(e,t){return!(null==e||!e.length)&&Pt(e,t,0)>-1}function Ct(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function St(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function At(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function kt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ot(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Lt=Rt("length");function Tt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Mt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Pt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Mt(e,Nt,n)}function Ft(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Nt(e){return e!=e}function jt(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:f}function Rt(e){return function(t){return null==t?o:t[e]}}function It(e){return function(t){return null==e?o:e[t]}}function Bt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Gt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function zt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ut(e){return e?e.slice(0,sn(e)+1).replace(re,""):e}function Wt(e){return function(t){return e(t)}}function Ht(e,t){return St(t,(function(t){return e[t]}))}function qt(e,t){return e.has(t)}function Vt(e,t){for(var n=-1,r=e.length;++n<r&&Pt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length;n--&&Pt(t,e[n],0)>-1;);return n}function Kt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var $t=It({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Zt=It({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Xt(e){return"\\"+et[e]}function Qt(e){return Ke.test(e)}function Jt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Qt(e)?function(e){for(var t=Ve.lastIndex=0;Ve.test(e);)++t;return t}(e):Lt(e)}function an(e){return Qt(e)?function(e){return e.match(Ve)||[]}(e):function(e){return e.split("")}(e)}function sn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var un=It({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),cn=function e(t){var n,r=(t=null==t?it:cn.defaults(it.Object(),t,cn.pick(it,Ze))).Array,oe=t.Date,Ee=t.Error,xe=t.Function,_e=t.Math,Ce=t.Object,Se=t.RegExp,Ae=t.String,ke=t.TypeError,Oe=r.prototype,De=xe.prototype,Le=Ce.prototype,Te=t["__core-js_shared__"],Me=De.toString,Pe=Le.hasOwnProperty,Fe=0,Ne=(n=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",je=Le.toString,Re=Me.call(Ce),Ie=it._,Be=Se("^"+Me.call(Pe).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=ut?t.Buffer:o,ze=t.Symbol,Ue=t.Uint8Array,We=Ge?Ge.allocUnsafe:o,Ve=en(Ce.getPrototypeOf,Ce),Ke=Ce.create,et=Le.propertyIsEnumerable,rt=Oe.splice,ot=ze?ze.isConcatSpreadable:o,at=ze?ze.iterator:o,st=ze?ze.toStringTag:o,ct=function(){try{var e=li(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==it.clearTimeout&&t.clearTimeout,Lt=oe&&oe.now!==it.Date.now&&oe.now,It=t.setTimeout!==it.setTimeout&&t.setTimeout,ln=_e.ceil,dn=_e.floor,fn=Ce.getOwnPropertySymbols,hn=Ge?Ge.isBuffer:o,pn=t.isFinite,gn=Oe.join,mn=en(Ce.keys,Ce),vn=_e.max,yn=_e.min,bn=oe.now,wn=t.parseInt,En=_e.random,xn=Oe.reverse,_n=li(t,"DataView"),Cn=li(t,"Map"),Sn=li(t,"Promise"),An=li(t,"Set"),kn=li(t,"WeakMap"),On=li(Ce,"create"),Dn=kn&&new kn,Ln={},Tn=Bi(_n),Mn=Bi(Cn),Pn=Bi(Sn),Fn=Bi(An),Nn=Bi(kn),jn=ze?ze.prototype:o,Rn=jn?jn.valueOf:o,In=jn?jn.toString:o;function Bn(e){if(ns(e)&&!qa(e)&&!(e instanceof Wn)){if(e instanceof Un)return e;if(Pe.call(e,"__wrapped__"))return Gi(e)}return new Un(e)}var Gn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function zn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Vn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new qn(e);this.size=t.size}function $n(e,t){var n=qa(e),r=!n&&Ha(e),o=!n&&!r&&$a(e),i=!n&&!r&&!o&&ls(e),a=n||r||o||i,s=a?zt(e.length,Ae):[],u=s.length;for(var c in e)!t&&!Pe.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vi(c,u))||s.push(c);return s}function Zn(e){var t=e.length;return t?e[Vr(0,t-1)]:o}function Xn(e,t){return Fi(Oo(e),ar(t,0,e.length))}function Qn(e){return Fi(Oo(e))}function Jn(e,t,n){(n!==o&&!za(e[t],n)||n===o&&!(t in e))&&or(e,t,n)}function er(e,t,n){var r=e[t];Pe.call(e,t)&&za(r,n)&&(n!==o||t in e)||or(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(za(e[n][0],t))return n;return-1}function nr(e,t,n,r){return dr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function rr(e,t){return e&&Do(t,Ms(t),e)}function or(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:ks(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function sr(e,t,n,r,i,a){var s,u=1&t,c=2&t,l=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ts(e))return e;var d=qa(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Pe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Oo(e,s)}else{var f=hi(e),h=f==w||f==E;if($a(e))return xo(e,u);if(f==C||f==g||h&&!i){if(s=c||h?{}:gi(e),!u)return c?function(e,t){return Do(e,fi(e),t)}(e,function(e,t){return e&&Do(t,Ps(t),e)}(s,e)):function(e,t){return Do(e,di(e),t)}(e,rr(s,e))}else{if(!Je[f])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case T:return _o(e);case v:case y:return new o(+e);case M:return function(e,t){var n=t?_o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case P:case F:case N:case j:case R:case I:case B:case G:case z:return Co(e,n);case x:return new o;case _:case O:return new o(e);case A:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new o;case D:return r=e,Rn?Ce(Rn.call(r)):{}}}(e,f,u)}}a||(a=new Kn);var p=a.get(e);if(p)return p;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,o){s.set(o,sr(r,t,n,o,e,a))}));var m=d?o:(l?c?ri:ni:c?Ps:Ms)(e);return bt(m||e,(function(r,o){m&&(r=e[o=r]),er(s,o,sr(r,t,n,o,e,a))})),s}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ce(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new ke(i);return Li((function(){e.apply(o,n)}),t)}function lr(e,t,n,r){var o=-1,i=_t,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=St(t,Wt(n))),r?(i=Ct,a=!1):t.length>=200&&(i=qt,a=!1,t=new Yn(t));e:for(;++o<s;){var l=e[o],d=null==n?l:n(l);if(l=r||0!==l?l:0,a&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;u.push(l)}else i(t,d,r)||u.push(l)}return u}Bn.templateSettings={escape:$,evaluate:Z,interpolate:X,variable:"",imports:{_:Bn}},Bn.prototype=zn.prototype,Bn.prototype.constructor=Bn,Un.prototype=Gn(zn.prototype),Un.prototype.constructor=Un,Wn.prototype=Gn(zn.prototype),Wn.prototype.constructor=Wn,Hn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===a?o:n}return Pe.call(t,e)?t[e]:o},Hn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==o:Pe.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===o?a:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},qn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?o:t[n][1]},qn.prototype.has=function(e){return tr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(Cn||qn),string:new Hn}},Vn.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},Vn.prototype.get=function(e){return ui(this,e).get(e)},Vn.prototype.has=function(e){return ui(this,e).has(e)},Vn.prototype.set=function(e,t){var n=ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,a),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new qn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vn(r)}return n.set(e,t),this.size=n.size,this};var dr=Mo(br),fr=Mo(wr,!0);function hr(e,t){var n=!0;return dr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function pr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(u===o?s==s&&!cs(s):n(s,u)))var u=s,c=a}return c}function gr(e,t){var n=[];return dr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function mr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=mi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?mr(s,t-1,n,r,o):At(o,s):r||(o[o.length]=s)}return o}var vr=Po(),yr=Po(!0);function br(e,t){return e&&vr(e,t,Ms)}function wr(e,t){return e&&yr(e,t,Ms)}function Er(e,t){return xt(t,(function(t){return Qa(e[t])}))}function xr(e,t){for(var n=0,r=(t=yo(t,e)).length;null!=e&&n<r;)e=e[Ii(t[n++])];return n&&n==r?e:o}function _r(e,t,n){var r=t(e);return qa(e)?r:At(r,n(e))}function Cr(e){return null==e?e===o?"[object Undefined]":"[object Null]":st&&st in Ce(e)?function(e){var t=Pe.call(e,st),n=e[st];try{e[st]=o;var r=!0}catch(e){}var i=je.call(e);return r&&(t?e[st]=n:delete e[st]),i}(e):function(e){return je.call(e)}(e)}function Sr(e,t){return e>t}function Ar(e,t){return null!=e&&Pe.call(e,t)}function kr(e,t){return null!=e&&t in Ce(e)}function Or(e,t,n){for(var i=n?Ct:_t,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,d=[];u--;){var f=e[u];u&&t&&(f=St(f,Wt(t))),l=yn(f.length,l),c[u]=!n&&(t||a>=120&&f.length>=120)?new Yn(u&&f):o}f=e[0];var h=-1,p=c[0];e:for(;++h<a&&d.length<l;){var g=f[h],m=t?t(g):g;if(g=n||0!==g?g:0,!(p?qt(p,m):i(d,m,n))){for(u=s;--u;){var v=c[u];if(!(v?qt(v,m):i(e[u],m,n)))continue e}p&&p.push(m),d.push(g)}}return d}function Dr(e,t,n){var r=null==(e=Ai(e,t=yo(t,e)))?e:e[Ii(Xi(t))];return null==r?o:vt(r,e,n)}function Lr(e){return ns(e)&&Cr(e)==g}function Tr(e,t,n,r,i){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=qa(e),u=qa(t),c=s?m:hi(e),l=u?m:hi(t),d=(c=c==g?C:c)==C,f=(l=l==g?C:l)==C,h=c==l;if(h&&$a(e)){if(!$a(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new Kn),s||ls(e)?ei(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!i(new Ue(e),new Ue(t)));case v:case y:case _:return za(+e,+t);case b:return e.name==t.name&&e.message==t.message;case A:case O:return e==t+"";case x:var s=Jt;case k:var u=1&r;if(s||(s=nn),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=ei(s(e),s(t),r,o,i,a);return a.delete(e),l;case D:if(Rn)return Rn.call(e)==Rn.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var p=d&&Pe.call(e,"__wrapped__"),w=f&&Pe.call(t,"__wrapped__");if(p||w){var E=p?e.value():e,S=w?t.value():t;return a||(a=new Kn),i(E,S,n,r,a)}}return!!h&&(a||(a=new Kn),function(e,t,n,r,i,a){var s=1&n,u=ni(e),c=u.length;if(c!=ni(t).length&&!s)return!1;for(var l=c;l--;){var d=u[l];if(!(s?d in t:Pe.call(t,d)))return!1}var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=s;++l<c;){var m=e[d=u[l]],v=t[d];if(r)var y=s?r(v,m,d,t,e,a):r(m,v,d,e,t,a);if(!(y===o?m===v||i(m,v,n,r,a):y)){p=!1;break}g||(g="constructor"==d)}if(p&&!g){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,r,i,a))}(e,t,n,r,Tr,i))}function Mr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Ce(e);i--;){var u=n[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var c=(u=n[i])[0],l=e[c],d=u[1];if(s&&u[2]){if(l===o&&!(c in e))return!1}else{var f=new Kn;if(r)var h=r(l,d,c,e,t,f);if(!(h===o?Tr(d,l,3,r,f):h))return!1}}return!0}function Pr(e){return!(!ts(e)||(t=e,Ne&&Ne in t))&&(Qa(e)?Be:ge).test(Bi(e));var t}function Fr(e){return"function"==typeof e?e:null==e?ou:"object"==typeof e?qa(e)?Br(e[0],e[1]):Ir(e):hu(e)}function Nr(e){if(!xi(e))return mn(e);var t=[];for(var n in Ce(e))Pe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function jr(e,t){return e<t}function Rr(e,t){var n=-1,o=Ya(e)?r(e.length):[];return dr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Ir(e){var t=ci(e);return 1==t.length&&t[0][2]?Ci(t[0][0],t[0][1]):function(n){return n===e||Mr(n,e,t)}}function Br(e,t){return bi(e)&&_i(t)?Ci(Ii(e),t):function(n){var r=ks(n,e);return r===o&&r===t?Os(n,e):Tr(t,r,3)}}function Gr(e,t,n,r,i){e!==t&&vr(t,(function(a,s){if(i||(i=new Kn),ts(a))!function(e,t,n,r,i,a,s){var u=Oi(e,n),c=Oi(t,n),l=s.get(c);if(l)Jn(e,n,l);else{var d=a?a(u,c,n+"",e,t,s):o,f=d===o;if(f){var h=qa(c),p=!h&&$a(c),g=!h&&!p&&ls(c);d=c,h||p||g?qa(u)?d=u:Ka(u)?d=Oo(u):p?(f=!1,d=xo(c,!0)):g?(f=!1,d=Co(c,!0)):d=[]:is(c)||Ha(c)?(d=u,Ha(u)?d=ys(u):ts(u)&&!Qa(u)||(d=gi(c))):f=!1}f&&(s.set(c,d),i(d,c,r,a,s),s.delete(c)),Jn(e,n,d)}}(e,t,s,n,Gr,r,i);else{var u=r?r(Oi(e,s),a,s+"",e,t,i):o;u===o&&(u=a),Jn(e,s,u)}}),Ps)}function zr(e,t){var n=e.length;if(n)return vi(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?St(t,(function(e){return qa(e)?function(t){return xr(t,1===e.length?e[0]:e)}:e})):[ou];var r=-1;t=St(t,Wt(si()));var o=Rr(e,(function(e,n,o){var i=St(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var u=So(o[r],i[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Wr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=xr(e,a);n(s,a)&&Xr(i,yo(a,e),s)}return i}function Hr(e,t,n,r){var o=r?Ft:Pt,i=-1,a=t.length,s=e;for(e===t&&(t=Oo(t)),n&&(s=St(e,Wt(n)));++i<a;)for(var u=0,c=t[i],l=n?n(c):c;(u=o(s,l,u,r))>-1;)s!==e&&rt.call(s,u,1),rt.call(e,u,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;vi(o)?rt.call(e,o,1):co(e,o)}}return e}function Vr(e,t){return e+dn(En()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=dn(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Ti(Si(e,t,ou),e+"")}function $r(e){return Zn(zs(e))}function Zr(e,t){var n=zs(e);return Fi(n,ar(t,0,n.length))}function Xr(e,t,n,r){if(!ts(e))return e;for(var i=-1,a=(t=yo(t,e)).length,s=a-1,u=e;null!=u&&++i<a;){var c=Ii(t[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=u[c];(l=r?r(d,c,u):o)===o&&(l=ts(d)?d:vi(t[i+1])?[]:{})}er(u,c,l),u=u[c]}return e}var Qr=Dn?function(e,t){return Dn.set(e,t),e}:ou,Jr=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:tu(t),writable:!0})}:ou;function eo(e){return Fi(zs(e))}function to(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function no(e,t){var n;return dr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,ou,n)}function oo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,u=null===t,c=cs(t),l=t===o;i<a;){var d=dn((i+a)/2),f=n(e[d]),h=f!==o,p=null===f,g=f==f,m=cs(f);if(s)var v=r||g;else v=l?g&&(r||h):u?g&&h&&(r||!p):c?g&&h&&!p&&(r||!m):!p&&!m&&(r?f<=t:f<t);v?i=d+1:a=d}return yn(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!za(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:cs(e)?f:+e}function so(e){if("string"==typeof e)return e;if(qa(e))return St(e,so)+"";if(cs(e))return In?In.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function uo(e,t,n){var r=-1,o=_t,i=e.length,a=!0,s=[],u=s;if(n)a=!1,o=Ct;else if(i>=200){var c=t?null:Ko(e);if(c)return nn(c);a=!1,o=qt,u=new Yn}else u=t?[]:s;e:for(;++r<i;){var l=e[r],d=t?t(l):l;if(l=n||0!==l?l:0,a&&d==d){for(var f=u.length;f--;)if(u[f]===d)continue e;t&&u.push(d),s.push(l)}else o(u,d,n)||(u!==s&&u.push(d),s.push(l))}return s}function co(e,t){return null==(e=Ai(e,t=yo(t,e)))||delete e[Ii(Xi(t))]}function lo(e,t,n,r){return Xr(e,t,n(xr(e,t)),r)}function fo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function ho(e,t){var n=e;return n instanceof Wn&&(n=n.value()),kt(t,(function(e,t){return t.func.apply(t.thisArg,At([e],t.args))}),n)}function po(e,t,n){var o=e.length;if(o<2)return o?uo(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],u=-1;++u<o;)u!=i&&(a[i]=lr(a[i]||s,e[u],t,n));return uo(mr(a,1),t,n)}function go(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var u=r<a?t[r]:o;n(s,e[r],u)}return s}function mo(e){return Ka(e)?e:[]}function vo(e){return"function"==typeof e?e:ou}function yo(e,t){return qa(e)?e:bi(e,t)?[e]:Ri(bs(e))}var bo=Kr;function wo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:to(e,t,n)}var Eo=lt||function(e){return it.clearTimeout(e)};function xo(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function _o(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Co(e,t){var n=t?_o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function So(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=cs(e),s=t!==o,u=null===t,c=t==t,l=cs(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||u&&n&&i||!s&&i||!c)return-1}return 0}function Ao(e,t,n,o){for(var i=-1,a=e.length,s=n.length,u=-1,c=t.length,l=vn(a-s,0),d=r(c+l),f=!o;++u<c;)d[u]=t[u];for(;++i<s;)(f||i<a)&&(d[n[i]]=e[i]);for(;l--;)d[u++]=e[i++];return d}function ko(e,t,n,o){for(var i=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,d=vn(a-u,0),f=r(d+l),h=!o;++i<d;)f[i]=e[i];for(var p=i;++c<l;)f[p+c]=t[c];for(;++s<u;)(h||i<a)&&(f[p+n[s]]=e[i++]);return f}function Oo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Do(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):o;c===o&&(c=e[u]),i?or(n,u,c):er(n,u,c)}return n}function Lo(e,t){return function(n,r){var o=qa(n)?yt:nr,i=t?t():{};return o(n,e,si(r,2),i)}}function To(e){return Kr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&yi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Ce(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Mo(e,t){return function(n,r){if(null==n)return n;if(!Ya(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ce(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Po(e){return function(t,n,r){for(var o=-1,i=Ce(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}function Fo(e){return function(t){var n=Qt(t=bs(t))?an(t):o,r=n?n[0]:t.charAt(0),i=n?wo(n,1).join(""):t.slice(1);return r[e]()+i}}function No(e){return function(t){return kt(Qs(Hs(t).replace(He,"")),e,"")}}function jo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Gn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Ro(e){return function(t,n,r){var i=Ce(t);if(!Ya(t)){var a=si(n,3);t=Ms(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Io(e){return ti((function(t){var n=t.length,r=n,a=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new ke(i);if(a&&!u&&"wrapper"==ii(s))var u=new Un([],!0)}for(r=u?r:n;++r<n;){var c=ii(s=t[r]),l="wrapper"==c?oi(s):o;u=l&&wi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[ii(l[0])].apply(u,l[3]):1==s.length&&wi(s)?u[c]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&qa(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Bo(e,t,n,i,a,s,u,l,d,f){var h=t&c,p=1&t,g=2&t,m=24&t,v=512&t,y=g?o:jo(e);return function o(){for(var c=arguments.length,b=r(c),w=c;w--;)b[w]=arguments[w];if(m)var E=ai(o),x=Kt(b,E);if(i&&(b=Ao(b,i,a,m)),s&&(b=ko(b,s,u,m)),c-=x,m&&c<f){var _=tn(b,E);return Vo(e,t,Bo,o.placeholder,n,b,_,l,d,f-c)}var C=p?n:this,S=g?C[e]:e;return c=b.length,l?b=ki(b,l):v&&c>1&&b.reverse(),h&&d<c&&(b.length=d),this&&this!==it&&this instanceof o&&(S=y||jo(S)),S.apply(C,b)}}function Go(e,t){return function(n,r){return function(e,t,n,r){return br(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function zo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=so(n),r=so(r)):(n=ao(n),r=ao(r)),i=e(n,r)}return i}}function Uo(e){return ti((function(t){return t=St(t,Wt(si())),Kr((function(n){var r=this;return e(t,(function(e){return vt(e,r,n)}))}))}))}function Wo(e,t){var n=(t=t===o?" ":so(t)).length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,ln(e/on(t)));return Qt(t)?wo(an(r),0,e).join(""):r.slice(0,e)}function Ho(e){return function(t,n,i){return i&&"number"!=typeof i&&yi(t,n,i)&&(n=i=o),t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n,o){for(var i=-1,a=vn(ln((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:ps(i),e)}}function qo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function Vo(e,t,n,r,i,a,s,c,l,d){var f=8&t;t|=f?u:64,4&(t&=~(f?64:u))||(t&=-4);var h=[e,t,i,f?a:o,f?s:o,f?o:a,f?o:s,c,l,d],p=n.apply(o,h);return wi(e)&&Di(p,h),p.placeholder=r,Mi(p,e,t)}function Yo(e){var t=_e[e];return function(e,n){if(e=vs(e),(n=null==n?0:yn(gs(n),292))&&pn(e)){var r=(bs(e)+"e").split("e");return+((r=(bs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ko=An&&1/nn(new An([,-0]))[1]==l?function(e){return new An(e)}:cu;function $o(e){return function(t){var n=hi(t);return n==x?Jt(t):n==k?rn(t):function(e,t){return St(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Zo(e,t,n,a,l,d,f,h){var p=2&t;if(!p&&"function"!=typeof e)throw new ke(i);var g=a?a.length:0;if(g||(t&=-97,a=l=o),f=f===o?f:vn(gs(f),0),h=h===o?h:gs(h),g-=l?l.length:0,64&t){var m=a,v=l;a=l=o}var y=p?o:oi(e),b=[e,t,n,a,l,m,v,d,f,h];if(y&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Ao(l,u,t[4]):u,e[4]=l?tn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?ko(l,u,t[6]):u,e[6]=l?tn(e[5],s):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,y),e=b[0],t=b[1],n=b[2],a=b[3],l=b[4],!(h=b[9]=b[9]===o?p?0:e.length:vn(b[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var i=jo(e);return function a(){for(var s=arguments.length,u=r(s),c=s,l=ai(a);c--;)u[c]=arguments[c];var d=s<3&&u[0]!==l&&u[s-1]!==l?[]:tn(u,l);return(s-=d.length)<n?Vo(e,t,Bo,a.placeholder,o,u,d,o,o,n-s):vt(this&&this!==it&&this instanceof a?i:e,this,u)}}(e,t,h):t!=u&&33!=t||l.length?Bo.apply(o,b):function(e,t,n,o){var i=1&t,a=jo(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=o.length,d=r(l+u),f=this&&this!==it&&this instanceof t?a:e;++c<l;)d[c]=o[c];for(;u--;)d[c++]=arguments[++s];return vt(f,i?n:this,d)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,o=jo(e);return function t(){return(this&&this!==it&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Mi((y?Qr:Di)(w,b),e,t)}function Xo(e,t,n,r){return e===o||za(e,Le[n])&&!Pe.call(r,n)?t:e}function Qo(e,t,n,r,i,a){return ts(e)&&ts(t)&&(a.set(t,e),Gr(e,t,o,Qo,a),a.delete(t)),e}function Jo(e){return is(e)?o:e}function ei(e,t,n,r,i,a){var s=1&n,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var f=-1,h=!0,p=2&n?new Yn:o;for(a.set(e,t),a.set(t,e);++f<u;){var g=e[f],m=t[f];if(r)var v=s?r(m,g,f,t,e,a):r(g,m,f,e,t,a);if(v!==o){if(v)continue;h=!1;break}if(p){if(!Dt(t,(function(e,t){if(!qt(p,t)&&(g===e||i(g,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(g!==m&&!i(g,m,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function ti(e){return Ti(Si(e,o,Vi),e+"")}function ni(e){return _r(e,Ms,di)}function ri(e){return _r(e,Ps,fi)}var oi=Dn?function(e){return Dn.get(e)}:cu;function ii(e){for(var t=e.name+"",n=Ln[t],r=Pe.call(Ln,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(Pe.call(Bn,"placeholder")?Bn:e).placeholder}function si(){var e=Bn.iteratee||iu;return e=e===iu?Fr:e,arguments.length?e(arguments[0],arguments[1]):e}function ui(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ci(e){for(var t=Ms(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,_i(o)]}return t}function li(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Pr(n)?n:o}var di=fn?function(e){return null==e?[]:(e=Ce(e),xt(fn(e),(function(t){return et.call(e,t)})))}:mu,fi=fn?function(e){for(var t=[];e;)At(t,di(e)),e=Ve(e);return t}:mu,hi=Cr;function pi(e,t,n){for(var r=-1,o=(t=yo(t,e)).length,i=!1;++r<o;){var a=Ii(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&es(o)&&vi(a,o)&&(qa(e)||Ha(e))}function gi(e){return"function"!=typeof e.constructor||xi(e)?{}:Gn(Ve(e))}function mi(e){return qa(e)||Ha(e)||!!(ot&&e&&e[ot])}function vi(e,t){var n=typeof e;return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function yi(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Ya(n)&&vi(t,n.length):"string"==r&&t in n)&&za(n[t],e)}function bi(e,t){if(qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||J.test(e)||!Q.test(e)||null!=t&&e in Ce(t)}function wi(e){var t=ii(e),n=Bn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(_n&&hi(new _n(new ArrayBuffer(1)))!=M||Cn&&hi(new Cn)!=x||Sn&&hi(Sn.resolve())!=S||An&&hi(new An)!=k||kn&&hi(new kn)!=L)&&(hi=function(e){var t=Cr(e),n=t==C?e.constructor:o,r=n?Bi(n):"";if(r)switch(r){case Tn:return M;case Mn:return x;case Pn:return S;case Fn:return k;case Nn:return L}return t});var Ei=Te?Qa:vu;function xi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function _i(e){return e==e&&!ts(e)}function Ci(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Ce(n))}}function Si(e,t,n){return t=vn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=vn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var u=r(t+1);++i<t;)u[i]=o[i];return u[t]=n(s),vt(e,this,u)}}function Ai(e,t){return t.length<2?e:xr(e,to(t,0,-1))}function ki(e,t){for(var n=e.length,r=yn(t.length,n),i=Oo(e);r--;){var a=t[r];e[r]=vi(a,n)?i[a]:o}return e}function Oi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Di=Pi(Qr),Li=It||function(e,t){return it.setTimeout(e,t)},Ti=Pi(Jr);function Mi(e,t,n){var r=t+"";return Ti(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return bt(p,(function(n){var r="_."+n[0];t&n[1]&&!_t(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Pi(e){var t=0,n=0;return function(){var r=bn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Fi(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Vr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Ni,ji,Ri=(Ni=Na((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(le,"$1"):n||e)})),t}),(function(e){return 500===ji.size&&ji.clear(),e})),ji=Ni.cache,Ni);function Ii(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Bi(e){if(null!=e){try{return Me.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Gi(e){if(e instanceof Wn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Oo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Kr((function(e,t){return Ka(e)?lr(e,mr(t,1,Ka,!0)):[]})),Ui=Kr((function(e,t){var n=Xi(t);return Ka(n)&&(n=o),Ka(e)?lr(e,mr(t,1,Ka,!0),si(n,2)):[]})),Wi=Kr((function(e,t){var n=Xi(t);return Ka(n)&&(n=o),Ka(e)?lr(e,mr(t,1,Ka,!0),o,n):[]}));function Hi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gs(n);return o<0&&(o=vn(r+o,0)),Mt(e,si(t,3),o)}function qi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=gs(n),i=n<0?vn(r+i,0):yn(i,r-1)),Mt(e,si(t,3),i,!0)}function Vi(e){return null!=e&&e.length?mr(e,1):[]}function Yi(e){return e&&e.length?e[0]:o}var Ki=Kr((function(e){var t=St(e,mo);return t.length&&t[0]===e[0]?Or(t):[]})),$i=Kr((function(e){var t=Xi(e),n=St(e,mo);return t===Xi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Or(n,si(t,2)):[]})),Zi=Kr((function(e){var t=Xi(e),n=St(e,mo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Or(n,o,t):[]}));function Xi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Qi=Kr(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var ea=ti((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return qr(e,St(t,(function(e){return vi(e,n)?+e:e})).sort(So)),r}));function ta(e){return null==e?e:xn.call(e)}var na=Kr((function(e){return uo(mr(e,1,Ka,!0))})),ra=Kr((function(e){var t=Xi(e);return Ka(t)&&(t=o),uo(mr(e,1,Ka,!0),si(t,2))})),oa=Kr((function(e){var t=Xi(e);return t="function"==typeof t?t:o,uo(mr(e,1,Ka,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=xt(e,(function(e){if(Ka(e))return t=vn(e.length,t),!0})),zt(t,(function(t){return St(e,Rt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:St(n,(function(e){return vt(t,o,e)}))}var sa=Kr((function(e,t){return Ka(e)?lr(e,t):[]})),ua=Kr((function(e){return po(xt(e,Ka))})),ca=Kr((function(e){var t=Xi(e);return Ka(t)&&(t=o),po(xt(e,Ka),si(t,2))})),la=Kr((function(e){var t=Xi(e);return t="function"==typeof t?t:o,po(xt(e,Ka),o,t)})),da=Kr(ia),fa=Kr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function ha(e){var t=Bn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var ga=ti((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),ma=Lo((function(e,t,n){Pe.call(e,n)?++e[n]:or(e,n,1)})),va=Ro(Hi),ya=Ro(qi);function ba(e,t){return(qa(e)?bt:dr)(e,si(t,3))}function wa(e,t){return(qa(e)?wt:fr)(e,si(t,3))}var Ea=Lo((function(e,t,n){Pe.call(e,n)?e[n].push(t):or(e,n,[t])})),xa=Kr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ya(e)?r(e.length):[];return dr(e,(function(e){a[++o]=i?vt(t,e,n):Dr(e,t,n)})),a})),_a=Lo((function(e,t,n){or(e,n,t)}));function Ca(e,t){return(qa(e)?St:Rr)(e,si(t,3))}var Sa=Lo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Aa=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yi(e,t[0],t[1])?t=[]:n>2&&yi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,mr(t,1),[])})),ka=Lt||function(){return it.Date.now()};function Oa(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Zo(e,c,o,o,o,o,t)}function Da(e,t){var n;if("function"!=typeof t)throw new ke(i);return e=gs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var La=Kr((function(e,t,n){var r=1;if(n.length){var o=tn(n,ai(La));r|=u}return Zo(e,r,t,n,o)})),Ta=Kr((function(e,t,n){var r=3;if(n.length){var o=tn(n,ai(Ta));r|=u}return Zo(t,r,e,n,o)}));function Ma(e,t,n){var r,a,s,u,c,l,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new ke(i);function g(t){var n=r,i=a;return r=a=o,d=t,u=e.apply(i,n)}function m(e){return d=e,c=Li(y,t),f?g(e):u}function v(e){var n=e-l;return l===o||n>=t||n<0||h&&e-d>=s}function y(){var e=ka();if(v(e))return b(e);c=Li(y,function(e){var n=t-(e-l);return h?yn(n,s-(e-d)):n}(e))}function b(e){return c=o,p&&r?g(e):(r=a=o,u)}function w(){var e=ka(),n=v(e);if(r=arguments,a=this,l=e,n){if(c===o)return m(l);if(h)return Eo(c),c=Li(y,t),g(l)}return c===o&&(c=Li(y,t)),u}return t=vs(t)||0,ts(n)&&(f=!!n.leading,s=(h="maxWait"in n)?vn(vs(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),w.cancel=function(){c!==o&&Eo(c),d=0,r=l=a=c=o},w.flush=function(){return c===o?u:b(ka())},w}var Pa=Kr((function(e,t){return cr(e,1,t)})),Fa=Kr((function(e,t,n){return cr(e,vs(t)||0,n)}));function Na(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Na.Cache||Vn),n}function ja(e){if("function"!=typeof e)throw new ke(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Na.Cache=Vn;var Ra=bo((function(e,t){var n=(t=1==t.length&&qa(t[0])?St(t[0],Wt(si())):St(mr(t,1),Wt(si()))).length;return Kr((function(r){for(var o=-1,i=yn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return vt(e,this,r)}))})),Ia=Kr((function(e,t){var n=tn(t,ai(Ia));return Zo(e,u,o,t,n)})),Ba=Kr((function(e,t){var n=tn(t,ai(Ba));return Zo(e,64,o,t,n)})),Ga=ti((function(e,t){return Zo(e,256,o,o,o,t)}));function za(e,t){return e===t||e!=e&&t!=t}var Ua=qo(Sr),Wa=qo((function(e,t){return e>=t})),Ha=Lr(function(){return arguments}())?Lr:function(e){return ns(e)&&Pe.call(e,"callee")&&!et.call(e,"callee")},qa=r.isArray,Va=dt?Wt(dt):function(e){return ns(e)&&Cr(e)==T};function Ya(e){return null!=e&&es(e.length)&&!Qa(e)}function Ka(e){return ns(e)&&Ya(e)}var $a=hn||vu,Za=ft?Wt(ft):function(e){return ns(e)&&Cr(e)==y};function Xa(e){if(!ns(e))return!1;var t=Cr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Qa(e){if(!ts(e))return!1;var t=Cr(e);return t==w||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==gs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=ht?Wt(ht):function(e){return ns(e)&&hi(e)==x};function os(e){return"number"==typeof e||ns(e)&&Cr(e)==_}function is(e){if(!ns(e)||Cr(e)!=C)return!1;var t=Ve(e);if(null===t)return!0;var n=Pe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Me.call(n)==Re}var as=pt?Wt(pt):function(e){return ns(e)&&Cr(e)==A},ss=gt?Wt(gt):function(e){return ns(e)&&hi(e)==k};function us(e){return"string"==typeof e||!qa(e)&&ns(e)&&Cr(e)==O}function cs(e){return"symbol"==typeof e||ns(e)&&Cr(e)==D}var ls=mt?Wt(mt):function(e){return ns(e)&&es(e.length)&&!!Qe[Cr(e)]},ds=qo(jr),fs=qo((function(e,t){return e<=t}));function hs(e){if(!e)return[];if(Ya(e))return us(e)?an(e):Oo(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=hi(e);return(t==x?Jt:t==k?nn:zs)(e)}function ps(e){return e?(e=vs(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gs(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function ms(e){return e?ar(gs(e),0,h):0}function vs(e){if("number"==typeof e)return e;if(cs(e))return f;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ut(e);var n=pe.test(e);return n||me.test(e)?nt(e.slice(2),n?2:8):he.test(e)?f:+e}function ys(e){return Do(e,Ps(e))}function bs(e){return null==e?"":so(e)}var ws=To((function(e,t){if(xi(t)||Ya(t))Do(t,Ms(t),e);else for(var n in t)Pe.call(t,n)&&er(e,n,t[n])})),Es=To((function(e,t){Do(t,Ps(t),e)})),xs=To((function(e,t,n,r){Do(t,Ps(t),e,r)})),_s=To((function(e,t,n,r){Do(t,Ms(t),e,r)})),Cs=ti(ir),Ss=Kr((function(e,t){e=Ce(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&yi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Ps(a),u=-1,c=s.length;++u<c;){var l=s[u],d=e[l];(d===o||za(d,Le[l])&&!Pe.call(e,l))&&(e[l]=a[l])}return e})),As=Kr((function(e){return e.push(o,Qo),vt(Ns,o,e)}));function ks(e,t,n){var r=null==e?o:xr(e,t);return r===o?n:r}function Os(e,t){return null!=e&&pi(e,t,kr)}var Ds=Go((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),e[t]=n}),tu(ou)),Ls=Go((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),Pe.call(e,t)?e[t].push(n):e[t]=[n]}),si),Ts=Kr(Dr);function Ms(e){return Ya(e)?$n(e):Nr(e)}function Ps(e){return Ya(e)?$n(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=xi(e),n=[];for(var r in e)("constructor"!=r||!t&&Pe.call(e,r))&&n.push(r);return n}(e)}var Fs=To((function(e,t,n){Gr(e,t,n)})),Ns=To((function(e,t,n,r){Gr(e,t,n,r)})),js=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=St(t,(function(t){return t=yo(t,e),r||(r=t.length>1),t})),Do(e,ri(e),n),r&&(n=sr(n,7,Jo));for(var o=t.length;o--;)co(n,t[o]);return n})),Rs=ti((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return Os(e,n)}))}(e,t)}));function Is(e,t){if(null==e)return{};var n=St(ri(e),(function(e){return[e]}));return t=si(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var Bs=$o(Ms),Gs=$o(Ps);function zs(e){return null==e?[]:Ht(e,Ms(e))}var Us=No((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Xs(bs(e).toLowerCase())}function Hs(e){return(e=bs(e))&&e.replace(ye,$t).replace(qe,"")}var qs=No((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Vs=No((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ys=Fo("toLowerCase"),Ks=No((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),$s=No((function(e,t,n){return e+(n?" ":"")+Xs(t)})),Zs=No((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xs=Fo("toUpperCase");function Qs(e,t,n){return e=bs(e),(t=n?o:t)===o?function(e){return $e.test(e)}(e)?function(e){return e.match(Ye)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Js=Kr((function(e,t){try{return vt(e,o,t)}catch(e){return Xa(e)?e:new Ee(e)}})),eu=ti((function(e,t){return bt(t,(function(t){t=Ii(t),or(e,t,La(e[t],e))})),e}));function tu(e){return function(){return e}}var nu=Io(),ru=Io(!0);function ou(e){return e}function iu(e){return Fr("function"==typeof e?e:sr(e,1))}var au=Kr((function(e,t){return function(n){return Dr(n,e,t)}})),su=Kr((function(e,t){return function(n){return Dr(e,n,t)}}));function uu(e,t,n){var r=Ms(t),o=Er(t,r);null!=n||ts(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Er(t,Ms(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),a=Qa(e);return bt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Oo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,At([this.value()],arguments))})})),e}function cu(){}var lu=Uo(St),du=Uo(Et),fu=Uo(Dt);function hu(e){return bi(e)?Rt(Ii(e)):function(e){return function(t){return xr(t,e)}}(e)}var pu=Ho(),gu=Ho(!0);function mu(){return[]}function vu(){return!1}var yu,bu=zo((function(e,t){return e+t}),0),wu=Yo("ceil"),Eu=zo((function(e,t){return e/t}),1),xu=Yo("floor"),_u=zo((function(e,t){return e*t}),1),Cu=Yo("round"),Su=zo((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new ke(i);return e=gs(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Oa,Bn.assign=ws,Bn.assignIn=Es,Bn.assignInWith=xs,Bn.assignWith=_s,Bn.at=Cs,Bn.before=Da,Bn.bind=La,Bn.bindAll=eu,Bn.bindKey=Ta,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Bn.chain=ha,Bn.chunk=function(e,t,n){t=(n?yi(e,t,n):t===o)?1:vn(gs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=r(ln(i/t));a<i;)u[s++]=to(e,a,a+=t);return u},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return At(qa(n)?Oo(n):[n],mr(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=si();return e=t?St(e,(function(e){if("function"!=typeof e[1])throw new ke(i);return[n(e[0]),e[1]]})):[],Kr((function(n){for(var r=-1;++r<t;){var o=e[r];if(vt(o[0],this,n))return vt(o[1],this,n)}}))},Bn.conforms=function(e){return function(e){var t=Ms(e);return function(n){return ur(n,e,t)}}(sr(e,1))},Bn.constant=tu,Bn.countBy=ma,Bn.create=function(e,t){var n=Gn(e);return null==t?n:rr(n,t)},Bn.curry=function e(t,n,r){var i=Zo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.curryRight=function e(t,n,r){var i=Zo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.debounce=Ma,Bn.defaults=Ss,Bn.defaultsDeep=As,Bn.defer=Pa,Bn.delay=Fa,Bn.difference=zi,Bn.differenceBy=Ui,Bn.differenceWith=Wi,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=n||t===o?1:gs(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,0,(t=r-(t=n||t===o?1:gs(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!0):[]},Bn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&yi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=gs(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:gs(r))<0&&(r+=i),r=n>r?0:ms(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(qa(e)?xt:gr)(e,si(t,3))},Bn.flatMap=function(e,t){return mr(Ca(e,t),1)},Bn.flatMapDeep=function(e,t){return mr(Ca(e,t),l)},Bn.flatMapDepth=function(e,t,n){return n=n===o?1:gs(n),mr(Ca(e,t),n)},Bn.flatten=Vi,Bn.flattenDeep=function(e){return null!=e&&e.length?mr(e,l):[]},Bn.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===o?1:gs(t)):[]},Bn.flip=function(e){return Zo(e,512)},Bn.flow=nu,Bn.flowRight=ru,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Bn.functions=function(e){return null==e?[]:Er(e,Ms(e))},Bn.functionsIn=function(e){return null==e?[]:Er(e,Ps(e))},Bn.groupBy=Ea,Bn.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},Bn.intersection=Ki,Bn.intersectionBy=$i,Bn.intersectionWith=Zi,Bn.invert=Ds,Bn.invertBy=Ls,Bn.invokeMap=xa,Bn.iteratee=iu,Bn.keyBy=_a,Bn.keys=Ms,Bn.keysIn=Ps,Bn.map=Ca,Bn.mapKeys=function(e,t){var n={};return t=si(t,3),br(e,(function(e,r,o){or(n,t(e,r,o),e)})),n},Bn.mapValues=function(e,t){var n={};return t=si(t,3),br(e,(function(e,r,o){or(n,r,t(e,r,o))})),n},Bn.matches=function(e){return Ir(sr(e,1))},Bn.matchesProperty=function(e,t){return Br(e,sr(t,1))},Bn.memoize=Na,Bn.merge=Fs,Bn.mergeWith=Ns,Bn.method=au,Bn.methodOf=su,Bn.mixin=uu,Bn.negate=ja,Bn.nthArg=function(e){return e=gs(e),Kr((function(t){return zr(t,e)}))},Bn.omit=js,Bn.omitBy=function(e,t){return Is(e,ja(si(t)))},Bn.once=function(e){return Da(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Bn.over=lu,Bn.overArgs=Ra,Bn.overEvery=du,Bn.overSome=fu,Bn.partial=Ia,Bn.partialRight=Ba,Bn.partition=Sa,Bn.pick=Rs,Bn.pickBy=Is,Bn.property=hu,Bn.propertyOf=function(e){return function(t){return null==e?o:xr(e,t)}},Bn.pull=Qi,Bn.pullAll=Ji,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,si(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,o,n):e},Bn.pullAt=ea,Bn.range=pu,Bn.rangeRight=gu,Bn.rearg=Ga,Bn.reject=function(e,t){return(qa(e)?xt:gr)(e,ja(si(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=si(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return qr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new ke(i);return Kr(e,t=t===o?t:gs(t))},Bn.reverse=ta,Bn.sampleSize=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:gs(t),(qa(e)?Xn:Zr)(e,t)},Bn.set=function(e,t,n){return null==e?e:Xr(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Xr(e,t,n,r)},Bn.shuffle=function(e){return(qa(e)?Qn:eo)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&yi(e,t,n)?(t=0,n=r):(t=null==t?0:gs(t),n=n===o?r:gs(n)),to(e,t,n)):[]},Bn.sortBy=Aa,Bn.sortedUniq=function(e){return e&&e.length?io(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?io(e,si(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&yi(e,t,n)&&(t=n=o),(n=n===o?h:n>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=so(t))&&Qt(e)?wo(an(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new ke(i);return t=null==t?0:vn(gs(t),0),Kr((function(n){var r=n[t],o=wo(n,0,t);return r&&At(o,r),vt(e,this,o)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?to(e,0,(t=n||t===o?1:gs(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=r-(t=n||t===o?1:gs(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?fo(e,si(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ke(i);return ts(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ma(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=pa,Bn.toArray=hs,Bn.toPairs=Bs,Bn.toPairsIn=Gs,Bn.toPath=function(e){return qa(e)?St(e,Ii):cs(e)?[e]:Oo(Ri(bs(e)))},Bn.toPlainObject=ys,Bn.transform=function(e,t,n){var r=qa(e),o=r||$a(e)||ls(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ts(e)&&Qa(i)?Gn(Ve(e)):{}}return(o?bt:br)(e,(function(e,r,o){return t(n,e,r,o)})),n},Bn.unary=function(e){return Oa(e,1)},Bn.union=na,Bn.unionBy=ra,Bn.unionWith=oa,Bn.uniq=function(e){return e&&e.length?uo(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?uo(e,si(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?uo(e,o,t):[]},Bn.unset=function(e,t){return null==e||co(e,t)},Bn.unzip=ia,Bn.unzipWith=aa,Bn.update=function(e,t,n){return null==e?e:lo(e,t,vo(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:lo(e,t,vo(n),r)},Bn.values=zs,Bn.valuesIn=function(e){return null==e?[]:Ht(e,Ps(e))},Bn.without=sa,Bn.words=Qs,Bn.wrap=function(e,t){return Ia(vo(t),e)},Bn.xor=ua,Bn.xorBy=ca,Bn.xorWith=la,Bn.zip=da,Bn.zipObject=function(e,t){return go(e||[],t||[],er)},Bn.zipObjectDeep=function(e,t){return go(e||[],t||[],Xr)},Bn.zipWith=fa,Bn.entries=Bs,Bn.entriesIn=Gs,Bn.extend=Es,Bn.extendWith=xs,uu(Bn,Bn),Bn.add=bu,Bn.attempt=Js,Bn.camelCase=Us,Bn.capitalize=Ws,Bn.ceil=wu,Bn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=vs(n))==n?n:0),t!==o&&(t=(t=vs(t))==t?t:0),ar(vs(e),t,n)},Bn.clone=function(e){return sr(e,4)},Bn.cloneDeep=function(e){return sr(e,5)},Bn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:o)},Bn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:o)},Bn.conformsTo=function(e,t){return null==t||ur(e,t,Ms(t))},Bn.deburr=Hs,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=Eu,Bn.endsWith=function(e,t,n){e=bs(e),t=so(t);var r=e.length,i=n=n===o?r:ar(gs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Bn.eq=za,Bn.escape=function(e){return(e=bs(e))&&K.test(e)?e.replace(V,Zt):e},Bn.escapeRegExp=function(e){return(e=bs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Bn.every=function(e,t,n){var r=qa(e)?Et:hr;return n&&yi(e,t,n)&&(t=o),r(e,si(t,3))},Bn.find=va,Bn.findIndex=Hi,Bn.findKey=function(e,t){return Tt(e,si(t,3),br)},Bn.findLast=ya,Bn.findLastIndex=qi,Bn.findLastKey=function(e,t){return Tt(e,si(t,3),wr)},Bn.floor=xu,Bn.forEach=ba,Bn.forEachRight=wa,Bn.forIn=function(e,t){return null==e?e:vr(e,si(t,3),Ps)},Bn.forInRight=function(e,t){return null==e?e:yr(e,si(t,3),Ps)},Bn.forOwn=function(e,t){return e&&br(e,si(t,3))},Bn.forOwnRight=function(e,t){return e&&wr(e,si(t,3))},Bn.get=ks,Bn.gt=Ua,Bn.gte=Wa,Bn.has=function(e,t){return null!=e&&pi(e,t,Ar)},Bn.hasIn=Os,Bn.head=Yi,Bn.identity=ou,Bn.includes=function(e,t,n,r){e=Ya(e)?e:zs(e),n=n&&!r?gs(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),us(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Pt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gs(n);return o<0&&(o=vn(r+o,0)),Pt(e,t,o)},Bn.inRange=function(e,t,n){return t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n){return e>=yn(t,n)&&e<vn(t,n)}(e=vs(e),t,n)},Bn.invoke=Ts,Bn.isArguments=Ha,Bn.isArray=qa,Bn.isArrayBuffer=Va,Bn.isArrayLike=Ya,Bn.isArrayLikeObject=Ka,Bn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Cr(e)==v},Bn.isBuffer=$a,Bn.isDate=Za,Bn.isElement=function(e){return ns(e)&&1===e.nodeType&&!is(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Ya(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||$a(e)||ls(e)||Ha(e)))return!e.length;var t=hi(e);if(t==x||t==k)return!e.size;if(xi(e))return!Nr(e).length;for(var n in e)if(Pe.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Tr(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Tr(e,t,o,n):!!r},Bn.isError=Xa,Bn.isFinite=function(e){return"number"==typeof e&&pn(e)},Bn.isFunction=Qa,Bn.isInteger=Ja,Bn.isLength=es,Bn.isMap=rs,Bn.isMatch=function(e,t){return e===t||Mr(e,t,ci(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Mr(e,t,ci(t),n)},Bn.isNaN=function(e){return os(e)&&e!=+e},Bn.isNative=function(e){if(Ei(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=os,Bn.isObject=ts,Bn.isObjectLike=ns,Bn.isPlainObject=is,Bn.isRegExp=as,Bn.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=d},Bn.isSet=ss,Bn.isString=us,Bn.isSymbol=cs,Bn.isTypedArray=ls,Bn.isUndefined=function(e){return e===o},Bn.isWeakMap=function(e){return ns(e)&&hi(e)==L},Bn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Cr(e)},Bn.join=function(e,t){return null==e?"":gn.call(e,t)},Bn.kebabCase=qs,Bn.last=Xi,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=gs(n))<0?vn(r+i,0):yn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Mt(e,Nt,i,!0)},Bn.lowerCase=Vs,Bn.lowerFirst=Ys,Bn.lt=ds,Bn.lte=fs,Bn.max=function(e){return e&&e.length?pr(e,ou,Sr):o},Bn.maxBy=function(e,t){return e&&e.length?pr(e,si(t,2),Sr):o},Bn.mean=function(e){return jt(e,ou)},Bn.meanBy=function(e,t){return jt(e,si(t,2))},Bn.min=function(e){return e&&e.length?pr(e,ou,jr):o},Bn.minBy=function(e,t){return e&&e.length?pr(e,si(t,2),jr):o},Bn.stubArray=mu,Bn.stubFalse=vu,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=_u,Bn.nth=function(e,t){return e&&e.length?zr(e,gs(t)):o},Bn.noConflict=function(){return it._===this&&(it._=Ie),this},Bn.noop=cu,Bn.now=ka,Bn.pad=function(e,t,n){e=bs(e);var r=(t=gs(t))?on(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Wo(dn(o),n)+e+Wo(ln(o),n)},Bn.padEnd=function(e,t,n){e=bs(e);var r=(t=gs(t))?on(e):0;return t&&r<t?e+Wo(t-r,n):e},Bn.padStart=function(e,t,n){e=bs(e);var r=(t=gs(t))?on(e):0;return t&&r<t?Wo(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(bs(e).replace(re,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&yi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ps(e),t===o?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=En();return yn(e+i*(t-e+tt("1e-"+((i+"").length-1))),t)}return Vr(e,t)},Bn.reduce=function(e,t,n){var r=qa(e)?kt:Bt,o=arguments.length<3;return r(e,si(t,4),n,o,dr)},Bn.reduceRight=function(e,t,n){var r=qa(e)?Ot:Bt,o=arguments.length<3;return r(e,si(t,4),n,o,fr)},Bn.repeat=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:gs(t),Yr(bs(e),t)},Bn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,i=(t=yo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Ii(t[r])];a===o&&(r=i,a=n),e=Qa(a)?a.call(e):a}return e},Bn.round=Cu,Bn.runInContext=e,Bn.sample=function(e){return(qa(e)?Zn:$r)(e)},Bn.size=function(e){if(null==e)return 0;if(Ya(e))return us(e)?on(e):e.length;var t=hi(e);return t==x||t==k?e.size:Nr(e).length},Bn.snakeCase=Ks,Bn.some=function(e,t,n){var r=qa(e)?Dt:no;return n&&yi(e,t,n)&&(t=o),r(e,si(t,3))},Bn.sortedIndex=function(e,t){return ro(e,t)},Bn.sortedIndexBy=function(e,t,n){return oo(e,t,si(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&za(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return ro(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return oo(e,t,si(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(za(e[n],t))return n}return-1},Bn.startCase=$s,Bn.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:ar(gs(n),0,e.length),t=so(t),e.slice(n,n+t.length)==t},Bn.subtract=Su,Bn.sum=function(e){return e&&e.length?Gt(e,ou):0},Bn.sumBy=function(e,t){return e&&e.length?Gt(e,si(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&yi(e,t,n)&&(t=o),e=bs(e),t=xs({},t,r,Xo);var i,a,s=xs({},t.imports,r.imports,Xo),u=Ms(s),c=Ht(s,u),l=0,d=t.interpolate||be,f="__p += '",h=Se((t.escape||be).source+"|"+d.source+"|"+(d===X?de:be).source+"|"+(t.evaluate||be).source+"|$","g"),p="//# sourceURL="+(Pe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xe+"]")+"\n";e.replace(h,(function(t,n,r,o,s,u){return r||(r=o),f+=e.slice(l,u).replace(we,Xt),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),f+="';\n";var g=Pe.call(t,"variable")&&t.variable;if(g){if(ce.test(g))throw new Ee("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(U,""):f).replace(W,"$1").replace(H,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=Js((function(){return xe(u,p+"return "+f).apply(o,c)}));if(m.source=f,Xa(m))throw m;return m},Bn.times=function(e,t){if((e=gs(e))<1||e>d)return[];var n=h,r=yn(e,h);t=si(t),e-=h;for(var o=zt(r,t);++n<e;)t(n);return o},Bn.toFinite=ps,Bn.toInteger=gs,Bn.toLength=ms,Bn.toLower=function(e){return bs(e).toLowerCase()},Bn.toNumber=vs,Bn.toSafeInteger=function(e){return e?ar(gs(e),-9007199254740991,d):0===e?e:0},Bn.toString=bs,Bn.toUpper=function(e){return bs(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=bs(e))&&(n||t===o))return Ut(e);if(!e||!(t=so(t)))return e;var r=an(e),i=an(t);return wo(r,Vt(r,i),Yt(r,i)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=bs(e))&&(n||t===o))return e.slice(0,sn(e)+1);if(!e||!(t=so(t)))return e;var r=an(e);return wo(r,0,Yt(r,an(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=bs(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=so(t)))return e;var r=an(e);return wo(r,Vt(r,an(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if(ts(t)){var i="separator"in t?t.separator:i;n="length"in t?gs(t.length):n,r="omission"in t?so(t.omission):r}var a=(e=bs(e)).length;if(Qt(e)){var s=an(e);a=s.length}if(n>=a)return e;var u=n-on(r);if(u<1)return r;var c=s?wo(s,0,u).join(""):e.slice(0,u);if(i===o)return c+r;if(s&&(u+=c.length-u),as(i)){if(e.slice(u).search(i)){var l,d=c;for(i.global||(i=Se(i.source,bs(fe.exec(i))+"g")),i.lastIndex=0;l=i.exec(d);)var f=l.index;c=c.slice(0,f===o?u:f)}}else if(e.indexOf(so(i),u)!=u){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},Bn.unescape=function(e){return(e=bs(e))&&Y.test(e)?e.replace(q,un):e},Bn.uniqueId=function(e){var t=++Fe;return bs(e)+t},Bn.upperCase=Zs,Bn.upperFirst=Xs,Bn.each=ba,Bn.eachRight=wa,Bn.first=Yi,uu(Bn,(yu={},br(Bn,(function(e,t){Pe.call(Bn.prototype,t)||(yu[t]=e)})),yu),{chain:!1}),Bn.VERSION="4.17.21",bt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),bt(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===o?1:vn(gs(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,h),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),bt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),bt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),bt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ou)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Dr(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(ja(si(e)))},Wn.prototype.slice=function(e,t){e=gs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=gs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(h)},br(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Bn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Wn,c=s[0],l=u||qa(t),d=function(e){var t=i.apply(Bn,At([e],s));return r&&f?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,g=u&&!h;if(!a&&l){t=g?t:new Wn(this);var m=e.apply(t,s);return m.__actions__.push({func:pa,args:[d],thisArg:o}),new Un(m,f)}return p&&g?e.apply(this,s):(m=this.thru(d),p?r?m.value()[0]:m.value():m)})})),bt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(qa(o)?o:[],e)}return this[n]((function(n){return t.apply(qa(n)?n:[],e)}))}})),br(Wn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Pe.call(Ln,r)||(Ln[r]=[]),Ln[r].push({name:t,func:n})}})),Ln[Bo(o,2).name]=[{name:"wrapper",func:o}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Oo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oo(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,d=l.length,f=0,h=yn(u,this.__takeCount__);if(!n||!r&&o==u&&h==u)return ho(e,this.__actions__);var p=[];e:for(;u--&&f<h;){for(var g=-1,m=e[c+=t];++g<d;){var v=l[g],y=v.iteratee,b=v.type,w=y(m);if(2==b)m=w;else if(!w){if(1==b)continue e;break e}}p[f++]=m}return p},Bn.prototype.at=ga,Bn.prototype.chain=function(){return ha(this)},Bn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===o&&(this.__values__=hs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof zn;){var r=Gi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:pa,args:[ta],thisArg:o}),new Un(t,this.__chain__)}return this.thru(ta)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return ho(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,at&&(Bn.prototype[at]=function(){return this}),Bn}();it._=cn,(r=function(){return cn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},8303:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__extends:()=>o,__assign:()=>i,__rest:()=>a,__decorate:()=>s,__param:()=>u,__metadata:()=>c,__awaiter:()=>l,__generator:()=>d,__createBinding:()=>f,__exportStar:()=>h,__values:()=>p,__read:()=>g,__spread:()=>m,__spreadArrays:()=>v,__spreadArray:()=>y,__await:()=>b,__asyncGenerator:()=>w,__asyncDelegator:()=>E,__asyncValues:()=>x,__makeTemplateObject:()=>_,__importStar:()=>S,__importDefault:()=>A,__classPrivateFieldGet:()=>k,__classPrivateFieldSet:()=>O});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var f=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function h(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||f(t,e,n)}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function y(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof b?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function E(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&f(t,e,n);return C(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function k(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function O(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}},1250:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1181),s=i(n(2383)),u=n(8586),c=n(432),l=1.5,d=function(e){function t(){var t=e.call(this)||this;return t.x=.5,t.y=.5,t.angle=0,t.ratio=1,t.minRatio=null,t.maxRatio=null,t.nextFrame=null,t.previousState=null,t.enabled=!0,t.previousState=t.getState(),t}return o(t,e),t.from=function(e){return(new t).setState(e)},t.prototype.enable=function(){return this.enabled=!0,this},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.getState=function(){return{x:this.x,y:this.y,angle:this.angle,ratio:this.ratio}},t.prototype.hasState=function(e){return this.x===e.x&&this.y===e.y&&this.ratio===e.ratio&&this.angle===e.angle},t.prototype.getPreviousState=function(){var e=this.previousState;return e?{x:e.x,y:e.y,angle:e.angle,ratio:e.ratio}:null},t.prototype.getBoundedRatio=function(e){var t=e;return"number"==typeof this.minRatio&&(t=Math.max(t,this.minRatio)),"number"==typeof this.maxRatio&&(t=Math.min(t,this.maxRatio)),t},t.prototype.validateState=function(e){var t={};return"number"==typeof e.x&&(t.x=e.x),"number"==typeof e.y&&(t.y=e.y),"number"==typeof e.angle&&(t.angle=e.angle),"number"==typeof e.ratio&&(t.ratio=this.getBoundedRatio(e.ratio)),t},t.prototype.isAnimated=function(){return!!this.nextFrame},t.prototype.setState=function(e){if(!this.enabled)return this;this.previousState=this.getState();var t=this.validateState(e);return"number"==typeof t.x&&(this.x=t.x),"number"==typeof t.y&&(this.y=t.y),"number"==typeof t.angle&&(this.angle=t.angle),"number"==typeof t.ratio&&(this.ratio=t.ratio),this.hasState(this.previousState)||this.emit("updated",this.getState()),this},t.prototype.animate=function(e,t,n){var r=this;if(this.enabled){var o=Object.assign({},a.ANIMATE_DEFAULTS,t),i=this.validateState(e),c="function"==typeof o.easing?o.easing:s.default[o.easing],l=Date.now(),d=this.getState(),f=function(){var e=(Date.now()-l)/o.duration;if(e>=1)return r.nextFrame=null,r.setState(i),void(r.animationCallback&&(r.animationCallback.call(null),r.animationCallback=void 0));var t=c(e),n={};"number"==typeof i.x&&(n.x=d.x+(i.x-d.x)*t),"number"==typeof i.y&&(n.y=d.y+(i.y-d.y)*t),"number"==typeof i.angle&&(n.angle=d.angle+(i.angle-d.angle)*t),"number"==typeof i.ratio&&(n.ratio=d.ratio+(i.ratio-d.ratio)*t),r.setState(n),r.nextFrame=(0,u.requestFrame)(f)};this.nextFrame?((0,u.cancelFrame)(this.nextFrame),this.animationCallback&&this.animationCallback.call(null),this.nextFrame=(0,u.requestFrame)(f)):f(),this.animationCallback=n}},t.prototype.animatedZoom=function(e){if(e){if("number"==typeof e)return this.animate({ratio:this.ratio/e});this.animate({ratio:this.ratio/(e.factor||l)},e)}else this.animate({ratio:this.ratio/l})},t.prototype.animatedUnzoom=function(e){if(e){if("number"==typeof e)return this.animate({ratio:this.ratio*e});this.animate({ratio:this.ratio*(e.factor||l)},e)}else this.animate({ratio:this.ratio*l})},t.prototype.animatedReset=function(e){this.animate({x:.5,y:.5,ratio:1,angle:0},e)},t.prototype.copy=function(){return t.from(this.getState())},t}(c.TypedEventEmitter);t.default=d},8231:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getWheelDelta=t.getTouchCoords=t.getTouchesArray=t.getWheelCoords=t.getMouseCoords=t.getPosition=void 0;var a=n(432);function s(e,t){var n=t.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}function u(e,t){return i(i({},s(e,t)),{sigmaDefaultPrevented:!1,preventSigmaDefault:function(){this.sigmaDefaultPrevented=!0},original:e})}function c(e){for(var t=[],n=0,r=Math.min(e.length,2);n<r;n++)t.push(e[n]);return t}function l(e){if(void 0!==e.deltaY)return-3*e.deltaY/360;if(void 0!==e.detail)return e.detail/-9;throw new Error("Captor: could not extract delta from event.")}t.getPosition=s,t.getMouseCoords=u,t.getWheelCoords=function(e,t){return i(i({},u(e,t)),{delta:l(e)})},t.getTouchesArray=c,t.getTouchCoords=function(e,t){return{touches:c(e.touches).map((function(e){return s(e,t)})),original:e}},t.getWheelDelta=l;var d=function(e){function t(t,n){var r=e.call(this)||this;return r.container=t,r.renderer=n,r}return o(t,e),t}(a.TypedEventEmitter);t.default=d},3834:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var u=s(n(8231)),c=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.enabled=!0,r.draggedEvents=0,r.downStartTime=null,r.lastMouseX=null,r.lastMouseY=null,r.isMouseDown=!1,r.isMoving=!1,r.movingTimeout=null,r.startCameraState=null,r.clicks=0,r.doubleClickTimeout=null,r.currentWheelDirection=0,r.handleClick=r.handleClick.bind(r),r.handleRightClick=r.handleRightClick.bind(r),r.handleDown=r.handleDown.bind(r),r.handleUp=r.handleUp.bind(r),r.handleMove=r.handleMove.bind(r),r.handleWheel=r.handleWheel.bind(r),r.handleOut=r.handleOut.bind(r),t.addEventListener("click",r.handleClick,!1),t.addEventListener("contextmenu",r.handleRightClick,!1),t.addEventListener("mousedown",r.handleDown,!1),t.addEventListener("wheel",r.handleWheel,!1),t.addEventListener("mouseout",r.handleOut,!1),document.addEventListener("mousemove",r.handleMove,!1),document.addEventListener("mouseup",r.handleUp,!1),r}return o(t,e),t.prototype.kill=function(){var e=this.container;e.removeEventListener("click",this.handleClick),e.removeEventListener("contextmenu",this.handleRightClick),e.removeEventListener("mousedown",this.handleDown),e.removeEventListener("wheel",this.handleWheel),e.removeEventListener("mouseout",this.handleOut),document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseup",this.handleUp)},t.prototype.handleClick=function(e){var t=this;if(this.enabled){if(this.clicks++,2===this.clicks)return this.clicks=0,"number"==typeof this.doubleClickTimeout&&(clearTimeout(this.doubleClickTimeout),this.doubleClickTimeout=null),this.handleDoubleClick(e);setTimeout((function(){t.clicks=0,t.doubleClickTimeout=null}),300),this.draggedEvents<3&&this.emit("click",(0,u.getMouseCoords)(e,this.container))}},t.prototype.handleRightClick=function(e){this.enabled&&this.emit("rightClick",(0,u.getMouseCoords)(e,this.container))},t.prototype.handleDoubleClick=function(e){if(this.enabled){e.preventDefault(),e.stopPropagation();var t=(0,u.getMouseCoords)(e,this.container);if(this.emit("doubleClick",t),!t.sigmaDefaultPrevented){var n=this.renderer.getCamera(),r=n.getBoundedRatio(n.getState().ratio/2.2);n.animate(this.renderer.getViewportZoomedState((0,u.getPosition)(e,this.container),r),{easing:"quadraticInOut",duration:200})}}},t.prototype.handleDown=function(e){if(this.enabled){this.startCameraState=this.renderer.getCamera().getState();var t=(0,u.getPosition)(e,this.container),n=t.x,r=t.y;this.lastMouseX=n,this.lastMouseY=r,this.draggedEvents=0,this.downStartTime=Date.now(),this.isMouseDown=!0,this.emit("mousedown",(0,u.getMouseCoords)(e,this.container))}},t.prototype.handleUp=function(e){var t=this;if(this.enabled&&this.isMouseDown){var n=this.renderer.getCamera();this.isMouseDown=!1,"number"==typeof this.movingTimeout&&(clearTimeout(this.movingTimeout),this.movingTimeout=null);var r=(0,u.getPosition)(e,this.container),o=r.x,i=r.y,a=n.getState(),s=n.getPreviousState()||{x:0,y:0};this.isMoving?n.animate({x:a.x+3*(a.x-s.x),y:a.y+3*(a.y-s.y)},{duration:200,easing:"quadraticOut"}):this.lastMouseX===o&&this.lastMouseY===i||n.setState({x:a.x,y:a.y}),this.isMoving=!1,setTimeout((function(){t.draggedEvents=0,t.renderer.refresh()}),0),this.emit("mouseup",(0,u.getMouseCoords)(e,this.container))}},t.prototype.handleMove=function(e){var t=this;if(this.enabled){var n=(0,u.getMouseCoords)(e,this.container);if(this.emit("mousemovebody",n),e.target===this.container&&this.emit("mousemove",n),this.isMouseDown){this.isMoving=!0,this.draggedEvents++,"number"==typeof this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout((function(){t.movingTimeout=null,t.isMoving=!1}),100);var r=this.renderer.getCamera(),o=(0,u.getPosition)(e,this.container),i=o.x,a=o.y,s=this.renderer.viewportToFramedGraph({x:this.lastMouseX,y:this.lastMouseY}),c=this.renderer.viewportToFramedGraph({x:i,y:a}),l=s.x-c.x,d=s.y-c.y,f=r.getState(),h=f.x+l,p=f.y+d;r.setState({x:h,y:p}),this.lastMouseX=i,this.lastMouseY=a,e.preventDefault(),e.stopPropagation()}}},t.prototype.handleWheel=function(e){var t=this;if(this.enabled){e.preventDefault(),e.stopPropagation();var n=(0,u.getWheelDelta)(e);if(n){var r=(0,u.getWheelCoords)(e,this.container);if(this.emit("wheel",r),!r.sigmaDefaultPrevented){var o=n>0?1/1.7:1.7,i=this.renderer.getCamera(),a=i.getBoundedRatio(i.getState().ratio*o),s=n>0?1:-1,c=Date.now();this.currentWheelDirection===s&&this.lastWheelTriggerTime&&c-this.lastWheelTriggerTime<50||(i.animate(this.renderer.getViewportZoomedState((0,u.getPosition)(e,this.container),a),{easing:"quadraticOut",duration:250},(function(){t.currentWheelDirection=0})),this.currentWheelDirection=s,this.lastWheelTriggerTime=c)}}}},t.prototype.handleOut=function(){},t}(u.default);t.default=c},916:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t},u=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var c=s(n(8231)),l=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.enabled=!0,r.isMoving=!1,r.touchMode=0,r.handleStart=r.handleStart.bind(r),r.handleLeave=r.handleLeave.bind(r),r.handleMove=r.handleMove.bind(r),t.addEventListener("touchstart",r.handleStart,!1),t.addEventListener("touchend",r.handleLeave,!1),t.addEventListener("touchcancel",r.handleLeave,!1),t.addEventListener("touchmove",r.handleMove,!1),r}return o(t,e),t.prototype.kill=function(){var e=this.container;e.removeEventListener("touchstart",this.handleStart),e.removeEventListener("touchend",this.handleLeave),e.removeEventListener("touchcancel",this.handleLeave),e.removeEventListener("touchmove",this.handleMove)},t.prototype.getDimensions=function(){return{width:this.container.offsetWidth,height:this.container.offsetHeight}},t.prototype.dispatchRelatedMouseEvent=function(e,t,n,r){var o=n||(0,c.getPosition)(t.touches[0],this.container),i=new MouseEvent(e,{clientX:o.x,clientY:o.y,altKey:t.altKey,ctrlKey:t.ctrlKey});(r||this.container).dispatchEvent(i)},t.prototype.handleStart=function(e){var t=this;if(this.enabled){e.preventDefault(),1===e.touches.length&&this.dispatchRelatedMouseEvent("mousedown",e);var n=(0,c.getTouchesArray)(e.touches);if(this.isMoving=!0,this.touchMode=n.length,this.startCameraState=this.renderer.getCamera().getState(),this.startTouchesPositions=n.map((function(e){return(0,c.getPosition)(e,t.container)})),this.lastTouchesPositions=this.startTouchesPositions,2===this.touchMode){var r=u(this.startTouchesPositions,2),o=r[0],i=o.x,a=o.y,s=r[1],l=s.x,d=s.y;this.startTouchesAngle=Math.atan2(d-a,l-i),this.startTouchesDistance=Math.sqrt(Math.pow(l-i,2)+Math.pow(d-a,2))}this.emit("touchdown",(0,c.getTouchCoords)(e,this.container))}},t.prototype.handleLeave=function(e){if(this.enabled){switch(e.preventDefault(),0===e.touches.length&&this.lastTouchesPositions&&this.lastTouchesPositions.length&&(this.dispatchRelatedMouseEvent("mouseup",e,this.lastTouchesPositions[0],document),this.dispatchRelatedMouseEvent("click",e,this.lastTouchesPositions[0])),this.movingTimeout&&(this.isMoving=!1,clearTimeout(this.movingTimeout)),this.touchMode){case 2:if(1===e.touches.length){this.handleStart(e),e.preventDefault();break}case 1:if(this.isMoving){var t=this.renderer.getCamera(),n=t.getState(),r=t.getPreviousState()||{x:0,y:0};t.animate({x:n.x+3*(n.x-r.x),y:n.y+3*(n.y-r.y)},{duration:200,easing:"quadraticOut"})}this.isMoving=!1,this.touchMode=0}this.emit("touchup",(0,c.getTouchCoords)(e,this.container))}},t.prototype.handleMove=function(e){var t,n=this;if(this.enabled){e.preventDefault(),1===e.touches.length&&this.dispatchRelatedMouseEvent("mousemove",e);var r=this.renderer.getCamera(),o=this.startCameraState,i=(0,c.getTouchesArray)(e.touches).map((function(e){return(0,c.getPosition)(e,n.container)}));switch(this.lastTouchesPositions=i,this.isMoving=!0,this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout((function(){n.isMoving=!1}),200),this.touchMode){case 1:var a=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0]),s=a.x,l=a.y,d=this.renderer.viewportToFramedGraph(i[0]),f=d.x,h=d.y;r.setState({x:o.x+s-f,y:o.y+l-h});break;case 2:var p={},g=i[0],m=g.x,v=g.y,y=i[1],b=y.x,w=y.y,E=Math.atan2(w-v,b-m)-this.startTouchesAngle,x=Math.hypot(w-v,b-m)/this.startTouchesDistance,_=r.getBoundedRatio(o.ratio/x);p.ratio=_,p.angle=o.angle+E;var C=this.getDimensions(),S=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0],{cameraState:o}),A=Math.min(C.width,C.height),k=A/C.width,O=_/A;h=v-A/2/(A/C.height),f=(t=u([(f=m-A/2/k)*Math.cos(-p.angle)-h*Math.sin(-p.angle),h*Math.cos(-p.angle)+f*Math.sin(-p.angle)],2))[0],h=t[1],p.x=S.x-f*O,p.y=S.y+h*O,r.setState(p)}this.emit("touchmove",(0,c.getTouchCoords)(e,this.container))}},t}(c.default);t.default=l},2306:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edgeLabelsToDisplayFromNodes=t.LabelGrid=void 0;var n=function(){function e(e,t){this.key=e,this.size=t}return e.compare=function(e,t){return e.size>t.size?-1:e.size<t.size||e.key>t.key?1:-1},e}(),r=function(){function e(){this.width=0,this.height=0,this.cellSize=0,this.columns=0,this.rows=0,this.cells={}}return e.prototype.resizeAndClear=function(e,t){this.width=e.width,this.height=e.height,this.cellSize=t,this.columns=Math.ceil(e.width/t),this.rows=Math.ceil(e.height/t),this.cells={}},e.prototype.getIndex=function(e){var t=Math.floor(e.x/this.cellSize);return Math.floor(e.y/this.cellSize)*this.columns+t},e.prototype.add=function(e,t,r){var o=new n(e,t),i=this.getIndex(r),a=this.cells[i];a||(a=[],this.cells[i]=a),a.push(o)},e.prototype.organize=function(){for(var e in this.cells)this.cells[e].sort(n.compare)},e.prototype.getLabelsToDisplay=function(e,t){var n=this.cellSize*this.cellSize,r=n/e/e*t/n,o=Math.ceil(r),i=[];for(var a in this.cells)for(var s=this.cells[a],u=0;u<Math.min(o,s.length);u++)i.push(s[u].key);return i},e}();t.LabelGrid=r,t.edgeLabelsToDisplayFromNodes=function(e){var t=e.graph,n=e.hoveredNode,r=e.highlightedNodes,o=e.displayedNodeLabels,i=[];return t.forEachEdge((function(e,t,a,s){(a===n||s===n||r.has(a)||r.has(s)||o.has(a)&&o.has(s))&&i.push(e)})),i}},9316:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.rectangleCollidesWithQuad=t.squareCollidesWithQuad=t.getCircumscribedAlignedRectangle=t.isRectangleAligned=void 0;var a=i(n(8884)),s=!1;function u(e){return e.x1===e.x2||e.y1===e.y2}function c(e){var t=Math.sqrt(Math.pow(e.x2-e.x1,2)+Math.pow(e.y2-e.y1,2)),n=(e.y1-e.y2)*e.height/t,r=(e.x2-e.x1)*e.height/t,o={x:e.x1,y:e.y1},i={x:e.x2,y:e.y2},a={x:e.x1+n,y:e.y1+r},s={x:e.x2+n,y:e.y2+r},u=Math.min(o.x,i.x,a.x,s.x),c=Math.max(o.x,i.x,a.x,s.x),l=Math.min(o.y,i.y,a.y,s.y);return{x1:u,y1:l,x2:c,y2:l,height:Math.max(o.y,i.y,a.y,s.y)-l}}function l(e,t,n,r,o,i,a){return e<r+i&&e+n>r&&t<o+a&&t+n>o}function d(e,t,n,r,o,i,a,s){return e<o+a&&e+n>o&&t<i+s&&t+r>i}function f(e,t,n,r,o,i){var a=e<n+o/2;return t<r+i/2?a?1:2:a?3:4}t.isRectangleAligned=u,t.getCircumscribedAlignedRectangle=c,t.squareCollidesWithQuad=l,t.rectangleCollidesWithQuad=d;var h=function(){function e(e){var t;void 0===e&&(e={}),this.containers=((t={}).outside=[],t),this.cache=null,this.lastRectangle=null;var n=Math.pow(4,5);this.data=new Float32Array((4*n-1)/3*4),e.boundaries?this.resize(e.boundaries):this.resize({x:0,y:0,width:1,height:1})}return e.prototype.add=function(e,t,n,r){return function(e,t,n,r,o,i,a){for(var u=o-a,c=i-a,d=2*a,f=0,h=0;;){if(f>=5)return n[h]=n[h]||[],void n[h].push(r);var p=4*h+4,g=4*h+8,m=4*h+12,v=4*h+16,y=l(u,c,d,t[p+0],t[p+1],t[p+2],t[p+3]),b=l(u,c,d,t[g+0],t[g+1],t[g+2],t[g+3]),w=l(u,c,d,t[m+0],t[m+1],t[m+2],t[m+3]),E=l(u,c,d,t[v+0],t[v+1],t[v+2],t[v+3]),x=[y,b,w,E].reduce((function(e,t){return t?e+1:e}),0);if(0===x&&0===f)return n.outside.push(r),void(!s&&n.outside.length>=5&&(s=!0,console.warn("sigma/quadtree.insertNode: At least 5 nodes are outside the global quadtree zone. You might have a problem with the normalization function or the custom bounding box.")));if(0===x)throw new Error("sigma/quadtree.insertNode: no collision (level: ".concat(f,", key: ").concat(r,", x: ").concat(o,", y: ").concat(i,", size: ").concat(a,")."));if(3===x)throw new Error("sigma/quadtree.insertNode: 3 impossible collisions (level: ".concat(f,", key: ").concat(r,", x: ").concat(o,", y: ").concat(i,", size: ").concat(a,")."));if(x>1)return n[h]=n[h]||[],void n[h].push(r);f++,y&&(h=p),b&&(h=g),w&&(h=m),E&&(h=v)}}(0,this.data,this.containers,e,t,n,r),this},e.prototype.resize=function(e){this.clear(),this.data[0]=e.x,this.data[1]=e.y,this.data[2]=e.width,this.data[3]=e.height,function(e,t){for(var n=[0,0];n.length;){var r=n.pop(),o=n.pop(),i=4*o+4,a=4*o+8,s=4*o+12,u=4*o+16,c=t[o+0],l=t[o+1],d=t[o+2]/2,f=t[o+3]/2;t[i+0]=c,t[i+1]=l,t[i+2]=d,t[i+3]=f,t[a+0]=c+d,t[a+1]=l,t[a+2]=d,t[a+3]=f,t[s+0]=c,t[s+1]=l+f,t[s+2]=d,t[s+3]=f,t[u+0]=c+d,t[u+1]=l+f,t[u+2]=d,t[u+3]=f,r<4&&(n.push(u,r+1),n.push(s,r+1),n.push(a,r+1),n.push(i,r+1))}}(0,this.data)},e.prototype.clear=function(){var e;return this.containers=((e={}).outside=[],e),this},e.prototype.point=function(e,t){var n=this.containers.outside,i=0,a=0;do{this.containers[i]&&n.push.apply(n,o([],r(this.containers[i]),!1)),i=4*i+4*f(e,t,this.data[i+0],this.data[i+1],this.data[i+2],this.data[i+3]),a++}while(a<=5);return n},e.prototype.rectangle=function(e,t,n,i,s){var l,f=this.lastRectangle;return f&&e===f.x1&&n===f.x2&&t===f.y1&&i===f.y2&&s===f.height||(this.lastRectangle={x1:e,y1:t,x2:n,y2:i,height:s},u(this.lastRectangle)||(this.lastRectangle=c(this.lastRectangle)),this.cache=function(e,t,n,r,o,i,s){for(var u,c=[0,0],l=[];c.length;){var f=c.pop(),h=c.pop();if((u=n[h])&&(0,a.default)(l,u),!(f>=5)){var p=4*h+4,g=4*h+8,m=4*h+12,v=4*h+16,y=d(r,o,i,s,t[p+0],t[p+1],t[p+2],t[p+3]),b=d(r,o,i,s,t[g+0],t[g+1],t[g+2],t[g+3]),w=d(r,o,i,s,t[m+0],t[m+1],t[m+2],t[m+3]),E=d(r,o,i,s,t[v+0],t[v+1],t[v+2],t[v+3]);y&&c.push(p,f+1),b&&c.push(g,f+1),w&&c.push(m,f+1),E&&c.push(v,f+1)}}return l}(0,this.data,this.containers,e,t,Math.abs(e-n)||Math.abs(t-i),s),(l=this.cache).push.apply(l,o([],r(this.containers.outside),!1))),this.cache},e}();t.default=h},9358:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Sigma=t.MouseCaptor=t.QuadTree=t.Camera=void 0;var o=r(n(8953));t.Sigma=o.default;var i=r(n(1250));t.Camera=i.default;var a=r(n(9316));t.QuadTree=a.default;var s=r(n(3834));t.MouseCaptor=s.default,t.default=o.default},284:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){var i=o.edgeLabelSize,a=o.edgeLabelFont,s=o.edgeLabelWeight,u=o.edgeLabelColor.attribute?t[o.edgeLabelColor.attribute]||o.edgeLabelColor.color||"#000":o.edgeLabelColor.color,c=t.label;if(c){e.fillStyle=u,e.font="".concat(s," ").concat(i,"px ").concat(a);var l,d,f=n.size,h=r.size,p=n.x,g=n.y,m=r.x,v=r.y,y=m-p,b=v-g,w=Math.sqrt(y*y+b*b);if(!(w<f+h)){l=((p+=y*f/w)+(m-=y*h/w))/2,d=((g+=b*f/w)+(v-=b*h/w))/2,y=m-p,b=v-g,w=Math.sqrt(y*y+b*b);var E,x=e.measureText(c).width;if(x>w){for(c+="…",x=e.measureText(c).width;x>w&&c.length>1;)c=c.slice(0,-2)+"…",x=e.measureText(c).width;if(c.length<4)return}E=y>0?b>0?Math.acos(y/w):Math.asin(b/w):b>0?Math.acos(y/w)+Math.PI:Math.asin(y/w)+Math.PI/2,e.save(),e.translate(l,d),e.rotate(E),e.fillText(c,-x/2,t.size/2+i),e.restore()}}}},4362:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(2193));t.default=function(e,t,n){var r=n.labelSize,i=n.labelFont,a=n.labelWeight;if(e.font="".concat(a," ").concat(r,"px ").concat(i),e.fillStyle="#FFF",e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=8,e.shadowColor="#000","string"==typeof t.label){var s=e.measureText(t.label).width,u=Math.round(s+5),c=Math.round(r+4),l=Math.max(t.size,r/2)+2,d=Math.asin(c/2/l),f=Math.sqrt(Math.abs(Math.pow(l,2)-Math.pow(c/2,2)));e.beginPath(),e.moveTo(t.x+f,t.y+c/2),e.lineTo(t.x+l+u,t.y+c/2),e.lineTo(t.x+l+u,t.y-c/2),e.lineTo(t.x+f,t.y-c/2),e.arc(t.x,t.y,l,d,-d),e.closePath(),e.fill()}else e.beginPath(),e.arc(t.x,t.y,t.size+2,0,2*Math.PI),e.closePath(),e.fill();e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0,(0,o.default)(e,t,n)}},2193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(t.label){var r=n.labelSize,o=n.labelFont,i=n.labelWeight,a=n.labelColor.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color;e.fillStyle=a,e.font="".concat(i," ").concat(r,"px ").concat(o),e.fillText(t.label,t.x+t.size+3,t.y+r/3)}}},4488:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.createEdgeCompoundProgram=t.AbstractEdgeProgram=void 0;var i=function(e){function t(t,n,r,o,i){return e.call(this,t,n,r,o,i)||this}return o(t,e),t}(n(1549).AbstractProgram);t.AbstractEdgeProgram=i,t.createEdgeCompoundProgram=function(e){return function(){function t(t,n){this.programs=e.map((function(e){return new e(t,n)}))}return t.prototype.bufferData=function(){this.programs.forEach((function(e){return e.bufferData()}))},t.prototype.allocate=function(e){this.programs.forEach((function(t){return t.allocate(e)}))},t.prototype.bind=function(){},t.prototype.computeIndices=function(){this.programs.forEach((function(e){return e.computeIndices()}))},t.prototype.render=function(e){this.programs.forEach((function(t){t.bind(),t.bufferData(),t.render(e)}))},t.prototype.process=function(e,t,n,r,o){this.programs.forEach((function(i){return i.process(e,t,n,r,o)}))},t}()}},1624:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.createNodeCompoundProgram=t.AbstractNodeProgram=void 0;var i=function(e){function t(t,n,r,o,i){var a=e.call(this,t,n,r,o,i)||this;a.positionLocation=t.getAttribLocation(a.program,"a_position"),a.sizeLocation=t.getAttribLocation(a.program,"a_size"),a.colorLocation=t.getAttribLocation(a.program,"a_color");var s=t.getUniformLocation(a.program,"u_matrix");if(null===s)throw new Error("AbstractNodeProgram: error while getting matrixLocation");a.matrixLocation=s;var u=t.getUniformLocation(a.program,"u_ratio");if(null===u)throw new Error("AbstractNodeProgram: error while getting ratioLocation");a.ratioLocation=u;var c=t.getUniformLocation(a.program,"u_scale");if(null===c)throw new Error("AbstractNodeProgram: error while getting scaleLocation");return a.scaleLocation=c,a}return o(t,e),t.prototype.bind=function(){var e=this.gl;e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.sizeLocation),e.enableVertexAttribArray(this.colorLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.sizeLocation,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,this.attributes*Float32Array.BYTES_PER_ELEMENT,12)},t}(n(1549).AbstractProgram);t.AbstractNodeProgram=i,t.createNodeCompoundProgram=function(e){return function(){function t(t,n){this.programs=e.map((function(e){return new e(t,n)}))}return t.prototype.bufferData=function(){this.programs.forEach((function(e){return e.bufferData()}))},t.prototype.allocate=function(e){this.programs.forEach((function(t){return t.allocate(e)}))},t.prototype.bind=function(){},t.prototype.render=function(e){this.programs.forEach((function(t){return t.render(e)}))},t.prototype.process=function(e,t,n){this.programs.forEach((function(r){return r.process(e,t,n)}))},t}()}},1549:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractProgram=void 0;var r=n(3451),o=function(){function e(e,t,n,o,i){this.array=new Float32Array,this.points=o,this.attributes=i,this.gl=e,this.vertexShaderSource=t,this.fragmentShaderSource=n;var a=e.createBuffer();if(null===a)throw new Error("AbstractProgram: error while creating the buffer");this.buffer=a,e.bindBuffer(e.ARRAY_BUFFER,this.buffer),this.vertexShader=(0,r.loadVertexShader)(e,this.vertexShaderSource),this.fragmentShader=(0,r.loadFragmentShader)(e,this.fragmentShaderSource),this.program=(0,r.loadProgram)(e,[this.vertexShader,this.fragmentShader])}return e.prototype.bufferData=function(){var e=this.gl;e.bufferData(e.ARRAY_BUFFER,this.array,e.DYNAMIC_DRAW)},e.prototype.allocate=function(e){this.array=new Float32Array(this.points*this.attributes*e)},e.prototype.hasNothingToRender=function(){return 0===this.array.length},e}();t.AbstractProgram=o},5696:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(4488),i=r(n(3193)),a=r(n(3653)),s=(0,o.createEdgeCompoundProgram)([a.default,i.default]);t.default=s},3193:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=i(n(577)),u=i(n(1604)),c=function(e){function t(t){var n=e.call(this,t,s.default,u.default,3,9)||this;n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal"),n.radiusLocation=t.getAttribLocation(n.program,"a_radius"),n.barycentricLocation=t.getAttribLocation(n.program,"a_barycentric");var r=t.getUniformLocation(n.program,"u_matrix");if(null===r)throw new Error("EdgeArrowHeadProgram: error while getting matrixLocation");n.matrixLocation=r;var o=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===o)throw new Error("EdgeArrowHeadProgram: error while getting sqrtZoomRatioLocation");n.sqrtZoomRatioLocation=o;var i=t.getUniformLocation(n.program,"u_correctionRatio");if(null===i)throw new Error("EdgeArrowHeadProgram: error while getting correctionRatioLocation");return n.correctionRatioLocation=i,n.bind(),n}return o(t,e),t.prototype.bind=function(){var e=this.gl;e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.radiusLocation),e.enableVertexAttribArray(this.colorLocation),e.enableVertexAttribArray(this.barycentricLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,9*Float32Array.BYTES_PER_ELEMENT,20),e.vertexAttribPointer(this.barycentricLocation,3,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,24)},t.prototype.computeIndices=function(){},t.prototype.process=function(e,t,n,r,o){if(r)for(var i=27*o,s=i+27;i<s;i++)this.array[i]=0;else{var u=n.size||1,c=t.size||1,l=e.x,d=e.y,f=t.x,h=t.y,p=(0,a.floatColor)(n.color),g=f-l,m=h-d,v=g*g+m*m,y=0,b=0;v&&(y=-m*(v=1/Math.sqrt(v))*u,b=g*v*u);var w=27*o,E=this.array;E[w++]=f,E[w++]=h,E[w++]=-y,E[w++]=-b,E[w++]=c,E[w++]=p,E[w++]=1,E[w++]=0,E[w++]=0,E[w++]=f,E[w++]=h,E[w++]=-y,E[w++]=-b,E[w++]=c,E[w++]=p,E[w++]=0,E[w++]=1,E[w++]=0,E[w++]=f,E[w++]=h,E[w++]=-y,E[w++]=-b,E[w++]=c,E[w++]=p,E[w++]=0,E[w++]=0,E[w]=1}},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawArrays(t.TRIANGLES,0,this.array.length/9)}},t}(n(4488).AbstractEdgeProgram);t.default=c},3653:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(4488),s=n(8586),u=i(n(3574)),c=i(n(3343)),l=function(e){function t(t){var n=e.call(this,t,u.default,c.default,4,6)||this,r=t.createBuffer();if(null===r)throw new Error("EdgeClampedProgram: error while getting resolutionLocation");n.indicesBuffer=r,n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal"),n.radiusLocation=t.getAttribLocation(n.program,"a_radius");var o=t.getUniformLocation(n.program,"u_matrix");if(null===o)throw new Error("EdgeClampedProgram: error while getting matrixLocation");n.matrixLocation=o;var i=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===i)throw new Error("EdgeClampedProgram: error while getting cameraRatioLocation");n.sqrtZoomRatioLocation=i;var a=t.getUniformLocation(n.program,"u_correctionRatio");if(null===a)throw new Error("EdgeClampedProgram: error while getting viewportRatioLocation");return n.correctionRatioLocation=a,n.canUse32BitsIndices=(0,s.canUse32BitsIndices)(t),n.IndicesArray=n.canUse32BitsIndices?Uint32Array:Uint16Array,n.indicesArray=new n.IndicesArray,n.indicesType=n.canUse32BitsIndices?t.UNSIGNED_INT:t.UNSIGNED_SHORT,n.bind(),n}return o(t,e),t.prototype.bind=function(){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.colorLocation),e.enableVertexAttribArray(this.radiusLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,6*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,20)},t.prototype.process=function(e,t,n,r,o){if(r)for(var i=24*o,a=i+24;i<a;i++)this.array[i]=0;else{var u=n.size||1,c=e.x,l=e.y,d=t.x,f=t.y,h=t.size||1,p=(0,s.floatColor)(n.color),g=d-c,m=f-l,v=g*g+m*m,y=0,b=0;v&&(y=-m*(v=1/Math.sqrt(v))*u,b=g*v*u);var w=24*o,E=this.array;E[w++]=c,E[w++]=l,E[w++]=y,E[w++]=b,E[w++]=p,E[w++]=0,E[w++]=c,E[w++]=l,E[w++]=-y,E[w++]=-b,E[w++]=p,E[w++]=0,E[w++]=d,E[w++]=f,E[w++]=y,E[w++]=b,E[w++]=p,E[w++]=h,E[w++]=d,E[w++]=f,E[w++]=-y,E[w++]=-b,E[w++]=p,E[w]=-h}},t.prototype.computeIndices=function(){for(var e=this.array.length/6,t=e+e/2,n=new this.IndicesArray(t),r=0,o=0;r<e;r+=4)n[o++]=r,n[o++]=r+1,n[o++]=r+2,n[o++]=r+2,n[o++]=r+1,n[o++]=r+3;this.indicesArray=n},t.prototype.bufferData=function(){e.prototype.bufferData.call(this);var t=this.gl;t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indicesArray,t.STATIC_DRAW)},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}},t}(a.AbstractEdgeProgram);t.default=l},5372:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=i(n(9843)),u=i(n(3343)),c=function(e){function t(t){var n=e.call(this,t,s.default,u.default,4,5)||this,r=t.createBuffer();if(null===r)throw new Error("EdgeProgram: error while creating indicesBuffer");n.indicesBuffer=r,n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal");var o=t.getUniformLocation(n.program,"u_matrix");if(null===o)throw new Error("EdgeProgram: error while getting matrixLocation");n.matrixLocation=o;var i=t.getUniformLocation(n.program,"u_correctionRatio");if(null===i)throw new Error("EdgeProgram: error while getting correctionRatioLocation");n.correctionRatioLocation=i;var c=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===c)throw new Error("EdgeProgram: error while getting sqrtZoomRatioLocation");return n.sqrtZoomRatioLocation=c,n.canUse32BitsIndices=(0,a.canUse32BitsIndices)(t),n.IndicesArray=n.canUse32BitsIndices?Uint32Array:Uint16Array,n.indicesArray=new n.IndicesArray,n.indicesType=n.canUse32BitsIndices?t.UNSIGNED_INT:t.UNSIGNED_SHORT,n.bind(),n}return o(t,e),t.prototype.bind=function(){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.colorLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,5*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,5*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,5*Float32Array.BYTES_PER_ELEMENT,16)},t.prototype.computeIndices=function(){for(var e=this.array.length/5,t=e+e/2,n=new this.IndicesArray(t),r=0,o=0;r<e;r+=4)n[o++]=r,n[o++]=r+1,n[o++]=r+2,n[o++]=r+2,n[o++]=r+1,n[o++]=r+3;this.indicesArray=n},t.prototype.bufferData=function(){e.prototype.bufferData.call(this);var t=this.gl;t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indicesArray,t.STATIC_DRAW)},t.prototype.process=function(e,t,n,r,o){if(r)for(var i=20*o,s=i+20;i<s;i++)this.array[i]=0;else{var u=n.size||1,c=e.x,l=e.y,d=t.x,f=t.y,h=(0,a.floatColor)(n.color),p=d-c,g=f-l,m=p*p+g*g,v=0,y=0;m&&(v=-g*(m=1/Math.sqrt(m))*u,y=p*m*u);var b=20*o,w=this.array;w[b++]=c,w[b++]=l,w[b++]=v,w[b++]=y,w[b++]=h,w[b++]=c,w[b++]=l,w[b++]=-v,w[b++]=-y,w[b++]=h,w[b++]=d,w[b++]=f,w[b++]=v,w[b++]=y,w[b++]=h,w[b++]=d,w[b++]=f,w[b++]=-v,w[b++]=-y,w[b]=h}},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}},t}(n(4488).AbstractEdgeProgram);t.default=c},732:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=i(n(1432)),u=i(n(6846)),c=function(e){function t(t){var n=e.call(this,t,s.default,u.default,1,4)||this;return n.bind(),n}return o(t,e),t.prototype.process=function(e,t,n){var r=this.array,o=1*n*4;if(t)return r[o++]=0,r[o++]=0,r[o++]=0,void(r[o++]=0);var i=(0,a.floatColor)(e.color);r[o++]=e.x,r[o++]=e.y,r[o++]=e.size,r[o]=i},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniform1f(this.ratioLocation,1/Math.sqrt(e.ratio)),t.uniform1f(this.scaleLocation,e.scalingRatio),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.drawArrays(t.POINTS,0,this.array.length/4)}},t}(n(1624).AbstractNodeProgram);t.default=c},1604:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="precision mediump float;\n\nvarying vec4 v_color;\n\nvoid main(void) {\n gl_FragColor = v_color;\n}\n";e.exports=n})()},577:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="attribute vec2 a_position;\nattribute vec2 a_normal;\nattribute float a_radius;\nattribute vec4 a_color;\nattribute vec3 a_barycentric;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\nconst float arrowHeadWidthLengthRatio = 0.66;\nconst float arrowHeadLengthThicknessRatio = 2.5;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // These first computations are taken from edge.vert.glsl and\n // edge.clamped.vert.glsl. Please read it to get better comments on what's\n // happening:\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n float webGLThickness = pixelsThickness * u_correctionRatio;\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n float adaptedWebGLNodeRadius = a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio;\n float adaptedWebGLArrowHeadHalfWidth = adaptedWebGLArrowHeadLength * arrowHeadWidthLengthRatio / 2.0;\n\n float da = a_barycentric.x;\n float db = a_barycentric.y;\n float dc = a_barycentric.z;\n\n vec2 delta = vec2(\n da * (adaptedWebGLNodeRadius * unitNormal.y)\n + db * ((adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.y + adaptedWebGLArrowHeadHalfWidth * unitNormal.x)\n + dc * ((adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.y - adaptedWebGLArrowHeadHalfWidth * unitNormal.x),\n\n da * (-adaptedWebGLNodeRadius * unitNormal.x)\n + db * (-(adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.x + adaptedWebGLArrowHeadHalfWidth * unitNormal.y)\n + dc * (-(adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.x - adaptedWebGLArrowHeadHalfWidth * unitNormal.y)\n );\n\n vec2 position = (u_matrix * vec3(a_position + delta, 1)).xy;\n\n gl_Position = vec4(position, 0, 1);\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n})()},3574:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="attribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\nattribute float a_radius;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\nconst float arrowHeadLengthThicknessRatio = 2.5;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // These first computations are taken from edge.vert.glsl. Please read it to\n // get better comments on what's happening:\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n float webGLThickness = pixelsThickness * u_correctionRatio;\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // Here, we move the point to leave space for the arrow head:\n float direction = sign(a_radius);\n float adaptedWebGLNodeRadius = direction * a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio;\n\n vec2 compensationVector = vec2(-direction * unitNormal.y, direction * unitNormal.x) * (adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength);\n\n // Here is the proper position of the vertex\n gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness + compensationVector, 1)).xy, 0, 1);\n\n v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n v_normal = unitNormal;\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n})()},3343:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="precision mediump float;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float feather = 0.001;\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\n\n\nvoid main(void) {\n float dist = length(v_normal) * v_thickness;\n\n float t = smoothstep(\n v_thickness - feather,\n v_thickness,\n dist\n );\n\n gl_FragColor = mix(v_color, transparent, t);\n}";e.exports=n})()},9843:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r='attribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // We require edges to be at least `minThickness` pixels thick *on screen*\n // (so we need to compensate the SQRT zoom ratio):\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n\n // Then, we need to retrieve the normalized thickness of the edge in the WebGL\n // referential (in a ([0, 1], [0, 1]) space), using our "magic" correction\n // ratio:\n float webGLThickness = pixelsThickness * u_correctionRatio;\n\n // Finally, we adapt the edge thickness to the "SQRT rule" in sigma (so that\n // items are not too big when zoomed in, and not too small when zoomed out).\n // The exact computation should be `adapted = value * zoom / sqrt(zoom)`, but\n // it\'s simpler like this:\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // Here is the proper position of the vertex\n gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness, 1)).xy, 0, 1);\n\n // For the fragment shader though, we need a thickness that takes the "magic"\n // correction ratio into account (as in webGLThickness), but so that the\n // antialiasint effect does not depend on the zoom level. So here\'s yet\n // another thickness version:\n v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n v_normal = unitNormal;\n v_color = a_color;\n v_color.a *= bias;\n}\n';e.exports=n})()},6846:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="precision mediump float;\n\nvarying vec4 v_color;\nvarying float v_border;\n\nconst float radius = 0.5;\n\nvoid main(void) {\n vec4 color0 = vec4(0.0, 0.0, 0.0, 0.0);\n vec2 m = gl_PointCoord - vec2(0.5, 0.5);\n float dist = radius - length(m);\n\n float t = 0.0;\n if (dist > v_border)\n t = 1.0;\n else if (dist > 0.0)\n t = dist / v_border;\n\n gl_FragColor = mix(color0, v_color, t);\n}\n";e.exports=n})()},1432:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="attribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying vec4 v_color;\nvarying float v_border;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n gl_Position = vec4(\n (u_matrix * vec3(a_position, 1)).xy,\n 0,\n 1\n );\n\n // Multiply the point size twice:\n // - x SCALING_RATIO to correct the canvas scaling\n // - x 2 to correct the formulae\n gl_PointSize = a_size * u_ratio * u_scale * 2.0;\n\n v_border = (1.0 / u_ratio) * (0.5 / a_size);\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n})()},3451:(e,t)=>{"use strict";function n(e,t,n){var r="VERTEX"===e?t.VERTEX_SHADER:t.FRAGMENT_SHADER,o=t.createShader(r);if(null===o)throw new Error("loadShader: error while creating the shader");if(t.shaderSource(o,n),t.compileShader(o),!t.getShaderParameter(o,t.COMPILE_STATUS)){var i=t.getShaderInfoLog(o);throw t.deleteShader(o),new Error("loadShader: error while compiling the shader:\n".concat(i,"\n").concat(n))}return o}Object.defineProperty(t,"__esModule",{value:!0}),t.loadProgram=t.loadFragmentShader=t.loadVertexShader=void 0,t.loadVertexShader=function(e,t){return n("VERTEX",e,t)},t.loadFragmentShader=function(e,t){return n("FRAGMENT",e,t)},t.loadProgram=function(e,t){var n,r,o=e.createProgram();if(null===o)throw new Error("loadProgram: error while creating the program.");for(n=0,r=t.length;n<r;n++)e.attachShader(o,t[n]);if(e.linkProgram(o),!e.getProgramParameter(o,e.LINK_STATUS))throw e.deleteProgram(o),new Error("loadProgram: error while linking the program.");return o}},9061:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_SETTINGS=t.validateSettings=void 0;var o=r(n(2193)),i=r(n(4362)),a=r(n(284)),s=r(n(732)),u=r(n(5372)),c=r(n(5696));t.validateSettings=function(e){if("number"!=typeof e.labelDensity||e.labelDensity<0)throw new Error("Settings: invalid `labelDensity`. Expecting a positive number.");var t=e.minCameraRatio,n=e.maxCameraRatio;if("number"==typeof t&&"number"==typeof n&&n<t)throw new Error("Settings: invalid camera ratio boundaries. Expecting `maxCameraRatio` to be greater than `minCameraRatio`.")},t.DEFAULT_SETTINGS={hideEdgesOnMove:!1,hideLabelsOnMove:!1,renderLabels:!0,renderEdgeLabels:!1,enableEdgeClickEvents:!1,enableEdgeWheelEvents:!1,enableEdgeHoverEvents:!1,defaultNodeColor:"#999",defaultNodeType:"circle",defaultEdgeColor:"#ccc",defaultEdgeType:"line",labelFont:"Arial",labelSize:14,labelWeight:"normal",labelColor:{color:"#000"},edgeLabelFont:"Arial",edgeLabelSize:14,edgeLabelWeight:"normal",edgeLabelColor:{attribute:"color"},stagePadding:30,labelDensity:1,labelGridCellSize:100,labelRenderedSizeThreshold:6,nodeReducer:null,edgeReducer:null,zIndex:!1,minCameraRatio:null,maxCameraRatio:null,labelRenderer:o.default,hoverRenderer:i.default,edgeLabelRenderer:a.default,nodeProgramClasses:{circle:s.default},edgeProgramClasses:{arrow:c.default,line:u.default}}},8953:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=s(n(1250)),c=s(n(3834)),l=s(n(9316)),d=n(432),f=n(8586),h=n(2306),p=n(9061),g=s(n(916)),m=n(2237),v=n(8073),y=(0,f.getPixelRatio)();function b(e,t,n){if(!n.hasOwnProperty("x")||!n.hasOwnProperty("y"))throw new Error('Sigma: could not find a valid position (x, y) for node "'.concat(t,'". All your nodes must have a number "x" and "y". Maybe your forgot to apply a layout or your "nodeReducer" is not returning the correct data?'));return n.color||(n.color=e.defaultNodeColor),n.label||""===n.label||(n.label=null),void 0!==n.label&&null!==n.label?n.label=""+n.label:n.label=null,n.size||(n.size=2),n.hasOwnProperty("hidden")||(n.hidden=!1),n.hasOwnProperty("highlighted")||(n.highlighted=!1),n.hasOwnProperty("forceLabel")||(n.forceLabel=!1),n.type&&""!==n.type||(n.type=e.defaultNodeType),n.zIndex||(n.zIndex=0),n}function w(e,t,n){return n.color||(n.color=e.defaultEdgeColor),n.label||(n.label=""),n.size||(n.size=.5),n.hasOwnProperty("hidden")||(n.hidden=!1),n.hasOwnProperty("forceLabel")||(n.forceLabel=!1),n.type&&""!==n.type||(n.type=e.defaultEdgeType),n.zIndex||(n.zIndex=0),n}var E=function(e){function t(t,n,r){void 0===r&&(r={});var o=e.call(this)||this;if(o.elements={},o.canvasContexts={},o.webGLContexts={},o.activeListeners={},o.quadtree=new l.default,o.labelGrid=new h.LabelGrid,o.nodeDataCache={},o.edgeDataCache={},o.nodesWithForcedLabels=[],o.edgesWithForcedLabels=[],o.nodeKeyToIndex={},o.edgeKeyToIndex={},o.nodeExtent={x:[0,1],y:[0,1]},o.matrix=(0,m.identity)(),o.invMatrix=(0,m.identity)(),o.correctionRatio=1,o.customBBox=null,o.normalizationFunction=(0,f.createNormalizationFunction)({x:[-1/0,1/0],y:[-1/0,1/0]}),o.cameraSizeRatio=1,o.width=0,o.height=0,o.displayedLabels=new Set,o.highlightedNodes=new Set,o.hoveredNode=null,o.hoveredEdge=null,o.renderFrame=null,o.renderHighlightedNodesFrame=null,o.needToProcess=!1,o.needToSoftProcess=!1,o.checkEdgesEventsFrame=null,o.nodePrograms={},o.hoverNodePrograms={},o.edgePrograms={},o.settings=(0,f.assign)({},p.DEFAULT_SETTINGS,r),(0,p.validateSettings)(o.settings),(0,f.validateGraph)(t),!(n instanceof HTMLElement))throw new Error("Sigma: container should be an html element.");for(var i in o.graph=t,o.container=n,o.initializeCache(),o.createWebGLContext("edges",{preserveDrawingBuffer:!0}),o.createCanvasContext("edgeLabels"),o.createWebGLContext("nodes"),o.createCanvasContext("labels"),o.createCanvasContext("hovers"),o.createWebGLContext("hoverNodes"),o.createCanvasContext("mouse"),o.webGLContexts){var a=o.webGLContexts[i];a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA),a.enable(a.BLEND)}for(var s in o.settings.nodeProgramClasses){var d=o.settings.nodeProgramClasses[s];o.nodePrograms[s]=new d(o.webGLContexts.nodes,o),o.hoverNodePrograms[s]=new d(o.webGLContexts.hoverNodes,o)}for(var s in o.settings.edgeProgramClasses){var v=o.settings.edgeProgramClasses[s];o.edgePrograms[s]=new v(o.webGLContexts.edges,o)}return o.resize(),o.camera=new u.default,o.bindCameraHandlers(),o.mouseCaptor=new c.default(o.elements.mouse,o),o.touchCaptor=new g.default(o.elements.mouse,o),o.bindEventHandlers(),o.bindGraphHandlers(),o.handleSettingsUpdate(),o.process(),o.render(),o}return o(t,e),t.prototype.createCanvas=function(e){var t=(0,f.createElement)("canvas",{position:"absolute"},{class:"sigma-".concat(e)});return this.elements[e]=t,this.container.appendChild(t),t},t.prototype.createCanvasContext=function(e){var t=this.createCanvas(e);return this.canvasContexts[e]=t.getContext("2d",{preserveDrawingBuffer:!1,antialias:!1}),this},t.prototype.createWebGLContext=function(e,t){var n,r=this.createCanvas(e),o=i({preserveDrawingBuffer:!1,antialias:!1},t||{});return(n=r.getContext("webgl2",o))||(n=r.getContext("webgl",o)),n||(n=r.getContext("experimental-webgl",o)),this.webGLContexts[e]=n,this},t.prototype.initializeCache=function(){var e=this,t=this.graph,n=0;t.forEachNode((function(t){e.nodeKeyToIndex[t]=n++})),n=0,t.forEachEdge((function(t){e.edgeKeyToIndex[t]=n++}))},t.prototype.bindCameraHandlers=function(){var e=this;return this.activeListeners.camera=function(){e._scheduleRefresh()},this.camera.on("updated",this.activeListeners.camera),this},t.prototype.bindEventHandlers=function(){var e=this;this.activeListeners.handleResize=function(){e.needToSoftProcess=!0,e._scheduleRefresh()},window.addEventListener("resize",this.activeListeners.handleResize);var t=function(e,t,n,r,o){return e>n-o&&e<n+o&&t>r-o&&t<r+o&&Math.sqrt(Math.pow(e-n,2)+Math.pow(t-r,2))<o};this.activeListeners.handleMove=function(n){for(var r,o,a,s=(r=n.x,o=n.y,a=e.viewportToFramedGraph({x:r,y:o}),e.quadtree.point(a.x,1-a.y)),u={event:n,preventSigmaDefault:function(){this.event.preventSigmaDefault()}},c=1/0,l=null,d=0,h=s.length;d<h;d++){var p=s[d],g=e.nodeDataCache[p],m=e.framedGraphToViewport(g),v=e.scaleSize(g.size);if(!g.hidden&&t(n.x,n.y,m.x,m.y,v)){var y=Math.sqrt(Math.pow(n.x-m.x,2)+Math.pow(n.y-m.y,2));y<c&&(c=y,l=p)}}return l&&e.hoveredNode!==l&&!e.nodeDataCache[l].hidden?(e.hoveredNode&&e.emit("leaveNode",i(i({},u),{node:e.hoveredNode})),e.hoveredNode=l,e.emit("enterNode",i(i({},u),{node:l})),void e.scheduleHighlightedNodesRender()):e.hoveredNode&&(g=e.nodeDataCache[e.hoveredNode],m=e.framedGraphToViewport(g),v=e.scaleSize(g.size),!t(n.x,n.y,m.x,m.y,v))?(p=e.hoveredNode,e.hoveredNode=null,e.emit("leaveNode",i(i({},u),{node:p})),e.scheduleHighlightedNodesRender()):void(!0===e.settings.enableEdgeHoverEvents?e.checkEdgeHoverEvents(u):"debounce"===e.settings.enableEdgeHoverEvents&&(e.checkEdgesEventsFrame||(e.checkEdgesEventsFrame=(0,f.requestFrame)((function(){e.checkEdgeHoverEvents(u),e.checkEdgesEventsFrame=null})))))};var n=function(t){return function(n){var r={event:n,preventSigmaDefault:function(){this.event.preventSigmaDefault()}};if(e.hoveredNode)return e.emit("".concat(t,"Node"),i(i({},r),{node:e.hoveredNode}));if("wheel"===t?e.settings.enableEdgeWheelEvents:e.settings.enableEdgeClickEvents){var o=e.getEdgeAtPoint(n.x,n.y);if(o)return e.emit("".concat(t,"Edge"),i(i({},r),{edge:o}))}return e.emit("".concat(t,"Stage"),r)}};return this.activeListeners.handleClick=n("click"),this.activeListeners.handleRightClick=n("rightClick"),this.activeListeners.handleDoubleClick=n("doubleClick"),this.activeListeners.handleWheel=n("wheel"),this.activeListeners.handleDown=n("down"),this.mouseCaptor.on("mousemove",this.activeListeners.handleMove),this.mouseCaptor.on("click",this.activeListeners.handleClick),this.mouseCaptor.on("rightClick",this.activeListeners.handleRightClick),this.mouseCaptor.on("doubleClick",this.activeListeners.handleDoubleClick),this.mouseCaptor.on("wheel",this.activeListeners.handleWheel),this.mouseCaptor.on("mousedown",this.activeListeners.handleDown),this},t.prototype.bindGraphHandlers=function(){var e=this,t=this.graph;return this.activeListeners.graphUpdate=function(){e.needToProcess=!0,e._scheduleRefresh()},this.activeListeners.softGraphUpdate=function(){e.needToSoftProcess=!0,e._scheduleRefresh()},this.activeListeners.addNodeGraphUpdate=function(n){e.nodeKeyToIndex[n.key]=t.order-1,e.activeListeners.graphUpdate()},this.activeListeners.addEdgeGraphUpdate=function(n){e.nodeKeyToIndex[n.key]=t.order-1,e.activeListeners.graphUpdate()},t.on("nodeAdded",this.activeListeners.addNodeGraphUpdate),t.on("nodeDropped",this.activeListeners.graphUpdate),t.on("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgeAdded",this.activeListeners.addEdgeGraphUpdate),t.on("edgeDropped",this.activeListeners.graphUpdate),t.on("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgesCleared",this.activeListeners.graphUpdate),t.on("cleared",this.activeListeners.graphUpdate),this},t.prototype.checkEdgeHoverEvents=function(e){var t=this.hoveredNode?null:this.getEdgeAtPoint(e.event.x,e.event.y);return t!==this.hoveredEdge&&(this.hoveredEdge&&this.emit("leaveEdge",i(i({},e),{edge:this.hoveredEdge})),t&&this.emit("enterEdge",i(i({},e),{edge:t})),this.hoveredEdge=t),this},t.prototype.getEdgeAtPoint=function(e,t){var n,r,o=this,i=this.edgeDataCache,s=this.nodeDataCache;if(!(0,v.isPixelColored)(this.webGLContexts.edges,e*y,t*y))return null;var u=this.viewportToGraph({x:e,y:t}),c=u.x,l=u.y,d=0;if(this.graph.someEdge((function(e,t,n,r,a,u){var c=a.x,l=a.y,f=u.x,h=u.y;if(i[e].hidden||s[n].hidden||s[r].hidden)return!1;if(c!==f||l!==h){var p=Math.sqrt(Math.pow(f-c,2)+Math.pow(h-l,2)),g=o.graphToViewport({x:c,y:l}),m=g.x,v=g.y,y=o.graphToViewport({x:f,y:h}),b=y.x,w=y.y,E=Math.sqrt(Math.pow(b-m,2)+Math.pow(w-v,2));return d=p/E,!0}})),!d)return null;var f=this.graph.filterEdges((function(e,t,n,r,a,u){return!(i[e].hidden||s[n].hidden||s[r].hidden)&&(!!(0,v.doEdgeCollideWithPoint)(c,l,a.x,a.y,u.x,u.y,i[e].size*d/o.cameraSizeRatio)||void 0)}));if(0===f.length)return null;var h=f[f.length-1],p=-1/0;try{for(var g=a(f),m=g.next();!m.done;m=g.next()){var b=m.value,w=this.graph.getEdgeAttribute(b,"zIndex");w>=p&&(h=b,p=w)}}catch(e){n={error:e}}finally{try{m&&!m.done&&(r=g.return)&&r.call(g)}finally{if(n)throw n.error}}return h},t.prototype.process=function(e){var t=this;void 0===e&&(e=!1);var n=this.graph,r=this.settings,o=this.getDimensions(),i=[1/0,-1/0],a=[1/0,-1/0];this.quadtree.clear(),this.labelGrid.resizeAndClear(o,r.labelGridCellSize),this.highlightedNodes=new Set,this.nodeExtent=(0,f.graphExtent)(n),this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[];var s=new u.default,c=(0,f.matrixFromCamera)(s.getState(),this.getDimensions(),this.getGraphDimensions(),this.getSetting("stagePadding")||0);this.normalizationFunction=(0,f.createNormalizationFunction)(this.customBBox||this.nodeExtent);for(var l={},d=n.nodes(),h=0,p=d.length;h<p;h++){var g=d[h],m=Object.assign({},n.getNodeAttributes(g));r.nodeReducer&&(m=r.nodeReducer(g,m)),l[(y=b(this.settings,g,m)).type]=(l[y.type]||0)+1,this.nodeDataCache[g]=y,this.normalizationFunction.applyTo(y),y.forceLabel&&this.nodesWithForcedLabels.push(g),this.settings.zIndex&&(y.zIndex<i[0]&&(i[0]=y.zIndex),y.zIndex>i[1]&&(i[1]=y.zIndex))}for(var v in this.nodePrograms){if(!this.nodePrograms.hasOwnProperty(v))throw new Error('Sigma: could not find a suitable program for node type "'.concat(v,'"!'));e||this.nodePrograms[v].allocate(l[v]||0),l[v]=0}for(this.settings.zIndex&&i[0]!==i[1]&&(d=(0,f.zIndexOrdering)(i,(function(e){return t.nodeDataCache[e].zIndex}),d)),h=0,p=d.length;h<p;h++){g=d[h];var y=this.nodeDataCache[g];this.quadtree.add(g,y.x,1-y.y,y.size/this.width),"string"!=typeof y.label||y.hidden||this.labelGrid.add(g,y.size,this.framedGraphToViewport(y,{matrix:c})),this.nodePrograms[y.type].process(y,y.hidden,l[y.type]++),y.highlighted&&!y.hidden&&this.highlightedNodes.add(g),this.nodeKeyToIndex[g]=h}this.labelGrid.organize();var E={},x=n.edges();for(h=0,p=x.length;h<p;h++){var _=x[h];m=Object.assign({},n.getEdgeAttributes(_)),r.edgeReducer&&(m=r.edgeReducer(_,m)),E[(y=w(this.settings,0,m)).type]=(E[y.type]||0)+1,this.edgeDataCache[_]=y,y.forceLabel&&!y.hidden&&this.edgesWithForcedLabels.push(_),this.settings.zIndex&&(y.zIndex<a[0]&&(a[0]=y.zIndex),y.zIndex>a[1]&&(a[1]=y.zIndex))}for(var v in this.edgePrograms){if(!this.edgePrograms.hasOwnProperty(v))throw new Error('Sigma: could not find a suitable program for edge type "'.concat(v,'"!'));e||this.edgePrograms[v].allocate(E[v]||0),E[v]=0}for(this.settings.zIndex&&a[0]!==a[1]&&(x=(0,f.zIndexOrdering)(a,(function(e){return t.edgeDataCache[e].zIndex}),x)),h=0,p=x.length;h<p;h++){_=x[h],y=this.edgeDataCache[_];var C=n.extremities(_),S=this.nodeDataCache[C[0]],A=this.nodeDataCache[C[1]],k=y.hidden||S.hidden||A.hidden;this.edgePrograms[y.type].process(S,A,y,k,E[y.type]++),this.nodeKeyToIndex[_]=h}for(var v in this.edgePrograms){var O=this.edgePrograms[v];e||"function"!=typeof O.computeIndices||O.computeIndices()}return this},t.prototype.handleSettingsUpdate=function(){return this.camera.minRatio=this.settings.minCameraRatio,this.camera.maxRatio=this.settings.maxCameraRatio,this.camera.setState(this.camera.validateState(this.camera.getState())),this},t.prototype._refresh=function(){return this.needToProcess?this.process():this.needToSoftProcess&&this.process(!0),this.needToProcess=!1,this.needToSoftProcess=!1,this.render(),this},t.prototype._scheduleRefresh=function(){var e=this;return this.renderFrame||(this.renderFrame=(0,f.requestFrame)((function(){e._refresh(),e.renderFrame=null}))),this},t.prototype.renderLabels=function(){if(!this.settings.renderLabels)return this;var e,t=this.camera.getState();if(t.ratio>=1)e=new Set(this.graph.nodes());else{var n=this.viewRectangle();e=new Set(this.quadtree.rectangle(n.x1,1-n.y1,n.x2,1-n.y2,n.height))}var r=this.labelGrid.getLabelsToDisplay(t.ratio,this.settings.labelDensity).concat(this.nodesWithForcedLabels);this.displayedLabels=new Set;for(var o=this.canvasContexts.labels,a=0,s=r.length;a<s;a++){var u=r[a],c=this.nodeDataCache[u];if(!this.displayedLabels.has(u)&&!c.hidden){var l=this.framedGraphToViewport(c),d=l.x,f=l.y,h=this.scaleSize(c.size);!c.forceLabel&&h<this.settings.labelRenderedSizeThreshold||e.has(u)&&(this.displayedLabels.add(u),this.settings.labelRenderer(o,i(i({key:u},c),{size:h,x:d,y:f}),this.settings))}}return this},t.prototype.renderEdgeLabels=function(){if(!this.settings.renderEdgeLabels)return this;var e=this.canvasContexts.edgeLabels;e.clearRect(0,0,this.width,this.height);for(var t=(0,h.edgeLabelsToDisplayFromNodes)({graph:this.graph,hoveredNode:this.hoveredNode,displayedNodeLabels:this.displayedLabels,highlightedNodes:this.highlightedNodes}).concat(this.edgesWithForcedLabels),n=new Set,r=0,o=t.length;r<o;r++){var a=t[r],s=this.graph.extremities(a),u=this.nodeDataCache[s[0]],c=this.nodeDataCache[s[1]],l=this.edgeDataCache[a];n.has(a)||l.hidden||u.hidden||c.hidden||(this.settings.edgeLabelRenderer(e,i(i({key:a},l),{size:this.scaleSize(l.size)}),i(i(i({key:s[0]},u),this.framedGraphToViewport(u)),{size:this.scaleSize(u.size)}),i(i(i({key:s[1]},c),this.framedGraphToViewport(c)),{size:this.scaleSize(c.size)}),this.settings),n.add(a))}return this},t.prototype.renderHighlightedNodes=function(){var e=this,t=this.canvasContexts.hovers;t.clearRect(0,0,this.width,this.height);var n=[];this.hoveredNode&&!this.nodeDataCache[this.hoveredNode].hidden&&n.push(this.hoveredNode),this.highlightedNodes.forEach((function(t){t!==e.hoveredNode&&n.push(t)})),n.forEach((function(n){return function(n){var r=e.nodeDataCache[n],o=e.framedGraphToViewport(r),a=o.x,s=o.y,u=e.scaleSize(r.size);e.settings.hoverRenderer(t,i(i({key:n},r),{size:u,x:a,y:s}),e.settings)}(n)}));var r={};for(var o in n.forEach((function(t){var n=e.nodeDataCache[t].type;r[n]=(r[n]||0)+1})),this.hoverNodePrograms)this.hoverNodePrograms[o].allocate(r[o]||0),r[o]=0;for(var o in n.forEach((function(t){var n=e.nodeDataCache[t];e.hoverNodePrograms[n.type].process(n,n.hidden,r[n.type]++)})),this.hoverNodePrograms){var a=this.hoverNodePrograms[o];a.bind(),a.bufferData(),a.render({matrix:this.matrix,width:this.width,height:this.height,ratio:this.camera.ratio,correctionRatio:this.correctionRatio/this.camera.ratio,scalingRatio:y})}},t.prototype.scheduleHighlightedNodesRender=function(){var e=this;this.renderHighlightedNodesFrame||this.renderFrame||(this.renderHighlightedNodesFrame=(0,f.requestFrame)((function(){e.renderHighlightedNodesFrame=null,e.renderHighlightedNodes(),e.renderEdgeLabels()})))},t.prototype.render=function(){if(this.renderFrame&&((0,f.cancelFrame)(this.renderFrame),this.renderFrame=null,this.needToProcess=!1,this.needToSoftProcess=!1),this.resize(),this.clear(),this.updateCachedValues(),!this.graph.order)return this;var e=this.mouseCaptor,t=this.camera.isAnimated()||e.isMoving||e.draggedEvents||e.currentWheelDirection,n=this.camera.getState(),r=this.getDimensions(),o=this.getGraphDimensions(),i=this.getSetting("stagePadding")||0;for(var a in this.matrix=(0,f.matrixFromCamera)(n,r,o,i),this.invMatrix=(0,f.matrixFromCamera)(n,r,o,i,!0),this.correctionRatio=(0,f.getMatrixImpact)(this.matrix,n,r),this.nodePrograms)(s=this.nodePrograms[a]).bind(),s.bufferData(),s.render({matrix:this.matrix,width:this.width,height:this.height,ratio:n.ratio,correctionRatio:this.correctionRatio/n.ratio,scalingRatio:y});if(!this.settings.hideEdgesOnMove||!t)for(var a in this.edgePrograms){var s;(s=this.edgePrograms[a]).bind(),s.bufferData(),s.render({matrix:this.matrix,width:this.width,height:this.height,ratio:n.ratio,correctionRatio:this.correctionRatio/n.ratio,scalingRatio:y})}return this.settings.hideLabelsOnMove&&t||(this.renderLabels(),this.renderEdgeLabels(),this.renderHighlightedNodes(),this.emit("afterRender")),this},t.prototype.updateCachedValues=function(){var e=this.camera.getState().ratio;this.cameraSizeRatio=Math.sqrt(e)},t.prototype.getCamera=function(){return this.camera},t.prototype.getGraph=function(){return this.graph},t.prototype.getMouseCaptor=function(){return this.mouseCaptor},t.prototype.getTouchCaptor=function(){return this.touchCaptor},t.prototype.getDimensions=function(){return{width:this.width,height:this.height}},t.prototype.getGraphDimensions=function(){var e=this.customBBox||this.nodeExtent;return{width:e.x[1]-e.x[0]||1,height:e.y[1]-e.y[0]||1}},t.prototype.getNodeDisplayData=function(e){var t=this.nodeDataCache[e];return t?Object.assign({},t):void 0},t.prototype.getEdgeDisplayData=function(e){var t=this.edgeDataCache[e];return t?Object.assign({},t):void 0},t.prototype.getSettings=function(){return i({},this.settings)},t.prototype.getSetting=function(e){return this.settings[e]},t.prototype.setSetting=function(e,t){return this.settings[e]=t,(0,p.validateSettings)(this.settings),this.handleSettingsUpdate(),this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.updateSetting=function(e,t){return this.settings[e]=t(this.settings[e]),(0,p.validateSettings)(this.settings),this.handleSettingsUpdate(),this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.resize=function(){var e=this.width,t=this.height;if(this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,0===this.width)throw new Error("Sigma: container has no width.");if(0===this.height)throw new Error("Sigma: container has no height.");if(e===this.width&&t===this.height)return this;for(var n in this.elements){var r=this.elements[n];r.style.width=this.width+"px",r.style.height=this.height+"px"}for(var n in this.canvasContexts)this.elements[n].setAttribute("width",this.width*y+"px"),this.elements[n].setAttribute("height",this.height*y+"px"),1!==y&&this.canvasContexts[n].scale(y,y);for(var n in this.webGLContexts)this.elements[n].setAttribute("width",this.width*y+"px"),this.elements[n].setAttribute("height",this.height*y+"px"),this.webGLContexts[n].viewport(0,0,this.width*y,this.height*y);return this},t.prototype.clear=function(){return this.webGLContexts.nodes.clear(this.webGLContexts.nodes.COLOR_BUFFER_BIT),this.webGLContexts.edges.clear(this.webGLContexts.edges.COLOR_BUFFER_BIT),this.webGLContexts.hoverNodes.clear(this.webGLContexts.nodes.COLOR_BUFFER_BIT),this.canvasContexts.labels.clearRect(0,0,this.width,this.height),this.canvasContexts.hovers.clearRect(0,0,this.width,this.height),this.canvasContexts.edgeLabels.clearRect(0,0,this.width,this.height),this},t.prototype.refresh=function(){return this.needToProcess=!0,this._refresh(),this},t.prototype.scheduleRefresh=function(){return this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.getViewportZoomedState=function(e,t){var n=this.camera.getState(),r=n.ratio,o=n.angle,i=n.x,a=n.y,s=t/r,u={x:this.width/2,y:this.height/2},c=this.viewportToFramedGraph(e),l=this.viewportToFramedGraph(u);return{angle:o,x:(c.x-l.x)*(1-s)+i,y:(c.y-l.y)*(1-s)+a,ratio:t}},t.prototype.viewRectangle=function(){var e=0*this.width/8,t=0*this.height/8,n=this.viewportToFramedGraph({x:0-e,y:0-t}),r=this.viewportToFramedGraph({x:this.width+e,y:0-t}),o=this.viewportToFramedGraph({x:0,y:this.height+t});return{x1:n.x,y1:n.y,x2:r.x,y2:r.y,height:r.y-o.y}},t.prototype.framedGraphToViewport=function(e,t){void 0===t&&(t={});var n=!!t.cameraState||!!t.viewportDimensions||!!t.graphDimensions,r=t.matrix?t.matrix:n?(0,f.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0):this.matrix,o=[e.x,e.y,1],i=(0,m.multiplyVec)(r,o);return{x:(1+i[0])*this.width/2,y:(1-i[1])*this.height/2}},t.prototype.viewportToFramedGraph=function(e,t){void 0===t&&(t={});var n=!!t.cameraState||!!t.viewportDimensions||!t.graphDimensions,r=t.matrix?t.matrix:n?(0,f.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0,!0):this.invMatrix,o=[e.x/this.width*2-1,1-e.y/this.height*2,1],i=(0,m.multiplyVec)(r,o);return{x:i[0],y:i[1]}},t.prototype.viewportToGraph=function(e,t){return void 0===t&&(t={}),this.normalizationFunction.inverse(this.viewportToFramedGraph(e,t))},t.prototype.graphToViewport=function(e,t){return void 0===t&&(t={}),this.framedGraphToViewport(this.normalizationFunction(e),t)},t.prototype.getBBox=function(){return(0,f.graphExtent)(this.graph)},t.prototype.getCustomBBox=function(){return this.customBBox},t.prototype.setCustomBBox=function(e){return this.customBBox=e,this._scheduleRefresh(),this},t.prototype.kill=function(){var e=this.graph;this.emit("kill"),this.removeAllListeners(),this.camera.removeListener("updated",this.activeListeners.camera),window.removeEventListener("resize",this.activeListeners.handleResize),this.mouseCaptor.kill(),this.touchCaptor.kill(),e.removeListener("nodeAdded",this.activeListeners.addNodeGraphUpdate),e.removeListener("nodeDropped",this.activeListeners.graphUpdate),e.removeListener("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgeAdded",this.activeListeners.addEdgeGraphUpdate),e.removeListener("edgeDropped",this.activeListeners.graphUpdate),e.removeListener("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgesCleared",this.activeListeners.graphUpdate),e.removeListener("cleared",this.activeListeners.graphUpdate),this.quadtree=new l.default,this.nodeDataCache={},this.edgeDataCache={},this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[],this.highlightedNodes.clear(),this.renderFrame&&((0,f.cancelFrame)(this.renderFrame),this.renderFrame=null),this.renderHighlightedNodesFrame&&((0,f.cancelFrame)(this.renderHighlightedNodesFrame),this.renderHighlightedNodesFrame=null);for(var t=this.container;t.firstChild;)t.removeChild(t.firstChild)},t.prototype.scaleSize=function(e){return e/this.cameraSizeRatio},t.prototype.getCanvases=function(){return i({},this.elements)},t}(d.TypedEventEmitter);t.default=E},432:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TypedEventEmitter=void 0;var i=function(e){function t(){var t=e.call(this)||this;return t.rawEmitter=t,t}return o(t,e),t}(n(2699).EventEmitter);t.TypedEventEmitter=i},1181:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.animateNodes=t.ANIMATE_DEFAULTS=void 0;var o=n(8586),i=r(n(2383));t.ANIMATE_DEFAULTS={easing:"quadraticInOut",duration:150},t.animateNodes=function(e,n,r,a){var s=Object.assign({},t.ANIMATE_DEFAULTS,r),u="function"==typeof s.easing?s.easing:i.default[s.easing],c=Date.now(),l={};for(var d in n){var f=n[d];for(var h in l[d]={},f)l[d][h]=e.getNodeAttribute(d,h)}var p=null,g=function(){var t=(Date.now()-c)/s.duration;if(t>=1){for(var r in n){var i=n[r];for(var d in i)e.setNodeAttribute(r,d,i[d])}"function"==typeof a&&a()}else{for(var r in t=u(t),n){i=n[r];var f=l[r];for(var d in i)e.setNodeAttribute(r,d,i[d]*t+f[d]*(1-t))}p=(0,o.requestFrame)(g)}};return g(),function(){p&&(0,o.cancelFrame)(p)}}},1078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTML_COLORS=void 0,t.HTML_COLORS={black:"#000000",silver:"#C0C0C0",gray:"#808080",grey:"#808080",white:"#FFFFFF",maroon:"#800000",red:"#FF0000",purple:"#800080",fuchsia:"#FF00FF",green:"#008000",lime:"#00FF00",olive:"#808000",yellow:"#FFFF00",navy:"#000080",blue:"#0000FF",teal:"#008080",aqua:"#00FFFF",darkblue:"#00008B",mediumblue:"#0000CD",darkgreen:"#006400",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",rebeccapurple:"#663399",mediumaquamarine:"#66CDAA",dimgray:"#696969",dimgrey:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",slategrey:"#708090",lightslategray:"#778899",lightslategrey:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370DB",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",palevioletred:"#DB7093",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",lightyellow:"#FFFFE0",ivory:"#FFFFF0"}},2383:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cubicInOut=t.cubicOut=t.cubicIn=t.quadraticInOut=t.quadraticOut=t.quadraticIn=t.linear=void 0,t.linear=function(e){return e},t.quadraticIn=function(e){return e*e},t.quadraticOut=function(e){return e*(2-e)},t.quadraticInOut=function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},t.cubicIn=function(e){return e*e*e},t.cubicOut=function(e){return--e*e*e+1},t.cubicInOut=function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)};var n={linear:t.linear,quadraticIn:t.quadraticIn,quadraticOut:t.quadraticOut,quadraticInOut:t.quadraticInOut,cubicIn:t.cubicIn,cubicOut:t.cubicOut,cubicInOut:t.cubicInOut};t.default=n},8073:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doEdgeCollideWithPoint=t.isPixelColored=void 0,t.isPixelColored=function(e,t,n){var r=new Uint8Array(4);return e.readPixels(t,e.drawingBufferHeight-n,1,1,e.RGBA,e.UNSIGNED_BYTE,r),r[3]>0},t.doEdgeCollideWithPoint=function(e,t,n,r,o,i,a){return!(e<n-a&&e<o-a||t<r-a&&t<i-a||e>n+a&&e>o+a||t>r+a&&t>i+a||!(Math.abs((o-n)*(r-t)-(n-e)*(i-r))/Math.sqrt(Math.pow(o-n,2)+Math.pow(i-r,2))<a/2))}},8586:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateGraph=t.canUse32BitsIndices=t.extractPixel=t.getMatrixImpact=t.matrixFromCamera=t.getCorrectionRatio=t.floatColor=t.zIndexOrdering=t.createNormalizationFunction=t.graphExtent=t.getPixelRatio=t.createElement=t.cancelFrame=t.requestFrame=t.assignDeep=t.assign=t.isPlainObject=void 0;var i=o(n(1880)),a=n(2237),s=n(1078);function u(e){return"object"==typeof e&&null!==e&&e.constructor===Object}t.isPlainObject=u,t.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e=e||{};for(var r=0,o=t.length;r<o;r++){var i=t[r];i&&Object.assign(e,i)}return e},t.assignDeep=function e(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];t=t||{};for(var o=0,i=n.length;o<i;o++){var a=n[o];if(a)for(var s in a)u(a[s])?t[s]=e(t[s],a[s]):t[s]=a[s]}return t},t.requestFrame="undefined"!=typeof requestAnimationFrame?function(e){return requestAnimationFrame(e)}:function(e){return setTimeout(e,0)},t.cancelFrame="undefined"!=typeof cancelAnimationFrame?function(e){return cancelAnimationFrame(e)}:function(e){return clearTimeout(e)},t.createElement=function(e,t,n){var r=document.createElement(e);if(t)for(var o in t)r.style[o]=t[o];if(n)for(var o in n)r.setAttribute(o,n[o]);return r},t.getPixelRatio=function(){return void 0!==window.devicePixelRatio?window.devicePixelRatio:1},t.graphExtent=function(e){var t=1/0,n=-1/0,r=1/0,o=-1/0;return e.forEachNode((function(e,i){var a=i.x,s=i.y;a<t&&(t=a),a>n&&(n=a),s<r&&(r=s),s>o&&(o=s)})),{x:[t,n],y:[r,o]}},t.createNormalizationFunction=function(e){var t=r(e.x,2),n=t[0],o=t[1],i=r(e.y,2),a=i[0],s=i[1],u=Math.max(o-n,s-a);0===u&&(u=1);var c=(o+n)/2,l=(s+a)/2,d=function(e){return{x:.5+(e.x-c)/u,y:.5+(e.y-l)/u}};return d.applyTo=function(e){e.x=.5+(e.x-c)/u,e.y=.5+(e.y-l)/u},d.inverse=function(e){return{x:c+u*(e.x-.5),y:l+u*(e.y-.5)}},d.ratio=u,d},t.zIndexOrdering=function(e,t,n){return n.sort((function(e,n){var r=t(e)||0,o=t(n)||0;return r<o?-1:r>o?1:0}))};var c=new Int8Array(4),l=new Int32Array(c.buffer,0,1),d=new Float32Array(c.buffer,0,1),f=/^\s*rgba?\s*\(/,h=/^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/,p={};for(var g in s.HTML_COLORS)p[g]=m(s.HTML_COLORS[g]);function m(e){if(void 0!==p[e])return p[e];var t=0,n=0,r=0,o=1;if("#"===e[0])4===e.length?(t=parseInt(e.charAt(1)+e.charAt(1),16),n=parseInt(e.charAt(2)+e.charAt(2),16),r=parseInt(e.charAt(3)+e.charAt(3),16)):(t=parseInt(e.charAt(1)+e.charAt(2),16),n=parseInt(e.charAt(3)+e.charAt(4),16),r=parseInt(e.charAt(5)+e.charAt(6),16));else if(f.test(e)){var i=e.match(h);i&&(t=+i[1],n=+i[2],r=+i[3],i[4]&&(o=+i[4]))}o=255*o|0,l[0]=4278190079&(o<<24|r<<16|n<<8|t);var a=d[0];return p[e]=a,a}function v(e,t){var n=e.height/e.width,r=t.height/t.width;return n<1&&r>1||n>1&&r<1?1:Math.min(Math.max(r,1/r),Math.max(1/n,n))}t.floatColor=m,t.getCorrectionRatio=v,t.matrixFromCamera=function(e,t,n,r,o){var i=e.angle,s=e.ratio,u=e.x,c=e.y,l=t.width,d=t.height,f=(0,a.identity)(),h=Math.min(l,d)-2*r,p=v(t,n);return o?((0,a.multiply)(f,(0,a.translate)((0,a.identity)(),u,c)),(0,a.multiply)(f,(0,a.scale)((0,a.identity)(),s)),(0,a.multiply)(f,(0,a.rotate)((0,a.identity)(),i)),(0,a.multiply)(f,(0,a.scale)((0,a.identity)(),l/h/2/p,d/h/2/p))):((0,a.multiply)(f,(0,a.scale)((0,a.identity)(),h/l*2*p,h/d*2*p)),(0,a.multiply)(f,(0,a.rotate)((0,a.identity)(),-i)),(0,a.multiply)(f,(0,a.scale)((0,a.identity)(),1/s)),(0,a.multiply)(f,(0,a.translate)((0,a.identity)(),-u,-c))),f},t.getMatrixImpact=function(e,t,n){var o=r((0,a.multiplyVec)(e,[Math.cos(t.angle),Math.sin(t.angle),0]),2),i=o[0],s=o[1];return 1/Math.sqrt(Math.pow(i,2)+Math.pow(s,2))/n.width},t.extractPixel=function(e,t,n,r){var o=r||new Uint8Array(4);return e.readPixels(t,n,1,1,e.RGBA,e.UNSIGNED_BYTE,o),o},t.canUse32BitsIndices=function(e){return"undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||!!e.getExtension("OES_element_index_uint")},t.validateGraph=function(e){if(!(0,i.default)(e))throw new Error("Sigma: invalid graph instance.");e.forEachNode((function(e,t){if(!Number.isFinite(t.x)||!Number.isFinite(t.y))throw new Error("Sigma: Coordinates of node ".concat(e," are invalid. A node must have a numeric 'x' and 'y' attribute."))}))}},2237:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiplyVec=t.multiply=t.translate=t.rotate=t.scale=t.identity=void 0,t.identity=function(){return Float32Array.of(1,0,0,0,1,0,0,0,1)},t.scale=function(e,t,n){return e[0]=t,e[4]="number"==typeof n?n:t,e},t.rotate=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[3]=-n,e[4]=r,e},t.translate=function(e,t,n){return e[6]=t,e[7]=n,e},t.multiply=function(e,t){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],d=t[0],f=t[1],h=t[2],p=t[3],g=t[4],m=t[5],v=t[6],y=t[7],b=t[8];return e[0]=d*n+f*i+h*u,e[1]=d*r+f*a+h*c,e[2]=d*o+f*s+h*l,e[3]=p*n+g*i+m*u,e[4]=p*r+g*a+m*c,e[5]=p*o+g*s+m*l,e[6]=v*n+y*i+b*u,e[7]=v*r+y*a+b*c,e[8]=v*o+y*s+b*l,e},t.multiplyVec=function(e,t){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],d=t[0],f=t[1],h=t[2],p=Array.isArray(t)?[0,0,0]:Float32Array.of(0,0,0);return p[0]=d*n+f*i+h*u,p[1]=d*r+f*a+h*c,p[2]=d*o+f*s+h*l,p}},2564:e=>{"use strict";e.exports=function(){}},8096:e=>{"use strict";e.exports=window["material-ui-coreStyles"].withStyles},683:e=>{"use strict";e.exports=window["material-ui"].IconButton},2298:e=>{"use strict";e.exports=window["material-ui"].SvgIcon},6929:e=>{"use strict";e.exports=window["material-ui"].Tooltip},8310:t=>{"use strict";t.exports=e},2308:e=>{"use strict";e.exports=t},2396:e=>{"use strict";e.exports=n},3192:e=>{"use strict";e.exports=r},5099:e=>{"use strict";e.exports=o},3288:e=>{"use strict";e.exports=i},8156:e=>{"use strict";e.exports=a},7111:e=>{"use strict";e.exports=s},4756:e=>{"use strict";e.exports=u},5751:e=>{"use strict";e.exports=c}},d={};function f(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={id:e,loaded:!1,exports:{}};return l[e].call(n.exports,n,n.exports,f),n.loaded=!0,n.exports}f.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return f.d(t,{a:t}),t},f.d=(e,t)=>{for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var h={};return(()=>{"use strict";f.r(h),f.d(h,{GraphView:()=>Ju});var e=f(8156),t=f.n(e),n=f(4756);const r=window["material-ui-coreStyles"];var o=f(5099),i=f.n(o),a=f(8310),s=f.n(a),u=f(3288),c=f(5751),l=f.n(c);const d=window["material-ui"].Portal;var p=f.n(d),g=f(4176),m=f(2308),v=f.n(m);const y=(0,r.makeStyles)((()=>({errorBlock:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",minHeight:"58px",zIndex:1e4}})));function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}const w=r=>{const o=y(),i=(0,n.useSelector)(v().selectors.getAutoCloseInterval),a=(0,n.useSelector)(v().selectors.getUiError),c=(0,n.useDispatch)();return(0,e.useEffect)((()=>{a&&r.showErrorFromStore&&(w.addError({title:l().text("Error"),message:a}),c(m.ui.actions.errorSet(null)))}),[c,a,r.showErrorFromStore]),t().createElement(p(),{container:document.body},t().createElement(g.ZP,b({classes:{errorBlock:s()(o.errorBlock,(0,u.path)(["classes","errorBlock"],r))},autoCloseInterval:i},r)))};w.propTypes={showErrorFromStore:i().bool},w.addError=g.ZP.addError;const E=w;var x=function(e,t){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},x(e,t)};function _(e,t){function n(){this.constructor=e}x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},C.apply(this,arguments)};function S(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n}function A(e){var t,n,r="";if(e)if("object"==typeof e)if(e.push)for(t=0;t<e.length;t++)e[t]&&(n=A(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(n=A(t))&&(r&&(r+=" "),r+=n);else"boolean"==typeof e||e.call||(r&&(r+=" "),r+=e);return r}function k(){for(var e,t=0,n="";t<arguments.length;)(e=A(arguments[t++]))&&(n&&(n+=" "),n+=e);return n}const O=window["material-ui"].Typography;var D=f.n(O);const L=window["material-ui"].Button;var T=f.n(L);const M=window["material-ui"].Toolbar;var P=f.n(M),F=f(683),N=f.n(F);function j(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function R(){return R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R.apply(this,arguments)}function I(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function B(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const G=t().createContext(null);function z(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)})),r}function U(e,t,n){return null!=n[t]?n[t]:e.props[t]}function W(t,n,r){var o=z(t.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var u in t){if(o[u])for(r=0;r<o[u].length;r++){var c=o[u][r];s[o[u][r]]=n(c)}s[u]=n(u)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(n,o);return Object.keys(i).forEach((function(a){var s=i[a];if((0,e.isValidElement)(s)){var u=a in n,c=a in o,l=n[a],d=(0,e.isValidElement)(l)&&!l.props.in;!c||u&&!d?c||!u||d?c&&u&&(0,e.isValidElement)(l)&&(i[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:l.props.in,exit:U(s,"exit",t),enter:U(s,"enter",t)})):i[a]=(0,e.cloneElement)(s,{in:!1}):i[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:U(s,"exit",t),enter:U(s,"enter",t)})}})),i}var H=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},q=function(n){function r(e,t){var r,o=(r=n.call(this,e,t)||this).handleExited.bind(B(B(r)));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}I(r,n);var o=r.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(t,n){var r,o,i=n.children,a=n.handleExited;return{children:n.firstRender?(r=t,o=a,z(r.children,(function(t){return(0,e.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:U(t,"appear",r),enter:U(t,"enter",r),exit:U(t,"exit",r)})}))):W(t,i,a),firstRender:!1}},o.handleExited=function(e,t){var n=z(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=R({},t.children);return delete n[e.key],{children:n}})))},o.render=function(){var e=this.props,n=e.component,r=e.childFactory,o=j(e,["component","childFactory"]),i=this.state.contextValue,a=H(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?t().createElement(G.Provider,{value:i},a):t().createElement(G.Provider,{value:i},t().createElement(n,o,a))},r}(t().Component);q.propTypes={},q.defaultProps={component:"div",childFactory:function(e){return e}};const V=q;var Y=f(2196),K=f.n(Y),$=f(4812),Z=f.n($),X=f(7111),Q=f.n(X);var J="unmounted",ee="exited",te="entering",ne="entered",re="exiting",oe=function(e){function n(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=ee,r.appearStatus=te):o=ne:o=t.unmountOnExit||t.mountOnEnter?J:ee,r.state={status:o},r.nextCallback=null,r}I(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===J?{status:ee}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==te&&n!==ne&&(t=te):n!==te&&n!==ne||(t=re)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=Q().findDOMNode(this);t===te?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===ee&&this.setState({status:J})},r.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;t||r?(this.props.onEnter(e,o),this.safeSetState({status:te},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:ne},(function(){n.props.onEntered(e,o)}))}))}))):this.safeSetState({status:ne},(function(){n.props.onEntered(e)}))},r.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:re},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:ee},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:ee},(function(){t.props.onExited(e)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===J)return null;var n=this.props,r=n.children,o=j(n,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"==typeof r)return t().createElement(G.Provider,{value:null},r(e,o));var i=t().Children.only(r);return t().createElement(G.Provider,{value:null},t().cloneElement(i,o))},n}(t().Component);function ie(){}oe.contextType=G,oe.propTypes={},oe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ie,onEntering:ie,onEntered:ie,onExit:ie,onExiting:ie,onExited:ie},oe.UNMOUNTED=0,oe.EXITED=1,oe.ENTERING=2,oe.ENTERED=3,oe.EXITING=4;const ae=oe;var se=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return Z()(e,t)}))},ue=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){t.removeClasses(e,"exit"),t.addClass(e,n?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=n?"appear":"enter";t.addClass(e,r,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=n?"appear":"enter";t.removeClasses(e,r),t.addClass(e,r,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),t.addClass(e,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){t.addClass(e,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){t.removeClasses(e,"exit"),t.addClass(e,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}I(n,e);var r=n.prototype;return r.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"];"appear"===t&&"done"===n&&(r+=" "+this.getClassNames("enter").doneClassName),"active"===n&&e&&e.scrollTop,this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return K()(e,t)}))}(e,r)},r.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&se(e,r),o&&se(e,o),i&&se(e,i)},r.render=function(){var e=this.props,n=(e.classNames,j(e,["classNames"]));return t().createElement(ae,R({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(t().Component);ue.defaultProps={classNames:""},ue.propTypes={};const ce=ue;var le=f(2298),de=f.n(le);const fe=window["material-ui"].CircularProgress;var he=f.n(fe);function pe(){return pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pe.apply(this,arguments)}const ge=window["material-ui-styles"];function me(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ve(e){return ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ve(e)}function ye(e){return ye="function"==typeof Symbol&&"symbol"===ve(Symbol.iterator)?function(e){return ve(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":ve(e)},ye(e)}function be(e){return e&&"object"===ye(e)&&e.constructor===Object}function we(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?pe({},e):e;return be(e)&&be(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(be(t[o])&&o in e?r[o]=we(e[o],t[o],n):r[o]=t[o])})),r}var Ee=["xs","sm","md","lg","xl"];function xe(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=me(e,["values","unit","step"]);function u(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=Ee.indexOf(t);return r===Ee.length-1?u(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[Ee[r+1]]?n[Ee[r+1]]:t)-a/100).concat(o,")")}return pe({keys:Ee,values:n,up:u,down:function(e){var t=Ee.indexOf(e)+1,r=n[Ee[t]];return t===Ee.length?u("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}function _e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ce(e,t,n){var r;return pe({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return pe({paddingLeft:t(2),paddingRight:t(2)},n,_e({},e.up("sm"),pe({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},_e(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),_e(r,e.up("sm"),{minHeight:64}),r)},n)}function Se(e){for(var t="https://material-ui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}const Ae={black:"#000",white:"#fff"},ke={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},Oe="#7986cb",De="#3f51b5",Le="#303f9f",Te="#ff4081",Me="#f50057",Pe="#c51162",Fe="#e57373",Ne="#f44336",je="#d32f2f",Re="#ffb74d",Ie="#ff9800",Be="#f57c00",Ge="#64b5f6",ze="#2196f3",Ue="#1976d2",We="#81c784",He="#4caf50",qe="#388e3c";function Ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function Ye(e){if(e.type)return e;if("#"===e.charAt(0))return Ye(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Se(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Ke(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function $e(e){var t="hsl"===(e=Ye(e)).type?Ye(function(e){var t=(e=Ye(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",u=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",u.push(t[3])),Ke({type:s,values:u})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ze(e,t){return e=Ye(e),t=Ve(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Ke(e)}var Xe={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ae.white,default:ke[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Qe={text:{primary:Ae.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:ke[800],default:"#303030"},action:{active:Ae.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Je(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Ye(e),t=Ve(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Ke(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Ye(e),t=Ve(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Ke(e)}(e.main,i)))}function et(e){var t=e.primary,n=void 0===t?{light:Oe,main:De,dark:Le}:t,r=e.secondary,o=void 0===r?{light:Te,main:Me,dark:Pe}:r,i=e.error,a=void 0===i?{light:Fe,main:Ne,dark:je}:i,s=e.warning,u=void 0===s?{light:Re,main:Ie,dark:Be}:s,c=e.info,l=void 0===c?{light:Ge,main:ze,dark:Ue}:c,d=e.success,f=void 0===d?{light:We,main:He,dark:qe}:d,h=e.type,p=void 0===h?"light":h,g=e.contrastThreshold,m=void 0===g?3:g,v=e.tonalOffset,y=void 0===v?.2:v,b=me(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function w(e){var t=function(e,t){var n=$e(e),r=$e(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Qe.text.primary)>=m?Qe.text.primary:Xe.text.primary;return t}var E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=pe({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Se(4,t));if("string"!=typeof e.main)throw new Error(Se(5,JSON.stringify(e.main)));return Je(e,"light",n,y),Je(e,"dark",r,y),e.contrastText||(e.contrastText=w(e.main)),e},x={dark:Qe,light:Xe};return we(pe({common:Ae,type:p,primary:E(n),secondary:E(o,"A400","A200","A700"),error:E(a),warning:E(u),info:E(l),success:E(f),grey:ke,contrastThreshold:m,getContrastText:w,augmentColor:E,tonalOffset:y},x[p]),b)}function tt(e){return Math.round(1e5*e)/1e5}var nt={textTransform:"uppercase"},rt='"Roboto", "Helvetica", "Arial", sans-serif';function ot(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?rt:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,u=void 0===s?300:s,c=n.fontWeightRegular,l=void 0===c?400:c,d=n.fontWeightMedium,f=void 0===d?500:d,h=n.fontWeightBold,p=void 0===h?700:h,g=n.htmlFontSize,m=void 0===g?16:g,v=n.allVariants,y=n.pxToRem,b=me(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),w=a/14,E=y||function(e){return"".concat(e/m*w,"rem")},x=function(e,t,n,r,i){return pe({fontFamily:o,fontWeight:e,fontSize:E(t),lineHeight:n},o===rt?{letterSpacing:"".concat(tt(r/t),"em")}:{},i,v)},_={h1:x(u,96,1.167,-1.5),h2:x(u,60,1.2,-.5),h3:x(l,48,1.167,0),h4:x(l,34,1.235,.25),h5:x(l,24,1.334,0),h6:x(f,20,1.6,.15),subtitle1:x(l,16,1.75,.15),subtitle2:x(f,14,1.57,.1),body1:x(l,16,1.5,.15),body2:x(l,14,1.43,.15),button:x(f,14,1.75,.4,nt),caption:x(l,12,1.66,.4),overline:x(l,12,2.66,1,nt)};return we(pe({htmlFontSize:m,pxToRem:E,round:tt,fontFamily:o,fontSize:a,fontWeightLight:u,fontWeightRegular:l,fontWeightMedium:f,fontWeightBold:p},_),b,{clone:!1})}function it(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const at=["none",it(0,2,1,-1,0,1,1,0,0,1,3,0),it(0,3,1,-2,0,2,2,0,0,1,5,0),it(0,3,3,-2,0,3,4,0,0,1,8,0),it(0,2,4,-1,0,4,5,0,0,1,10,0),it(0,3,5,-1,0,5,8,0,0,1,14,0),it(0,3,5,-1,0,6,10,0,0,1,18,0),it(0,4,5,-2,0,7,10,1,0,2,16,1),it(0,5,5,-3,0,8,10,1,0,3,14,2),it(0,5,6,-3,0,9,12,1,0,3,16,2),it(0,6,6,-3,0,10,14,1,0,4,18,3),it(0,6,7,-4,0,11,15,1,0,4,20,3),it(0,7,8,-4,0,12,17,2,0,5,22,4),it(0,7,8,-4,0,13,19,2,0,5,24,4),it(0,7,9,-4,0,14,21,2,0,5,26,4),it(0,8,9,-5,0,15,22,2,0,6,28,5),it(0,8,10,-5,0,16,24,2,0,6,30,5),it(0,8,11,-5,0,17,26,2,0,6,32,5),it(0,9,11,-5,0,18,28,2,0,7,34,6),it(0,9,12,-6,0,19,29,2,0,7,36,6),it(0,10,13,-6,0,20,31,3,0,8,38,7),it(0,10,13,-6,0,21,33,3,0,8,40,7),it(0,10,14,-6,0,22,35,3,0,8,42,7),it(0,11,14,-7,0,23,36,3,0,9,44,8),it(0,11,15,-7,0,24,38,3,0,9,46,8)],st={borderRadius:4};var ut={xs:0,sm:600,md:960,lg:1280,xl:1920},ct={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(ut[e],"px)")}};function lt(e){return e&&"object"===ye(e)&&e.constructor===Object}function dt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?pe({},e):e;return lt(e)&&lt(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(lt(t[o])&&o in e?r[o]=dt(e[o],t[o],n):r[o]=t[o])})),r}const ft=function(e,t){return t?dt(e,t,{clone:!1}):e};var ht,pt,gt={m:"margin",p:"padding"},mt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vt={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yt=(ht=function(e){if(e.length>2){if(!vt[e])return[e];e=vt[e]}var t,n,r=(t=e.split(""),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),o=r[0],i=r[1],a=gt[o],s=mt[i]||"";return Array.isArray(s)?s.map((function(e){return a+e})):[a+s]},pt={},function(e){return void 0===pt[e]&&(pt[e]=ht(e)),pt[e]}),bt=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function wt(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function Et(e){var t=wt(e.theme);return Object.keys(e).map((function(n){if(-1===bt.indexOf(n))return null;var r=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}(yt(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||ct;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===ye(t)){var o=e.theme.breakpoints||ct;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(ft,{})}function xt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=wt({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}Et.propTypes={},Et.filterProps=bt;var _t={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ct={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function St(e){return"".concat(Math.round(e),"ms")}const At={easing:_t,duration:Ct,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?Ct.standard:n,o=t.easing,i=void 0===o?_t.easeInOut:o,a=t.delay,s=void 0===a?0:a;return me(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:St(r)," ").concat(i," ").concat("string"==typeof s?s:St(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},kt={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ot=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,u=e.typography,c=void 0===u?{}:u,l=me(e,["breakpoints","mixins","palette","spacing","typography"]),d=et(a),f=xe(n),h=xt(s),p=we({breakpoints:f,direction:"ltr",mixins:Ce(f,h,o),overrides:{},palette:d,props:{},shadows:at,typography:ot(d,c),spacing:h,shape:st,transitions:At,zIndex:kt},l),g=arguments.length,m=new Array(g>1?g-1:0),v=1;v<g;v++)m[v-1]=arguments[v];return m.reduce((function(e,t){return we(e,t)}),p)}(),Dt=function(e,t){return(0,ge.withStyles)(e,pe({defaultTheme:Ot},t))};function Lt(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Tt(t,n){return e.useMemo((function(){return null==t&&null==n?null:function(e){Lt(t,e),Lt(n,e)}}),[t,n])}var Mt="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function Pt(t){var n=e.useRef(t);return Mt((function(){n.current=t})),e.useCallback((function(){return n.current.apply(void 0,arguments)}),[])}var Ft=!0,Nt=!1,jt=null,Rt={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function It(e){e.metaKey||e.altKey||e.ctrlKey||(Ft=!0)}function Bt(){Ft=!1}function Gt(){"hidden"===this.visibilityState&&Nt&&(Ft=!0)}function zt(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return Ft||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!Rt[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function Ut(){Nt=!0,window.clearTimeout(jt),jt=window.setTimeout((function(){Nt=!1}),100)}function Wt(){return{isFocusVisible:zt,onBlurVisible:Ut,ref:e.useCallback((function(e){var t,n=X.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",It,!0),t.addEventListener("mousedown",Bt,!0),t.addEventListener("pointerdown",Bt,!0),t.addEventListener("touchstart",Bt,!0),t.addEventListener("visibilitychange",Gt,!0))}),[])}}function Ht(){return Ht=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ht.apply(this,arguments)}function qt(e,t){return qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qt(e,t)}const Vt=t().createContext(null);function Yt(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)})),r}function Kt(e,t,n){return null!=n[t]?n[t]:e.props[t]}function $t(t,n,r){var o=Yt(t.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var u in t){if(o[u])for(r=0;r<o[u].length;r++){var c=o[u][r];s[o[u][r]]=n(c)}s[u]=n(u)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(n,o);return Object.keys(i).forEach((function(a){var s=i[a];if((0,e.isValidElement)(s)){var u=a in n,c=a in o,l=n[a],d=(0,e.isValidElement)(l)&&!l.props.in;!c||u&&!d?c||!u||d?c&&u&&(0,e.isValidElement)(l)&&(i[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:l.props.in,exit:Kt(s,"exit",t),enter:Kt(s,"enter",t)})):i[a]=(0,e.cloneElement)(s,{in:!1}):i[a]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:Kt(s,"exit",t),enter:Kt(s,"enter",t)})}})),i}var Zt=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Xt=function(n){var r,o;function i(e,t){var r,o=(r=n.call(this,e,t)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}o=n,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,qt(r,o);var a=i.prototype;return a.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},a.componentWillUnmount=function(){this.mounted=!1},i.getDerivedStateFromProps=function(t,n){var r,o,i=n.children,a=n.handleExited;return{children:n.firstRender?(r=t,o=a,Yt(r.children,(function(t){return(0,e.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:Kt(t,"appear",r),enter:Kt(t,"enter",r),exit:Kt(t,"exit",r)})}))):$t(t,i,a),firstRender:!1}},a.handleExited=function(e,t){var n=Yt(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Ht({},t.children);return delete n[e.key],{children:n}})))},a.render=function(){var e=this.props,n=e.component,r=e.childFactory,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),i=this.state.contextValue,a=Zt(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?t().createElement(Vt.Provider,{value:i},a):t().createElement(Vt.Provider,{value:i},t().createElement(n,o,a))},i}(t().Component);Xt.propTypes={},Xt.defaultProps={component:"div",childFactory:function(e){return e}};const Qt=Xt;var Jt="undefined"==typeof window?e.useEffect:e.useLayoutEffect;const en=function(t){var n=t.classes,r=t.pulsate,o=void 0!==r&&r,i=t.rippleX,a=t.rippleY,s=t.rippleSize,u=t.in,c=t.onExited,l=void 0===c?function(){}:c,d=t.timeout,f=e.useState(!1),h=f[0],p=f[1],g=k(n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:s,height:s,top:-s/2+a,left:-s/2+i},v=k(n.child,h&&n.childLeaving,o&&n.childPulsate),y=Pt(l);return Jt((function(){if(!u){p(!0);var e=setTimeout(y,d);return function(){clearTimeout(e)}}}),[y,u,d]),e.createElement("span",{className:g,style:m},e.createElement("span",{className:v}))};var tn=e.forwardRef((function(t,n){var r=t.center,o=void 0!==r&&r,i=t.classes,a=t.className,s=me(t,["center","classes","className"]),u=e.useState([]),c=u[0],l=u[1],d=e.useRef(0),f=e.useRef(null);e.useEffect((function(){f.current&&(f.current(),f.current=null)}),[c]);var h=e.useRef(!1),p=e.useRef(null),g=e.useRef(null),m=e.useRef(null);e.useEffect((function(){return function(){clearTimeout(p.current)}}),[]);var v=e.useCallback((function(t){var n=t.pulsate,r=t.rippleX,o=t.rippleY,a=t.rippleSize,s=t.cb;l((function(t){return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(s=t)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}(),[e.createElement(en,{key:d.current,classes:i,timeout:550,pulsate:n,rippleX:r,rippleY:o,rippleSize:a})]);var s})),d.current+=1,f.current=s}),[i]),y=e.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,a=t.center,s=void 0===a?o||t.pulsate:a,u=t.fakeElement,c=void 0!==u&&u;if("mousedown"===e.type&&h.current)h.current=!1;else{"touchstart"===e.type&&(h.current=!0);var l,d,f,y=c?null:m.current,b=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(b.width/2),d=Math.round(b.height/2);else{var w=e.touches?e.touches[0]:e,E=w.clientX,x=w.clientY;l=Math.round(E-b.left),d=Math.round(x-b.top)}if(s)(f=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(f+=1);else{var _=2*Math.max(Math.abs((y?y.clientWidth:0)-l),l)+2,C=2*Math.max(Math.abs((y?y.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(_,2)+Math.pow(C,2))}e.touches?null===g.current&&(g.current=function(){v({pulsate:i,rippleX:l,rippleY:d,rippleSize:f,cb:n})},p.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),80)):v({pulsate:i,rippleX:l,rippleY:d,rippleSize:f,cb:n})}}),[o,v]),b=e.useCallback((function(){y({},{pulsate:!0})}),[y]),w=e.useCallback((function(e,t){if(clearTimeout(p.current),"touchend"===e.type&&g.current)return e.persist(),g.current(),g.current=null,void(p.current=setTimeout((function(){w(e,t)})));g.current=null,l((function(e){return e.length>0?e.slice(1):e})),f.current=t}),[]);return e.useImperativeHandle(n,(function(){return{pulsate:b,start:y,stop:w}}),[b,y,w]),e.createElement("span",pe({className:k(i.root,a),ref:m},s),e.createElement(Qt,{component:null,exit:!0},c))}));const nn=Dt((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(e.memo(tn));var rn=e.forwardRef((function(t,n){var r=t.action,o=t.buttonRef,i=t.centerRipple,a=void 0!==i&&i,s=t.children,u=t.classes,c=t.className,l=t.component,d=void 0===l?"button":l,f=t.disabled,h=void 0!==f&&f,p=t.disableRipple,g=void 0!==p&&p,m=t.disableTouchRipple,v=void 0!==m&&m,y=t.focusRipple,b=void 0!==y&&y,w=t.focusVisibleClassName,E=t.onBlur,x=t.onClick,_=t.onFocus,C=t.onFocusVisible,S=t.onKeyDown,A=t.onKeyUp,O=t.onMouseDown,D=t.onMouseLeave,L=t.onMouseUp,T=t.onTouchEnd,M=t.onTouchMove,P=t.onTouchStart,F=t.onDragLeave,N=t.tabIndex,j=void 0===N?0:N,R=t.TouchRippleProps,I=t.type,B=void 0===I?"button":I,G=me(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),z=e.useRef(null),U=e.useRef(null),W=e.useState(!1),H=W[0],q=W[1];h&&H&&q(!1);var V=Wt(),Y=V.isFocusVisible,K=V.onBlurVisible,$=V.ref;function Z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;return Pt((function(r){return t&&t(r),!n&&U.current&&U.current[e](r),!0}))}e.useImperativeHandle(r,(function(){return{focusVisible:function(){q(!0),z.current.focus()}}}),[]),e.useEffect((function(){H&&b&&!g&&U.current.pulsate()}),[g,b,H]);var Q=Z("start",O),J=Z("stop",F),ee=Z("stop",L),te=Z("stop",(function(e){H&&e.preventDefault(),D&&D(e)})),ne=Z("start",P),re=Z("stop",T),oe=Z("stop",M),ie=Z("stop",(function(e){H&&(K(e),q(!1)),E&&E(e)}),!1),ae=Pt((function(e){z.current||(z.current=e.currentTarget),Y(e)&&(q(!0),C&&C(e)),_&&_(e)})),se=function(){var e=X.findDOMNode(z.current);return d&&"button"!==d&&!("A"===e.tagName&&e.href)},ue=e.useRef(!1),ce=Pt((function(e){b&&!ue.current&&H&&U.current&&" "===e.key&&(ue.current=!0,e.persist(),U.current.stop(e,(function(){U.current.start(e)}))),e.target===e.currentTarget&&se()&&" "===e.key&&e.preventDefault(),S&&S(e),e.target===e.currentTarget&&se()&&"Enter"===e.key&&!h&&(e.preventDefault(),x&&x(e))})),le=Pt((function(e){b&&" "===e.key&&U.current&&H&&!e.defaultPrevented&&(ue.current=!1,e.persist(),U.current.stop(e,(function(){U.current.pulsate(e)}))),A&&A(e),x&&e.target===e.currentTarget&&se()&&" "===e.key&&!e.defaultPrevented&&x(e)})),de=d;"button"===de&&G.href&&(de="a");var fe={};"button"===de?(fe.type=B,fe.disabled=h):("a"===de&&G.href||(fe.role="button"),fe["aria-disabled"]=h);var he=Tt(o,n),ge=Tt($,z),ve=Tt(he,ge),ye=e.useState(!1),be=ye[0],we=ye[1];e.useEffect((function(){we(!0)}),[]);var Ee=be&&!g&&!h;return e.createElement(de,pe({className:k(u.root,c,H&&[u.focusVisible,w],h&&u.disabled),onBlur:ie,onClick:x,onFocus:ae,onKeyDown:ce,onKeyUp:le,onMouseDown:Q,onMouseLeave:te,onMouseUp:ee,onDragLeave:J,onTouchEnd:re,onTouchMove:oe,onTouchStart:ne,ref:ve,tabIndex:h?-1:j},fe,G),s,Ee?e.createElement(nn,pe({ref:U,center:a},R)):null)}));const on=Dt({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(rn);function an(e){if("string"!=typeof e)throw new Error(Se(7));return e.charAt(0).toUpperCase()+e.slice(1)}var sn=e.forwardRef((function(t,n){var r=t.edge,o=void 0!==r&&r,i=t.children,a=t.classes,s=t.className,u=t.color,c=void 0===u?"default":u,l=t.disabled,d=void 0!==l&&l,f=t.disableFocusRipple,h=void 0!==f&&f,p=t.size,g=void 0===p?"medium":p,m=me(t,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return e.createElement(on,pe({className:k(a.root,s,"default"!==c&&a["color".concat(an(c))],d&&a.disabled,"small"===g&&a["size".concat(an(g))],{start:a.edgeStart,end:a.edgeEnd}[o]),centerRipple:!0,focusRipple:!h,disabled:d,ref:n},m),e.createElement("span",{className:a.label},i))}));const un=Dt((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Ze(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Ze(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Ze(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(sn);var cn=[0,1,2,3,4,5,6,7,8,9,10],ln=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var fn=e.forwardRef((function(t,n){var r=t.alignContent,o=void 0===r?"stretch":r,i=t.alignItems,a=void 0===i?"stretch":i,s=t.classes,u=t.className,c=t.component,l=void 0===c?"div":c,d=t.container,f=void 0!==d&&d,h=t.direction,p=void 0===h?"row":h,g=t.item,m=void 0!==g&&g,v=t.justify,y=void 0===v?"flex-start":v,b=t.lg,w=void 0!==b&&b,E=t.md,x=void 0!==E&&E,_=t.sm,C=void 0!==_&&_,S=t.spacing,A=void 0===S?0:S,O=t.wrap,D=void 0===O?"wrap":O,L=t.xl,T=void 0!==L&&L,M=t.xs,P=void 0!==M&&M,F=t.zeroMinWidth,N=void 0!==F&&F,j=me(t,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),R=k(s.root,u,f&&[s.container,0!==A&&s["spacing-xs-".concat(String(A))]],m&&s.item,N&&s.zeroMinWidth,"row"!==p&&s["direction-xs-".concat(String(p))],"wrap"!==D&&s["wrap-xs-".concat(String(D))],"stretch"!==a&&s["align-items-xs-".concat(String(a))],"stretch"!==o&&s["align-content-xs-".concat(String(o))],"flex-start"!==y&&s["justify-xs-".concat(String(y))],!1!==P&&s["grid-xs-".concat(String(P))],!1!==C&&s["grid-sm-".concat(String(C))],!1!==x&&s["grid-md-".concat(String(x))],!1!==w&&s["grid-lg-".concat(String(w))],!1!==T&&s["grid-xl-".concat(String(T))]);return e.createElement(l,pe({className:R,ref:n},j))})),hn=Dt((function(e){return pe({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return cn.forEach((function(t){var r=e.spacing(t);0!==r&&(n["spacing-".concat("xs","-").concat(t)]={margin:"-".concat(dn(r,2)),width:"calc(100% + ".concat(dn(r),")"),"& > $item":{padding:dn(r,2)}})})),n}(e),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};ln.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?pe(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(fn);const pn=hn,gn=window["material-ui"].DialogActions;var mn=f.n(gn);const vn=window["material-ui"].DialogContent;var yn=f.n(vn);const bn=window["material-ui"].Dialog;var wn=f.n(bn);const En=window["material-ui"].Popover;var xn=f.n(En);const _n=window["material-ui"].TextField;var Cn=f.n(_n);const Sn=window["material-ui"].InputAdornment;var An=f.n(Sn),kn=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this)._state=null,n._del=!1,n._handleChange=function(e){var t=n.state.value,r=e.target.value,o=e.target,i=r.length>t.length,a=n._del,s=t===n.props.format(r);n.setState({value:r,local:!0},(function(){var e=o.selectionStart,u=n.props.refuse||/[^\d]+/g,c=r.substr(0,e).replace(u,"");if(n._state={input:o,before:c,op:i,di:a&&s,del:a},n.props.replace&&n.props.replace(t)&&i&&!s){for(var l=-1,d=0;d!==c.length;++d)l=Math.max(l,r.toLowerCase().indexOf(c[d].toLowerCase(),l+1));var f=r.substr(l+1).replace(u,"")[0];l=r.indexOf(f,l+1),r=""+r.substr(0,l)+r.substr(l+1)}var h=n.props.format(r);t===h?n.setState({value:r}):n.props.onChange(h)}))},n._hKD=function(e){"Delete"===e.code&&(n._del=!0)},n._hKU=function(e){"Delete"===e.code&&(n._del=!1)},n.state={value:t.value,local:!0},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.getDerivedStateFromProps=function(e,t){return{value:t.local?t.value:e.value,local:!1}};var o=r.prototype;return o.render=function(){var e=this._handleChange,t=this.state.value;return(0,this.props.children)({value:t,onChange:e})},o.componentWillUnmount=function(){document.removeEventListener("keydown",this._hKD),document.removeEventListener("keyup",this._hKU)},o.componentDidMount=function(){document.addEventListener("keydown",this._hKD),document.addEventListener("keyup",this._hKU)},o.componentDidUpdate=function(){var e=this._state;if(e){for(var t=this.state.value,n=-1,r=0;r!==e.before.length;++r)n=Math.max(n,t.toLowerCase().indexOf(e.before[r].toLowerCase(),n+1));if(this.props.replace&&(e.op||e.del&&!e.di))for(;t[n+1]&&(this.props.refuse||/[^\d]+/).test(t[n+1]);)n+=1;e.input.selectionStart=e.input.selectionEnd=n+1+(e.di?1:0)}this._state=null},r}(e.Component);const On=window["material-ui"].Tab;var Dn=f.n(On);const Ln=window["material-ui"].Tabs;var Tn=f.n(Ln);const Mn=window["material-ui"].Paper;var Pn=f.n(Mn),Fn=(0,e.createContext)(null),Nn=function(t){var n=t.utils,r=t.children,o=t.locale,i=t.libInstance,a=(0,e.useMemo)((function(){return new n({locale:o,moment:i})}),[n,i,o]);return(0,e.createElement)(Fn.Provider,{value:a,children:r})};function jn(){var t=(0,e.useContext)(Fn);return function(e){if(!e)throw new Error("Can not find utils in context. You either a) forgot to wrap your component tree in MuiPickersUtilsProvider; or b) mixed named and direct file imports. Recommendation: use named imports from the module index.")}(t),t}var Rn=(0,r.makeStyles)((function(e){var t="light"===e.palette.type?e.palette.primary.contrastText:e.palette.getContrastText(e.palette.background.default);return{toolbarTxt:{color:(0,r.fade)(t,.54)},toolbarBtnSelected:{color:t}}}),{name:"MuiPickersToolbarText"}),In=function(t){var n,r=t.selected,o=t.label,i=t.className,a=void 0===i?null:i,s=S(t,["selected","label","className"]),u=Rn();return(0,e.createElement)(D(),C({children:o,className:k(u.toolbarTxt,a,(n={},n[u.toolbarBtnSelected]=r,n))},s))},Bn=function(t){var n=t.classes,r=t.className,o=void 0===r?null:r,i=t.label,a=t.selected,s=t.variant,u=t.align,c=t.typographyClassName,l=S(t,["classes","className","label","selected","variant","align","typographyClassName"]);return(0,e.createElement)(T(),C({variant:"text",className:k(n.toolbarBtn,o)},l),(0,e.createElement)(In,{align:u,className:c,variant:s,label:i,selected:a}))};Bn.defaultProps={className:""};var Gn=(0,r.createStyles)({toolbarBtn:{padding:0,minWidth:"16px",textTransform:"none"}}),zn=(0,r.withStyles)(Gn,{name:"MuiPickersToolbarButton"})(Bn),Un=(0,r.makeStyles)((function(e){return{toolbar:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:100,backgroundColor:"light"===e.palette.type?e.palette.primary.main:e.palette.background.default},toolbarLandscape:{height:"auto",maxWidth:150,padding:8,justifyContent:"flex-start"}}}),{name:"MuiPickersToolbar"}),Wn=function(t){var n,r=t.children,o=t.isLandscape,i=t.className,a=void 0===i?null:i,s=S(t,["children","isLandscape","className"]),u=Un();return(0,e.createElement)(P(),C({className:k(u.toolbar,(n={},n[u.toolbarLandscape]=o,n),a)},s),r)};function Hn(e,t){return Array.isArray(t)?t.every((function(t){return-1!==e.indexOf(t)})):-1!==e.indexOf(t)}var qn=function(e){return 1===e.length&&"year"===e[0]},Vn=function(e){return 2===e.length&&Hn(e,"month")&&Hn(e,"year")},Yn=(0,r.makeStyles)({toolbar:{flexDirection:"column",alignItems:"flex-start"},toolbarLandscape:{padding:16},dateLandscape:{marginRight:16}},{name:"MuiPickersDatePickerRoot"}),Kn=function(t){var n,r,o=t.date,i=t.views,a=t.setOpenView,s=t.isLandscape,u=t.openView,c=jn(),l=Yn(),d=(0,e.useMemo)((function(){return qn(i)}),[i]),f=(0,e.useMemo)((function(){return Vn(i)}),[i]);return(0,e.createElement)(Wn,{isLandscape:s,className:k((n={},n[l.toolbar]=!d,n[l.toolbarLandscape]=s,n))},(0,e.createElement)(zn,{variant:d?"h3":"subtitle1",onClick:function(){return a("year")},selected:"year"===u,label:c.getYearText(o)}),!d&&!f&&(0,e.createElement)(zn,{variant:"h4",selected:"date"===u,onClick:function(){return a("date")},align:s?"left":"center",label:c.getDatePickerHeaderText(o),className:k((r={},r[l.dateLandscape]=s,r))}),f&&(0,e.createElement)(zn,{variant:"h4",onClick:function(){return a("month")},selected:"month"===u,label:c.getMonthText(o)}))},$n=((0,o.oneOfType)([o.object,o.string,o.number,(0,o.instanceOf)(Date)]),(0,o.oneOf)(["year","month","day"]),{ampm:!0,invalidDateMessage:"Invalid Time Format"}),Zn={minDate:new Date("1900-01-01"),maxDate:new Date("2100-01-01"),invalidDateMessage:"Invalid Date Format",minDateMessage:"Date should not be before minimal date",maxDateMessage:"Date should not be after maximal date",allowKeyboardControl:!0},Xn=C({},$n,Zn,{showTabs:!0}),Qn=(0,r.makeStyles)((function(e){return{day:{width:36,height:36,fontSize:e.typography.caption.fontSize,margin:"0 2px",color:e.palette.text.primary,fontWeight:e.typography.fontWeightMedium,padding:0},hidden:{opacity:0,pointerEvents:"none"},current:{color:e.palette.primary.main,fontWeight:600},daySelected:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{backgroundColor:e.palette.primary.main}},dayDisabled:{pointerEvents:"none",color:e.palette.text.hint}}}),{name:"MuiPickersDay"}),Jn=function(t){var n,r=t.children,o=t.disabled,i=t.hidden,a=t.current,s=t.selected,u=S(t,["children","disabled","hidden","current","selected"]),c=Qn(),l=k(c.day,((n={})[c.hidden]=i,n[c.current]=a,n[c.daySelected]=s,n[c.dayDisabled]=o,n));return(0,e.createElement)(N(),C({className:l,tabIndex:i||o?-1:0},u),(0,e.createElement)(D(),{variant:"body2",color:"inherit"},r))};Jn.displayName="Day",Jn.defaultProps={disabled:!1,hidden:!1,current:!1,selected:!1};var er=function(t){var n=t.children,r=t.value,o=t.disabled,i=t.onSelect,a=t.dayInCurrentMonth,s=S(t,["children","value","disabled","onSelect","dayInCurrentMonth"]),u=(0,e.useCallback)((function(){return i(r)}),[i,r]);return(0,e.createElement)("div",C({role:"presentation",onClick:a&&!o?u:void 0,onKeyPress:a&&!o?u:void 0},s),n)},tr=(0,r.makeStyles)((function(e){var t=e.transitions.create("transform",{duration:350,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{transitionContainer:{display:"block",position:"relative","& > *":{position:"absolute",top:0,right:0,left:0}},"slideEnter-left":{willChange:"transform",transform:"translate(100%)"},"slideEnter-right":{willChange:"transform",transform:"translate(-100%)"},slideEnterActive:{transform:"translate(0%)",transition:t},slideExit:{transform:"translate(0%)"},"slideExitActiveLeft-left":{willChange:"transform",transform:"translate(-200%)",transition:t},"slideExitActiveLeft-right":{willChange:"transform",transform:"translate(200%)",transition:t}}}),{name:"MuiPickersSlideTransition"}),nr=function(t){var n=t.children,r=t.transKey,o=t.slideDirection,i=t.className,a=void 0===i?null:i,s=tr(),u={exit:s.slideExit,enterActive:s.slideEnterActive,enter:s["slideEnter-"+o],exitActive:s["slideExitActiveLeft-"+o]};return(0,e.createElement)(V,{className:k(s.transitionContainer,a),childFactory:function(t){return(0,e.cloneElement)(t,{classNames:u})}},(0,e.createElement)(ce,{mountOnEnter:!0,unmountOnExit:!0,key:r+o,timeout:350,classNames:u,children:n}))},rr=(0,r.makeStyles)((function(e){return{switchHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:e.spacing(.5),marginBottom:e.spacing(1)},transitionContainer:{width:"100%",overflow:"hidden",height:23},iconButton:{zIndex:1,backgroundColor:e.palette.background.paper},daysHeader:{display:"flex",justifyContent:"center",alignItems:"center",maxHeight:16},dayLabel:{width:36,margin:"0 2px",textAlign:"center",color:e.palette.text.hint}}}),{name:"MuiPickersCalendarHeader"}),or=function(t){var n=t.currentMonth,o=t.onMonthChange,i=t.leftArrowIcon,a=t.rightArrowIcon,s=t.leftArrowButtonProps,u=t.rightArrowButtonProps,c=t.disablePrevMonth,l=t.disableNextMonth,d=t.slideDirection,f=jn(),h=rr(),p="rtl"===(0,r.useTheme)().direction;return(0,e.createElement)("div",null,(0,e.createElement)("div",{className:h.switchHeader},(0,e.createElement)(N(),C({},s,{disabled:c,onClick:function(){return o(f.getPreviousMonth(n),"right")},className:h.iconButton}),p?a:i),(0,e.createElement)(nr,{slideDirection:d,transKey:n.toString(),className:h.transitionContainer},(0,e.createElement)(D(),{align:"center",variant:"body1"},f.getCalendarHeaderText(n))),(0,e.createElement)(N(),C({},u,{disabled:l,onClick:function(){return o(f.getNextMonth(n),"left")},className:h.iconButton}),p?i:a)),(0,e.createElement)("div",{className:h.daysHeader},f.getWeekdays().map((function(t,n){return(0,e.createElement)(D(),{key:n,variant:"caption",className:h.dayLabel},t)}))))};or.displayName="CalendarHeader",or.defaultProps={leftArrowIcon:(0,e.createElement)((function(e){return t().createElement(de(),C({},e),t().createElement("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),t().createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))}),null),rightArrowIcon:(0,e.createElement)((function(e){return t().createElement(de(),C({},e),t().createElement("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),t().createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))}),null),disablePrevMonth:!1,disableNextMonth:!1};var ir="undefined"==typeof window?e.useEffect:e.useLayoutEffect;function ar(e,t){var n=t[e.key];n&&(n(),e.preventDefault())}function sr(t,n){var r=(0,e.useRef)(n);ir((function(){r.current=n})),(0,e.useEffect)((function(){if(t){var e=function(e){ar(e,n)};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}}),[t,n])}var ur,cr,lr=function(t){var n=t.onKeyDown;return(0,e.useEffect)((function(){return window.addEventListener("keydown",n),function(){window.removeEventListener("keydown",n)}}),[n]),null},dr=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={slideDirection:"left",currentMonth:n.props.utils.startOfMonth(n.props.date),loadingQueue:0},n.pushToLoadingQueue=function(){var e=n.state.loadingQueue+1;n.setState({loadingQueue:e})},n.popFromLoadingQueue=function(){var e=n.state.loadingQueue;e=e<=0?0:e-1,n.setState({loadingQueue:e})},n.handleChangeMonth=function(e,t){if(n.setState({currentMonth:e,slideDirection:t}),n.props.onMonthChange){var r=n.props.onMonthChange(e);r&&(n.pushToLoadingQueue(),r.then((function(){n.popFromLoadingQueue()})))}},n.validateMinMaxDate=function(e){var t=n.props,r=t.minDate,o=t.maxDate,i=t.utils,a=t.disableFuture,s=t.disablePast,u=i.date();return Boolean(a&&i.isAfterDay(e,u)||s&&i.isBeforeDay(e,u)||r&&i.isBeforeDay(e,i.date(r))||o&&i.isAfterDay(e,i.date(o)))},n.shouldDisablePrevMonth=function(){var e=n.props,t=e.utils,r=e.disablePast,o=e.minDate,i=t.date(),a=t.startOfMonth(r&&t.isAfter(i,t.date(o))?i:t.date(o));return!t.isBefore(a,n.state.currentMonth)},n.shouldDisableNextMonth=function(){var e=n.props,t=e.utils,r=e.disableFuture,o=e.maxDate,i=t.date(),a=t.startOfMonth(r&&t.isBefore(i,t.date(o))?i:t.date(o));return!t.isAfter(a,n.state.currentMonth)},n.shouldDisableDate=function(e){var t=n.props.shouldDisableDate;return n.validateMinMaxDate(e)||Boolean(t&&t(e))},n.handleDaySelect=function(e,t){void 0===t&&(t=!0);var r=n.props,o=r.date,i=r.utils;n.props.onChange(i.mergeDateAndTime(e,o),t)},n.moveToDay=function(e){var t=n.props.utils;e&&!n.shouldDisableDate(e)&&(t.getMonth(e)!==t.getMonth(n.state.currentMonth)&&n.handleChangeMonth(t.startOfMonth(e),"left"),n.handleDaySelect(e,!1))},n.handleKeyDown=function(e){var t=n.props,r=t.theme,o=t.date,i=t.utils;ar(e,{ArrowUp:function(){return n.moveToDay(i.addDays(o,-7))},ArrowDown:function(){return n.moveToDay(i.addDays(o,7))},ArrowLeft:function(){return n.moveToDay(i.addDays(o,"ltr"===r.direction?-1:1))},ArrowRight:function(){return n.moveToDay(i.addDays(o,"ltr"===r.direction?1:-1))}})},n.renderWeeks=function(){var t=n.props,r=t.utils,o=t.classes;return r.getWeekArray(n.state.currentMonth).map((function(t){return(0,e.createElement)("div",{key:"week-"+t[0].toString(),className:o.week},n.renderDays(t))}))},n.renderDays=function(t){var r=n.props,o=r.date,i=r.renderDay,a=r.utils,s=a.date(),u=a.startOfDay(o),c=a.getMonth(n.state.currentMonth);return t.map((function(t){var r=n.shouldDisableDate(t),o=a.getMonth(t)===c,l=(0,e.createElement)(Jn,{disabled:r,current:a.isSameDay(t,s),hidden:!o,selected:a.isSameDay(u,t)},a.getDayText(t));return i&&(l=i(t,u,o,l)),(0,e.createElement)(er,{value:t,key:t.toString(),disabled:r,dayInCurrentMonth:o,onSelect:n.handleDaySelect},l)}))},n}return _(n,t),n.getDerivedStateFromProps=function(e,t){var n=e.utils,r=e.date;if(!n.isEqual(r,t.lastDate)){var o=n.getMonth(r),i=t.lastDate||r,a=n.getMonth(i);return{lastDate:r,currentMonth:e.utils.startOfMonth(r),slideDirection:o===a?t.slideDirection:n.isAfterDay(r,i)?"left":"right"}}return null},n.prototype.componentDidMount=function(){var e=this.props,t=e.date,n=e.minDate,r=e.maxDate,o=e.utils,i=e.disablePast,a=e.disableFuture;if(this.shouldDisableDate(t)){var s=function(e){var t=e.date,n=e.utils,r=e.minDate,o=e.maxDate,i=e.disableFuture,a=e.disablePast,s=e.shouldDisableDate,u=n.startOfDay(n.date());a&&n.isBefore(r,u)&&(r=u),i&&n.isAfter(o,u)&&(o=u);var c=t,l=t;for(n.isBefore(t,r)&&(c=n.date(r),l=null),n.isAfter(t,o)&&(l&&(l=n.date(o)),c=null);c||l;){if(c&&n.isAfter(c,o)&&(c=null),l&&n.isBefore(l,r)&&(l=null),c){if(!s(c))return c;c=n.addDays(c,1)}if(l){if(!s(l))return l;l=n.addDays(l,-1)}}return null}({date:t,utils:o,minDate:o.date(n),maxDate:o.date(r),disablePast:Boolean(i),disableFuture:Boolean(a),shouldDisableDate:this.shouldDisableDate});this.handleDaySelect(s,!1)}},n.prototype.render=function(){var t=this.state,n=t.currentMonth,r=t.slideDirection,o=this.props,i=o.classes,a=o.allowKeyboardControl,s=o.leftArrowButtonProps,u=o.leftArrowIcon,c=o.rightArrowButtonProps,l=o.rightArrowIcon,d=o.loadingIndicator||(0,e.createElement)(he(),null);return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(lr,{onKeyDown:this.handleKeyDown}),(0,e.createElement)(or,{currentMonth:n,slideDirection:r,onMonthChange:this.handleChangeMonth,leftArrowIcon:u,leftArrowButtonProps:s,rightArrowIcon:l,rightArrowButtonProps:c,disablePrevMonth:this.shouldDisablePrevMonth(),disableNextMonth:this.shouldDisableNextMonth()}),(0,e.createElement)(nr,{slideDirection:r,transKey:n.toString(),className:i.transitionContainer},(0,e.createElement)(e.Fragment,null,this.state.loadingQueue>0&&(0,e.createElement)("div",{className:i.progressContainer},d)||(0,e.createElement)("div",null,this.renderWeeks()))))},n.defaultProps={minDate:new Date("1900-01-01"),maxDate:new Date("2100-01-01"),disablePast:!1,disableFuture:!1,allowKeyboardControl:!0},n}(e.Component),fr=(0,r.withStyles)((function(e){return{transitionContainer:{minHeight:216,marginTop:e.spacing(1.5)},progressContainer:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},week:{display:"flex",justifyContent:"center"}}}),{name:"MuiPickersCalendar",withTheme:!0})(((cr=function(t){var n=jn();return(0,e.createElement)(ur,C({utils:n},t))}).displayName="WithUtils("+((ur=dr).displayName||ur.name)+")",cr)),hr=(0,r.makeStyles)((function(e){return{root:{height:40,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",outline:"none","&:focus":{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium}},yearSelected:{margin:"10px 0",fontWeight:e.typography.fontWeightMedium},yearDisabled:{pointerEvents:"none",color:e.palette.text.hint}}}),{name:"MuiPickersYear"}),pr=function(t){var n,r=t.onSelect,o=t.forwardedRef,i=t.value,a=t.selected,s=t.disabled,u=t.children,c=S(t,["onSelect","forwardedRef","value","selected","disabled","children"]),l=hr(),d=(0,e.useCallback)((function(){return r(i)}),[r,i]);return(0,e.createElement)(D(),C({role:"button",component:"div",tabIndex:s?-1:0,onClick:d,onKeyPress:d,color:a?"primary":void 0,variant:a?"h5":"subtitle1",children:u,ref:o,className:k(l.root,(n={},n[l.yearSelected]=a,n[l.yearDisabled]=s,n))},c))};pr.displayName="Year";var gr=(0,e.forwardRef)((function(t,n){return(0,e.createElement)(pr,C({},t,{forwardedRef:n}))})),mr=310,vr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,ge.makeStyles)(e,pe({defaultTheme:Ot},t))}((function(e){return{staticWrapperRoot:{overflow:"hidden",minWidth:mr,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}}}),{name:"MuiPickersStaticWrapper"}),yr=function(t){var n=t.children,r=vr();return(0,e.createElement)("div",{className:r.staticWrapperRoot,children:n})},br=function(t){var n,r,o=t.children,i=t.classes,a=t.onAccept,s=t.onDismiss,u=t.onClear,c=t.onSetToday,l=t.okLabel,d=t.cancelLabel,f=t.clearLabel,h=t.todayLabel,p=t.clearable,g=t.showTodayButton,m=(t.showTabs,t.wider),v=S(t,["children","classes","onAccept","onDismiss","onClear","onSetToday","okLabel","cancelLabel","clearLabel","todayLabel","clearable","showTodayButton","showTabs","wider"]);return(0,e.createElement)(wn(),C({role:"dialog",onClose:s,classes:{paper:k(i.dialogRoot,(n={},n[i.dialogRootWider]=m,n))}},v),(0,e.createElement)(yn(),{children:o,className:i.dialog}),(0,e.createElement)(mn(),{classes:{root:k((r={},r[i.withAdditionalAction]=p||g,r))}},p&&(0,e.createElement)(T(),{color:"primary",onClick:u},f),!p&&g&&(0,e.createElement)(T(),{color:"primary",onClick:c},h),d&&(0,e.createElement)(T(),{color:"primary",onClick:s},d),l&&(0,e.createElement)(T(),{color:"primary",onClick:a},l)))};br.displayName="ModalDialog";var wr=(0,r.createStyles)({dialogRoot:{minWidth:mr},dialogRootWider:{},dialog:{"&:first-child":{padding:0}},withAdditionalAction:{justifyContent:"flex-start","& > *:first-child":{marginRight:"auto"}}}),Er=(0,r.withStyles)(wr,{name:"MuiPickersModal"})(br),xr=function(t){var n=t.open,r=t.children,o=t.okLabel,i=t.cancelLabel,a=t.clearLabel,s=t.todayLabel,u=t.showTodayButton,c=t.clearable,l=t.DialogProps,d=t.showTabs,f=t.wider,h=t.InputComponent,p=t.DateInputProps,g=t.onClear,m=t.onAccept,v=t.onDismiss,y=t.onSetToday,b=S(t,["open","children","okLabel","cancelLabel","clearLabel","todayLabel","showTodayButton","clearable","DialogProps","showTabs","wider","InputComponent","DateInputProps","onClear","onAccept","onDismiss","onSetToday"]);return sr(n,{Enter:m}),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(h,C({},b,p)),(0,e.createElement)(Er,C({wider:f,showTabs:d,open:n,onClear:g,onAccept:m,onDismiss:v,onSetToday:y,clearLabel:a,todayLabel:s,okLabel:o,cancelLabel:i,clearable:c,showTodayButton:u,children:r},l)))};xr.defaultProps={okLabel:"OK",cancelLabel:"Cancel",clearLabel:"Clear",todayLabel:"Today",clearable:!1,showTodayButton:!1};var _r,Cr=(0,r.makeStyles)({popoverPaper:{width:mr,paddingBottom:8},popoverPaperWider:{width:325}},{name:"MuiPickersInlineWrapper"}),Sr=function(t){var n,r=t.open,o=t.wider,i=t.children,a=t.PopoverProps,s=(t.onClear,t.onDismiss),u=(t.onSetToday,t.onAccept),c=(t.showTabs,t.DateInputProps),l=t.InputComponent,d=S(t,["open","wider","children","PopoverProps","onClear","onDismiss","onSetToday","onAccept","showTabs","DateInputProps","InputComponent"]),f=(0,e.useRef)(),h=Cr();return sr(r,{Enter:u}),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l,C({},d,c,{inputRef:f})),(0,e.createElement)(xn(),C({open:r,onClose:s,anchorEl:f.current,classes:{paper:k(h.popoverPaper,(n={},n[h.popoverPaperWider]=o,n))},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:i},a)))},Ar=(0,e.createContext)(null),kr=function(t){var n=t.variant,r=S(t,["variant"]),o=function(e){switch(e){case"inline":return Sr;case"static":return yr;default:return xr}}(n);return(0,e.createElement)(Ar.Provider,{value:n||"dialog"},(0,e.createElement)(o,C({},r)))},Or=(0,r.makeStyles)({container:{height:300,overflowY:"auto"}},{name:"MuiPickersYearSelection"}),Dr=function(t){var n=t.date,r=t.onChange,o=t.onYearChange,i=t.minDate,a=t.maxDate,s=t.disablePast,u=t.disableFuture,c=t.animateYearScrolling,l=jn(),d=Or(),f=(0,e.useContext)(Ar),h=(0,e.useRef)(null);(0,e.useEffect)((function(){h.current&&h.current.scrollIntoView&&h.current.scrollIntoView({block:"static"===f?"nearest":"center",behavior:c?"smooth":"auto"})}),[]);var p=l.getYear(n),g=(0,e.useCallback)((function(e){var t=l.setYear(n,e);o&&o(t),r(t,!0)}),[n,r,o,l]);return(0,e.createElement)("div",{className:d.container},l.getYearRange(i,a).map((function(t){var n=l.getYear(t),r=n===p;return(0,e.createElement)(gr,{key:l.getYearText(t),selected:r,value:n,onSelect:g,ref:r?h:void 0,disabled:Boolean(s&&l.isBeforeYear(t,l.date())||u&&l.isAfterYear(t,l.date()))},l.getYearText(t))})))};!function(e){e.HOURS="hours",e.MINUTES="minutes",e.SECONDS="seconds"}(_r||(_r={}));var Lr=_r,Tr=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={toAnimateTransform:!1,previousType:void 0},e.getAngleStyle=function(){var t=e.props,n=t.value,r=t.isInner,o=t.type,i=360/(o===Lr.HOURS?12:60)*n;return o===Lr.HOURS&&n>12&&(i-=360),{height:r?"26%":"40%",transform:"rotateZ("+i+"deg)"}},e}return _(n,t),n.prototype.render=function(){var t,n,r=this.props,o=r.classes,i=r.hasSelected;return(0,e.createElement)("div",{style:this.getAngleStyle(),className:k(o.pointer,(t={},t[o.animateTransform]=this.state.toAnimateTransform,t))},(0,e.createElement)("div",{className:k(o.thumb,(n={},n[o.noPoint]=i,n))}))},n.getDerivedStateFromProps=function(e,t){return e.type!==t.previousType?{toAnimateTransform:!0,previousType:e.type}:{toAnimateTransform:!1,previousType:e.type}},n}(e.Component),Mr=(0,r.withStyles)((function(e){return(0,r.createStyles)({pointer:{width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},animateTransform:{transition:e.transitions.create(["transform","height"])},thumb:{width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"100%",position:"absolute",top:-21,left:-15,border:"14px solid "+e.palette.primary.main,boxSizing:"content-box"},noPoint:{backgroundColor:e.palette.primary.main}})}),{name:"MuiPickersClockPointer"})(Tr),Pr=130,Fr=130,Nr=Pr-Pr,jr=0-Fr,Rr=function(e,t,n){var r=t-Pr,o=n-Fr,i=57.29577951308232*(Math.atan2(Nr,jr)-Math.atan2(r,o));i=Math.round(i/e)*e,i%=360;var a=Math.floor(i/e)||0,s=Math.pow(r,2)+Math.pow(o,2);return{value:a,distance:Math.sqrt(s)}},Ir=function(e,t){return t.getHours(e)>=12?"pm":"am"},Br=function(e,t,n,r){if(n&&(r.getHours(e)>=12?"pm":"am")!==t){var o="am"===t?r.getHours(e)-12:r.getHours(e)+12;return r.setHours(e,o)}return e},Gr=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.isMoving=!1,e.handleTouchMove=function(t){e.isMoving=!0,e.setTime(t)},e.handleTouchEnd=function(t){e.isMoving&&(e.setTime(t,!0),e.isMoving=!1)},e.handleMove=function(t){t.preventDefault(),t.stopPropagation(),(void 0===t.buttons?1===t.nativeEvent.which:1===t.buttons)&&e.setTime(t.nativeEvent,!1)},e.handleMouseUp=function(t){e.isMoving&&(e.isMoving=!1),e.setTime(t.nativeEvent,!0)},e.hasSelected=function(){var t=e.props,n=t.type,r=t.value;return n===Lr.HOURS||r%5==0},e}return _(n,t),n.prototype.setTime=function(e,t){void 0===t&&(t=!1);var n=e.offsetX,r=e.offsetY;if(void 0===n){var o=e.target.getBoundingClientRect();n=e.changedTouches[0].clientX-o.left,r=e.changedTouches[0].clientY-o.top}var i=this.props.type===Lr.SECONDS||this.props.type===Lr.MINUTES?function(e,t,n){return void 0===n&&(n=1),Rr(6*n,e,t).value*n%60}(n,r,this.props.minutesStep):function(e,t,n){var r=Rr(30,e,t),o=r.value,i=r.distance;return o=o||12,n?o%=12:i<90&&(o+=12,o%=24),o}(n,r,Boolean(this.props.ampm));this.props.onChange(i,t)},n.prototype.render=function(){var t=this.props,n=t.classes,r=t.value,o=t.children,i=t.type,a=!t.ampm&&i===Lr.HOURS&&(r<1||r>12);return(0,e.createElement)("div",{className:n.container},(0,e.createElement)("div",{className:n.clock},(0,e.createElement)("div",{role:"menu",tabIndex:-1,className:n.squareMask,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,onMouseUp:this.handleMouseUp,onMouseMove:this.handleMove}),(0,e.createElement)("div",{className:n.pin}),(0,e.createElement)(Mr,{type:i,value:r,isInner:a,hasSelected:this.hasSelected()}),o))},n.defaultProps={ampm:!1,minutesStep:1},n}(e.Component),zr=(0,r.withStyles)((function(e){return(0,r.createStyles)({container:{display:"flex",justifyContent:"center",alignItems:"flex-end",margin:e.spacing(2)+"px 0 "+e.spacing(1)+"px"},clock:{backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:260,width:260,position:"relative",pointerEvents:"none",zIndex:1},squareMask:{width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:"none",touchActions:"none",userSelect:"none","&:active":{cursor:"move"}},pin:{width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})}),{name:"MuiPickersClock"})(Gr),Ur={0:[0,40],1:[55,19.6],2:[94.4,59.5],3:[109,114],4:[94.4,168.5],5:[54.5,208.4],6:[0,223],7:[-54.5,208.4],8:[-94.4,168.5],9:[-109,114],10:[-94.4,59.5],11:[-54.5,19.6],12:[0,5],13:[36.9,49.9],14:[64,77],15:[74,114],16:[64,151],17:[37,178],18:[0,188],19:[-37,178],20:[-64,151],21:[-74,114],22:[-64,77],23:[-37,50]},Wr=(0,r.makeStyles)((function(e){var t=e.spacing(4);return{clockNumber:{width:t,height:32,userSelect:"none",position:"absolute",left:"calc(50% - "+t/2+"px)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:"light"===e.palette.type?e.palette.text.primary:e.palette.text.hint},clockNumberSelected:{color:e.palette.primary.contrastText}}}),{name:"MuiPickersClockNumber"}),Hr=function(t){var n,r=t.selected,o=t.label,i=t.index,a=t.isInner,s=Wr(),u=k(s.clockNumber,((n={})[s.clockNumberSelected]=r,n)),c=(0,e.useMemo)((function(){var e=Ur[i];return{transform:"translate("+e[0]+"px, "+e[1]+"px"}}),[i]);return(0,e.createElement)(D(),{component:"span",className:u,variant:a?"body2":"body1",style:c,children:o})},qr=function(t){for(var n=t.ampm,r=t.utils,o=t.date,i=r.getHours(o),a=[],s=n?12:23,u=function(e){return n?12===e?12===i||0===i:i===e||i-12===e:i===e},c=n?1:0;c<=s;c+=1){var l=c.toString();0===c&&(l="00");var d={index:c,label:r.formatNumber(l),selected:u(c),isInner:!n&&(0===c||c>12)};a.push((0,e.createElement)(Hr,C({key:c},d)))}return a},Vr=function(t){var n=t.value,r=t.utils.formatNumber;return[(0,e.createElement)(Hr,{label:r("00"),selected:0===n,index:12,key:12}),(0,e.createElement)(Hr,{label:r("05"),selected:5===n,index:1,key:1}),(0,e.createElement)(Hr,{label:r("10"),selected:10===n,index:2,key:2}),(0,e.createElement)(Hr,{label:r("15"),selected:15===n,index:3,key:3}),(0,e.createElement)(Hr,{label:r("20"),selected:20===n,index:4,key:4}),(0,e.createElement)(Hr,{label:r("25"),selected:25===n,index:5,key:5}),(0,e.createElement)(Hr,{label:r("30"),selected:30===n,index:6,key:6}),(0,e.createElement)(Hr,{label:r("35"),selected:35===n,index:7,key:7}),(0,e.createElement)(Hr,{label:r("40"),selected:40===n,index:8,key:8}),(0,e.createElement)(Hr,{label:r("45"),selected:45===n,index:9,key:9}),(0,e.createElement)(Hr,{label:r("50"),selected:50===n,index:10,key:10}),(0,e.createElement)(Hr,{label:r("55"),selected:55===n,index:11,key:11})]},Yr=function(t){var n=t.type,r=t.onHourChange,o=t.onMinutesChange,i=t.onSecondsChange,a=t.ampm,s=t.date,u=t.minutesStep,c=jn(),l=(0,e.useMemo)((function(){switch(n){case Lr.HOURS:return{value:c.getHours(s),children:qr({date:s,utils:c,ampm:Boolean(a)}),onChange:function(e,t){var n=Ir(s,c),o=Br(c.setHours(s,e),n,Boolean(a),c);r(o,t)}};case Lr.MINUTES:var e=c.getMinutes(s);return{value:e,children:Vr({value:e,utils:c}),onChange:function(e,t){var n=c.setMinutes(s,e);o(n,t)}};case Lr.SECONDS:var t=c.getSeconds(s);return{value:t,children:Vr({value:t,utils:c}),onChange:function(e,t){var n=c.setSeconds(s,e);i(n,t)}};default:throw new Error("You must provide the type for TimePickerView")}}),[a,s,r,o,i,n,c]);return(0,e.createElement)(zr,C({type:n,ampm:a,minutesStep:u},l))};Yr.displayName="TimePickerView",Yr.defaultProps={ampm:!0,minutesStep:1},(0,e.memo)(Yr);var Kr=(0,r.makeStyles)((function(e){return{root:{flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",outline:"none",height:75,transition:e.transitions.create("font-size",{duration:"100ms"}),"&:focus":{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium}},monthSelected:{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium},monthDisabled:{pointerEvents:"none",color:e.palette.text.hint}}}),{name:"MuiPickersMonth"}),$r=function(t){var n,r=t.selected,o=t.onSelect,i=t.disabled,a=t.value,s=t.children,u=S(t,["selected","onSelect","disabled","value","children"]),c=Kr(),l=(0,e.useCallback)((function(){o(a)}),[o,a]);return(0,e.createElement)(D(),C({role:"button",component:"div",className:k(c.root,(n={},n[c.monthSelected]=r,n[c.monthDisabled]=i,n)),tabIndex:i?-1:0,onClick:l,onKeyPress:l,color:r?"primary":void 0,variant:r?"h5":"subtitle1",children:s},u))};$r.displayName="Month";var Zr=(0,r.makeStyles)({container:{width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch"}},{name:"MuiPickersMonthSelection"}),Xr=function(t){var n=t.disablePast,r=t.disableFuture,o=t.minDate,i=t.maxDate,a=t.date,s=t.onMonthChange,u=t.onChange,c=jn(),l=Zr(),d=c.getMonth(a),f=function(e){var t=c.date(),a=c.date(o),s=c.date(i),u=c.startOfMonth(n&&c.isAfter(t,a)?t:a),l=c.startOfMonth(r&&c.isBefore(t,s)?t:s),d=c.isBefore(e,u),f=c.isAfter(e,l);return d||f},h=(0,e.useCallback)((function(e){var t=c.setMonth(a,e);u(t,!0),s&&s(t)}),[a,u,s,c]);return(0,e.createElement)("div",{className:l.container},c.getMonthArray(a).map((function(t){var n=c.getMonth(t),r=c.format(t,"MMM");return(0,e.createElement)($r,{key:r,value:n,selected:n===d,onSelect:h,disabled:f(t)},r)})))},Qr=function(){return"undefined"!=typeof window&&window.screen&&window.orientation&&90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait"},Jr={year:Dr,month:Xr,date:fr,hours:Yr,minutes:Yr,seconds:Yr},eo=(0,r.makeStyles)({container:{display:"flex",flexDirection:"column"},containerLandscape:{flexDirection:"row"},pickerView:{overflowX:"hidden",minHeight:305,minWidth:mr,maxWidth:325,display:"flex",flexDirection:"column",justifyContent:"center"},pickerViewLandscape:{padding:"0 8px"}},{name:"MuiPickersBasePicker"}),to=function(t){var n,r,o=t.date,i=t.ampm,a=t.views,s=t.disableToolbar,u=t.disablePast,c=t.disableFuture,l=t.hideTabs,d=t.onChange,f=t.openTo,h=t.minutesStep,p=t.dateRangeIcon,g=t.timeIcon,m=t.minDate,v=t.maxDate,y=t.animateYearScrolling,b=t.leftArrowIcon,w=t.rightArrowIcon,E=t.renderDay,x=t.shouldDisableDate,_=t.allowKeyboardControl,S=t.onMonthChange,A=t.onYearChange,O=t.leftArrowButtonProps,D=t.rightArrowButtonProps,L=t.ToolbarComponent,T=t.loadingIndicator,M=t.orientation,P=jn(),F=eo(),N=function(t){var n=(0,e.useState)(Qr()),r=n[0],o=n[1],i=(0,e.useCallback)((function(){return o(Qr())}),[]);return ir((function(){return window.addEventListener("orientationchange",i),function(){return window.removeEventListener("orientationchange",i)}}),[i]),"landscape"===(t||r)}(M),j=function(t,n,r){var o=(0,e.useState)(n&&Hn(t,n)?n:t[0]),i=o[0],a=o[1],s=(0,e.useCallback)((function(e,n){var o=t[t.indexOf(i)+1];if(n&&o)return r(e,!1),void a(o);r(e,Boolean(n))}),[r,i,t]);return{handleChangeAndOpenNext:s,openView:i,setOpenView:a}}(a,f,d),R=j.openView,I=j.setOpenView,B=j.handleChangeAndOpenNext,G=(0,e.useMemo)((function(){return P.date(m)}),[m,P]),z=(0,e.useMemo)((function(){return P.date(v)}),[v,P]);return(0,e.createElement)("div",{className:k(F.container,(n={},n[F.containerLandscape]=N,n))},!s&&(0,e.createElement)(L,C({date:o,onChange:d,setOpenView:I,openView:R,hideTabs:l,dateRangeIcon:p,timeIcon:g,isLandscape:N},t)),(0,e.createElement)("div",{className:k(F.pickerView,(r={},r[F.pickerViewLandscape]=N,r))},"year"===R&&(0,e.createElement)(Dr,{date:o,onChange:B,minDate:G,maxDate:z,disablePast:u,disableFuture:c,onYearChange:A,animateYearScrolling:y}),"month"===R&&(0,e.createElement)(Xr,{date:o,onChange:B,minDate:G,maxDate:z,disablePast:u,disableFuture:c,onMonthChange:S}),"date"===R&&(0,e.createElement)(fr,{date:o,onChange:B,onMonthChange:S,disablePast:u,disableFuture:c,minDate:G,maxDate:z,leftArrowIcon:b,leftArrowButtonProps:O,rightArrowIcon:w,rightArrowButtonProps:D,renderDay:E,shouldDisableDate:x,allowKeyboardControl:_,loadingIndicator:T}),("hours"===R||"minutes"===R||"seconds"===R)&&(0,e.createElement)(Yr,{date:o,ampm:i,type:R,minutesStep:h,onHourChange:B,onMinutesChange:B,onSecondsChange:B})))};to.defaultProps=C({},Zn,{views:Object.keys(Jr)});var no=function(e,t,n,r,o){var i=o.invalidLabel,a=o.emptyLabel,s=o.labelFunc,u=n.date(e);return s?s(r?null:u,i):r?a||"":n.isValid(u)?n.format(u,t):i},ro=function(e,t,n){return t?n:e.endOfDay(n)},oo=function(e,t,n){return t?n:e.startOfDay(n)};function io(e,t,n){return void 0===t&&(t=!0),e||(t?n["12h"]:n["24h"])}function ao(t,n){var r=t.autoOk,o=t.disabled,i=t.onAccept,a=t.onChange,s=t.onError,u=t.value,c=t.variant,l=jn(),d=function(t){var n,r=t.open,o=t.onOpen,i=t.onClose,a=null;return null==r&&(r=(n=(0,e.useState)(!1))[0],a=n[1]),{isOpen:r,setIsOpen:(0,e.useCallback)((function(e){return a&&a(e),e?o&&o():i&&i()}),[o,i,a])}}(t),f=d.isOpen,h=d.setIsOpen,p=function(t,n){return{date:function(t,n){var r=n.value,o=n.initialFocusedDate,i=(0,e.useRef)(t.date()),a=t.date(r||o||i.current);return a&&t.isValid(a)?a:i.current}(jn(),t),format:t.format||n.getDefaultFormat()}}(t,n),g=p.date,m=p.format,v=(0,e.useState)(g),y=v[0],b=v[1];(0,e.useEffect)((function(){f||l.isEqual(y,g)||b(g)}),[g,f,y,l]);var w=(0,e.useCallback)((function(e){h(!1),a(e),i&&i(e)}),[i,a,h]),E=(0,e.useMemo)((function(){return{format:m,open:f,onClear:function(){return w(null)},onAccept:function(){return w(y)},onSetToday:function(){return b(l.date())},onDismiss:function(){h(!1)}}}),[w,m,f,y,h,l]),x=(0,e.useMemo)((function(){return{date:y,onChange:function(e,t){void 0===t&&(t=!0),b(e),"inline"!==c&&"static"!==c||a(e),t&&r&&w(e)}}}),[w,r,a,y,c]),_=function(e,t,n){var r=n.maxDate,o=n.minDate,i=n.disablePast,a=n.disableFuture,s=n.maxDateMessage,u=n.minDateMessage,c=n.invalidDateMessage,l=n.strictCompareDates,d=t.date(e);return null===e?"":t.isValid(e)?r&&t.isAfter(d,ro(t,!!l,t.date(r)))||a&&t.isAfter(d,ro(t,!!l,t.date()))?s:o&&t.isBefore(d,oo(t,!!l,t.date(o)))||i&&t.isBefore(d,oo(t,!!l,t.date()))?u:"":c}(u,l,t);(0,e.useEffect)((function(){_&&s&&s(_,u)}),[s,_,u]);var C=no(g,m,l,null===u,t),S={pickerProps:x,inputProps:(0,e.useMemo)((function(){return{inputValue:C,validationError:_,onClick:function(){return!o&&h(!0)}}}),[o,C,h,_]),wrapperProps:E};return(0,e.useDebugValue)(S),S}var so=function(t){var n=t.inputValue,r=t.inputVariant,o=t.validationError,i=t.InputProps,a=t.TextFieldComponent,s=void 0===a?Cn():a,u=S(t,["inputValue","inputVariant","validationError","InputProps","TextFieldComponent"]),c=(0,e.useMemo)((function(){return C({},i,{readOnly:!0})}),[i]);return(0,e.createElement)(s,C({error:Boolean(o),helperText:o},u,{value:n,variant:r,InputProps:c}))};function uo(t){var n=t.useOptions,r=t.getCustomProps,o=t.DefaultToolbarComponent;return function(t){var i=t.allowKeyboardControl,a=t.ampm,s=t.hideTabs,u=t.animateYearScrolling,c=(t.autoOk,t.disableFuture),l=t.disablePast,d=(t.format,t.forwardedRef,t.initialFocusedDate,t.invalidDateMessage,t.labelFunc,t.leftArrowIcon),f=t.leftArrowButtonProps,h=t.maxDate,p=(t.maxDateMessage,t.minDate),g=(t.onOpen,t.onClose,t.minDateMessage,t.strictCompareDates),m=t.minutesStep,v=(t.onAccept,t.onChange,t.onMonthChange),y=t.onYearChange,b=t.renderDay,w=t.views,E=t.openTo,x=t.rightArrowIcon,_=t.rightArrowButtonProps,A=t.shouldDisableDate,k=t.dateRangeIcon,O=(t.emptyLabel,t.invalidLabel,t.timeIcon),D=(t.value,t.variant),L=t.orientation,T=t.disableToolbar,M=t.loadingIndicator,P=t.ToolbarComponent,F=void 0===P?o:P,N=S(t,["allowKeyboardControl","ampm","hideTabs","animateYearScrolling","autoOk","disableFuture","disablePast","format","forwardedRef","initialFocusedDate","invalidDateMessage","labelFunc","leftArrowIcon","leftArrowButtonProps","maxDate","maxDateMessage","minDate","onOpen","onClose","minDateMessage","strictCompareDates","minutesStep","onAccept","onChange","onMonthChange","onYearChange","renderDay","views","openTo","rightArrowIcon","rightArrowButtonProps","shouldDisableDate","dateRangeIcon","emptyLabel","invalidLabel","timeIcon","value","variant","orientation","disableToolbar","loadingIndicator","ToolbarComponent"]),j=r?r(t):{},R=ao(t,n(t)),I=R.pickerProps,B=R.inputProps,G=R.wrapperProps;return(0,e.createElement)(kr,C({variant:D,InputComponent:so,DateInputProps:B},G,j,N),(0,e.createElement)(to,C({},I,{orientation:L,disableToolbar:T,ToolbarComponent:F,hideTabs:s,ampm:a,views:w,openTo:E,allowKeyboardControl:i,minutesStep:m,animateYearScrolling:u,disableFuture:c,disablePast:l,leftArrowIcon:d,leftArrowButtonProps:f,maxDate:h,minDate:p,strictCompareDates:g,onMonthChange:v,onYearChange:y,renderDay:b,dateRangeIcon:k,timeIcon:O,rightArrowIcon:x,rightArrowButtonProps:_,shouldDisableDate:A,loadingIndicator:M})))}}so.displayName="PureDateInput";var co=function(t){var n=t.inputValue,r=t.inputVariant,o=t.validationError,i=t.KeyboardButtonProps,a=t.InputAdornmentProps,s=t.onClick,u=t.onChange,c=t.InputProps,l=t.mask,d=t.maskChar,f=void 0===d?"_":d,h=t.refuse,p=void 0===h?/[^\d]+/gi:h,g=t.format,m=t.keyboardIcon,v=t.disabled,y=t.rifmFormatter,b=t.TextFieldComponent,w=void 0===b?Cn():b,E=S(t,["inputValue","inputVariant","validationError","KeyboardButtonProps","InputAdornmentProps","onClick","onChange","InputProps","mask","maskChar","refuse","format","keyboardIcon","disabled","rifmFormatter","TextFieldComponent"]),x=l||function(e,t){return e.replace(/[a-z]/gi,t)}(g,f),_=(0,e.useCallback)(function(e,t,n){return function(r){if(""===r)return r;for(var o="",i=r.replace(n,""),a=0,s=0;a<e.length;){var u=e[a];u===t&&s<i.length?(o+=i[s],s+=1):o+=u,a+=1}return o}}(x,f,p),[l,f]),A=a&&a.position?a.position:"end";return(0,e.createElement)(kn,{value:n,onChange:function(e){u(""===e||e===x?null:e)},refuse:p,format:y||_},(function(t){var n,u=t.onChange,l=t.value;return(0,e.createElement)(w,C({disabled:v,error:Boolean(o),helperText:o},E,{value:l,onChange:u,variant:r,InputProps:C({},c,(n={},n[A+"Adornment"]=(0,e.createElement)(An(),C({position:A},a),(0,e.createElement)(un,C({disabled:v},i,{onClick:s}),m)),n))}))}))};function lo(t){var n=t.useOptions,r=t.getCustomProps,o=t.DefaultToolbarComponent;return function(t){var i=t.allowKeyboardControl,a=t.ampm,s=t.hideTabs,u=t.animateYearScrolling,c=(t.autoOk,t.disableFuture),l=t.disablePast,d=(t.format,t.forwardedRef,t.initialFocusedDate,t.invalidDateMessage,t.labelFunc,t.leftArrowIcon),f=t.leftArrowButtonProps,h=t.maxDate,p=(t.maxDateMessage,t.minDate),g=(t.onOpen,t.onClose,t.minDateMessage,t.strictCompareDates),m=t.minutesStep,v=(t.onAccept,t.onChange,t.onMonthChange),y=t.onYearChange,b=t.renderDay,w=t.views,E=t.openTo,x=t.rightArrowIcon,_=t.rightArrowButtonProps,A=t.shouldDisableDate,k=(t.value,t.dateRangeIcon),O=(t.emptyLabel,t.invalidLabel,t.timeIcon),D=t.orientation,L=t.variant,T=t.disableToolbar,M=t.loadingIndicator,P=t.ToolbarComponent,F=void 0===P?o:P,N=S(t,["allowKeyboardControl","ampm","hideTabs","animateYearScrolling","autoOk","disableFuture","disablePast","format","forwardedRef","initialFocusedDate","invalidDateMessage","labelFunc","leftArrowIcon","leftArrowButtonProps","maxDate","maxDateMessage","minDate","onOpen","onClose","minDateMessage","strictCompareDates","minutesStep","onAccept","onChange","onMonthChange","onYearChange","renderDay","views","openTo","rightArrowIcon","rightArrowButtonProps","shouldDisableDate","value","dateRangeIcon","emptyLabel","invalidLabel","timeIcon","orientation","variant","disableToolbar","loadingIndicator","ToolbarComponent"]),j=r?r(t):{},R=function(t,n){var r=t.format,o=void 0===r?n.getDefaultFormat():r,i=t.inputValue,a=t.onChange,s=t.value,u=jn(),c=no(s,o,u,null===s,t),l=(0,e.useState)(c),d=l[0],f=l[1],h=i?function(e,t,n){try{return t.parse(e,n)}catch(e){return null}}(i,u,o):s;(0,e.useEffect)((function(){(null===s||u.isValid(s))&&f(c)}),[c,f,u,s]);var p=(0,e.useCallback)((function(e){a(e,null===e?null:u.format(e,o))}),[o,a,u]),g=ao(C({},t,{value:h,onChange:p}),n),m=g.inputProps,v=g.wrapperProps,y=g.pickerProps,b=(0,e.useMemo)((function(){return C({},m,{format:v.format,inputValue:i||d,onChange:function(e){f(e||"");var t=null===e?null:u.parse(e,v.format);a(t,e)}})}),[m,d,i,a,u,v.format]);return{inputProps:b,wrapperProps:v,pickerProps:y}}(t,n(t)),I=R.pickerProps,B=R.inputProps,G=R.wrapperProps;return(0,e.createElement)(kr,C({variant:L,InputComponent:co,DateInputProps:B},j,G,N),(0,e.createElement)(to,C({},I,{ToolbarComponent:F,disableToolbar:T,hideTabs:s,orientation:D,ampm:a,views:w,openTo:E,allowKeyboardControl:i,minutesStep:m,animateYearScrolling:u,disableFuture:c,disablePast:l,leftArrowIcon:d,leftArrowButtonProps:f,maxDate:h,minDate:p,strictCompareDates:g,onMonthChange:v,onYearChange:y,renderDay:b,dateRangeIcon:k,timeIcon:O,rightArrowIcon:x,rightArrowButtonProps:_,shouldDisableDate:A,loadingIndicator:M})))}}co.defaultProps={keyboardIcon:(0,e.createElement)((function(e){return t().createElement(de(),C({},e),t().createElement("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),t().createElement("path",{fill:"none",d:"M0 0h24v24H0z"}))}),null)};var fo=C({},Zn,{openTo:"date",views:["year","date"]});function ho(e){var t=jn();return{getDefaultFormat:function(){return function(e,t){return qn(e)?t.yearFormat:Vn(e)?t.yearMonthFormat:t.dateFormat}(e.views,t)}}}var po=uo({useOptions:ho,DefaultToolbarComponent:Kn}),go=lo({useOptions:ho,DefaultToolbarComponent:Kn});po.defaultProps=fo,go.defaultProps=fo;var mo=(0,r.makeStyles)({toolbarLandscape:{flexWrap:"wrap"},toolbarAmpmLeftPadding:{paddingLeft:50},separator:{margin:"0 4px 0 2px",cursor:"default"},hourMinuteLabel:{display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},hourMinuteLabelLandscape:{marginTop:"auto"},hourMinuteLabelReverse:{flexDirection:"row-reverse"},ampmSelection:{marginLeft:20,marginRight:-20,display:"flex",flexDirection:"column"},ampmLandscape:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},ampmSelectionWithSeconds:{marginLeft:15,marginRight:10},ampmLabel:{fontSize:18}},{name:"MuiPickersTimePickerToolbar"});function vo(t,n,r){var o=jn();return{meridiemMode:Ir(t,o),handleMeridiemChange:(0,e.useCallback)((function(e){var i=Br(t,e,Boolean(n),o);r(i,!1)}),[n,t,r,o])}}var yo=function(t){var n,o,i,a=t.date,s=t.views,u=t.ampm,c=t.openView,l=t.onChange,d=t.isLandscape,f=t.setOpenView,h=jn(),p=(0,r.useTheme)(),g=mo(),m=vo(a,u,l),v=m.meridiemMode,y=m.handleMeridiemChange,b=d?"h3":"h2";return(0,e.createElement)(Wn,{isLandscape:d,className:k((n={},n[g.toolbarLandscape]=d,n[g.toolbarAmpmLeftPadding]=u&&!d,n))},(0,e.createElement)("div",{className:k(g.hourMinuteLabel,(o={},o[g.hourMinuteLabelLandscape]=d,o[g.hourMinuteLabelReverse]="rtl"===p.direction,o))},Hn(s,"hours")&&(0,e.createElement)(zn,{variant:b,onClick:function(){return f(Lr.HOURS)},selected:c===Lr.HOURS,label:h.getHourText(a,Boolean(u))}),Hn(s,["hours","minutes"])&&(0,e.createElement)(In,{label:":",variant:b,selected:!1,className:g.separator}),Hn(s,"minutes")&&(0,e.createElement)(zn,{variant:b,onClick:function(){return f(Lr.MINUTES)},selected:c===Lr.MINUTES,label:h.getMinuteText(a)}),Hn(s,["minutes","seconds"])&&(0,e.createElement)(In,{variant:"h2",label:":",selected:!1,className:g.separator}),Hn(s,"seconds")&&(0,e.createElement)(zn,{variant:"h2",onClick:function(){return f(Lr.SECONDS)},selected:c===Lr.SECONDS,label:h.getSecondText(a)})),u&&(0,e.createElement)("div",{className:k(g.ampmSelection,(i={},i[g.ampmLandscape]=d,i[g.ampmSelectionWithSeconds]=Hn(s,"seconds"),i))},(0,e.createElement)(zn,{disableRipple:!0,variant:"subtitle1",selected:"am"===v,typographyClassName:g.ampmLabel,label:h.getMeridiemText("am"),onClick:function(){return y("am")}}),(0,e.createElement)(zn,{disableRipple:!0,variant:"subtitle1",selected:"pm"===v,typographyClassName:g.ampmLabel,label:h.getMeridiemText("pm"),onClick:function(){return y("pm")}})))},bo=C({},$n,{openTo:"hours",views:["hours","minutes"]});function wo(e){var t=jn();return{getDefaultFormat:function(){return io(e.format,e.ampm,{"12h":t.time12hFormat,"24h":t.time24hFormat})}}}var Eo=uo({useOptions:wo,DefaultToolbarComponent:yo}),xo=lo({useOptions:wo,DefaultToolbarComponent:yo,getCustomProps:function(e){return{refuse:e.ampm?/[^\dap]+/gi:/[^\d]+/gi}}});Eo.defaultProps=bo,xo.defaultProps=bo;var _o=function(e){return"date"===e||"year"===e?"date":"time"},Co=(0,r.makeStyles)((function(e){var t="light"===e.palette.type?e.palette.primary.main:e.palette.background.default;return{tabs:{color:e.palette.getContrastText(t),backgroundColor:t}}}),{name:"MuiPickerDTTabs"}),So=function(t){var n=t.view,o=t.onChange,i=t.dateRangeIcon,a=t.timeIcon,s=Co(),u="light"===(0,r.useTheme)().palette.type?"secondary":"primary";return(0,e.createElement)(Pn(),null,(0,e.createElement)(Tn(),{variant:"fullWidth",value:_o(n),onChange:function(e,t){t!==_o(n)&&o("date"===t?"date":"hours")},className:s.tabs,indicatorColor:u},(0,e.createElement)(Dn(),{value:"date",icon:(0,e.createElement)(e.Fragment,null,i)}),(0,e.createElement)(Dn(),{value:"time",icon:(0,e.createElement)(e.Fragment,null,a)})))};So.defaultProps={dateRangeIcon:(0,e.createElement)((function(e){return t().createElement(de(),C({},e),t().createElement("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),t().createElement("path",{fill:"none",d:"M0 0h24v24H0z"}))}),null),timeIcon:(0,e.createElement)((function(e){return t().createElement(de(),C({},e),t().createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),t().createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),t().createElement("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}))}),null)};var Ao=(0,r.makeStyles)((function(e){return{toolbar:{paddingLeft:16,paddingRight:16,justifyContent:"space-around"},separator:{margin:"0 4px 0 2px",cursor:"default"}}}),{name:"MuiPickerDTToolbar"}),ko=function(t){var n=t.date,o=t.openView,i=t.setOpenView,a=t.ampm,s=t.hideTabs,u=t.dateRangeIcon,c=t.timeIcon,l=t.onChange,d=jn(),f=Ao(),h=!s&&"undefined"!=typeof window&&window.innerHeight>667,p=vo(n,a,l),g=p.meridiemMode,m=p.handleMeridiemChange,v="rtl"===(0,r.useTheme)().direction;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Wn,{isLandscape:!1,className:f.toolbar},(0,e.createElement)(pn,{container:!0,justify:"center",wrap:"nowrap"},(0,e.createElement)(pn,{item:!0,container:!0,xs:5,justify:"flex-start",direction:"column"},(0,e.createElement)("div",null,(0,e.createElement)(zn,{variant:"subtitle1",onClick:function(){return i("year")},selected:"year"===o,label:d.getYearText(n)})),(0,e.createElement)("div",null,(0,e.createElement)(zn,{variant:"h4",onClick:function(){return i("date")},selected:"date"===o,label:d.getDateTimePickerHeaderText(n)}))),(0,e.createElement)(pn,{item:!0,container:!0,xs:6,justify:"center",alignItems:"flex-end",direction:v?"row-reverse":"row"},(0,e.createElement)(zn,{variant:"h3",onClick:function(){return i("hours")},selected:"hours"===o,label:d.getHourText(n,a)}),(0,e.createElement)(In,{variant:"h3",label:":",className:f.separator}),(0,e.createElement)(zn,{variant:"h3",onClick:function(){return i("minutes")},selected:"minutes"===o,label:d.getMinuteText(n)})),a&&(0,e.createElement)(pn,{item:!0,container:!0,xs:1,direction:"column",justify:"flex-end"},(0,e.createElement)(zn,{variant:"subtitle1",selected:"am"===g,label:d.getMeridiemText("am"),onClick:function(){return m("am")}}),(0,e.createElement)(zn,{variant:"subtitle1",selected:"pm"===g,label:d.getMeridiemText("pm"),onClick:function(){return m("pm")}})))),h&&(0,e.createElement)(So,{dateRangeIcon:u,timeIcon:c,view:o,onChange:i}))},Oo=C({},Xn,{wider:!0,orientation:"portrait",openTo:"date",views:["year","date","hours","minutes"]});function Do(e){var t=jn();if("portrait"!==e.orientation)throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return{getDefaultFormat:function(){return io(e.format,e.ampm,{"12h":t.dateTime12hFormat,"24h":t.dateTime24hFormat})}}}var Lo=uo({useOptions:Do,DefaultToolbarComponent:ko}),To=lo({useOptions:Do,DefaultToolbarComponent:ko,getCustomProps:function(e){return{refuse:e.ampm?/[^\dap]+/gi:/[^\d]+/gi}}});Lo.defaultProps=Oo,To.defaultProps=Oo;var Mo=f(3192),Po=f.n(Mo);const Fo=function(){function e(e){var t=void 0===e?{}:e,n=t.locale,r=t.instance,o=t.moment;this.yearFormat="YYYY",this.yearMonthFormat="MMMM YYYY",this.dateTime12hFormat="MMMM Do hh:mm a",this.dateTime24hFormat="MMMM Do HH:mm",this.time12hFormat="hh:mm A",this.time24hFormat="HH:mm",this.dateFormat="MMMM Do",this.moment=r||o||Po(),this.locale=n}return e.prototype.parse=function(e,t){return""===e?null:this.moment(e,t,!0)},e.prototype.date=function(e){if(null===e)return null;var t=this.moment(e);return t.locale(this.locale),t},e.prototype.isValid=function(e){return this.moment(e).isValid()},e.prototype.isNull=function(e){return null===e},e.prototype.getDiff=function(e,t){return e.diff(t)},e.prototype.isAfter=function(e,t){return e.isAfter(t)},e.prototype.isBefore=function(e,t){return e.isBefore(t)},e.prototype.isAfterDay=function(e,t){return e.isAfter(t,"day")},e.prototype.isBeforeDay=function(e,t){return e.isBefore(t,"day")},e.prototype.isBeforeYear=function(e,t){return e.isBefore(t,"year")},e.prototype.isAfterYear=function(e,t){return e.isAfter(t,"year")},e.prototype.startOfDay=function(e){return e.clone().startOf("day")},e.prototype.endOfDay=function(e){return e.clone().endOf("day")},e.prototype.format=function(e,t){return e.locale(this.locale),e.format(t)},e.prototype.formatNumber=function(e){return e},e.prototype.getHours=function(e){return e.get("hours")},e.prototype.addDays=function(e,t){return t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days")},e.prototype.setHours=function(e,t){return e.clone().hours(t)},e.prototype.getMinutes=function(e){return e.get("minutes")},e.prototype.setMinutes=function(e,t){return e.clone().minutes(t)},e.prototype.getSeconds=function(e){return e.get("seconds")},e.prototype.setSeconds=function(e,t){return e.clone().seconds(t)},e.prototype.getMonth=function(e){return e.get("month")},e.prototype.isSameDay=function(e,t){return e.isSame(t,"day")},e.prototype.isSameMonth=function(e,t){return e.isSame(t,"month")},e.prototype.isSameYear=function(e,t){return e.isSame(t,"year")},e.prototype.isSameHour=function(e,t){return e.isSame(t,"hour")},e.prototype.setMonth=function(e,t){return e.clone().month(t)},e.prototype.getMeridiemText=function(e){return"am"===e?"AM":"PM"},e.prototype.startOfMonth=function(e){return e.clone().startOf("month")},e.prototype.endOfMonth=function(e){return e.clone().endOf("month")},e.prototype.getNextMonth=function(e){return e.clone().add(1,"month")},e.prototype.getPreviousMonth=function(e){return e.clone().subtract(1,"month")},e.prototype.getMonthArray=function(e){for(var t=[e.clone().startOf("year")];t.length<12;){var n=t[t.length-1];t.push(this.getNextMonth(n))}return t},e.prototype.getYear=function(e){return e.get("year")},e.prototype.setYear=function(e,t){return e.clone().set("year",t)},e.prototype.mergeDateAndTime=function(e,t){return this.setMinutes(this.setHours(e,this.getHours(t)),this.getMinutes(t))},e.prototype.getWeekdays=function(){return this.moment.weekdaysShort(!0)},e.prototype.isEqual=function(e,t){return null===e&&null===t||this.moment(e).isSame(t)},e.prototype.getWeekArray=function(e){for(var t=e.clone().startOf("month").startOf("week"),n=e.clone().endOf("month").endOf("week"),r=0,o=t,i=[];o.isBefore(n);){var a=Math.floor(r/7);i[a]=i[a]||[],i[a].push(o),o=o.clone().add(1,"day"),r+=1}return i},e.prototype.getYearRange=function(e,t){for(var n=this.moment(e).startOf("year"),r=this.moment(t).endOf("year"),o=[],i=n;i.isBefore(r);)o.push(i),i=i.clone().add(1,"year");return o},e.prototype.getCalendarHeaderText=function(e){return this.format(e,this.yearMonthFormat)},e.prototype.getYearText=function(e){return this.format(e,"YYYY")},e.prototype.getDatePickerHeaderText=function(e){return this.format(e,"ddd, MMM D")},e.prototype.getDateTimePickerHeaderText=function(e){return this.format(e,"MMM D")},e.prototype.getMonthText=function(e){return this.format(e,"MMMM")},e.prototype.getDayText=function(e){return this.format(e,"D")},e.prototype.getHourText=function(e,t){return this.format(e,t?"hh":"HH")},e.prototype.getMinuteText=function(e){return this.format(e,"mm")},e.prototype.getSecondText=function(e){return this.format(e,"ss")},e}(),No=window["material-ui"].LinearProgress;var jo=f.n(No);const Ro=(0,r.makeStyles)({loadingOverlay:{position:"absolute",width:"100%",height:"100%",top:0,left:0,opacity:.37,zIndex:10,backgroundColor:"#fff"},transparent:{backgroundColor:"transparent"},relativePosition:{"&$loadingOverlay":{position:"relative"}}}),Io=e=>{let{transparent:n=!1,relativePosition:r=!1,className:o}=e;const i=Ro();return t().createElement(t().Fragment,null,t().createElement("div",{className:s()(i.loadingOverlay,o,{[i.transparent]:n,[i.relativePosition]:r})},t().createElement(jo(),{color:"secondary"})))},Bo=(0,r.makeStyles)((e=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,fontFamily:"Roboto, Helvetica, Arial, sans-serif",overflowX:"hidden",overflowY:"auto",display:"flex",flexDirection:"column",backgroundColor:e.palette.background.default},graphWrapper:{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1},graphContainer:{display:"flex",overflow:"hidden",flexGrow:1},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"}})));var Go=f(2396);const zo=()=>{},Uo=new Promise((()=>{})),Wo=function(){let{cancelPrevious:t=!0,cancelOnUnmount:n=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=(0,e.useRef)(zo),o=()=>r.current();return(0,e.useEffect)((()=>()=>{n&&o()}),[]),(0,e.useCallback)((e=>(t&&o(),new Promise(((t,n)=>{r.current=()=>n("canceled"),e.then(t,n)})).catch((function(e){if("canceled"===e)return Uo;throw e})))),[])};function Ho(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qo=(e,t)=>{const n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ho(e,t,n[t])}))}return e}({},e,{[null==t?void 0:t.uri]:t}),r=Object.keys(n);return r.length>50&&delete n[r[0]],n},Vo=t().createContext({graphLoading:!1,data:null,selectedEntityLoading:!1,selectedEntity:null,onEntitySelect:()=>{}});Vo.displayName="GraphStateContext";var Yo=f(6929),Ko=f.n(Yo);const $o=window["material-ui"].Avatar;var Zo=f.n($o);const Xo=e=>{let{entity:r,avatarClassName:o,imageClassName:i}=e;const a=(0,n.useSelector)(v().selectors.getMetadata),u=(0,n.useSelector)(v().selectors.getAbsoluteImagePath)||"",c=(0,Go.getEntityImage)(a,u,r),l=(0,Go.getAbsoluteImageUrl)(u,(0,Go.getEntityTypeImage)(a,r.type)),d=e=>{e.target.onError=null,e.target.src=(0,Go.svg2Url)('\n<svg width="400px" height="400px" viewBox="0 0 400 400" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>Group</title>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="Group" fill-rule="nonzero">\n <rect id="Rectangle" fill="#DFE5E9" x="0" y="0" width="400" height="400"></rect>\n <path d="M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n <path d="M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n <path d="M5.68434189e-14,387.023257 L5.68434189e-14,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 5.68434189e-14,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n </g>\n </g>\n</svg>\n')};return t().createElement(Zo(),{className:s()(o,i),src:c,imgProps:{onError:d}},t().createElement("img",{className:i,src:l,alt:"fallback entity avatar",onError:d}))},Qo=(0,r.makeStyles)({container:{display:"flex",flexShrink:0,marginLeft:"10px",alignItems:"center"},value:{marginLeft:"4px",minWidth:"20px",textAlign:"center"}}),Jo=(0,r.makeStyles)({dqiq:{width:"14px",height:"14px",lineHeight:"14px",background:"#e6605e",color:"#fff",fontSize:"10px",fontWeight:100,marginLeft:"2px",marginRight:"1px",borderRadius:"2px",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,textIndent:0}}),ei=()=>{const e=Jo();return t().createElement(t().Fragment,null,t().createElement("span",null,"DQ"),t().createElement("span",{className:e.dqiq},"IQ"))},ti=["analyticsAttributes/DQ/analyticsAttributes/score","analyticsAttributes/DQ"],ni=["analyticsAttributes/IQ/analyticsAttributes/score","analyticsAttributes/IQ"],ri=e=>{let{label:n="",attrTypeUri:r=""}=e;const o=r.indexOf("analyticsAttributes/"),i=r.substr(o),a=(0,u.includes)(i,ti),s=(0,u.includes)(i,ni);return(0,u.cond)([[(0,u.always)(a),(0,u.always)(t().createElement(ei,null))],[(0,u.always)(s),(0,u.always)(l().text("Rank"))],[u.T,(0,u.always)(n)]])()};ri.propTypes={label:i().string,attrTypeUri:i().string};const oi=ri,ii=e=>{let{label:n,value:r,uri:o,rangeColorsConfig:i,className:a}=e;const u=Qo();return t().createElement("div",{className:s()(u.container,a),key:o},t().createElement(oi,{attrTypeUri:o,label:n}),t().createElement("span",{className:u.value,style:{color:(0,Go.getScoreColor)(o,r,i)}},r))};ii.propTypes={label:i().string,value:i().oneOfType([i().string,i().number]),uri:i().string,rangeColorsConfig:i().object,className:i().string};const ai=ii,si=(0,r.makeStyles)({"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",display:"inline-flex",marginRight:"12px",borderRadius:"2px"},"entityType-medium":{padding:"2px 8px 3px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"15px",display:"inline-flex",marginRight:"16px"}}),ui=e=>{let{entity:r,className:o,size:i="small"}=e;const a=si(),u=(0,n.useSelector)(v().selectors.getMetadata),c=r.type,l=(0,Go.getEntityType)(u,c)||{},d=(0,Go.getPropWithInheritance)(u,l,"typeColor")||Go.theme.palette.primary.main;return t().createElement(D(),{style:{backgroundColor:d,color:Go.utils.Colors.getColor(d)?"#FFFFFF":"#212121"},className:s()(a[`entityType-${i}`],o),component:"div"},(0,Go.getEntityTypeLabel)(u,r))},ci=(0,r.makeStyles)((e=>({profileBandWrapper:{flexShrink:0},profileBand:{display:"flex",padding:"16px 12px 16px 16px",alignItems:"flex-start",backgroundColor:"#fff",boxShadow:"inset 0 -1px 0 0 rgba(0,114,206,0.06), inset 0 1px 0 0 rgba(0,114,206,0.06);","&:after":{content:'""',minHeight:"inherit",fontSize:0}},inactive:{background:e.inactiveBackground},profileIcon:{marginRight:"12px"},imageProfileIcon:{width:"48px",height:"48px"},profileInfo:{display:"flex",flexDirection:"column",flex:"1 1 50%"},badge:{},label:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary,wordBreak:"break-word","&+ $specialInfo":{marginTop:"4px"}},secondaryLabel:{display:"inline-flex",color:e.palette.text.primary,marginTop:"2px",lineHeight:"16px",fontSize:"14px",fontWeight:400,"&+ $businessCard":{marginLeft:"12px"}},businessCard:{color:e.palette.text.secondary,display:"inline-flex",fontSize:"14px",marginTop:"4px",lineHeight:"1.2"},specialInfo:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",width:"100%",marginTop:"8px"},entityType:{display:"flex",flexWrap:"wrap"},entityId:{fontSize:"13px",color:e.palette.text.secondary,whiteSpace:"nowrap",cursor:"pointer","&:hover":{textDecoration:"underline"}},scores:{display:"flex",flexGrow:1,justifyContent:"flex-end",paddingRight:"20px"}})));function li(){return li=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},li.apply(this,arguments)}const di=r=>{let{className:o,entity:i,scoresToShow:a,rangeColorsConfig:c,children:d,classes:f}=r;const h=ci({classes:f}),p=(0,n.useSelector)(v().selectors.getMetadata),g=(0,e.useCallback)((()=>{navigator.clipboard.writeText((0,Go.getEntityId)(i))}),[i]);if((0,u.isNil)(i))return null;const m=(0,Go.getLabel)(i.label),y=i.secondaryLabel,b=(0,Go.getBusinessCardAttributesText)(p,i),w=(0,Go.isActiveObject)(i),E=(0,Go.getScores)(p,i,a),x=i.uri,_=(0,Go.getEntityId)(i);return t().createElement("div",{className:s()(h.profileBandWrapper,o)},t().createElement("div",{className:s()(h.profileBand,{[h.inactive]:!w}),"data-entity-uri":x},t().createElement(Xo,{key:i.uri,entity:i,avatarClassName:h.profileIcon,imageClassName:h.imageProfileIcon}),t().createElement("div",{className:h.profileInfo},t().createElement("div",null,t().createElement(D(),{variant:"h6",className:h.label},m),y&&t().createElement(D(),{variant:"subtitle2",className:h.secondaryLabel},y),b&&t().createElement(D(),{variant:"subtitle1",className:h.businessCard},b)),t().createElement("div",{className:h.specialInfo},t().createElement("div",{className:h.entityType},t().createElement(ui,{entity:i,size:"medium",className:h.badge}),E.length>0&&t().createElement("div",{className:h.scores},E.map((e=>t().createElement(ai,li({key:e.uri},e,{rangeColorsConfig:c}))))),!(0,Go.isTempUri)(x)&&t().createElement(Ko(),{title:l().text("Copy to clipboard")},t().createElement(D(),{display:"inline",variant:"body2",className:h.entityId,onClick:g},l().text("Entity ID"),": ",_))))),d&&t().createElement("div",null,d)))};di.propTypes={className:i().string,entity:i().object,scoresToShow:i().arrayOf(i().string),rangeColorsConfig:i().object,children:i().node,classes:i().object};const fi=di,hi=(0,r.makeStyles)((()=>({root:{display:"flex",alignItems:"start"},addButton:{visibility:"hidden","&$showAlways":{visibility:"visible"},".commentsContainerVisibilityArea:hover &":{visibility:"visible"}},showAlways:{}}))),pi=(t,n)=>{const r=(0,e.useRef)(!1);(0,e.useEffect)((()=>{r.current?t():r.current=!0}),n)},gi=()=>{},mi=t().createContext({comments:[],commentsMap:null,currentComment:null,getComment:gi,getComments:()=>new Promise(gi),getCommentsCount:gi,createComment:()=>new Promise(gi),editComment:()=>new Promise(gi),createReply:()=>new Promise(gi),resolveThread:gi,reOpenThread:gi,clearCurrentComment:gi,deleteComment:gi,sending:!1,loading:!1,pageToken:null});mi.displayName="CollaborationContext";const vi=t().createContext([]);function yi(){return yi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yi.apply(this,arguments)}vi.displayName="RelatedObjectUrisContext";const bi=e=>t().createElement("svg",yi({width:20,height:20,fillOpacity:.54,fill:"#000",fillRule:"nonzero",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),t().createElement("path",{d:"M2.8 1h14.4c.99 0 1.8.81 1.8 1.8v10.8c0 .99-.81 1.8-1.8 1.8H4.6L1 19V2.8C1 1.81 1.81 1 2.8 1z"})),wi=(0,r.makeStyles)((()=>({root:{position:"relative",height:"18px",display:"flex",alignItems:"center",justifyContent:"center",marginLeft:"4px",cursor:"pointer"},icon:{"&:hover":{fillOpacity:.7}},childrenWrapper:{position:"absolute",width:"100%",height:"100%",lineHeight:"15px",display:"flex",alignItems:"center",justifyContent:"center",top:"-2px",left:0,right:0,bottom:0,color:"white",fontSize:"10px",pointerEvents:"none"}}))),Ei=t().forwardRef(((e,n)=>{let{children:r,onClick:o}=e;const i=wi();return t().createElement(Ko(),{title:l().text("Show comment")},t().createElement("div",{ref:n,className:i.root,onClick:o},t().createElement(bi,{className:i.icon}),t().createElement("div",{className:i.childrenWrapper},r)))}));Ei.displayName="CommentButton";const xi=Ei;function _i(){return _i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_i.apply(this,arguments)}const Ci=e=>t().createElement("svg",_i({width:20,height:20,fillOpacity:.54,fill:"#000",fillRule:"nonzero",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),t().createElement("path",{d:"M2.8 14.653L3.853 13.6H17.2V2.8H2.8v11.853zM17.2 1c.99 0 1.8.81 1.8 1.8v10.8c0 .99-.81 1.8-1.8 1.8H4.6L1 19V2.8C1 1.81 1.81 1 2.8 1h14.4zm-6.3 3.6H9.1v2.699L6.4 7.3v1.8l2.7-.001V11.8h1.8V9.099l2.7.001V7.3l-2.7-.001V4.6z"})),Si=e=>{let{className:n,onClick:r}=e;const o=wi();return t().createElement(Ko(),{title:l().text("Add comment")},t().createElement("div",{className:s()(o.root,n),onClick:r},t().createElement(Ci,{className:o.icon})))},Ai=window["material-ui"].Box;var ki=f.n(Ai),Oi=f(7291);const Di=window["material-ui"].Link;var Li=f.n(Di),Ti=f(3054);const Mi=window["material-ui"].Menu;var Pi=f.n(Mi);const Fi=window["material-ui"].MenuItem;var Ni=f.n(Fi);const ji={tooltipTitle:i().node,tooltipPlacement:i().string,showForDisabled:i().bool};const Ri=(0,r.makeStyles)((e=>({tooltip:e.tooltip,wrapper:{lineHeight:0}}))),Ii=n=>{const r=(0,e.forwardRef)(((e,r)=>{let{tooltipTitle:o,tooltipPlacement:i,showForDisabled:a=!1}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["tooltipTitle","tooltipPlacement","showForDisabled"]);const u=Ri();return o?t().createElement(Ko(),{ref:r,title:o,placement:i||"bottom",disableFocusListener:!0,disableTouchListener:!0,classes:{tooltip:u.tooltip}},(e=>e?t().createElement("span",{className:u.wrapper},t().createElement(n,s)):t().createElement(n,s))(a)):t().createElement(n,s)}));return r.displayName="WithTooltip",r.propTypes=ji,r},Bi=(0,r.makeStyles)((e=>({buttonRoot:{"&$selected":{color:e.palette.action.active,backgroundColor:(0,r.fade)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,r.fade)(e.palette.action.active,.15)}}},selected:{},paper:{minWidth:"112px"},menuItem:{minHeight:"32px"},menuText:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",letterSpacing:0}}))),Gi=Ii(Ni()),zi=(0,e.forwardRef)(((e,n)=>{let{item:r,onMenuClose:o=u.identity}=e;const i=Bi(),{disabled:a,text:s,tooltip:c,onClick:l,id:d=""}=r;return t().createElement(Gi,{tooltipTitle:c,showForDisabled:!0,classes:{root:i.menuItem},onClick:e=>{o(e),l(e)},disabled:a,ref:n,"data-modal":!0,"data-reltio-id":`reltio-search-menu-item${d}`},t().createElement(D(),{classes:{root:i.menuText}},s))}));zi.displayName="MenuItemRenderer";const Ui=zi;function Wi(){return Wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wi.apply(this,arguments)}function Hi(n){let{className:r,menuId:o,buttonComponent:i=T(),buttonContent:a,menuItems:c=[],buttonProps:l={},popoverProps:d={},onMenuOpen:f=u.identity,onMenuClose:h=u.identity,MenuItemRenderer:p=Ui}=n;const g=i,m=Bi(),v=(0,e.useRef)(),[y,b]=(0,e.useState)(!1);pi((()=>{y?f():h()}),[y]);const w=(0,e.useCallback)((e=>{null==e||e.stopPropagation(),b((e=>!e))}),[]);return t().createElement(t().Fragment,null,t().createElement(g,Wi({ref:v,className:s()(m.buttonRoot,{[m.selected]:y},r),onClick:w,"aria-pressed":y,"aria-controls":y?o:void 0,"aria-haspopup":"true"},l),a),t().createElement(Pi(),Wi({id:o,variant:"menu",open:y,autoFocus:!1,classes:{paper:m.paper},anchorEl:v.current,onClose:w,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},elevation:2,getContentAnchorEl:null,MenuListProps:{autoFocusItem:y}},d),c.map(((e,n)=>t().createElement(p,{item:e,key:n,onMenuClose:w})))))}Hi.displayName="DropDownMenuButton";const qi=Hi;function Vi(){return Vi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vi.apply(this,arguments)}const Yi={XXS:"XXS",XS:"XS",S:"S",M:"M",MPlus:"MPlus",L:"L",XL:"XL"},Ki=(0,e.forwardRef)(((e,n)=>{const{classes:r,className:o,onClick:i,icon:a,size:s=Yi.XS,iconClassName:u}=e,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["classes","className","onClick","icon","size","iconClassName"]);return t().createElement(N(),Vi({ref:n,classes:{root:`${r[`root${s}`]} ${r.rootAll}`,disabled:r.disabled},onClick:i,className:o},c),a&&t().createElement(a,{classes:{root:r[`icon${s}`]},className:u}))}));Ki.displayName="SmallIconButton";const $i=Ii((0,r.withStyles)((()=>({rootAll:{padding:"0"},rootXXS:{height:"16px",width:"16px"},iconXXS:{fontSize:"16px"},rootXS:{height:"20px",width:"20px"},iconXS:{fontSize:"20px"},rootS:{height:"24px",width:"24px"},iconS:{fontSize:"24px"},rootM:{height:"30px",width:"30px"},rootMPlus:{height:"36px",width:"36px"},rootL:{height:"40px",width:"40px"},rootXL:{height:"48px",width:"48px"},disabled:{fillOpacity:.5}})))(Ki)),Zi=t().createContext({});Zi.displayName="EntitiesMapContext";const Xi=t().createContext(null);Xi.displayName="ViewIdContext";const Qi=(0,e.forwardRef)(((r,o)=>{let{value:i,children:a,className:s}=r;const u=(0,n.useDispatch)(),c=(0,e.useContext)(Xi),l=(0,n.useSelector)(v().selectors.getUIPath),d=(0,e.useCallback)((()=>{u(m.ui.actions.openEntity({uri:i,viewId:c}))}),[c,i,u]);return t().createElement("a",{ref:o,href:(f=i,(0,Go.getEntityLink)({uiPath:l,uri:f})),onClick:e=>{d(),e.stopPropagation(),e.preventDefault()},className:s},a);var f}));Qi.displayName="EntityUriLink";const Ji=Qi,ea=(e,t)=>{const n=e.relatedObjectUris.indexOf(t);if(n>=0)return e.relatedObjectUris[1-n]},ta=e=>`${l().date(e,"LT")} ${l().date(e,"LL")}`,na=(0,r.makeStyles)((e=>({title:{marginBottom:"10px",color:e.palette.divider,fontSize:"12px",lineHeight:"14px"},label:{paddingLeft:"9px",borderLeft:"1px solid #D8D8D8",fontSize:"13px",color:e.palette.text.primary,lineHeight:"15px"},link:{color:e.palette.primary.main,textDecoration:"none"}}))),ra=r=>{let{comment:o,className:i}=r;const a=na(),u=(0,n.useSelector)(v().selectors.getEntity),c=(0,n.useSelector)(v().selectors.getMetadata),d=(0,e.useContext)(Zi);return t().createElement(ki(),{className:i},(()=>{switch(o.objectType){case Go.CollaborationObjectTypes.ENTITY_ATTRIBUTE:{const e=(0,Go.getAttributeTypeUriByValueUri)(o.objectId,u.type),n=(0,Go.findAttributeTypeByUri)(c,e);return t().createElement(t().Fragment,null,t().createElement(D(),{className:a.title},l().text("Selected attribute:")),t().createElement(D(),{className:a.label},null==n?void 0:n.label))}case Go.CollaborationObjectTypes.ENTITY:return t().createElement(t().Fragment,null,t().createElement(D(),{className:a.title},l().text("Selected profile:")),t().createElement(Ji,{className:s()(a.label,a.link),value:(0,Go.getEntityUriForLink)(u)},(0,Go.getLabel)(u.label)));case Go.CollaborationObjectTypes.RELATION:{var e;const n=ea(o,u.uri),r={uri:n,label:null===(e=d[n])||void 0===e?void 0:e.label};return t().createElement(t().Fragment,null,t().createElement(D(),{className:a.title},l().text("Selected relation:")),t().createElement(D(),{className:a.label},t().createElement(Ji,{className:a.link,value:(0,Go.getEntityUriForLink)(u)},(0,Go.getLabel)(u.label)),n&&t().createElement(t().Fragment,null,` ${l().text("to")} `,t().createElement(Ji,{className:a.link,value:(0,Go.getEntityUriForLink)(r)},r.label?(0,Go.getLabel)(r.label):(0,Go.getEntityId)(r)))))}case Go.CollaborationObjectTypes.POTENTIAL_MATCH:{var n;const e=ea(o,u.uri),r={uri:e,label:null===(n=d[e])||void 0===n?void 0:n.label};return t().createElement(t().Fragment,null,t().createElement(D(),{className:a.title},l().text("Selected potential match:")),t().createElement(D(),{className:a.label},t().createElement(Ji,{className:a.link,value:(0,Go.getEntityUriForLink)(u)},(0,Go.getLabel)(u.label)),e&&t().createElement(t().Fragment,null,` ${l().text("and")} `,t().createElement(Ji,{className:a.link,value:(0,Go.getEntityUriForLink)(r)},r.label?(0,Go.getLabel)(r.label):(0,Go.getEntityId)(r)))))}default:return null}})())},oa=t().createContext([]);oa.displayName="UsersContext";const ia=(0,r.makeStyles)((e=>({root:{color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px",wordBreak:"break-word"}}))),aa=n=>{let{comment:r,className:o}=n;const i=ia(),a=(0,e.useContext)(oa);return t().createElement(D(),{className:s()(i.root,o)},function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"+";const o=[];let i="",a=!1;for(let s=0;s<=e.length;s++){const u=e[s],c=e[s+1],l=s===e.length-1;i+=u,u===r&&0===s&&(a=!0),a&&t.includes(i.slice(r.length))&&(a=!1,o.push(n(i)),i=""),c===r&&(a=!0,o.push(i),i=""),l&&o.push(i)}return o}(r.content,r.namedUsers,(e=>{const n=a.find((t=>t.username===e.slice(1)));return n?t().createElement(Li(),{href:`mailto:${n.email}`},e):e})).map(((n,r)=>t().createElement(e.Fragment,{key:r},n))))},sa=(0,r.makeStyles)((e=>({root:{width:"32px",height:"32px",fontSize:"12px",color:e.palette.text.secondary,backgroundColor:"rgba(144, 164, 174, 0.2)"}})));function ua(){return ua=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ua.apply(this,arguments)}const ca=e=>{let{className:n,children:r}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","children"]);const i=sa();return t().createElement(Zo(),ua({},o,{className:s()(i.root,n)}),r.split(".").map((e=>e[0].toUpperCase())).join(""))},la=(0,r.makeStyles)((e=>({header:{display:"flex"},avatar:{marginRight:"8px"},username:{marginBottom:"1px",color:e.palette.text.primary,fontSize:"13px",fontWeight:500,lineHeight:"15px"},createdAt:{marginTop:"3px",marginRight:"4px",color:e.palette.text.secondary,fontSize:"11px",lineHeight:"13px",whiteSpace:"nowrap"},body:{marginLeft:"40px"},commentTarget:{marginTop:"-15px"},message:{marginTop:"12px"},dropdownMenu:{zIndex:"3000 !important"},buttons:{marginTop:"15px",marginBottom:"12px",display:"flex","& $button + $button":{marginLeft:"10px"}},button:{fontSize:"13px",lineHeight:"15px"}}))),da=r=>{let{onReply:o,className:i,uri:a,comment:s,onStartEditing:u}=r;const c=la(),d=(0,n.useSelector)(v().selectors.getUserName),f=s.createdBy===d,{resolveThread:h,reOpenThread:p,sending:g,deleteComment:m}=(0,e.useContext)(mi),y=(0,e.useMemo)((()=>[{text:l().text("Edit"),onClick:u},{text:l().text("Delete"),onClick:()=>m({uri:a,commentId:s.commentId})}]),[u,m,a,s]);return t().createElement(ki(),{className:i},t().createElement(ki(),{className:c.header},t().createElement(ca,{classes:{root:c.avatar}},s.createdBy),t().createElement(ki(),{width:"100%"},t().createElement(D(),{className:c.username},s.createdBy)),t().createElement(D(),{className:c.createdAt},ta(s.createdTime)),f&&t().createElement(qi,{buttonComponent:$i,buttonProps:{icon:Ti.Z,tooltipTitle:l().text("Open menu")},popoverProps:{PopoverClasses:{root:c.dropdownMenu}},menuItems:y,menuId:"collaboration-comment-menu"})),t().createElement(ki(),{className:c.body},t().createElement(ra,{comment:s,className:c.commentTarget}),t().createElement(aa,{comment:s,className:c.message}),t().createElement(ki(),{className:c.buttons},t().createElement(Li(),{className:c.button,onClick:o,component:"button"},l().text("Reply")),"open"===s.status&&t().createElement(Li(),{disabled:g,className:c.button,onClick:()=>{h({commentId:s.commentId,uri:a})},component:"button"},l().text("Resolve")),"resolved"===s.status&&t().createElement(Li(),{disabled:g,className:c.button,onClick:()=>{p({commentId:s.commentId,uri:a})},component:"button"},l().text("Re-open")))))},fa=(0,r.makeStyles)((e=>({root:{display:"flex",padding:"8px",borderRadius:"4px",backgroundColor:"rgba(0,114,206,0.06)"},avatar:{marginRight:"8px"},header:{display:"flex",marginBottom:"8px"},username:{color:e.palette.text.primary,fontSize:"13px",fontWeight:500,lineHeight:"15px"},message:{marginBottom:"8px",color:e.palette.text.primary,fontSize:"13px",lineHeight:"15px"},createdAt:{color:e.palette.text.secondary,fontSize:"11px",lineHeight:"13px",whiteSpace:"nowrap"},marked:{marginLeft:"8px",color:e.palette.text.secondary,fontSize:"13px",fontStyle:"italic",lineHeight:"15px"}}))),ha=e=>{let{className:n,reply:r}=e;const{createdBy:o,action:i,createdTime:a}=r,u=fa();return t().createElement(ki(),{className:s()(u.root,n)},t().createElement(ca,{classes:{root:u.avatar}},o),t().createElement(ki(),null,t().createElement(ki(),{className:u.header},t().createElement(D(),{className:u.username},o),"resolve"===i&&t().createElement(D(),{className:u.marked},l().text("Marked as resolved")),"reopen"===i&&t().createElement(D(),{className:u.marked},l().text("Re-opened"))),"resolve"!==i&&t().createElement(aa,{className:u.message,comment:r}),t().createElement(D(),{className:u.createdAt},ta(a))))};function pa(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ga(){return ga=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ga.apply(this,arguments)}function ma(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function va(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ya(e,t,n){return t&&va(e.prototype,t),n&&va(e,n),e}function ba(e){return ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ba(e)}function wa(e){return wa="function"==typeof Symbol&&"symbol"===ba(Symbol.iterator)?function(e){return ba(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":ba(e)},wa(e)}function Ea(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xa(e,t){return!t||"object"!==wa(t)&&"function"!=typeof t?Ea(e):t}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_a(e)}function Ca(e,t){return Ca=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ca(e,t)}function Sa(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ca(e,t)}function Aa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ka=f(7677),Oa=f.n(ka);var Da=f(1260),La=f.n(Da),Ta=f(5182),Ma=f.n(Ta),Pa=function(e){return e===Object(e)?Object.keys(e):[]},Fa=function(e){return e===Object(e)?Object.values(e):[]};function Na(e,t){var n=Object.assign({},e);return Ia(e)&&Ia(t)&&Pa(t).forEach((function(r){Ia(t[r])&&r in e?n[r]=Na(e[r],t[r]):Object.assign(n,La()({},r,t[r]))})),n}var ja=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(e,t){return Na(e,t)}),e)},Ra=function(e,t){var n=Object.assign({},e);if(t)for(var r=0;r<t.length;r++)delete n[t[r]];return n},Ia=function(e){return!(e!==Object(e)||e instanceof Date||Array.isArray(e))},Ba=function(e){return(e||[]).filter(Boolean)},Ga=function(e){return"&"===e[0]},za=function(e){return!Ga(e)},Ua=function(e){return e.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))},Wa=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Pa(e),r={},o=0,i=n.length;o<i;o+=1){var a=n[o],s="[object Object]"!==Object.prototype.toString.call(e[a])||":"===a[0]||"@"===a[0]||t.indexOf(a)>=0;s&&(r[a]=e[a])}return r},Ha=function(e,t){for(var n=t.map(Ua),r=Pa(e),o={},i=0,a=r.length;i<a;i+=1){var s=r[i];(t.indexOf(s)>=0||n.indexOf(Ua(s))>=0)&&(o[s]=e[s])}return o},qa=function e(t,n){for(var r=ja.apply(void 0,[{},Ra(t,n)].concat(Ma()(Fa(Ha(t,n))))),o=Pa(r).filter(Ga),i=0,a=o.length;i<a;i+=1){var s=o[i],u=e(r[s],n);n.indexOf(s)>=0?(delete r[s],r=ja({},r,u)):r[s]=u}return r};function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Va(Object(n),!0).forEach((function(t){La()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ka=["animationName"];const $a=function(e){var t=e.style,n=e.className;return Ya(Ya({},t?{style:Wa(t,Ka)}:{}),n?{className:n}:{})};var Za=(0,e.createContext)($a);Za.Provider;const Xa=function(e){if(!e)return[];if("string"==typeof e)return[e];if(!Array.isArray(e)){var t=e;return Pa(e).reduce((function(e,n){return e.concat(t[n]?[n]:[])}),[])}return e};var Qa={};const Ja=function(e){return function(t,n){var r,o=n||Qa;e.memoize=e.memoize||new WeakMap,e.memoize.has(o)?r=e.memoize.get(o):(r={},e.memoize.set(o,r));var i=Xa(t).join(" ");return i in r?r[i]:r[i]=e(t||[],n)}};function es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ts(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?es(Object(n),!0).forEach((function(t){La()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):es(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ns=function(e){var t=e&&Pa(e)[0];return t&&t.split("__")[0].split("--")[0]},rs=function(e,t,n){if(e){var r=e.split(" ")[0],o=[].concat(Ma()(0===t.length?n.map((function(e){return"".concat(r,"--").concat(e.substring(1))})):[]),Ma()(t.map((function(e){return"".concat(r,"__").concat(e)}))));return 0===t.length?[e].concat(Ma()(o)):o}};const os=function e(t){var n=t.style,r=t.className,o=t.classNames,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$a,a=r||ns(o)||(null==n?void 0:n.className),s="function"==typeof n?n:Ja((function(t,r){var s=Xa(t);Oa()(Array.isArray(s),"First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."),Oa()(!r||Ia(r),"Optional second parameter must be a plain object.");var u=s.filter(Ga),c=s.filter(za),l=c.length>0?function(e){return Fa(Ha(e,c))}:function(e){return[e]},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l(qa(e,u))},f=rs(a,c,u);return e(ts(ts(ts({},(n||r)&&{style:ja.apply(void 0,[{}].concat(Ma()(d(r)),Ma()(d(n))))}),f&&{className:f.join(" ")}),o&&{classNames:o}),i)})),u=ts({},"function"==typeof n?n:{style:n}),c=Ma()(new Set([].concat(Ma()(u.className?u.className.split(" "):[]),Ma()(a?a.split(" "):[])))),l=o?Ba(c.map((function(e){return o[e]}))):c,d=i(ts(ts({},u),l.length>0?{className:l.join(" ")}:{}));return Object.assign(s,d),s},is=function(t,n,r){var o=n.style,i=n.className,a=n.classNames,s=(0,e.useContext)(Za);return(0,e.useMemo)((function(){return os({style:o,className:i,classNames:a},s)}),[o,i,a,s])(r,t)};function as(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?as(Object(n),!0).forEach((function(t){La()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):as(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var us=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},cs="__id__",ls="__display__",ds=function(e,t){Oa()("id"===t||"display"===t,'Second arg must be either "id" or "display", got: "'.concat(t,'"'));var n=e.indexOf(ls),r=e.indexOf(cs);return n<0&&(n=null),r<0&&(r=null),Oa()(null!==n||null!==r,"The markup '".concat(e,"' does not contain either of the placeholders '__id__' or '__display__'")),null!==n&&null!==r?"id"===t&&r<=n||"display"===t&&n<=r?0:1:0},fs=function(e){var t=/^\/(.+)\/(\w+)?$/;return new RegExp(e.map((function(e){var n,r,o=(n=t.exec(e.toString()),r=3,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),i=o[1],a=o[2];return Oa()(!a,"RegExp flags are not supported. Change /".concat(i,"/").concat(a," into /").concat(i,"/")),"(".concat(i,")")})).join("|"),"g")},hs=function(e){var t=0;return e.indexOf("__id__")>=0&&t++,e.indexOf("__display__")>=0&&t++,t},ps=function(){},gs=function(e,t,n){for(var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ps,i=fs(t.map((function(e){return e.regex}))),a=2,s=t.map((function(e){var t=e.markup,n=a;return a+=hs(t)+1,n})),u=0,c=0;null!==(r=i.exec(e));){var l=s.find((function(e){return!!r[e]})),d=s.indexOf(l),f=t[d],h=f.markup,p=f.displayTransform,g=l+ds(h,"id"),m=l+ds(h,"display"),v=r[g],y=p(v,r[m]),b=e.substring(u,r.index);o(b,u,c),c+=b.length,n(r[0],r.index,c,v,y,d,u),c+=y.length,u=i.lastIndex}u<e.length&&o(e.substring(u),u,c)},ms=function(e,t){var n="";return gs(e,t,(function(e,t,r,o,i){n+=i}),(function(e){n+=e})),n},vs=function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"START";if("number"!=typeof n)return n;var i=function(e,t,o){void 0===r&&o+e.length>=n&&(r=t+n-o)},a=function(e,t,i,a,s,u,c){void 0===r&&i+s.length>n&&(r="NULL"===o?null:t+("END"===o?e.length:0))};return gs(e,t,a,i),void 0===r?e.length:r},ys=function(e,t,n,r){return e.substring(0,t)+r+e.substring(n)},bs=function(e,t){var n=[];return gs(e,t,(function(e,t,r,o,i,a,s){n.push({id:o,display:i,childIndex:a,index:t,plainTextIndex:r})})),n},ws=function(e,t){return"".concat(e,"-").concat(t)},Es=function(e){return Object.values(e).reduce((function(e,t){return e+t.results.length}),0)},xs=function(e){var t=us(e),n=e[e.indexOf(ls)+ls.length],r=e[e.indexOf(cs)+cs.length];return new RegExp(t.replace(ls,"([^".concat(us(n||""),"]+?)")).replace(cs,"([^".concat(us(r||""),"]+?)")))},_s=function(t){return e.Children.toArray(t).map((function(e){var t=e.props,n=t.markup,r=t.regex,o=t.displayTransform;return{markup:n,regex:r?Cs(r,n):xs(n),displayTransform:o||function(e,t){return t||e}}}))},Cs=function(e,t){var n=new RegExp(e.toString()+"|").exec("").length-1,r=hs(t);return Oa()(n===r,"Number of capturing groups in RegExp ".concat(e.toString()," (").concat(n,") does not match the number of placeholders in the markup '").concat(t,"' (").concat(r,")")),e},Ss=[{base:"A",letters:/(&#65;|&#9398;|&#65313;|&#192;|&#193;|&#194;|&#7846;|&#7844;|&#7850;|&#7848;|&#195;|&#256;|&#258;|&#7856;|&#7854;|&#7860;|&#7858;|&#550;|&#480;|&#196;|&#478;|&#7842;|&#197;|&#506;|&#461;|&#512;|&#514;|&#7840;|&#7852;|&#7862;|&#7680;|&#260;|&#570;|&#11375;|[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F])/g},{base:"AA",letters:/(&#42802;|[\uA732])/g},{base:"AE",letters:/(&#198;|&#508;|&#482;|[\u00C6\u01FC\u01E2])/g},{base:"AO",letters:/(&#42804;|[\uA734])/g},{base:"AU",letters:/(&#42806;|[\uA736])/g},{base:"AV",letters:/(&#42808;|&#42810;|[\uA738\uA73A])/g},{base:"AY",letters:/(&#42812;|[\uA73C])/g},{base:"B",letters:/(&#66;|&#9399;|&#65314;|&#7682;|&#7684;|&#7686;|&#579;|&#386;|&#385;|[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181])/g},{base:"C",letters:/(&#67;|&#9400;|&#65315;|&#262;|&#264;|&#266;|&#268;|&#199;|&#7688;|&#391;|&#571;|&#42814;|[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E])/g},{base:"D",letters:/(&#68;|&#9401;|&#65316;|&#7690;|&#270;|&#7692;|&#7696;|&#7698;|&#7694;|&#272;|&#395;|&#394;|&#393;|&#42873;|&#208;|[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0])/g},{base:"DZ",letters:/(&#497;|&#452;|[\u01F1\u01C4])/g},{base:"Dz",letters:/(&#498;|&#453;|[\u01F2\u01C5])/g},{base:"E",letters:/(&#69;|&#9402;|&#65317;|&#200;|&#201;|&#202;|&#7872;|&#7870;|&#7876;|&#7874;|&#7868;|&#274;|&#7700;|&#7702;|&#276;|&#278;|&#203;|&#7866;|&#282;|&#516;|&#518;|&#7864;|&#7878;|&#552;|&#7708;|&#280;|&#7704;|&#7706;|&#400;|&#398;|[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E])/g},{base:"F",letters:/(&#70;|&#9403;|&#65318;|&#7710;|&#401;|&#42875;|[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B])/g},{base:"G",letters:/(&#71;|&#9404;|&#65319;|&#500;|&#284;|&#7712;|&#286;|&#288;|&#486;|&#290;|&#484;|&#403;|&#42912;|&#42877;|&#42878;|[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E])/g},{base:"H",letters:/(&#72;|&#9405;|&#65320;|&#292;|&#7714;|&#7718;|&#542;|&#7716;|&#7720;|&#7722;|&#294;|&#11367;|&#11381;|&#42893;|[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D])/g},{base:"I",letters:/(&#73;|&#9406;|&#65321;|&#204;|&#205;|&#206;|&#296;|&#298;|&#300;|&#304;|&#207;|&#7726;|&#7880;|&#463;|&#520;|&#522;|&#7882;|&#302;|&#7724;|&#407;|[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197])/g},{base:"J",letters:/(&#74;|&#9407;|&#65322;|&#308;|&#584;|[\u004A\u24BF\uFF2A\u0134\u0248])/g},{base:"K",letters:/(&#75;|&#9408;|&#65323;|&#7728;|&#488;|&#7730;|&#310;|&#7732;|&#408;|&#11369;|&#42816;|&#42818;|&#42820;|&#42914;|[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2])/g},{base:"L",letters:/(&#76;|&#9409;|&#65324;|&#319;|&#313;|&#317;|&#7734;|&#7736;|&#315;|&#7740;|&#7738;|&#321;|&#573;|&#11362;|&#11360;|&#42824;|&#42822;|&#42880;|[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780])/g},{base:"LJ",letters:/(&#455;|[\u01C7])/g},{base:"Lj",letters:/(&#456;|[\u01C8])/g},{base:"M",letters:/(&#77;|&#9410;|&#65325;|&#7742;|&#7744;|&#7746;|&#11374;|&#412;|[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C])/g},{base:"N",letters:/(&#78;|&#9411;|&#65326;|&#504;|&#323;|&#209;|&#7748;|&#327;|&#7750;|&#325;|&#7754;|&#7752;|&#544;|&#413;|&#42896;|&#42916;|&#330;|[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u014A])/g},{base:"NJ",letters:/(&#458;|[\u01CA])/g},{base:"Nj",letters:/(&#459;|[\u01CB])/g},{base:"O",letters:/(&#79;|&#9412;|&#65327;|&#210;|&#211;|&#212;|&#7890;|&#7888;|&#7894;|&#7892;|&#213;|&#7756;|&#556;|&#7758;|&#332;|&#7760;|&#7762;|&#334;|&#558;|&#560;|&#214;|&#554;|&#7886;|&#336;|&#465;|&#524;|&#526;|&#416;|&#7900;|&#7898;|&#7904;|&#7902;|&#7906;|&#7884;|&#7896;|&#490;|&#492;|&#216;|&#510;|&#390;|&#415;|&#42826;|&#42828;|[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C])/g},{base:"OE",letters:/(&#338;|[\u0152])/g},{base:"OI",letters:/(&#418;|[\u01A2])/g},{base:"OO",letters:/(&#42830;|[\uA74E])/g},{base:"OU",letters:/(&#546;|[\u0222])/g},{base:"P",letters:/(&#80;|&#9413;|&#65328;|&#7764;|&#7766;|&#420;|&#11363;|&#42832;|&#42834;|&#42836;|[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754])/g},{base:"Q",letters:/(&#81;|&#9414;|&#65329;|&#42838;|&#42840;|&#586;|[\u0051\u24C6\uFF31\uA756\uA758\u024A])/g},{base:"R",letters:/(&#82;|&#9415;|&#65330;|&#340;|&#7768;|&#344;|&#528;|&#530;|&#7770;|&#7772;|&#342;|&#7774;|&#588;|&#11364;|&#42842;|&#42918;|&#42882;|[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782])/g},{base:"S",letters:/(&#83;|&#9416;|&#65331;|&#7838;|&#346;|&#7780;|&#348;|&#7776;|&#352;|&#7782;|&#7778;|&#7784;|&#536;|&#350;|&#11390;|&#42920;|&#42884;|[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784])/g},{base:"T",letters:/(&#84;|&#9417;|&#65332;|&#7786;|&#356;|&#7788;|&#538;|&#354;|&#7792;|&#7790;|&#358;|&#428;|&#430;|&#574;|&#42886;|[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786])/g},{base:"TH",letters:/(&#222;|[\u00DE])/g},{base:"TZ",letters:/(&#42792;|[\uA728])/g},{base:"U",letters:/(&#85;|&#9418;|&#65333;|&#217;|&#218;|&#219;|&#360;|&#7800;|&#362;|&#7802;|&#364;|&#220;|&#475;|&#471;|&#469;|&#473;|&#7910;|&#366;|&#368;|&#467;|&#532;|&#534;|&#431;|&#7914;|&#7912;|&#7918;|&#7916;|&#7920;|&#7908;|&#7794;|&#370;|&#7798;|&#7796;|&#580;|[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244])/g},{base:"V",letters:/(&#86;|&#9419;|&#65334;|&#7804;|&#7806;|&#434;|&#42846;|&#581;|[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245])/g},{base:"VY",letters:/(&#42848;|[\uA760])/g},{base:"W",letters:/(&#87;|&#9420;|&#65335;|&#7808;|&#7810;|&#372;|&#7814;|&#7812;|&#7816;|&#11378;|[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72])/g},{base:"X",letters:/(&#88;|&#9421;|&#65336;|&#7818;|&#7820;|[\u0058\u24CD\uFF38\u1E8A\u1E8C])/g},{base:"Y",letters:/(&#89;|&#9422;|&#65337;|&#7922;|&#221;|&#374;|&#7928;|&#562;|&#7822;|&#376;|&#7926;|&#7924;|&#435;|&#590;|&#7934;|[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE])/g},{base:"Z",letters:/(&#90;|&#9423;|&#65338;|&#377;|&#7824;|&#379;|&#381;|&#7826;|&#7828;|&#437;|&#548;|&#11391;|&#11371;|&#42850;|[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762])/g},{base:"a",letters:/(&#97;|&#9424;|&#65345;|&#7834;|&#224;|&#225;|&#226;|&#7847;|&#7845;|&#7851;|&#7849;|&#227;|&#257;|&#259;|&#7857;|&#7855;|&#7861;|&#7859;|&#551;|&#481;|&#228;|&#479;|&#7843;|&#229;|&#507;|&#462;|&#513;|&#515;|&#7841;|&#7853;|&#7863;|&#7681;|&#261;|&#11365;|&#592;|[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250])/g},{base:"aa",letters:/(&#42803;|[\uA733])/g},{base:"ae",letters:/(&#230;|&#509;|&#483;|[\u00E6\u01FD\u01E3])/g},{base:"ao",letters:/(&#42805;|[\uA735])/g},{base:"au",letters:/(&#42807;|[\uA737])/g},{base:"av",letters:/(&#42809;|&#42811;|[\uA739\uA73B])/g},{base:"ay",letters:/(&#42813;|[\uA73D])/g},{base:"b",letters:/(&#98;|&#9425;|&#65346;|&#7683;|&#7685;|&#7687;|&#384;|&#387;|&#595;|[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253])/g},{base:"c",letters:/(&#99;|&#9426;|&#65347;|&#263;|&#265;|&#267;|&#269;|&#231;|&#7689;|&#392;|&#572;|&#42815;|&#8580;|[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184])/g},{base:"d",letters:/(&#100;|&#9427;|&#65348;|&#7691;|&#271;|&#7693;|&#7697;|&#7699;|&#7695;|&#273;|&#396;|&#598;|&#599;|&#42874;|&#240;|[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u00F0])/g},{base:"dz",letters:/(&#499;|&#454;|[\u01F3\u01C6])/g},{base:"e",letters:/(&#101;|&#9428;|&#65349;|&#232;|&#233;|&#234;|&#7873;|&#7871;|&#7877;|&#7875;|&#7869;|&#275;|&#7701;|&#7703;|&#277;|&#279;|&#235;|&#7867;|&#283;|&#517;|&#519;|&#7865;|&#7879;|&#553;|&#7709;|&#281;|&#7705;|&#7707;|&#583;|&#603;|&#477;|[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD])/g},{base:"f",letters:/(&#102;|&#9429;|&#65350;|&#7711;|&#402;|&#42876;|[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C])/g},{base:"g",letters:/(&#103;|&#9430;|&#65351;|&#501;|&#285;|&#7713;|&#287;|&#289;|&#487;|&#291;|&#485;|&#608;|&#42913;|&#7545;|&#42879;|[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F])/g},{base:"h",letters:/(&#104;|&#9431;|&#65352;|&#293;|&#7715;|&#7719;|&#543;|&#7717;|&#7721;|&#7723;|&#7830;|&#295;|&#11368;|&#11382;|&#613;|[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265])/g},{base:"hv",letters:/(&#405;|[\u0195])/g},{base:"i",letters:/(&#105;|&#9432;|&#65353;|&#236;|&#237;|&#238;|&#297;|&#299;|&#301;|&#239;|&#7727;|&#7881;|&#464;|&#521;|&#523;|&#7883;|&#303;|&#7725;|&#616;|&#305;|[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131])/g},{base:"ij",letters:/(&#307;|[\u0133])/g},{base:"j",letters:/(&#106;|&#9433;|&#65354;|&#309;|&#496;|&#585;|[\u006A\u24D9\uFF4A\u0135\u01F0\u0249])/g},{base:"k",letters:/(&#107;|&#9434;|&#65355;|&#7729;|&#489;|&#7731;|&#311;|&#7733;|&#409;|&#11370;|&#42817;|&#42819;|&#42821;|&#42915;|[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3])/g},{base:"l",letters:/(&#108;|&#9435;|&#65356;|&#320;|&#314;|&#318;|&#7735;|&#7737;|&#316;|&#7741;|&#7739;|&#322;|&#410;|&#619;|&#11361;|&#42825;|&#42881;|&#42823;|[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u0142\u019A\u026B\u2C61\uA749\uA781\uA747])/g},{base:"lj",letters:/(&#457;|[\u01C9])/g},{base:"m",letters:/(&#109;|&#9436;|&#65357;|&#7743;|&#7745;|&#7747;|&#625;|&#623;|[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F])/g},{base:"n",letters:/(&#110;|&#9437;|&#65358;|&#505;|&#324;|&#241;|&#7749;|&#328;|&#7751;|&#326;|&#7755;|&#7753;|&#414;|&#626;|&#329;|&#42897;|&#42917;|&#331;|[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u014B])/g},{base:"nj",letters:/(&#460;|[\u01CC])/g},{base:"o",letters:/(&#111;|&#9438;|&#65359;|&#242;|&#243;|&#244;|&#7891;|&#7889;|&#7895;|&#7893;|&#245;|&#7757;|&#557;|&#7759;|&#333;|&#7761;|&#7763;|&#335;|&#559;|&#561;|&#246;|&#555;|&#7887;|&#337;|&#466;|&#525;|&#527;|&#417;|&#7901;|&#7899;|&#7905;|&#7903;|&#7907;|&#7885;|&#7897;|&#491;|&#493;|&#248;|&#511;|&#596;|&#42827;|&#42829;|&#629;|[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275])/g},{base:"oe",letters:/(&#339;|[\u0153])/g},{base:"oi",letters:/(&#419;|[\u01A3])/g},{base:"ou",letters:/(&#547;|[\u0223])/g},{base:"oo",letters:/(&#42831;|[\uA74F])/g},{base:"p",letters:/(&#112;|&#9439;|&#65360;|&#7765;|&#7767;|&#421;|&#7549;|&#42833;|&#42835;|&#42837;|[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755])/g},{base:"q",letters:/(&#113;|&#9440;|&#65361;|&#587;|&#42839;|&#42841;|[\u0071\u24E0\uFF51\u024B\uA757\uA759])/g},{base:"r",letters:/(&#114;|&#9441;|&#65362;|&#341;|&#7769;|&#345;|&#529;|&#531;|&#7771;|&#7773;|&#343;|&#7775;|&#589;|&#637;|&#42843;|&#42919;|&#42883;|[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783])/g},{base:"s",letters:/(&#115;|&#9442;|&#65363;|&#347;|&#7781;|&#349;|&#7777;|&#353;|&#7783;|&#7779;|&#7785;|&#537;|&#351;|&#575;|&#42921;|&#42885;|&#7835;|&#383;|[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u017F])/g},{base:"ss",letters:/(&#223;|[\u00DF])/g},{base:"t",letters:/(&#116;|&#9443;|&#65364;|&#7787;|&#7831;|&#357;|&#7789;|&#539;|&#355;|&#7793;|&#7791;|&#359;|&#429;|&#648;|&#11366;|&#42887;|[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787])/g},{base:"th",letters:/(&#254;|[\u00FE])/g},{base:"tz",letters:/(&#42793;|[\uA729])/g},{base:"u",letters:/(&#117;|&#9444;|&#65365;|&#249;|&#250;|&#251;|&#361;|&#7801;|&#363;|&#7803;|&#365;|&#252;|&#476;|&#472;|&#470;|&#474;|&#7911;|&#367;|&#369;|&#468;|&#533;|&#535;|&#432;|&#7915;|&#7913;|&#7919;|&#7917;|&#7921;|&#7909;|&#7795;|&#371;|&#7799;|&#7797;|&#649;|[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289])/g},{base:"v",letters:/(&#118;|&#9445;|&#65366;|&#7805;|&#7807;|&#651;|&#42847;|&#652;|[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C])/g},{base:"vy",letters:/(&#42849;|[\uA761])/g},{base:"w",letters:/(&#119;|&#9446;|&#65367;|&#7809;|&#7811;|&#373;|&#7815;|&#7813;|&#7832;|&#7817;|&#11379;|[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73])/g},{base:"x",letters:/(&#120;|&#9447;|&#65368;|&#7819;|&#7821;|[\u0078\u24E7\uFF58\u1E8B\u1E8D])/g},{base:"y",letters:/(&#121;|&#9448;|&#65369;|&#7923;|&#253;|&#375;|&#7929;|&#563;|&#7823;|&#255;|&#7927;|&#7833;|&#7925;|&#436;|&#591;|&#7935;|[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF])/g},{base:"z",letters:/(&#122;|&#9449;|&#65370;|&#378;|&#7825;|&#380;|&#382;|&#7827;|&#7829;|&#438;|&#549;|&#576;|&#11372;|&#42851;|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g}],As=function(e){return function(e){var t=e;return Ss.forEach((function(e){t=t.replace(e.letters,e.base)})),t}(e).toLowerCase()},ks=function(e,t,n){return n?As(e).indexOf(As(t)):e.toLowerCase().indexOf(t.toLowerCase())},Os=function(e){return"number"==typeof e},Ds=function(e){return e===Object(e)?Object.keys(e):[]},Ls=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=(t=[]).concat.apply(t,r);return Object.keys(e).reduce((function(t,n){return e.hasOwnProperty(n)&&!i.includes(n)&&void 0!==e[n]&&(t[n]=e[n]),t}),{})};function Ts(e,n){return function(r){var o=function(o){var i=o.style,a=o.className,s=o.classNames,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(o,["style","className","classNames"]),c=n?n(u):void 0,l=is(e,{style:i,className:a,classNames:s},c);return t().createElement(r,ga({},u,{style:l}))},i=r.displayName||r.name||"Component";return o.displayName="defaultStyle(".concat(i,")"),o}}var Ms=function(n){function r(){var e;return ma(this,r),Aa(Ea(e=xa(this,_a(r).apply(this,arguments))),"setCaretElement",(function(t){e.caretElement=t})),e.state={left:void 0,top:void 0},e}return Sa(r,n),ya(r,[{key:"componentDidMount",value:function(){this.notifyCaretPosition()}},{key:"componentDidUpdate",value:function(){this.notifyCaretPosition()}},{key:"notifyCaretPosition",value:function(){if(this.caretElement){var e=this.caretElement,t=e.offsetLeft,n=e.offsetTop;if(this.state.left!==t||this.state.top!==n){var r={left:t,top:n};this.setState(r),this.props.onCaretPositionChange(r)}}}},{key:"render",value:function(){var e,n=this,r=this.props,o=r.selectionStart,i=r.selectionEnd,a=r.value,s=r.style,u=r.children,c=r.containerRef,l=_s(u);o===i&&(e=vs(a,l,o,"START"));var d=[],f={},h=d,p=0;return gs(a,l,(function(e,t,r,o,i,a,s){var u=function(e,t){return e.hasOwnProperty(t)?e[t]++:e[t]=0,t+"_"+e[t]}(f,o);h.push(n.getMentionComponentForMatch(o,i,a,u))}),(function(t,r,o){if(Os(e)&&e>=r&&e<=r+t.length){var i=e-r;h.push(n.renderSubstring(t.substring(0,i),p)),h=[n.renderSubstring(t.substring(i),p)]}else h.push(n.renderSubstring(t,p));p++})),h.push(" "),h!==d&&d.push(this.renderHighlighterCaret(h)),t().createElement("div",ga({},s,{ref:c}),d)}},{key:"renderSubstring",value:function(e,n){return t().createElement("span",ga({},this.props.style("substring"),{key:n}),e)}},{key:"getMentionComponentForMatch",value:function(n,r,o,i){var a={id:n,display:r,key:i},s=e.Children.toArray(this.props.children)[o];return t().cloneElement(s,a)}},{key:"renderHighlighterCaret",value:function(e){return t().createElement("span",ga({},this.props.style("caret"),{ref:this.setCaretElement,key:"caret"}),e)}}]),r}(e.Component);Aa(Ms,"propTypes",{selectionStart:i().number,selectionEnd:i().number,value:i().string.isRequired,onCaretPositionChange:i().func.isRequired,containerRef:i().oneOfType([i().func,i().shape({current:"undefined"==typeof Element?i().any:i().instanceOf(Element)})]),children:i().oneOfType([i().element,i().arrayOf(i().element)]).isRequired}),Aa(Ms,"defaultProps",{value:""});var Ps=Ts({position:"relative",boxSizing:"border-box",width:"100%",color:"transparent",overflow:"hidden",whiteSpace:"pre-wrap",wordWrap:"break-word",border:"1px solid transparent",textAlign:"start","&singleLine":{whiteSpace:"pre",wordWrap:null},substring:{visibility:"hidden"}},(function(e){return{"&singleLine":e.singleLine}}))(Ms),Fs=function(e){function n(){return ma(this,n),xa(this,_a(n).apply(this,arguments))}return Sa(n,e),ya(n,[{key:"render",value:function(){var e=Ls(this.props,["style","classNames","className"],Ds(n.propTypes));return t().createElement("li",ga({id:this.props.id,role:"option","aria-selected":this.props.focused},e,this.props.style),this.renderContent())}},{key:"renderContent",value:function(){var e=this.props,t=e.query,n=e.renderSuggestion,r=e.suggestion,o=e.index,i=e.focused,a=this.getDisplay(),s=this.renderHighlightedDisplay(a,t);return n?n(r,t,s,o,i):s}},{key:"getDisplay",value:function(){var e=this.props.suggestion;if("string"==typeof e)return e;var t=e.id,n=e.display;return void 0!==t&&n?n:t}},{key:"renderHighlightedDisplay",value:function(e){var n=this.props,r=n.ignoreAccents,o=n.query,i=n.style,a=ks(e,o,r);return-1===a?t().createElement("span",i("display"),e):t().createElement("span",i("display"),e.substring(0,a),t().createElement("b",i("highlight"),e.substring(a,a+o.length)),e.substring(a+o.length))}}]),n}(e.Component);Aa(Fs,"propTypes",{id:i().string.isRequired,query:i().string.isRequired,index:i().number.isRequired,ignoreAccents:i().bool,suggestion:i().oneOfType([i().string,i().shape({id:i().oneOfType([i().string,i().number]).isRequired,display:i().string})]).isRequired,renderSuggestion:i().func,focused:i().bool});var Ns=Ts({cursor:"pointer"},(function(e){return{"&focused":e.focused}}))(Fs);function js(){var e=is(),n=e("spinner");return t().createElement("div",e,t().createElement("div",n,t().createElement("div",n(["element","element1"])),t().createElement("div",n(["element","element2"])),t().createElement("div",n(["element","element3"])),t().createElement("div",n(["element","element4"])),t().createElement("div",n(["element","element5"]))))}var Rs=function(n){function r(){var e,t;ma(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return Aa(Ea(t=xa(this,(e=_a(r)).call.apply(e,[this].concat(o)))),"handleMouseEnter",(function(e,n){t.props.onMouseEnter&&t.props.onMouseEnter(e)})),Aa(Ea(t),"select",(function(e,n){t.props.onSelect(e,n)})),Aa(Ea(t),"setUlElement",(function(e){t.ulElement=e})),t}return Sa(r,n),ya(r,[{key:"componentDidUpdate",value:function(){if(this.ulElement&&!(this.ulElement.offsetHeight>=this.ulElement.scrollHeight)&&this.props.scrollFocusedIntoView){var e=this.ulElement.scrollTop,t=this.ulElement.children[this.props.focusIndex].getBoundingClientRect(),n=t.top,r=t.bottom,o=this.ulElement.getBoundingClientRect().top;r=r-o+e,(n=n-o+e)<e?this.ulElement.scrollTop=n:r>this.ulElement.offsetHeight&&(this.ulElement.scrollTop=r-this.ulElement.offsetHeight)}}},{key:"render",value:function(){var e=this.props,n=e.id,r=e.a11ySuggestionsListLabel,o=e.isOpened,i=e.style,a=e.onMouseDown,s=e.containerRef,u=e.position,c=e.left,l=e.top;return o?t().createElement("div",ga({},function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return ss(ss(ss({},e),"function"==typeof t?t:{}),{},{style:ss(ss({},e.style),"function"==typeof t?t.style:t)})}),{})}({position:u||"absolute",left:c,top:l},i),{onMouseDown:a,ref:s}),t().createElement("ul",ga({ref:this.setUlElement,id:n,role:"listbox","aria-label":r},i("list")),this.renderSuggestions()),this.renderLoadingIndicator()):null}},{key:"renderSuggestions",value:function(){var e=this;return Object.values(this.props.suggestions).reduce((function(t,n){var r=n.results,o=n.queryInfo;return[].concat(pa(t),pa(r.map((function(n,r){return e.renderSuggestion(n,o,t.length+r)}))))}),[])}},{key:"renderSuggestion",value:function(n,r,o){var i=this,a=o===this.props.focusIndex,s=r.childIndex,u=r.query,c=e.Children.toArray(this.props.children)[s].props.renderSuggestion,l=this.props.ignoreAccents;return t().createElement(Ns,{style:this.props.style("item"),key:"".concat(s,"-").concat(Is(n)),id:ws(this.props.id,o),query:u,index:o,ignoreAccents:l,renderSuggestion:c,suggestion:n,focused:a,onClick:function(){return i.select(n,r)},onMouseEnter:function(){return i.handleMouseEnter(o)}})}},{key:"renderLoadingIndicator",value:function(){if(this.props.isLoading)return t().createElement(js,{style:this.props.style("loadingIndicator")})}}]),r}(e.Component);Aa(Rs,"propTypes",{id:i().string.isRequired,suggestions:i().object.isRequired,a11ySuggestionsListLabel:i().string,focusIndex:i().number,position:i().string,left:i().number,top:i().number,scrollFocusedIntoView:i().bool,isLoading:i().bool,isOpened:i().bool.isRequired,onSelect:i().func,ignoreAccents:i().bool,containerRef:i().oneOfType([i().func,i().shape({current:"undefined"==typeof Element?i().any:i().instanceOf(Element)})]),children:i().oneOfType([i().element,i().arrayOf(i().element)]).isRequired}),Aa(Rs,"defaultProps",{suggestions:{},onSelect:function(){return null}});var Is=function(e){return"string"==typeof e?e:e.id},Bs=Ts({zIndex:1,backgroundColor:"white",marginTop:14,minWidth:100,list:{margin:0,padding:0,listStyleType:"none"}})(Rs);function Gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gs(n,!0).forEach((function(t){Aa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gs(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Us={TAB:9,RETURN:13,ESC:27,UP:38,DOWN:40},Ws=!1,Hs={singleLine:i().bool,allowSpaceInQuery:i().bool,allowSuggestionsAboveCursor:i().bool,forceSuggestionsAboveCursor:i().bool,ignoreAccents:i().bool,a11ySuggestionsListLabel:i().string,value:i().string,onKeyDown:i().func,onSelect:i().func,onBlur:i().func,onChange:i().func,suggestionsPortalHost:"undefined"==typeof Element?i().any:i().PropTypes.instanceOf(Element),inputRef:i().oneOfType([i().func,i().shape({current:"undefined"==typeof Element?i().any:i().instanceOf(Element)})]),children:i().oneOfType([i().element,i().arrayOf(i().element)]).isRequired},qs=function(n){function r(n){var o;return ma(this,r),Aa(Ea(o=xa(this,_a(r).call(this,n))),"setContainerElement",(function(e){o.containerElement=e})),Aa(Ea(o),"getInputProps",(function(){var e=o.props,t=e.readOnly,n=e.disabled,r=e.style;return zs({},Ls(o.props,["style","classNames","className"],Ds(Hs)),{},r("input"),{value:o.getPlainText()},!t&&!n&&{onChange:o.handleChange,onSelect:o.handleSelect,onKeyDown:o.handleKeyDown,onBlur:o.handleBlur,onCompositionStart:o.handleCompositionStart,onCompositionEnd:o.handleCompositionEnd,onScroll:o.updateHighlighterScroll},{},o.isOpened()&&{role:"combobox","aria-controls":o.uuidSuggestionsOverlay,"aria-expanded":!0,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":ws(o.uuidSuggestionsOverlay,o.state.focusIndex)})})),Aa(Ea(o),"renderControl",(function(){var e=o.props,n=e.singleLine,r=e.style,i=o.getInputProps();return t().createElement("div",r("control"),o.renderHighlighter(),n?o.renderInput(i):o.renderTextarea(i))})),Aa(Ea(o),"renderInput",(function(e){return t().createElement("input",ga({type:"text",ref:o.setInputRef},e))})),Aa(Ea(o),"renderTextarea",(function(e){return t().createElement("textarea",ga({ref:o.setInputRef},e))})),Aa(Ea(o),"setInputRef",(function(e){o.inputElement=e;var t=o.props.inputRef;"function"==typeof t?t(e):t&&(t.current=e)})),Aa(Ea(o),"setSuggestionsElement",(function(e){o.suggestionsElement=e})),Aa(Ea(o),"renderSuggestionsOverlay",(function(){if(!Os(o.state.selectionStart))return null;var e=o.state.suggestionsPosition,n=e.position,r=e.left,i=e.top,a=t().createElement(Bs,{id:o.uuidSuggestionsOverlay,style:o.props.style("suggestions"),position:n,left:r,top:i,focusIndex:o.state.focusIndex,scrollFocusedIntoView:o.state.scrollFocusedIntoView,containerRef:o.setSuggestionsElement,suggestions:o.state.suggestions,onSelect:o.addMention,onMouseDown:o.handleSuggestionsMouseDown,onMouseEnter:o.handleSuggestionsMouseEnter,isLoading:o.isLoading(),isOpened:o.isOpened(),ignoreAccents:o.props.ignoreAccents,a11ySuggestionsListLabel:o.props.a11ySuggestionsListLabel},o.props.children);return o.props.suggestionsPortalHost?Q().createPortal(a,o.props.suggestionsPortalHost):a})),Aa(Ea(o),"renderHighlighter",(function(){var e=o.state,n=e.selectionStart,r=e.selectionEnd,i=o.props,a=i.singleLine,s=i.children,u=i.value,c=i.style;return t().createElement(Ps,{containerRef:o.setHighlighterElement,style:c("highlighter"),value:u,singleLine:a,selectionStart:n,selectionEnd:r,onCaretPositionChange:o.handleCaretPositionChange},s)})),Aa(Ea(o),"setHighlighterElement",(function(e){o.highlighterElement=e})),Aa(Ea(o),"handleCaretPositionChange",(function(e){o.setState({caretPosition:e})})),Aa(Ea(o),"getPlainText",(function(){return ms(o.props.value||"",_s(o.props.children))})),Aa(Ea(o),"executeOnChange",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,a;return o.props.onChange?(i=o.props).onChange.apply(i,[e].concat(n)):o.props.valueLink?(a=o.props.valueLink).requestChange.apply(a,[e.target.value].concat(n)):void 0})),Aa(Ea(o),"handleChange",(function(e){if(Ws=!1,!document.documentMode||(document.activeElement&&document.activeElement.contentDocument||document).activeElement===e.target){var t=o.props.value||"",n=_s(o.props.children),r=e.target.value,i=function(e,t,n,r){var o=n.selectionStartBefore,i=n.selectionEndBefore,a=n.selectionEndAfter,s=ms(e,r),u=s.length-t.length;"undefined"===o&&(o=a+u),"undefined"===i&&(i=o),o===i&&i===a&&s.length===t.length&&(o-=1);var c=t.slice(o,a),l=Math.min(o,a),d=i;o===a&&(d=Math.max(i,o+u));var f=vs(e,r,l,"START"),h=vs(e,r,d,"END"),p=vs(e,r,l,"NULL"),g=vs(e,r,d,"NULL"),m=null===p||null===g,v=ys(e,f,h,c);if(!m){var y=ms(v,r);if(y!==t){for(l=0;t[l]===y[l];)l++;c=t.slice(l,a),d=s.lastIndexOf(t.substring(a)),f=vs(e,r,l,"START"),h=vs(e,r,d,"END"),v=ys(e,f,h,c)}}return v}(t,r,{selectionStartBefore:o.state.selectionStart,selectionEndBefore:o.state.selectionEnd,selectionEndAfter:e.target.selectionEnd},n);r=ms(i,n);var a=e.target.selectionStart,s=e.target.selectionEnd,u=!1,c=function(e,t,n){var r=n,o=!1;if(gs(e,t,(function(e,t,i,a,s,u,c){i<=n&&i+s.length>n&&(r=i,o=!0)})),o)return r}(t,n,a);void 0!==c&&o.state.selectionEnd>c&&(s=a=c,u=!0),o.setState({selectionStart:a,selectionEnd:s,setSelectionAfterMentionChange:u});var l=bs(i,n),d={target:{value:i}};o.executeOnChange(d,i,r,l)}})),Aa(Ea(o),"handleSelect",(function(e){if(o.setState({selectionStart:e.target.selectionStart,selectionEnd:e.target.selectionEnd}),!Ws){var t=o.inputElement;e.target.selectionStart===e.target.selectionEnd?o.updateMentionsQueries(t.value,e.target.selectionStart):o.clearSuggestions(),o.updateHighlighterScroll(),o.props.onSelect(e)}})),Aa(Ea(o),"handleKeyDown",(function(e){if(0!==Es(o.state.suggestions)&&o.suggestionsElement)switch(Object.values(Us).indexOf(e.keyCode)>=0&&(e.preventDefault(),e.stopPropagation()),e.keyCode){case Us.ESC:return void o.clearSuggestions();case Us.DOWN:return void o.shiftFocus(1);case Us.UP:return void o.shiftFocus(-1);case Us.RETURN:case Us.TAB:return void o.selectFocused();default:return}else o.props.onKeyDown(e)})),Aa(Ea(o),"shiftFocus",(function(e){var t=Es(o.state.suggestions);o.setState({focusIndex:(t+o.state.focusIndex+e)%t,scrollFocusedIntoView:!0})})),Aa(Ea(o),"selectFocused",(function(){var e=o.state,t=e.suggestions,n=e.focusIndex,r=Object.values(t).reduce((function(e,t){var n=t.results,r=t.queryInfo;return[].concat(pa(e),pa(n.map((function(e){return{result:e,queryInfo:r}}))))}),[])[n],i=r.result,a=r.queryInfo;o.addMention(i,a),o.setState({focusIndex:0})})),Aa(Ea(o),"handleBlur",(function(e){var t=o._suggestionsMouseDown;o._suggestionsMouseDown=!1,t||o.setState({selectionStart:null,selectionEnd:null}),window.setTimeout((function(){o.updateHighlighterScroll()}),1),o.props.onBlur(e,t)})),Aa(Ea(o),"handleSuggestionsMouseDown",(function(e){o._suggestionsMouseDown=!0})),Aa(Ea(o),"handleSuggestionsMouseEnter",(function(e){o.setState({focusIndex:e,scrollFocusedIntoView:!1})})),Aa(Ea(o),"updateSuggestionsPosition",(function(){var e=o.state.caretPosition,t=o.props,n=t.suggestionsPortalHost,r=t.allowSuggestionsAboveCursor,i=t.forceSuggestionsAboveCursor;if(e&&o.suggestionsElement){var a=o.suggestionsElement,s=o.highlighterElement,u=s.getBoundingClientRect(),c=Vs(s,"font-size"),l={left:u.left+e.left,top:u.top+e.top+c},d=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(a){var f={};if(n){f.position="fixed";var h=l.left,p=l.top;h-=Vs(a,"margin-left"),p-=Vs(a,"margin-top"),h-=s.scrollLeft,p-=s.scrollTop;var g=Math.max(document.documentElement.clientWidth,window.innerWidth||0);h+a.offsetWidth>g?f.left=Math.max(0,g-a.offsetWidth):f.left=h,r&&p+a.offsetHeight>d&&a.offsetHeight<p-c||i?f.top=Math.max(0,p-a.offsetHeight-c):f.top=p}else{var m=e.left-s.scrollLeft,v=e.top-s.scrollTop;m+a.offsetWidth>o.containerElement.offsetWidth?f.right=0:f.left=m,r&&l.top-s.scrollTop+a.offsetHeight>d&&a.offsetHeight<u.top-c-s.scrollTop?f.top=v-a.offsetHeight-c:f.top=v}f.left===o.state.suggestionsPosition.left&&f.top===o.state.suggestionsPosition.top&&f.position===o.state.suggestionsPosition.position||o.setState({suggestionsPosition:f})}}})),Aa(Ea(o),"updateHighlighterScroll",(function(){var e=o.inputElement,t=o.highlighterElement;e&&t&&(t.scrollLeft=e.scrollLeft,t.scrollTop=e.scrollTop,t.height=e.height)})),Aa(Ea(o),"handleCompositionStart",(function(){Ws=!0})),Aa(Ea(o),"handleCompositionEnd",(function(){Ws=!1})),Aa(Ea(o),"setSelection",(function(e,t){if(null!==e&&null!==t){var n=o.inputElement;if(n.setSelectionRange)n.setSelectionRange(e,t);else if(n.createTextRange){var r=n.createTextRange();r.collapse(!0),r.moveEnd("character",t),r.moveStart("character",e),r.select()}}})),Aa(Ea(o),"updateMentionsQueries",(function(e,n){o._queryId++,o.suggestions={},o.setState({suggestions:{}});var r=o.props.value||"",i=o.props.children,a=_s(i),s=vs(r,a,n,"NULL");if(null!==s){var u=function(e,t){var n=bs(e,t),r=n[n.length-1];return r?r.plainTextIndex+r.display.length:0}(r.substring(0,s),a),c=e.substring(u,n);t().Children.forEach(i,(function(t,n){if(t){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e instanceof RegExp)return e;var n=t.allowSpaceInQuery,r=us(e);return new RegExp("(?:^|\\s)(".concat(r,"([^").concat(n?"":"\\s").concat(r,"]*))$"))}(t.props.trigger,o.props),i=c.match(r);if(i){var a=u+c.indexOf(i[1],i.index);o.queryData(i[2],n,a,a+i[1].length,e)}}}))}})),Aa(Ea(o),"clearSuggestions",(function(){o._queryId++,o.suggestions={},o.setState({suggestions:{},focusIndex:0})})),Aa(Ea(o),"queryData",(function(t,n,r,i,a){var s=o.props,u=s.children,c=s.ignoreAccents,l=function(e,t){return e instanceof Array?function(n,r){for(var o=[],i=0,a=e.length;i<a;++i){var s=e[i].display||e[i].id;ks(s,n,t)>=0&&o.push(e[i])}return o}:e}(e.Children.toArray(u)[n].props.data,c),d=l(t,o.updateSuggestions.bind(null,o._queryId,n,t,r,i,a));d instanceof Array&&o.updateSuggestions(o._queryId,n,t,r,i,a,d)})),Aa(Ea(o),"updateSuggestions",(function(e,t,n,r,i,a,s){if(e===o._queryId){o.suggestions=zs({},o.suggestions,Aa({},t,{queryInfo:{childIndex:t,query:n,querySequenceStart:r,querySequenceEnd:i,plainTextValue:a},results:s}));var u=o.state.focusIndex,c=Es(o.suggestions);o.setState({suggestions:o.suggestions,focusIndex:u>=c?Math.max(c-1,0):u})}})),Aa(Ea(o),"addMention",(function(t,n){var r=t.id,i=t.display,a=n.childIndex,s=n.querySequenceStart,u=n.querySequenceEnd,c=n.plainTextValue,l=o.props.value||"",d=_s(o.props.children),f=e.Children.toArray(o.props.children)[a].props,h=f.markup,p=f.displayTransform,g=f.appendSpaceOnAdd,m=f.onAdd,v=vs(l,d,s,"START"),y=v+u-s,b=function(e,t,n){return e.replace(cs,t).replace(ls,n)}(h,r,i);g&&(b+=" ");var w=ys(l,v,y,b);o.inputElement.focus();var E=p(r,i);g&&(E+=" ");var x=s+E.length;o.setState({selectionStart:x,selectionEnd:x,setSelectionAfterMentionChange:!0});var _={target:{value:w}},C=bs(w,d),S=ys(c,s,u,E);o.executeOnChange(_,w,S,C),m&&m(r,i,v,y),o.clearSuggestions()})),Aa(Ea(o),"isLoading",(function(){var e=!1;return t().Children.forEach(o.props.children,(function(t){e=e||t&&t.props.isLoading})),e})),Aa(Ea(o),"isOpened",(function(){return Os(o.state.selectionStart)&&(0!==Es(o.state.suggestions)||o.isLoading())})),Aa(Ea(o),"_queryId",0),o.suggestions={},o.uuidSuggestionsOverlay=Math.random().toString(16).substring(2),o.handleCopy=o.handleCopy.bind(Ea(o)),o.handleCut=o.handleCut.bind(Ea(o)),o.handlePaste=o.handlePaste.bind(Ea(o)),o.state={focusIndex:0,selectionStart:null,selectionEnd:null,suggestions:{},caretPosition:null,suggestionsPosition:{}},o}return Sa(r,n),ya(r,[{key:"componentDidMount",value:function(){document.addEventListener("copy",this.handleCopy),document.addEventListener("cut",this.handleCut),document.addEventListener("paste",this.handlePaste),this.updateSuggestionsPosition()}},{key:"componentDidUpdate",value:function(e,t){t.suggestionsPosition===this.state.suggestionsPosition&&this.updateSuggestionsPosition(),this.state.setSelectionAfterMentionChange&&(this.setState({setSelectionAfterMentionChange:!1}),this.setSelection(this.state.selectionStart,this.state.selectionEnd))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("copy",this.handleCopy),document.removeEventListener("cut",this.handleCut),document.removeEventListener("paste",this.handlePaste)}},{key:"render",value:function(){return t().createElement("div",ga({ref:this.setContainerElement},this.props.style),this.renderControl(),this.renderSuggestionsOverlay())}},{key:"handlePaste",value:function(e){if(e.target===this.inputElement&&this.supportsClipboardActions(e)){e.preventDefault();var t=this.state,n=t.selectionStart,r=t.selectionEnd,o=this.props,i=o.value,a=o.children,s=_s(a),u=vs(i,s,n,"START"),c=vs(i,s,r,"END"),l=e.clipboardData.getData("text/react-mentions"),d=e.clipboardData.getData("text/plain"),f=ys(i,u,c,l||d).replace(/\r/g,""),h=ms(f,s),p={target:zs({},e.target,{value:f})};this.executeOnChange(p,f,h,bs(f,s))}}},{key:"saveSelectionToClipboard",value:function(e){var t=this.state,n=t.selectionStart,r=t.selectionEnd,o=this.props,i=o.children,a=o.value,s=_s(i),u=vs(a,s,n,"START"),c=vs(a,s,r,"END");e.clipboardData.setData("text/plain",e.target.value.slice(n,r)),e.clipboardData.setData("text/react-mentions",a.slice(u,c))}},{key:"supportsClipboardActions",value:function(e){return!!e.clipboardData}},{key:"handleCopy",value:function(e){e.target===this.inputElement&&this.supportsClipboardActions(e)&&(e.preventDefault(),this.saveSelectionToClipboard(e))}},{key:"handleCut",value:function(e){if(e.target===this.inputElement&&this.supportsClipboardActions(e)){e.preventDefault(),this.saveSelectionToClipboard(e);var t=this.state,n=t.selectionStart,r=t.selectionEnd,o=this.props,i=o.children,a=o.value,s=_s(i),u=vs(a,s,n,"START"),c=vs(a,s,r,"END"),l=[a.slice(0,u),a.slice(c)].join(""),d=ms(l,s),f={target:zs({},e.target,{value:d})};this.executeOnChange(f,l,d,bs(a,s))}}}]),r}(t().Component);Aa(qs,"propTypes",Hs),Aa(qs,"defaultProps",{ignoreAccents:!1,singleLine:!1,allowSuggestionsAboveCursor:!1,onKeyDown:function(){return null},onSelect:function(){return null},onBlur:function(){return null}});var Vs=function(e,t){var n=parseFloat(window.getComputedStyle(e,null).getPropertyValue(t));return isFinite(n)?n:0},Ys=Ts({position:"relative",overflowY:"visible",input:{display:"block",width:"100%",position:"absolute",margin:0,top:0,left:0,boxSizing:"border-box",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",letterSpacing:"inherit"},"&multiLine":{input:zs({height:"100%",bottom:0,overflow:"hidden",resize:"none"},"undefined"!=typeof navigator&&/iPhone|iPad|iPod/i.test(navigator.userAgent)?{marginTop:1,marginLeft:-3}:null)}},(function(e){var t=e.singleLine;return{"&singleLine":t,"&multiLine":!t}}))(qs),Ks={fontWeight:"inherit"},$s=function(e){var n=e.display,r=e.style,o=e.className,i=e.classNames,a=is(Ks,{style:r,className:o,classNames:i});return t().createElement("strong",a,n)};$s.propTypes={onAdd:i().func,onRemove:i().func,renderSuggestion:i().func,trigger:i().oneOfType([i().string,i().instanceOf(RegExp)]),markup:i().string,displayTransform:i().func,allowSpaceInQuery:i().bool,isLoading:i().bool},$s.defaultProps={trigger:"@",markup:"@[__display__](__id__)",displayTransform:function(e,t){return t||e},onAdd:function(){return null},onRemove:function(){return null},renderSuggestion:null,isLoading:!1,appendSpaceOnAdd:!1};const Zs=(0,r.makeStyles)((e=>({root:{width:"100%",backgroundColor:"#fff",fontFamily:"Roboto","&__control":{fontSize:"13px"},"&__highlighter":{padding:"10px 22px",border:"1px solid transparent !important",maxHeight:"70px"},"&__input":{borderRadius:"2px",border:"1px solid rgba(0,0,0,0.12)",padding:"10px 22px",outline:0,maxHeight:"70px",overflow:"auto !important"},"&__suggestions":{padding:"8px 0",borderRadius:"4px",backgroundColor:"#fafafa !important",boxShadow:"0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)",transform:"translateY(-100%)"},"&__suggestions__list":{maxHeight:"200px",overflowY:"scroll"},"&__suggestions__item":{padding:"6px 12px",color:e.palette.text.primary,fontSize:"13px",transition:e.transitions.create(["background-color"]),"&:hover, &--focused":{backgroundColor:"rgba(0,0,0,0.04)"}}},mention:{position:"relative",zIndex:1,color:e.palette.primary.main,textShadow:"1px 1px 1px white, 1px -1px 1px white, -1px 1px 1px white, -1px -1px 1px white",pointerEvents:"none"}})));function Xs(){return Xs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xs.apply(this,arguments)}const Qs=n=>{let{onChange:r,className:o}=n,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,["onChange","className"]);const a=Zs(),c=(0,e.useContext)(oa);return t().createElement(Ys,Xs({},i,{onChange:(e,t,n,o)=>{r(t,n,(0,u.uniq)(o.map((e=>{let{display:t}=e;return t.slice(1)}))))},className:s()(a.root,o)}),t().createElement($s,{trigger:"+",data:c.map((e=>{let{username:t}=e;return{id:t,display:t}})),displayTransform:(e,t)=>`+${t}`,appendSpaceOnAdd:!0,className:a.mention}))},Js=(0,r.makeStyles)({root:{padding:"6px 6px 6px 8px",borderRadius:"4px",backgroundColor:"rgba(0,114,206,0.06)"},textField:{maxWidth:"calc(100% - 40px)"},form:{marginBottom:0},main:{display:"flex",alignItems:"center"},avatar:{marginRight:"8px"},buttons:{marginLeft:"40px",marginTop:"8px"},button:{"& + $button":{marginLeft:"8px"}}}),eu=e=>{switch(e){case"open":return l().text("Reply...");case"resolved":return l().text("Adding a comment will re-open this");default:return""}},tu=r=>{let{inputRef:o,className:i,uri:a,relatedObjectUris:c,objectType:d,popperRef:f,comment:h,isEditingComment:p,onCancel:g}=r;const m=Js(),y=(0,n.useSelector)(v().selectors.getUserName),{createReply:b,createComment:w,sending:E,editComment:x}=(0,e.useContext)(mi),[_,C]=(0,e.useState)(""),[S,A]=(0,e.useState)(""),[k,O]=(0,e.useState)([]),[D,L]=(0,e.useState)(!1),M=Wo(),P=""!==_.trim(),F=D||P,N=null==h?void 0:h.status,j=(e,t,n)=>{O(n),C(e),A(t)},R=()=>{null==g||g(),j("","",[])};return(0,e.useEffect)((()=>{f&&f.current.update()}),[f,F]),(0,e.useEffect)((()=>{p?C(h.content):R()}),[p]),t().createElement(ki(),{className:s()(m.root,i)},t().createElement("form",{onSubmit:e=>{e.preventDefault();const t=(0,u.cond)([[(0,u.always)(!h),()=>w({content:S,namedUsers:k,objectType:d,uri:a,relatedObjectUris:c})],[(0,u.always)(p),()=>x({content:S,namedUsers:k,commentId:h.commentId,objectType:d,replies:h.replies,relatedObjectUris:c,uri:a})],[u.T,()=>b({content:S,namedUsers:k,commentId:h.commentId,action:"open"===h.status?"none":"reopen",uri:a})]]);return M(t()).then(R).catch(console.log)},className:m.form},t().createElement(ki(),{className:m.main},t().createElement(ca,{classes:{root:m.avatar}},y),t().createElement(Qs,{className:m.textField,disabled:E,onChange:(e,t,n)=>{j(e,t,n)},inputRef:o,value:_,onFocus:()=>L(!0),onBlur:()=>L(!1),placeholder:eu(N)})),F&&t().createElement(ki(),{className:m.buttons},t().createElement(T(),{className:m.button,variant:"contained",color:"primary",disabled:!P||E,type:"submit"},((e,t)=>t?l().text("Edit"):"open"===e||"resolved"===e?l().text("Reply"):l().text("Comment"))(N,p)),t().createElement(T(),{disabled:E,onClick:()=>R(),className:m.button,variant:"outlined",color:"primary"},l().text("Cancel")))))},nu=(0,r.makeStyles)((()=>({root:{maxWidth:"100%",padding:"8px 4px 10px 16px"},messages:{},repliedComment:{marginBottom:"2px"},replies:{marginLeft:"40px"},sendMessageArea:{marginLeft:"40px"},comment:{}}))),ru=(0,e.memo)((n=>{let{uri:r,relatedObjectUris:o,objectType:i,classes:a,popperRef:s,messagesRef:u,comment:c}=n;const l=(0,e.useRef)(),d=nu({classes:a}),[f,h]=(0,e.useState)(!1),p=t().createElement(tu,{className:d.sendMessageArea,inputRef:l,popperRef:s,uri:r,relatedObjectUris:o,objectType:i,comment:c,onCancel:()=>h(!1),isEditingComment:f});return t().createElement(ki(),{className:d.root},c&&t().createElement(t().Fragment,null,t().createElement("div",{className:d.messages,ref:u},t().createElement(da,{comment:c,uri:r,onReply:()=>{f&&h(!1),l.current.focus()},onStartEditing:()=>{h(!0)},className:d.comment}),t().createElement(ki(),{className:d.replies},c.replies.map((e=>t().createElement(ha,{key:e.replyId,className:d.repliedComment,reply:e}))))),p),!c&&p)})),ou=window["material-ui"].ClickAwayListener;var iu=f.n(ou);const au=window["material-ui"].Popper;var su=f.n(au);const uu=(0,r.makeStyles)({backdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:10},popper:{zIndex:1300}}),cu=e=>{let{anchorEl:t,leftBackdropRef:n,rightBackdropRef:r,topBackdropRef:o,bottomBackdropRef:i,rafIdRef:a,lastResizeTimestamp:s=0}=e;if(t){if(Date.now()-s>100&&o.current&&n.current&&r.current&&i.current){const e=t.getBoundingClientRect();o.current.style.top="0",o.current.style.left="0",o.current.style.right="0",o.current.style.height=e.top+"px",n.current.style.top="0",n.current.style.left="0",n.current.style.width=e.left+"px",n.current.style.bottom="0",r.current.style.top="0",r.current.style.left=e.right+"px",r.current.style.right="0",r.current.style.bottom="0",i.current.style.top=e.bottom+"px",i.current.style.left="0",i.current.style.right="0",i.current.style.bottom="0",s=Date.now()}a.current=requestAnimationFrame((()=>cu({anchorEl:t,leftBackdropRef:n,rightBackdropRef:r,topBackdropRef:o,bottomBackdropRef:i,rafIdRef:a,lastResizeTimestamp:s})))}};function lu(){return lu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lu.apply(this,arguments)}function du(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fu=(0,e.forwardRef)(((n,r)=>{let{modifiers:o,modal:i=!0,onClose:a,anchorEl:c,open:l,className:d}=n,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,["modifiers","modal","onClose","anchorEl","open","className"]);const h=uu(),g=(0,e.useRef)(),m=(0,e.useRef)(),v=(0,e.useRef)(),y=(0,e.useRef)(),b=(0,e.useRef)();(0,e.useEffect)((()=>{if(l&&i)return cu({anchorEl:c,leftBackdropRef:g,rightBackdropRef:m,topBackdropRef:v,bottomBackdropRef:y,rafIdRef:b}),()=>cancelAnimationFrame(b.current)}),[c,l,i]);const w=(0,e.useMemo)((()=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){du(e,t,n[t])}))}return e}({},o,(0,u.compose)((0,u.either)((0,u.includes)("MSIE "),(0,u.includes)("Trident/")),(0,u.path)(["navigator","userAgent"]))(window)?{computeStyle:{gpuAcceleration:!1}}:{})),[o]);return t().createElement(t().Fragment,null,i&&l&&t().createElement(p(),{container:document.body},t().createElement("div",{ref:v,className:h.backdrop,onClick:a}),t().createElement("div",{ref:m,className:h.backdrop,onClick:a}),t().createElement("div",{ref:y,className:h.backdrop,onClick:a}),t().createElement("div",{ref:g,className:h.backdrop,onClick:a})),t().createElement(su(),lu({open:l,anchorEl:c},f,{modifiers:w,className:s()(d,h.popper),ref:r})))}));fu.displayName="Popper",fu.defaultProps={modifiers:{}};const hu=fu,pu=(0,r.makeStyles)((e=>{const t=e.palette.background.paper;return{popoverRoot:{backgroundColor:t,maxWidth:1e3},popper:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t,"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",boxShadow:e.shadows[1],backgroundColor:"currentColor",transform:"rotate(45deg)"}}}})),gu=e=>{let{anchorEl:n,placement:r="top",arrow:o=!0,open:i,onClose:a=(()=>{}),children:u,className:c,popperRef:l}=e;const d=pu(),[f,h]=t().useState(null);return t().createElement(hu,{anchorEl:n,placement:r,className:s()(d.popper,c),modifiers:{preventOverflow:{enabled:!0,boundariesElement:"window"},arrow:{enabled:o,element:f}},open:i,modal:!1,popperRef:l},t().createElement(ki(),null,t().createElement(iu(),{onClickAway:e=>{var t;t=e.target,Array.from(document.querySelectorAll("[data-modal]")).some((e=>e.contains(t)))||a()}},t().createElement(Pn(),{className:d.popoverRoot},o?t().createElement("span",{className:d.arrow,ref:h}):null,t().createElement(ki(),null,u)))))},mu=(0,r.makeStyles)((e=>({root:{},header:{display:"flex",alignItems:"center",height:"48px",paddingLeft:"16px",paddingRight:"8px"},headerInfo:{marginRight:"auto",display:"flex",alignItems:"center"},title:{marginRight:"15px",color:e.palette.text.primary,fontSize:"16px"},counter:{paddingLeft:"15px",borderLeft:"1px solid rgba(0,0,0,0.12)",color:e.palette.text.secondary,fontSize:"14px",lineHeight:"24px"},resolveButton:{zIndex:3e3,"&:hover":{backgroundColor:"transparent"}},popper:{width:"424px",borderRadius:"0 0 4px 4px"},collaborationItem:{padding:"0 0 10px 0"},comment:e=>{let{hasScroll:t}=e;return{marginLeft:"16px",marginRight:t?"2px":"8px"}},replies:e=>{let{hasScroll:t}=e;return{marginLeft:"8px",marginRight:t?"2px":"8px"}},sendMessageArea:e=>{let{hasScroll:t,scrollWidth:n}=e;return{marginLeft:"8px",marginRight:t?n+2:"8px"}},messages:{maxHeight:"400px",overflowY:"auto"}}))),vu=n=>{let{uri:r,relatedObjectUris:o,objectType:i,anchorEl:a,onClose:s,open:u,comment:c}=n;const[d,f]=(0,e.useState)(0),h=mu({scrollWidth:d,hasScroll:0!==d}),p=(0,e.useRef)(null),{resolveThread:g,loading:m,sending:v}=(0,e.useContext)(mi),y=1+(null==c?void 0:c.replies.length);return t().createElement(gu,{popperRef:p,anchorEl:a,open:u,placement:"right-start",onClose:s,className:h.popper},t().createElement(ki(),{className:h.header},t().createElement(ki(),{className:h.headerInfo},t().createElement(D(),{className:h.title},l().text("Comments")),c&&!m&&t().createElement(D(),{className:h.counter},l().number(y)," ",1===y?l().text("item"):l().text("items"))),c&&!m&&t().createElement($i,{className:h.resolveButton,size:"S",onClick:()=>{g({commentId:c.commentId,uri:r})},disabled:v,showForDisabled:!0,tooltipTitle:l().text("Resolve"),icon:Oi.Z,color:"primary"})),!m&&t().createElement(ru,{popperRef:p,messagesRef:e=>{e&&f(e.offsetWidth-e.clientWidth)},classes:{root:h.collaborationItem,replies:h.replies,sendMessageArea:h.sendMessageArea,messages:h.messages,comment:h.comment},uri:r,relatedObjectUris:o,objectType:i,comment:c}))},yu=n=>{let{className:r,uri:o,objectType:i,relatedObjectUris:a,onChangePopupVisibility:u,allowOnlyOneComment:c=!1,showAlways:l=!1}=n;const d=hi(),[f,h]=(0,e.useState)(null),[p,g]=(0,e.useState)(!1),m=p&&Boolean(f),{currentComment:v,commentsMap:y,getComment:b,clearCurrentComment:w,objectTypes:E}=(0,e.useContext)(mi),x=!!y&&(!E||E.includes(i)),_=((null==y?void 0:y[o])||[]).filter((e=>{let{status:t}=e;return"resolved"!==t})).reverse(),C=!c||c&&0===_.length,S=null===v&&m;pi((()=>{u&&u(m)}),[m]);const A=(0,e.useContext)(vi),k=(0,e.useMemo)((()=>A?[...a,...A]:a),[A,a]);return x&&t().createElement("div",{className:s()(d.root,r)},C&&t().createElement(Si,{className:s()(d.addButton,{[d.showAlways]:l||S}),onClick:e=>{h(e.currentTarget),g(!0)}}),_.map((e=>{let{replies:n,commentId:r}=e;return t().createElement(xi,{ref:r===(null==v?void 0:v.commentId)?h:null,key:r,onClick:()=>(e=>{b(e),g(!0)})(r)},1+n)})),t().createElement(vu,{anchorEl:f,open:m,onClose:()=>{h(null),w(),g(!1)},uri:o,relatedObjectUris:k,objectType:i,comment:v}))},bu=(0,r.makeStyles)({comments:{display:"flex",justifyContent:"flex-end",marginTop:"10px"}}),wu=(0,e.memo)((e=>{let{className:r}=e;const o=bu(),i=(0,n.useSelector)(v().selectors.getEntity),a=(0,n.useSelector)(v().selectors.getRangeColors);return t().createElement(fi,{className:s()(r,"commentsContainerVisibilityArea"),entity:i,rangeColorsConfig:a},t().createElement(ki(),{className:o.comments},t().createElement(yu,{uri:i.uri,relatedObjectUris:(0,Go.createRelatedObjectUris)(Go.CollaborationObjectTypes.ENTITY,{entityUri:i.uri}),objectType:Go.CollaborationObjectTypes.ENTITY})))}));wu.displayName="GraphProfileBand";const Eu=wu,xu=(0,r.makeStyles)((e=>({contentWrapper:{display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)",marginLeft:"3px",transition:e.transitions.create(["width"],{duration:e.transitions.duration.enteringScreen})}}))),_u=e=>{let{width:n,open:r,children:o}=e;const i=xu();return t().createElement("div",{className:i.contentWrapper,style:{width:`${r?n:0}px`}},r&&t().createElement(t().Fragment,null,o))},Cu=(0,r.makeStyles)((e=>({container:{display:"flex",flexDirection:"column",flexShrink:0,width:"64px",paddingTop:"8px",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)"},active:{backgroundColor:(0,r.fade)(e.palette.primary.main,.12),color:e.palette.primary.main,"&:after":{content:'""',position:"absolute",height:"42px",width:"3px",backgroundColor:e.palette.primary.main,left:"-8px",borderRadius:"0 6px 6px 0"}},buttonWrapper:{position:"relative",width:"48px",height:"44px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"6px",margin:"2px 8px",color:e.palette.text.secondary}})));function Su(){return Su=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Su.apply(this,arguments)}function Au(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const ku=e=>{let{buttonsProps:n,activeIndexId:r,className:o,onButtonClick:i,classes:a={}}=e;const u=Cu(),{active:c,buttonWrapper:l}=a,d=Au(a,["active","buttonWrapper"]);return t().createElement("div",{className:s()(u.container,o)},n.map((e=>{let{id:n}=e,o=Au(e,["id"]);return t().createElement($i,Su({},o,{classes:d,size:"S",key:n,className:s()({[s()(u.active,c)]:r===n},u.buttonWrapper,l),onClick:()=>i(n),"data-reltio-id":`reltio-profile-right-side-button-${n}`}))})))};var Ou=f(2726);const Du=(0,r.makeStyles)({wrapper:{display:"flex",overflow:"hidden",marginLeft:"auto",flexShrink:0}});function Lu(){return Lu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lu.apply(this,arguments)}const Tu=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["styles"]);return t().createElement("svg",Lu({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7v2h2V7H6zm0 4v2h2v-2H6zm0 4v2h2v-2H6zm4-8v2h8V7h-8zm10-2v5.02a6.52 6.52 0 012 2.01V3H2v18h11.028a6.52 6.52 0 01-2.009-2H4V5h16zm-9.503 8a6.497 6.497 0 011.31-2H10v2h.497zM10 15.5c0-.168.006-.335.019-.5H10v.5zm0 0c0 .516.06 1.018.173 1.5H10v-1.5zm10.3 2.39L23.42 21 22 22.42l-3.12-3.12c-.69.44-1.51.7-2.39.7-2.48 0-4.49-2.01-4.49-4.5s2.01-4.5 4.5-4.5 4.5 2.01 4.5 4.5c0 .88-.26 1.69-.7 2.39zm-3.8.11a2.5 2.5 0 000-5 2.5 2.5 0 000 5z",fill:"currentColor"}))};function Mu(){return Mu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mu.apply(this,arguments)}const Pu=(n,r,o)=>{if(n&&r){const i=(0,e.memo)(o);return e=>t().createElement(n.Consumer,null,(n=>t().createElement(i,Mu({},e,r(n,e)))))}return o},Fu=Pu(Vo,(0,u.pick)(["selectedEntity"]),(e=>{let{selectedEntity:n}=e;return t().createElement(fi,{entity:n})}));let Nu;!function(e){e[e.Relationship=0]="Relationship",e[e.EntityDetails=1]="EntityDetails"}(Nu||(Nu={}));const ju=(0,e.memo)((()=>{var n;const r=Du(),[o,i]=(0,e.useState)(null),a=(0,e.useCallback)((e=>{i((t=>t===e?null:e))}),[]),s=null!==o,c=(0,e.useMemo)((()=>[{buttonProps:{id:Nu.Relationship,icon:Tu,tooltipTitle:l().text("Relationship")},content:"Relationship"},{buttonProps:{id:Nu.EntityDetails,icon:Ou.Z,tooltipTitle:l().text("Entity Details")},content:"Entity Details"}]),[]);return t().createElement("div",{className:r.wrapper},t().createElement(_u,{open:s,width:480},t().createElement(Fu,null),null===(n=c[o])||void 0===n?void 0:n.content),t().createElement(ku,{buttonsProps:(0,u.pluck)("buttonProps",c),onButtonClick:a,activeIndexId:o}))}));ju.displayName="GraphRightSidePanel";const Ru=ju;var Iu=f(4986);const Bu=e=>{let{children:n}=e;return t().createElement("div",{style:{height:"calc(100% - 5px)"}},t().createElement(Iu.SigmaContainer,{style:{background:"transparent"}},n))};var Gu=f(8996),zu=f.n(Gu),Uu=f(8833),Wu=f.n(Uu),Hu=f(3660),qu=f.n(Hu);function Vu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Yu(e,t,n[t])}))}return e}function Yu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ku=t=>{let{data:n,selectedNode:r,onNodeClick:o}=t;const i=(0,Iu.useSigma)(),a=(0,Iu.useRegisterEvents)(),s=(0,Iu.useLoadGraph)(),u=(0,Iu.useSetSettings)(),[c,l]=(0,e.useState)({hoverNode:void 0,hoverNeighbours:void 0});return(0,e.useEffect)((()=>{const e=new(zu());n.nodes.forEach((t=>{e.addNode(t.id,{label:t.name,size:21,color:"#0072CE"})})),n.edges.forEach((t=>{e.addEdge(t.from,t.to,{size:5})})),Wu().assign(e);const t=qu().inferSettings(e);qu().assign(e,{settings:t,iterations:600}),s(e)}),[s,n]),(0,e.useEffect)((()=>{a({enterNode:e=>{let{node:t}=e;l({hoverNode:t,hoverNeighbours:n.edges.filter((e=>e.from===t||e.to===t)).map((e=>{var r,o;const i=e.from===t?e.to:e.from;return null!==(r=null===(o=n.nodes.find((e=>e.id===i)))||void 0===o?void 0:o.id)&&void 0!==r?r:""}))})},leaveNode:()=>{l({hoverNode:void 0,hoverNeighbours:void 0})},clickNode:e=>{let{node:t}=e;o(t)}})}),[i,a,n,o]),(0,e.useEffect)((()=>{u({nodeReducer:(e,t)=>{const n=Vu({},t);return c.hoverNeighbours&&!c.hoverNeighbours.includes(e)&&c.hoverNode!==e&&(n.label="",n.color="#f6f6f6"),e===r&&(n.color="red"),n},edgeReducer:(e,t)=>{const n=i.getGraph(),r=Vu({},t,{hidden:!1});return c.hoverNode&&!n.hasExtremity(e,c.hoverNode)&&(r.hidden=!0),r}})}),[i,u,c,r]),null},$u=Pu(Vo,(e=>{let{data:t,selectedEntity:n,onEntitySelect:r}=e;return{data:t,selectedNode:null==n?void 0:n.uri,onNodeSelect:r}}),(n=>{let{data:r,selectedNode:o,onNodeSelect:i}=n;const a=(0,e.useMemo)((()=>r&&(e=>{const t=new Set,n=new Set;e.entities.forEach((e=>t.add(e.uri))),e.relations.filter((e=>t.has(e.startObject.objectURI)&&t.has(e.endObject.objectURI))).forEach((e=>{n.has(`${e.endObject.objectURI}--${e.startObject.objectURI}`)||n.add(`${e.startObject.objectURI}--${e.endObject.objectURI}--${e.direction}`)}));const r=e.entities.map((e=>({id:e.uri,name:e.label}))),o=[];return n.forEach((e=>{const t=e.split("--");o.push({from:t[0],to:t[1]})})),{nodes:r,edges:o}})(r)),[r]);return a&&t().createElement(Bu,null,t().createElement(Ku,{data:a,selectedNode:o,onNodeClick:i}))})),Zu=(0,e.memo)((()=>{const r=(0,n.useDispatch)();(0,e.useEffect)((()=>{r(m.profile.entity.actions.entityLoaded({uri:"entities/1IPdCSY1",type:"configuration/entityTypes/HCP"}))}),[r]);const o=Bo(),i=(0,n.useSelector)(v().selectors.getEntity),a=(t=>{const{graphLoading:r,data:o}=(t=>{const r=(0,n.useDispatch)(),[o,i]=(0,e.useState)(null),[a,s]=(0,e.useState)(!1),u=null==t?void 0:t.uri,c=(0,Go.isDataTenantEntity)(t);return(0,e.useEffect)((()=>(!u||(0,Go.isTempUri)(u)||c||(s(!0),(0,Go.getHops)({uri:u,deep:2,limitCreditsConsumption:!0,graphTypes:null,activenessDate:null}).then(i).catch((e=>{i(null),r(m.ui.actions.errorSet((0,Go.getRequestErrorMessage)(e,l().text("Something went wrong"))))})).finally((()=>{s(!1)}))),()=>{i(null),s(!1)})),[u,c,r]),{graphLoading:a,data:o}})(t),{selectedEntity:i,onEntitySelect:a,selectedEntityLoading:s}=((t,r)=>{const o=Wo(),i=(0,n.useDispatch)(),[a,s]=(0,e.useState)(null),c=(0,e.useRef)({}),[d,f]=(0,e.useState)(!1),h=(0,e.useCallback)((e=>{var t;if(c.current[e])return void s(c.current[e]);const n=null==r||null===(t=r.entities)||void 0===t?void 0:t.find((0,u.propEq)("uri",e));n&&s(n),f(!0),o((0,Go.getEntity)(e)).then((e=>{c.current=qo(c.current,e),s(e)})).catch((e=>{i(m.ui.actions.errorSet((0,Go.getRequestErrorMessage)(e,l().text("Something went wrong"))))})).finally((()=>{f(!1)}))}),[i,r,o]);return(0,e.useEffect)((()=>{null!=t&&t.uri&&(c.current=qo({},t),h(t.uri))}),[null==t?void 0:t.uri]),{selectedEntityLoading:d,selectedEntity:a,onEntitySelect:h}})(t,o);return{graphLoading:r,data:o,selectedEntity:i,onEntitySelect:a,selectedEntityLoading:s}})(i),{graphLoading:s}=a;return t().createElement(Vo.Provider,{value:a},t().createElement("div",{className:o.perspectiveView},s&&t().createElement(Io,null),(null==i?void 0:i.uri)&&t().createElement("div",{className:o.graphContainer},t().createElement("div",{className:o.graphWrapper},t().createElement(Eu,null),t().createElement($u,null)),t().createElement(Ru,null))))}));Zu.displayName="GraphPerspectiveView";const Xu=Zu,Qu=(0,r.createGenerateClassName)({productionPrefix:"graph",disableGlobal:!0}),Ju=e=>{let{store:o}=e;return t().createElement(n.Provider,{store:o},t().createElement(r.StylesProvider,{generateClassName:Qu},t().createElement(Nn,{utils:Fo},t().createElement(Xu,null),t().createElement(E,{showErrorFromStore:!0}))))}})(),h})()}));