@reltio/data-model 1.4.2299 → 1.4.2301

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 +4 -4
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("@mui/icons-material/Add"),require("@mui/icons-material/ArrowDropDown"),require("@mui/icons-material/Business"),require("@mui/icons-material/Cancel"),require("@mui/icons-material/Close"),require("@mui/icons-material/DescriptionOutlined"),require("@mui/icons-material/FormatListBulletedOutlined"),require("@mui/icons-material/HighlightOff"),require("@mui/icons-material/Info"),require("@mui/icons-material/MultipleStop"),require("@mui/icons-material/Remove"),require("@mui/icons-material/Search"),require("@mui/icons-material/TableChartOutlined"),require("@mui/material"),require("@mui/material/Avatar"),require("@mui/material/Button"),require("@mui/material/Checkbox"),require("@mui/material/Chip"),require("@mui/material/Collapse"),require("@mui/material/Divider"),require("@mui/material/FormControlLabel"),require("@mui/material/Grid"),require("@mui/material/IconButton"),require("@mui/material/Input"),require("@mui/material/InputAdornment"),require("@mui/material/Menu"),require("@mui/material/MenuItem"),require("@mui/material/Paper"),require("@mui/material/Popper"),require("@mui/material/Portal"),require("@mui/material/Select"),require("@mui/material/Skeleton"),require("@mui/material/Slider"),require("@mui/material/Table"),require("@mui/material/TableBody"),require("@mui/material/TableCell"),require("@mui/material/TableContainer"),require("@mui/material/TableHead"),require("@mui/material/TableRow"),require("@mui/material/TextField"),require("@mui/material/Toolbar"),require("@mui/material/Tooltip"),require("@mui/material/Typography"),require("@mui/material/colors"),require("@mui/material/styles"),require("@mui/styles/StylesProvider"),require("@mui/styles/createGenerateClassName"),require("@mui/styles/withStyles"),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(["@mui/icons-material/Add","@mui/icons-material/ArrowDropDown","@mui/icons-material/Business","@mui/icons-material/Cancel","@mui/icons-material/Close","@mui/icons-material/DescriptionOutlined","@mui/icons-material/FormatListBulletedOutlined","@mui/icons-material/HighlightOff","@mui/icons-material/Info","@mui/icons-material/MultipleStop","@mui/icons-material/Remove","@mui/icons-material/Search","@mui/icons-material/TableChartOutlined","@mui/material","@mui/material/Avatar","@mui/material/Button","@mui/material/Checkbox","@mui/material/Chip","@mui/material/Collapse","@mui/material/Divider","@mui/material/FormControlLabel","@mui/material/Grid","@mui/material/IconButton","@mui/material/Input","@mui/material/InputAdornment","@mui/material/Menu","@mui/material/MenuItem","@mui/material/Paper","@mui/material/Popper","@mui/material/Portal","@mui/material/Select","@mui/material/Skeleton","@mui/material/Slider","@mui/material/Table","@mui/material/TableBody","@mui/material/TableCell","@mui/material/TableContainer","@mui/material/TableHead","@mui/material/TableRow","@mui/material/TextField","@mui/material/Toolbar","@mui/material/Tooltip","@mui/material/Typography","@mui/material/colors","@mui/material/styles","@mui/styles/StylesProvider","@mui/styles/createGenerateClassName","@mui/styles/withStyles","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("@mui/icons-material/Add"),require("@mui/icons-material/ArrowDropDown"),require("@mui/icons-material/Business"),require("@mui/icons-material/Cancel"),require("@mui/icons-material/Close"),require("@mui/icons-material/DescriptionOutlined"),require("@mui/icons-material/FormatListBulletedOutlined"),require("@mui/icons-material/HighlightOff"),require("@mui/icons-material/Info"),require("@mui/icons-material/MultipleStop"),require("@mui/icons-material/Remove"),require("@mui/icons-material/Search"),require("@mui/icons-material/TableChartOutlined"),require("@mui/material"),require("@mui/material/Avatar"),require("@mui/material/Button"),require("@mui/material/Checkbox"),require("@mui/material/Chip"),require("@mui/material/Collapse"),require("@mui/material/Divider"),require("@mui/material/FormControlLabel"),require("@mui/material/Grid"),require("@mui/material/IconButton"),require("@mui/material/Input"),require("@mui/material/InputAdornment"),require("@mui/material/Menu"),require("@mui/material/MenuItem"),require("@mui/material/Paper"),require("@mui/material/Popper"),require("@mui/material/Portal"),require("@mui/material/Select"),require("@mui/material/Skeleton"),require("@mui/material/Slider"),require("@mui/material/Table"),require("@mui/material/TableBody"),require("@mui/material/TableCell"),require("@mui/material/TableContainer"),require("@mui/material/TableHead"),require("@mui/material/TableRow"),require("@mui/material/TextField"),require("@mui/material/Toolbar"),require("@mui/material/Tooltip"),require("@mui/material/Typography"),require("@mui/material/colors"),require("@mui/material/styles"),require("@mui/styles/StylesProvider"),require("@mui/styles/createGenerateClassName"),require("@mui/styles/withStyles"),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["@mui/icons-material/Add"],e["@mui/icons-material/ArrowDropDown"],e["@mui/icons-material/Business"],e["@mui/icons-material/Cancel"],e["@mui/icons-material/Close"],e["@mui/icons-material/DescriptionOutlined"],e["@mui/icons-material/FormatListBulletedOutlined"],e["@mui/icons-material/HighlightOff"],e["@mui/icons-material/Info"],e["@mui/icons-material/MultipleStop"],e["@mui/icons-material/Remove"],e["@mui/icons-material/Search"],e["@mui/icons-material/TableChartOutlined"],e["@mui/material"],e["@mui/material/Avatar"],e["@mui/material/Button"],e["@mui/material/Checkbox"],e["@mui/material/Chip"],e["@mui/material/Collapse"],e["@mui/material/Divider"],e["@mui/material/FormControlLabel"],e["@mui/material/Grid"],e["@mui/material/IconButton"],e["@mui/material/Input"],e["@mui/material/InputAdornment"],e["@mui/material/Menu"],e["@mui/material/MenuItem"],e["@mui/material/Paper"],e["@mui/material/Popper"],e["@mui/material/Portal"],e["@mui/material/Select"],e["@mui/material/Skeleton"],e["@mui/material/Slider"],e["@mui/material/Table"],e["@mui/material/TableBody"],e["@mui/material/TableCell"],e["@mui/material/TableContainer"],e["@mui/material/TableHead"],e["@mui/material/TableRow"],e["@mui/material/TextField"],e["@mui/material/Toolbar"],e["@mui/material/Tooltip"],e["@mui/material/Typography"],e["@mui/material/colors"],e["@mui/material/styles"],e["@mui/styles/StylesProvider"],e["@mui/styles/createGenerateClassName"],e["@mui/styles/withStyles"],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,i,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,x,w,E,_,S,C,O,k,L,R,P,M,A,T,D,z,F,N,I,j,B,G,U,H,V,W,q,$,Z,Y,X,K,Q,J,ee,te,ne,re){return(()=>{var ie={8884:e=>{e.exports=function(e,t){var n=t.length;if(0!==n){var r=e.length;e.length+=n;for(var i=0;i<n;i++)e[r+i]=t[i]}}},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 i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.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 l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,a,c;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!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,c=u,console&&console.warn&&console.warn(c)}return e}function u(){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},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]: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}(i):h(i,i.length)}function p(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 h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(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 i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.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},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(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},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){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 l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var c=l.length,u=h(l,c);for(n=0;n<c;++n)r(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,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(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.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 i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);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},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.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,i=Array.prototype.slice.call(arguments).slice(1);for(t=0,r=i.length;t<r;t++)if(i[t])for(n in i[t])e[n]=i[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,i=e.size,o={},a=new Float32Array(10*r),s=new Float32Array(3*i);return n=0,e.forEachNode((function(e,t){o[e]=n,a[n]=t.x,a[n+1]=t.y,a[n+2]=0,a[n+3]=0,a[n+4]=0,a[n+5]=0,a[n+6]=1,a[n+7]=1,a[n+8]=t.size||1,a[n+9]=t.fixed?1:0,n+=10})),n=0,e.forEachEdge((function(e,r,i,l,c,u,d){var f=o[i],p=o[l],h=t(e,r,i,l,c,u,d);a[f+6]+=h,a[p+6]+=h,s[n]=f,s[n+1]=p,s[n+2]=h,n+=3})),{nodes:a,edges:s}},t.assignLayoutChanges=function(e,t,n){var r=0;e.updateEachNodeAttributes((function(e,i){return i.x=t[r],i.y=t[r+1],r+=10,n?n(e,i):i}))},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(),i={},o=0,a=0,s=t.length;o<s;o+=10){if(n){var l=Object.assign({},e.getNodeAttributes(r[a]));l.x=t[o],l.y=t[o+1],l=n(r[a],l),i[r[a]]={x:l.x,y:l.y}}else i[r[a]]={x:t[o],y:t[o+1]};a++}return i},t.createWorker=function(e){var t=window.URL||window.webkitURL,n=e.toString(),r=t.createObjectURL(new Blob(["("+n+").call(this);"],{type:"text/javascript"})),i=new Worker(r);return t.revokeObjectURL(r),i}},3660:(e,t,n)=>{var r=n(1880),i=n(4363).Q6,o=n(8725),a=n(6061),s=n(9869);function l(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 l=n.iterations;if("number"!=typeof l)throw new Error("graphology-layout-forceatlas2: invalid number of iterations.");if(l<=0)throw new Error("graphology-layout-forceatlas2: you should provide a positive number of iterations.");var c=i("getEdgeWeight"in n?n.getEdgeWeight:"weight").fromEntry,u="function"==typeof n.outputReducer?n.outputReducer:null,d=a.assign({},s,n.settings),f=a.validateSettings(d);if(f)throw new Error("graphology-layout-forceatlas2: "+f.message);var p,h=a.graphToByteArrays(t,c);for(p=0;p<l;p++)o(d,h.nodes,h.edges);if(!e)return a.collectLayoutChanges(t,h.nodes);a.assignLayoutChanges(t,h.nodes,u)}var c=l.bind(null,!1);c.assign=l.bind(null,!0),c.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=c},8725:e=>{var t=10;e.exports=function(e,n,r){var i,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,x,w,E,_,S,C,O,k=n.length,L=r.length,R=e.adjustSizes,P=e.barnesHutTheta*e.barnesHutTheta,M=[];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(h=0,a=0;a<k;a+=t)h+=n[a+6];h/=k/t}if(e.barnesHutOptimize){var A,T,D,z=1/0,F=-1/0,N=1/0,I=-1/0;for(a=0;a<k;a+=t)z=Math.min(z,n[a+0]),F=Math.max(F,n[a+0]),N=Math.min(N,n[a+1]),I=Math.max(I,n[a+1]);var j=F-z,B=I-N;for(j>B?I=(N-=(j-B)/2)+j:F=(z-=(B-j)/2)+B,M[0]=-1,M[1]=(z+F)/2,M[2]=(N+I)/2,M[3]=Math.max(F-z,I-N),M[4]=-1,M[5]=-1,M[6]=0,M[7]=0,M[8]=0,i=1,a=0;a<k;a+=t)for(o=0,D=3;;){if(!(M[o+5]>=0)){if(M[o+0]<0){M[o+0]=a;break}if(M[o+5]=9*i,d=M[o+3]/2,M[(f=M[o+5])+0]=-1,M[f+1]=M[o+1]-d,M[f+2]=M[o+2]-d,M[f+3]=d,M[f+4]=f+9,M[f+5]=-1,M[f+6]=0,M[f+7]=0,M[f+8]=0,M[(f+=9)+0]=-1,M[f+1]=M[o+1]-d,M[f+2]=M[o+2]+d,M[f+3]=d,M[f+4]=f+9,M[f+5]=-1,M[f+6]=0,M[f+7]=0,M[f+8]=0,M[(f+=9)+0]=-1,M[f+1]=M[o+1]+d,M[f+2]=M[o+2]-d,M[f+3]=d,M[f+4]=f+9,M[f+5]=-1,M[f+6]=0,M[f+7]=0,M[f+8]=0,M[(f+=9)+0]=-1,M[f+1]=M[o+1]+d,M[f+2]=M[o+2]+d,M[f+3]=d,M[f+4]=M[o+4],M[f+5]=-1,M[f+6]=0,M[f+7]=0,M[f+8]=0,i+=4,A=n[M[o+0]+0]<M[o+1]?n[M[o+0]+1]<M[o+2]?M[o+5]:M[o+5]+9:n[M[o+0]+1]<M[o+2]?M[o+5]+18:M[o+5]+27,M[o+6]=n[M[o+0]+6],M[o+7]=n[M[o+0]+0],M[o+8]=n[M[o+0]+1],M[A+0]=M[o+0],M[o+0]=-1,A===(T=n[a+0]<M[o+1]?n[a+1]<M[o+2]?M[o+5]:M[o+5]+9:n[a+1]<M[o+2]?M[o+5]+18:M[o+5]+27)){if(D--){o=A;continue}D=3;break}M[T+0]=a;break}A=n[a+0]<M[o+1]?n[a+1]<M[o+2]?M[o+5]:M[o+5]+9:n[a+1]<M[o+2]?M[o+5]+18:M[o+5]+27,M[o+7]=(M[o+7]*M[o+6]+n[a+0]*n[a+6])/(M[o+6]+n[a+6]),M[o+8]=(M[o+8]*M[o+6]+n[a+1]*n[a+6])/(M[o+6]+n[a+6]),M[o+6]+=n[a+6],o=A}}if(e.barnesHutOptimize){for(m=e.scalingRatio,a=0;a<k;a+=t)for(o=0;;)if(M[o+5]>=0){if(b=Math.pow(n[a+0]-M[o+7],2)+Math.pow(n[a+1]-M[o+8],2),4*(p=M[o+3])*p/b<P){if(g=n[a+0]-M[o+7],v=n[a+1]-M[o+8],!0===R?b>0?(x=m*n[a+6]*M[o+6]/b,n[a+2]+=g*x,n[a+3]+=v*x):b<0&&(x=-m*n[a+6]*M[o+6]/Math.sqrt(b),n[a+2]+=g*x,n[a+3]+=v*x):b>0&&(x=m*n[a+6]*M[o+6]/b,n[a+2]+=g*x,n[a+3]+=v*x),(o=M[o+4])<0)break;continue}o=M[o+5]}else if((c=M[o+0])>=0&&c!==a&&(b=(g=n[a+0]-n[c+0])*g+(v=n[a+1]-n[c+1])*v,!0===R?b>0?(x=m*n[a+6]*n[c+6]/b,n[a+2]+=g*x,n[a+3]+=v*x):b<0&&(x=-m*n[a+6]*n[c+6]/Math.sqrt(b),n[a+2]+=g*x,n[a+3]+=v*x):b>0&&(x=m*n[a+6]*n[c+6]/b,n[a+2]+=g*x,n[a+3]+=v*x)),(o=M[o+4])<0)break}else for(m=e.scalingRatio,s=0;s<k;s+=t)for(l=0;l<s;l+=t)g=n[s+0]-n[l+0],v=n[s+1]-n[l+1],!0===R?(b=Math.sqrt(g*g+v*v)-n[s+8]-n[l+8])>0?(x=m*n[s+6]*n[l+6]/b/b,n[s+2]+=g*x,n[s+3]+=v*x,n[l+2]-=g*x,n[l+3]-=v*x):b<0&&(x=100*m*n[s+6]*n[l+6],n[s+2]+=g*x,n[s+3]+=v*x,n[l+2]-=g*x,n[l+3]-=v*x):(b=Math.sqrt(g*g+v*v))>0&&(x=m*n[s+6]*n[l+6]/b/b,n[s+2]+=g*x,n[s+3]+=v*x,n[l+2]-=g*x,n[l+3]-=v*x);for(f=e.gravity/e.scalingRatio,m=e.scalingRatio,a=0;a<k;a+=t)x=0,g=n[a+0],v=n[a+1],b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.strongGravityMode?b>0&&(x=m*n[a+6]*f):b>0&&(x=m*n[a+6]*f/b),n[a+2]-=g*x,n[a+3]-=v*x;for(m=1*(e.outboundAttractionDistribution?h:1),u=0;u<L;u+=3)s=r[u+0],l=r[u+1],d=r[u+2],y=Math.pow(d,e.edgeWeightInfluence),g=n[s+0]-n[l+0],v=n[s+1]-n[l+1],!0===R?(b=Math.sqrt(g*g+v*v)-n[s+8]-n[l+8],e.linLogMode?e.outboundAttractionDistribution?b>0&&(x=-m*y*Math.log(1+b)/b/n[s+6]):b>0&&(x=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?b>0&&(x=-m*y/n[s+6]):b>0&&(x=-m*y)):(b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.linLogMode?e.outboundAttractionDistribution?b>0&&(x=-m*y*Math.log(1+b)/b/n[s+6]):b>0&&(x=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?(b=1,x=-m*y/n[s+6]):(b=1,x=-m*y)),b>0&&(n[s+2]+=g*x,n[s+3]+=v*x,n[l+2]-=g*x,n[l+3]-=v*x);if(!0===R)for(a=0;a<k;a+=t)1!==n[a+9]&&((w=Math.sqrt(Math.pow(n[a+2],2)+Math.pow(n[a+3],2)))>10&&(n[a+2]=10*n[a+2]/w,n[a+3]=10*n[a+3]/w),E=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,S=.1*Math.log(1+_)/(1+Math.sqrt(E)),C=n[a+0]+n[a+2]*(S/e.slowDown),n[a+0]=C,O=n[a+1]+n[a+3]*(S/e.slowDown),n[a+1]=O);else for(a=0;a<k;a+=t)1!==n[a+9]&&(E=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,S=n[a+7]*Math.log(1+_)/(1+Math.sqrt(E)),n[a+7]=Math.min(1,Math.sqrt(S*(Math.pow(n[a+2],2)+Math.pow(n[a+3],2))/(1+Math.sqrt(E)))),C=n[a+0]+n[a+2]*(S/e.slowDown),n[a+0]=C,O=n[a+1]+n[a+3]*(S/e.slowDown),n[a+1]=O);return{}}},1026:e=>{e.exports=function(){var e,t,n,r={};n=10,r.exports=function(e,t,r){var i,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,x,w,E,_,S,C,O,k=t.length,L=r.length,R=e.adjustSizes,P=e.barnesHutTheta*e.barnesHutTheta,M=[];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(h=0,a=0;a<k;a+=n)h+=t[a+6];h/=k/n}if(e.barnesHutOptimize){var A,T,D,z=1/0,F=-1/0,N=1/0,I=-1/0;for(a=0;a<k;a+=n)z=Math.min(z,t[a+0]),F=Math.max(F,t[a+0]),N=Math.min(N,t[a+1]),I=Math.max(I,t[a+1]);var j=F-z,B=I-N;for(j>B?I=(N-=(j-B)/2)+j:F=(z-=(B-j)/2)+B,M[0]=-1,M[1]=(z+F)/2,M[2]=(N+I)/2,M[3]=Math.max(F-z,I-N),M[4]=-1,M[5]=-1,M[6]=0,M[7]=0,M[8]=0,i=1,a=0;a<k;a+=n)for(o=0,D=3;;){if(!(M[o+5]>=0)){if(M[o+0]<0){M[o+0]=a;break}if(M[o+5]=9*i,d=M[o+3]/2,M[(f=M[o+5])+0]=-1,M[f+1]=M[o+1]-d,M[f+2]=M[o+2]-d,M[f+3]=d,M[f+4]=f+9,M[f+5]=-1,M[f+6]=0,M[f+7]=0,M[f+8]=0,M[(f+=9)+0]=-1,M[f+1]=M[o+1]-d,M[f+2]=M[o+2]+d,M[f+3]=d,M[f+4]=f+9,M[f+5]=-1,M[f+6]=0,M[f+7]=0,M[f+8]=0,M[(f+=9)+0]=-1,M[f+1]=M[o+1]+d,M[f+2]=M[o+2]-d,M[f+3]=d,M[f+4]=f+9,M[f+5]=-1,M[f+6]=0,M[f+7]=0,M[f+8]=0,M[(f+=9)+0]=-1,M[f+1]=M[o+1]+d,M[f+2]=M[o+2]+d,M[f+3]=d,M[f+4]=M[o+4],M[f+5]=-1,M[f+6]=0,M[f+7]=0,M[f+8]=0,i+=4,A=t[M[o+0]+0]<M[o+1]?t[M[o+0]+1]<M[o+2]?M[o+5]:M[o+5]+9:t[M[o+0]+1]<M[o+2]?M[o+5]+18:M[o+5]+27,M[o+6]=t[M[o+0]+6],M[o+7]=t[M[o+0]+0],M[o+8]=t[M[o+0]+1],M[A+0]=M[o+0],M[o+0]=-1,A===(T=t[a+0]<M[o+1]?t[a+1]<M[o+2]?M[o+5]:M[o+5]+9:t[a+1]<M[o+2]?M[o+5]+18:M[o+5]+27)){if(D--){o=A;continue}D=3;break}M[T+0]=a;break}A=t[a+0]<M[o+1]?t[a+1]<M[o+2]?M[o+5]:M[o+5]+9:t[a+1]<M[o+2]?M[o+5]+18:M[o+5]+27,M[o+7]=(M[o+7]*M[o+6]+t[a+0]*t[a+6])/(M[o+6]+t[a+6]),M[o+8]=(M[o+8]*M[o+6]+t[a+1]*t[a+6])/(M[o+6]+t[a+6]),M[o+6]+=t[a+6],o=A}}if(e.barnesHutOptimize){for(m=e.scalingRatio,a=0;a<k;a+=n)for(o=0;;)if(M[o+5]>=0){if(b=Math.pow(t[a+0]-M[o+7],2)+Math.pow(t[a+1]-M[o+8],2),4*(p=M[o+3])*p/b<P){if(g=t[a+0]-M[o+7],v=t[a+1]-M[o+8],!0===R?b>0?(x=m*t[a+6]*M[o+6]/b,t[a+2]+=g*x,t[a+3]+=v*x):b<0&&(x=-m*t[a+6]*M[o+6]/Math.sqrt(b),t[a+2]+=g*x,t[a+3]+=v*x):b>0&&(x=m*t[a+6]*M[o+6]/b,t[a+2]+=g*x,t[a+3]+=v*x),(o=M[o+4])<0)break;continue}o=M[o+5]}else if((c=M[o+0])>=0&&c!==a&&(b=(g=t[a+0]-t[c+0])*g+(v=t[a+1]-t[c+1])*v,!0===R?b>0?(x=m*t[a+6]*t[c+6]/b,t[a+2]+=g*x,t[a+3]+=v*x):b<0&&(x=-m*t[a+6]*t[c+6]/Math.sqrt(b),t[a+2]+=g*x,t[a+3]+=v*x):b>0&&(x=m*t[a+6]*t[c+6]/b,t[a+2]+=g*x,t[a+3]+=v*x)),(o=M[o+4])<0)break}else for(m=e.scalingRatio,s=0;s<k;s+=n)for(l=0;l<s;l+=n)g=t[s+0]-t[l+0],v=t[s+1]-t[l+1],!0===R?(b=Math.sqrt(g*g+v*v)-t[s+8]-t[l+8])>0?(x=m*t[s+6]*t[l+6]/b/b,t[s+2]+=g*x,t[s+3]+=v*x,t[l+2]-=g*x,t[l+3]-=v*x):b<0&&(x=100*m*t[s+6]*t[l+6],t[s+2]+=g*x,t[s+3]+=v*x,t[l+2]-=g*x,t[l+3]-=v*x):(b=Math.sqrt(g*g+v*v))>0&&(x=m*t[s+6]*t[l+6]/b/b,t[s+2]+=g*x,t[s+3]+=v*x,t[l+2]-=g*x,t[l+3]-=v*x);for(f=e.gravity/e.scalingRatio,m=e.scalingRatio,a=0;a<k;a+=n)x=0,g=t[a+0],v=t[a+1],b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.strongGravityMode?b>0&&(x=m*t[a+6]*f):b>0&&(x=m*t[a+6]*f/b),t[a+2]-=g*x,t[a+3]-=v*x;for(m=1*(e.outboundAttractionDistribution?h:1),u=0;u<L;u+=3)s=r[u+0],l=r[u+1],d=r[u+2],y=Math.pow(d,e.edgeWeightInfluence),g=t[s+0]-t[l+0],v=t[s+1]-t[l+1],!0===R?(b=Math.sqrt(g*g+v*v)-t[s+8]-t[l+8],e.linLogMode?e.outboundAttractionDistribution?b>0&&(x=-m*y*Math.log(1+b)/b/t[s+6]):b>0&&(x=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?b>0&&(x=-m*y/t[s+6]):b>0&&(x=-m*y)):(b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.linLogMode?e.outboundAttractionDistribution?b>0&&(x=-m*y*Math.log(1+b)/b/t[s+6]):b>0&&(x=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?(b=1,x=-m*y/t[s+6]):(b=1,x=-m*y)),b>0&&(t[s+2]+=g*x,t[s+3]+=v*x,t[l+2]-=g*x,t[l+3]-=v*x);if(!0===R)for(a=0;a<k;a+=n)1!==t[a+9]&&((w=Math.sqrt(Math.pow(t[a+2],2)+Math.pow(t[a+3],2)))>10&&(t[a+2]=10*t[a+2]/w,t[a+3]=10*t[a+3]/w),E=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,S=.1*Math.log(1+_)/(1+Math.sqrt(E)),C=t[a+0]+t[a+2]*(S/e.slowDown),t[a+0]=C,O=t[a+1]+t[a+3]*(S/e.slowDown),t[a+1]=O);else for(a=0;a<k;a+=n)1!==t[a+9]&&(E=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,S=t[a+7]*Math.log(1+_)/(1+Math.sqrt(E)),t[a+7]=Math.min(1,Math.sqrt(S*(Math.pow(t[a+2],2)+Math.pow(t[a+3],2))/(1+Math.sqrt(E)))),C=t[a+0]+t[a+2]*(S/e.slowDown),t[a+0]=C,O=t[a+1]+t[a+3]*(S/e.slowDown),t[a+1]=O);return{}};var i=r.exports;self.addEventListener("message",(function(n){var r=n.data;e=new Float32Array(r.nodes),r.edges&&(t=new Float32Array(r.edges)),i(r.settings,e,t),self.postMessage({nodes:e.buffer},[e.buffer])}))}},8301:(e,t,n)=>{var r=n(1026),i=n(1880),o=n(4363).Q6,a=n(6061),s=n(9869);function l(e,t){if(t=t||{},!i(e))throw new Error("graphology-layout-forceatlas2/worker: the given graph is not a valid graphology instance.");var n=o("getEdgeWeight"in t?t.getEdgeWeight:"weight").fromEntry,r=a.assign({},s,t.settings),l=a.validateSettings(r);if(l)throw new Error("graphology-layout-forceatlas2/worker: "+l.message);this.worker=null,this.graph=e,this.settings=r,this.getEdgeWeight=n,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,u=this;this.handleGraphUpdate=function(){u.worker&&u.worker.terminate(),c&&clearTimeout(c),c=setTimeout((function(){c=void 0,u.spawnWorker()}),0)},e.on("nodeAdded",this.handleGraphUpdate),e.on("edgeAdded",this.handleGraphUpdate),e.on("nodeDropped",this.handleGraphUpdate),e.on("edgeDropped",this.handleGraphUpdate),this.spawnWorker()}l.prototype.isRunning=function(){return this.running},l.prototype.spawnWorker=function(){this.worker&&this.worker.terminate(),this.worker=a.createWorker(r),this.worker.addEventListener("message",this.handleMessage),this.running&&(this.running=!1,this.start())},l.prototype.handleMessage=function(e){if(this.running){var t=new Float32Array(e.data.nodes);a.assignLayoutChanges(this.graph,t,this.outputReducer),this.outputReducer&&a.readGraphPositions(this.graph,t),this.matrices.nodes=t,this.askForIterations()}},l.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},l.prototype.start=function(){if(this.killed)throw new Error("graphology-layout-forceatlas2/worker.start: layout was killed.");return this.running||(this.matrices=a.graphToByteArrays(this.graph,this.getEdgeWeight),this.running=!0,this.askForIterations(!0)),this},l.prototype.stop=function(){return this.running=!1,this},l.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=l},8833:(e,t,n)=>{var r=n(6586),i=n(1880),o={dimensions:["x","y"],center:.5,scale:1};function a(e,t,n){if(!i(t))throw new Error("graphology-layout/random: the given graph is not a valid graphology instance.");var a=(n=r(n,o)).dimensions;if(!Array.isArray(a)||2!==a.length)throw new Error("graphology-layout/random: given dimensions are invalid.");var s=n.center,l=n.scale,c=2*Math.PI,u=(s-.5)*l,d=t.order,f=a[0],p=a[1];function h(e,t){return t[f]=l*Math.cos(e*c/d)+u,t[p]=l*Math.sin(e*c/d)+u,t}var m=0;if(!e){var g={};return t.forEachNode((function(e){g[e]=h(m++,{})})),g}t.updateEachNodeAttributes((function(e,t){return h(m++,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,i={};for(var o in n){var a=t[o],s=n[o];!(r=s)||"object"!=typeof r||"function"==typeof r||Array.isArray(r)||r instanceof Set||r instanceof Map||r instanceof RegExp||r instanceof Date?i[o]=void 0===a?s:a:i[o]=e(a,s)}return i}},4363:(e,t)=>{function n(e){return"number"!=typeof e||isNaN(e)?1:e}t.Q6=function(e){return function(e,t){var n={},r=function(e){return void 0===e?t:e};"function"==typeof t&&(r=t);var i=function(t){return r(t[e])},o=function(){return r(void 0)};return"string"==typeof e?(n.fromAttributes=i,n.fromGraph=function(e,t){return i(e.getEdgeAttributes(t))},n.fromEntry=function(e,t){return i(t)},n.fromPartialEntry=n.fromEntry,n.fromMinimalEntry=n.fromEntry):"function"==typeof e?(n.fromAttributes=function(){throw new Error("graphology-utils/getters/createEdgeValueGetter: irrelevant usage.")},n.fromGraph=function(t,n){var i=t.extremities(n);return r(e(n,t.getEdgeAttributes(n),i[0],i[1],t.getNodeAttributes(i[0]),t.getNodeAttributes(i[1]),t.isUndirected(n)))},n.fromEntry=function(t,n,i,o,a,s,l){return r(e(t,n,i,o,a,s,l))},n.fromPartialEntry=function(t,n,i,o){return r(e(t,n,i,o))},n.fromMinimalEntry=function(t,n){return r(e(t,n))}):(n.fromAttributes=o,n.fromGraph=o,n.fromEntry=o,n.fromMinimalEntry=o),n}(e,n)}},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.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t,n){return i=function(){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}}()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},i.apply(null,arguments)}function o(e){var t="function"==typeof Map?new Map:void 0;return o=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)},o(e)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var s=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 l(e,t,n,r){var i=e._nodes.get(t),o=null;return i?o="mixed"===r?i.out&&i.out[n]||i.undirected&&i.undirected[n]:"directed"===r?i.out&&i.out[n]:i.undirected&&i.undirected[n]:o}function c(t){return"object"===e(t)&&null!==t&&t.constructor===Object}function u(e){var t;for(t in e)return!1;return!0}function d(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!1,writable:!0,value:n})}function f(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 p(e){return!(!c(e)||e.attributes&&!Array.isArray(e.attributes))}"function"==typeof Object.assign&&(s=Object.assign);var h,m={exports:{}},g="object"==typeof Reflect?Reflect:null,v=g&&"function"==typeof g.apply?g.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};h=g&&"function"==typeof g.ownKeys?g.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var y=Number.isNaN||function(e){return e!=e};function b(){b.init.call(this)}m.exports=b,m.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}R(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&R(e,"error",t,{once:!0})}(e,i)}))},b.EventEmitter=b,b.prototype._events=void 0,b.prototype._eventsCount=0,b.prototype._maxListeners=void 0;var x=10;function w(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function E(e){return void 0===e._maxListeners?b.defaultMaxListeners:e._maxListeners}function _(e,t,n,r){var i,o,a,s;if(w(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=E(e))>0&&a.length>i&&!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,s=l,console&&console.warn&&console.warn(s)}return e}function S(){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 C(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=S.bind(r);return i.listener=n,r.wrapFn=i,i}function O(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]: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}(i):L(i,i.length)}function k(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 R(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 i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}function P(e){if("function"!=typeof e)throw new Error("obliterator/iterator: expecting a function!");this.next=e}Object.defineProperty(b,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(e){if("number"!=typeof e||e<0||y(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");x=e}}),b.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},b.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||y(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},b.prototype.getMaxListeners=function(){return E(this)},b.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)v(s,this,t);else{var l=s.length,c=L(s,l);for(n=0;n<l;++n)v(c[n],this,t)}return!0},b.prototype.addListener=function(e,t){return _(this,e,t,!1)},b.prototype.on=b.prototype.addListener,b.prototype.prependListener=function(e,t){return _(this,e,t,!0)},b.prototype.once=function(e,t){return w(t),this.on(e,C(this,e,t)),this},b.prototype.prependOnceListener=function(e,t){return w(t),this.prependListener(e,C(this,e,t)),this},b.prototype.removeListener=function(e,t){var n,r,i,o,a;if(w(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(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},b.prototype.off=b.prototype.removeListener,b.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 i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);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},b.prototype.listeners=function(e){return O(this,e,!0)},b.prototype.rawListeners=function(e){return O(this,e,!1)},b.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):k.call(e,t)},b.prototype.listenerCount=k,b.prototype.eventNames=function(){return this._eventsCount>0?h(this._events):[]},"undefined"!=typeof Symbol&&(P.prototype[Symbol.iterator]=function(){return this}),P.of=function(){var e=arguments,t=e.length,n=0;return new P((function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}}))},P.empty=function(){return new P((function(){return{done:!0}}))},P.fromSequence=function(e){var t=0,n=e.length;return new P((function(){return t>=n?{done:!0}:{done:!1,value:e[t++]}}))},P.is=function(e){return e instanceof P||"object"==typeof e&&null!==e&&"function"==typeof e.next};var M=P,A={};A.ARRAY_BUFFER_SUPPORT="undefined"!=typeof ArrayBuffer,A.SYMBOL_SUPPORT="undefined"!=typeof Symbol;var T=M,D=A,z=D.ARRAY_BUFFER_SUPPORT,F=D.SYMBOL_SUPPORT,N=function(e){var t=function(e){return"string"==typeof e||Array.isArray(e)||z&&ArrayBuffer.isView(e)?T.fromSequence(e):"object"!=typeof e||null===e?null:F&&"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},I=N,j=function(e,t){for(var n,r=arguments.length>1?t:1/0,i=r!==1/0?new Array(r):[],o=0,a=I(e);;){if(o===r)return i;if((n=a.next()).done)return o!==t&&(i.length=o),i;i[o++]=n.value}},B=function(e){function n(t){var n;return(n=e.call(this)||this).name="GraphError",n.message=t,n}return t(n,e),n}(o(Error)),G=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="InvalidArgumentsGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a(r),n.prototype.constructor),r}return t(n,e),n}(B),U=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="NotFoundGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a(r),n.prototype.constructor),r}return t(n,e),n}(B),H=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="UsageGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a(r),n.prototype.constructor),r}return t(n,e),n}(B);function V(e,t){this.key=e,this.attributes=t,this.clear()}function W(e,t){this.key=e,this.attributes=t,this.clear()}function q(e,t){this.key=e,this.attributes=t,this.clear()}function $(e,t,n,r,i){this.key=t,this.attributes=i,this.undirected=e,this.source=n,this.target=r}function Z(e,t,n,r,i,o,a){var s,l,c,u;if(r=""+r,0===n){if(!(s=e._nodes.get(r)))throw new U("Graph.".concat(t,': could not find the "').concat(r,'" node in the graph.'));c=i,u=o}else if(3===n){if(i=""+i,!(l=e._edges.get(i)))throw new U("Graph.".concat(t,': could not find the "').concat(i,'" edge in the graph.'));var d=l.source.key,f=l.target.key;if(r===d)s=l.target;else{if(r!==f)throw new U("Graph.".concat(t,': the "').concat(r,'" node is not attached to the "').concat(i,'" edge (').concat(d,", ").concat(f,")."));s=l.source}c=o,u=a}else{if(!(l=e._edges.get(r)))throw new U("Graph.".concat(t,': could not find the "').concat(r,'" edge in the graph.'));s=1===n?l.source:l.target,c=i,u=o}return[s,c,u]}V.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.undirectedDegree=0,this.undirectedLoops=0,this.directedLoops=0,this.in={},this.out={},this.undirected={}},W.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.directedLoops=0,this.in={},this.out={}},q.prototype.clear=function(){this.undirectedDegree=0,this.undirectedLoops=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 i=this.source[e],o=i[r];if(void 0===o)return i[r]=this,void(this.undirected&&n===r||(this.target[t][n]=this));o.previous=this,this.next=o,i[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 Y=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[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,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[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,i,o){var a=Z(this,t,n,e,r,i,o),s=a[0],l=a[1],c=a[2];return s.attributes[l]=c,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:l}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i,o){var a=Z(this,t,n,e,r,i,o),s=a[0],l=a[1],c=a[2];if("function"!=typeof c)throw new G("Graph.".concat(t,": updater should be a function."));var u=s.attributes,d=c(u[l]);return u[l]=d,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:l}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[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,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[1];if(!c(s))throw new G("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,i){var o=Z(this,t,n,e,r,i),a=o[0],l=o[1];if(!c(l))throw new G("Graph.".concat(t,": provided attributes are not a plain object."));return s(a.attributes,l),this.emit("nodeAttributesUpdated",{key:a.key,type:"merge",attributes:a.attributes,data:l}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[1];if("function"!=typeof s)throw new G("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}}}],X=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new H("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new H("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,a=""+r;if(r=arguments[2],!(i=l(this,o,a,n)))throw new U("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new H("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 U("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return i.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 H("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>1){if(this.multi)throw new H("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,o=""+arguments[1];if(!(r=l(this,i,o,n)))throw new U("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(o,'").'))}else{if("mixed"!==n)throw new H("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 U("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 i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new H("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new H("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,a=""+r;if(r=arguments[2],!(i=l(this,o,a,n)))throw new U("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new H("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 U("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return i.attributes.hasOwnProperty(r)}}},{name:function(e){return"set".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new H("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new H("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],i=arguments[3],!(o=l(this,a,s,n)))throw new U("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(s,'").'))}else{if("mixed"!==n)throw new H("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 U("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return o.attributes[r]=i,this.emit("edgeAttributesUpdated",{key:o.key,type:"set",attributes:o.attributes,name:r}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new H("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new H("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],i=arguments[3],!(o=l(this,a,s,n)))throw new U("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(s,'").'))}else{if("mixed"!==n)throw new H("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 U("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if("function"!=typeof i)throw new G("Graph.".concat(t,": updater should be a function."));return o.attributes[r]=i(o.attributes[r]),this.emit("edgeAttributesUpdated",{key:o.key,type:"set",attributes:o.attributes,name:r}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new H("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new H("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,a=""+r;if(r=arguments[2],!(i=l(this,o,a,n)))throw new U("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new H("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 U("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return delete i.attributes[r],this.emit("edgeAttributesUpdated",{key:i.key,type:"remove",attributes:i.attributes,name:r}),this}}},{name:function(e){return"replace".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new H("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new H("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,a=""+r;if(r=arguments[2],!(i=l(this,o,a,n)))throw new U("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new H("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 U("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if(!c(r))throw new G("Graph.".concat(t,": provided attributes are not a plain object."));return i.attributes=r,this.emit("edgeAttributesUpdated",{key:i.key,type:"replace",attributes:i.attributes}),this}}},{name:function(e){return"merge".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new H("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new H("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,a=""+r;if(r=arguments[2],!(i=l(this,o,a,n)))throw new U("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new H("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 U("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if(!c(r))throw new G("Graph.".concat(t,": provided attributes are not a plain object."));return s(i.attributes,r),this.emit("edgeAttributesUpdated",{key:i.key,type:"merge",attributes:i.attributes,data:r}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new H("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new H("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,a=""+r;if(r=arguments[2],!(i=l(this,o,a,n)))throw new U("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new H("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 U("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if("function"!=typeof r)throw new G("Graph.".concat(t,": provided updater is not a function."));return i.attributes=r(i.attributes),this.emit("edgeAttributesUpdated",{key:i.key,type:"update",attributes:i.attributes}),this}}}],K=M,Q=N,J=function(){var e=arguments,t=null,n=-1;return new K((function(){for(var r=null;;){if(null===t){if(++n>=e.length)return{done:!0};t=Q(e[n])}if(!0!==(r=t.next()).done)break;t=null}return r}))},ee=[{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 te(e,t,n,r){var i=!1;for(var o in t)if(o!==r){var a=t[o];if(i=n(a.key,a.attributes,a.source.key,a.target.key,a.source.attributes,a.target.attributes,a.undirected),e&&i)return a.key}}function ne(e,t,n,r){var i,o,a,s=!1;for(var l in t)if(l!==r){i=t[l];do{if(o=i.source,a=i.target,s=n(i.key,i.attributes,o.key,a.key,o.attributes,a.attributes,i.undirected),e&&s)return i.key;i=i.next}while(void 0!==i)}}function re(e,t){var n,r=Object.keys(e),i=r.length,o=0;return new M((function(){do{if(n)n=n.next;else{if(o>=i)return{done:!0};var a=r[o++];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 ie(e,t,n,r){var i=t[n];if(i){var o=i.source,a=i.target;return r(i.key,i.attributes,o.key,a.key,o.attributes,a.attributes,i.undirected)&&e?i.key:void 0}}function oe(e,t,n,r){var i=t[n];if(i){var o=!1;do{if(o=r(i.key,i.attributes,i.source.key,i.target.key,i.source.attributes,i.target.attributes,i.undirected),e&&o)return i.key;i=i.next}while(void 0!==i)}}function ae(e,t){var n=e[t];return void 0!==n.next?new M((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}})):M.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 se(e,t,n,r){if(0!==t.size)for(var i,o,a="mixed"!==n&&n!==t.type,s="undirected"===n,l=!1,c=t._edges.values();!0!==(i=c.next()).done;)if(o=i.value,!a||o.undirected===s){var u=o,d=u.key,f=u.attributes,p=u.source,h=u.target;if(l=r(d,f,p.key,h.key,p.attributes,h.attributes,o.undirected),e&&l)return d}}function le(e,t,n,r,i,o){var a,s=t?ne:te;if("undirected"!==n){if("out"!==r&&(a=s(e,i.in,o),e&&a))return a;if("in"!==r&&(a=s(e,i.out,o,r?void 0:i.key),e&&a))return a}if("directed"!==n&&(a=s(e,i.undirected,o),e&&a))return a}function ce(e,t,n,r,i,o,a){var s,l=n?oe:ie;if("undirected"!==t){if(void 0!==i.in&&"out"!==r&&(s=l(e,i.in,o,a),e&&s))return s;if(void 0!==i.out&&"in"!==r&&(r||i.key!==o)&&(s=l(e,i.out,o,a),e&&s))return s}if("directed"!==t&&void 0!==i.undirected&&(s=l(e,i.undirected,o,a),e&&s))return s}var ue=[{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 de(){this.A=null,this.B=null}function fe(e,t,n,r,i){for(var o in r){var a=r[o],s=a.source,l=a.target,c=s===n?l:s;if(!t||!t.has(c.key)){var u=i(c.key,c.attributes);if(e&&u)return c.key}}}function pe(e,t,n,r,i){if("mixed"!==t){if("undirected"===t)return fe(e,null,r,r.undirected,i);if("string"==typeof n)return fe(e,null,r,r[n],i)}var o,a=new de;if("undirected"!==t){if("out"!==n){if(o=fe(e,null,r,r.in,i),e&&o)return o;a.wrap(r.in)}if("in"!==n){if(o=fe(e,a,r,r.out,i),e&&o)return o;a.wrap(r.out)}}if("directed"!==t&&(o=fe(e,a,r,r.undirected,i),e&&o))return o}function he(e,t,n){var r=Object.keys(n),i=r.length,o=0;return new M((function(){var a=null;do{if(o>=i)return e&&e.wrap(n),{done:!0};var s=n[r[o++]],l=s.source,c=s.target;a=l===t?c:l,e&&e.has(a.key)&&(a=null)}while(null===a);return{done:!1,value:{neighbor:a.key,attributes:a.attributes}}}))}function me(e,t,n,r,i){for(var o,a,s,l,c,u,d,f=r._nodes.values(),p=r.type;!0!==(o=f.next()).done;){var h=!1;if(a=o.value,"undirected"!==p)for(s in l=a.out){c=l[s];do{if(u=c.target,h=!0,d=i(a.key,u.key,a.attributes,u.attributes,c.key,c.attributes,c.undirected),e&&d)return c;c=c.next}while(c)}if("directed"!==p)for(s in l=a.undirected)if(!(t&&a.key>s)){c=l[s];do{if((u=c.target).key!==s&&(u=c.source),h=!0,d=i(a.key,u.key,a.attributes,u.attributes,c.key,c.attributes,c.undirected),e&&d)return c;c=c.next}while(c)}if(n&&!h&&(d=i(a.key,null,a.attributes,null,null,null,null),e&&d))return null}}function ge(e){if(!c(e))throw new G('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 G("Graph.import: serialized node is missing its key.");if("attributes"in e&&(!c(e.attributes)||null===e.attributes))throw new G("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.")}function ve(e){if(!c(e))throw new G('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 G("Graph.import: serialized edge is missing its source.");if(!("target"in e))throw new G("Graph.import: serialized edge is missing its target.");if("attributes"in e&&(!c(e.attributes)||null===e.attributes))throw new G("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.");if("undirected"in e&&"boolean"!=typeof e.undirected)throw new G("Graph.import: invalid undirectedness information. Undirected should be boolean or omitted.")}de.prototype.wrap=function(e){null===this.A?this.A=e:null===this.B&&(this.B=e)},de.prototype.has=function(e){return null!==this.A&&e in this.A||null!==this.B&&e in this.B};var ye,be=(ye=255&Math.floor(256*Math.random()),function(){return ye++}),xe=new Set(["directed","undirected","mixed"]),we=new Set(["domain","_events","_eventsCount","_maxListeners"]),Ee={allowSelfLoops:!0,multi:!1,type:"mixed"};function _e(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 Se(e,t,n,r,i,o,a,s){if(!r&&"undirected"===e.type)throw new H("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 H("Graph.".concat(t,": you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead."));if(s&&!c(s))throw new G("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(s,'"'));if(o=""+o,a=""+a,s=s||{},!e.allowSelfLoops&&o===a)throw new H("Graph.".concat(t,': source & target are the same ("').concat(o,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var l=e._nodes.get(o),u=e._nodes.get(a);if(!l)throw new U("Graph.".concat(t,': source node "').concat(o,'" not found.'));if(!u)throw new U("Graph.".concat(t,': target node "').concat(a,'" not found.'));var d={key:null,undirected:r,source:o,target:a,attributes:s};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new H("Graph.".concat(t,': the "').concat(i,'" edge already exists in the graph.'));if(!e.multi&&(r?void 0!==l.undirected[a]:void 0!==l.out[a]))throw new H("Graph.".concat(t,': an edge linking "').concat(o,'" 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,i,l,u,s);e._edges.set(i,f);var p=o===a;return r?(l.undirectedDegree++,u.undirectedDegree++,p&&(l.undirectedLoops++,e._undirectedSelfLoopCount++)):(l.outDegree++,u.inDegree++,p&&(l.directedLoops++,e._directedSelfLoopCount++)),e.multi?f.attachMulti():f.attach(),r?e._undirectedSize++:e._directedSize++,d.key=i,e.emit("edgeAdded",d),i}function Ce(e,t,n,r,i,o,a,l,u){if(!r&&"undirected"===e.type)throw new H("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 H("Graph.".concat(t,": you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead."));if(l)if(u){if("function"!=typeof l)throw new G("Graph.".concat(t,': invalid updater function. Expecting a function but got "').concat(l,'"'))}else if(!c(l))throw new G("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(l,'"'));var d;if(o=""+o,a=""+a,u&&(d=l,l=void 0),!e.allowSelfLoops&&o===a)throw new H("Graph.".concat(t,': source & target are the same ("').concat(o,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var f,p,h=e._nodes.get(o),m=e._nodes.get(a);if(!n&&(f=e._edges.get(i))){if(!(f.source.key===o&&f.target.key===a||r&&f.source.key===a&&f.target.key===o))throw new H("Graph.".concat(t,': inconsistency detected when attempting to merge the "').concat(i,'" edge with "').concat(o,'" source & "').concat(a,'" target vs. ("').concat(f.source.key,'", "').concat(f.target.key,'").'));p=f}if(p||e.multi||!h||(p=r?h.undirected[a]:h.out[a]),p){var g=[p.key,!1,!1,!1];if(u?!d:!l)return g;if(u){var v=p.attributes;p.attributes=d(v),e.emit("edgeAttributesUpdated",{type:"replace",key:p.key,attributes:p.attributes})}else s(p.attributes,l),e.emit("edgeAttributesUpdated",{type:"merge",key:p.key,attributes:p.attributes,data:l});return g}l=l||{},u&&d&&(l=d(l));var y={key:null,undirected:r,source:o,target:a,attributes:l};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new H("Graph.".concat(t,': the "').concat(i,'" edge already exists in the graph.'));var b=!1,x=!1;h||(h=_e(e,o,{}),b=!0,o===a&&(m=h,x=!0)),m||(m=_e(e,a,{}),x=!0),f=new $(r,i,h,m,l),e._edges.set(i,f);var w=o===a;return r?(h.undirectedDegree++,m.undirectedDegree++,w&&(h.undirectedLoops++,e._undirectedSelfLoopCount++)):(h.outDegree++,m.inDegree++,w&&(h.directedLoops++,e._directedSelfLoopCount++)),e.multi?f.attachMulti():f.attach(),r?e._undirectedSize++:e._directedSize++,y.key=i,e.emit("edgeAdded",y),[i,!0,b,x]}function Oe(e,t){e._edges.delete(t.key);var n=t.source,r=t.target,i=t.attributes,o=t.undirected,a=n===r;o?(n.undirectedDegree--,r.undirectedDegree--,a&&(n.undirectedLoops--,e._undirectedSelfLoopCount--)):(n.outDegree--,r.inDegree--,a&&(n.directedLoops--,e._directedSelfLoopCount--)),e.multi?t.detachMulti():t.detach(),o?e._undirectedSize--:e._directedSize--,e.emit("edgeDropped",{key:t.key,attributes:i,source:n.key,target:r.key,undirected:o})}var ke=function(n){function r(e){var t;if(t=n.call(this)||this,"boolean"!=typeof(e=s({},Ee,e)).multi)throw new G("Graph.constructor: invalid 'multi' option. Expecting a boolean but got \"".concat(e.multi,'".'));if(!xe.has(e.type))throw new G('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 G("Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got \"".concat(e.allowSelfLoops,'".'));var r="mixed"===e.type?V:"directed"===e.type?W:q;d(a(t),"NodeDataClass",r);var i="geid_"+be()+"_",o=0;return d(a(t),"_attributes",{}),d(a(t),"_nodes",new Map),d(a(t),"_edges",new Map),d(a(t),"_directedSize",0),d(a(t),"_undirectedSize",0),d(a(t),"_directedSelfLoopCount",0),d(a(t),"_undirectedSelfLoopCount",0),d(a(t),"_edgeKeyGenerator",(function(){var e;do{e=i+o++}while(t._edges.has(e));return e})),d(a(t),"_options",e),we.forEach((function(e){return d(a(t),e,t[e])})),f(a(t),"order",(function(){return t._nodes.size})),f(a(t),"size",(function(){return t._edges.size})),f(a(t),"directedSize",(function(){return t._directedSize})),f(a(t),"undirectedSize",(function(){return t._undirectedSize})),f(a(t),"selfLoopCount",(function(){return t._directedSelfLoopCount+t._undirectedSelfLoopCount})),f(a(t),"directedSelfLoopCount",(function(){return t._directedSelfLoopCount})),f(a(t),"undirectedSelfLoopCount",(function(){return t._undirectedSelfLoopCount})),f(a(t),"multi",t._options.multi),f(a(t),"type",t._options.type),f(a(t),"allowSelfLoops",t._options.allowSelfLoops),f(a(t),"implementation",(function(){return"graphology"})),t}t(r,n);var i=r.prototype;return i._resetInstanceCounters=function(){this._directedSize=0,this._undirectedSize=0,this._directedSelfLoopCount=0,this._undirectedSelfLoopCount=0},i.hasNode=function(e){return this._nodes.has(""+e)},i.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 i=this._nodes.get(e);return!!i&&i.out.hasOwnProperty(t)}throw new G("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."))},i.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 i=this._nodes.get(e);return!!i&&i.undirected.hasOwnProperty(t)}throw new G("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."))},i.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);return!!r&&(void 0!==r.out&&r.out.hasOwnProperty(t)||void 0!==r.undirected&&r.undirected.hasOwnProperty(t))}throw new G("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."))},i.directedEdge=function(e,t){if("undirected"!==this.type){if(e=""+e,t=""+t,this.multi)throw new H("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 U('Graph.directedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new U('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}},i.undirectedEdge=function(e,t){if("directed"!==this.type){if(e=""+e,t=""+t,this.multi)throw new H("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 U('Graph.undirectedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new U('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}},i.edge=function(e,t){if(this.multi)throw new H("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 U('Graph.edge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new U('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},i.areDirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new U('Graph.areDirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&(t in n.in||t in n.out)},i.areOutNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new U('Graph.areOutNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.out},i.areInNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new U('Graph.areInNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.in},i.areUndirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new U('Graph.areUndirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"directed"!==this.type&&t in n.undirected},i.areNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new U('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},i.areInboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new U('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},i.areOutboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new U('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},i.inDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.inDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree},i.outDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.outDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.outDegree},i.directedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.directedDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree+t.outDegree},i.undirectedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.undirectedDegree: could not find the "'.concat(e,'" node in the graph.'));return"directed"===this.type?0:t.undirectedDegree},i.inboundDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('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},i.outboundDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('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},i.degree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('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},i.inDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.inDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree-t.directedLoops},i.outDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.outDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.outDegree-t.directedLoops},i.directedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.directedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree+t.outDegree-2*t.directedLoops},i.undirectedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.undirectedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"directed"===this.type?0:t.undirectedDegree-2*t.undirectedLoops},i.inboundDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.inboundDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var n=0,r=0;return"directed"!==this.type&&(n+=t.undirectedDegree,r+=2*t.undirectedLoops),"undirected"!==this.type&&(n+=t.inDegree,r+=t.directedLoops),n-r},i.outboundDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.outboundDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var n=0,r=0;return"directed"!==this.type&&(n+=t.undirectedDegree,r+=2*t.undirectedLoops),"undirected"!==this.type&&(n+=t.outDegree,r+=t.directedLoops),n-r},i.degreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.degreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var n=0,r=0;return"directed"!==this.type&&(n+=t.undirectedDegree,r+=2*t.undirectedLoops),"undirected"!==this.type&&(n+=t.inDegree+t.outDegree,r+=2*t.directedLoops),n-r},i.source=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new U('Graph.source: could not find the "'.concat(e,'" edge in the graph.'));return t.source.key},i.target=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new U('Graph.target: could not find the "'.concat(e,'" edge in the graph.'));return t.target.key},i.extremities=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new U('Graph.extremities: could not find the "'.concat(e,'" edge in the graph.'));return[t.source.key,t.target.key]},i.opposite=function(e,t){e=""+e,t=""+t;var n=this._edges.get(t);if(!n)throw new U('Graph.opposite: could not find the "'.concat(t,'" edge in the graph.'));var r=n.source.key,i=n.target.key;if(e===r)return i;if(e===i)return r;throw new U('Graph.opposite: the "'.concat(e,'" node is not attached to the "').concat(t,'" edge (').concat(r,", ").concat(i,")."))},i.hasExtremity=function(e,t){e=""+e,t=""+t;var n=this._edges.get(e);if(!n)throw new U('Graph.hasExtremity: could not find the "'.concat(e,'" edge in the graph.'));return n.source.key===t||n.target.key===t},i.isUndirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new U('Graph.isUndirected: could not find the "'.concat(e,'" edge in the graph.'));return t.undirected},i.isDirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new U('Graph.isDirected: could not find the "'.concat(e,'" edge in the graph.'));return!t.undirected},i.isSelfLoop=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new U('Graph.isSelfLoop: could not find the "'.concat(e,'" edge in the graph.'));return t.source===t.target},i.addNode=function(e,t){var n=function(e,t,n){if(n&&!c(n))throw new G('Graph.addNode: invalid attributes. Expecting an object but got "'.concat(n,'"'));if(t=""+t,n=n||{},e._nodes.has(t))throw new H('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},i.mergeNode=function(e,t){if(t&&!c(t))throw new G('Graph.mergeNode: invalid attributes. Expecting an object but got "'.concat(t,'"'));e=""+e,t=t||{};var n=this._nodes.get(e);return n?(t&&(s(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])},i.updateNode=function(e,t){if(t&&"function"!=typeof t)throw new G('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 i=t?t({}):{};return n=new this.NodeDataClass(e,i),this._nodes.set(e,n),this.emit("nodeAdded",{key:e,attributes:i}),[e,!0]},i.dropNode=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new U('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{Oe(this,t),t=t.next}while(t)}for(var i in n.in){t=n.in[i];do{Oe(this,t),t=t.next}while(t)}}if("directed"!==this.type)for(var o in n.undirected){t=n.undirected[o];do{Oe(this,t),t=t.next}while(t)}this._nodes.delete(e),this.emit("nodeDropped",{key:e,attributes:n.attributes})},i.dropEdge=function(e){var t;if(arguments.length>1){var n=""+arguments[0],r=""+arguments[1];if(!(t=l(this,n,r,this.type)))throw new U('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 U('Graph.dropEdge: could not find the "'.concat(e,'" edge in the graph.'));return Oe(this,t),this},i.dropDirectedEdge=function(e,t){if(arguments.length<2)throw new H("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 H("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=l(this,e=""+e,t=""+t,"directed");if(!n)throw new U('Graph.dropDirectedEdge: could not find a "'.concat(e,'" -> "').concat(t,'" edge in the graph.'));return Oe(this,n),this},i.dropUndirectedEdge=function(e,t){if(arguments.length<2)throw new H("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 H("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=l(this,e,t,"undirected");if(!n)throw new U('Graph.dropUndirectedEdge: could not find a "'.concat(e,'" -> "').concat(t,'" edge in the graph.'));return Oe(this,n),this},i.clear=function(){this._edges.clear(),this._nodes.clear(),this._resetInstanceCounters(),this.emit("cleared")},i.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")},i.getAttribute=function(e){return this._attributes[e]},i.getAttributes=function(){return this._attributes},i.hasAttribute=function(e){return this._attributes.hasOwnProperty(e)},i.setAttribute=function(e,t){return this._attributes[e]=t,this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:e}),this},i.updateAttribute=function(e,t){if("function"!=typeof t)throw new G("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},i.removeAttribute=function(e){return delete this._attributes[e],this.emit("attributesUpdated",{type:"remove",attributes:this._attributes,name:e}),this},i.replaceAttributes=function(e){if(!c(e))throw new G("Graph.replaceAttributes: provided attributes are not a plain object.");return this._attributes=e,this.emit("attributesUpdated",{type:"replace",attributes:this._attributes}),this},i.mergeAttributes=function(e){if(!c(e))throw new G("Graph.mergeAttributes: provided attributes are not a plain object.");return s(this._attributes,e),this.emit("attributesUpdated",{type:"merge",attributes:this._attributes,data:e}),this},i.updateAttributes=function(e){if("function"!=typeof e)throw new G("Graph.updateAttributes: provided updater is not a function.");return this._attributes=e(this._attributes),this.emit("attributesUpdated",{type:"update",attributes:this._attributes}),this},i.updateEachNodeAttributes=function(e,t){if("function"!=typeof e)throw new G("Graph.updateEachNodeAttributes: expecting an updater function.");if(t&&!p(t))throw new G("Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,i=this._nodes.values();!0!==(n=i.next()).done;)(r=n.value).attributes=e(r.key,r.attributes);this.emit("eachNodeAttributesUpdated",{hints:t||null})},i.updateEachEdgeAttributes=function(e,t){if("function"!=typeof e)throw new G("Graph.updateEachEdgeAttributes: expecting an updater function.");if(t&&!p(t))throw new G("Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,i,o,a=this._edges.values();!0!==(n=a.next()).done;)i=(r=n.value).source,o=r.target,r.attributes=e(r.key,r.attributes,i.key,o.key,i.attributes,o.attributes,r.undirected);this.emit("eachEdgeAttributesUpdated",{hints:t||null})},i.forEachAdjacencyEntry=function(e){if("function"!=typeof e)throw new G("Graph.forEachAdjacencyEntry: expecting a callback.");me(!1,!1,!1,this,e)},i.forEachAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new G("Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.");me(!1,!1,!0,this,e)},i.forEachAssymetricAdjacencyEntry=function(e){if("function"!=typeof e)throw new G("Graph.forEachAssymetricAdjacencyEntry: expecting a callback.");me(!1,!0,!1,this,e)},i.forEachAssymetricAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new G("Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.");me(!1,!0,!0,this,e)},i.nodes=function(){return"function"==typeof Array.from?Array.from(this._nodes.keys()):j(this._nodes.keys(),this._nodes.size)},i.forEachNode=function(e){if("function"!=typeof e)throw new G("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)},i.findNode=function(e){if("function"!=typeof e)throw new G("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},i.mapNodes=function(e){if("function"!=typeof e)throw new G("Graph.mapNode: expecting a callback.");for(var t,n,r=this._nodes.values(),i=new Array(this.order),o=0;!0!==(t=r.next()).done;)n=t.value,i[o++]=e(n.key,n.attributes);return i},i.someNode=function(e){if("function"!=typeof e)throw new G("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},i.everyNode=function(e){if("function"!=typeof e)throw new G("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},i.filterNodes=function(e){if("function"!=typeof e)throw new G("Graph.filterNodes: expecting a callback.");for(var t,n,r=this._nodes.values(),i=[];!0!==(t=r.next()).done;)e((n=t.value).key,n.attributes)&&i.push(n.key);return i},i.reduceNodes=function(e,t){if("function"!=typeof e)throw new G("Graph.reduceNodes: expecting a callback.");if(arguments.length<2)throw new G("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,i=t,o=this._nodes.values();!0!==(n=o.next()).done;)i=e(i,(r=n.value).key,r.attributes);return i},i.nodeEntries=function(){var e=this._nodes.values();return new M((function(){var t=e.next();if(t.done)return t;var n=t.value;return{value:{node:n.key,attributes:n.attributes},done:!1}}))},i.export=function(){var e=this,t=new Array(this._nodes.size),n=0;this._nodes.forEach((function(e,r){t[n++]=function(e,t){var n={key:e};return u(t.attributes)||(n.attributes=s({},t.attributes)),n}(r,e)}));var r=new Array(this._edges.size);return n=0,this._edges.forEach((function(t,i){r[n++]=function(e,t,n){var r={key:t,source:n.source.key,target:n.target.key};return u(n.attributes)||(r.attributes=s({},n.attributes)),"mixed"===e&&n.undirected&&(r.undirected=!0),r}(e.type,i,t)})),{options:{type:this.type,multi:this.multi,allowSelfLoops:this.allowSelfLoops},attributes:this.getAttributes(),nodes:t,edges:r}},i.import=function(e){var t,n,i,o,a,s=this,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof r)return e.forEachNode((function(e,t){l?s.mergeNode(e,t):s.addNode(e,t)})),e.forEachEdge((function(e,t,n,r,i,o,a){l?a?s.mergeUndirectedEdgeWithKey(e,n,r,t):s.mergeDirectedEdgeWithKey(e,n,r,t):a?s.addUndirectedEdgeWithKey(e,n,r,t):s.addDirectedEdgeWithKey(e,n,r,t)})),this;if(!c(e))throw new G("Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.");if(e.attributes){if(!c(e.attributes))throw new G("Graph.import: invalid attributes. Expecting a plain object.");l?this.mergeAttributes(e.attributes):this.replaceAttributes(e.attributes)}if(e.nodes){if(i=e.nodes,!Array.isArray(i))throw new G("Graph.import: invalid nodes. Expecting an array.");for(t=0,n=i.length;t<n;t++){ge(o=i[t]);var u=o,d=u.key,f=u.attributes;l?this.mergeNode(d,f):this.addNode(d,f)}}if(e.edges){var p=!1;if("undirected"===this.type&&(p=!0),i=e.edges,!Array.isArray(i))throw new G("Graph.import: invalid edges. Expecting an array.");for(t=0,n=i.length;t<n;t++){ve(a=i[t]);var h=a,m=h.source,g=h.target,v=h.attributes,y=h.undirected,b=void 0===y?p:y;"key"in a?(l?b?this.mergeUndirectedEdgeWithKey:this.mergeDirectedEdgeWithKey:b?this.addUndirectedEdgeWithKey:this.addDirectedEdgeWithKey).call(this,a.key,m,g,v):(l?b?this.mergeUndirectedEdge:this.mergeDirectedEdge:b?this.addUndirectedEdge:this.addDirectedEdge).call(this,m,g,v)}}return this},i.nullCopy=function(e){var t=new r(s({},this._options,e));return t.replaceAttributes(s({},this.getAttributes())),t},i.emptyCopy=function(e){var t=this.nullCopy(e);return this._nodes.forEach((function(e,n){var r=s({},e.attributes);e=new t.NodeDataClass(n,r),t._nodes.set(n,e)})),t},i.copy=function(e){if("string"==typeof(e=e||{}).type&&e.type!==this.type&&"mixed"!==e.type)throw new H('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 H("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 H("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),i=this._edges.values();!0!==(t=i.next()).done;)Se(r,"copy",!1,(n=t.value).undirected,n.key,n.source.key,n.target.key,s({},n.attributes));return r},i.toJSON=function(){return this.export()},i.toString=function(){return"[object Graph]"},i.inspect=function(){var t=this,n={};this._nodes.forEach((function(e,t){n[t]=e.attributes}));var r={},i={};this._edges.forEach((function(e,n){var o,a=e.undirected?"--":"->",s="",l=e.source.key,c=e.target.key;e.undirected&&l>c&&(o=l,l=c,c=o);var u="(".concat(l,")").concat(a,"(").concat(c,")");n.startsWith("geid_")?t.multi&&(void 0===i[u]?i[u]=0:i[u]++,s+="".concat(i[u],". ")):s+="[".concat(n,"]: "),r[s+=u]=e.attributes}));var o={};for(var a in this)this.hasOwnProperty(a)&&!we.has(a)&&"function"!=typeof this[a]&&"symbol"!==e(a)&&(o[a]=this[a]);return o.attributes=this._attributes,o.nodes=n,o.edges=r,d(o,"constructor",this.constructor),o},r}(m.exports.EventEmitter);"undefined"!=typeof Symbol&&(ke.prototype[Symbol.for("nodejs.util.inspect.custom")]=ke.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?Se:Ce;e.generateKey?ke.prototype[n]=function(i,o,a){return r(this,n,!0,"undirected"===(e.type||this.type),null,i,o,a,"update"===t)}:ke.prototype[n]=function(i,o,a,s){return r(this,n,!1,"undirected"===(e.type||this.type),i,o,a,s,"update"===t)}}))})),function(e){Y.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)}))}(ke),function(e){X.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")}))}(ke),function(e){ee.forEach((function(t){!function(e,t){var n=t.name,r=t.type,i=t.direction;e.prototype[n]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return[];if(!arguments.length)return function(e,t){if(0===e.size)return[];if("mixed"===t||t===e.type)return"function"==typeof Array.from?Array.from(e._edges.keys()):j(e._edges.keys(),e._edges.size);for(var n,r,i="undirected"===t?e.undirectedSize:e.directedSize,o=new Array(i),a="undirected"===t,s=e._edges.values(),l=0;!0!==(n=s.next()).done;)(r=n.value).undirected===a&&(o[l++]=r.key);return o}(this,r);if(1===arguments.length){e=""+e;var o=this._nodes.get(e);if(void 0===o)throw new U("Graph.".concat(n,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n,r){var i=[];return le(!1,e,t,n,r,(function(e){i.push(e)})),i}(this.multi,"mixed"===r?this.type:r,i,o)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new U("Graph.".concat(n,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new U("Graph.".concat(n,': could not find the "').concat(t,'" target node in the graph.'));return function(e,t,n,r,i){var o=[];return ce(!1,e,t,n,r,i,(function(e){o.push(e)})),o}(r,this.multi,i,a,t)}throw new G("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,i=t.direction,o="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(e,t,n){if("mixed"===r||"mixed"===this.type||r===this.type){if(1===arguments.length)return se(!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 U("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return le(!1,this.multi,"mixed"===r?this.type:r,i,a,n)}if(3===arguments.length){e=""+e,t=""+t;var s=this._nodes.get(e);if(!s)throw new U("Graph.".concat(o,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new U("Graph.".concat(o,': could not find the "').concat(t,'" target node in the graph.'));return ce(!1,r,this.multi,i,s,t,n)}throw new G("Graph.".concat(o,": 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 i=0;"directed"!==r&&(i+=this.undirectedSize),"undirected"!==r&&(i+=this.directedSize),e=new Array(i);var a=0;t.push((function(t,r,i,o,s,l,c){e[a++]=n(t,r,i,o,s,l,c)}))}else e=[],t.push((function(t,r,i,o,a,s,l){e.push(n(t,r,i,o,a,s,l))}));return this[o].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,i,o,a,s,l){t(e,r,i,o,a,s,l)&&n.push(e)})),this[o].apply(this,e),n};var l="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[l]=function(){var e,t,n=Array.prototype.slice.call(arguments);if(n.length<2||n.length>4)throw new G("Graph.".concat(l,": 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 G("Graph.".concat(l,": 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,i,o,a,s,l){r=e(r,t,n,i,o,a,s,l)})),this[o].apply(this,n),r}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o="find"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(e,t,n){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return!1;if(1===arguments.length)return se(!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 U("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return le(!0,this.multi,"mixed"===r?this.type:r,i,a,n)}if(3===arguments.length){e=""+e,t=""+t;var s=this._nodes.get(e);if(!s)throw new U("Graph.".concat(o,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new U("Graph.".concat(o,': could not find the "').concat(t,'" target node in the graph.'));return ce(!0,r,this.multi,i,s,t,n)}throw new G("Graph.".concat(o,": 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,i,o,a,s){return t(e,n,r,i,o,a,s)})),!!this[o].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,i,o,a,s){return!t(e,n,r,i,o,a,s)})),!this[o].apply(this,e)}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o=n.slice(0,-1)+"Entries";e.prototype[o]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return M.empty();if(!arguments.length)return function(e,t){if(0===e.size)return M.empty();var n="mixed"!==t&&t!==e.type,r="undirected"===t,i=e._edges.values();return new M((function(){for(var e,t;;){if((e=i.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}}))}(this,r);if(1===arguments.length){e=""+e;var n=this._nodes.get(e);if(!n)throw new U("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){var r=M.empty();return"undirected"!==e&&("out"!==t&&void 0!==n.in&&(r=J(r,re(n.in))),"in"!==t&&void 0!==n.out&&(r=J(r,re(n.out,t?void 0:n.key)))),"directed"!==e&&void 0!==n.undirected&&(r=J(r,re(n.undirected))),r}(r,i,n)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new U("Graph.".concat(o,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new U("Graph.".concat(o,': could not find the "').concat(t,'" target node in the graph.'));return function(e,t,n,r){var i=M.empty();return"undirected"!==e&&(void 0!==n.in&&"out"!==t&&r in n.in&&(i=J(i,ae(n.in,r))),void 0!==n.out&&"in"!==t&&r in n.out&&(t||n.key!==r)&&(i=J(i,ae(n.out,r)))),"directed"!==e&&void 0!==n.undirected&&r in n.undirected&&(i=J(i,ae(n.undirected,r))),i}(r,i,a,t)}throw new G("Graph.".concat(o,": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length,")."))}}(e,t)}))}(ke),function(e){ue.forEach((function(t){(function(e,t){var n=t.name,r=t.type,i=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 U("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 pe(!1,e,t,n,(function(e){r.push(e)})),r}("mixed"===r?this.type:r,i,t)}})(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=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 U("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));pe(!1,"mixed"===r?this.type:r,i,n,t)}};var a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(e,t){var n=[];return this[o](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[o](e,(function(e,r){t(e,r)&&n.push(e)})),n};var l="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[l]=function(e,t,n){if(arguments.length<3)throw new G("Graph.".concat(l,": 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[o](e,(function(e,n){r=t(r,e,n)})),r}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o=n[0].toUpperCase()+n.slice(1,-1),a="find"+o;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 U("Graph.".concat(a,': could not find the "').concat(e,'" node in the graph.'));return pe(!0,"mixed"===r?this.type:r,i,n,t)}};var s="some"+o;e.prototype[s]=function(e,t){return!!this[a](e,t)};var l="every"+o;e.prototype[l]=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,i=t.direction,o=n.slice(0,-1)+"Entries";e.prototype[o]=function(e){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return M.empty();e=""+e;var t=this._nodes.get(e);if(void 0===t)throw new U("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){if("mixed"!==e){if("undirected"===e)return he(null,n,n.undirected);if("string"==typeof t)return he(null,n,n[t])}var r=M.empty(),i=new de;return"undirected"!==e&&("out"!==t&&(r=J(r,he(i,n,n.in))),"in"!==t&&(r=J(r,he(i,n,n.out)))),"directed"!==e&&(r=J(r,he(i,n,n.undirected))),r}("mixed"===r?this.type:r,i,t)}}(e,t)}))}(ke);var Le=function(e){function n(t){var n=s({type:"directed"},t);if("multi"in n&&!1!==n.multi)throw new G("DirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("directed"!==n.type)throw new G('DirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(ke),Re=function(e){function n(t){var n=s({type:"undirected"},t);if("multi"in n&&!1!==n.multi)throw new G("UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("undirected"!==n.type)throw new G('UndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(ke),Pe=function(e){function n(t){var n=s({multi:!0},t);if("multi"in n&&!0!==n.multi)throw new G("MultiGraph.from: inconsistent indication that the graph should be simple in given options!");return e.call(this,n)||this}return t(n,e),n}(ke),Me=function(e){function n(t){var n=s({type:"directed",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new G("MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("directed"!==n.type)throw new G('MultiDirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(ke),Ae=function(e){function n(t){var n=s({type:"undirected",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new G("MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("undirected"!==n.type)throw new G('MultiUndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(ke);function Te(e){e.from=function(t,n){var r=s({},t.options,n),i=new e(r);return i.import(t),i}}return Te(ke),Te(Le),Te(Re),Te(Pe),Te(Me),Te(Ae),ke.Graph=ke,ke.DirectedGraph=Le,ke.UndirectedGraph=Re,ke.MultiGraph=Pe,ke.MultiDirectedGraph=Me,ke.MultiUndirectedGraph=Ae,ke.InvalidArgumentsGraphError=G,ke.NotFoundGraphError=U,ke.UsageGraphError=H,ke}()},3463:(e,t,n)=>{"use strict";var r=n(8570),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=f(n,v);try{c(t,v,y)}catch(e){}}}}return t}},9612:(e,t,n)=>{var r=n(2118),i=n(6909),o=n(8138),a=n(4174),s=n(7942);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},235:(e,t,n)=>{var r=n(3945),i=n(1846),o=n(8028),a=n(2344),s=n(4769);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},326:(e,t,n)=>{var r=n(8761)(n(7772),"Map");e.exports=r},6738:(e,t,n)=>{var r=n(2411),i=n(6417),o=n(6928),a=n(9493),s=n(4150);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},857:(e,t,n)=>{var r=n(7772).Symbol;e.exports=r},343:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},2218:(e,t,n)=>{var r=n(1225);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},3324:(e,t,n)=>{var r=n(7297),i=n(3812);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},3366:(e,t,n)=>{var r=n(857),i=n(2107),o=n(7157),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},6840:(e,t,n)=>{var r=n(1049),i=n(7394),o=n(9259),a=n(7035),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f:s).test(a(e))}},1054:(e,t,n)=>{var r=n(857),i=n(343),o=n(6152),a=n(4795),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},1704:(e,t,n)=>{var r=n(2153),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},7297:(e,t,n)=>{var r=n(6152),i=n(1401),o=n(4452),a=n(6188);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},4019:(e,t,n)=>{var r=n(7772)["__core-js_shared__"];e.exports=r},1242:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},7937:(e,t,n)=>{var r=n(8304);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},8761:(e,t,n)=>{var r=n(6840),i=n(8109);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},2107:(e,t,n)=>{var r=n(857),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2118:(e,t,n)=>{var r=n(9191);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,n)=>{var r=n(9191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},4174:(e,t,n)=>{var r=n(9191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},7942:(e,t,n)=>{var r=n(9191);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},1401:(e,t,n)=>{var r=n(6152),i=n(4795),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},8304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,n)=>{var r,i=n(4019),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,n)=>{var r=n(2218),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},8028:(e,t,n)=>{var r=n(2218);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},2344:(e,t,n)=>{var r=n(2218);e.exports=function(e){return r(this.__data__,e)>-1}},4769:(e,t,n)=>{var r=n(2218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},2411:(e,t,n)=>{var r=n(9612),i=n(235),o=n(326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},6417:(e,t,n)=>{var r=n(7937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).get(e)}},9493:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).has(e)}},4150:(e,t,n)=>{var r=n(7937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},7777:(e,t,n)=>{var r=n(733);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},9191:(e,t,n)=>{var r=n(8761)(Object,"create");e.exports=r},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7772:(e,t,n)=>{var r=n(1242),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},4452:(e,t,n)=>{var r=n(7777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},3812:(e,t,n)=>{var r=n(4795);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7035:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},2153:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},4073:(e,t,n)=>{var r=n(9259),i=n(1100),o=n(7642),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,f,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=u}function x(){var e=i();if(b(e))return w(e);f=setTimeout(x,function(e){var n=t-(e-p);return g?s(n,u-(e-h)):n}(e))}function w(e){return f=void 0,v&&l?y(e):(l=c=void 0,d)}function E(){var e=i(),n=b(e);if(l=arguments,c=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(x,t),m?y(e):d}(p);if(g)return clearTimeout(f),f=setTimeout(x,t),y(p)}return void 0===f&&(f=setTimeout(x,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(o(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),E.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=c=f=void 0},E.flush=function(){return void 0===f?d:w(i())},E}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2579:(e,t,n)=>{var r=n(3324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},6152:e=>{var t=Array.isArray;e.exports=t},1049:(e,t,n)=>{var r=n(3366),i=n(9259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4795:(e,t,n)=>{var r=n(3366),i=n(5125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},6635:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,c=128,u=1/0,d=9007199254740991,f=NaN,p=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",x="[object Function]",w="[object GeneratorFunction]",E="[object Map]",_="[object Number]",S="[object Object]",C="[object Promise]",O="[object RegExp]",k="[object Set]",L="[object String]",R="[object Symbol]",P="[object WeakMap]",M="[object ArrayBuffer]",A="[object DataView]",T="[object Float32Array]",D="[object Float64Array]",z="[object Int8Array]",F="[object Int16Array]",N="[object Int32Array]",I="[object Uint8Array]",j="[object Uint8ClampedArray]",B="[object Uint16Array]",G="[object Uint32Array]",U=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,$=RegExp(W.source),Z=RegExp(q.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Oe="\\ufe0e\\ufe0f",ke="\\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",Le="["+we+"]",Re="["+ke+"]",Pe="["+Ee+"]",Me="\\d+",Ae="["+_e+"]",Te="["+Se+"]",De="[^"+we+ke+Me+_e+Se+Ce+"]",ze="\\ud83c[\\udffb-\\udfff]",Fe="[^"+we+"]",Ne="(?:\\ud83c[\\udde6-\\uddff]){2}",Ie="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Ce+"]",Be="\\u200d",Ge="(?:"+Te+"|"+De+")",Ue="(?:"+je+"|"+De+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+Pe+"|"+ze+")?",qe="["+Oe+"]?",$e=qe+We+"(?:"+Be+"(?:"+[Fe,Ne,Ie].join("|")+")"+qe+We+")*",Ze="(?:"+[Ae,Ne,Ie].join("|")+")"+$e,Ye="(?:"+[Fe+Pe+"?",Pe,Ne,Ie,Le].join("|")+")",Xe=RegExp("['’]","g"),Ke=RegExp(Pe,"g"),Qe=RegExp(ze+"(?="+ze+")|"+Ye+$e,"g"),Je=RegExp([je+"?"+Te+"+"+He+"(?="+[Re,je,"$"].join("|")+")",Ue+"+"+Ve+"(?="+[Re,je+Ge,"$"].join("|")+")",je+"?"+Ge+"+"+He,je+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Me,Ze].join("|"),"g"),et=RegExp("["+Be+we+Ee+Oe+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["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"],rt=-1,it={};it[T]=it[D]=it[z]=it[F]=it[N]=it[I]=it[j]=it[B]=it[G]=!0,it[m]=it[g]=it[M]=it[v]=it[A]=it[y]=it[b]=it[x]=it[E]=it[_]=it[S]=it[O]=it[k]=it[L]=it[P]=!1;var ot={};ot[m]=ot[g]=ot[M]=ot[A]=ot[v]=ot[y]=ot[T]=ot[D]=ot[z]=ot[F]=ot[N]=ot[E]=ot[_]=ot[S]=ot[O]=ot[k]=ot[L]=ot[R]=ot[I]=ot[j]=ot[B]=ot[G]=!0,ot[b]=ot[x]=ot[P]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ut="object"==typeof self&&self&&self.Object===Object&&self,dt=ct||ut||Function("return this")(),ft=t&&!t.nodeType&&t,pt=ft&&e&&!e.nodeType&&e,ht=pt&&pt.exports===ft,mt=ht&&ct.process,gt=function(){try{return pt&&pt.require&&pt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&&gt.isArrayBuffer,yt=gt&&gt.isDate,bt=gt&&gt.isMap,xt=gt&&gt.isRegExp,wt=gt&&gt.isSet,Et=gt&&gt.isTypedArray;function _t(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 St(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function kt(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 Lt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Rt(e,t){return!(null==e||!e.length)&&jt(e,t,0)>-1}function Pt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Mt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function At(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Tt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Dt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function zt(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 Ft=Ht("length");function Nt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function It(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function jt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):It(e,Gt,n)}function Bt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Gt(e){return e!=e}function Ut(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:f}function Ht(e){return function(t){return null==t?i:t[e]}}function Vt(e){return function(t){return null==e?i:e[t]}}function Wt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function qt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function $t(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,fn(e)+1).replace(re,""):e}function Yt(e){return function(t){return e(t)}}function Xt(e,t){return Mt(t,(function(t){return e[t]}))}function Kt(e,t){return e.has(t)}function Qt(e,t){for(var n=-1,r=e.length;++n<r&&jt(t,e[n],0)>-1;);return n}function Jt(e,t){for(var n=e.length;n--&&jt(t,e[n],0)>-1;);return n}var en=Vt({À:"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"}),tn=Vt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function un(e){return rn(e)?function(e){for(var t=Qe.lastIndex=0;Qe.test(e);)++t;return t}(e):Ft(e)}function dn(e){return rn(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.split("")}(e)}function fn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var pn=Vt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),hn=function e(t){var n,r=(t=null==t?dt:hn.defaults(dt.Object(),t,hn.pick(dt,nt))).Array,ie=t.Date,we=t.Error,Ee=t.Function,_e=t.Math,Se=t.Object,Ce=t.RegExp,Oe=t.String,ke=t.TypeError,Le=r.prototype,Re=Ee.prototype,Pe=Se.prototype,Me=t["__core-js_shared__"],Ae=Re.toString,Te=Pe.hasOwnProperty,De=0,ze=(n=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Fe=Pe.toString,Ne=Ae.call(Se),Ie=dt._,je=Ce("^"+Ae.call(Te).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=ht?t.Buffer:i,Ge=t.Symbol,Ue=t.Uint8Array,He=Be?Be.allocUnsafe:i,Ve=an(Se.getPrototypeOf,Se),We=Se.create,qe=Pe.propertyIsEnumerable,$e=Le.splice,Ze=Ge?Ge.isConcatSpreadable:i,Ye=Ge?Ge.iterator:i,Qe=Ge?Ge.toStringTag:i,et=function(){try{var e=lo(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ct=ie&&ie.now!==dt.Date.now&&ie.now,ut=t.setTimeout!==dt.setTimeout&&t.setTimeout,ft=_e.ceil,pt=_e.floor,mt=Se.getOwnPropertySymbols,gt=Be?Be.isBuffer:i,Ft=t.isFinite,Vt=Le.join,mn=an(Se.keys,Se),gn=_e.max,vn=_e.min,yn=ie.now,bn=t.parseInt,xn=_e.random,wn=Le.reverse,En=lo(t,"DataView"),_n=lo(t,"Map"),Sn=lo(t,"Promise"),Cn=lo(t,"Set"),On=lo(t,"WeakMap"),kn=lo(Se,"create"),Ln=On&&new On,Rn={},Pn=No(En),Mn=No(_n),An=No(Sn),Tn=No(Cn),Dn=No(On),zn=Ge?Ge.prototype:i,Fn=zn?zn.valueOf:i,Nn=zn?zn.toString:i;function In(e){if(es(e)&&!Ha(e)&&!(e instanceof Un)){if(e instanceof Gn)return e;if(Te.call(e,"__wrapped__"))return Io(e)}return new Gn(e)}var jn=function(){function e(){}return function(t){if(!Ja(t))return{};if(We)return We(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Bn(){}function Gn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,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 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 Wn(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.__data__=new Wn;++t<n;)this.add(e[t])}function $n(e){var t=this.__data__=new Vn(e);this.size=t.size}function Zn(e,t){var n=Ha(e),r=!n&&Ua(e),i=!n&&!r&&$a(e),o=!n&&!r&&!i&&ls(e),a=n||r||i||o,s=a?$t(e.length,Oe):[],l=s.length;for(var c in e)!t&&!Te.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||go(c,l))||s.push(c);return s}function Yn(e){var t=e.length;return t?e[Wr(0,t-1)]:i}function Xn(e,t){return Ao(Oi(e),or(t,0,e.length))}function Kn(e){return Ao(Oi(e))}function Qn(e,t,n){(n!==i&&!ja(e[t],n)||n===i&&!(t in e))&&rr(e,t,n)}function Jn(e,t,n){var r=e[t];Te.call(e,t)&&ja(r,n)&&(n!==i||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(ja(e[n][0],t))return n;return-1}function tr(e,t,n,r){return ur(e,(function(e,i,o){t(r,e,n(e),o)})),r}function nr(e,t){return e&&ki(t,Ps(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:Cs(e,t[n]);return a}function or(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ar(e,t,n,r,o,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!Ja(e))return e;var d=Ha(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Te.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Oi(e,s)}else{var f=fo(e),p=f==x||f==w;if($a(e))return xi(e,l);if(f==S||f==m||p&&!o){if(s=c||p?{}:ho(e),!l)return c?function(e,t){return ki(e,uo(e),t)}(e,function(e,t){return e&&ki(t,Ms(t),e)}(s,e)):function(e,t){return ki(e,co(e),t)}(e,nr(s,e))}else{if(!ot[f])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case M:return wi(e);case v:case y:return new i(+e);case A:return function(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case T:case D:case z:case F:case N:case I:case j:case B:case G:return Ei(e,n);case E:return new i;case _:case L:return new i(e);case O:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new i;case R:return r=e,Fn?Se(Fn.call(r)):{}}}(e,f,l)}}a||(a=new $n);var h=a.get(e);if(h)return h;a.set(e,s),os(e)?e.forEach((function(r){s.add(ar(r,t,n,r,e,a))})):ts(e)&&e.forEach((function(r,i){s.set(i,ar(r,t,n,i,e,a))}));var g=d?i:(u?c?to:eo:c?Ms:Ps)(e);return Ct(g||e,(function(r,i){g&&(r=e[i=r]),Jn(s,i,ar(r,t,n,i,e,a))})),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Se(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new ke(o);return Lo((function(){e.apply(i,n)}),t)}function cr(e,t,n,r){var i=-1,o=Rt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Mt(t,Yt(n))),r?(o=Pt,a=!1):t.length>=200&&(o=Kt,a=!1,t=new qn(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l}In.templateSettings={escape:Y,evaluate:X,interpolate:K,variable:"",imports:{_:In}},In.prototype=Bn.prototype,In.prototype.constructor=In,Gn.prototype=jn(Bn.prototype),Gn.prototype.constructor=Gn,Un.prototype=jn(Bn.prototype),Un.prototype.constructor=Un,Hn.prototype.clear=function(){this.__data__=kn?kn(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(kn){var n=t[e];return n===a?i:n}return Te.call(t,e)?t[e]:i},Hn.prototype.has=function(e){var t=this.__data__;return kn?t[e]!==i:Te.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=kn&&t===i?a:t,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,0))},Vn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?i:t[n][1]},Vn.prototype.has=function(e){return er(this.__data__,e)>-1},Vn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Wn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(_n||Vn),string:new Hn}},Wn.prototype.delete=function(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t},Wn.prototype.get=function(e){return ao(this,e).get(e)},Wn.prototype.has=function(e){return ao(this,e).has(e)},Wn.prototype.set=function(e,t){var n=ao(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,a),this},qn.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.clear=function(){this.__data__=new Vn,this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$n.prototype.get=function(e){return this.__data__.get(e)},$n.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!_n||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wn(r)}return n.set(e,t),this.size=n.size,this};var ur=Pi(yr),dr=Pi(br,!0);function fr(e,t){var n=!0;return ur(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function pr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(l===i?s==s&&!ss(s):n(s,l)))var l=s,c=a}return c}function hr(e,t){var n=[];return ur(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function mr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=mo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?mr(s,t-1,n,r,i):At(i,s):r||(i[i.length]=s)}return i}var gr=Mi(),vr=Mi(!0);function yr(e,t){return e&&gr(e,t,Ps)}function br(e,t){return e&&vr(e,t,Ps)}function xr(e,t){return Lt(t,(function(t){return Xa(e[t])}))}function wr(e,t){for(var n=0,r=(t=gi(t,e)).length;null!=e&&n<r;)e=e[Fo(t[n++])];return n&&n==r?e:i}function Er(e,t,n){var r=t(e);return Ha(e)?r:At(r,n(e))}function _r(e){return null==e?e===i?"[object Undefined]":"[object Null]":Qe&&Qe in Se(e)?function(e){var t=Te.call(e,Qe),n=e[Qe];try{e[Qe]=i;var r=!0}catch(e){}var o=Fe.call(e);return r&&(t?e[Qe]=n:delete e[Qe]),o}(e):function(e){return Fe.call(e)}(e)}function Sr(e,t){return e>t}function Cr(e,t){return null!=e&&Te.call(e,t)}function Or(e,t){return null!=e&&t in Se(e)}function kr(e,t,n){for(var o=n?Pt:Rt,a=e[0].length,s=e.length,l=s,c=r(s),u=1/0,d=[];l--;){var f=e[l];l&&t&&(f=Mt(f,Yt(t))),u=vn(f.length,u),c[l]=!n&&(t||a>=120&&f.length>=120)?new qn(l&&f):i}f=e[0];var p=-1,h=c[0];e:for(;++p<a&&d.length<u;){var m=f[p],g=t?t(m):m;if(m=n||0!==m?m:0,!(h?Kt(h,g):o(d,g,n))){for(l=s;--l;){var v=c[l];if(!(v?Kt(v,g):o(e[l],g,n)))continue e}h&&h.push(g),d.push(m)}}return d}function Lr(e,t,n){var r=null==(e=Co(e,t=gi(t,e)))?e:e[Fo(Yo(t))];return null==r?i:_t(r,e,n)}function Rr(e){return es(e)&&_r(e)==m}function Pr(e,t,n,r,o){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=Ha(e),l=Ha(t),c=s?g:fo(e),u=l?g:fo(t),d=(c=c==m?S:c)==S,f=(u=u==m?S:u)==S,p=c==u;if(p&&$a(e)){if(!$a(t))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new $n),s||ls(e)?Qi(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!o(new Ue(e),new Ue(t)));case v:case y:case _:return ja(+e,+t);case b:return e.name==t.name&&e.message==t.message;case O:case L:return e==t+"";case E:var s=on;case k:var l=1&r;if(s||(s=ln),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=Qi(s(e),s(t),r,i,o,a);return a.delete(e),u;case R:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var h=d&&Te.call(e,"__wrapped__"),x=f&&Te.call(t,"__wrapped__");if(h||x){var w=h?e.value():e,C=x?t.value():t;return a||(a=new $n),o(w,C,n,r,a)}}return!!p&&(a||(a=new $n),function(e,t,n,r,o,a){var s=1&n,l=eo(e),c=l.length;if(c!=eo(t).length&&!s)return!1;for(var u=c;u--;){var d=l[u];if(!(s?d in t:Te.call(t,d)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++u<c;){var g=e[d=l[u]],v=t[d];if(r)var y=s?r(v,g,d,t,e,a):r(g,v,d,e,t,a);if(!(y===i?g===v||o(g,v,n,r,a):y)){h=!1;break}m||(m="constructor"==d)}if(h&&!m){var b=e.constructor,x=t.constructor;b==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,o,a))}(e,t,n,r,Pr,o))}function Mr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Se(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var c=(l=n[o])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===i&&!(c in e))return!1}else{var f=new $n;if(r)var p=r(u,d,c,e,t,f);if(!(p===i?Pr(d,u,3,r,f):p))return!1}}return!0}function Ar(e){return!(!Ja(e)||(t=e,ze&&ze in t))&&(Xa(e)?je:me).test(No(e));var t}function Tr(e){return"function"==typeof e?e:null==e?nl:"object"==typeof e?Ha(e)?Ir(e[0],e[1]):Nr(e):dl(e)}function Dr(e){if(!wo(e))return mn(e);var t=[];for(var n in Se(e))Te.call(e,n)&&"constructor"!=n&&t.push(n);return t}function zr(e,t){return e<t}function Fr(e,t){var n=-1,i=Wa(e)?r(e.length):[];return ur(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Nr(e){var t=so(e);return 1==t.length&&t[0][2]?_o(t[0][0],t[0][1]):function(n){return n===e||Mr(n,e,t)}}function Ir(e,t){return yo(e)&&Eo(t)?_o(Fo(e),t):function(n){var r=Cs(n,e);return r===i&&r===t?Os(n,e):Pr(t,r,3)}}function jr(e,t,n,r,o){e!==t&&gr(t,(function(a,s){if(o||(o=new $n),Ja(a))!function(e,t,n,r,o,a,s){var l=Oo(e,n),c=Oo(t,n),u=s.get(c);if(u)Qn(e,n,u);else{var d=a?a(l,c,n+"",e,t,s):i,f=d===i;if(f){var p=Ha(c),h=!p&&$a(c),m=!p&&!h&&ls(c);d=c,p||h||m?Ha(l)?d=l:qa(l)?d=Oi(l):h?(f=!1,d=xi(c,!0)):m?(f=!1,d=Ei(c,!0)):d=[]:rs(c)||Ua(c)?(d=l,Ua(l)?d=gs(l):Ja(l)&&!Xa(l)||(d=ho(c))):f=!1}f&&(s.set(c,d),o(d,c,r,a,s),s.delete(c)),Qn(e,n,d)}}(e,t,s,n,jr,r,o);else{var l=r?r(Oo(e,s),a,s+"",e,t,o):i;l===i&&(l=a),Qn(e,s,l)}}),Ms)}function Br(e,t){var n=e.length;if(n)return go(t+=t<0?n:0,n)?e[t]:i}function Gr(e,t,n){t=t.length?Mt(t,(function(e){return Ha(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[nl];var r=-1;t=Mt(t,Yt(oo()));var i=Fr(e,(function(e,n,i){var o=Mt(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e){var t=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=_i(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));t--;)e[t]=e[t].value;return e}(i)}function Ur(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=wr(e,a);n(s,a)&&Xr(o,gi(a,e),s)}return o}function Hr(e,t,n,r){var i=r?Bt:jt,o=-1,a=t.length,s=e;for(e===t&&(t=Oi(t)),n&&(s=Mt(e,Yt(n)));++o<a;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&$e.call(s,l,1),$e.call(e,l,1);return e}function Vr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;go(i)?$e.call(e,i,1):li(e,i)}}return e}function Wr(e,t){return e+pt(xn()*(t-e+1))}function qr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function $r(e,t){return Ro(So(e,t,nl),e+"")}function Zr(e){return Yn(js(e))}function Yr(e,t){var n=js(e);return Ao(n,or(t,0,n.length))}function Xr(e,t,n,r){if(!Ja(e))return e;for(var o=-1,a=(t=gi(t,e)).length,s=a-1,l=e;null!=l&&++o<a;){var c=Fo(t[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var d=l[c];(u=r?r(d,c,l):i)===i&&(u=Ja(d)?d:go(t[o+1])?[]:{})}Jn(l,c,u),l=l[c]}return e}var Kr=Ln?function(e,t){return Ln.set(e,t),e}:nl,Qr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Js(t),writable:!0})}:nl;function Jr(e){return Ao(js(e))}function ei(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function ti(e,t){var n;return ur(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ni(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!ss(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ri(e,t,nl,n)}function ri(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,c=ss(t),u=t===i;o<a;){var d=pt((o+a)/2),f=n(e[d]),p=f!==i,h=null===f,m=f==f,g=ss(f);if(s)var v=r||m;else v=u?m&&(r||p):l?m&&p&&(r||!h):c?m&&p&&!h&&(r||!g):!h&&!g&&(r?f<=t:f<t);v?o=d+1:a=d}return vn(a,4294967294)}function ii(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!ja(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function oi(e){return"number"==typeof e?e:ss(e)?f:+e}function ai(e){if("string"==typeof e)return e;if(Ha(e))return Mt(e,ai)+"";if(ss(e))return Nn?Nn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function si(e,t,n){var r=-1,i=Rt,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=Pt;else if(o>=200){var c=t?null:qi(e);if(c)return ln(c);a=!1,i=Kt,l=new qn}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function li(e,t){return null==(e=Co(e,t=gi(t,e)))||delete e[Fo(Yo(t))]}function ci(e,t,n,r){return Xr(e,t,n(wr(e,t)),r)}function ui(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ei(e,r?0:o,r?o+1:i):ei(e,r?o+1:0,r?i:o)}function di(e,t){var n=e;return n instanceof Un&&(n=n.value()),Tt(t,(function(e,t){return t.func.apply(t.thisArg,At([e],t.args))}),n)}function fi(e,t,n){var i=e.length;if(i<2)return i?si(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],l=-1;++l<i;)l!=o&&(a[o]=cr(a[o]||s,e[l],t,n));return si(mr(a,1),t,n)}function pi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var l=r<a?t[r]:i;n(s,e[r],l)}return s}function hi(e){return qa(e)?e:[]}function mi(e){return"function"==typeof e?e:nl}function gi(e,t){return Ha(e)?e:yo(e,t)?[e]:zo(vs(e))}var vi=$r;function yi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ei(e,t,n)}var bi=at||function(e){return dt.clearTimeout(e)};function xi(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function wi(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Ei(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function _i(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=ss(e),s=t!==i,l=null===t,c=t==t,u=ss(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!u&&e<t||u&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}function Si(e,t,n,i){for(var o=-1,a=e.length,s=n.length,l=-1,c=t.length,u=gn(a-s,0),d=r(c+u),f=!i;++l<c;)d[l]=t[l];for(;++o<s;)(f||o<a)&&(d[n[o]]=e[o]);for(;u--;)d[l++]=e[o++];return d}function Ci(e,t,n,i){for(var o=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=gn(a-l,0),f=r(d+u),p=!i;++o<d;)f[o]=e[o];for(var h=o;++c<u;)f[h+c]=t[c];for(;++s<l;)(p||o<a)&&(f[h+n[s]]=e[o++]);return f}function Oi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function ki(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):i;c===i&&(c=e[l]),o?rr(n,l,c):Jn(n,l,c)}return n}function Li(e,t){return function(n,r){var i=Ha(n)?St:tr,o=t?t():{};return i(n,e,oo(r,2),o)}}function Ri(e){return $r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&vo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Se(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}function Pi(e,t){return function(n,r){if(null==n)return n;if(!Wa(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Se(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Mi(e){return function(t,n,r){for(var i=-1,o=Se(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function Ai(e){return function(t){var n=rn(t=vs(t))?dn(t):i,r=n?n[0]:t.charAt(0),o=n?yi(n,1).join(""):t.slice(1);return r[e]()+o}}function Ti(e){return function(t){return Tt(Xs(Us(t).replace(Xe,"")),e,"")}}function Di(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=jn(e.prototype),r=e.apply(n,t);return Ja(r)?r:n}}function zi(e){return function(t,n,r){var o=Se(t);if(!Wa(t)){var a=oo(n,3);t=Ps(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Fi(e){return Ji((function(t){var n=t.length,r=n,a=Gn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new ke(o);if(a&&!l&&"wrapper"==ro(s))var l=new Gn([],!0)}for(r=l?r:n;++r<n;){var c=ro(s=t[r]),u="wrapper"==c?no(s):i;l=u&&bo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[ro(u[0])].apply(l,u[3]):1==s.length&&bo(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Ha(r))return l.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Ni(e,t,n,o,a,s,l,u,d,f){var p=t&c,h=1&t,m=2&t,g=24&t,v=512&t,y=m?i:Di(e);return function c(){for(var b=arguments.length,x=r(b),w=b;w--;)x[w]=arguments[w];if(g)var E=io(c),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(x,E);if(o&&(x=Si(x,o,a,g)),s&&(x=Ci(x,s,l,g)),b-=_,g&&b<f){var S=sn(x,E);return Vi(e,t,Ni,c.placeholder,n,x,S,u,d,f-b)}var C=h?n:this,O=m?C[e]:e;return b=x.length,u?x=function(e,t){for(var n=e.length,r=vn(t.length,n),o=Oi(e);r--;){var a=t[r];e[r]=go(a,n)?o[a]:i}return e}(x,u):v&&b>1&&x.reverse(),p&&d<b&&(x.length=d),this&&this!==dt&&this instanceof c&&(O=y||Di(O)),O.apply(C,x)}}function Ii(e,t){return function(n,r){return function(e,t,n,r){return yr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function ji(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ai(n),r=ai(r)):(n=oi(n),r=oi(r)),o=e(n,r)}return o}}function Bi(e){return Ji((function(t){return t=Mt(t,Yt(oo())),$r((function(n){var r=this;return e(t,(function(e){return _t(e,r,n)}))}))}))}function Gi(e,t){var n=(t=t===i?" ":ai(t)).length;if(n<2)return n?qr(t,e):t;var r=qr(t,ft(e/un(t)));return rn(t)?yi(dn(r),0,e).join(""):r.slice(0,e)}function Ui(e){return function(t,n,o){return o&&"number"!=typeof o&&vo(t,n,o)&&(n=o=i),t=fs(t),n===i?(n=t,t=0):n=fs(n),function(e,t,n,i){for(var o=-1,a=gn(ft((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:fs(o),e)}}function Hi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function Vi(e,t,n,r,o,a,s,c,u,d){var f=8&t;t|=f?l:64,4&(t&=~(f?64:l))||(t&=-4);var p=[e,t,o,f?a:i,f?s:i,f?i:a,f?i:s,c,u,d],h=n.apply(i,p);return bo(e)&&ko(h,p),h.placeholder=r,Po(h,e,t)}function Wi(e){var t=_e[e];return function(e,n){if(e=ms(e),(n=null==n?0:vn(ps(n),292))&&Ft(e)){var r=(vs(e)+"e").split("e");return+((r=(vs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var qi=Cn&&1/ln(new Cn([,-0]))[1]==u?function(e){return new Cn(e)}:sl;function $i(e){return function(t){var n=fo(t);return n==E?on(t):n==k?cn(t):function(e,t){return Mt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Zi(e,t,n,a,u,d,f,p){var h=2&t;if(!h&&"function"!=typeof e)throw new ke(o);var m=a?a.length:0;if(m||(t&=-97,a=u=i),f=f===i?f:gn(ps(f),0),p=p===i?p:ps(p),m-=u?u.length:0,64&t){var g=a,v=u;a=u=i}var y=h?i:no(e),b=[e,t,n,a,u,g,v,d,f,p];if(y&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<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(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Si(u,l,t[4]):l,e[4]=u?sn(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Ci(u,l,t[6]):l,e[6]=u?sn(e[5],s):t[6]),(l=t[7])&&(e[7]=l),r&c&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,y),e=b[0],t=b[1],n=b[2],a=b[3],u=b[4],!(p=b[9]=b[9]===i?h?0:e.length:gn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||16==t?function(e,t,n){var o=Di(e);return function a(){for(var s=arguments.length,l=r(s),c=s,u=io(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:sn(l,u);return(s-=d.length)<n?Vi(e,t,Ni,a.placeholder,i,l,d,i,i,n-s):_t(this&&this!==dt&&this instanceof a?o:e,this,l)}}(e,t,p):t!=l&&33!=t||u.length?Ni.apply(i,b):function(e,t,n,i){var o=1&t,a=Di(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=i.length,d=r(u+l),f=this&&this!==dt&&this instanceof t?a:e;++c<u;)d[c]=i[c];for(;l--;)d[c++]=arguments[++s];return _t(f,o?n:this,d)}}(e,t,n,a);else var x=function(e,t,n){var r=1&t,i=Di(e);return function t(){return(this&&this!==dt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Po((y?Kr:ko)(x,b),e,t)}function Yi(e,t,n,r){return e===i||ja(e,Pe[n])&&!Te.call(r,n)?t:e}function Xi(e,t,n,r,o,a){return Ja(e)&&Ja(t)&&(a.set(t,e),jr(e,t,i,Xi,a),a.delete(t)),e}function Ki(e){return rs(e)?i:e}function Qi(e,t,n,r,o,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,h=2&n?new qn:i;for(a.set(e,t),a.set(t,e);++f<l;){var m=e[f],g=t[f];if(r)var v=s?r(g,m,f,t,e,a):r(m,g,f,e,t,a);if(v!==i){if(v)continue;p=!1;break}if(h){if(!zt(t,(function(e,t){if(!Kt(h,t)&&(m===e||o(m,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(m!==g&&!o(m,g,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function Ji(e){return Ro(So(e,i,Vo),e+"")}function eo(e){return Er(e,Ps,co)}function to(e){return Er(e,Ms,uo)}var no=Ln?function(e){return Ln.get(e)}:sl;function ro(e){for(var t=e.name+"",n=Rn[t],r=Te.call(Rn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function io(e){return(Te.call(In,"placeholder")?In:e).placeholder}function oo(){var e=In.iteratee||rl;return e=e===rl?Tr:e,arguments.length?e(arguments[0],arguments[1]):e}function ao(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function so(e){for(var t=Ps(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Eo(i)]}return t}function lo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Ar(n)?n:i}var co=mt?function(e){return null==e?[]:(e=Se(e),Lt(mt(e),(function(t){return qe.call(e,t)})))}:hl,uo=mt?function(e){for(var t=[];e;)At(t,co(e)),e=Ve(e);return t}:hl,fo=_r;function po(e,t,n){for(var r=-1,i=(t=gi(t,e)).length,o=!1;++r<i;){var a=Fo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Qa(i)&&go(a,i)&&(Ha(e)||Ua(e))}function ho(e){return"function"!=typeof e.constructor||wo(e)?{}:jn(Ve(e))}function mo(e){return Ha(e)||Ua(e)||!!(Ze&&e&&e[Ze])}function go(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 vo(e,t,n){if(!Ja(n))return!1;var r=typeof t;return!!("number"==r?Wa(n)&&go(t,n.length):"string"==r&&t in n)&&ja(n[t],e)}function yo(e,t){if(Ha(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ss(e))||J.test(e)||!Q.test(e)||null!=t&&e in Se(t)}function bo(e){var t=ro(e),n=In[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var r=no(n);return!!r&&e===r[0]}(En&&fo(new En(new ArrayBuffer(1)))!=A||_n&&fo(new _n)!=E||Sn&&fo(Sn.resolve())!=C||Cn&&fo(new Cn)!=k||On&&fo(new On)!=P)&&(fo=function(e){var t=_r(e),n=t==S?e.constructor:i,r=n?No(n):"";if(r)switch(r){case Pn:return A;case Mn:return E;case An:return C;case Tn:return k;case Dn:return P}return t});var xo=Me?Xa:ml;function wo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function Eo(e){return e==e&&!Ja(e)}function _o(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Se(n))}}function So(e,t,n){return t=gn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=gn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(s),_t(e,this,l)}}function Co(e,t){return t.length<2?e:wr(e,ei(t,0,-1))}function Oo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ko=Mo(Kr),Lo=ut||function(e,t){return dt.setTimeout(e,t)},Ro=Mo(Qr);function Po(e,t,n){var r=t+"";return Ro(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(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(h,(function(n){var r="_."+n[0];t&n[1]&&!Rt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Mo(e){var t=0,n=0;return function(){var r=yn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ao(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=Wr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var To,Do,zo=(To=Ta((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(ue,"$1"):n||e)})),t}),(function(e){return 500===Do.size&&Do.clear(),e})),Do=To.cache,To);function Fo(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function No(e){if(null!=e){try{return Ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Io(e){if(e instanceof Un)return e.clone();var t=new Gn(e.__wrapped__,e.__chain__);return t.__actions__=Oi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var jo=$r((function(e,t){return qa(e)?cr(e,mr(t,1,qa,!0)):[]})),Bo=$r((function(e,t){var n=Yo(t);return qa(n)&&(n=i),qa(e)?cr(e,mr(t,1,qa,!0),oo(n,2)):[]})),Go=$r((function(e,t){var n=Yo(t);return qa(n)&&(n=i),qa(e)?cr(e,mr(t,1,qa,!0),i,n):[]}));function Uo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ps(n);return i<0&&(i=gn(r+i,0)),It(e,oo(t,3),i)}function Ho(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=ps(n),o=n<0?gn(r+o,0):vn(o,r-1)),It(e,oo(t,3),o,!0)}function Vo(e){return null!=e&&e.length?mr(e,1):[]}function Wo(e){return e&&e.length?e[0]:i}var qo=$r((function(e){var t=Mt(e,hi);return t.length&&t[0]===e[0]?kr(t):[]})),$o=$r((function(e){var t=Yo(e),n=Mt(e,hi);return t===Yo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?kr(n,oo(t,2)):[]})),Zo=$r((function(e){var t=Yo(e),n=Mt(e,hi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?kr(n,i,t):[]}));function Yo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Xo=$r(Ko);function Ko(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var Qo=Ji((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Vr(e,Mt(t,(function(e){return go(e,n)?+e:e})).sort(_i)),r}));function Jo(e){return null==e?e:wn.call(e)}var ea=$r((function(e){return si(mr(e,1,qa,!0))})),ta=$r((function(e){var t=Yo(e);return qa(t)&&(t=i),si(mr(e,1,qa,!0),oo(t,2))})),na=$r((function(e){var t=Yo(e);return t="function"==typeof t?t:i,si(mr(e,1,qa,!0),i,t)}));function ra(e){if(!e||!e.length)return[];var t=0;return e=Lt(e,(function(e){if(qa(e))return t=gn(e.length,t),!0})),$t(t,(function(t){return Mt(e,Ht(t))}))}function ia(e,t){if(!e||!e.length)return[];var n=ra(e);return null==t?n:Mt(n,(function(e){return _t(t,i,e)}))}var oa=$r((function(e,t){return qa(e)?cr(e,t):[]})),aa=$r((function(e){return fi(Lt(e,qa))})),sa=$r((function(e){var t=Yo(e);return qa(t)&&(t=i),fi(Lt(e,qa),oo(t,2))})),la=$r((function(e){var t=Yo(e);return t="function"==typeof t?t:i,fi(Lt(e,qa),i,t)})),ca=$r(ra),ua=$r((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,ia(e,n)}));function da(e){var t=In(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var pa=Ji((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&go(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:fa,args:[o],thisArg:i}),new Gn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ha=Li((function(e,t,n){Te.call(e,n)?++e[n]:rr(e,n,1)})),ma=zi(Uo),ga=zi(Ho);function va(e,t){return(Ha(e)?Ct:ur)(e,oo(t,3))}function ya(e,t){return(Ha(e)?Ot:dr)(e,oo(t,3))}var ba=Li((function(e,t,n){Te.call(e,n)?e[n].push(t):rr(e,n,[t])})),xa=$r((function(e,t,n){var i=-1,o="function"==typeof t,a=Wa(e)?r(e.length):[];return ur(e,(function(e){a[++i]=o?_t(t,e,n):Lr(e,t,n)})),a})),wa=Li((function(e,t,n){rr(e,n,t)}));function Ea(e,t){return(Ha(e)?Mt:Fr)(e,oo(t,3))}var _a=Li((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Sa=$r((function(e,t){if(null==e)return[];var n=t.length;return n>1&&vo(e,t[0],t[1])?t=[]:n>2&&vo(t[0],t[1],t[2])&&(t=[t[0]]),Gr(e,mr(t,1),[])})),Ca=ct||function(){return dt.Date.now()};function Oa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Zi(e,c,i,i,i,i,t)}function ka(e,t){var n;if("function"!=typeof t)throw new ke(o);return e=ps(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var La=$r((function(e,t,n){var r=1;if(n.length){var i=sn(n,io(La));r|=l}return Zi(e,r,t,n,i)})),Ra=$r((function(e,t,n){var r=3;if(n.length){var i=sn(n,io(Ra));r|=l}return Zi(t,r,e,n,i)}));function Pa(e,t,n){var r,a,s,l,c,u,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new ke(o);function m(t){var n=r,o=a;return r=a=i,d=t,l=e.apply(o,n)}function g(e){var n=e-u;return u===i||n>=t||n<0||p&&e-d>=s}function v(){var e=Ca();if(g(e))return y(e);c=Lo(v,function(e){var n=t-(e-u);return p?vn(n,s-(e-d)):n}(e))}function y(e){return c=i,h&&r?m(e):(r=a=i,l)}function b(){var e=Ca(),n=g(e);if(r=arguments,a=this,u=e,n){if(c===i)return function(e){return d=e,c=Lo(v,t),f?m(e):l}(u);if(p)return bi(c),c=Lo(v,t),m(u)}return c===i&&(c=Lo(v,t)),l}return t=ms(t)||0,Ja(n)&&(f=!!n.leading,s=(p="maxWait"in n)?gn(ms(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==i&&bi(c),d=0,r=u=a=c=i},b.flush=function(){return c===i?l:y(Ca())},b}var Ma=$r((function(e,t){return lr(e,1,t)})),Aa=$r((function(e,t,n){return lr(e,ms(t)||0,n)}));function Ta(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ta.Cache||Wn),n}function Da(e){if("function"!=typeof e)throw new ke(o);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)}}Ta.Cache=Wn;var za=vi((function(e,t){var n=(t=1==t.length&&Ha(t[0])?Mt(t[0],Yt(oo())):Mt(mr(t,1),Yt(oo()))).length;return $r((function(r){for(var i=-1,o=vn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return _t(e,this,r)}))})),Fa=$r((function(e,t){var n=sn(t,io(Fa));return Zi(e,l,i,t,n)})),Na=$r((function(e,t){var n=sn(t,io(Na));return Zi(e,64,i,t,n)})),Ia=Ji((function(e,t){return Zi(e,256,i,i,i,t)}));function ja(e,t){return e===t||e!=e&&t!=t}var Ba=Hi(Sr),Ga=Hi((function(e,t){return e>=t})),Ua=Rr(function(){return arguments}())?Rr:function(e){return es(e)&&Te.call(e,"callee")&&!qe.call(e,"callee")},Ha=r.isArray,Va=vt?Yt(vt):function(e){return es(e)&&_r(e)==M};function Wa(e){return null!=e&&Qa(e.length)&&!Xa(e)}function qa(e){return es(e)&&Wa(e)}var $a=gt||ml,Za=yt?Yt(yt):function(e){return es(e)&&_r(e)==y};function Ya(e){if(!es(e))return!1;var t=_r(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Xa(e){if(!Ja(e))return!1;var t=_r(e);return t==x||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ka(e){return"number"==typeof e&&e==ps(e)}function Qa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Ja(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=bt?Yt(bt):function(e){return es(e)&&fo(e)==E};function ns(e){return"number"==typeof e||es(e)&&_r(e)==_}function rs(e){if(!es(e)||_r(e)!=S)return!1;var t=Ve(e);if(null===t)return!0;var n=Te.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ae.call(n)==Ne}var is=xt?Yt(xt):function(e){return es(e)&&_r(e)==O},os=wt?Yt(wt):function(e){return es(e)&&fo(e)==k};function as(e){return"string"==typeof e||!Ha(e)&&es(e)&&_r(e)==L}function ss(e){return"symbol"==typeof e||es(e)&&_r(e)==R}var ls=Et?Yt(Et):function(e){return es(e)&&Qa(e.length)&&!!it[_r(e)]},cs=Hi(zr),us=Hi((function(e,t){return e<=t}));function ds(e){if(!e)return[];if(Wa(e))return as(e)?dn(e):Oi(e);if(Ye&&e[Ye])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ye]());var t=fo(e);return(t==E?on:t==k?ln:js)(e)}function fs(e){return e?(e=ms(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ps(e){var t=fs(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?or(ps(e),0,p):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return f;if(Ja(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ja(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=he.test(e);return n||ge.test(e)?lt(e.slice(2),n?2:8):pe.test(e)?f:+e}function gs(e){return ki(e,Ms(e))}function vs(e){return null==e?"":ai(e)}var ys=Ri((function(e,t){if(wo(t)||Wa(t))ki(t,Ps(t),e);else for(var n in t)Te.call(t,n)&&Jn(e,n,t[n])})),bs=Ri((function(e,t){ki(t,Ms(t),e)})),xs=Ri((function(e,t,n,r){ki(t,Ms(t),e,r)})),ws=Ri((function(e,t,n,r){ki(t,Ps(t),e,r)})),Es=Ji(ir),_s=$r((function(e,t){e=Se(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&vo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Ms(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===i||ja(d,Pe[u])&&!Te.call(e,u))&&(e[u]=a[u])}return e})),Ss=$r((function(e){return e.push(i,Xi),_t(Ts,i,e)}));function Cs(e,t,n){var r=null==e?i:wr(e,t);return r===i?n:r}function Os(e,t){return null!=e&&po(e,t,Or)}var ks=Ii((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),Js(nl)),Ls=Ii((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Te.call(e,t)?e[t].push(n):e[t]=[n]}),oo),Rs=$r(Lr);function Ps(e){return Wa(e)?Zn(e):Dr(e)}function Ms(e){return Wa(e)?Zn(e,!0):function(e){if(!Ja(e))return function(e){var t=[];if(null!=e)for(var n in Se(e))t.push(n);return t}(e);var t=wo(e),n=[];for(var r in e)("constructor"!=r||!t&&Te.call(e,r))&&n.push(r);return n}(e)}var As=Ri((function(e,t,n){jr(e,t,n)})),Ts=Ri((function(e,t,n,r){jr(e,t,n,r)})),Ds=Ji((function(e,t){var n={};if(null==e)return n;var r=!1;t=Mt(t,(function(t){return t=gi(t,e),r||(r=t.length>1),t})),ki(e,to(e),n),r&&(n=ar(n,7,Ki));for(var i=t.length;i--;)li(n,t[i]);return n})),zs=Ji((function(e,t){return null==e?{}:function(e,t){return Ur(e,t,(function(t,n){return Os(e,n)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var n=Mt(to(e),(function(e){return[e]}));return t=oo(t),Ur(e,n,(function(e,n){return t(e,n[0])}))}var Ns=$i(Ps),Is=$i(Ms);function js(e){return null==e?[]:Xt(e,Ps(e))}var Bs=Ti((function(e,t,n){return t=t.toLowerCase(),e+(n?Gs(t):t)}));function Gs(e){return Ys(vs(e).toLowerCase())}function Us(e){return(e=vs(e))&&e.replace(ye,en).replace(Ke,"")}var Hs=Ti((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Vs=Ti((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ws=Ai("toLowerCase"),qs=Ti((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),$s=Ti((function(e,t,n){return e+(n?" ":"")+Ys(t)})),Zs=Ti((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ys=Ai("toUpperCase");function Xs(e,t,n){return e=vs(e),(t=n?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Ks=$r((function(e,t){try{return _t(e,i,t)}catch(e){return Ya(e)?e:new we(e)}})),Qs=Ji((function(e,t){return Ct(t,(function(t){t=Fo(t),rr(e,t,La(e[t],e))})),e}));function Js(e){return function(){return e}}var el=Fi(),tl=Fi(!0);function nl(e){return e}function rl(e){return Tr("function"==typeof e?e:ar(e,1))}var il=$r((function(e,t){return function(n){return Lr(n,e,t)}})),ol=$r((function(e,t){return function(n){return Lr(e,n,t)}}));function al(e,t,n){var r=Ps(t),i=xr(t,r);null!=n||Ja(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=xr(t,Ps(t)));var o=!(Ja(n)&&"chain"in n&&!n.chain),a=Xa(e);return Ct(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Oi(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,At([this.value()],arguments))})})),e}function sl(){}var ll=Bi(Mt),cl=Bi(kt),ul=Bi(zt);function dl(e){return yo(e)?Ht(Fo(e)):function(e){return function(t){return wr(t,e)}}(e)}var fl=Ui(),pl=Ui(!0);function hl(){return[]}function ml(){return!1}var gl,vl=ji((function(e,t){return e+t}),0),yl=Wi("ceil"),bl=ji((function(e,t){return e/t}),1),xl=Wi("floor"),wl=ji((function(e,t){return e*t}),1),El=Wi("round"),_l=ji((function(e,t){return e-t}),0);return In.after=function(e,t){if("function"!=typeof t)throw new ke(o);return e=ps(e),function(){if(--e<1)return t.apply(this,arguments)}},In.ary=Oa,In.assign=ys,In.assignIn=bs,In.assignInWith=xs,In.assignWith=ws,In.at=Es,In.before=ka,In.bind=La,In.bindAll=Qs,In.bindKey=Ra,In.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ha(e)?e:[e]},In.chain=da,In.chunk=function(e,t,n){t=(n?vo(e,t,n):t===i)?1:gn(ps(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=r(ft(o/t));a<o;)l[s++]=ei(e,a,a+=t);return l},In.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},In.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return At(Ha(n)?Oi(n):[n],mr(t,1))},In.cond=function(e){var t=null==e?0:e.length,n=oo();return e=t?Mt(e,(function(e){if("function"!=typeof e[1])throw new ke(o);return[n(e[0]),e[1]]})):[],$r((function(n){for(var r=-1;++r<t;){var i=e[r];if(_t(i[0],this,n))return _t(i[1],this,n)}}))},In.conforms=function(e){return function(e){var t=Ps(e);return function(n){return sr(n,e,t)}}(ar(e,1))},In.constant=Js,In.countBy=ha,In.create=function(e,t){var n=jn(e);return null==t?n:nr(n,t)},In.curry=function e(t,n,r){var o=Zi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},In.curryRight=function e(t,n,r){var o=Zi(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},In.debounce=Pa,In.defaults=_s,In.defaultsDeep=Ss,In.defer=Ma,In.delay=Aa,In.difference=jo,In.differenceBy=Bo,In.differenceWith=Go,In.drop=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=n||t===i?1:ps(t))<0?0:t,r):[]},In.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,0,(t=r-(t=n||t===i?1:ps(t)))<0?0:t):[]},In.dropRightWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!0,!0):[]},In.dropWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!0):[]},In.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&vo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=ps(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:ps(r))<0&&(r+=o),r=n>r?0:hs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},In.filter=function(e,t){return(Ha(e)?Lt:hr)(e,oo(t,3))},In.flatMap=function(e,t){return mr(Ea(e,t),1)},In.flatMapDeep=function(e,t){return mr(Ea(e,t),u)},In.flatMapDepth=function(e,t,n){return n=n===i?1:ps(n),mr(Ea(e,t),n)},In.flatten=Vo,In.flattenDeep=function(e){return null!=e&&e.length?mr(e,u):[]},In.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===i?1:ps(t)):[]},In.flip=function(e){return Zi(e,512)},In.flow=el,In.flowRight=tl,In.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},In.functions=function(e){return null==e?[]:xr(e,Ps(e))},In.functionsIn=function(e){return null==e?[]:xr(e,Ms(e))},In.groupBy=ba,In.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},In.intersection=qo,In.intersectionBy=$o,In.intersectionWith=Zo,In.invert=ks,In.invertBy=Ls,In.invokeMap=xa,In.iteratee=rl,In.keyBy=wa,In.keys=Ps,In.keysIn=Ms,In.map=Ea,In.mapKeys=function(e,t){var n={};return t=oo(t,3),yr(e,(function(e,r,i){rr(n,t(e,r,i),e)})),n},In.mapValues=function(e,t){var n={};return t=oo(t,3),yr(e,(function(e,r,i){rr(n,r,t(e,r,i))})),n},In.matches=function(e){return Nr(ar(e,1))},In.matchesProperty=function(e,t){return Ir(e,ar(t,1))},In.memoize=Ta,In.merge=As,In.mergeWith=Ts,In.method=il,In.methodOf=ol,In.mixin=al,In.negate=Da,In.nthArg=function(e){return e=ps(e),$r((function(t){return Br(t,e)}))},In.omit=Ds,In.omitBy=function(e,t){return Fs(e,Da(oo(t)))},In.once=function(e){return ka(2,e)},In.orderBy=function(e,t,n,r){return null==e?[]:(Ha(t)||(t=null==t?[]:[t]),Ha(n=r?i:n)||(n=null==n?[]:[n]),Gr(e,t,n))},In.over=ll,In.overArgs=za,In.overEvery=cl,In.overSome=ul,In.partial=Fa,In.partialRight=Na,In.partition=_a,In.pick=zs,In.pickBy=Fs,In.property=dl,In.propertyOf=function(e){return function(t){return null==e?i:wr(e,t)}},In.pull=Xo,In.pullAll=Ko,In.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,oo(n,2)):e},In.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,i,n):e},In.pullAt=Qo,In.range=fl,In.rangeRight=pl,In.rearg=Ia,In.reject=function(e,t){return(Ha(e)?Lt:hr)(e,Da(oo(t,3)))},In.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=oo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Vr(e,i),n},In.rest=function(e,t){if("function"!=typeof e)throw new ke(o);return $r(e,t=t===i?t:ps(t))},In.reverse=Jo,In.sampleSize=function(e,t,n){return t=(n?vo(e,t,n):t===i)?1:ps(t),(Ha(e)?Xn:Yr)(e,t)},In.set=function(e,t,n){return null==e?e:Xr(e,t,n)},In.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Xr(e,t,n,r)},In.shuffle=function(e){return(Ha(e)?Kn:Jr)(e)},In.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&vo(e,t,n)?(t=0,n=r):(t=null==t?0:ps(t),n=n===i?r:ps(n)),ei(e,t,n)):[]},In.sortBy=Sa,In.sortedUniq=function(e){return e&&e.length?ii(e):[]},In.sortedUniqBy=function(e,t){return e&&e.length?ii(e,oo(t,2)):[]},In.split=function(e,t,n){return n&&"number"!=typeof n&&vo(e,t,n)&&(t=n=i),(n=n===i?p:n>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=ai(t))&&rn(e)?yi(dn(e),0,n):e.split(t,n):[]},In.spread=function(e,t){if("function"!=typeof e)throw new ke(o);return t=null==t?0:gn(ps(t),0),$r((function(n){var r=n[t],i=yi(n,0,t);return r&&At(i,r),_t(e,this,i)}))},In.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},In.take=function(e,t,n){return e&&e.length?ei(e,0,(t=n||t===i?1:ps(t))<0?0:t):[]},In.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=r-(t=n||t===i?1:ps(t)))<0?0:t,r):[]},In.takeRightWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!1,!0):[]},In.takeWhile=function(e,t){return e&&e.length?ui(e,oo(t,3)):[]},In.tap=function(e,t){return t(e),e},In.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ke(o);return Ja(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Pa(e,t,{leading:r,maxWait:t,trailing:i})},In.thru=fa,In.toArray=ds,In.toPairs=Ns,In.toPairsIn=Is,In.toPath=function(e){return Ha(e)?Mt(e,Fo):ss(e)?[e]:Oi(zo(vs(e)))},In.toPlainObject=gs,In.transform=function(e,t,n){var r=Ha(e),i=r||$a(e)||ls(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ja(e)&&Xa(o)?jn(Ve(e)):{}}return(i?Ct:yr)(e,(function(e,r,i){return t(n,e,r,i)})),n},In.unary=function(e){return Oa(e,1)},In.union=ea,In.unionBy=ta,In.unionWith=na,In.uniq=function(e){return e&&e.length?si(e):[]},In.uniqBy=function(e,t){return e&&e.length?si(e,oo(t,2)):[]},In.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?si(e,i,t):[]},In.unset=function(e,t){return null==e||li(e,t)},In.unzip=ra,In.unzipWith=ia,In.update=function(e,t,n){return null==e?e:ci(e,t,mi(n))},In.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ci(e,t,mi(n),r)},In.values=js,In.valuesIn=function(e){return null==e?[]:Xt(e,Ms(e))},In.without=oa,In.words=Xs,In.wrap=function(e,t){return Fa(mi(t),e)},In.xor=aa,In.xorBy=sa,In.xorWith=la,In.zip=ca,In.zipObject=function(e,t){return pi(e||[],t||[],Jn)},In.zipObjectDeep=function(e,t){return pi(e||[],t||[],Xr)},In.zipWith=ua,In.entries=Ns,In.entriesIn=Is,In.extend=bs,In.extendWith=xs,al(In,In),In.add=vl,In.attempt=Ks,In.camelCase=Bs,In.capitalize=Gs,In.ceil=yl,In.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ms(n))==n?n:0),t!==i&&(t=(t=ms(t))==t?t:0),or(ms(e),t,n)},In.clone=function(e){return ar(e,4)},In.cloneDeep=function(e){return ar(e,5)},In.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:i)},In.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:i)},In.conformsTo=function(e,t){return null==t||sr(e,t,Ps(t))},In.deburr=Us,In.defaultTo=function(e,t){return null==e||e!=e?t:e},In.divide=bl,In.endsWith=function(e,t,n){e=vs(e),t=ai(t);var r=e.length,o=n=n===i?r:or(ps(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},In.eq=ja,In.escape=function(e){return(e=vs(e))&&Z.test(e)?e.replace(q,tn):e},In.escapeRegExp=function(e){return(e=vs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},In.every=function(e,t,n){var r=Ha(e)?kt:fr;return n&&vo(e,t,n)&&(t=i),r(e,oo(t,3))},In.find=ma,In.findIndex=Uo,In.findKey=function(e,t){return Nt(e,oo(t,3),yr)},In.findLast=ga,In.findLastIndex=Ho,In.findLastKey=function(e,t){return Nt(e,oo(t,3),br)},In.floor=xl,In.forEach=va,In.forEachRight=ya,In.forIn=function(e,t){return null==e?e:gr(e,oo(t,3),Ms)},In.forInRight=function(e,t){return null==e?e:vr(e,oo(t,3),Ms)},In.forOwn=function(e,t){return e&&yr(e,oo(t,3))},In.forOwnRight=function(e,t){return e&&br(e,oo(t,3))},In.get=Cs,In.gt=Ba,In.gte=Ga,In.has=function(e,t){return null!=e&&po(e,t,Cr)},In.hasIn=Os,In.head=Wo,In.identity=nl,In.includes=function(e,t,n,r){e=Wa(e)?e:js(e),n=n&&!r?ps(n):0;var i=e.length;return n<0&&(n=gn(i+n,0)),as(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&jt(e,t,n)>-1},In.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ps(n);return i<0&&(i=gn(r+i,0)),jt(e,t,i)},In.inRange=function(e,t,n){return t=fs(t),n===i?(n=t,t=0):n=fs(n),function(e,t,n){return e>=vn(t,n)&&e<gn(t,n)}(e=ms(e),t,n)},In.invoke=Rs,In.isArguments=Ua,In.isArray=Ha,In.isArrayBuffer=Va,In.isArrayLike=Wa,In.isArrayLikeObject=qa,In.isBoolean=function(e){return!0===e||!1===e||es(e)&&_r(e)==v},In.isBuffer=$a,In.isDate=Za,In.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},In.isEmpty=function(e){if(null==e)return!0;if(Wa(e)&&(Ha(e)||"string"==typeof e||"function"==typeof e.splice||$a(e)||ls(e)||Ua(e)))return!e.length;var t=fo(e);if(t==E||t==k)return!e.size;if(wo(e))return!Dr(e).length;for(var n in e)if(Te.call(e,n))return!1;return!0},In.isEqual=function(e,t){return Pr(e,t)},In.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Pr(e,t,i,n):!!r},In.isError=Ya,In.isFinite=function(e){return"number"==typeof e&&Ft(e)},In.isFunction=Xa,In.isInteger=Ka,In.isLength=Qa,In.isMap=ts,In.isMatch=function(e,t){return e===t||Mr(e,t,so(t))},In.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Mr(e,t,so(t),n)},In.isNaN=function(e){return ns(e)&&e!=+e},In.isNative=function(e){if(xo(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ar(e)},In.isNil=function(e){return null==e},In.isNull=function(e){return null===e},In.isNumber=ns,In.isObject=Ja,In.isObjectLike=es,In.isPlainObject=rs,In.isRegExp=is,In.isSafeInteger=function(e){return Ka(e)&&e>=-9007199254740991&&e<=d},In.isSet=os,In.isString=as,In.isSymbol=ss,In.isTypedArray=ls,In.isUndefined=function(e){return e===i},In.isWeakMap=function(e){return es(e)&&fo(e)==P},In.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==_r(e)},In.join=function(e,t){return null==e?"":Vt.call(e,t)},In.kebabCase=Hs,In.last=Yo,In.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=ps(n))<0?gn(r+o,0):vn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):It(e,Gt,o,!0)},In.lowerCase=Vs,In.lowerFirst=Ws,In.lt=cs,In.lte=us,In.max=function(e){return e&&e.length?pr(e,nl,Sr):i},In.maxBy=function(e,t){return e&&e.length?pr(e,oo(t,2),Sr):i},In.mean=function(e){return Ut(e,nl)},In.meanBy=function(e,t){return Ut(e,oo(t,2))},In.min=function(e){return e&&e.length?pr(e,nl,zr):i},In.minBy=function(e,t){return e&&e.length?pr(e,oo(t,2),zr):i},In.stubArray=hl,In.stubFalse=ml,In.stubObject=function(){return{}},In.stubString=function(){return""},In.stubTrue=function(){return!0},In.multiply=wl,In.nth=function(e,t){return e&&e.length?Br(e,ps(t)):i},In.noConflict=function(){return dt._===this&&(dt._=Ie),this},In.noop=sl,In.now=Ca,In.pad=function(e,t,n){e=vs(e);var r=(t=ps(t))?un(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Gi(pt(i),n)+e+Gi(ft(i),n)},In.padEnd=function(e,t,n){e=vs(e);var r=(t=ps(t))?un(e):0;return t&&r<t?e+Gi(t-r,n):e},In.padStart=function(e,t,n){e=vs(e);var r=(t=ps(t))?un(e):0;return t&&r<t?Gi(t-r,n)+e:e},In.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(vs(e).replace(re,""),t||0)},In.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=fs(e),t===i?(t=e,e=0):t=fs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=xn();return vn(e+o*(t-e+st("1e-"+((o+"").length-1))),t)}return Wr(e,t)},In.reduce=function(e,t,n){var r=Ha(e)?Tt:Wt,i=arguments.length<3;return r(e,oo(t,4),n,i,ur)},In.reduceRight=function(e,t,n){var r=Ha(e)?Dt:Wt,i=arguments.length<3;return r(e,oo(t,4),n,i,dr)},In.repeat=function(e,t,n){return t=(n?vo(e,t,n):t===i)?1:ps(t),qr(vs(e),t)},In.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},In.result=function(e,t,n){var r=-1,o=(t=gi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Fo(t[r])];a===i&&(r=o,a=n),e=Xa(a)?a.call(e):a}return e},In.round=El,In.runInContext=e,In.sample=function(e){return(Ha(e)?Yn:Zr)(e)},In.size=function(e){if(null==e)return 0;if(Wa(e))return as(e)?un(e):e.length;var t=fo(e);return t==E||t==k?e.size:Dr(e).length},In.snakeCase=qs,In.some=function(e,t,n){var r=Ha(e)?zt:ti;return n&&vo(e,t,n)&&(t=i),r(e,oo(t,3))},In.sortedIndex=function(e,t){return ni(e,t)},In.sortedIndexBy=function(e,t,n){return ri(e,t,oo(n,2))},In.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ni(e,t);if(r<n&&ja(e[r],t))return r}return-1},In.sortedLastIndex=function(e,t){return ni(e,t,!0)},In.sortedLastIndexBy=function(e,t,n){return ri(e,t,oo(n,2),!0)},In.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ni(e,t,!0)-1;if(ja(e[n],t))return n}return-1},In.startCase=$s,In.startsWith=function(e,t,n){return e=vs(e),n=null==n?0:or(ps(n),0,e.length),t=ai(t),e.slice(n,n+t.length)==t},In.subtract=_l,In.sum=function(e){return e&&e.length?qt(e,nl):0},In.sumBy=function(e,t){return e&&e.length?qt(e,oo(t,2)):0},In.template=function(e,t,n){var r=In.templateSettings;n&&vo(e,t,n)&&(t=i),e=vs(e),t=xs({},t,r,Yi);var o,a,s=xs({},t.imports,r.imports,Yi),l=Ps(s),c=Xt(s,l),u=0,d=t.interpolate||be,f="__p += '",p=Ce((t.escape||be).source+"|"+d.source+"|"+(d===K?de:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Te.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(p,(function(t,n,r,i,s,l){return r||(r=i),f+=e.slice(u,l).replace(xe,nn),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),f+="';\n";var m=Te.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new we("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(U,""):f).replace(H,"$1").replace(V,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Ks((function(){return Ee(l,h+"return "+f).apply(i,c)}));if(g.source=f,Ya(g))throw g;return g},In.times=function(e,t){if((e=ps(e))<1||e>d)return[];var n=p,r=vn(e,p);t=oo(t),e-=p;for(var i=$t(r,t);++n<e;)t(n);return i},In.toFinite=fs,In.toInteger=ps,In.toLength=hs,In.toLower=function(e){return vs(e).toLowerCase()},In.toNumber=ms,In.toSafeInteger=function(e){return e?or(ps(e),-9007199254740991,d):0===e?e:0},In.toString=vs,In.toUpper=function(e){return vs(e).toUpperCase()},In.trim=function(e,t,n){if((e=vs(e))&&(n||t===i))return Zt(e);if(!e||!(t=ai(t)))return e;var r=dn(e),o=dn(t);return yi(r,Qt(r,o),Jt(r,o)+1).join("")},In.trimEnd=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.slice(0,fn(e)+1);if(!e||!(t=ai(t)))return e;var r=dn(e);return yi(r,0,Jt(r,dn(t))+1).join("")},In.trimStart=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=ai(t)))return e;var r=dn(e);return yi(r,Qt(r,dn(t))).join("")},In.truncate=function(e,t){var n=30,r="...";if(Ja(t)){var o="separator"in t?t.separator:o;n="length"in t?ps(t.length):n,r="omission"in t?ai(t.omission):r}var a=(e=vs(e)).length;if(rn(e)){var s=dn(e);a=s.length}if(n>=a)return e;var l=n-un(r);if(l<1)return r;var c=s?yi(s,0,l).join(""):e.slice(0,l);if(o===i)return c+r;if(s&&(l+=c.length-l),is(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=Ce(o.source,vs(fe.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var f=u.index;c=c.slice(0,f===i?l:f)}}else if(e.indexOf(ai(o),l)!=l){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r},In.unescape=function(e){return(e=vs(e))&&$.test(e)?e.replace(W,pn):e},In.uniqueId=function(e){var t=++De;return vs(e)+t},In.upperCase=Zs,In.upperFirst=Ys,In.each=va,In.eachRight=ya,In.first=Wo,al(In,(gl={},yr(In,(function(e,t){Te.call(In.prototype,t)||(gl[t]=e)})),gl),{chain:!1}),In.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){In[e].placeholder=In})),Ct(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===i?1:gn(ps(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,p),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(nl)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=$r((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Lr(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Da(oo(e)))},Un.prototype.slice=function(e,t){e=ps(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ps(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(p)},yr(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=In[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(In.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Un,c=s[0],u=l||Ha(t),d=function(e){var t=o.apply(In,At([e],s));return r&&f?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,m=l&&!p;if(!a&&u){t=m?t:new Un(this);var g=e.apply(t,s);return g.__actions__.push({func:fa,args:[d],thisArg:i}),new Gn(g,f)}return h&&m?e.apply(this,s):(g=this.thru(d),h?r?g.value()[0]:g.value():g)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Le[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);In.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ha(i)?i:[],e)}return this[n]((function(n){return t.apply(Ha(n)?n:[],e)}))}})),yr(Un.prototype,(function(e,t){var n=In[t];if(n){var r=n.name+"";Te.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[Ni(i,2).name]=[{name:"wrapper",func:i}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Oi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oi(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ha(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=vn(t,e+a);break;case"takeRight":e=gn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,f=0,p=vn(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return di(e,this.__actions__);var h=[];e:for(;l--&&f<p;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],y=v.iteratee,b=v.type,x=y(g);if(2==b)g=x;else if(!x){if(1==b)continue e;break e}}h[f++]=g}return h},In.prototype.at=pa,In.prototype.chain=function(){return da(this)},In.prototype.commit=function(){return new Gn(this.value(),this.__chain__)},In.prototype.next=function(){this.__values__===i&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},In.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=Io(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},In.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:fa,args:[Jo],thisArg:i}),new Gn(t,this.__chain__)}return this.thru(Jo)},In.prototype.toJSON=In.prototype.valueOf=In.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},In.prototype.first=In.prototype.head,Ye&&(In.prototype[Ye]=function(){return this}),In}();dt._=hn,(r=function(){return hn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},733:(e,t,n)=>{var r=n(6738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},1100:(e,t,n)=>{var r=n(7772);e.exports=function(){return r.Date.now()}},2436:(e,t,n)=>{var r=n(4073),i=n(9259);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},7642:(e,t,n)=>{var r=n(1704),i=n(9259),o=n(4795),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},6188:(e,t,n)=>{var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},7320:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))n.call(o,c)&&(s[c]=o[c]);if(t){a=t(o);for(var u=0;u<a.length;u++)r.call(o,a[u])&&(s[a[u]]=o[a[u]])}}return s}},8018:(e,t,n)=>{"use strict";var r=n(1600),i=n(7425);t.ZP=void 0;var o=r(n(3100)),a=r(n(8870)),s=r(n(5297)),l=r(n(8230)),c=r(n(421)),u=r(n(1147)),d=r(n(6290)),f=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=x(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(8156)),p=n(901),h=r(n(1230)),m=r(n(6496)),g=r(n(5099)),v=r(n(835)),y=r(n(7339)),b=r(n(8310));function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(x=function(e){return e?n:t})(e)}var w=n(4841).deepPurple[500],E=function(e){(0,l.default)(i,e);var t,n,r=(t=i,n=function(){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(){var e,r=(0,u.default)(t);if(n){var i=(0,u.default)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,c.default)(this,e)});function i(){var e;(0,o.default)(this,i);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return e=r.call.apply(r,[this].concat(n)),(0,d.default)((0,s.default)(e),"buildUrl",(function(t){var n=e.props.storagePath;return t?t.startsWith("http:")||t.startsWith("https:")?t:n+t.replace(/^\/+/,""):""})),(0,d.default)((0,s.default)(e),"getFallbackAvatar",(function(){var t=e.props,n=t.entityType,r=t.classes,i=t.backgroundColor,o=t.color,a=t.className,s=(0,v.default)(n);return f.default.createElement(p.Avatar,{className:(0,b.default)(a,r.avatar),style:{border:"2px solid ".concat(n.typeColor||w),backgroundColor:i||n.typeColor||w,color:o}},s&&s.charAt(0)||f.default.createElement(m.default,null))})),e}return(0,a.default)(i,[{key:"render",value:function(){var e=this.props,t=e.entityType,n=e.classes,r=e.className,i=t.typeIcon||t.typeImage;return i?f.default.createElement(p.Avatar,{className:(0,b.default)(r,n.avatar),style:{border:"2px solid ".concat(t.typeColor||w),backgroundColor:"#FFFFFF"},src:this.buildUrl(i)},this.getFallbackAvatar()):this.getFallbackAvatar()}}]),i}(f.PureComponent);(0,d.default)(E,"propTypes",{entityType:g.default.shape({typeColor:g.default.string,typeIcon:g.default.string,typeImage:g.default.string,label:g.default.string,uri:g.default.string}),className:g.default.string,classes:g.default.shape({avatar:g.default.string}),storagePath:g.default.string,backgroundColor:g.default.string,color:g.default.string}),(0,d.default)(E,"defaultProps",{storagePath:"https://reltio-images.s3.amazonaws.com/api/",entityType:{},color:"#FFFFFF"});var _=(0,h.default)(y.default)(E);t.ZP=_},7339:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={avatar:{"& img":{display:"flex",flexDirection:"row",alignItems:"center","&::before":{width:"100%"}}}}},4660:(e,t,n)=>{"use strict";var r=n(1600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(8156)),o=r(n(5099)),a=r(n(3627)),s=r(n(9233)),l=r(n(4294)),c=r(n(5751)),u=r(n(8310));function d(e){var t=e.classes,n=e.title,r=e.message;return i.default.createElement("div",null,i.default.createElement("span",{className:t.errorTitle},n),i.default.createElement("span",{className:t.errorMessage},r))}d.defaultProps={title:c.default.text("Error:"),message:c.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,r=e.onClose,o=e.style,f=e.classes,p=e.className,h=c.default.text("Close");if(i.default.isValidElement(n))t=n;else{var m=n||{},g=m.title,v=m.message;t=i.default.createElement(d,{classes:f,title:g,message:v})}return i.default.createElement("div",{className:(0,u.default)(f.errorBlock,p),style:o,"data-reltio-id":"error-message"},i.default.createElement("div",{className:f.descriptionBlock},t),i.default.createElement("div",{className:f.closeIconContainer},i.default.createElement(a.default,{title:h,placement:"bottom"},i.default.createElement(s.default,{onClick:r,"aria-label":h,size:"large"},i.default.createElement(l.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 p=f;t.default=p},4176:(e,t,n)=>{"use strict";var r=n(1600),i=n(7425);t.ZP=void 0;var o=r(n(3100)),a=r(n(8870)),s=r(n(5297)),l=r(n(8230)),c=r(n(421)),u=r(n(1147)),d=r(n(6290)),f=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(8156)),p=r(n(5099)),h=n(7420),m=r(n(4660)),g=r(n(1230)),v=r(n(1444));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}var b=function(e){(0,l.default)(i,e);var t,n,r=(t=i,n=function(){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(){var e,r=(0,u.default)(t);if(n){var i=(0,u.default)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,c.default)(this,e)});function i(e){var t;return(0,o.default)(this,i),t=r.call(this,e),(0,d.default)((0,s.default)(t),"processAutoCloseInterval",(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)))})),i.$$instance=(0,s.default)(t),t.handleCloseErrorMessage=t.handleCloseErrorMessage.bind((0,s.default)(t)),t.state={errors:[]},t}return(0,a.default)(i,[{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,o=r[i-1];return f.default.createElement(h.TransitionGroup,null,Boolean(i)&&f.default.createElement(h.CSSTransition,{key:"errorMessage".concat(i),classNames:{enter:n.errorContainerEnter,enterActive:n.errorContainerEnterActive,exit:n.errorContainerExit,exitActive:n.errorContainerExitActive,appear:n.errorContainerEnter,appearActive:n.errorContainerEnterActive},timeout:{enter:600,exit:300}},f.default.createElement(m.default,{classes:n,onClose:this.handleCloseErrorMessage,error:o,className:t})))}}],[{key:"addError",value:function(e){i.$$instance&&(i.$$instance.setState({errors:i.$$instance.state.errors.concat(e)}),i.$$instance.processAutoCloseInterval())}}]),i}(f.PureComponent);b.propTypes={className:p.default.oneOfType([p.default.string,p.default.object]),classes:p.default.object,autoCloseInterval:p.default.number},b.defaultProps={classes:{}};var x=(0,g.default)(v.default)(b);t.ZP=x},1444:(e,t,n)=>{"use strict";var r=n(1600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(6290)),o="#FFFFFF";t.default=function(e){var t;return{errorContainer:{zIndex:2},errorContainerEnter:{opacity:0},errorContainerEnterActive:{opacity:1,transition:"opacity 600ms ease-in"},errorContainerExit:{opacity:1},errorContainerExitActive:{opacity:0,transition:"opacity 300ms ease-in"},errorBlock:(t={zIndex:2,color:o,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)"},(0,i.default)(t,e.breakpoints.down("md"),{left:0,right:0}),(0,i.default)(t,e.breakpoints.down("lg"),{left:288,right:32}),(0,i.default)(t,e.breakpoints.down("xl"),{left:336,right:80}),(0,i.default)(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:o,marginTop:5}}}}},835:(e,t,n)=>{"use strict";var r=n(1600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e?(0,i.default)(e,"label")||(0,i.default)(e,"uri","").slice((0,i.default)(e,"uri","").lastIndexOf("/")+1):null};var i=r(n(2579))},6866:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function E(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||w(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},8570:(e,t,n)=>{"use strict";e.exports=n(6866)},7420:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CSSTransition:()=>S,ReplaceTransition:()=>T,SwitchTransition:()=>U,Transition:()=>w,TransitionGroup:()=>M,config:()=>d});var r=n(7896),i=n(1461),o=n(1665);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}n(5099);var s=n(8156),l=n.n(s),c=n(7111),u=n.n(c);const d={disabled:!1},f=l().createContext(null);var p=function(e){return e.scrollTop},h="unmounted",m="exited",g="entering",v="entered",y="exiting",b=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=m,r.appearStatus=g):i=v:i=t.unmountOnExit||t.mountOnEnter?h:m,r.state={status:i},r.nextCallback=null,r}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===h?{status:m}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==g&&n!==v&&(t=g):n!==g&&n!==v||(t=y)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.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}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===g){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:u().findDOMNode(this);n&&p(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===m&&this.setState({status:h})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[u().findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||d.disabled?this.safeSetState({status:v},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:g},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:v},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u().findDOMNode(this);t&&!d.disabled?(this.props.onExit(r),this.safeSetState({status:y},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:m},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:m},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.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},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===h)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,i.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return l().createElement(f.Provider,{value:null},"function"==typeof n?n(e,r):l().cloneElement(l().Children.only(n),r))},t}(l().Component);function x(){}b.contextType=f,b.propTypes={},b.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:x,onEntering:x,onEntered:x,onExit:x,onExiting:x,onExited:x},b.UNMOUNTED=h,b.EXITED=m,b.ENTERING=g,b.ENTERED=v,b.EXITING=y;const w=b;var E=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},_=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}(0,o.Z)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&p(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&E(e,r),i&&E(e,i),o&&E(e,o)},n.render=function(){var e=this.props,t=(e.classNames,(0,i.Z)(e,["classNames"]));return l().createElement(w,(0,r.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l().Component);_.defaultProps={classNames:""},_.propTypes={};const S=_;var C=n(753);function O(e,t){var n=Object.create(null);return e&&s.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,s.isValidElement)(e)?t(e):e}(e)})),n}function k(e,t,n){return null!=n[t]?n[t]:e.props[t]}function L(e,t,n){var r=O(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if((0,s.isValidElement)(a)){var l=o in t,c=o in r,u=t[o],d=(0,s.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,s.isValidElement)(u)&&(i[o]=(0,s.cloneElement)(a,{onExited:n.bind(null,a),in:u.props.in,exit:k(a,"exit",e),enter:k(a,"enter",e)})):i[o]=(0,s.cloneElement)(a,{in:!1}):i[o]=(0,s.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:k(a,"exit",e),enter:k(a,"enter",e)})}})),i}var R=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},P=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind((0,C.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,O(n.children,(function(e){return(0,s.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:k(e,"appear",n),enter:k(e,"enter",n),exit:k(e,"exit",n)})}))):L(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=O(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,r.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,i.Z)(e,["component","childFactory"]),o=this.state.contextValue,a=R(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?l().createElement(f.Provider,{value:o},a):l().createElement(f.Provider,{value:o},l().createElement(t,r,a))},t}(l().Component);P.propTypes={},P.defaultProps={component:"div",childFactory:function(e){return e}};const M=P;var A=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}(0,o.Z)(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,i=this.props.children,o=l().Children.toArray(i)[t];if(o.props[e]&&(r=o.props)[e].apply(r,n),this.props[e]){var a=o.props.nodeRef?void 0:u().findDOMNode(this);this.props[e](a)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=(0,i.Z)(e,["children","in"]),o=l().Children.toArray(t),a=o[0],s=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,l().createElement(M,r,n?l().cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):l().cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(l().Component);A.propTypes={};const T=A;var D,z,F="out-in",N="in-out",I=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},j=((D={})[F]=function(e){var t=e.current,n=e.changeState;return l().cloneElement(t,{in:!1,onExited:I(t,"onExited",(function(){n(g,null)}))})},D[N]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,l().cloneElement(r,{in:!0,onEntered:I(r,"onEntered",(function(){n(g)}))})]},D),B=((z={})[F]=function(e){var t=e.children,n=e.changeState;return l().cloneElement(t,{in:!0,onEntered:I(t,"onEntered",(function(){n(v,l().cloneElement(t,{in:!0}))}))})},z[N]=function(e){var t=e.current,n=e.children,r=e.changeState;return[l().cloneElement(t,{in:!1,onExited:I(t,"onExited",(function(){r(v,l().cloneElement(n,{in:!0}))}))}),l().cloneElement(n,{in:!0})]},z),G=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={status:v,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===g&&e.mode===N?{status:g}:!t.current||((n=t.current)===(r=e.children)||l().isValidElement(n)&&l().isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:l().cloneElement(e.children,{in:!0})}:{status:y};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,i=this.state,o=i.status,a=i.current,s={children:n,current:a,changeState:this.changeState,status:o};switch(o){case g:e=B[r](s);break;case y:e=j[r](s);break;case v:e=a}return l().createElement(f.Provider,{value:{isMounting:!this.appeared}},e)},t}(l().Component);G.propTypes={},G.defaultProps={mode:F};const U=G},1837:(e,t,n)=>{"use strict";n(7320);var r=n(8156),i=60103;if("function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:a.current}}},2322:(e,t,n)=>{"use strict";e.exports=n(1837)},6475:(e,t)=>{"use strict";var n,r,i,o,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,l=null,c=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(c,0),e}},u=Date.now();t.unstable_now=function(){return Date.now()-u},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(c,0))},r=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},o=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,f=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var g=f.now();t.unstable_now=function(){return f.now()-g}}var v=!1,y=null,b=-1,x=5,w=0;o=function(){return t.unstable_now()>=w},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):x=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,_=E.port2;E.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();w=e+x;try{y(!0,e)?_.postMessage(null):(v=!1,y=null)}catch(e){throw _.postMessage(null),e}}else v=!1},n=function(e){y=e,v||(v=!0,_.postMessage(null))},r=function(e,n){b=p((function(){e(t.unstable_now())}),n)},i=function(){h(b),b=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<k(i,t)))break e;e[r]=t,e[n]=i,n=r}}function C(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>k(a,n))void 0!==l&&0>k(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>k(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var L=[],R=[],P=1,M=null,A=3,T=!1,D=!1,z=!1;function F(e){for(var t=C(R);null!==t;){if(null===t.callback)O(R);else{if(!(t.startTime<=e))break;O(R),t.sortIndex=t.expirationTime,S(L,t)}t=C(R)}}function N(e){if(z=!1,F(e),!D)if(null!==C(L))D=!0,n(I);else{var t=C(R);null!==t&&r(N,t.startTime-e)}}function I(e,n){D=!1,z&&(z=!1,i()),T=!0;var a=A;try{for(F(n),M=C(L);null!==M&&(!(M.expirationTime>n)||e&&!o());){var s=M.callback;if(null!==s){M.callback=null,A=M.priorityLevel;var l=s(M.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?M.callback=l:M===C(L)&&O(L),F(n)}else O(L);M=C(L)}if(null!==M)var c=!0;else{var u=C(R);null!==u&&r(N,u.startTime-n),c=!1}return c}finally{M=null,A=a,T=!1}}function j(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||T||(D=!0,n(I))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return C(L)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:j(e)}else a=j(e),l=s;return e={id:P++,callback:o,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,S(R,e),null===C(L)&&e===C(R)&&(z?i():z=!0,r(N,l-s))):(e.sortIndex=a,S(L,e),D||T||(D=!0,n(I))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();F(e);var n=C(L);return n!==M&&null!==M&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<M.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},4616:(e,t,n)=>{"use strict";e.exports=n(6475)},1250:function(e,t,n){"use strict";var r,i=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)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1181),s=o(n(2383)),l=n(8586),c=n(432),u=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 i(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.updateState=function(e){return this.setState(e(this.getState())),this},t.prototype.animate=function(e,t,n){var r=this;if(this.enabled){var i=Object.assign({},a.ANIMATE_DEFAULTS,t),o=this.validateState(e),c="function"==typeof i.easing?i.easing:s.default[i.easing],u=Date.now(),d=this.getState(),f=function(){var e=(Date.now()-u)/i.duration;if(e>=1)return r.nextFrame=null,r.setState(o),void(r.animationCallback&&(r.animationCallback.call(null),r.animationCallback=void 0));var t=c(e),n={};"number"==typeof o.x&&(n.x=d.x+(o.x-d.x)*t),"number"==typeof o.y&&(n.y=d.y+(o.y-d.y)*t),"number"==typeof o.angle&&(n.angle=d.angle+(o.angle-d.angle)*t),"number"==typeof o.ratio&&(n.ratio=d.ratio+(o.ratio-d.ratio)*t),r.setState(n),r.nextFrame=(0,l.requestFrame)(f)};this.nextFrame?((0,l.cancelFrame)(this.nextFrame),this.animationCallback&&this.animationCallback.call(null),this.nextFrame=(0,l.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||u)},e)}else this.animate({ratio:this.ratio/u})},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||u)},e)}else this.animate({ratio:this.ratio*u})},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,i=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)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.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 l(e,t){var n=o(o({},s(e,t)),{sigmaDefaultPrevented:!1,preventSigmaDefault:function(){n.sigmaDefaultPrevented=!0},original:e});return n}t.getPosition=s,t.getMouseCoords=l,t.getWheelCoords=function(e,t){return o(o({},l(e,t)),{delta:u(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 u(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.getTouchesArray=c,t.getTouchCoords=function(e,t){return{touches:c(e.touches).map((function(e){return s(e,t)})),original:e}},t.getWheelDelta=u;var d=function(e){function t(t,n){var r=e.call(this)||this;return r.container=t,r.renderer=n,r}return i(t,e),t}(a.TypedEventEmitter);t.default=d},3834:function(e,t,n){"use strict";var r,i=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)}),o=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)&&o(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var l=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 i(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,l.getMouseCoords)(e,this.container))}},t.prototype.handleRightClick=function(e){this.enabled&&this.emit("rightClick",(0,l.getMouseCoords)(e,this.container))},t.prototype.handleDoubleClick=function(e){if(this.enabled){e.preventDefault(),e.stopPropagation();var t=(0,l.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,l.getPosition)(e,this.container),r),{easing:"quadraticInOut",duration:200})}}},t.prototype.handleDown=function(e){if(this.enabled){if(0===e.button){this.startCameraState=this.renderer.getCamera().getState();var t=(0,l.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,l.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,l.getPosition)(e,this.container),i=r.x,o=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===i&&this.lastMouseY===o||n.setState({x:a.x,y:a.y}),this.isMoving=!1,setTimeout((function(){t.draggedEvents=0,t.renderer.refresh()}),0),this.emit("mouseup",(0,l.getMouseCoords)(e,this.container))}},t.prototype.handleMove=function(e){var t=this;if(this.enabled){var n=(0,l.getMouseCoords)(e,this.container);if(this.emit("mousemovebody",n),e.target===this.container&&this.emit("mousemove",n),!n.sigmaDefaultPrevented&&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(),i=(0,l.getPosition)(e,this.container),o=i.x,a=i.y,s=this.renderer.viewportToFramedGraph({x:this.lastMouseX,y:this.lastMouseY}),c=this.renderer.viewportToFramedGraph({x:o,y:a}),u=s.x-c.x,d=s.y-c.y,f=r.getState(),p=f.x+u,h=f.y+d;r.setState({x:p,y:h}),this.lastMouseX=o,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,l.getWheelDelta)(e);if(n){var r=(0,l.getWheelCoords)(e,this.container);if(this.emit("wheel",r),!r.sigmaDefaultPrevented){var i=n>0?1/1.7:1.7,o=this.renderer.getCamera(),a=o.getBoundedRatio(o.getState().ratio*i),s=n>0?1:-1,c=Date.now();this.currentWheelDirection===s&&this.lastWheelTriggerTime&&c-this.lastWheelTriggerTime<50||(o.animate(this.renderer.getViewportZoomedState((0,l.getPosition)(e,this.container),a),{easing:"quadraticOut",duration:250},(function(){t.currentWheelDirection=0})),this.currentWheelDirection=s,this.lastWheelTriggerTime=c)}}}},t.prototype.handleOut=function(){},t}(l.default);t.default=c},916:function(e,t,n){"use strict";var r,i=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)}),o=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)&&o(t,e,n);return a(t,e),t},l=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var c=s(n(8231)),u=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.enabled=!0,r.isMoving=!1,r.hasMoved=!1,r.touchMode=0,r.startTouchesPositions=[],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 i(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 i=n||t.touches[0],o=new MouseEvent(e,{clientX:i.clientX,clientY:i.clientY,altKey:t.altKey,ctrlKey:t.ctrlKey});o.isFakeSigmaMouseEvent=!0,(r||this.container).dispatchEvent(o)},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.touchMode=n.length,this.startCameraState=this.renderer.getCamera().getState(),this.startTouchesPositions=n.map((function(e){return(0,c.getPosition)(e,t.container)})),this.lastTouches=n,this.lastTouchesPositions=this.startTouchesPositions,2===this.touchMode){var r=l(this.startTouchesPositions,2),i=r[0],o=i.x,a=i.y,s=r[1],u=s.x,d=s.y;this.startTouchesAngle=Math.atan2(d-a,u-o),this.startTouchesDistance=Math.sqrt(Math.pow(u-o,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.lastTouches&&this.lastTouches.length&&(this.dispatchRelatedMouseEvent("mouseup",e,this.lastTouches[0],document),this.hasMoved||this.dispatchRelatedMouseEvent("click",e,this.lastTouches[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.hasMoved=!1,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=(0,c.getTouchesArray)(e.touches),i=r.map((function(e){return(0,c.getPosition)(e,n.container)}));if(this.lastTouches=r,this.lastTouchesPositions=i,this.hasMoved||(this.hasMoved=i.some((function(e,t){var r=n.startTouchesPositions[t];return e.x!==r.x||e.y!==r.y}))),this.hasMoved){this.isMoving=!0,this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout((function(){n.isMoving=!1}),200);var o=this.renderer.getCamera(),a=this.startCameraState;switch(this.touchMode){case 1:var s=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0]),u=s.x,d=s.y,f=this.renderer.viewportToFramedGraph(i[0]),p=f.x,h=f.y;o.setState({x:a.x+u-p,y:a.y+d-h});break;case 2:var m={},g=i[0],v=g.x,y=g.y,b=i[1],x=b.x,w=b.y,E=Math.atan2(w-y,x-v)-this.startTouchesAngle,_=Math.hypot(w-y,x-v)/this.startTouchesDistance,S=o.getBoundedRatio(a.ratio/_);m.ratio=S,m.angle=a.angle+E;var C=this.getDimensions(),O=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0],{cameraState:a}),k=Math.min(C.width,C.height),L=k/C.width,R=S/k;h=y-k/2/(k/C.height),p=(t=l([(p=v-k/2/L)*Math.cos(-m.angle)-h*Math.sin(-m.angle),h*Math.cos(-m.angle)+p*Math.sin(-m.angle)],2))[0],h=t[1],m.x=O.x-p*R,m.y=O.y+h*R,o.setState(m)}this.emit("touchmove",(0,c.getTouchCoords)(e,this.container))}}},t}(c.default);t.default=u},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 i=new n(e,t),o=this.getIndex(r),a=this.cells[o];a||(a=[],this.cells[o]=a),a.push(i)},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,i=Math.ceil(r),o=[];for(var a in this.cells)for(var s=this.cells[a],l=0;l<Math.min(i,s.length);l++)o.push(s[l].key);return o},e}();t.LabelGrid=r,t.edgeLabelsToDisplayFromNodes=function(e){var t=e.graph,n=e.hoveredNode,r=e.highlightedNodes,i=e.displayedNodeLabels,o=[];return t.forEachEdge((function(e,t,a,s){(a===n||s===n||r.has(a)||r.has(s)||i.has(a)&&i.has(s))&&o.push(e)})),o}},9316: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.rectangleCollidesWithQuad=t.squareCollidesWithQuad=t.getCircumscribedAlignedRectangle=t.isRectangleAligned=void 0;var i=r(n(8884)),o=!1;function a(e){return e.x1===e.x2||e.y1===e.y2}function s(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,i={x:e.x1,y:e.y1},o={x:e.x2,y:e.y2},a={x:e.x1+n,y:e.y1+r},s={x:e.x2+n,y:e.y2+r},l=Math.min(i.x,o.x,a.x,s.x),c=Math.max(i.x,o.x,a.x,s.x),u=Math.min(i.y,o.y,a.y,s.y);return{x1:l,y1:u,x2:c,y2:u,height:Math.max(i.y,o.y,a.y,s.y)-u}}function l(e,t,n,r,i,o,a){return e<r+o&&e+n>r&&t<i+a&&t+n>i}function c(e,t,n,r,i,o,a,s){return e<i+a&&e+n>i&&t<o+s&&t+r>o}function u(e,t,n,r,i,o){var a=e<n+i/2;return t<r+o/2?a?1:2:a?3:4}t.isRectangleAligned=a,t.getCircumscribedAlignedRectangle=s,t.squareCollidesWithQuad=l,t.rectangleCollidesWithQuad=c;var d=function(){function e(e){var t;void 0===e&&(e={}),this.containers=((t={})[5460]=[],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,i,a,s){for(var c=i-s,u=a-s,d=2*s,f=0,p=0;;){if(f>=5)return n[p]=n[p]||[],void n[p].push(r);var h=4*p+4,m=4*p+8,g=4*p+12,v=4*p+16,y=l(c,u,d,t[h+0],t[h+1],t[h+2],t[h+3]),b=l(c,u,d,t[m+0],t[m+1],t[m+2],t[m+3]),x=l(c,u,d,t[g+0],t[g+1],t[g+2],t[g+3]),w=l(c,u,d,t[v+0],t[v+1],t[v+2],t[v+3]),E=[y,b,x,w].reduce((function(e,t){return t?e+1:e}),0);if(0===E&&0===f)return n[5460].push(r),void(!o&&n[5460].length>=5&&(o=!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===E)throw new Error("sigma/quadtree.insertNode: no collision (level: ".concat(f,", key: ").concat(r,", x: ").concat(i,", y: ").concat(a,", size: ").concat(s,")."));if(3===E)throw new Error("sigma/quadtree.insertNode: 3 impossible collisions (level: ".concat(f,", key: ").concat(r,", x: ").concat(i,", y: ").concat(a,", size: ").concat(s,")."));if(E>1)return n[p]=n[p]||[],void n[p].push(r);f++,y&&(p=h),b&&(p=m),x&&(p=g),w&&(p=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(),i=n.pop(),o=4*i+4,a=4*i+8,s=4*i+12,l=4*i+16,c=t[i+0],u=t[i+1],d=t[i+2]/2,f=t[i+3]/2;t[o+0]=c,t[o+1]=u,t[o+2]=d,t[o+3]=f,t[a+0]=c+d,t[a+1]=u,t[a+2]=d,t[a+3]=f,t[s+0]=c,t[s+1]=u+f,t[s+2]=d,t[s+3]=f,t[l+0]=c+d,t[l+1]=u+f,t[l+2]=d,t[l+3]=f,r<4&&(n.push(l,r+1),n.push(s,r+1),n.push(a,r+1),n.push(o,r+1))}}(0,this.data)},e.prototype.clear=function(){var e;return this.containers=((e={})[5460]=[],e),this},e.prototype.point=function(e,t){var n=this.containers[5460].slice(),r=0,o=0;do{this.containers[r]&&(0,i.default)(n,this.containers[r]),r=4*r+4*u(e,t,this.data[r+0],this.data[r+1],this.data[r+2],this.data[r+3]),o++}while(o<=5);return n},e.prototype.rectangle=function(e,t,n,r,o){var l=this.lastRectangle;return l&&e===l.x1&&n===l.x2&&t===l.y1&&r===l.y2&&o===l.height||(this.lastRectangle={x1:e,y1:t,x2:n,y2:r,height:o},a(this.lastRectangle)||(this.lastRectangle=s(this.lastRectangle)),this.cache=function(e,t,n,r,o,a,s){for(var l,u=[0,0],d=[];u.length;){var f=u.pop(),p=u.pop();if((l=n[p])&&(0,i.default)(d,l),!(f>=5)){var h=4*p+4,m=4*p+8,g=4*p+12,v=4*p+16,y=c(r,o,a,s,t[h+0],t[h+1],t[h+2],t[h+3]),b=c(r,o,a,s,t[m+0],t[m+1],t[m+2],t[m+3]),x=c(r,o,a,s,t[g+0],t[g+1],t[g+2],t[g+3]),w=c(r,o,a,s,t[v+0],t[v+1],t[v+2],t[v+3]);y&&u.push(h,f+1),b&&u.push(m,f+1),x&&u.push(g,f+1),w&&u.push(v,f+1)}}return d}(0,this.data,this.containers,e,t,Math.abs(e-n)||Math.abs(t-r),o),(0,i.default)(this.cache,this.containers[5460])),this.cache},e}();t.default=d},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 i=r(n(8953));t.Sigma=i.default;var o=r(n(1250));t.Camera=o.default;var a=r(n(9316));t.QuadTree=a.default;var s=r(n(3834));t.MouseCaptor=s.default,t.default=i.default},284:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){var o=i.edgeLabelSize,a=i.edgeLabelFont,s=i.edgeLabelWeight,l=i.edgeLabelColor.attribute?t[i.edgeLabelColor.attribute]||i.edgeLabelColor.color||"#000":i.edgeLabelColor.color,c=t.label;if(c){e.fillStyle=l,e.font="".concat(s," ").concat(o,"px ").concat(a);var u,d,f=n.size,p=r.size,h=n.x,m=n.y,g=r.x,v=r.y,y=g-h,b=v-m,x=Math.sqrt(y*y+b*b);if(!(x<f+p)){u=((h+=y*f/x)+(g-=y*p/x))/2,d=((m+=b*f/x)+(v-=b*p/x))/2,y=g-h,b=v-m,x=Math.sqrt(y*y+b*b);var w,E=e.measureText(c).width;if(E>x){for(c+="…",E=e.measureText(c).width;E>x&&c.length>1;)c=c.slice(0,-2)+"…",E=e.measureText(c).width;if(c.length<4)return}w=y>0?b>0?Math.acos(y/x):Math.asin(b/x):b>0?Math.acos(y/x)+Math.PI:Math.asin(y/x)+Math.PI/2,e.save(),e.translate(u,d),e.rotate(w),e.fillText(c,-E/2,t.size/2+o),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 i=r(n(2193));t.default=function(e,t,n){var r=n.labelSize,o=n.labelFont,a=n.labelWeight;if(e.font="".concat(a," ").concat(r,"px ").concat(o),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,l=Math.round(s+5),c=Math.round(r+4),u=Math.max(t.size,r/2)+2,d=Math.asin(c/2/u),f=Math.sqrt(Math.abs(Math.pow(u,2)-Math.pow(c/2,2)));e.beginPath(),e.moveTo(t.x+f,t.y+c/2),e.lineTo(t.x+u+l,t.y+c/2),e.lineTo(t.x+u+l,t.y-c/2),e.lineTo(t.x+f,t.y-c/2),e.arc(t.x,t.y,u,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,i.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,i=n.labelFont,o=n.labelWeight,a=n.labelColor.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color;e.fillStyle=a,e.font="".concat(o," ").concat(r,"px ").concat(i),e.fillText(t.label,t.x+t.size+3,t.y+r/3)}}},4488:function(e,t,n){"use strict";var r,i=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 o=function(e){function t(t,n,r,i,o){return e.call(this,t,n,r,i,o)||this}return i(t,e),t}(n(1549).AbstractProgram);t.AbstractEdgeProgram=o,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,i){this.programs.forEach((function(o){return o.process(e,t,n,r,i)}))},t}()}},1624:function(e,t,n){"use strict";var r,i=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 o=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i,o)||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 l=t.getUniformLocation(a.program,"u_ratio");if(null===l)throw new Error("AbstractNodeProgram: error while getting ratioLocation");a.ratioLocation=l;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 i(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=o,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){t.bind(),t.bufferData(),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),i=function(){function e(e,t,n,i,o){this.array=new Float32Array,this.points=i,this.attributes=o,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=i},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 i=n(4488),o=r(n(3193)),a=r(n(3653)),s=(0,i.createEdgeCompoundProgram)([a.default,o.default]);t.default=s},3193:function(e,t,n){"use strict";var r,i=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)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=o(n(577)),l=o(n(1604)),c=function(e){function t(t){var n=e.call(this,t,s.default,l.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 i=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===i)throw new Error("EdgeArrowHeadProgram: error while getting sqrtZoomRatioLocation");n.sqrtZoomRatioLocation=i;var o=t.getUniformLocation(n.program,"u_correctionRatio");if(null===o)throw new Error("EdgeArrowHeadProgram: error while getting correctionRatioLocation");return n.correctionRatioLocation=o,n.bind(),n}return i(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,i){if(r)for(var o=27*i,s=o+27;o<s;o++)this.array[o]=0;else{var l=n.size||1,c=t.size||1,u=e.x,d=e.y,f=t.x,p=t.y,h=(0,a.floatColor)(n.color),m=f-u,g=p-d,v=m*m+g*g,y=0,b=0;v&&(y=-g*(v=1/Math.sqrt(v))*l,b=m*v*l);var x=27*i,w=this.array;w[x++]=f,w[x++]=p,w[x++]=-y,w[x++]=-b,w[x++]=c,w[x++]=h,w[x++]=1,w[x++]=0,w[x++]=0,w[x++]=f,w[x++]=p,w[x++]=-y,w[x++]=-b,w[x++]=c,w[x++]=h,w[x++]=0,w[x++]=1,w[x++]=0,w[x++]=f,w[x++]=p,w[x++]=-y,w[x++]=-b,w[x++]=c,w[x++]=h,w[x++]=0,w[x++]=0,w[x]=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,i=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)}),o=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),l=o(n(3574)),c=o(n(3343)),u=function(e){function t(t){var n=e.call(this,t,l.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 i=t.getUniformLocation(n.program,"u_matrix");if(null===i)throw new Error("EdgeClampedProgram: error while getting matrixLocation");n.matrixLocation=i;var o=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===o)throw new Error("EdgeClampedProgram: error while getting cameraRatioLocation");n.sqrtZoomRatioLocation=o;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 i(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,i){if(r)for(var o=24*i,a=o+24;o<a;o++)this.array[o]=0;else{var l=n.size||1,c=e.x,u=e.y,d=t.x,f=t.y,p=t.size||1,h=(0,s.floatColor)(n.color),m=d-c,g=f-u,v=m*m+g*g,y=0,b=0;v&&(y=-g*(v=1/Math.sqrt(v))*l,b=m*v*l);var x=24*i,w=this.array;w[x++]=c,w[x++]=u,w[x++]=y,w[x++]=b,w[x++]=h,w[x++]=0,w[x++]=c,w[x++]=u,w[x++]=-y,w[x++]=-b,w[x++]=h,w[x++]=0,w[x++]=d,w[x++]=f,w[x++]=y,w[x++]=b,w[x++]=h,w[x++]=p,w[x++]=d,w[x++]=f,w[x++]=-y,w[x++]=-b,w[x++]=h,w[x]=-p}},t.prototype.computeIndices=function(){for(var e=this.array.length/6,t=e+e/2,n=new this.IndicesArray(t),r=0,i=0;r<e;r+=4)n[i++]=r,n[i++]=r+1,n[i++]=r+2,n[i++]=r+2,n[i++]=r+1,n[i++]=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=u},5372:function(e,t,n){"use strict";var r,i=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)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=o(n(9843)),l=o(n(3343)),c=function(e){function t(t){var n=e.call(this,t,s.default,l.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 i=t.getUniformLocation(n.program,"u_matrix");if(null===i)throw new Error("EdgeProgram: error while getting matrixLocation");n.matrixLocation=i;var o=t.getUniformLocation(n.program,"u_correctionRatio");if(null===o)throw new Error("EdgeProgram: error while getting correctionRatioLocation");n.correctionRatioLocation=o;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 i(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,i=0;r<e;r+=4)n[i++]=r,n[i++]=r+1,n[i++]=r+2,n[i++]=r+2,n[i++]=r+1,n[i++]=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,i){if(r)for(var o=20*i,s=o+20;o<s;o++)this.array[o]=0;else{var l=n.size||1,c=e.x,u=e.y,d=t.x,f=t.y,p=(0,a.floatColor)(n.color),h=d-c,m=f-u,g=h*h+m*m,v=0,y=0;g&&(v=-m*(g=1/Math.sqrt(g))*l,y=h*g*l);var b=20*i,x=this.array;x[b++]=c,x[b++]=u,x[b++]=v,x[b++]=y,x[b++]=p,x[b++]=c,x[b++]=u,x[b++]=-v,x[b++]=-y,x[b++]=p,x[b++]=d,x[b++]=f,x[b++]=v,x[b++]=y,x[b++]=p,x[b++]=d,x[b++]=f,x[b++]=-v,x[b++]=-y,x[b]=p}},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,i=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)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=o(n(1432)),l=o(n(6846)),c=function(e){function t(t){var n=e.call(this,t,s.default,l.default,1,4)||this;return n.bind(),n}return i(t,e),t.prototype.process=function(e,t,n){var r=this.array,i=1*n*4;if(t)return r[i++]=0,r[i++]=0,r[i++]=0,void(r[i++]=0);var o=(0,a.floatColor)(e.color);r[i++]=e.x,r[i++]=e.y,r[i++]=e.size,r[i]=o},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\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}\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 // antialiasing 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;\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\n\nvoid main(void) {\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(transparent, 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,i=t.createShader(r);if(null===i)throw new Error("loadShader: error while creating the shader");if(t.shaderSource(i,n),t.compileShader(i),!t.getShaderParameter(i,t.COMPILE_STATUS)){var o=t.getShaderInfoLog(i);throw t.deleteShader(i),new Error("loadShader: error while compiling the shader:\n".concat(o,"\n").concat(n))}return i}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,i=e.createProgram();if(null===i)throw new Error("loadProgram: error while creating the program.");for(n=0,r=t.length;n<r;n++)e.attachShader(i,t[n]);if(e.linkProgram(i),!e.getProgramParameter(i,e.LINK_STATUS))throw e.deleteProgram(i),new Error("loadProgram: error while linking the program.");return i}},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.resolveSettings=t.validateSettings=t.DEFAULT_EDGE_PROGRAM_CLASSES=t.DEFAULT_NODE_PROGRAM_CLASSES=t.DEFAULT_SETTINGS=void 0;var i=n(8586),o=r(n(2193)),a=r(n(4362)),s=r(n(284)),l=r(n(732)),c=r(n(5372)),u=r(n(5696));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:a.default,edgeLabelRenderer:s.default,allowInvalidContainer:!1,nodeProgramClasses:{},nodeHoverProgramClasses:{},edgeProgramClasses:{}},t.DEFAULT_NODE_PROGRAM_CLASSES={circle:l.default},t.DEFAULT_EDGE_PROGRAM_CLASSES={arrow:u.default,line:c.default},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.resolveSettings=function(e){var n=(0,i.assign)({},t.DEFAULT_SETTINGS,e);return n.nodeProgramClasses=(0,i.assign)({},t.DEFAULT_NODE_PROGRAM_CLASSES,n.nodeProgramClasses),n.edgeProgramClasses=(0,i.assign)({},t.DEFAULT_EDGE_PROGRAM_CLASSES,n.edgeProgramClasses),n}},8953:function(e,t,n){"use strict";var r,i=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)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.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 l=s(n(8884)),c=s(n(1250)),u=s(n(3834)),d=s(n(9316)),f=n(432),p=n(8586),h=n(2306),m=n(9061),g=s(n(916)),v=n(2237),y=n(8073);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 x(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 w=function(e){function t(t,n,r){void 0===r&&(r={});var i=e.call(this)||this;if(i.elements={},i.canvasContexts={},i.webGLContexts={},i.activeListeners={},i.quadtree=new d.default,i.labelGrid=new h.LabelGrid,i.nodeDataCache={},i.edgeDataCache={},i.nodesWithForcedLabels=[],i.edgesWithForcedLabels=[],i.nodeExtent={x:[0,1],y:[0,1]},i.matrix=(0,v.identity)(),i.invMatrix=(0,v.identity)(),i.correctionRatio=1,i.customBBox=null,i.normalizationFunction=(0,p.createNormalizationFunction)({x:[0,1],y:[0,1]}),i.cameraSizeRatio=1,i.width=0,i.height=0,i.pixelRatio=(0,p.getPixelRatio)(),i.displayedLabels=new Set,i.highlightedNodes=new Set,i.hoveredNode=null,i.hoveredEdge=null,i.renderFrame=null,i.renderHighlightedNodesFrame=null,i.needToProcess=!1,i.needToSoftProcess=!1,i.checkEdgesEventsFrame=null,i.nodePrograms={},i.nodeHoverPrograms={},i.edgePrograms={},i.settings=(0,m.resolveSettings)(r),(0,m.validateSettings)(i.settings),(0,p.validateGraph)(t),!(n instanceof HTMLElement))throw new Error("Sigma: container should be an html element.");for(var o in i.graph=t,i.container=n,i.createWebGLContext("edges",{preserveDrawingBuffer:!0}),i.createCanvasContext("edgeLabels"),i.createWebGLContext("nodes"),i.createCanvasContext("labels"),i.createCanvasContext("hovers"),i.createWebGLContext("hoverNodes"),i.createCanvasContext("mouse"),i.webGLContexts){var a=i.webGLContexts[o];a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA),a.enable(a.BLEND)}for(var s in i.settings.nodeProgramClasses){var l=i.settings.nodeProgramClasses[s];i.nodePrograms[s]=new l(i.webGLContexts.nodes,i);var f=l;s in i.settings.nodeHoverProgramClasses&&(f=i.settings.nodeHoverProgramClasses[s]),i.nodeHoverPrograms[s]=new f(i.webGLContexts.hoverNodes,i)}for(var s in i.settings.edgeProgramClasses){var y=i.settings.edgeProgramClasses[s];i.edgePrograms[s]=new y(i.webGLContexts.edges,i)}return i.resize(),i.camera=new c.default,i.bindCameraHandlers(),i.mouseCaptor=new u.default(i.elements.mouse,i),i.touchCaptor=new g.default(i.elements.mouse,i),i.bindEventHandlers(),i.bindGraphHandlers(),i.handleSettingsUpdate(),i.process(),i.render(),i}return i(t,e),t.prototype.createCanvas=function(e){var t=(0,p.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),i=o({preserveDrawingBuffer:!1,antialias:!1},t||{});return(n=r.getContext("webgl2",i))||(n=r.getContext("webgl",i)),n||(n=r.getContext("experimental-webgl",i)),this.webGLContexts[e]=n,this},t.prototype.bindCameraHandlers=function(){var e=this;return this.activeListeners.camera=function(){e._scheduleRefresh()},this.camera.on("updated",this.activeListeners.camera),this},t.prototype.mouseIsOnNode=function(e,t,n){var r=e.x,i=e.y,o=t.x,a=t.y;return r>o-n&&r<o+n&&i>a-n&&i<a+n&&Math.sqrt(Math.pow(r-o,2)+Math.pow(i-a,2))<n},t.prototype.getQuadNodes=function(e){var t=this.viewportToFramedGraph(e);return this.quadtree.point(t.x,1-t.y)},t.prototype.getNodeAtPosition=function(e){for(var t=e.x,n=e.y,r=this.getQuadNodes(e),i=1/0,o=null,a=0,s=r.length;a<s;a++){var l=r[a],c=this.nodeDataCache[l],u=this.framedGraphToViewport(c),d=this.scaleSize(c.size);if(!c.hidden&&this.mouseIsOnNode(e,u,d)){var f=Math.sqrt(Math.pow(t-u.x,2)+Math.pow(n-u.y,2));f<i&&(i=f,o=l)}}return o},t.prototype.bindEventHandlers=function(){var e=this;this.activeListeners.handleResize=function(){e.needToSoftProcess=!0,e._scheduleRefresh()},window.addEventListener("resize",this.activeListeners.handleResize),this.activeListeners.handleMove=function(t){var n={event:t,preventSigmaDefault:function(){t.preventSigmaDefault()}},r=e.getNodeAtPosition(t);if(r&&e.hoveredNode!==r&&!e.nodeDataCache[r].hidden)return e.hoveredNode&&e.emit("leaveNode",o(o({},n),{node:e.hoveredNode})),e.hoveredNode=r,e.emit("enterNode",o(o({},n),{node:r})),void e.scheduleHighlightedNodesRender();if(e.hoveredNode){var i=e.nodeDataCache[e.hoveredNode],a=e.framedGraphToViewport(i),s=e.scaleSize(i.size);if(!e.mouseIsOnNode(t,a,s)){var l=e.hoveredNode;return e.hoveredNode=null,e.emit("leaveNode",o(o({},n),{node:l})),void e.scheduleHighlightedNodesRender()}}!0===e.settings.enableEdgeHoverEvents?e.checkEdgeHoverEvents(n):"debounce"===e.settings.enableEdgeHoverEvents&&(e.checkEdgesEventsFrame||(e.checkEdgesEventsFrame=(0,p.requestFrame)((function(){e.checkEdgeHoverEvents(n),e.checkEdgesEventsFrame=null}))))};var t=function(t){return function(n){var r={event:n,preventSigmaDefault:function(){n.preventSigmaDefault()}},i=n.original.isFakeSigmaMouseEvent?e.getNodeAtPosition(n):e.hoveredNode;if(i)return e.emit("".concat(t,"Node"),o(o({},r),{node:i}));if("wheel"===t?e.settings.enableEdgeWheelEvents:e.settings.enableEdgeClickEvents){var a=e.getEdgeAtPoint(n.x,n.y);if(a)return e.emit("".concat(t,"Edge"),o(o({},r),{edge:a}))}return e.emit("".concat(t,"Stage"),r)}};return this.activeListeners.handleClick=t("click"),this.activeListeners.handleRightClick=t("rightClick"),this.activeListeners.handleDoubleClick=t("doubleClick"),this.activeListeners.handleWheel=t("wheel"),this.activeListeners.handleDown=t("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.dropNodeGraphUpdate=function(t){delete e.nodeDataCache[t.key],e.hoveredNode===t.key&&(e.hoveredNode=null),e.activeListeners.graphUpdate()},this.activeListeners.dropEdgeGraphUpdate=function(t){delete e.edgeDataCache[t.key],e.hoveredEdge===t.key&&(e.hoveredEdge=null),e.activeListeners.graphUpdate()},this.activeListeners.clearEdgesGraphUpdate=function(){e.edgeDataCache={},e.hoveredEdge=null,e.activeListeners.graphUpdate()},this.activeListeners.clearGraphUpdate=function(){e.nodeDataCache={},e.hoveredNode=null,e.activeListeners.clearEdgesGraphUpdate()},t.on("nodeAdded",this.activeListeners.graphUpdate),t.on("nodeDropped",this.activeListeners.dropNodeGraphUpdate),t.on("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgeAdded",this.activeListeners.graphUpdate),t.on("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),t.on("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),t.on("cleared",this.activeListeners.clearGraphUpdate),this},t.prototype.unbindGraphHandlers=function(){var e=this.graph;e.removeListener("nodeAdded",this.activeListeners.graphUpdate),e.removeListener("nodeDropped",this.activeListeners.dropNodeGraphUpdate),e.removeListener("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgeAdded",this.activeListeners.graphUpdate),e.removeListener("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),e.removeListener("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),e.removeListener("cleared",this.activeListeners.clearGraphUpdate)},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",o(o({},e),{edge:this.hoveredEdge})),t&&this.emit("enterEdge",o(o({},e),{edge:t})),this.hoveredEdge=t),this},t.prototype.getEdgeAtPoint=function(e,t){var n,r,i=this,o=this.edgeDataCache,s=this.nodeDataCache;if(!(0,y.isPixelColored)(this.webGLContexts.edges,e*this.pixelRatio,t*this.pixelRatio))return null;var l=this.viewportToGraph({x:e,y:t}),c=l.x,u=l.y,d=0;if(this.graph.someEdge((function(e,t,n,r,a,l){var c=a.x,u=a.y,f=l.x,p=l.y;if(o[e].hidden||s[n].hidden||s[r].hidden)return!1;if(c!==f||u!==p){var h=Math.sqrt(Math.pow(f-c,2)+Math.pow(p-u,2)),m=i.graphToViewport({x:c,y:u}),g=m.x,v=m.y,y=i.graphToViewport({x:f,y:p}),b=y.x,x=y.y,w=Math.sqrt(Math.pow(b-g,2)+Math.pow(x-v,2));return d=h/w,!0}})),!d)return null;var f=this.graph.filterEdges((function(e,t,n,r,a,l){return!(o[e].hidden||s[n].hidden||s[r].hidden)&&(!!(0,y.doEdgeCollideWithPoint)(c,u,a.x,a.y,l.x,l.y,o[e].size*d/i.cameraSizeRatio)||void 0)}));if(0===f.length)return null;var p=f[f.length-1],h=-1/0;try{for(var m=a(f),g=m.next();!g.done;g=m.next()){var v=g.value,b=this.graph.getEdgeAttribute(v,"zIndex");b>=h&&(p=v,h=b)}}catch(e){n={error:e}}finally{try{g&&!g.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}return p},t.prototype.process=function(e){var t=this;void 0===e&&(e=!1);var n=this.graph,r=this.settings,i=this.getDimensions(),o=[1/0,-1/0],a=[1/0,-1/0];this.quadtree.clear(),this.labelGrid.resizeAndClear(i,r.labelGridCellSize),this.highlightedNodes=new Set,this.nodeExtent=(0,p.graphExtent)(n),this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[];var s=new c.default,l=(0,p.matrixFromCamera)(s.getState(),this.getDimensions(),this.getGraphDimensions(),this.getSetting("stagePadding")||0);this.normalizationFunction=(0,p.createNormalizationFunction)(this.customBBox||this.nodeExtent);for(var u={},d=n.nodes(),f=0,h=d.length;f<h;f++){var m=d[f],g=Object.assign({},n.getNodeAttributes(m));r.nodeReducer&&(g=r.nodeReducer(m,g)),u[(y=b(this.settings,m,g)).type]=(u[y.type]||0)+1,this.nodeDataCache[m]=y,this.normalizationFunction.applyTo(y),y.forceLabel&&this.nodesWithForcedLabels.push(m),this.settings.zIndex&&(y.zIndex<o[0]&&(o[0]=y.zIndex),y.zIndex>o[1]&&(o[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(u[v]||0),u[v]=0}for(this.settings.zIndex&&o[0]!==o[1]&&(d=(0,p.zIndexOrdering)(o,(function(e){return t.nodeDataCache[e].zIndex}),d)),f=0,h=d.length;f<h;f++){m=d[f];var y=this.nodeDataCache[m];this.quadtree.add(m,y.x,1-y.y,y.size/this.width),"string"!=typeof y.label||y.hidden||this.labelGrid.add(m,y.size,this.framedGraphToViewport(y,{matrix:l}));var w=this.nodePrograms[y.type];if(!w)throw new Error('Sigma: could not find a suitable program for node type "'.concat(y.type,'"!'));w.process(y,y.hidden,u[y.type]++),y.highlighted&&!y.hidden&&this.highlightedNodes.add(m)}this.labelGrid.organize();var E={},_=n.edges();for(f=0,h=_.length;f<h;f++){var S=_[f];g=Object.assign({},n.getEdgeAttributes(S)),r.edgeReducer&&(g=r.edgeReducer(S,g)),E[(y=x(this.settings,0,g)).type]=(E[y.type]||0)+1,this.edgeDataCache[S]=y,y.forceLabel&&!y.hidden&&this.edgesWithForcedLabels.push(S),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]&&(_=(0,p.zIndexOrdering)(a,(function(e){return t.edgeDataCache[e].zIndex}),_)),f=0,h=_.length;f<h;f++){S=_[f],y=this.edgeDataCache[S];var C=n.extremities(S),O=this.nodeDataCache[C[0]],k=this.nodeDataCache[C[1]],L=y.hidden||O.hidden||k.hidden;this.edgePrograms[y.type].process(O,k,y,L,E[y.type]++)}for(var v in this.edgePrograms){var R=this.edgePrograms[v];e||"function"!=typeof R.computeIndices||R.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,p.requestFrame)((function(){e._refresh(),e.renderFrame=null}))),this},t.prototype.renderLabels=function(){if(!this.settings.renderLabels)return this;var e=this.camera.getState(),t=this.labelGrid.getLabelsToDisplay(e.ratio,this.settings.labelDensity);(0,l.default)(t,this.nodesWithForcedLabels),this.displayedLabels=new Set;for(var n=this.canvasContexts.labels,r=0,i=t.length;r<i;r++){var a=t[r],s=this.nodeDataCache[a];if(!this.displayedLabels.has(a)&&!s.hidden){var c=this.framedGraphToViewport(s),u=c.x,d=c.y,f=this.scaleSize(s.size);!s.forceLabel&&f<this.settings.labelRenderedSizeThreshold||u<-150||u>this.width+150||d<-50||d>this.height+50||(this.displayedLabels.add(a),this.settings.labelRenderer(n,o(o({key:a},s),{size:f,x:u,y:d}),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,i=t.length;r<i;r++){var a=t[r],s=this.graph.extremities(a),l=this.nodeDataCache[s[0]],c=this.nodeDataCache[s[1]],u=this.edgeDataCache[a];n.has(a)||u.hidden||l.hidden||c.hidden||(this.settings.edgeLabelRenderer(e,o(o({key:a},u),{size:this.scaleSize(u.size)}),o(o(o({key:s[0]},l),this.framedGraphToViewport(l)),{size:this.scaleSize(l.size)}),o(o(o({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],i=e.framedGraphToViewport(r),a=i.x,s=i.y,l=e.scaleSize(r.size);e.settings.hoverRenderer(t,o(o({key:n},r),{size:l,x:a,y:s}),e.settings)}(n)}));var r={};for(var i in n.forEach((function(t){var n=e.nodeDataCache[t].type;r[n]=(r[n]||0)+1})),this.nodeHoverPrograms)this.nodeHoverPrograms[i].allocate(r[i]||0),r[i]=0;for(var i in n.forEach((function(t){var n=e.nodeDataCache[t];e.nodeHoverPrograms[n.type].process(n,n.hidden,r[n.type]++)})),this.webGLContexts.hoverNodes.clear(this.webGLContexts.hoverNodes.COLOR_BUFFER_BIT),this.nodeHoverPrograms){var a=this.nodeHoverPrograms[i];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:this.pixelRatio})}},t.prototype.scheduleHighlightedNodesRender=function(){var e=this;this.renderHighlightedNodesFrame||this.renderFrame||(this.renderHighlightedNodesFrame=(0,p.requestFrame)((function(){e.renderHighlightedNodesFrame=null,e.renderHighlightedNodes(),e.renderEdgeLabels()})))},t.prototype.render=function(){var e=this;this.emit("beforeRender");var t=function(){return e.emit("afterRender"),e};if(this.renderFrame&&((0,p.cancelFrame)(this.renderFrame),this.renderFrame=null,this.needToProcess=!1,this.needToSoftProcess=!1),this.resize(),this.clear(),this.updateCachedValues(),!this.graph.order)return t();var n=this.mouseCaptor,r=this.camera.isAnimated()||n.isMoving||n.draggedEvents||n.currentWheelDirection,i=this.camera.getState(),o=this.getDimensions(),a=this.getGraphDimensions(),s=this.getSetting("stagePadding")||0;for(var l in this.matrix=(0,p.matrixFromCamera)(i,o,a,s),this.invMatrix=(0,p.matrixFromCamera)(i,o,a,s,!0),this.correctionRatio=(0,p.getMatrixImpact)(this.matrix,i,o),this.nodePrograms)(c=this.nodePrograms[l]).bind(),c.bufferData(),c.render({matrix:this.matrix,width:this.width,height:this.height,ratio:i.ratio,correctionRatio:this.correctionRatio/i.ratio,scalingRatio:this.pixelRatio});if(!this.settings.hideEdgesOnMove||!r)for(var l in this.edgePrograms){var c;(c=this.edgePrograms[l]).bind(),c.bufferData(),c.render({matrix:this.matrix,width:this.width,height:this.height,ratio:i.ratio,correctionRatio:this.correctionRatio/i.ratio,scalingRatio:this.pixelRatio})}return this.settings.hideLabelsOnMove&&r||(this.renderLabels(),this.renderEdgeLabels(),this.renderHighlightedNodes()),t()},t.prototype.updateCachedValues=function(){var e=this.camera.getState().ratio;this.cameraSizeRatio=Math.sqrt(e)},t.prototype.getCamera=function(){return this.camera},t.prototype.getContainer=function(){return this.container},t.prototype.getGraph=function(){return this.graph},t.prototype.setGraph=function(e){e!==this.graph&&(this.unbindGraphHandlers(),this.nodeDataCache={},this.edgeDataCache={},this.displayedLabels.clear(),this.highlightedNodes.clear(),this.hoveredNode=null,this.hoveredEdge=null,this.nodesWithForcedLabels.length=0,this.edgesWithForcedLabels.length=0,null!==this.checkEdgesEventsFrame&&((0,p.cancelFrame)(this.checkEdgesEventsFrame),this.checkEdgesEventsFrame=null),this.graph=e,this.bindGraphHandlers(),this.process(),this.render())},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 o({},this.settings)},t.prototype.getSetting=function(e){return this.settings[e]},t.prototype.setSetting=function(e,t){return this.settings[e]=t,(0,m.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,m.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,this.pixelRatio=(0,p.getPixelRatio)(),0===this.width){if(!this.settings.allowInvalidContainer)throw new Error("Sigma: Container has no width. You can set the allowInvalidContainer setting to true to stop seeing this error.");this.width=1}if(0===this.height){if(!this.settings.allowInvalidContainer)throw new Error("Sigma: Container has no height. You can set the allowInvalidContainer setting to true to stop seeing this error.");this.height=1}if(e===this.width&&t===this.height)return this;for(var n in this.emit("resize"),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*this.pixelRatio+"px"),this.elements[n].setAttribute("height",this.height*this.pixelRatio+"px"),1!==this.pixelRatio&&this.canvasContexts[n].scale(this.pixelRatio,this.pixelRatio);for(var n in this.webGLContexts)this.elements[n].setAttribute("width",this.width*this.pixelRatio+"px"),this.elements[n].setAttribute("height",this.height*this.pixelRatio+"px"),this.webGLContexts[n].viewport(0,0,this.width*this.pixelRatio,this.height*this.pixelRatio);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.hoverNodes.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,i=n.angle,o=n.x,a=n.y,s=t/r,l={x:this.width/2,y:this.height/2},c=this.viewportToFramedGraph(e),u=this.viewportToFramedGraph(l);return{angle:i,x:(c.x-u.x)*(1-s)+o,y:(c.y-u.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}),i=this.viewportToFramedGraph({x:0,y:this.height+t});return{x1:n.x,y1:n.y,x2:r.x,y2:r.y,height:r.y-i.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,p.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0):this.matrix,i=(0,v.multiplyVec2)(r,e);return{x:(1+i.x)*this.width/2,y:(1-i.y)*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,p.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0,!0):this.invMatrix,i=(0,v.multiplyVec2)(r,{x:e.x/this.width*2-1,y:1-e.y/this.height*2});return isNaN(i.x)&&(i.x=0),isNaN(i.y)&&(i.y=0),i},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,p.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(){this.emit("kill"),this.removeAllListeners(),this.camera.removeListener("updated",this.activeListeners.camera),window.removeEventListener("resize",this.activeListeners.handleResize),this.mouseCaptor.kill(),this.touchCaptor.kill(),this.unbindGraphHandlers(),this.quadtree=new d.default,this.nodeDataCache={},this.edgeDataCache={},this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[],this.highlightedNodes.clear(),this.renderFrame&&((0,p.cancelFrame)(this.renderFrame),this.renderFrame=null),this.renderHighlightedNodesFrame&&((0,p.cancelFrame)(this.renderHighlightedNodesFrame),this.renderHighlightedNodesFrame=null);for(var e=this.container;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.scaleSize=function(e){return e/this.cameraSizeRatio},t.prototype.getCanvases=function(){return o({},this.elements)},t}(f.TypedEventEmitter);t.default=w},432:function(e,t,n){"use strict";var r,i=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 o=function(e){function t(){var t=e.call(this)||this;return t.rawEmitter=t,t}return i(t,e),t}(n(2699).EventEmitter);t.TypedEventEmitter=o},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 i=n(8586),o=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),l="function"==typeof s.easing?s.easing:o.default[s.easing],c=Date.now(),u={};for(var d in n){var f=n[d];for(var p in u[d]={},f)u[d][p]=e.getNodeAttribute(d,p)}var h=null,m=function(){h=null;var t=(Date.now()-c)/s.duration;if(t>=1){for(var r in n){var o=n[r];for(var d in o)e.setNodeAttribute(r,d,o[d])}"function"==typeof a&&a()}else{for(var r in t=l(t),n){o=n[r];var f=u[r];for(var d in o)e.setNodeAttribute(r,d,o[d]*t+f[d]*(1-t))}h=(0,i.requestFrame)(m)}};return m(),function(){h&&(0,i.cancelFrame)(h)}}},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,i,o,a){return!(e<n-a&&e<i-a||t<r-a&&t<o-a||e>n+a&&e>i+a||t>r+a&&t>o+a||!(Math.abs((i-n)*(r-t)-(n-e)*(o-r))/Math.sqrt(Math.pow(i-n,2)+Math.pow(o-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,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=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.floatArrayColor=t.parseColor=t.zIndexOrdering=t.createNormalizationFunction=t.graphExtent=t.getPixelRatio=t.createElement=t.cancelFrame=t.requestFrame=t.assignDeep=t.assign=t.isPlainObject=void 0;var o=i(n(1880)),a=n(2237),s=n(1078);function l(e){return"object"==typeof e&&null!==e&&e.constructor===Object}t.isPlainObject=l,t.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e=e||{};for(var r=0,i=t.length;r<i;r++){var o=t[r];o&&Object.assign(e,o)}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 i=0,o=n.length;i<o;i++){var a=n[i];if(a)for(var s in a)l(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 i in t)r.style[i]=t[i];if(n)for(var i in n)r.setAttribute(i,n[i]);return r},t.getPixelRatio=function(){return void 0!==window.devicePixelRatio?window.devicePixelRatio:1},t.graphExtent=function(e){if(!e.order)return{x:[0,1],y:[0,1]};var t=1/0,n=-1/0,r=1/0,i=-1/0;return e.forEachNode((function(e,o){var a=o.x,s=o.y;a<t&&(t=a),a>n&&(n=a),s<r&&(r=s),s>i&&(i=s)})),{x:[t,n],y:[r,i]}},t.createNormalizationFunction=function(e){var t=r(e.x,2),n=t[0],i=t[1],o=r(e.y,2),a=o[0],s=o[1],l=Math.max(i-n,s-a),c=(i+n)/2,u=(s+a)/2;(0===l||Math.abs(l)===1/0||isNaN(l))&&(l=1),isNaN(c)&&(c=0),isNaN(u)&&(u=0);var d=function(e){return{x:.5+(e.x-c)/l,y:.5+(e.y-u)/l}};return d.applyTo=function(e){e.x=.5+(e.x-c)/l,e.y=.5+(e.y-u)/l},d.inverse=function(e){return{x:c+l*(e.x-.5),y:u+l*(e.y-.5)}},d.ratio=l,d},t.zIndexOrdering=function(e,t,n){return n.sort((function(e,n){var r=t(e)||0,i=t(n)||0;return r<i?-1:r>i?1:0}))};var c=new Int8Array(4),u=new Int32Array(c.buffer,0,1),d=new Float32Array(c.buffer,0,1),f=/^\s*rgba?\s*\(/,p=/^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/;function h(e){var t=0,n=0,r=0,i=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)),9===e.length&&(i=parseInt(e.charAt(7)+e.charAt(8),16)/255);else if(f.test(e)){var o=e.match(p);o&&(t=+o[1],n=+o[2],r=+o[3],o[4]&&(i=+o[4]))}return{r:t,g:n,b:r,a:i}}t.parseColor=h;var m={};for(var g in s.HTML_COLORS)m[g]=v(s.HTML_COLORS[g]),m[s.HTML_COLORS[g]]=m[g];function v(e){if(void 0!==m[e])return m[e];var t=h(e),n=t.r,r=t.g,i=t.b,o=t.a;o=255*o|0,u[0]=4278190079&(o<<24|i<<16|r<<8|n);var a=d[0];return m[e]=a,a}function y(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.floatArrayColor=function(e){var t=h(e=s.HTML_COLORS[e]||e),n=t.r,r=t.g,i=t.b,o=t.a;return new Float32Array([n/255,r/255,i/255,o])},t.floatColor=v,t.getCorrectionRatio=y,t.matrixFromCamera=function(e,t,n,r,i){var o=e.angle,s=e.ratio,l=e.x,c=e.y,u=t.width,d=t.height,f=(0,a.identity)(),p=Math.min(u,d)-2*r,h=y(t,n);return i?((0,a.multiply)(f,(0,a.translate)((0,a.identity)(),l,c)),(0,a.multiply)(f,(0,a.scale)((0,a.identity)(),s)),(0,a.multiply)(f,(0,a.rotate)((0,a.identity)(),o)),(0,a.multiply)(f,(0,a.scale)((0,a.identity)(),u/p/2/h,d/p/2/h))):((0,a.multiply)(f,(0,a.scale)((0,a.identity)(),p/u*2*h,p/d*2*h)),(0,a.multiply)(f,(0,a.rotate)((0,a.identity)(),-o)),(0,a.multiply)(f,(0,a.scale)((0,a.identity)(),1/s)),(0,a.multiply)(f,(0,a.translate)((0,a.identity)(),-l,-c))),f},t.getMatrixImpact=function(e,t,n){var r=(0,a.multiplyVec2)(e,{x:Math.cos(t.angle),y:Math.sin(t.angle)},0),i=r.x,o=r.y;return 1/Math.sqrt(Math.pow(i,2)+Math.pow(o,2))/n.width},t.extractPixel=function(e,t,n,r){var i=r||new Uint8Array(4);return e.readPixels(t,n,1,1,e.RGBA,e.UNSIGNED_BYTE,i),i},t.canUse32BitsIndices=function(e){return"undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||!!e.getExtension("OES_element_index_uint")},t.validateGraph=function(e){if(!(0,o.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.multiplyVec2=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],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=t[0],f=t[1],p=t[2],h=t[3],m=t[4],g=t[5],v=t[6],y=t[7],b=t[8];return e[0]=d*n+f*o+p*l,e[1]=d*r+f*a+p*c,e[2]=d*i+f*s+p*u,e[3]=h*n+m*o+g*l,e[4]=h*r+m*a+g*c,e[5]=h*i+m*s+g*u,e[6]=v*n+y*o+b*l,e[7]=v*r+y*a+b*c,e[8]=v*i+y*s+b*u,e},t.multiplyVec2=function(e,t,n){void 0===n&&(n=1);var r=e[0],i=e[1],o=e[3],a=e[4],s=e[6],l=e[7],c=t.x,u=t.y;return{x:c*r+u*o+s*n,y:c*i+u*a+l*n}}},1884:t=>{"use strict";t.exports=e},8282:e=>{"use strict";e.exports=t},6496:e=>{"use strict";e.exports=n},5635:e=>{"use strict";e.exports=r},4294:e=>{"use strict";e.exports=i},8668:e=>{"use strict";e.exports=o},3839:e=>{"use strict";e.exports=a},518:e=>{"use strict";e.exports=s},8475:e=>{"use strict";e.exports=l},6236:e=>{"use strict";e.exports=c},6439:e=>{"use strict";e.exports=u},4501:e=>{"use strict";e.exports=d},7499:e=>{"use strict";e.exports=f},901:e=>{"use strict";e.exports=p},5743:e=>{"use strict";e.exports=h},5206:e=>{"use strict";e.exports=m},2811:e=>{"use strict";e.exports=g},6091:e=>{"use strict";e.exports=v},4539:e=>{"use strict";e.exports=y},6825:e=>{"use strict";e.exports=b},9844:e=>{"use strict";e.exports=x},3643:e=>{"use strict";e.exports=w},9233:e=>{"use strict";e.exports=E},3732:e=>{"use strict";e.exports=_},8214:e=>{"use strict";e.exports=S},3526:e=>{"use strict";e.exports=C},3222:e=>{"use strict";e.exports=O},4436:e=>{"use strict";e.exports=k},5788:e=>{"use strict";e.exports=L},1733:e=>{"use strict";e.exports=R},3734:e=>{"use strict";e.exports=P},2600:e=>{"use strict";e.exports=M},5608:e=>{"use strict";e.exports=A},9850:e=>{"use strict";e.exports=T},8012:e=>{"use strict";e.exports=D},8878:e=>{"use strict";e.exports=z},918:e=>{"use strict";e.exports=F},1159:e=>{"use strict";e.exports=N},5681:e=>{"use strict";e.exports=I},7290:e=>{"use strict";e.exports=j},6038:e=>{"use strict";e.exports=B},3627:e=>{"use strict";e.exports=G},8759:e=>{"use strict";e.exports=U},4841:e=>{"use strict";e.exports=H},7655:e=>{"use strict";e.exports=V},3962:e=>{"use strict";e.exports=W},9881:e=>{"use strict";e.exports=q},1230:e=>{"use strict";e.exports=$},8310:e=>{"use strict";e.exports=Z},2308:e=>{"use strict";e.exports=Y},2396:e=>{"use strict";e.exports=X},3192:e=>{"use strict";e.exports=K},5099:e=>{"use strict";e.exports=Q},3288:e=>{"use strict";e.exports=J},8156:e=>{"use strict";e.exports=ee},7111:e=>{"use strict";e.exports=te},4756:e=>{"use strict";e.exports=ne},5751:e=>{"use strict";e.exports=re},5297:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},3100:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},8870:(e,t,n)=>{var r=n(7739);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},6290:(e,t,n)=>{var r=n(7739);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},1147:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},8230:(e,t,n)=>{var r=n(8560);e.exports=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},1600:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},421:(e,t,n)=>{var r=n(7425).default,i=n(5297);e.exports=function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},8560:e=>{function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},8064:(e,t,n)=>{var r=n(7425).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7739:(e,t,n)=>{var r=n(7425).default,i=n(8064);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},753:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},7896:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{Z:()=>r})},1665:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(8960);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},1461:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{Z:()=>r})},8960:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})}},oe={};function ae(e){var t=oe[e];if(void 0!==t)return t.exports;var n=oe[e]={id:e,loaded:!1,exports:{}};return ie[e].call(n.exports,n,n.exports,ae),n.loaded=!0,n.exports}ae.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return ae.d(t,{a:t}),t},ae.d=(e,t)=>{for(var n in t)ae.o(t,n)&&!ae.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},ae.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),ae.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ae.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},ae.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var se={};return(()=>{"use strict";ae.r(se),ae.d(se,{DataModelScreen:()=>fg});var e=ae(8156),t=ae.n(e),n=ae(9881),r=ae.n(n),i=ae(3962),o=ae.n(i),a=ae(7896),s=ae(3192),l=ae.n(s);const c={Y:"year",YY:"year",YYYY:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},u={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},d=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join("\n");class f{constructor({locale:e,formats:t,instance:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=c,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasTimezonePlugin=()=>void 0!==this.moment.tz,this.createSystemDate=e=>{const t=this.moment(e).local();return void 0===this.locale?t:t.locale(this.locale)},this.createUTCDate=e=>{const t=this.moment.utc(e);return void 0===this.locale?t:t.locale(this.locale)},this.createTZDate=(e,t)=>{if(!this.hasTimezonePlugin())throw new Error(d);const n="default"===t?this.moment(e):this.moment.tz(e,t);return void 0===this.locale?n:n.locale(this.locale)},this.date=e=>{if(null===e)return null;const t=this.moment(e);return t.locale(this.getCurrentLocaleCode()),t},this.dateWithTimezone=(e,t)=>null===e?null:"UTC"===t?this.createUTCDate(e):"system"===t||"default"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t),this.getTimezone=e=>{var t,n,r;if(e.isUTC())return"UTC";const i=null==(t=e._z)?void 0:t.name;return null!=(n=null!=i?i:null==(r=this.moment.defaultZone)?void 0:r.name)?n:"system"},this.setTimezone=(e,t)=>{var n,r;if("UTC"===t)return e.clone().utc();if("system"===t)return e.clone().local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(d)}const i="default"===t?null!=(n=null==(r=this.moment.defaultZone)?void 0:r.name)?n:"system":t,o=e.clone();return o.tz(i),o},this.toJsDate=e=>e.toDate(),this.parseISO=e=>this.moment(e,!0),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.locale?this.moment(e,t,this.locale,!0):this.moment(e,t,!0),this.getCurrentLocaleCode=()=>this.locale||l().locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(l().localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=e=>e.match(/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g).map((e=>{const t=e[0];return"L"===t||";"===t?l().localeData(this.getCurrentLocaleCode()).longDateFormat(e):e})).join(""),this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=e=>null===e,this.isValid=e=>this.moment(e).isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>{const n=e.clone();return n.locale(this.getCurrentLocaleCode()),n.format(t)},this.formatNumber=e=>e,this.getDiff=(e,t,n)=>e.diff(t,n),this.isEqual=(e,t)=>null===e&&null===t||this.moment(e).isSame(t),this.isSameYear=(e,t)=>e.isSame(t,"year"),this.isSameMonth=(e,t)=>e.isSame(t,"month"),this.isSameDay=(e,t)=>e.isSame(t,"day"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e.isAfter(t),this.isAfterYear=(e,t)=>e.isAfter(t,"year"),this.isAfterDay=(e,t)=>e.isAfter(t,"day"),this.isBefore=(e,t)=>e.isBefore(t),this.isBeforeYear=(e,t)=>e.isBefore(t,"year"),this.isBeforeDay=(e,t)=>e.isBefore(t,"day"),this.isWithinRange=(e,[t,n])=>e.isBetween(t,n,null,"[]"),this.startOfYear=e=>e.clone().startOf("year"),this.startOfMonth=e=>e.clone().startOf("month"),this.startOfWeek=e=>e.clone().startOf("week"),this.startOfDay=e=>e.clone().startOf("day"),this.endOfYear=e=>e.clone().endOf("year"),this.endOfMonth=e=>e.clone().endOf("month"),this.endOfWeek=e=>e.clone().endOf("week"),this.endOfDay=e=>e.clone().endOf("day"),this.addYears=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"years"):e.clone().add(t,"years"),this.addMonths=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"months"):e.clone().add(t,"months"),this.addWeeks=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"weeks"):e.clone().add(t,"weeks"),this.addDays=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days"),this.addHours=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"hours"):e.clone().add(t,"hours"),this.addMinutes=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"minutes"):e.clone().add(t,"minutes"),this.addSeconds=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"seconds"):e.clone().add(t,"seconds"),this.getYear=e=>e.get("year"),this.getMonth=e=>e.get("month"),this.getDate=e=>e.get("date"),this.getHours=e=>e.get("hours"),this.getMinutes=e=>e.get("minutes"),this.getSeconds=e=>e.get("seconds"),this.getMilliseconds=e=>e.get("milliseconds"),this.setYear=(e,t)=>e.clone().year(t),this.setMonth=(e,t)=>e.clone().month(t),this.setDate=(e,t)=>e.clone().date(t),this.setHours=(e,t)=>e.clone().hours(t),this.setMinutes=(e,t)=>e.clone().minutes(t),this.setSeconds=(e,t)=>e.clone().seconds(t),this.setMilliseconds=(e,t)=>e.clone().milliseconds(t),this.getDaysInMonth=e=>e.daysInMonth(),this.getNextMonth=e=>e.clone().add(1,"month"),this.getPreviousMonth=e=>e.clone().subtract(1,"month"),this.getMonthArray=e=>{const t=[this.startOfYear(e)];for(;t.length<12;){const e=t[t.length-1];t.push(this.getNextMonth(e))}return t},this.mergeDateAndTime=(e,t)=>e.clone().hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>l().weekdaysShort(!0),this.getWeekArray=e=>{const t=this.setLocaleToValue(e),n=t.clone().startOf("month").startOf("week"),r=t.clone().endOf("month").endOf("week");let i=0,o=n;const a=[];for(;o.isBefore(r);){const e=Math.floor(i/7);a[e]=a[e]||[],a[e].push(o),o=o.clone().add(1,"day"),i+=1}return a},this.getWeekNumber=e=>e.week(),this.getYearRange=(e,t)=>{const n=this.moment(e).startOf("year"),r=this.moment(t).endOf("year"),i=[];let o=n;for(;o.isBefore(r);)i.push(o),o=o.clone().add(1,"year");return i},this.getMeridiemText=e=>this.is12HourCycleInCurrentLocale()?l().localeData(this.getCurrentLocaleCode()).meridiem("am"===e?0:13,0,!1):"am"===e?"AM":"PM",this.moment=n||l(),this.locale=e,this.formats=(0,a.Z)({},u,t)}}var p=ae(1461),h=ae(5099),m=ae.n(h),g=ae(7655),v=ae(2322);const y=["localeText"],b=e.createContext(null),x=function(t){var n;const{localeText:r}=t,i=(0,p.Z)(t,y),{utils:o,localeText:s}=null!=(n=e.useContext(b))?n:{utils:void 0,localeText:void 0},l=(0,g.useThemeProps)({props:i,name:"MuiLocalizationProvider"}),{children:c,dateAdapter:u,dateFormats:d,dateLibInstance:f,adapterLocale:h,localeText:m}=l,x=e.useMemo((()=>(0,a.Z)({},m,s,r)),[m,s,r]),w=e.useMemo((()=>{if(!u)return o||null;const e=new u({locale:h,formats:d,instance:f});if(!e.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e}),[u,h,d,f,o]),E=e.useMemo((()=>w?{minDate:w.date("1900-01-01T00:00:00.000"),maxDate:w.date("2099-12-31T00:00:00.000")}:null),[w]),_=e.useMemo((()=>({utils:w,defaultDates:E,localeText:x})),[E,w,x]);return(0,v.jsx)(b.Provider,{value:_,children:c})};var w=ae(3288),E=ae(2396),_=ae(4756),S=ae(2308),C=ae.n(S);const O=()=>{const t=(0,_.useSelector)(C().selectors.getMetadata);return{entityTypes:(0,e.useMemo)((()=>t.entityTypes.filter((0,w.complement)(E.isAbstractEntityType))),[t.entityTypes]),relationTypes:t.relationTypes,interactionTypes:t.interactionTypes}};var k=ae(5751),L=ae.n(k),R=ae(6038),P=ae.n(R),M=ae(8759),A=ae.n(M),T="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};const D="object"===("undefined"==typeof window?"undefined":T(window))&&"object"===("undefined"==typeof document?"undefined":T(document))&&9===document.nodeType;function z(e){return z="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},z(e)}function F(e){var t=function(e){if("object"!=z(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==z(t)?t:t+""}function N(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,F(r.key),r)}}function I(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var j=ae(1665),B=ae(753),G={}.constructor;function U(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(U);if(e.constructor!==G)return e;var t={};for(var n in e)t[n]=U(e[n]);return t}function H(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=U(t);return r.plugins.onCreateRule(e,i,n)||(e[0],null)}var V=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},W=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=V(e[n]," ");else t=V(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function q(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function $(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Z(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=q(n),l=s.linebreak,c=s.space;if(e&&o++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var f in d){var p=d[f];null!=p&&(r&&(r+=l),r+=$(f+":"+c+W(p)+";",o))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=$(h+":"+c+W(m)+";",o))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=$(g+":"+c+W(v)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),$(""+e+c+"{"+r,--o)+$("}",o)):r}var Y=/([[\].#*$><+~=|^:(),"'`\s])/g,X="undefined"!=typeof CSS&&CSS.escape,K=function(e){return X?X(e):e.replace(Y,"\\$1")},Q=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),J=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l((0,B.Z)((0,B.Z)(i)),s),i.selectorText="."+K(i.id)),i}(0,j.Z)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=W(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,a.Z)({},e,{allowEmpty:!0}):e;return Z(this.selectorText,this.style,n)},I(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(Q),ee={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new J(e,t,n)}},te={indent:1,children:!0},ne=/@([\w-]+)/,re=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(ne);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Re((0,a.Z)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=te);var t=q(e).linebreak;if(null==e.indent&&(e.indent=te.indent),null==e.children&&(e.children=te.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),ie=/@container|@media|@supports\s+/,oe={onCreateRule:function(e,t,n){return ie.test(e)?new re(e,t,n):null}},le={indent:1,children:!0},ce=/@keyframes\s+([\w-]+)/,ue=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(ce);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,s=n.generateId;for(var l in this.id=!1===i?this.name:K(s(this,o)),this.rules=new Re((0,a.Z)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,a.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=le);var t=q(e).linebreak;if(null==e.indent&&(e.indent=le.indent),null==e.children&&(e.children=le.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),de=/@keyframes\s+/,fe=/\$([\w-]+)/g,pe=function(e,t){return"string"==typeof e?e.replace(fe,(function(e,n){return n in t?t[n]:e})):e},he=function(e,t,n){var r=e[t],i=pe(r,n);i!==r&&(e[t]=i)},me={onCreateRule:function(e,t,n){return"string"==typeof e&&de.test(e)?new ue(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&he(e,"animation-name",n.keyframes),"animation"in e&&he(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return pe(e,r.keyframes);default:return e}}},ge=function(e){function t(){return e.apply(this,arguments)||this}return(0,j.Z)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,a.Z)({},e,{allowEmpty:!0}):e;return Z(this.key,this.style,n)},t}(Q),ve={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new ge(e,t,n):null}},ye=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=q(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Z(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Z(this.at,this.style,e)},e}(),be=/@font-face/,xe={onCreateRule:function(e,t,n){return be.test(e)?new ye(e,t,n):null}},we=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Z(this.key,this.style,e)},e}(),Ee={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new we(e,t,n):null}},_e=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Se={"@charset":!0,"@import":!0,"@namespace":!0},Ce={onCreateRule:function(e,t,n){return e in Se?new _e(e,t,n):null}},Oe=[ee,oe,me,ve,xe,Ee,Ce],ke={process:!0},Le={force:!0,process:!0},Re=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,o=r.sheet,s=r.jss,l=r.Renderer,c=r.generateId,u=r.scoped,d=(0,a.Z)({classes:this.classes,parent:i,sheet:o,jss:s,Renderer:l,generateId:c,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),f=e;e in this.raw&&(f=e+"-d"+this.counter++),this.raw[f]=t,f in this.classes&&(d.selector="."+K(this.classes[f]));var p=H(f,t,d);if(!p)return null;this.register(p);var h=void 0===d.index?this.index.length:d.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=(0,a.Z)({},n,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof J?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof ue&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof J?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof ue&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=ke);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,Le)}for(var u in s){var d=t.style[u],f=s[u];null==d&&d!==f&&t.prop(u,null,Le)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=q(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),Pe=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,a.Z)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Re(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Me=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Ae=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,p.Z)(t,["attached"]),i=q(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},I(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Te=new Ae,De="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ze="2f1acc6c3a606b082e5eef5e54414ffb";null==De[ze]&&(De[ze]=0);var Fe=De[ze]++,Ne=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+Fe+i+t:o+n.key+"-"+Fe+(i?"-"+i:"")+"-"+t}},Ie=function(e){var t;return function(){return t||(t=e()),t}},je=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Be=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=W(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},Ge=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Ue=function(e,t){return e.selectorText=t,e.selectorText===t},He=Ie((function(){return document.querySelector("head")}));var Ve=Ie((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),We=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},qe=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},$e=function(){function e(e){this.getPropertyValue=je,this.setProperty=Be,this.removeProperty=Ge,this.setSelector=Ue,this.hasInsertedRules=!1,this.cssRules=[],e&&Te.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=Ve();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=Te.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=He(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else He().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=qe(n,t);if(!1===(i=We(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=qe(n,t),l=We(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Pe&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ze=0,Ye=function(){function e(e){this.id=Ze++,this.version="10.10.0",this.plugins=new Me,this.options={id:{minify:!1},createGenerateId:Ne,Renderer:D?$e:null,plugins:[]},this.generateId=Ne({minify:!1});for(var t=0;t<Oe.length;t++)this.plugins.use(Oe[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,a.Z)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===Te.index?0:Te.index+1);var r=new Pe(e,(0,a.Z)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),Te.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=(0,a.Z)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=H(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Xe=function(e){return new Ye(e)},Ke="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Qe(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=Qe(r);o&&(t||(t={}),t[n]=o)}}return t}function Je(e={}){const{baseClasses:t,newClasses:n,Component:r}=e;if(!n)return t;const i=(0,a.Z)({},t);return Object.keys(n).forEach((e=>{n[e]&&(i[e]=`${t[e]} ${n[e]}`)})),i}Xe();const et={set:(e,t,n,r)=>{let i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:(e,t,n)=>{const r=e.get(t);return r?r.get(n):void 0},delete:(e,t,n)=>{e.get(t).delete(n)}},tt=et,nt=e.createContext(null);function rt(){var t;const n=e.useContext(nt);return null!=(t=null==n?void 0:n.$$material)?t:n}const it="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ot=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var at=Date.now(),st="fnValues"+at,lt="fnStyle"+ ++at;var ct="@global",ut=function(){function e(e,t,n){for(var r in this.type="global",this.at=ct,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Re((0,a.Z)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),dt=function(){function e(e,t,n){this.type="global",this.at=ct,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,a.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),ft=/\s*,\s*/g;function pt(e,t){for(var n=e.split(ft),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}var ht=/\s*,\s*/g,mt=/&/g,gt=/\$([\w-]+)/g;var vt=/[A-Z]/g,yt=/^ms-/,bt={};function xt(e){return"-"+e.toLowerCase()}const wt=function(e){if(bt.hasOwnProperty(e))return bt[e];var t=e.replace(vt,xt);return bt[e]=yt.test(t)?"-"+t:t};function Et(e){var t={};for(var n in e)t[0===n.indexOf("--")?n:wt(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Et):t.fallbacks=Et(e.fallbacks)),t}var _t=Ke&&CSS?CSS.px:"px",St=Ke&&CSS?CSS.ms:"ms",Ct=Ke&&CSS?CSS.percent:"%";function Ot(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var kt=Ot({"animation-delay":St,"animation-duration":St,"background-position":_t,"background-position-x":_t,"background-position-y":_t,"background-size":_t,border:_t,"border-bottom":_t,"border-bottom-left-radius":_t,"border-bottom-right-radius":_t,"border-bottom-width":_t,"border-left":_t,"border-left-width":_t,"border-radius":_t,"border-right":_t,"border-right-width":_t,"border-top":_t,"border-top-left-radius":_t,"border-top-right-radius":_t,"border-top-width":_t,"border-width":_t,"border-block":_t,"border-block-end":_t,"border-block-end-width":_t,"border-block-start":_t,"border-block-start-width":_t,"border-block-width":_t,"border-inline":_t,"border-inline-end":_t,"border-inline-end-width":_t,"border-inline-start":_t,"border-inline-start-width":_t,"border-inline-width":_t,"border-start-start-radius":_t,"border-start-end-radius":_t,"border-end-start-radius":_t,"border-end-end-radius":_t,margin:_t,"margin-bottom":_t,"margin-left":_t,"margin-right":_t,"margin-top":_t,"margin-block":_t,"margin-block-end":_t,"margin-block-start":_t,"margin-inline":_t,"margin-inline-end":_t,"margin-inline-start":_t,padding:_t,"padding-bottom":_t,"padding-left":_t,"padding-right":_t,"padding-top":_t,"padding-block":_t,"padding-block-end":_t,"padding-block-start":_t,"padding-inline":_t,"padding-inline-end":_t,"padding-inline-start":_t,"mask-position-x":_t,"mask-position-y":_t,"mask-size":_t,height:_t,width:_t,"min-height":_t,"max-height":_t,"min-width":_t,"max-width":_t,bottom:_t,left:_t,top:_t,right:_t,inset:_t,"inset-block":_t,"inset-block-end":_t,"inset-block-start":_t,"inset-inline":_t,"inset-inline-end":_t,"inset-inline-start":_t,"box-shadow":_t,"text-shadow":_t,"column-gap":_t,"column-rule":_t,"column-rule-width":_t,"column-width":_t,"font-size":_t,"font-size-delta":_t,"letter-spacing":_t,"text-decoration-thickness":_t,"text-indent":_t,"text-stroke":_t,"text-stroke-width":_t,"word-spacing":_t,motion:_t,"motion-offset":_t,outline:_t,"outline-offset":_t,"outline-width":_t,perspective:_t,"perspective-origin-x":Ct,"perspective-origin-y":Ct,"transform-origin":Ct,"transform-origin-x":Ct,"transform-origin-y":Ct,"transform-origin-z":Ct,"transition-delay":St,"transition-duration":St,"vertical-align":_t,"flex-basis":_t,"shape-margin":_t,size:_t,gap:_t,grid:_t,"grid-gap":_t,"row-gap":_t,"grid-row-gap":_t,"grid-column-gap":_t,"grid-template-rows":_t,"grid-template-columns":_t,"grid-auto-rows":_t,"grid-auto-columns":_t,"box-shadow-x":_t,"box-shadow-y":_t,"box-shadow-blur":_t,"box-shadow-spread":_t,"font-line-height":_t,"text-shadow-x":_t,"text-shadow-y":_t,"text-shadow-blur":_t});function Lt(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Lt(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=Lt(i,t[i],n);else for(var o in t)t[o]=Lt(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||kt[e];return!a||0===t&&a===_t?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pt(e,t){if(e){if("string"==typeof e)return Rt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rt(e,t):void 0}}function Mt(e){return function(e){if(Array.isArray(e))return Rt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Pt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var At="",Tt="",Dt="",zt="",Ft=D&&"ontouchstart"in document.documentElement;if(D){var Nt={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},It=document.createElement("p").style;for(var jt in Nt)if(jt+"Transform"in It){At=jt,Tt=Nt[jt];break}"Webkit"===At&&"msHyphens"in It&&(At="ms",Tt=Nt.ms,zt="edge"),"Webkit"===At&&"-apple-trailing-word"in It&&(Dt="apple")}var Bt=At,Gt=Tt,Ut=Dt,Ht=zt,Vt=Ft,Wt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Bt?"-webkit-"+e:Gt+e)}},qt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Bt?Gt+"print-"+e:e)}},$t=/[-\s]+(.)?/g;function Zt(e,t){return t?t.toUpperCase():""}function Yt(e){return e.replace($t,Zt)}function Xt(e){return Yt("-"+e)}var Kt,Qt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Bt){var n="mask-image";if(Yt(n)in t)return e;if(Bt+Xt(n)in t)return Gt+e}return e}},Jt={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Ut||Vt?e:Gt+e)}},en={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Gt+e)}},tn={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Gt+e)}},nn={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Bt||"ms"===Bt&&"edge"!==Ht?Gt+e:e)}},rn={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Bt||"ms"===Bt||"apple"===Ut?Gt+e:e)}},on={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Bt?"WebkitColumn"+Xt(e)in t&&Gt+"column-"+e:"Moz"===Bt&&"page"+Xt(e)in t&&"page-"+e)}},an={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Bt)return e;var n=e.replace("-inline","");return Bt+Xt(n)in t&&Gt+n}},sn={supportedProperty:function(e,t){return Yt(e)in t&&e}},ln={supportedProperty:function(e,t){var n=Xt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Bt+n in t?Gt+e:"Webkit"!==Bt&&"Webkit"+n in t&&"-webkit-"+e}},cn={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Bt?""+Gt+e:e)}},un={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Bt?Gt+"scroll-chaining":e)}},dn={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},fn={supportedProperty:function(e,t){var n=dn[e];return!!n&&Bt+Xt(n)in t&&Gt+n}},pn={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},hn=Object.keys(pn),mn=function(e){return Gt+e},gn={supportedProperty:function(e,t,n){var r=n.multiple;if(hn.indexOf(e)>-1){var i=pn[e];if(!Array.isArray(i))return Bt+Xt(i)in t&&Gt+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(Bt+Xt(i[0])in t))return!1;return i.map(mn)}return!1}},vn=[Wt,qt,Qt,Jt,en,tn,nn,rn,on,an,sn,ln,cn,un,fn,gn],yn=vn.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),bn=vn.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Mt(t.noPrefill)),e}),[]),xn={};if(D){Kt=document.createElement("p");var wn=window.getComputedStyle(document.documentElement,"");for(var En in wn)isNaN(En)||(xn[wn[En]]=wn[En]);bn.forEach((function(e){return delete xn[e]}))}function _n(e,t){if(void 0===t&&(t={}),!Kt)return e;if(null!=xn[e])return xn[e];"transition"!==e&&"transform"!==e||(t[e]=e in Kt.style);for(var n=0;n<yn.length&&(xn[e]=yn[n](e,Kt.style,t),!xn[e]);n++);try{Kt.style[e]=""}catch(e){return!1}return xn[e]}var Sn,Cn={},On={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},kn=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ln(e,t,n){return"var"===t?"var":"all"===t?"all":"all"===n?", all":(t?_n(t):", "+_n(n))||t||n}function Rn(e,t){var n=t;if(!Sn||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Cn[r])return Cn[r];try{Sn.style[e]=n}catch(e){return Cn[r]=!1,!1}if(On[e])n=n.replace(kn,Ln);else if(""===Sn.style[e]&&("-ms-flex"===(n=Gt+n)&&(Sn.style[e]="-ms-flexbox"),Sn.style[e]=n,""===Sn.style[e]))return Cn[r]=!1,!1;return Sn.style[e]="",Cn[r]=n,Cn[r]}D&&(Sn=document.createElement("p"));const Pn=Xe({plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=H(e,{},n);return r[lt]=t,r},onProcessStyle:function(e,t){if(st in t||lt in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[st]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[lt];o&&(i.style=o(e)||{});var a=i[st];if(a)for(var s in a)i.prop(s,a[s](e),r)}},{onCreateRule:function(e,t,n){if(!e)return null;if(e===ct)return new ut(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,8))return new dt(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[ct]:null;if(i){for(var o in i)t.addRule(o,i[o],(0,a.Z)({},n,{selector:pt(o,e.selector)}));delete r[ct]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,7)===ct){var o=pt(i.substr(7),e.selector);t.addRule(o,r[i],(0,a.Z)({},n,{selector:o})),delete r[i]}}(e,t))}},function(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(ht),r=e.split(ht),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(mt,a):a+" "+l}return i}function n(e,t,n){if(n)return(0,a.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=(0,a.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var s,l,c=i,u=c.options.parent;for(var d in r){var f=-1!==d.indexOf("&"),p="@"===d[0];if(f||p){if(s=n(c,u,s),f){var h=t(d,c.selector);l||(l=e(u,o)),h=h.replace(gt,l);var m=c.key+"-"+d;"replaceRule"in u?u.replaceRule(m,r[d],(0,a.Z)({},s,{selector:h})):u.addRule(m,r[d],(0,a.Z)({},s,{selector:h}))}else p&&u.addRule(d,{},s).addRule(c.key,r[d],{selector:c.selector});delete r[d]}}return r}}}(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Et(e[t]);return e}return Et(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=wt(t);return t===r?e:(n.prop(r,e),null)}},function(e){void 0===e&&(e={});var t=Ot(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Lt(r,e[r],t);return e},onChangeValue:function(e,n){return Lt(n,e,t)}}}(),"undefined"==typeof window?null:function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=_n(n);o&&o!==n&&(i=!0);var a=!1,s=Rn(o,W(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Bt?e:"@"+Gt+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Rn(t,W(e))||e}}}(),(Dn=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var n={},r=Object.keys(e).sort(Dn),i=0;i<r.length;i++)n[r[i]]=e[r[i]];return n}})]}),Mn=function(e={}){const{disableGlobal:t=!1,productionPrefix:n="jss",seed:r=""}=e,i=""===r?"":`${r}-`;let o=0;const a=()=>(o+=1,o);return(e,o)=>{const s=o.options.name;if(s&&0===s.indexOf("Mui")&&!o.options.link&&!t){if(-1!==ot.indexOf(e.key))return`Mui-${e.key}`;const t=`${i}${s}-${e.key}`;return o.options.theme[it]&&""===r?`${t}-${a()}`:t}return`${i}${n}${a()}`}}(),An={disableGeneration:!1,generateClassName:Mn,jss:Pn,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Tn=e.createContext(An);var Dn;let zn=-1e9;function Fn(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Nn(e){if(!Fn(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Nn(e[n])})),t}function In(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Fn(e)&&Fn(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(Fn(t[i])&&i in e&&Fn(e[i])?r[i]=In(e[i],t[i],n):n.clone?r[i]=Fn(t[i])?Nn(t[i]):t[i]:r[i]=t[i])})),r}function jn(e){if("string"!=typeof e)throw new Error(function(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Bn=["variant"];function Gn(e){return 0===e.length}const Un={},Hn=["name","classNamePrefix","Component","defaultTheme"];function Vn({state:e,theme:t,stylesOptions:n,stylesCreator:r,name:i},o){if(n.disableGeneration)return;let s=tt.get(n.sheetsManager,r,t);s||(s={refs:0,staticSheet:null,dynamicStyles:null},tt.set(n.sheetsManager,r,t,s));const l=(0,a.Z)({},r.options,n,{theme:t,flip:"boolean"==typeof n.flip?n.flip:"rtl"===t.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;const c=n.sheetsRegistry;if(0===s.refs){let e;n.sheetsCache&&(e=tt.get(n.sheetsCache,r,t));const o=r.create(t,i);e||(e=n.jss.createStyleSheet(o,(0,a.Z)({link:!1},l)),e.attach(),n.sheetsCache&&tt.set(n.sheetsCache,r,t,e)),c&&c.add(e),s.staticSheet=e,s.dynamicStyles=Qe(o)}if(s.dynamicStyles){const t=n.jss.createStyleSheet(s.dynamicStyles,(0,a.Z)({link:!0},l));t.update(o),t.attach(),e.dynamicSheet=t,e.classes=Je({baseClasses:s.staticSheet.classes,newClasses:t.classes}),c&&c.add(t)}else e.classes=s.staticSheet.classes;s.refs+=1}function Wn(t,n={}){const{name:r,classNamePrefix:i,Component:o,defaultTheme:s=Un}=n,l=(0,p.Z)(n,Hn),c=function(e){const t="function"==typeof e;return{create:(n,r)=>{let i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.components||!n.components[r]||!n.components[r].styleOverrides&&!n.components[r].variants)return i;const o=n.components[r].styleOverrides||{},s=n.components[r].variants||[],l=(0,a.Z)({},i);return Object.keys(o).forEach((e=>{l[e]=In(l[e]||{},o[e])})),s.forEach((e=>{const t=function(e){const{variant:t}=e,n=(0,p.Z)(e,Bn);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Gn(r)?e[t]:jn(e[t]):`${Gn(r)?t:jn(t)}${jn(e[t].toString())}`})),r}(e.props);l[t]=In(l[t]||{},e.style)})),l},options:{}}}(t),u=r||i||"makeStyles";return c.options={index:(zn+=1,zn),name:r,meta:u,classNamePrefix:u},(t={})=>{const n=rt()||s,i=(0,a.Z)({},e.useContext(Tn),l),u=e.useRef(),d=e.useRef();!function(o,a){const s=e.useRef([]);let l;const f=e.useMemo((()=>({})),a);s.current!==f&&(s.current=f,l=(()=>{const e={name:r,state:{},stylesCreator:c,stylesOptions:i,theme:n};return Vn(e,t),d.current=!1,u.current=e,()=>{!function({state:e,theme:t,stylesOptions:n,stylesCreator:r}){if(n.disableGeneration)return;const i=tt.get(n.sheetsManager,r,t);i.refs-=1;const o=n.sheetsRegistry;0===i.refs&&(tt.delete(n.sheetsManager,r,t),n.jss.removeStyleSheet(i.staticSheet),o&&o.remove(i.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),o&&o.remove(e.dynamicSheet))}(e)}})()),e.useEffect((()=>()=>{l&&l()}),[f])}(0,[n,c]),e.useEffect((()=>{d.current&&function({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}(u.current,t),d.current=!0}));const f=function({state:e,stylesOptions:t},n,r){if(t.disableGeneration)return n||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let i=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,i=!0),n!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=n,i=!0),i&&(e.cacheClasses.value=Je({baseClasses:e.cacheClasses.lastJSS,newClasses:n,Component:r})),e.cacheClasses.value}(u.current,t.classes,o);return f}}const qn=Wn({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",minWidth:"20px",fontWeight:"normal",lineHeight:"inherit",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$n.apply(null,arguments)}const Zn=e=>{let{title:n="",children:r=null,classes:i={}}=e,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["title","children","classes"]);const a=qn();return t().createElement(P(),$n({className:i.root,classes:{root:a.toolbar}},o),n&&t().createElement(A(),{className:i.title,classes:{root:a.title},variant:"h6"},L().text(n)),r)};var Yn=ae(6825),Xn=ae.n(Yn),Kn=ae(8310),Qn=ae.n(Kn),Jn=ae(8282),er=ae.n(Jn);const tr=Wn((e=>({expanded:{transform:"rotate(180deg)"},disabled:{color:`${e.palette.text.disabled} !important`}})));function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nr.apply(null,arguments)}const rr=e=>{const{selectProps:{classes:n,menuIsOpen:r,isDisabled:i},innerProps:o}=e,a=tr();return t().createElement(er(),nr({"data-reltio-id":"select-dropdown-indicator"},o,{className:Qn()(n.dropdownIndicator,{[a.expanded]:r},{[a.disabled]:i})}))};function ir(e,t,n){return(t=F(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function or(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 ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach((function(t){ir(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}rr.propTypes={innerProps:m().object.isRequired,selectProps:m().shape({classes:m().shape({dropdownIndicator:m().string}).isRequired,menuIsOpen:m().bool.isRequired,isDisabled:m().bool}).isRequired};var sr=ae(8960);function lr(e){return lr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lr(e)}function cr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cr=function(){return!!e})()}var ur=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),dr=Math.abs,fr=String.fromCharCode,pr=Object.assign;function hr(e){return e.trim()}function mr(e,t,n){return e.replace(t,n)}function gr(e,t){return e.indexOf(t)}function vr(e,t){return 0|e.charCodeAt(t)}function yr(e,t,n){return e.slice(t,n)}function br(e){return e.length}function xr(e){return e.length}function wr(e,t){return t.push(e),e}var Er=1,_r=1,Sr=0,Cr=0,Or=0,kr="";function Lr(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Er,column:_r,length:a,return:""}}function Rr(e,t){return pr(Lr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pr(){return Or=Cr>0?vr(kr,--Cr):0,_r--,10===Or&&(_r=1,Er--),Or}function Mr(){return Or=Cr<Sr?vr(kr,Cr++):0,_r++,10===Or&&(_r=1,Er++),Or}function Ar(){return vr(kr,Cr)}function Tr(){return Cr}function Dr(e,t){return yr(kr,e,t)}function zr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Fr(e){return Er=_r=1,Sr=br(kr=e),Cr=0,[]}function Nr(e){return kr="",e}function Ir(e){return hr(Dr(Cr-1,Gr(91===e?e+2:40===e?e+1:e)))}function jr(e){for(;(Or=Ar())&&Or<33;)Mr();return zr(e)>2||zr(Or)>3?"":" "}function Br(e,t){for(;--t&&Mr()&&!(Or<48||Or>102||Or>57&&Or<65||Or>70&&Or<97););return Dr(e,Tr()+(t<6&&32==Ar()&&32==Mr()))}function Gr(e){for(;Mr();)switch(Or){case e:return Cr;case 34:case 39:34!==e&&39!==e&&Gr(Or);break;case 40:41===e&&Gr(e);break;case 92:Mr()}return Cr}function Ur(e,t){for(;Mr()&&e+Or!==57&&(e+Or!==84||47!==Ar()););return"/*"+Dr(t,Cr-1)+"*"+fr(47===e?e:Mr())}function Hr(e){for(;!zr(Ar());)Mr();return Dr(e,Cr)}var Vr="-ms-",Wr="-moz-",qr="-webkit-",$r="comm",Zr="rule",Yr="decl",Xr="@keyframes";function Kr(e,t){for(var n="",r=xr(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Qr(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Yr:return e.return=e.return||e.value;case $r:return"";case Xr:return e.return=e.value+"{"+Kr(e.children,r)+"}";case Zr:e.value=e.props.join(",")}return br(n=Kr(e.children,r))?e.return=e.value+"{"+n+"}":""}function Jr(e){return Nr(ei("",null,null,null,[""],e=Fr(e),0,[0],e))}function ei(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",x=i,w=o,E=r,_=b;g;)switch(h=y,y=Mr()){case 40:if(108!=h&&58==vr(_,d-1)){-1!=gr(_+=mr(Ir(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=Ir(y);break;case 9:case 10:case 13:case 32:_+=jr(h);break;case 92:_+=Br(Tr()-1,7);continue;case 47:switch(Ar()){case 42:case 47:wr(ni(Ur(Mr(),Tr()),t,n),l);break;default:_+="/"}break;case 123*m:s[c++]=br(_)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(_=mr(_,/\f/g,"")),p>0&&br(_)-d&&wr(p>32?ri(_+";",r,n,d-1):ri(mr(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(wr(E=ti(_,t,n,c,u,i,s,b,x=[],w=[],d),o),123===y)if(0===u)ei(_,t,E,E,x,o,d,s,w);else switch(99===f&&110===vr(_,3)?100:f){case 100:case 108:case 109:case 115:ei(e,E,E,r&&wr(ti(e,E,E,0,0,i,s,b,i,x=[],d),w),i,w,d,s,r?x:w);break;default:ei(_,E,E,E,[""],w,0,s,w)}}c=u=p=0,m=v=1,b=_="",d=a;break;case 58:d=1+br(_),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Pr())continue;switch(_+=fr(y),y*m){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(br(_)-1)*v,v=1;break;case 64:45===Ar()&&(_+=Ir(Mr())),f=Ar(),u=d=br(b=_+=Hr(Tr())),y++;break;case 45:45===h&&2==br(_)&&(m=0)}}return o}function ti(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],p=xr(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=yr(e,d+1,d=dr(m=a[h])),b=e;v<p;++v)(b=hr(m>0?f[v]+" "+y:mr(y,/&\f/g,f[v])))&&(l[g++]=b);return Lr(e,t,n,0===i?Zr:s,l,c,u)}function ni(e,t,n){return Lr(e,t,n,$r,fr(Or),yr(e,2,-2),0)}function ri(e,t,n,r){return Lr(e,t,n,Yr,yr(e,0,r),yr(e,r+1,-1),r)}var ii=function(e,t,n){for(var r=0,i=0;r=i,i=Ar(),38===r&&12===i&&(t[n]=1),!zr(i);)Mr();return Dr(e,Cr)},oi=new WeakMap,ai=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||oi.get(n))&&!r){oi.set(e,!0);for(var i=[],o=function(e,t){return Nr(function(e,t){var n=-1,r=44;do{switch(zr(r)){case 0:38===r&&12===Ar()&&(t[n]=1),e[n]+=ii(Cr-1,t,n);break;case 2:e[n]+=Ir(r);break;case 4:if(44===r){e[++n]=58===Ar()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=fr(r)}}while(r=Mr());return e}(Fr(e),t))}(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},si=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function li(e,t){switch(function(e,t){return 45^vr(e,0)?(((t<<2^vr(e,0))<<2^vr(e,1))<<2^vr(e,2))<<2^vr(e,3):0}(e,t)){case 5103:return qr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return qr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qr+e+Wr+e+Vr+e+e;case 6828:case 4268:return qr+e+Vr+e+e;case 6165:return qr+e+Vr+"flex-"+e+e;case 5187:return qr+e+mr(e,/(\w+).+(:[^]+)/,qr+"box-$1$2"+Vr+"flex-$1$2")+e;case 5443:return qr+e+Vr+"flex-item-"+mr(e,/flex-|-self/,"")+e;case 4675:return qr+e+Vr+"flex-line-pack"+mr(e,/align-content|flex-|-self/,"")+e;case 5548:return qr+e+Vr+mr(e,"shrink","negative")+e;case 5292:return qr+e+Vr+mr(e,"basis","preferred-size")+e;case 6060:return qr+"box-"+mr(e,"-grow","")+qr+e+Vr+mr(e,"grow","positive")+e;case 4554:return qr+mr(e,/([^-])(transform)/g,"$1"+qr+"$2")+e;case 6187:return mr(mr(mr(e,/(zoom-|grab)/,qr+"$1"),/(image-set)/,qr+"$1"),e,"")+e;case 5495:case 3959:return mr(e,/(image-set\([^]*)/,qr+"$1$`$1");case 4968:return mr(mr(e,/(.+:)(flex-)?(.*)/,qr+"box-pack:$3"+Vr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qr+e+e;case 4095:case 3583:case 4068:case 2532:return mr(e,/(.+)-inline(.+)/,qr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(br(e)-1-t>6)switch(vr(e,t+1)){case 109:if(45!==vr(e,t+4))break;case 102:return mr(e,/(.+:)(.+)-([^]+)/,"$1"+qr+"$2-$3$1"+Wr+(108==vr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~gr(e,"stretch")?li(mr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==vr(e,t+1))break;case 6444:switch(vr(e,br(e)-3-(~gr(e,"!important")&&10))){case 107:return mr(e,":",":"+qr)+e;case 101:return mr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qr+(45===vr(e,14)?"inline-":"")+"box$3$1"+qr+"$2$3$1"+Vr+"$2box$3")+e}break;case 5936:switch(vr(e,t+11)){case 114:return qr+e+Vr+mr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qr+e+Vr+mr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qr+e+Vr+mr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return qr+e+Vr+e+e}return e}var ci=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Yr:e.return=li(e.value,e.length);break;case Xr:return Kr([Rr(e,{value:mr(e.value,"@","@"+qr)})],r);case Zr:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Kr([Rr(e,{props:[mr(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Kr([Rr(e,{props:[mr(t,/:(plac\w+)/,":"+qr+"input-$1")]}),Rr(e,{props:[mr(t,/:(plac\w+)/,":-moz-$1")]}),Rr(e,{props:[mr(t,/:(plac\w+)/,Vr+"input-$1")]})],r)}return""}))}}],ui=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||ci,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u,d,f=[Qr,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[ai,si].concat(o,f),u=xr(c),function(e,t,n,r){for(var i="",o=0;o<u;o++)i+=c[o](e,t,n,r)||"";return i});i=function(e,t,n,r){l=n,Kr(Jr(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new ur({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(s),h},di=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},fi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function pi(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var hi=/[A-Z]|^ms/g,mi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gi=function(e){return 45===e.charCodeAt(1)},vi=function(e){return null!=e&&"boolean"!=typeof e},yi=pi((function(e){return gi(e)?e:e.replace(hi,"-$&").toLowerCase()})),bi=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(mi,(function(e,t,n){return wi={name:t,styles:n,next:wi},t}))}return 1===fi[e]||gi(e)||"number"!=typeof t||0===t?t:t+"px"};function xi(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return wi={name:n.name,styles:n.styles,next:wi},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)wi={name:r.name,styles:r.styles,next:wi},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=xi(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":vi(a)&&(r+=yi(o)+":"+bi(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=xi(e,t,a);switch(o){case"animation":case"animationName":r+=yi(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)vi(a[l])&&(r+=yi(o)+":"+bi(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=wi,o=n(e);return wi=i,xi(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var wi,Ei=/label:\s*([^\s;\n{]+)\s*(;|$)/g,_i=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";wi=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=xi(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=xi(n,t,e[a]),r&&(i+=o[a]);Ei.lastIndex=0;for(var s,l="";null!==(s=Ei.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:wi}},Si=!!e.useInsertionEffect&&e.useInsertionEffect,Ci=Si||function(e){return e()},Oi=(Si||e.useLayoutEffect,{}.hasOwnProperty),ki=e.createContext("undefined"!=typeof HTMLElement?ui({key:"css"}):null);ki.Provider;var Li=function(t){return(0,e.forwardRef)((function(n,r){var i=(0,e.useContext)(ki);return t(n,i,r)}))},Ri=e.createContext({}),Pi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Mi=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return di(t,n,r),Ci((function(){return function(e,t,n){di(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(t,n,r)})),null},Ai=Li((function(t,n,r){var i=t.css;"string"==typeof i&&void 0!==n.registered[i]&&(i=n.registered[i]);var o=t[Pi],a=[i],s="";"string"==typeof t.className?s=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(n.registered,a,t.className):null!=t.className&&(s=t.className+" ");var l=_i(a,void 0,e.useContext(Ri));s+=n.key+"-"+l.name;var c={};for(var u in t)Oi.call(t,u)&&"css"!==u&&u!==Pi&&(c[u]=t[u]);return c.ref=r,c.className=s,e.createElement(e.Fragment,null,e.createElement(Mi,{cache:n,serialized:l,isStringTag:"string"==typeof o}),e.createElement(o,c))})),Ti=Ai,Di=(ae(3463),function(t,n){var r=arguments;if(null==n||!Oi.call(n,"css"))return e.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=Ti,o[1]=function(e,t){var n={};for(var r in t)Oi.call(t,r)&&(n[r]=t[r]);return n[Pi]=e,n}(t,n);for(var a=2;a<i;a++)o[a]=r[a];return e.createElement.apply(null,o)});function zi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _i(t)}function Fi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||Pt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ni(e,t){if(null==e)return{};var n,r,i=(0,p.Z)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Ii=ae(7111);const ji=Math.min,Bi=Math.max,Gi=Math.round,Ui=Math.floor,Hi=e=>({x:e,y:e});function Vi(e){return $i(e)?(e.nodeName||"").toLowerCase():"#document"}function Wi(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function qi(e){var t;return null==(t=($i(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $i(e){return e instanceof Node||e instanceof Wi(e).Node}function Zi(e){return e instanceof Element||e instanceof Wi(e).Element}function Yi(e){return e instanceof HTMLElement||e instanceof Wi(e).HTMLElement}function Xi(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Wi(e).ShadowRoot)}function Ki(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Qi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Qi(e){return Wi(e).getComputedStyle(e)}function Ji(e){const t=function(e){if("html"===Vi(e))return e;const t=e.assignedSlot||e.parentNode||Xi(e)&&e.host||qi(e);return Xi(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Vi(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yi(t)&&Ki(t)?t:Ji(t)}function eo(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Ji(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Wi(i);if(o){const e=to(a);return t.concat(a,a.visualViewport||[],Ki(i)?i:[],e&&n?eo(e):[])}return t.concat(i,eo(i,[],n))}function to(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function no(e){return Zi(e)?e:e.contextElement}function ro(e){const t=no(e);if(!Yi(t))return Hi(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=function(e){const t=Qi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Yi(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Gi(n)!==o||Gi(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}(t);let a=(o?Gi(n.width):n.width)/r,s=(o?Gi(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const io=Hi(0);function oo(e){const t=Wi(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:io}function ao(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=no(e);let a=Hi(1);t&&(r?Zi(r)&&(a=ro(r)):a=ro(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Wi(e))&&t}(o,n,r)?oo(o):Hi(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o){const e=Wi(o),t=r&&Zi(r)?Wi(r):r;let n=e,i=to(n);for(;i&&r&&t!==n;){const e=ro(i),t=i.getBoundingClientRect(),r=Qi(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=a,n=Wi(i),i=to(n)}}return function(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}({width:u,height:d,x:l,y:c})}const so=e.useLayoutEffect;var lo=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],co=function(){};function uo(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function fo(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(uo(e,a)));return o.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var po=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===z(e)&&null!==e?[e]:[];var t},ho=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,ar({},Ni(e,lo))},mo=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.className;return{css:i(t,e),className:r(null!=n?n:{},o(t,e),a)}};function go(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function vo(e){return go(e)?window.pageYOffset:e.scrollTop}function yo(e,t){go(e)?window.scrollTo(0,t):e.scrollTop=t}function bo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:co,i=vo(e),o=t-i,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,i,o,n);yo(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function xo(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?yo(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&yo(e,Math.max(t.offsetTop-i,0))}function wo(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Eo=!1,_o={get passive(){return Eo=!0}},So="undefined"!=typeof window?window:{};So.addEventListener&&So.removeEventListener&&(So.addEventListener("p",co,_o),So.removeEventListener("p",co,!1));var Co=Eo;function Oo(e){return null!=e}function ko(e,t,n){return e?t:n}var Lo=["children","innerProps"],Ro=["children","innerProps"];var Po,Mo,Ao,To=function(e){return"auto"===e?"bottom":e},Do=(0,e.createContext)(null),zo=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=((0,e.useContext)(Do)||{}).setPortalPlacement,u=(0,e.useRef)(null),d=Fi((0,e.useState)(i),2),f=d[0],p=d[1],h=Fi((0,e.useState)(null),2),m=h[0],g=h[1],v=l.spacing.controlHeight;return so((function(){var e=u.current;if(e){var t="fixed"===a,n=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,p=d.height,h=d.top,m=n.offsetParent.getBoundingClientRect().top,g=a?window.innerHeight:function(e){return go(e)?window.innerHeight:e.clientHeight}(l),v=vo(l),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),x=m-b,w=g-h,E=x+v,_=u-v-h,S=f-g+v+y,C=v+h-b,O=160;switch(i){case"auto":case"bottom":if(w>=p)return{placement:"bottom",maxHeight:t};if(_>=p&&!a)return o&&bo(l,S,O),{placement:"bottom",maxHeight:t};if(!a&&_>=r||a&&w>=r)return o&&bo(l,S,O),{placement:"bottom",maxHeight:a?w-y:_-y};if("auto"===i||a){var k=t,L=a?x:E;return L>=r&&(k=Math.min(L-y-s,t)),{placement:"top",maxHeight:k}}if("bottom"===i)return o&&yo(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(x>=p)return{placement:"top",maxHeight:t};if(E>=p&&!a)return o&&bo(l,C,O),{placement:"top",maxHeight:t};if(!a&&E>=r||a&&x>=r){var R=t;return(!a&&E>=r||a&&x>=r)&&(R=a?x-b:E-b),o&&bo(l,C,O),{placement:"top",maxHeight:R}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}({maxHeight:i,menuEl:e,minHeight:r,placement:o,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:v});p(n.maxHeight),g(n.placement),null==c||c(n.placement)}}),[i,o,a,s,r,c,v]),n({ref:u,placerProps:ar(ar({},t),{},{placement:m||To(o),maxHeight:f})})},Fo=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return ar({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},No=Fo,Io=Fo,jo=["size"],Bo=["innerProps","isRtl","size"],Go={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Uo=function(e){var t=e.size,n=Ni(e,jo);return Di("svg",(0,a.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Go},n))},Ho=function(e){return Di(Uo,(0,a.Z)({size:20},e),Di("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Vo=function(e){return Di(Uo,(0,a.Z)({size:20},e),Di("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Wo=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return ar({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},qo=Wo,$o=Wo,Zo=function(){var e=zi.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Po||(Mo=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Ao||(Ao=Mo.slice(0)),Po=Object.freeze(Object.defineProperties(Mo,{raw:{value:Object.freeze(Ao)}})))),Yo=function(e){var t=e.delay,n=e.offset;return Di("span",{css:zi({animation:"".concat(Zo," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Xo=["data"],Ko=["innerRef","isDisabled","isHidden","inputClassName"],Qo={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Jo={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ar({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Qo)},ea=function(e){return ar({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Qo)},ta=function(e){var t=e.children,n=e.innerProps;return Di("div",n,t)},na={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Di("div",(0,a.Z)({},mo(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Di(Ho,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,s=e.menuIsOpen;return Di("div",(0,a.Z)({ref:i},mo(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":s}),o,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Di("div",(0,a.Z)({},mo(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Di(Vo,null))},DownChevron:Vo,CrossIcon:Ho,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,s=e.headingProps,l=e.innerProps,c=e.label,u=e.theme,d=e.selectProps;return Di("div",(0,a.Z)({},mo(e,"group",{group:!0}),l),Di(o,(0,a.Z)({},s,{selectProps:d,theme:u,getStyles:r,getClassNames:i,cx:n}),c),Di("div",null,t))},GroupHeading:function(e){var t=ho(e);t.data;var n=Ni(t,Xo);return Di("div",(0,a.Z)({},mo(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Di("div",(0,a.Z)({},mo(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Di("span",(0,a.Z)({},t,mo(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=ho(e),i=r.innerRef,o=r.isDisabled,s=r.isHidden,l=r.inputClassName,c=Ni(r,Ko);return Di("div",(0,a.Z)({},mo(e,"input",{"input-container":!0}),{"data-value":n||""}),Di("input",(0,a.Z)({className:t({input:!0},l),ref:i,style:ea(s),disabled:o},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=void 0===r?4:r,o=Ni(e,Bo);return Di("div",(0,a.Z)({},mo(ar(ar({},o),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Di(Yo,{delay:0,offset:n}),Di(Yo,{delay:160,offset:!0}),Di(Yo,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Di("div",(0,a.Z)({},mo(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return Di("div",(0,a.Z)({},mo(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,s=t.menuPlacement,l=t.menuPosition,c=(0,e.useRef)(null),u=(0,e.useRef)(null),d=Fi((0,e.useState)(To(s)),2),f=d[0],p=d[1],h=(0,e.useMemo)((function(){return{setPortalPlacement:p}}),[]),m=Fi((0,e.useState)(null),2),g=m[0],v=m[1],y=(0,e.useCallback)((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===l?0:window.pageYOffset,n=e[f]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||v({offset:n,rect:e})}}),[i,l,f,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);so((function(){y()}),[y]);var b=(0,e.useCallback)((function(){"function"==typeof u.current&&(u.current(),u.current=null),i&&c.current&&(u.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=no(e),u=i||o?[...c?eo(c):[],...eo(t)]:[];u.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const i=qi(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-Ui(u)+"px "+-Ui(i.clientWidth-(c+d))+"px "+-Ui(i.clientHeight-(u+f))+"px "+-Ui(c)+"px",threshold:Bi(0,ji(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...p,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),o}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?ao(e):null;return l&&function t(){const r=ao(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}(i,c.current,y,{elementResize:"ResizeObserver"in window}))}),[i,y]);so((function(){b()}),[b]);var x=(0,e.useCallback)((function(e){c.current=e,b()}),[b]);if(!n&&"fixed"!==l||!g)return null;var w=Di("div",(0,a.Z)({ref:x},mo(ar(ar({},t),{},{offset:g.offset,position:l,rect:g.rect}),"menuPortal",{"menu-portal":!0}),o),r);return Di(Do.Provider,{value:h},n?(0,Ii.createPortal)(w,n):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=Ni(e,Ro);return Di("div",(0,a.Z)({},mo(ar(ar({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=Ni(e,Lo);return Di("div",(0,a.Z)({},mo(ar(ar({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return Di(l,{data:r,innerProps:ar(ar({},mo(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:s},Di(c,{data:r,innerProps:ar({},mo(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Di(u,{data:r,innerProps:ar(ar({},mo(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:ta,MultiValueLabel:ta,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Di("div",(0,a.Z)({role:"button"},n),t||Di(Ho,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,s=e.innerProps;return Di("div",(0,a.Z)({},mo(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Di("div",(0,a.Z)({},mo(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return Di("div",(0,a.Z)({},mo(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Di("div",(0,a.Z)({},mo(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return Di("div",(0,a.Z)({},mo(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},ra=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ia(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(i=t[n])||ra(r)&&ra(i)))return!1;var r,i;return!0}for(var oa={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},aa=function(e){return Di("span",(0,a.Z)({css:oa},e))},sa={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,o=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=s?" disabled":"",f="".concat(l?" selected":"").concat(d);return"".concat(o).concat(f,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},la=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,h=l.isMulti,m=l.isOptionDisabled,g=l.isSearchable,v=l.menuIsOpen,y=l.options,b=l.screenReaderStatus,x=l.tabSelectsValue,w=l.isLoading,E=l["aria-label"],_=l["aria-live"],S=(0,e.useMemo)((function(){return ar(ar({},sa),d||{})}),[d]),C=(0,e.useMemo)((function(){var e,t="";if(n&&S.onChange){var r=n.option,i=n.options,o=n.removedValue,a=n.removedValues,l=n.value,c=o||r||(e=l,Array.isArray(e)?null:e),u=c?f(c):"",d=i||a||void 0,p=d?d.map(f):[],h=ar({isDisabled:c&&m(c,s),label:u,labels:p},n);t=S.onChange(h)}return t}),[n,S,m,s,f]),O=(0,e.useMemo)((function(){var e="",t=r||i,n=!!(r&&s&&s.includes(r));if(t&&S.onFocus){var a={focused:t,label:f(t),isDisabled:m(t,s),isSelected:n,options:o,context:t===r?"menu":"value",selectValue:s,isAppleDevice:u};e=S.onFocus(a)}return e}),[r,i,f,m,S,o,s,u]),k=(0,e.useMemo)((function(){var e="";if(v&&y.length&&!w&&S.onFilter){var t=b({count:o.length});e=S.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,v,S,y,b,w]),L="initial-input-focus"===(null==n?void 0:n.action),R=(0,e.useMemo)((function(){var e="";if(S.guidance){var t=i?"value":v?"menu":"input";e=S.guidance({"aria-label":E,context:t,isDisabled:r&&m(r,s),isMulti:h,isSearchable:g,tabSelectsValue:x,isInitialFocus:L})}return e}),[E,r,i,h,m,g,v,S,s,x,L]),P=Di(e.Fragment,null,Di("span",{id:"aria-selection"},C),Di("span",{id:"aria-focused"},O),Di("span",{id:"aria-results"},k),Di("span",{id:"aria-guidance"},R));return Di(e.Fragment,null,Di(aa,{id:c},L&&P),Di(aa,{"aria-live":_,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!L&&P))},ca=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ua=new RegExp("["+ca.map((function(e){return e.letters})).join("")+"]","g"),da={},fa=0;fa<ca.length;fa++)for(var pa=ca[fa],ha=0;ha<pa.letters.length;ha++)da[pa.letters[ha]]=pa.base;var ma=function(e){return e.replace(ua,(function(e){return da[e]}))},ga=function(e,t){void 0===t&&(t=ia);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(ma),va=function(e){return e.replace(/^\s+|\s+$/g,"")},ya=function(e){return"".concat(e.label," ").concat(e.value)},ba=function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=ar({ignoreCase:!0,ignoreAccents:!0,stringify:ya,trim:!0,matchFrom:"any"},e),i=r.ignoreCase,o=r.ignoreAccents,a=r.stringify,s=r.trim,l=r.matchFrom,c=s?va(n):n,u=s?va(a(t)):a(t);return i&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=ga(c),u=ma(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1}},xa=["innerRef"];function wa(e){var t=e.innerRef,n=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=Object.entries(e).filter((function(e){var t=Fi(e,1)[0];return!n.includes(t)}));return i.reduce((function(e,t){var n=Fi(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})}(Ni(e,xa),"onExited","in","enter","exit","appear");return Di("input",(0,a.Z)({ref:t},n,{css:zi({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Ea=["boxSizing","height","overflow","paddingRight","position"],_a={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Sa(e){e.preventDefault()}function Ca(e){e.stopPropagation()}function Oa(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ka(){return"ontouchstart"in window||navigator.maxTouchPoints}var La=!("undefined"==typeof window||!window.document||!window.document.createElement),Ra=0,Pa={capture:!1,passive:!1},Ma=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Aa={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ta(t){var n=t.children,r=t.lockEnabled,i=t.captureEnabled,o=function(t){var n=t.isEnabled,r=t.onBottomArrive,i=t.onBottomLeave,o=t.onTopArrive,a=t.onTopLeave,s=(0,e.useRef)(!1),l=(0,e.useRef)(!1),c=(0,e.useRef)(0),u=(0,e.useRef)(null),d=(0,e.useCallback)((function(e,t){if(null!==u.current){var n=u.current,c=n.scrollTop,d=n.scrollHeight,f=n.clientHeight,p=u.current,h=t>0,m=d-f-c,g=!1;m>t&&s.current&&(i&&i(e),s.current=!1),h&&l.current&&(a&&a(e),l.current=!1),h&&t>m?(r&&!s.current&&r(e),p.scrollTop=d,g=!0,s.current=!0):!h&&-t>c&&(o&&!l.current&&o(e),p.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[r,i,o,a]),f=(0,e.useCallback)((function(e){d(e,e.deltaY)}),[d]),p=(0,e.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),h=(0,e.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=(0,e.useCallback)((function(e){if(e){var t=!!Co&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,f]),g=(0,e.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,f]);return(0,e.useEffect)((function(){if(n){var e=u.current;return m(e),function(){g(e)}}}),[n,m,g]),function(e){u.current=e}}({isEnabled:void 0===i||i,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var n=t.isEnabled,r=t.accountForScrollbars,i=void 0===r||r,o=(0,e.useRef)({}),a=(0,e.useRef)(null),s=(0,e.useCallback)((function(e){if(La){var t=document.body,n=t&&t.style;if(i&&Ea.forEach((function(e){var t=n&&n[e];o.current[e]=t})),i&&Ra<1){var r=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(_a).forEach((function(e){var t=_a[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&ka()&&(t.addEventListener("touchmove",Sa,Pa),e&&(e.addEventListener("touchstart",Oa,Pa),e.addEventListener("touchmove",Ca,Pa))),Ra+=1}}),[i]),l=(0,e.useCallback)((function(e){if(La){var t=document.body,n=t&&t.style;Ra=Math.max(Ra-1,0),i&&Ra<1&&Ea.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&ka()&&(t.removeEventListener("touchmove",Sa,Pa),e&&(e.removeEventListener("touchstart",Oa,Pa),e.removeEventListener("touchmove",Ca,Pa)))}}),[i]);return(0,e.useEffect)((function(){if(n){var e=a.current;return s(e),function(){l(e)}}}),[n,s,l]),function(e){a.current=e}}({isEnabled:r});return Di(e.Fragment,null,r&&Di("div",{onClick:Ma,css:Aa}),n((function(e){o(e),a(e)})))}var Da={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},za=function(e){var t=e.name,n=e.onFocus;return Di("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Da,value:"",onChange:function(){}})};function Fa(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Na(){return Fa(/^Mac/i)}var Ia={clearIndicator:$o,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors,a=i.borderRadius;return ar({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:qo,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return ar({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return ar({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,a=i.colors;return ar(ar({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Jo),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return ar({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*a})},loadingMessage:Io,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,s=i.colors;return ar((ir(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),ir(n,"position","absolute"),ir(n,"width","100%"),ir(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return ar({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return ar({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return ar({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,a=e.isFocused;return ar({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:No,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,s=o.colors;return ar({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return ar({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return ar({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return ar({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},ja={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ba={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:wo(),captureMenuScroll:!wo(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:ba(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Ga(e,t,n,r){return{type:"option",data:t,isDisabled:Ya(e,t,n),isSelected:Xa(e,t,n),label:$a(e,t),value:Za(e,t),index:r}}function Ua(e,t){return e.options.map((function(n,r){if("options"in n){var i=n.options.map((function(n,r){return Ga(e,n,t,r)})).filter((function(t){return Wa(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=Ga(e,n,t,r);return Wa(e,o)?o:void 0})).filter(Oo)}function Ha(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Mt(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Va(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Mt(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function Wa(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!Qa(e)||!o)&&Ka(e,{label:a,value:s,data:i},r)}var qa=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},$a=function(e,t){return e.getOptionLabel(t)},Za=function(e,t){return e.getOptionValue(t)};function Ya(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Xa(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Za(e,t);return n.some((function(t){return Za(e,t)===r}))}function Ka(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Qa=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Ja=1,es=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,sr.Z)(e,t)}(r,t);var n=function(e){var t=cr();return function(){var n,r=lr(e);if(t){var i=lr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,B.Z)(e)}(this,n)}}(r);function r(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Na()||Fa(/^iPhone/i)||Fa(/^iPad/i)||Na()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,o=r.name;n.name=o,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,o=n.name,a=t.state.selectValue,s=i&&t.isOptionSelected(e,a),l=t.isOptionDisabled(e,a);if(s){var c=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:o});i?t.setValue([].concat(Mt(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,i=t.getOptionValue(e),o=r.filter((function(e){return t.getOptionValue(e)!==i})),a=ko(n,o,o[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(ko(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],i=n.slice(0,n.length-1),o=ko(e,i,i[0]||null);t.onChange(o,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return qa(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Va(Ua(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return fo.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return $a(t.props,e)},t.getOptionValue=function(e){return Za(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=Ia[e](n,r);i.boxSizing="border-box";var o=t.props.styles[e];return o?o(i,n):i},t.getClassNames=function(e,n){var r,i;return null===(r=(i=t.props.classNames)[e])||void 0===r?void 0:r.call(i,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return function(e){return ar(ar({},na),e.components)}(t.props)},t.buildCategorizedOptions=function(){return Ua(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Ha(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:ar({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&go(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return Qa(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!h||f&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&o&&t.clearValue();break;case" ":if(a)return;if(!c){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++Ja),t.state.selectValue=po(e.value),e.menuIsOpen&&t.state.selectValue.length){var i=t.getFocusableOptionsWithIds(),o=t.buildFocusableOptions(),a=o.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=i,t.state.focusedOption=o[a],t.state.focusedOptionId=qa(i,o[a])}return t}return I(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&xo(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(xo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(ja):ar(ar({},ja),this.props.theme):ja}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:o,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Ya(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Xa(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ka(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,n=t.isDisabled,r=t.isSearchable,i=t.inputId,o=t.inputValue,s=t.tabIndex,l=t.form,c=t.menuIsOpen,u=t.required,d=this.getComponents().Input,f=this.state,p=f.inputIsHidden,h=f.ariaSelection,m=this.commonProps,g=i||this.getElementId("input"),v=ar(ar(ar({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==h?void 0:h.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?e.createElement(d,(0,a.Z)({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:n,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:o},v)):e.createElement(wa,(0,a.Z)({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:co,onFocus:this.onInputFocus,disabled:n,tabIndex:s,inputMode:"none",form:l,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,i=n.MultiValueContainer,o=n.MultiValueLabel,s=n.MultiValueRemove,l=n.SingleValue,c=n.Placeholder,u=this.commonProps,d=this.props,f=d.controlShouldRenderValue,p=d.isDisabled,h=d.isMulti,m=d.inputValue,g=d.placeholder,v=this.state,y=v.selectValue,b=v.focusedValue,x=v.isFocused;if(!this.hasValue()||!f)return m?null:e.createElement(c,(0,a.Z)({},u,{key:"placeholder",isDisabled:p,isFocused:x,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return y.map((function(n,l){var c=n===b,d="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(r,(0,a.Z)({},u,{components:{Container:i,Label:o,Remove:s},isFocused:c,isDisabled:p,key:d,index:l,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))}));if(m)return null;var w=y[0];return e.createElement(l,(0,a.Z)({},u,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,i=r.isDisabled,o=r.isLoading,s=this.state.isFocused;if(!this.isClearable()||!t||i||!this.hasValue()||o)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,(0,a.Z)({},n,{innerProps:l,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,i=r.isDisabled,o=r.isLoading,s=this.state.isFocused;return t&&o?e.createElement(t,(0,a.Z)({},n,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var i=this.commonProps,o=this.props.isDisabled,s=this.state.isFocused;return e.createElement(r,(0,a.Z)({},i,{isDisabled:o,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,(0,a.Z)({},n,{innerProps:o,isDisabled:r,isFocused:i}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,o=n.Menu,s=n.MenuList,l=n.MenuPortal,c=n.LoadingMessage,u=n.NoOptionsMessage,d=n.Option,f=this.commonProps,p=this.state.focusedOption,h=this.props,m=h.captureMenuScroll,g=h.inputValue,v=h.isLoading,y=h.loadingMessage,b=h.minMenuHeight,x=h.maxMenuHeight,w=h.menuIsOpen,E=h.menuPlacement,_=h.menuPosition,S=h.menuPortalTarget,C=h.menuShouldBlockScroll,O=h.menuShouldScrollIntoView,k=h.noOptionsMessage,L=h.onMenuScrollToTop,R=h.onMenuScrollToBottom;if(!w)return null;var P,M=function(n,r){var i=n.type,o=n.data,s=n.isDisabled,l=n.isSelected,c=n.label,u=n.value,h=p===o,m=s?void 0:function(){return t.onOptionHover(o)},g=s?void 0:function(){return t.selectOption(o)},v="".concat(t.getElementId("option"),"-").concat(r),y={id:v,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:l};return e.createElement(d,(0,a.Z)({},f,{innerProps:y,data:o,isDisabled:s,isSelected:l,key:v,label:c,type:i,value:u,isFocused:h,innerRef:h?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(n){if("group"===n.type){var o=n.data,s=n.options,l=n.index,c="".concat(t.getElementId("group"),"-").concat(l),u="".concat(c,"-heading");return e.createElement(r,(0,a.Z)({},f,{key:c,data:o,options:s,Heading:i,headingProps:{id:u,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return M(e,"".concat(l,"-").concat(e.index))})))}if("option"===n.type)return M(n,"".concat(n.index))}));else if(v){var A=y({inputValue:g});if(null===A)return null;P=e.createElement(c,f,A)}else{var T=k({inputValue:g});if(null===T)return null;P=e.createElement(u,f,T)}var D={minMenuHeight:b,maxMenuHeight:x,menuPlacement:E,menuPosition:_,menuShouldScrollIntoView:O},z=e.createElement(zo,(0,a.Z)({},f,D),(function(n){var r=n.ref,i=n.placerProps,l=i.placement,c=i.maxHeight;return e.createElement(o,(0,a.Z)({},f,D,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:v,placement:l}),e.createElement(Ta,{captureEnabled:m,onTopArrive:L,onBottomArrive:R,lockEnabled:C},(function(n){return e.createElement(s,(0,a.Z)({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":f.isMulti,id:t.getElementId("listbox")},isLoading:v,maxHeight:c,focusedOption:p}),P)})))}));return S||"fixed"===_?e.createElement(l,(0,a.Z)({},f,{appendTo:S,controlElement:this.controlRef,menuPlacement:E,menuPosition:_}),z):z}},{key:"renderFormField",value:function(){var t=this,n=this.props,r=n.delimiter,i=n.isDisabled,o=n.isMulti,a=n.name,s=n.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!i)return e.createElement(za,{name:a,onFocus:this.onValueInputFocus});if(a&&!i){if(o){if(r){var c=l.map((function(e){return t.getOptionValue(e)})).join(r);return e.createElement("input",{name:a,type:"hidden",value:c})}var u=l.length>0?l.map((function(n,r){return e.createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:a,type:"hidden",value:""});return e.createElement("div",null,u)}var d=l[0]?this.getOptionValue(l[0]):"";return e.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,i=n.focusedOption,o=n.focusedValue,s=n.isFocused,l=n.selectValue,c=this.getFocusableOptions();return e.createElement(la,(0,a.Z)({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:i,focusedValue:o,isFocused:s,selectValue:l,focusableOptions:c,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,i=t.SelectContainer,o=t.ValueContainer,s=this.props,l=s.className,c=s.id,u=s.isDisabled,d=s.menuIsOpen,f=this.state.isFocused,p=this.commonProps=this.getCommonProps();return e.createElement(i,(0,a.Z)({},p,{className:l,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:f}),this.renderLiveRegion(),e.createElement(n,(0,a.Z)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:f,menuIsOpen:d}),e.createElement(o,(0,a.Z)({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,(0,a.Z)({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=po(u),m={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return Ha(Ua(e,t))}(e,h):[],v=d?Va(Ua(e,h),"".concat(l,"-option")):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:b,focusedOptionId:qa(v,b),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var x=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},w=o,E=a&&s;return a&&!E&&(w={value:ko(p,h,h[0]||null),options:h,action:"initial-input-focus"},E=!s),"initial-input-focus"===(null==o?void 0:o.action)&&(w=null),ar(ar(ar({},m),x),{},{prevProps:e,ariaSelection:w,prevWasFocused:E})}}]),r}(e.Component);es.defaultProps=Ba;var ts=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ns(t){var n=t.defaultInputValue,r=void 0===n?"":n,i=t.defaultMenuIsOpen,o=void 0!==i&&i,a=t.defaultValue,s=void 0===a?null:a,l=t.inputValue,c=t.menuIsOpen,u=t.onChange,d=t.onInputChange,f=t.onMenuClose,p=t.onMenuOpen,h=t.value,m=Ni(t,ts),g=Fi((0,e.useState)(void 0!==l?l:r),2),v=g[0],y=g[1],b=Fi((0,e.useState)(void 0!==c?c:o),2),x=b[0],w=b[1],E=Fi((0,e.useState)(void 0!==h?h:s),2),_=E[0],S=E[1],C=(0,e.useCallback)((function(e,t){"function"==typeof u&&u(e,t),S(e)}),[u]),O=(0,e.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),y(void 0!==n?n:e)}),[d]),k=(0,e.useCallback)((function(){"function"==typeof p&&p(),w(!0)}),[p]),L=(0,e.useCallback)((function(){"function"==typeof f&&f(),w(!1)}),[f]),R=void 0!==l?l:v,P=void 0!==c?c:x,M=void 0!==h?h:_;return ar(ar({},m),{},{inputValue:R,menuIsOpen:P,onChange:C,onInputChange:O,onMenuClose:L,onMenuOpen:k,value:M})}var rs=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"],is=(0,e.forwardRef)((function(t,n){var r=function(t){var n=t.defaultOptions,r=void 0!==n&&n,i=t.cacheOptions,o=void 0!==i&&i,a=t.loadOptions;t.options;var s=t.isLoading,l=void 0!==s&&s,c=t.onInputChange,u=t.filterOption,d=void 0===u?null:u,f=Ni(t,rs),p=f.inputValue,h=(0,e.useRef)(void 0),m=(0,e.useRef)(!1),g=Fi((0,e.useState)(Array.isArray(r)?r:void 0),2),v=g[0],y=g[1],b=Fi((0,e.useState)(void 0!==p?p:""),2),x=b[0],w=b[1],E=Fi((0,e.useState)(!0===r),2),_=E[0],S=E[1],C=Fi((0,e.useState)(void 0),2),O=C[0],k=C[1],L=Fi((0,e.useState)([]),2),R=L[0],P=L[1],M=Fi((0,e.useState)(!1),2),A=M[0],T=M[1],D=Fi((0,e.useState)({}),2),z=D[0],F=D[1],N=Fi((0,e.useState)(void 0),2),I=N[0],j=N[1],B=Fi((0,e.useState)(void 0),2),G=B[0],U=B[1];o!==G&&(F({}),U(o)),r!==I&&(y(Array.isArray(r)?r:void 0),j(r)),(0,e.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var H=(0,e.useCallback)((function(e,t){if(!a)return t();var n=a(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}),[a]);(0,e.useEffect)((function(){!0===r&&H(x,(function(e){m.current&&(y(e||[]),S(!!h.current))}))}),[]);var V=(0,e.useCallback)((function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,c);if(!n)return h.current=void 0,w(""),k(""),P([]),S(!1),void T(!1);if(o&&z[n])w(n),k(n),P(z[n]),S(!1),T(!1);else{var r=h.current={};w(n),S(!0),T(!O),H(n,(function(e){m&&r===h.current&&(h.current=void 0,S(!1),k(n),P(e||[]),T(!1),F(e?ar(ar({},z),{},ir({},n,e)):z))}))}}),[o,H,O,z,c]),W=A?[]:x&&O?R:v||[];return ar(ar({},f),{},{options:W,isLoading:_||l,onInputChange:V,filterOption:d})}(t),i=ns(r);return e.createElement(es,(0,a.Z)({ref:n},i))})),os=is,as=ae(518),ss=ae.n(as),ls=ae(9233),cs=ae.n(ls);function us(){return us=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},us.apply(null,arguments)}var ds=ae(7290),fs=ae.n(ds);function ps(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){hs(e,t,n[t])}))}return e}function hs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ms(){return ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ms.apply(null,arguments)}const gs=t().forwardRef(((e,n)=>t().createElement("div",ms({ref:n},e))));function vs(){return vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vs.apply(null,arguments)}gs.displayName="InputComponent";var ys=ae(4436),bs=ae.n(ys);function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xs.apply(null,arguments)}var ws=ae(6091),Es=ae.n(ws),_s=ae(5635),Ss=ae.n(_s);function Cs(){return Cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cs.apply(null,arguments)}const Os=e=>{const{children:n,selectProps:r,removeProps:i}=e;return t().createElement(Es(),{tabIndex:-1,label:n,className:r.classes.multiValue,classes:{label:r.classes.multiValue__label},onDelete:i.onClick,deleteIcon:t().createElement(Ss(),Cs({},e.removeProps,{style:{height:"18px",width:"18px",color:"rgba(0,0,0,0.38)",marginRight:"8px"}}))})};Os.propTypes={children:m().node,isFocused:m().bool.isRequired,removeProps:m().shape({onClick:m().func.isRequired,onMouseDown:m().func.isRequired,onTouchEnd:m().func.isRequired}).isRequired,selectProps:m().object.isRequired};var ks=ae(3222),Ls=ae.n(ks),Rs=ae(4073),Ps=ae.n(Rs),Ms=ae(2436),As=ae.n(Ms),Ts=function(e,t){return Ts=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])},Ts(e,t)};"function"==typeof SuppressedError&&SuppressedError;var Ds=function(e){return"function"==typeof e},zs=function(){return"undefined"==typeof window},Fs=function(e){return e instanceof Element||e instanceof HTMLDocument},Ns=function(n){function r(t){var r=n.call(this,t)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var e=r.props,t=e.targetRef,n=e.observerOptions;if(!zs()){t&&t.current&&(r.targetRef.current=t.current);var i=r.getElement();i&&(r.observableElement&&r.observableElement===i||(r.observableElement=i,r.resizeObserver.observe(i,n)))}},r.getElement=function(){var e=r.props,t=e.querySelector,n=e.targetDomEl;if(zs())return null;if(t)return document.querySelector(t);if(n&&Fs(n))return n;if(r.targetRef&&Fs(r.targetRef.current))return r.targetRef.current;var i=(0,Ii.findDOMNode)(r);if(!i)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},r.createResizeHandler=function(e){var t=r.props,n=t.handleWidth,i=void 0===n||n,o=t.handleHeight,a=void 0===o||o,s=t.onResize;(i||a)&&e.forEach((function(e){var t=e&&e.contentRect||{},n=t.width,o=t.height;!r.skipOnMount&&!zs()&&function(e){var t=e.width,n=e.height;r.state.width===t&&r.state.height===n||r.state.width===t&&!a||r.state.height===n&&!i||(null==s||s(t,n),r.setState({width:t,height:n}))}({width:n,height:o}),r.skipOnMount=!1}))},r.getRenderType=function(){var t=r.props,n=t.render,i=t.children;return Ds(n)?"renderProp":Ds(i)?"childFunction":(0,e.isValidElement)(i)?"child":Array.isArray(i)?"childArray":"parent"};var i=t.skipOnMount,o=t.refreshMode,a=t.refreshRate,s=void 0===a?1e3:a,l=t.refreshOptions;return r.state={width:void 0,height:void 0},r.sizeRef={current:r.state},r.skipOnMount=i,r.targetRef=(0,e.createRef)(),r.observableElement=null,zs()||(r.resizeHandler=function(e,t,n,r){switch(t){case"debounce":return Ps()(e,n,r);case"throttle":return As()(e,n,r);default:return e}}(r.createResizeHandler,o,s,l),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}return 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}Ts(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(r,n),r.prototype.componentDidMount=function(){this.attachObserver()},r.prototype.componentDidUpdate=function(){this.attachObserver(),this.sizeRef.current=this.state},r.prototype.componentWillUnmount=function(){zs()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},r.prototype.render=function(){var n=this.props,r=n.render,i=n.children,o=n.nodeType,a=void 0===o?"div":o,s=this.state,l={width:s.width,height:s.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return null==r?void 0:r(l);case"childFunction":return null==i?void 0:i(l);case"child":var c=i;if(c.type&&"string"==typeof c.type){var u=function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(l,["targetRef"]);return(0,e.cloneElement)(c,u)}return(0,e.cloneElement)(c,l);case"childArray":return i.map((function(t){return!!t&&(0,e.cloneElement)(t,l)}));default:return t().createElement(a,null)}},r}(e.PureComponent),Is=ae(3627),js=ae.n(Is);const Bs=Wn((e=>({tooltip:e.tooltip,popper:{zIndex:1e4}})));function Gs(){return Gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gs.apply(null,arguments)}function Us(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Hs(e,t,n[t])}))}return e}function Hs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vs=n=>{let{children:r,value:i="",className:o,showOnExceededWidth:a=!0,showOnExceededHeight:s}=n,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["children","value","className","showOnExceededWidth","showOnExceededHeight"]);const c=Bs(),u=(0,e.useRef)(),[d,f]=(0,e.useState)(!1),p=()=>f(((e,t,n)=>e&&(t&&e.clientWidth<e.scrollWidth||n&&e.clientHeight<e.scrollHeight))(u.current,a,s));return(0,e.useEffect)(p,[s,a,i]),t().createElement(t().Fragment,null,t().createElement(Ns,{handleWidth:a,handleHeight:s,onResize:p,refreshMode:"debounce",refreshRate:100}),t().createElement(js(),Gs({ref:u,title:d?i:"",classes:Us({},c,{tooltip:o})},l),r))};function Ws(){return Ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ws.apply(null,arguments)}const qs=e=>{const{innerProps:n,innerRef:r,children:i,isFocused:o,isSelected:a,label:s,selectProps:{classes:l}}=e;return t().createElement(Ls(),Ws({className:Qn()(l.option,{[l["option--selected"]]:a}),ref:r,selected:o,component:"div"},n),t().createElement(Vs,{value:s},t().createElement("div",{className:l["option--item"]},i)))};function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$s.apply(null,arguments)}qs.propTypes={children:m().node,innerProps:m().shape({id:m().string.isRequired,key:m().string,onClick:m().func.isRequired,onMouseMove:m().func.isRequired,onMouseOver:m().func.isRequired,tabIndex:m().number.isRequired}).isRequired,innerRef:m().oneOfType([m().oneOf([null]),m().func,m().shape({current:m().any.isRequired})]),isFocused:m().bool.isRequired,isSelected:m().bool.isRequired,label:m().string,selectProps:m().shape({classes:m().shape({option:m().string,"option--selected":m().string})})};const Zs={ClearIndicator:e=>{const{innerProps:n,selectProps:{classes:r}}=e;return t().createElement(cs(),us({},n,{className:r.clearIndicator,size:"large"}),t().createElement(ss(),null))},Control:e=>{const{children:n,innerProps:r,innerRef:i,selectProps:{classes:o,TextFieldProps:a={}}}=e;return t().createElement(fs(),ms({variant:"standard",fullWidth:!0},a,{InputProps:ps({inputComponent:gs},a.InputProps,{inputProps:ps({className:o.control,ref:i,children:n},r,a.inputProps)})}))},DropdownIndicator:e=>{const{innerProps:n,selectProps:{classes:r}}=e;return t().createElement(cs(),vs({},n,{className:r.dropdownIndicator,size:"large"}),t().createElement(er(),null))},GroupHeading:e=>{const{children:n,selectProps:{classes:r}}=e;return t().createElement(A(),{variant:"subtitle2",className:Qn()(r.groupHeading)},n)},Menu:e=>{const{selectProps:{classes:n},innerProps:r,innerRef:i,getStyles:o,children:a}=e;return t().createElement(bs(),xs({ref:i,style:o("menu",e),className:n.menu},r),a)},MultiValue:Os,NoOptionsMessage:e=>{const{selectProps:{classes:n},children:r}=e;return t().createElement(A(),{color:"textSecondary",className:n.noOptionsMessage},r)},Option:qs,Placeholder:e=>{const{selectProps:{classes:n},children:r}=e;return t().createElement(A(),{color:"textSecondary",className:n.placeholder},r)},SingleValue:e=>{const{selectProps:{classes:n},innerProps:r,children:i}=e;return t().createElement(A(),$s({className:n.singleValue},r),i)},ValueContainer:e=>{const{selectProps:{classes:n},children:r,isMulti:i}=e;return t().createElement("div",{className:Qn()(n.valueContainer,{[n["valueContainer--multi"]]:i})},r)}};function Ys(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Xs=Wn((e=>({control:{display:"flex","&&":{padding:0},height:"auto"},valueContainer:{display:"flex",flexWrap:"nowrap",flex:1,alignItems:"center",overflow:"hidden",marginLeft:e.spacing(1)},"valueContainer--multi":{flexWrap:"wrap"},multiValue:{margin:e.spacing(.5,.5),maxWidth:"calc(100% - 8px)"},multiValue__label:{paddingRight:0,marginRight:12,maxWidth:"100%",overflow:"hidden"},noOptionsMessage:{padding:e.spacing(1,2)},singleValue:{fontSize:16,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},placeholder:{position:"absolute",left:6,bottom:10,fontSize:16},menu:{zIndex:40,marginTop:e.spacing(1)},clearIndicator:{},dropdownIndicator:{},groupHeading:{paddingLeft:"28px"},option:{fontWeight:400},"option--selected":{fontWeight:400},"option--item":{display:"block",width:"100%",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"pre"}})));function Ks(){return Ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ks.apply(null,arguments)}function Qs(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Js(e,t,n[t])}))}return e}function Js(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const el=e=>{function n(n){const{components:r,classes:i,error:o,TextFieldProps:a,innerRef:s}=n,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["components","classes","error","TextFieldProps","innerRef"]),c=Xs(),u=Qs({},Zs,r),d=((e,t)=>(0,w.union)(Object.keys(e),Object.keys(t)).reduce(((n,r)=>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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Ys(e,t,n[t])}))}return e}({},n,{[r]:Qn()(e[r],t[r])})),{}))(c,i);return t().createElement(e,Ks({ref:s,components:u,classes:d,TextFieldProps:Qs({},a,{error:o})},l))}return n.displayName=`withMuiSkin(${e.displayName||e.name})`,n.defaultProps={components:{},classes:{}},n},tl=el(os);var nl=(0,e.forwardRef)((function(t,n){var r=ns(t);return e.createElement(es,(0,a.Z)({ref:n},r))}));const rl=el(nl),il=()=>null;var ol=ae(1884),al=ae.n(ol);const sl=t().createContext(null);sl.displayName="PopupBoundariesContext";var ll=ae(1733),cl=ae.n(ll),ul=ae(5788),dl=ae.n(ul);const fl=({anchorEl:e,leftBackdropRef:t,rightBackdropRef:n,topBackdropRef:r,bottomBackdropRef:i,rafIdRef:o,lastResizeTimestamp:a=0})=>{if(e){if(Date.now()-a>100&&r.current&&t.current&&n.current&&i.current){const o=e.getBoundingClientRect();r.current.style.top="0",r.current.style.left="0",r.current.style.right="0",r.current.style.height=o.top+"px",t.current.style.top="0",t.current.style.left="0",t.current.style.width=o.left+"px",t.current.style.bottom="0",n.current.style.top="0",n.current.style.left=o.right+"px",n.current.style.right="0",n.current.style.bottom="0",i.current.style.top=o.bottom+"px",i.current.style.left="0",i.current.style.right="0",i.current.style.bottom="0",a=Date.now()}o.current=requestAnimationFrame((()=>fl({anchorEl:e,leftBackdropRef:t,rightBackdropRef:n,topBackdropRef:r,bottomBackdropRef:i,rafIdRef:o,lastResizeTimestamp:a})))}},pl=Wn({backdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:10},popper:{zIndex:1300}});function hl(){return hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hl.apply(null,arguments)}const ml=(0,e.forwardRef)(((n,r)=>{var i;let{open:o,anchorEl:a,className:s,modal:l=!0,excludeAnchorFromBackdrop:c=!0,onClose:u=w.identity}=n,d=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["open","anchorEl","className","modal","excludeAnchorFromBackdrop","onClose"]);const f=pl(),p=(0,e.useRef)(),h=(0,e.useRef)(),m=(0,e.useRef)(),g=(0,e.useRef)(),v=(0,e.useRef)(),y=rt();return(0,e.useEffect)((()=>{if(o&&l)return fl({anchorEl:a,leftBackdropRef:p,rightBackdropRef:h,topBackdropRef:m,bottomBackdropRef:g,rafIdRef:v}),()=>cancelAnimationFrame(v.current)}),[a,o,l]),t().createElement(t().Fragment,null,l&&o&&t().createElement(cl(),{container:document.body},c?t().createElement(t().Fragment,null,t().createElement("div",{ref:m,className:f.backdrop,onClick:u}),t().createElement("div",{ref:h,className:f.backdrop,onClick:u}),t().createElement("div",{ref:g,className:f.backdrop,onClick:u}),t().createElement("div",{ref:p,className:f.backdrop,onClick:u})):t().createElement("div",{className:f.backdrop,onClick:u})),t().createElement(dl(),hl({"data-mui-color-scheme":null==y||null===(i=y.palette)||void 0===i?void 0:i.mode,open:o,anchorEl:a},d,{className:Qn()(s,f.popper),ref:r})))}));ml.displayName="Popper";const gl=Wn({popper:{borderRadius:"4px",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)",backgroundColor:"#FFFFFF",margin:0,zIndex:1e4}});function vl(){return vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vl.apply(null,arguments)}const yl=n=>{const{selectProps:{inputRef:r,menuIsOpen:i,inputValue:o},innerRef:a,children:s,innerProps:l}=n,[c,u]=(0,e.useState)("id");(0,e.useEffect)((()=>{u(((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),""))())}),[o]);const d=gl(),f=(0,e.useContext)(sl),p=Boolean(null==f?void 0:f.element),h=p?f.element.clientWidth:window.innerWidth;return t().createElement(ml,{anchorEl:r.current,open:i,className:d.popper,key:c,modifiers:[{name:"preventOverflow",enabled:!0,options:{altAxis:!0,altBoundary:!0,tether:!1,boundary:p?f.element:document.body,padding:5}}],placement:"bottom-start"},t().createElement(bs(),vl({ref:a,style:{minWidth:Math.min((0,w.prop)("clientWidth",r.current),h),maxWidth:Math.min(521,h)}},l),s))};yl.propTypes={children:m().oneOfType([m().element,m().array]).isRequired,selectProps:m().shape({inputRef:m().object.isRequired,menuIsOpen:m().bool.isRequired,inputValue:m().string}).isRequired,innerRef:m().oneOfType([m().oneOf([null]),m().func,m().shape({current:m().any})]).isRequired,innerProps:m().object.isRequired};const bl=Wn((e=>({addLabel:{display:"flex",padding:"0 7px",height:"35px",alignItems:"center",fontSize:"13px",fontWeight:"500",color:e.palette.primary.main,cursor:"pointer",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",borderTop:"solid 1px rgba(0, 0, 0, 0.14)",backgroundColor:"rgba(0, 0, 0, 0.03)"},addIcon:{height:"18px",width:"18px",padding:"0 9px"}}))),xl=e=>{const{selectProps:{onCreate:n,createLabel:r,inputValue:i,components:o,canCreateOption:a},children:s}=e,l=bl();return t().createElement(yl,e,s,r&&!(0,w.prop)("Group",o)&&a()&&t().createElement("span",{className:l.addLabel,onClick:()=>n(i)},t().createElement(al(),{className:l.addIcon}),r))},wl=Wn({singleValue:{fontSize:"14px",lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:"17px"}});function El(){return El=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},El.apply(null,arguments)}const _l=e=>{const{selectProps:{menuIsOpen:n},innerProps:r,children:i}=e,o=wl();return!n&&t().createElement(A(),El({className:o.singleValue},r),i)};function Sl(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Cl(e,t,n[t])}))}return e}function Cl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}_l.propTypes={children:m().node,innerProps:m().object};const Ol=Wn({control:{height:"auto"},dropdownIndicator:{boxSizing:"content-box",transition:"transform .15s ease",padding:e=>(e.height-24)/2+"px 12px",cursor:"pointer",color:"rgba(0, 0, 0, 0.54)"},valueContainer:{marginLeft:"16px",width:0},formControl:{margin:0},filledInputRoot:{backgroundColor:"rgba(0, 0, 0, 0.03)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"},"&.focused":{backgroundColor:"rgba(0, 0, 0, 0.03)"}},filledInputUnderline:{"&:before":{display:"none"}},inputLabel:{color:"rgba(0,0,0,0.6)",fontSize:"14px",paddingLeft:"4px","&.shrink":{paddingLeft:"4px"}}}),kl={menu:e=>Sl({},e,{borderRadius:"0 0 4px 4px",backgroundColor:"#FFFFFFFF",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)",margin:0}),menuList:e=>Sl({},e,{maxHeight:"208px",padding:"8px 0"}),group:e=>Sl({},e,{padding:"0 0 8px 0"}),input:e=>Sl({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:"16px 0 0",padding:0}),option:e=>Sl({},e,{fontSize:"13px",lineHeight:"15px",height:"32px"})},Ll={menuList:e=>Sl({},e,{padding:0})},Rl={input:e=>Sl({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:0,padding:0})};function Pl(){return Pl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pl.apply(null,arguments)}function Ml(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Al(e,t,n[t])}))}return e}function Al(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tl=n=>{let{value:r,label:i,options:o,getOptions:a,createLabel:s,height:l=46,onChange:c=w.identity,onCreate:u,canCreateOption:d=()=>Boolean(u),onClear:f=w.identity,components:p={},textFieldInputRef:h,TextFieldProps:m,classes:g={}}=n,v=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["value","label","options","getOptions","createLabel","height","onChange","onCreate","canCreateOption","onClear","components","textFieldInputRef","TextFieldProps","classes"]);const y=Ol({height:l}),[b,x]=(0,e.useState)(!1),_=(0,e.useRef)(null),S=a?tl:rl,C=(0,w.prop)("ClearIndicator",p)?{}:{IndicatorSeparator:il,ClearIndicator:il},O=u?(e,t)=>{u(e,t),x(!1)}:void 0,k=(0,w.prop)("Group",p)?Ll:{},L=(0,w.isEmpty)(i)?Rl:{},R=Ml({},kl,k,L),P=Ml({},y,g);return t().createElement(S,Pl({placeholder:"",defaultOptions:!0},v,{value:(0,w.defaultTo)(null,r),loadOptions:a,options:o,cacheOptions:!0,onChange:c,onCreate:O,onClear:f,createLabel:s,canCreateOption:d,classes:P,styles:R,components:Ml({DropdownIndicator:rr,LoadingIndicator:il,SingleValue:_l,Menu:xl},C,p),menuPlacement:"auto",TextFieldProps:Ml({},m,{label:i,variant:"filled",size:"small",classes:Ml({},(0,w.prop)("classes",m),{root:Qn()(y.formControl,(0,w.path)(["classes","root"],m))}),inputProps:Ml({},(0,w.prop)("inputProps",m)),InputProps:Ml({},(0,w.prop)("InputProps",m),{classes:Ml({},(0,w.path)(["InputProps","classes"],m),{root:Qn()(y.filledInputRoot,(0,w.path)(["InputProps","classes","root"],m)),underline:Qn()({[y.filledInputUnderline]:(0,E.isEmptyValue)(r)},(0,w.path)(["InputProps","classes","underline"],m)),focused:Qn()("focused",(0,w.path)(["InputProps","classes","focused"],m))})}),InputLabelProps:Ml({},(0,w.prop)("InputLabelProps",m),{classes:Ml({},(0,w.path)(["InputLabelProps","classes"],m),{root:Qn()(y.inputLabel,(0,w.path)(["InputLabelProps","classes","root"],m)),shrink:Qn()("shrink",(0,w.path)(["InputLabelProps","classes","shrink"],m))}),shrink:!(0,E.isEmptyValue)(r)||void 0}),ref:h||_}),inputRef:h||_,menuIsOpen:b,onMenuOpen:()=>x(!0),onMenuClose:()=>x(!1)}))},Dl={BY_LABEL:ba({stringify:(0,w.prop)("label")})};var zl=ae(8018);const Fl="undefined"!=typeof window&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect,Nl=(t,n)=>{const r=e.useContext(t),{value:{current:i},version:{current:o},listeners:a}=r,s=n(i),[l,c]=e.useReducer(((e,t)=>{if(!t)return[i,s];if(t[0]<=o)return Il(e[1],s)?e:[i,s];try{if(Il(e[0],t[1]))return e;const r=n(t[1]);return Il(e[1],r)?e:[t[1],r]}catch(e){}return[e[0],e[1]]}),[i,s]);return Il(l[1],s)||c(void 0),Fl((()=>(a.push(c),()=>{const e=a.indexOf(c);a.splice(e,1)})),[a]),l[1]},Il="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};var jl=ae(4616);const Bl=t=>{const n=e.createContext({value:{current:t},version:{current:-1},listeners:[]});var r;return n.Provider=(r=n.Provider,t=>{const n=e.useRef(t.value),i=e.useRef(0),o=e.useRef();return o.current||(o.current={value:n,version:i,listeners:[]}),Fl((()=>{n.current=t.value,i.current+=1,(0,jl.unstable_runWithPriority)(jl.unstable_NormalPriority,(()=>{o.current.listeners.forEach((e=>{e([i.current,t.value])}))}))}),[t.value]),e.createElement(r,{value:o.current},t.children)}),delete n.Consumer,n},Gl=Bl({}),Ul=Bl({}),Hl=(Bl({}),e=>Nl(Ul,e));function Vl(){return Vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vl.apply(null,arguments)}const Wl=e=>{const n=Hl((e=>e.absoluteImagePath))||"";return t().createElement(zl.ZP,Vl({},e,{storagePath:(r=n,r.endsWith("/")?r:r+"/")}));var r},ql=Wn({dropDownSelector:{width:"276px"},entityTypeAvatar:{width:"20px",height:"20px",marginRight:"8px"},entityTypeLabel:{fontSize:"13px",overflow:"hidden",textOverflow:"ellipsis"},text:{overflow:"hidden"},container:{width:"100%"},valueContainer:{paddingLeft:"0","&:hover":{backgroundColor:"transparent"}}}),$l=({selectOption:e,data:n,type:r,isFocused:i,innerRef:o})=>{const a=ql(),s=(0,E.getLabel)(n.label),l="option"===r,c=l?()=>e(n):w.identity;return t().createElement(Ls(),{ref:o,selected:i,className:Qn()(a.container,{[a.valueContainer]:!l}),onClick:c,disableRipple:!l},t().createElement(Wl,{className:a.entityTypeAvatar,entityType:n}),t().createElement("div",{className:a.text},t().createElement(Vs,{value:s},t().createElement(A(),{className:a.entityTypeLabel},s))))},Zl=({value:e,options:n,onChange:r})=>{const i=ql(),o=n.length?"":L().text("There are no available entity types");return t().createElement(Tl,{height:40,className:i.dropDownSelector,value:e,filterOption:Dl.BY_LABEL,options:n,onChange:r,components:{Option:$l,SingleValue:$l},label:o})},Yl=Wn({header:{backgroundColor:"rgba(255, 255, 255, 1)",borderBottom:"1px solid rgba(0, 0, 0, 0.12)"},headerTitle:{fontSize:"18px"},divider:{marginLeft:"24px",marginRight:"16px",height:"42px",borderColor:"rgba(0, 0, 0, 0.12)"}}),Xl=({selectedEntityType:e,entityTypes:n,showEntityTypeSelector:r,onChangeEntityType:i})=>{const o=Yl();return t().createElement(Zn,{className:o.header},t().createElement(A(),{className:o.headerTitle},L().text("Data Model")),r&&t().createElement(t().Fragment,null,t().createElement(Xn(),{orientation:"vertical",className:o.divider}),t().createElement(Zl,{value:e,options:n,onChange:i})))},Kl=Wn({tableContainer:{boxSizing:"border-box",padding:"0 16px 0 16px",marginTop:"16px",overflow:"hidden",position:"absolute",top:0,bottom:0,left:0,right:0}});let Ql=function(e){return e.AttributeLabel="attributeLabel",e.Name="name",e.Type="type",e.Description="description",e.Sources="sources",e}({});const Jl=(0,e.createContext)({loadedAttributesSourcesRef:{current:{}},entityTypeUri:null}),ec=({children:n,entityTypeUri:r})=>{const i=(0,e.useRef)({}),o=(0,e.useMemo)((()=>({loadedAttributesSourcesRef:i,entityTypeUri:r})),[r]);return t().createElement(Jl.Provider,{value:o},n)};var tc=ae(3643),nc=ae.n(tc);const rc=Wn({attributesListHeader:{backgroundColor:"white",minHeight:"48px",borderBottom:"1px solid rgba(0, 0, 0, 0.05)",alignItems:"center",fontWeight:"500",lineHeight:"16px",paddingRight:"6px"},columnWithPadding:{paddingLeft:"16px"},rightSidePaneStyles:{fontSize:"12px"}}),ic=({columnsData:e,isRightSidePanel:n})=>{const r=rc();return t().createElement(nc(),{container:!0,className:r.attributesListHeader},e.map((({id:e,size:i,isWithPadding:o})=>t().createElement(nc(),{key:e,item:!0,xs:i,className:Qn()({[r.columnWithPadding]:o,[r.rightSidePaneStyles]:n})},(e=>{switch(e){case Ql.AttributeLabel:return L().text("Attribute label");case Ql.Name:return L().text("Name");case Ql.Type:return L().text("Type");case Ql.Description:return L().text("Description");case Ql.Sources:return L().text("Contributing sources");default:return""}})(e)))))};var oc=ae(4539),ac=ae.n(oc);function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sc.apply(null,arguments)}const lc=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",sc({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("mask",{id:"svg2452379238a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},t().createElement("path",{d:"M5.345 12l-.418-1.947H2.782L2.353 12h-.979l1.86-7.7h1.264L6.324 12h-.979zM3.85 5.026l-.89 4.202H4.75L3.85 5.026zM10.494 10.262c0 .63-.146 1.078-.44 1.342-.286.264-.763.396-1.43.396h-2.09V4.3h1.958c.653 0 1.13.132 1.43.396.308.264.462.704.462 1.32v.627c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.99zM9.427 5.917c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187H7.491v2.431h1.133a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.836zm.11 3.256c0-.242-.073-.433-.22-.572-.147-.147-.34-.22-.583-.22H7.491v2.794h1.232c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.173zM13.119 12c-.638 0-1.13-.154-1.474-.462-.337-.315-.506-.785-.506-1.408V6.17c0-.623.169-1.089.506-1.397.345-.315.836-.473 1.474-.473h1.342v.836h-1.452c-.271 0-.491.08-.66.242a.778.778 0 00-.253.583v4.378c0 .227.084.422.253.583.169.161.389.242.66.242h1.452V12h-1.342z",fill:"#000"})),t().createElement("g",{mask:"url(#svg2452379238a)"},t().createElement("path",{fill:"#000",fillOpacity:".54",d:"M0 0h16v16H0z"})))};function cc(){return cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cc.apply(null,arguments)}const uc=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",cc({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("mask",{id:"svg4130327632a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},t().createElement("path",{d:"M5.95 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2zM7.948 12v-1.1h1.1V12h-1.1zM13.651 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2z",fill:"#000"})),t().createElement("g",{mask:"url(#svg4130327632a)"},t().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function dc(){return dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dc.apply(null,arguments)}const fc=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",dc({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{d:"M2.11 12v-.825h1.331V5.169L2 5.741V4.85l1.331-.55h1.045v6.875h1.089V12H2.11zM5.968 11.032l1.65-2.508c.242-.367.403-.62.484-.759.08-.147.136-.29.165-.429.03-.14.044-.341.044-.605v-.77a.778.778 0 00-.253-.583c-.169-.161-.389-.242-.66-.242h-1.21V4.3h1.1c.638 0 1.126.158 1.463.473.345.308.517.774.517 1.397v.462c0 .367-.018.645-.055.836-.037.19-.103.37-.198.539-.088.169-.264.455-.528.858l-1.518 2.299h2.519V12h-3.52v-.968zM13.544 10.262c0 .609-.147 1.052-.44 1.331-.293.271-.77.407-1.43.407h-1.298v-.825h1.397c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.239c0-.242-.073-.433-.22-.572-.147-.147-.341-.22-.583-.22h-1.067v-.825h.957a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.902c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187h-1.298V4.3h1.166c.623 0 1.093.14 1.408.418.323.271.484.704.484 1.298v.693c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.924z",fill:"#000",fillOpacity:".541"}))};function pc(){return pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pc.apply(null,arguments)}const hc=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",pc({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{d:"M11.667 4H5C2.793 4 1 5.793 1 8s1.793 4 4 4h6.667c2.206 0 4-1.793 4-4s-1.794-4-4-4zm0 6.667H5a2.666 2.666 0 110-5.334h6.667a2.666 2.666 0 110 5.334zm0-4.667c-1.107 0-2 .893-2 2s.893 2 2 2c1.106 0 2-.893 2-2s-.894-2-2-2z",fill:"#000",fillOpacity:".541"}))};function mc(){return mc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mc.apply(null,arguments)}const gc=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",mc({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.667 12h2v-.667c0-.368.298-.666.666-.666H12c.368 0 .667.298.667.666V14a.667.667 0 01-.667.667H9.333A.667.667 0 018.667 14v-.667H5.333v-8H4a.667.667 0 01-.667-.666V2c0-.368.299-.667.667-.667h4c.368 0 .667.299.667.667v2.667A.667.667 0 018 5.333H6.667v2h2v-.666c0-.369.298-.667.666-.667H12c.368 0 .667.298.667.667v2.666A.667.667 0 0112 10H9.333a.667.667 0 01-.666-.667v-.666h-2V12z",fill:"#000",fillOpacity:".54"}))};function vc(){return vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vc.apply(null,arguments)}const yc=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",vc({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{d:"M7.992 1.333A6.663 6.663 0 001.332 8c0 3.68 2.98 6.667 6.66 6.667A6.67 6.67 0 0014.665 8a6.67 6.67 0 00-6.673-6.667zm.007 12A5.332 5.332 0 012.665 8 5.332 5.332 0 018 2.667 5.332 5.332 0 0113.332 8a5.332 5.332 0 01-5.333 5.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z",fill:"#000",fillOpacity:".54"}))};function bc(){return bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bc.apply(null,arguments)}const xc=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",bc({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("mask",{id:"svg1811967645a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},t().createElement("path",{d:"M5.463 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H2.03v-.836h1.562c.271 0 .491-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.059-.396-.176-.528-.11-.14-.279-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473h1.463v.836H3.714c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM9.136 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H5.704v-.836h1.562c.27 0 .49-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.06-.396-.176-.528-.11-.14-.28-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473H8.96v.836H7.387c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM12.255 12l-1.683-6.886V12H9.68V4.3h1.562l1.694 6.886V4.3h.89V12h-1.572z",fill:"#000"})),t().createElement("g",{mask:"url(#svg1811967645a)"},t().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function wc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ec=e=>{switch(e){case E.DataTypes.TYPE_NUMBER:case E.DataTypes.TYPE_LONG:return uc;case E.DataTypes.TYPE_INT:return fc;case E.DataTypes.TYPE_BOOLEAN:case E.DataTypes.TYPE_BOOLEAN_RADIO:return hc;case E.DataTypes.TYPE_NESTED:case E.DataTypes.TYPE_REFERENCE:return gc;case E.DataTypes.TYPE_DATE:case E.DataTypes.TYPE_TIMESTAMP:return yc;case E.DataTypes.TYPE_SSN:return xc;default:return lc}},_c=(0,w.pipe)((0,w.defaultTo)([]),(0,w.count)((0,w.complement)(E.isHiddenAttribute))),Sc=Wn({label:{margin:0,padding:0,overflow:"hidden",textOverflow:"ellipsis"},labelContainer:{position:"relative",padding:"9px 16px 9px 20px",boxSizing:"border-box",height:"100%",overflow:"hidden"},labelTittle:{margin:"0 0 4px 0",padding:0,display:"flex",alignItems:"center",fontSize:"13px"},icon:{marginRight:"8px"},description:{margin:0,padding:"0 0 0 24px",fontSize:"12px",lineHeight:"16px",color:"rgba(0, 0, 0, 0.54)",display:"-webkit-box",maxWidth:"100%",lineClamp:3,boxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},complex:{cursor:"pointer"}}),Cc=(0,e.memo)((({label:e,type:n,description:r,isComplex:i})=>{const o=Sc(),a=Ec(n);return t().createElement("div",{className:Qn()(o.labelContainer,{[o.complex]:i})},t().createElement("div",{className:o.labelTittle},t().createElement(a,{className:o.icon}),t().createElement(Vs,{value:e},t().createElement("p",{className:o.label},e))),t().createElement(Vs,{showOnExceededHeight:!0,value:r},t().createElement("p",{className:o.description},r)))}));Cc.displayName="LabelComponentWithDescription";const Oc=Wn({container:{display:"flex",height:"100%",position:"relative",marginLeft:"10px"},treeLine:{height:"100%",width:"12px"},treeLineBorder:{borderRight:"1px solid rgba(0, 114, 206, 0.3)"},treeLineLastElement:{width:"12px",height:"50%",borderRight:"1px solid rgba(0, 114, 206, 0.3)"},marker:{top:"50%",right:"-3px",position:"absolute",width:"4px",height:"1px",backgroundColor:"rgba(0, 114, 206, 0.3)"},rightSidePanelMarker:{top:"16px"},rightPanelTreeLineLastElement:{height:"16px"}}),kc=({level:e,isLastAttributeInGroup:n,parentLevelsWithoutElementsBelow:r,isRightSidePanel:i})=>{const o=Oc();return t().createElement("div",{className:o.container},Array(e).fill(null).map(((a,s)=>{const l=n&&s+1===e;return t().createElement("div",{"data-reltio-id":"tree-list-item",className:Qn()(o.treeLine,{[o.treeLineBorder]:!r.includes(s+1),[o.treeLineLastElement]:l,[o.rightPanelTreeLineLastElement]:i&&l}),key:s},t().createElement("div",{"data-reltio-id":"tree-list-item-marker",className:Qn()({[o.marker]:s+1===e,[o.rightSidePanelMarker]:i})}))})))};var Lc=ae(5743),Rc=ae.n(Lc);let Pc=function(e){return e[e.ICON_MODE=0]="ICON_MODE",e[e.TEXT_MODE=1]="TEXT_MODE",e[e.ERROR_MODE=2]="ERROR_MODE",e}({});function Mc(){return Mc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mc.apply(null,arguments)}const Ac=n=>{let{className:r,icon:i,avatarText:o,rootClasses:a}=n,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["className","icon","avatarText","rootClasses"]);const[l,c]=(0,e.useState)(null);(0,e.useEffect)((()=>{c(i?Pc.ICON_MODE:Pc.TEXT_MODE)}),[i,o]);const u=()=>{c(Pc.ERROR_MODE)};switch(l){case Pc.ICON_MODE:return t().createElement(Rc(),Mc({className:Qn()(r,null==a?void 0:a.iconRoot),src:i,onError:u},s));case Pc.TEXT_MODE:case Pc.ERROR_MODE:return t().createElement(Rc(),Mc({className:Qn()(r,null==a?void 0:a.textRoot)},s),o);default:return null}},Tc=({sourceType:e,className:n,classes:r})=>{const i=Hl((e=>e.metadata)),{uri:o,icon:a}=(0,E.findSourceSystemByUri)(i,e)||{},s=o?(0,E.getSourceSystemLabel)(i,o)[0]:"",l=a?(0,E.getAbsoluteImageUrl)("https://s3.amazonaws.com/reltio.images/api",a):null;return t().createElement(Ac,{className:n,avatarText:s,icon:l,variant:"square",rootClasses:r})},Dc=Wn((e=>({tooltip:e.tooltip,wrapper:{lineHeight:0}})));function zc(){return zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zc.apply(null,arguments)}const Fc=n=>{const r=(0,e.forwardRef)(((e,r)=>{let{tooltipTitle:i,tooltipPlacement:o,showForDisabled:a=!1}=e,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["tooltipTitle","tooltipPlacement","showForDisabled"]);const l=Dc();return i?t().createElement(js(),{ref:r,title:i,placement:o||"bottom",disableFocusListener:!0,disableTouchListener:!0,classes:{tooltip:l.tooltip},PopperProps:{modifiers:[{name:"preventOverflow",options:{altAxis:!0}}]}},(e=>e?t().createElement("span",{ref:r,className:l.wrapper},t().createElement(n,s)):t().createElement(n,zc({ref:r},s)))(a)):t().createElement(n,zc({ref:r},s))}));return r.displayName="WithTooltip",r};var Nc=ae(2600),Ic=ae.n(Nc);const jc=Wn((e=>({sourcesContainer:{padding:"10px 10px 0 16px",color:"rgba(0, 0, 0, 0.87)"},source:{padding:"0 0 10px 0",margin:0},chipContainer:{position:"relative",top:"-2px",height:"19px",marginLeft:"6px",backgroundColor:"white",borderColor:e.palette.primary.main},chipLabel:{paddingLeft:"6px",paddingRight:"6px",fontSize:"13px",color:e.palette.primary.main},sourceContainer:{display:"flex"},sourceIcon:{height:"16px",width:"16px",marginRight:"4px"},sourceSystemRowSkeleton:{width:"55px",height:"20px","&:last-child":{marginBottom:"10px"}}}))),Bc=Fc(Es()),Gc=(0,e.memo)((({attributeUri:e,sourcesData:n,parents:r})=>{const i=jc(),{sourcesByAttributeName:o}=n,a=(0,E.attributeUriToSearchUri)(e,r),{sources:s=[],isLoading:l}=o[a]||{},[c,u]=(0,w.splitAt)(2,s),d=u.map(((e,n)=>t().createElement("div",{key:n},e)));return l?t().createElement("div",{className:i.sourcesContainer},t().createElement(Ic(),{"data-reltio-id":"source-systems-row-skeleton",className:i.sourceSystemRowSkeleton}),t().createElement(Ic(),{"data-reltio-id":"source-systems-row-skeleton",className:i.sourceSystemRowSkeleton})):t().createElement("div",{className:i.sourcesContainer},c.map(((e,n)=>{const r=`configuration/sources/${e}`;return t().createElement("div",{className:i.sourceContainer,key:n},t().createElement(Tc,{className:i.sourceIcon,sourceType:r}),t().createElement("p",{className:i.source},e),!!u.length&&n===c.length-1&&t().createElement(Bc,{"data-reltio-id":"sources-chip",tooltipTitle:d,label:`+ ${u.length}`,variant:"outlined",classes:{root:i.chipContainer,label:i.chipLabel}}))})))}));Gc.displayName="AttributeSources";const Uc=Wn({attributeTypeContainer:{display:"flex",alignItems:"center",paddingRight:"16px"},text:{marginLeft:"16px",overflow:"hidden",textOverflow:"ellipsis"},icon:{flexShrink:0}}),Hc=(0,e.memo)((({type:e})=>{const n=Uc(),r=Ec(e);return t().createElement("div",{className:n.attributeTypeContainer},t().createElement(r,{className:n.icon}),t().createElement(Vs,{value:e},t().createElement("p",{className:n.text},e)))}));Hc.displayName="AttributeTypeComponent";const Vc=Wn({basicCellStyles:{paddingRight:"16px",overflow:"hidden",textOverflow:"ellipsis"}}),Wc=(0,e.memo)((({value:e,className:n})=>{const r=Vc();return t().createElement(Vs,{value:e},t().createElement("p",{className:Qn()(r.basicCellStyles,n)},e))}));Wc.displayName="TableBasicCell";const qc="rgba(0, 0, 0, 0.05)",$c=`1px solid ${qc}`,Zc=Wn({container:{width:"100%"},expandIcon:{position:"absolute",opacity:"0.54",cursor:"pointer",top:"calc(50% - 12px)"},expandIconNormal:{transform:"rotate(-90deg)"},expandIconRotated:{transform:"rotate(0)"},attributeRow:{position:"relative",minHeight:"48px",width:"100%",display:"flex",alignItems:"center",fontSize:"13px",lineHeight:"15px",backgroundColor:"white"},divider:{width:"100%",borderColor:qc},label:{position:"relative",paddingLeft:"36px",paddingRight:"16px",overflow:"hidden",textOverflow:"ellipsis"},labelContainer:{display:"flex",alignItems:"center",minHeight:"48px",alignSelf:"stretch",position:"relative"},sourcesContainer:{alignSelf:"stretch",alignContent:"start",minHeight:"36px",borderLeft:$c},rightSidePanelMinHeight:{minHeight:"36px"},isComplex:{cursor:"pointer"},rightSidePanelExpandIconPosition:{top:"6px"},attributeRowBorder:{borderLeft:$c,borderRight:$c}}),Yc=({attributeNode:n,level:r,attributesGroupLength:i,index:o,isParentLastInGroup:a,parentLevelsWithoutElementsBelow:s,columnsData:l,isRightSidePanel:c,sourcesData:u,parents:d,shouldCollapse:f})=>{const{label:p,description:h,name:m,children:g,analyticsAttributes:v,shouldExpand:y}=n,[b,x]=(0,e.useState)(!0),[S,O]=(0,e.useState)(!1),k=(0,E.isComplexAttribute)(n),L=Zc();(0,e.useEffect)((()=>{x(f||!y)}),[f,y]);const R=(0,_.useSelector)(C().selectors.getMetadata),P=((e,t)=>{if(null!=e&&e.includes("/attributeTypes/")){const n=t.attributeTypes.find((0,w.propEq)("uri",e));return(null==n?void 0:n.valueType)||""}return e})(n.type,R),M=o+1===i;a&&s.push(r-1);const A=[...g||[],...c?[]:(null==v?void 0:v.filter(E.isReadableAttribute))||[]],T=d.concat({name:m,label:p}),D=(0,e.useCallback)((e=>{switch(e){case Ql.Name:return t().createElement(Wc,{value:m});case Ql.Type:return t().createElement(Hc,{type:P});case Ql.Description:return t().createElement(Wc,{value:h});case Ql.Sources:return t().createElement(Gc,{attributeUri:n.uri,sourcesData:u,parents:d});default:return null}}),[n.uri,P,h,m,d,u]),z=(0,w.find)((0,w.propEq)("id",Ql.AttributeLabel),l),F=(0,e.useMemo)((()=>(0,w.pipe)((0,w.reject)((({id:e})=>e===Ql.AttributeLabel)),(0,w.map)((({id:e,size:n})=>t().createElement(nc(),{key:e,item:!0,xs:n,className:Qn()({[L.sourcesContainer]:e===Ql.Sources})},D(e)))))(l)),[l,D,L.sourcesContainer]);return t().createElement(nc(),{container:!0,className:Qn()(L.attributeRow,{[L.rightSidePanelMinHeight]:c,[L.attributeRowBorder]:0===r&&!c}),"data-reltio-id":`level-${r}-row-${o}`},!!z&&t().createElement(nc(),{item:!0,xs:z.size,className:Qn()(L.labelContainer,{[L.rightSidePanelMinHeight]:c}),onClick:()=>{y&&O(!0),x((e=>!e))}},k&&t().createElement(er(),{"data-reltio-id":"expand-icon",className:Qn()(L.expandIcon,{[L.rightSidePanelExpandIconPosition]:c,[L.expandIconNormal]:b,[L.expandIconRotated]:!b}),style:{left:12*(r+1)+"px"}}),t().createElement(kc,{isRightSidePanel:c,level:r,isLastAttributeInGroup:M,parentLevelsWithoutElementsBelow:s}),c?t().createElement(Cc,{label:p,type:P,description:h,isComplex:k}):t().createElement(Wc,{value:p,className:Qn()(L.label,{[L.isComplex]:k})})),F,t().createElement(Xn(),{className:L.divider}),k&&t().createElement(ac(),{in:!b,className:L.container,mountOnEnter:!0,unmountOnExit:!0},t().createElement(au,{isRightSidePanel:c,columnsData:l,key:r+1,attributeNodes:A,level:r+1,isParentLastInGroup:M,parentLevelsWithoutElementsBelow:[...s],parents:T,shouldCollapse:S})))},Xc=new Promise((()=>{})),Kc=({cancelPrevious:t=!0,cancelOnUnmount:n=!0}={})=>{const r=(0,e.useRef)(w.identity),i=()=>r.current();return(0,e.useEffect)((()=>()=>{n&&i()}),[]),(0,e.useCallback)((e=>(t&&i(),new Promise(((t,n)=>{r.current=()=>n("canceled"),e.then(t,n)})).catch((function(e){if("canceled"===e)return Xc;throw e})))),[])};var Qc=ae(4176);const Jc=Wn((()=>({errorBlock:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",minHeight:"58px",left:0,right:0,width:"calc(100% - 64px)",maxWidth:"1280px",margin:"0 auto",zIndex:1e4}})));function eu(){return eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eu.apply(null,arguments)}const tu=Qc.ZP.addError,nu=n=>{let{showErrorFromStore:r}=n,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["showErrorFromStore"]);const o=Jc(),a=(c="errorSet",Nl(Gl,(e=>e[c]))),s=Hl((e=>e.autoCloseInterval)),l=Hl((e=>e.uiError));var c;return(0,e.useEffect)((()=>{l&&r&&(nu.addError({title:L().text("Error"),message:l}),a(null))}),[a,l,r]),t().createElement(cl(),{container:document.body},t().createElement(Qc.ZP,eu({classes:{errorBlock:Qn()(o.errorBlock,(0,w.path)(["classes","errorBlock"],i))},autoCloseInterval:s},i)))};nu.addError=tu;const ru=(e,t)=>{const{title:n=L().text("Error"),message:r,defaultMessage:i}=t||{};console.warn(e),nu.addError({title:n,message:r||(0,E.getRequestErrorMessage)(e,i)})};function iu(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){ou(e,t,n[t])}))}return e}function ou(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const au=({attributeNodes:n,level:r,isParentLastInGroup:i,parentLevelsWithoutElementsBelow:o=[],columnsData:a,isRightSidePanel:s,parents:l=[],shouldCollapse:c})=>{const u=((t,n)=>{const{loadedAttributesSourcesRef:r,entityTypeUri:i}=(()=>{const t=(0,e.useContext)(Jl);if(void 0===t)throw new Error("AttributesTableSources must be used within a AttributesTableSourcesProvider");return t})(),o=Kc(),[a,s]=(0,e.useState)({}),l=(0,e.useRef)(null);(0,e.useEffect)((()=>(l.current=new AbortController,()=>{l.current.abort()})),[]);const c=(0,e.useCallback)((async(e,t)=>{const n=(0,w.reduce)(((e,t)=>iu({},e,{[t]:{isLoading:!0}})),{},e);s((e=>iu({},e,n)));try{const n=await o((0,E.getDQChartsData)({entityTypeUri:i,attributes:e,dataLevel:E.DQDataLevel.ATTRIBUTE_TYPE,metrics:[E.DQMetric.CROSSWALK_ANALYSIS]},l.current.signal));if("statistic"in n){const e=(0,w.map)((e=>({sources:Object.keys(e.crosswalkAnalysis.data),isLoading:!1})),n.statistic);s((t=>iu({},t,e))),Object.assign(t,e)}}catch(e){const t=(0,w.map)((0,w.assoc)("isLoading",!1),n);s(t),ru(e,{defaultMessage:L().text("Something went wrong while loading the contributing sources")})}}),[]);return(0,e.useEffect)((()=>{if(!i||!t.length)return;const e=t.map((({uri:e})=>(0,E.attributeUriToSearchUri)(e,n))),o=r.current,[a,l]=(0,w.partition)((0,w.includes)(w.__,(0,w.keys)(o)),e);if(l.length||(0,E.isEmptyValue)(o)){if(a.length){const e=(0,w.pick)(a,o);s(e)}l.length&&c(l,o)}else s(o)}),[]),{sourcesByAttributeName:a}})(n,l);return t().createElement(t().Fragment,null,n.map(((e,d)=>t().createElement(Yc,{sourcesData:u,isRightSidePanel:s,columnsData:a,key:e.uri,attributeNode:e,level:r,index:d,attributesGroupLength:n.length,isParentLastInGroup:i,parentLevelsWithoutElementsBelow:o,parents:l,shouldCollapse:c}))))},su=Wn({attributesListContainer:{height:"100%",overflow:"auto"}}),lu=({columnsData:e,attributeNodesList:n,isRightSidePanel:r,metadataTypeUri:i})=>{const o=su(),a=(0,E.isEntityTypeUri)(i)?i:null;return t().createElement(ec,{entityTypeUri:a},t().createElement(ic,{columnsData:e,isRightSidePanel:r}),t().createElement("div",{className:o.attributesListContainer},t().createElement(au,{attributeNodes:n,level:0,columnsData:e,isRightSidePanel:r})))},cu=[{id:Ql.AttributeLabel,size:3,isWithPadding:!0},{id:Ql.Name,size:2},{id:Ql.Type,size:2},{id:Ql.Description,size:5}],uu=({entityType:e})=>{const n=Kl(),r=(0,_.useSelector)(C().selectors.getMetadata),i=e?(0,E.getAllAttributeTypesTree)(r,e):[];return t().createElement("div",{key:null==e?void 0:e.uri,className:n.tableContainer},t().createElement(lu,{columnsData:cu,attributeNodesList:i}))},{createElement:du,createContext:fu,createRef:pu,forwardRef:hu,useCallback:mu,useContext:gu,useEffect:vu,useImperativeHandle:yu,useLayoutEffect:bu,useMemo:xu,useRef:wu,useState:Eu}=e,_u=e["useId".toString()],Su=bu,Cu=fu(null);Cu.displayName="PanelGroupContext";const Ou=Su,ku="function"==typeof _u?_u:()=>null;let Lu=0;function Ru(e=null){const t=ku(),n=wu(e||t||null);return null===n.current&&(n.current=""+Lu++),null!=e?e:n.current}function Pu({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:a,maxSize:s,minSize:l,onCollapse:c,onExpand:u,onResize:d,order:f,style:p,tagName:h="div",...m}){const g=gu(Cu);if(null===g)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:v,expandPanel:y,getPanelSize:b,getPanelStyle:x,groupId:w,isPanelCollapsed:E,reevaluatePanelConstraints:_,registerPanel:S,resizePanel:C,unregisterPanel:O}=g,k=Ru(a),L=wu({callbacks:{onCollapse:c,onExpand:u,onResize:d},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:s,minSize:l},id:k,idIsFromProps:void 0!==a,order:f});wu({didLogMissingDefaultSizeWarning:!1}),Ou((()=>{const{callbacks:e,constraints:t}=L.current,o={...t};L.current.id=k,L.current.idIsFromProps=void 0!==a,L.current.order=f,e.onCollapse=c,e.onExpand=u,e.onResize=d,t.collapsedSize=n,t.collapsible=r,t.defaultSize=i,t.maxSize=s,t.minSize=l,o.collapsedSize===t.collapsedSize&&o.collapsible===t.collapsible&&o.maxSize===t.maxSize&&o.minSize===t.minSize||_(L.current,o)})),Ou((()=>{const e=L.current;return S(e),()=>{O(e)}}),[f,k,S,O]),yu(o,(()=>({collapse:()=>{v(L.current)},expand:e=>{y(L.current,e)},getId:()=>k,getSize:()=>b(L.current),isCollapsed:()=>E(L.current),isExpanded:()=>!E(L.current),resize:e=>{C(L.current,e)}})),[v,y,b,E,k,C]);const R=x(L.current,i);return du(h,{...m,children:e,className:t,id:a,style:{...R,...p},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":w,"data-panel-id":k,"data-panel-size":parseFloat(""+R.flexGrow).toFixed(1)})}const Mu=hu(((e,t)=>du(Pu,{...e,forwardedRef:t})));Pu.displayName="Panel",Mu.displayName="forwardRef(Panel)";let Au=null,Tu=null;function Du(e,t){const n=function(e,t){if(t){const e=!!(t&$u),n=!!(t&Zu);if(t&Wu)return e?"se-resize":n?"ne-resize":"e-resize";if(t&qu)return e?"sw-resize":n?"nw-resize":"w-resize";if(e)return"s-resize";if(n)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,t);Au!==n&&(Au=n,null===Tu&&(Tu=document.createElement("style"),document.head.appendChild(Tu)),Tu.innerHTML=`*{cursor: ${n}!important;}`)}function zu(e){return"keydown"===e.type}function Fu(e){return e.type.startsWith("pointer")}function Nu(e){return e.type.startsWith("mouse")}function Iu(e){if(Fu(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(Nu(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}const ju=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Bu(e){const t=getComputedStyle(e);return"fixed"===t.position||!("auto"===t.zIndex||"static"===t.position&&!function(e){var t;const n=getComputedStyle(null!==(t=Vu(e))&&void 0!==t?t:e).display;return"flex"===n||"inline-flex"===n}(e))||+t.opacity<1||"transform"in t&&"none"!==t.transform||"webkitTransform"in t&&"none"!==t.webkitTransform||"mixBlendMode"in t&&"normal"!==t.mixBlendMode||"filter"in t&&"none"!==t.filter||"webkitFilter"in t&&"none"!==t.webkitFilter||"isolation"in t&&"isolate"===t.isolation||!!ju.test(t.willChange)||"touch"===t.webkitOverflowScrolling}function Gu(e){let t=e.length;for(;t--;){const n=e[t];if(ld(n,"Missing node"),Bu(n))return n}return null}function Uu(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Hu(e){const t=[];for(;e;)t.push(e),e=Vu(e);return t}function Vu(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const Wu=1,qu=2,$u=4,Zu=8,Yu="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}();let Xu=[],Ku=!1,Qu=new Map,Ju=new Map;const ed=new Set;function td(e){const{target:t}=e,{x:n,y:r}=Iu(e);Ku=!0,id({target:t,x:n,y:r}),ad(),Xu.length>0&&(sd("down",e),e.preventDefault(),e.stopPropagation())}function nd(e){const{x:t,y:n}=Iu(e);if(!Ku){const{target:r}=e;id({target:r,x:t,y:n})}sd("move",e),od(),Xu.length>0&&e.preventDefault()}function rd(e){const{target:t}=e,{x:n,y:r}=Iu(e);Ju.clear(),Ku=!1,Xu.length>0&&e.preventDefault(),sd("up",e),id({target:t,x:n,y:r}),od(),ad()}function id({target:e,x:t,y:n}){Xu.splice(0);let r=null;e instanceof HTMLElement&&(r=e),ed.forEach((e=>{const{element:i,hitAreaMargins:o}=e,a=i.getBoundingClientRect(),{bottom:s,left:l,right:c,top:u}=a,d=Yu?o.coarse:o.fine;if(t>=l-d&&t<=c+d&&n>=u-d&&n<=s+d){if(null!==r&&i!==r&&!i.contains(r)&&!r.contains(i)&&function(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Hu(e),b:Hu(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;ld(r,"Stacking order can only be calculated for elements with a common ancestor");const i=Uu(Gu(n.a)),o=Uu(Gu(n.b));if(i===o){const e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)};let i=e.length;for(;i--;){const n=e[i];if(n===t.a)return 1;if(n===t.b)return-1}}return Math.sign(i-o)}(r,i)>0){let e=r,t=!1;for(;e&&!e.contains(i);){if(f=e.getBoundingClientRect(),p=a,!0?f.x<p.x+p.width&&f.x+f.width>p.x&&f.y<p.y+p.height&&f.y+f.height>p.y:f.x<=p.x+p.width&&f.x+f.width>=p.x&&f.y<=p.y+p.height&&f.y+f.height>=p.y){t=!0;break}e=e.parentElement}if(t)return}Xu.push(e)}var f,p}))}function od(){let e=!1,t=!1;Xu.forEach((n=>{const{direction:r}=n;"horizontal"===r?e=!0:t=!0}));let n=0;Ju.forEach((e=>{n|=e})),e&&t?Du("intersection",n):e?Du("horizontal",n):t?Du("vertical",n):null!==Tu&&(document.head.removeChild(Tu),Au=null,Tu=null)}function ad(){Qu.forEach(((e,t)=>{const{body:n}=t;n.removeEventListener("contextmenu",rd),n.removeEventListener("pointerdown",td),n.removeEventListener("pointerleave",nd),n.removeEventListener("pointermove",nd)})),window.removeEventListener("pointerup",rd),window.removeEventListener("pointercancel",rd),ed.size>0&&(Ku?(Xu.length>0&&Qu.forEach(((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("contextmenu",rd),n.addEventListener("pointerleave",nd),n.addEventListener("pointermove",nd))})),window.addEventListener("pointerup",rd),window.addEventListener("pointercancel",rd)):Qu.forEach(((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("pointerdown",td,{capture:!0}),n.addEventListener("pointermove",nd))})))}function sd(e,t){ed.forEach((n=>{const{setResizeHandlerState:r}=n,i=Xu.includes(n);r(e,i,t)}))}function ld(e,t){if(!e)throw console.error(t),Error(t)}const cd=10;function ud(e,t,n=cd){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function dd(e,t,n=cd){return 0===ud(e,t,n)}function fd(e,t,n){return 0===ud(e,t,n)}function pd({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];ld(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:o,maxSize:a=100,minSize:s=0}=r;return ud(n,s)<0&&(n=o&&ud(n,(i+s)/2)<0?i:s),n=Math.min(a,n),parseFloat(n.toFixed(cd))}function hd({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(fd(e,0))return t;const a=[...t],[s,l]=r;ld(null!=s,"Invalid first pivot index"),ld(null!=l,"Invalid second pivot index");let c=0;if("keyboard"===o){{const r=e<0?l:s,i=n[r];ld(i,`Panel constraints not found for index ${r}`);const{collapsedSize:o=0,collapsible:a,minSize:c=0}=i;if(a){const n=t[r];if(ld(null!=n,`Previous layout not found for panel index ${r}`),fd(n,o)){const t=c-n;ud(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{const r=e<0?s:l,i=n[r];ld(i,`No panel constraints found for index ${r}`);const{collapsedSize:o=0,collapsible:a,minSize:c=0}=i;if(a){const n=t[r];if(ld(null!=n,`Previous layout not found for panel index ${r}`),fd(n,c)){const t=n-o;ud(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{const r=e<0?1:-1;let i=e<0?l:s,o=0;for(;;){const e=t[i];if(ld(null!=e,`Previous layout not found for panel index ${i}`),o+=pd({panelConstraints:n,panelIndex:i,size:100})-e,i+=r,i<0||i>=n.length)break}const a=Math.min(Math.abs(e),Math.abs(o));e=e<0?0-a:a}{let r=e<0?s:l;for(;r>=0&&r<n.length;){const i=Math.abs(e)-Math.abs(c),o=t[r];ld(null!=o,`Previous layout not found for panel index ${r}`);const s=pd({panelConstraints:n,panelIndex:r,size:o-i});if(!fd(o,s)&&(c+=o-s,a[r]=s,c.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?r--:r++}}if(function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!fd(e[n],t[n],undefined))return!1;return!0}(i,a))return i;{const r=e<0?l:s,i=t[r];ld(null!=i,`Previous layout not found for panel index ${r}`);const o=i+c,u=pd({panelConstraints:n,panelIndex:r,size:o});if(a[r]=u,!fd(u,o)){let t=o-u,r=e<0?l:s;for(;r>=0&&r<n.length;){const i=a[r];ld(null!=i,`Previous layout not found for panel index ${r}`);const o=pd({panelConstraints:n,panelIndex:r,size:i+t});if(fd(i,o)||(t-=o-i,a[r]=o),fd(t,0))break;e>0?r--:r++}}}return fd(a.reduce(((e,t)=>t+e),0),100)?a:i}function md({layout:e,panelsArray:t,pivotIndices:n}){let r=0,i=100,o=0,a=0;const s=n[0];return ld(null!=s,"No pivot index found"),t.forEach(((e,t)=>{const{constraints:n}=e,{maxSize:l=100,minSize:c=0}=n;t===s?(r=c,i=l):(o+=c,a+=l)})),{valueMax:Math.min(i,100-o),valueMin:Math.max(r,100-a),valueNow:e[s]}}function gd(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function vd(e,t,n=document){const r=gd(e,n).findIndex((e=>e.getAttribute("data-panel-resize-handle-id")===t));return null!=r?r:null}function yd(e,t,n){const r=vd(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function bd(e,t=document){var n;if(t instanceof HTMLElement&&(null==t||null===(n=t.dataset)||void 0===n?void 0:n.panelGroupId)==e)return t;return t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`)||null}function xd(e,t=document){return t.querySelector(`[data-panel-resize-handle-id="${e}"]`)||null}function wd(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Ed(e,t){const n="horizontal"===e,{x:r,y:i}=Iu(t);return n?r:i}function _d(e,t,n){t.forEach(((t,r)=>{const i=e[r];ld(i,`Panel data not found for index ${r}`);const{callbacks:o,constraints:a,id:s}=i,{collapsedSize:l=0,collapsible:c}=a,u=n[s];if(null==u||t!==u){n[s]=t;const{onCollapse:e,onExpand:r,onResize:i}=o;i&&i(t,u),c&&(e||r)&&(!r||null!=u&&!dd(u,l)||dd(t,l)||r(),!e||null!=u&&dd(u,l)||!dd(t,l)||e())}}))}function Sd(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function Cd(e){try{if("undefined"==typeof localStorage)throw new Error("localStorage not supported in this environment");e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)}}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function Od(e){return`react-resizable-panels:${e}`}function kd(e){return e.map((e=>{const{constraints:t,id:n,idIsFromProps:r,order:i}=e;return r?n:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)})).sort(((e,t)=>e.localeCompare(t))).join(",")}function Ld(e,t){try{const n=Od(e),r=t.getItem(n);if(r){const e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function Rd(e,t,n,r,i){var o;const a=Od(e),s=kd(t),l=null!==(o=Ld(e,i))&&void 0!==o?o:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(a,JSON.stringify(l))}catch(e){console.error(e)}}function Pd({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce(((e,t)=>e+t),0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map((e=>`${e}%`)).join(", ")}`);if(!fd(r,100))for(let e=0;e<t.length;e++){const t=n[e];ld(null!=t,`No layout data found for index ${e}`);const i=100/r*t;n[e]=i}let i=0;for(let e=0;e<t.length;e++){const r=n[e];ld(null!=r,`No layout data found for index ${e}`);const o=pd({panelConstraints:t,panelIndex:e,size:r});r!=o&&(i+=r-o,n[e]=o)}if(!fd(i,0))for(let e=0;e<t.length;e++){const r=n[e];ld(null!=r,`No layout data found for index ${e}`);const o=pd({panelConstraints:t,panelIndex:e,size:r+i});if(r!==o&&(i-=o-r,n[e]=o,fd(i,0)))break}return n}const Md={getItem:e=>(Cd(Md),Md.getItem(e)),setItem:(e,t)=>{Cd(Md),Md.setItem(e,t)}},Ad={};function Td({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:a=null,keyboardResizeBy:s=null,storage:l=Md,style:c,tagName:u="div",...d}){const f=Ru(o),p=wu(null),[h,m]=Eu(null),[g,v]=Eu([]),y=wu({}),b=wu(new Map),x=wu(0),w=wu({autoSaveId:e,direction:r,dragState:h,id:f,keyboardResizeBy:s,onLayout:a,storage:l}),E=wu({layout:g,panelDataArray:[],panelDataArrayChanged:!1});wu({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),yu(i,(()=>({getId:()=>w.current.id,getLayout:()=>{const{layout:e}=E.current;return e},setLayout:e=>{const{onLayout:t}=w.current,{layout:n,panelDataArray:r}=E.current,i=Pd({layout:e,panelConstraints:r.map((e=>e.constraints))});wd(n,i)||(v(i),E.current.layout=i,t&&t(i),_d(r,i,y.current))}})),[]),Ou((()=>{w.current.autoSaveId=e,w.current.direction=r,w.current.dragState=h,w.current.id=f,w.current.onLayout=a,w.current.storage=l})),function({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:a}){wu({didWarnAboutMissingResizeHandle:!1}),Ou((()=>{if(!o)return;const e=gd(n,o);for(let t=0;t<i.length-1;t++){const{valueMax:n,valueMin:o,valueNow:a}=md({layout:r,panelsArray:i,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{const e=i[t];ld(e,`No panel data found for index "${t}"`),s.setAttribute("aria-controls",e.id),s.setAttribute("aria-valuemax",""+Math.round(n)),s.setAttribute("aria-valuemin",""+Math.round(o)),s.setAttribute("aria-valuenow",null!=a?""+Math.round(a):"")}}return()=>{e.forEach(((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")}))}}),[n,r,i,o]),vu((()=>{if(!o)return;const e=t.current;ld(e,"Eager values not found");const{panelDataArray:i}=e;ld(null!=bd(n,o),`No group found for id "${n}"`);const s=gd(n,o);ld(s,`No resize handles found for group id "${n}"`);const l=s.map((e=>{const t=e.getAttribute("data-panel-resize-handle-id");ld(t,"Resize handle element has no handle id attribute");const[s,l]=function(e,t,n,r=document){var i,o,a,s;const l=xd(t,r),c=gd(e,r),u=l?c.indexOf(l):-1;return[null!==(i=null===(o=n[u])||void 0===o?void 0:o.id)&&void 0!==i?i:null,null!==(a=null===(s=n[u+1])||void 0===s?void 0:s.id)&&void 0!==a?a:null]}(n,t,i,o);if(null==s||null==l)return()=>{};const c=e=>{if(!e.defaultPrevented)switch(e.key){case"Enter":{e.preventDefault();const l=i.findIndex((e=>e.id===s));if(l>=0){const e=i[l];ld(e,`No panel data found for index ${l}`);const s=r[l],{collapsedSize:c=0,collapsible:u,minSize:d=0}=e.constraints;if(null!=s&&u){const e=hd({delta:fd(s,c)?d-c:c-s,initialLayout:r,panelConstraints:i.map((e=>e.constraints)),pivotIndices:yd(n,t,o),prevLayout:r,trigger:"keyboard"});r!==e&&a(e)}}break}}};return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}));return()=>{l.forEach((e=>e()))}}),[o,e,t,n,r,i,a])}({committedValuesRef:w,eagerValuesRef:E,groupId:f,layout:g,panelDataArray:E.current.panelDataArray,setLayout:v,panelGroupElement:p.current}),vu((()=>{const{panelDataArray:t}=E.current;if(e){if(0===g.length||g.length!==t.length)return;let n=Ad[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}}(Rd,100),Ad[e]=n);const r=[...t],i=new Map(b.current);n(e,r,i,g,l)}}),[e,g,l]),vu((()=>{}));const _=mu((e=>{const{onLayout:t}=w.current,{layout:n,panelDataArray:r}=E.current;if(e.constraints.collapsible){const i=r.map((e=>e.constraints)),{collapsedSize:o=0,panelSize:a,pivotIndices:s}=Fd(r,e,n);if(ld(null!=a,`Panel size not found for panel "${e.id}"`),!dd(a,o)){b.current.set(e.id,a);const l=hd({delta:zd(r,e)===r.length-1?a-o:o-a,initialLayout:n,panelConstraints:i,pivotIndices:s,prevLayout:n,trigger:"imperative-api"});Sd(n,l)||(v(l),E.current.layout=l,t&&t(l),_d(r,l,y.current))}}}),[]),S=mu(((e,t)=>{const{onLayout:n}=w.current,{layout:r,panelDataArray:i}=E.current;if(e.constraints.collapsible){const o=i.map((e=>e.constraints)),{collapsedSize:a=0,panelSize:s=0,minSize:l=0,pivotIndices:c}=Fd(i,e,r),u=null!=t?t:l;if(dd(s,a)){const t=b.current.get(e.id),a=null!=t&&t>=u?t:u,l=hd({delta:zd(i,e)===i.length-1?s-a:a-s,initialLayout:r,panelConstraints:o,pivotIndices:c,prevLayout:r,trigger:"imperative-api"});Sd(r,l)||(v(l),E.current.layout=l,n&&n(l),_d(i,l,y.current))}}}),[]),C=mu((e=>{const{layout:t,panelDataArray:n}=E.current,{panelSize:r}=Fd(n,e,t);return ld(null!=r,`Panel size not found for panel "${e.id}"`),r}),[]),O=mu(((e,t)=>{const{panelDataArray:n}=E.current,r=zd(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:i,precision:o=3}){const a=n[i];let s;return s=null==a?null!=e?e.toPrecision(o):"1":1===r.length?"1":a.toPrecision(o),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:h,layout:g,panelData:n,panelIndex:r})}),[h,g]),k=mu((e=>{const{layout:t,panelDataArray:n}=E.current,{collapsedSize:r=0,collapsible:i,panelSize:o}=Fd(n,e,t);return ld(null!=o,`Panel size not found for panel "${e.id}"`),!0===i&&dd(o,r)}),[]),L=mu((e=>{const{layout:t,panelDataArray:n}=E.current,{collapsedSize:r=0,collapsible:i,panelSize:o}=Fd(n,e,t);return ld(null!=o,`Panel size not found for panel "${e.id}"`),!i||ud(o,r)>0}),[]),R=mu((e=>{const{panelDataArray:t}=E.current;t.push(e),t.sort(((e,t)=>{const n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r})),E.current.panelDataArrayChanged=!0}),[]);Ou((()=>{if(E.current.panelDataArrayChanged){E.current.panelDataArrayChanged=!1;const{autoSaveId:e,onLayout:t,storage:n}=w.current,{layout:r,panelDataArray:i}=E.current;let o=null;if(e){const t=function(e,t,n){var r,i;return null!==(i=(null!==(r=Ld(e,n))&&void 0!==r?r:{})[kd(t)])&&void 0!==i?i:null}(e,i,n);t&&(b.current=new Map(Object.entries(t.expandToSizes)),o=t.layout)}null==o&&(o=function({panelDataArray:e}){const t=Array(e.length),n=e.map((e=>e.constraints));let r=0,i=100;for(let o=0;o<e.length;o++){const e=n[o];ld(e,`Panel constraints not found for index ${o}`);const{defaultSize:a}=e;null!=a&&(r++,t[o]=a,i-=a)}for(let o=0;o<e.length;o++){const a=n[o];ld(a,`Panel constraints not found for index ${o}`);const{defaultSize:s}=a;if(null!=s)continue;const l=i/(e.length-r);r++,t[o]=l,i-=l}return t}({panelDataArray:i}));const a=Pd({layout:o,panelConstraints:i.map((e=>e.constraints))});wd(r,a)||(v(a),E.current.layout=a,t&&t(a),_d(i,a,y.current))}})),Ou((()=>{const e=E.current;return()=>{e.layout=[]}}),[]);const P=mu((e=>function(t){t.preventDefault();const n=p.current;if(!n)return()=>null;const{direction:r,dragState:i,id:o,keyboardResizeBy:a,onLayout:s}=w.current,{layout:l,panelDataArray:c}=E.current,{initialLayout:u}=null!=i?i:{},d=yd(o,e,n);let f=function(e,t,n,r,i,o){if(zu(e)){const t="horizontal"===n;let r=0;r=e.shiftKey?100:null!=i?i:10;let o=0;switch(e.key){case"ArrowDown":o=t?0:r;break;case"ArrowLeft":o=t?-r:0;break;case"ArrowRight":o=t?r:0;break;case"ArrowUp":o=t?0:-r;break;case"End":o=100;break;case"Home":o=-100}return o}return null==r?0:function(e,t,n,r,i){const o="horizontal"===n,a=xd(t,i);ld(a,`No resize handle element found for id "${t}"`);const s=a.getAttribute("data-panel-group-id");ld(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const c=Ed(n,e),u=bd(s,i);ld(u,`No group element found for id "${s}"`);const d=u.getBoundingClientRect();return(c-l)/(o?d.width:d.height)*100}(e,t,n,r,o)}(t,e,r,i,a,n);if(0===f)return;const h="horizontal"===r;"rtl"===document.dir&&h&&(f=-f);const m=hd({delta:f,initialLayout:null!=u?u:l,panelConstraints:c.map((e=>e.constraints)),pivotIndices:d,prevLayout:l,trigger:zu(t)?"keyboard":"mouse-or-touch"}),g=!Sd(l,m);var b,_;(Fu(t)||Nu(t))&&x.current!=f&&(x.current=f,b=e,_=g?0:h?f<0?Wu:qu:f<0?$u:Zu,Ju.set(b,_)),g&&(v(m),E.current.layout=m,s&&s(m),_d(c,m,y.current))}),[]),M=mu(((e,t)=>{const{onLayout:n}=w.current,{layout:r,panelDataArray:i}=E.current,o=i.map((e=>e.constraints)),{panelSize:a,pivotIndices:s}=Fd(i,e,r);ld(null!=a,`Panel size not found for panel "${e.id}"`);const l=hd({delta:zd(i,e)===i.length-1?a-t:t-a,initialLayout:r,panelConstraints:o,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});Sd(r,l)||(v(l),E.current.layout=l,n&&n(l),_d(i,l,y.current))}),[]),A=mu(((e,t)=>{const{layout:n,panelDataArray:r}=E.current,{collapsedSize:i=0,collapsible:o}=t,{collapsedSize:a=0,collapsible:s,maxSize:l=100,minSize:c=0}=e.constraints,{panelSize:u}=Fd(r,e,n);null!=u&&(o&&s&&dd(u,i)?dd(i,a)||M(e,a):u<c?M(e,c):u>l&&M(e,l))}),[M]),T=mu(((e,t)=>{const{direction:n}=w.current,{layout:r}=E.current;if(!p.current)return;const i=xd(e,p.current);ld(i,`Drag handle element not found for id "${e}"`);const o=Ed(n,t);m({dragHandleId:e,dragHandleRect:i.getBoundingClientRect(),initialCursorPosition:o,initialLayout:r})}),[]),D=mu((()=>{m(null)}),[]),z=mu((e=>{const{panelDataArray:t}=E.current,n=zd(t,e);n>=0&&(t.splice(n,1),delete y.current[e.id],E.current.panelDataArrayChanged=!0)}),[]),F=xu((()=>({collapsePanel:_,direction:r,dragState:h,expandPanel:S,getPanelSize:C,getPanelStyle:O,groupId:f,isPanelCollapsed:k,isPanelExpanded:L,reevaluatePanelConstraints:A,registerPanel:R,registerResizeHandle:P,resizePanel:M,startDragging:T,stopDragging:D,unregisterPanel:z,panelGroupElement:p.current})),[_,h,r,S,C,O,f,k,L,A,R,P,M,T,D,z]),N={display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return du(Cu.Provider,{value:F},du(u,{...d,children:t,className:n,id:o,ref:p,style:{...N,...c},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":f}))}const Dd=hu(((e,t)=>du(Td,{...e,forwardedRef:t})));function zd(e,t){return e.findIndex((e=>e===t||e.id===t.id))}function Fd(e,t,n){const r=zd(e,t),i=r===e.length-1?[r-1,r]:[r,r+1],o=n[r];return{...t.constraints,panelSize:o,pivotIndices:i}}function Nd({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:a,onFocus:s,style:l={},tabIndex:c=0,tagName:u="div",...d}){var f,p;const h=wu(null),m=wu({onDragging:a});vu((()=>{m.current.onDragging=a}));const g=gu(Cu);if(null===g)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:v,groupId:y,registerResizeHandle:b,startDragging:x,stopDragging:w,panelGroupElement:E}=g,_=Ru(i),[S,C]=Eu("inactive"),[O,k]=Eu(!1),[L,R]=Eu(null),P=wu({state:S});Ou((()=>{P.current.state=S})),vu((()=>{if(n)R(null);else{const e=b(_);R((()=>e))}}),[n,_,b]);const M=null!==(f=null==r?void 0:r.coarse)&&void 0!==f?f:15,A=null!==(p=null==r?void 0:r.fine)&&void 0!==p?p:5;return vu((()=>{if(n||null==L)return;const e=h.current;return ld(e,"Element ref not attached"),function(e,t,n,r,i){var o;const{ownerDocument:a}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:i},l=null!==(o=Qu.get(a))&&void 0!==o?o:0;return Qu.set(a,l+1),ed.add(s),ad(),function(){var t;Ju.delete(e),ed.delete(s);const n=null!==(t=Qu.get(a))&&void 0!==t?t:1;if(Qu.set(a,n-1),ad(),1===n&&Qu.delete(a),Xu.includes(s)){const e=Xu.indexOf(s);e>=0&&Xu.splice(e,1),od()}}}(_,e,v,{coarse:M,fine:A},((e,t,n)=>{if(t)switch(e){case"down":{C("drag"),x(_,n);const{onDragging:e}=m.current;e&&e(!0);break}case"move":{const{state:e}=P.current;"drag"!==e&&C("hover"),L(n);break}case"up":{C("hover"),w();const{onDragging:e}=m.current;e&&e(!1);break}}else C("inactive")}))}),[M,v,n,A,b,_,L,x,w]),function({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){vu((()=>{if(e||null==n||null==r)return;const i=xd(t,r);if(null==i)return;const o=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();const n=i.getAttribute("data-panel-group-id");ld(n,`No group element found for id "${n}"`);const o=gd(n,r),a=vd(n,t,r);ld(null!==a,`No resize element found for id "${t}"`),o[e.shiftKey?a>0?a-1:o.length-1:a+1<o.length?a+1:0].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}}),[r,e,t,n])}({disabled:n,handleId:_,resizeHandler:L,panelGroupElement:E}),du(u,{...d,children:e,className:t,id:i,onBlur:()=>{k(!1),null==o||o()},onFocus:()=>{k(!0),null==s||s()},ref:h,role:"separator",style:{touchAction:"none",userSelect:"none",...l},tabIndex:c,"data-panel-group-direction":v,"data-panel-group-id":y,"data-resize-handle":"","data-resize-handle-active":"drag"===S?"pointer":O?"keyboard":void 0,"data-resize-handle-state":S,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":_})}Td.displayName="PanelGroup",Dd.displayName="forwardRef(PanelGroup)",Nd.displayName="PanelResizeHandle";const Id=Wn((()=>({container:{position:"relative"},panel:{position:"relative"},horizontal:{},vertical:{},disabled:{},resizer:{zIndex:1,boxSizing:"border-box",backgroundClip:"padding-box","&$disabled":{cursor:"initial",height:0,margin:0},"&$horizontal":{height:"11px",backgroundImage:"linear-gradient(rgba(0,0,0,0.33), rgba(0,0,0,0.33))",backgroundRepeat:"no-repeat",backgroundSize:"100% 1px",backgroundPosition:"top",width:"100%",marginBottom:"-10px","&$disabled":{background:"transparent"},"&:not($disabled):hover":{cursor:"ns-resize",backgroundImage:"linear-gradient(rgba(0, 114, 206, 0), rgba(0, 114, 206, 0.35), rgba(0, 114, 206, 1))",backgroundSize:"100% 3px"}},"&$vertical":{width:"11px",backgroundImage:"linear-gradient(rgba(0,0,0,0.33), rgba(0,0,0,0.33))",backgroundRepeat:"no-repeat",backgroundSize:"1px 100%",backgroundPosition:"left",height:"100%",marginRight:"-10px","&$disabled":{background:"transparent"},"&:not($disabled):hover":{cursor:"ew-resize",backgroundImage:"linear-gradient(to left, rgba(0, 114, 206, 0.35), rgba(0, 114, 206, 1), rgba(0, 114, 206, 0.35))",backgroundSize:"3px 100%"}}}})));function jd(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Bd(e,t,n[t])}))}return e}function Bd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Gd=e=>"horizontal"===e,Ud=(e,t)=>e.toFixed(2)===t.toFixed(2),Hd=({className:n,children:r,orientation:i="vertical",primary:o="first",size:a,minSize:s,maxSize:l,allowResize:c,debounceInterval:u=250,onChange:d})=>{const f=Id(),p=(0,g.useTheme)(),h=(0,e.useRef)(),[m,v]=(0,e.useState)(null),[y,b]=(0,e.useState)(0),[x,w]=(0,e.useState)(0),[_,S]=(0,e.useState)(!0),C=(0,e.useCallback)((()=>S(!0)),[]),O=(0,e.useCallback)((()=>S(!1)),[]),k=(0,e.useCallback)((()=>Gd(i)?null==m?void 0:m.clientHeight:null==m?void 0:m.clientWidth),[m,i]);"number"==typeof a&&a<0&&(a=(k()||0)+a);const L=(0,e.useCallback)((e=>"string"==typeof e&&e.endsWith("%")?+e.replace("%",""):("string"==typeof e&&e.endsWith("px")&&(e=e.replace("px","")),isNaN(+e)?null:+e/k()*100)),[k]),R=(0,e.useCallback)(((e,t)=>0===e||100===e?0:L(t)||0),[L]),P=(0,e.useCallback)((()=>{if(m&&h.current){const e=L(a);null==e||isNaN(e)||(w(R(e,l)),b(R(e,s)),h.current.resize(e))}}),[L,R,s,l,a,m]);(0,e.useEffect)((()=>{P()}),[P,x,y]);const M=(0,e.useCallback)((0,E.debounce)(((e,t)=>{void 0!==e&&0!==t&&d({percentageSize:e+"%",isMaxSize:Ud(e,+x>0?x:100+x),isMinSize:Ud(e,y),size:Math.round(e*t/100)})}),u),[d,x,y]),A=(0,e.useCallback)((e=>{e?(M(),O()):(M(h.current.getSize(),k()),C())}),[O,C,M,k]),T=(0,e.useMemo)((()=>({transition:p.transitions.create("flex",{easing:p.transitions.easing.sharp,duration:p.transitions.duration.leavingScreen})})),[p]),D=jd({className:f.panel,minSize:y},x>0?{maxSize:x}:{},{ref:h,style:_?T:void 0}),z=jd({className:f.panel,style:_?T:void 0},x<0?{minSize:-x}:{});return t().createElement("div",{ref:v,className:Qn()(f.container,n)},t().createElement(Ns,{handleHeight:Gd(i),handleWidth:!Gd(i),onResize:P,refreshMode:"debounce",refreshRate:50}),t().createElement(Dd,{direction:Gd(i)?"vertical":"horizontal"},t().createElement(Mu,"first"===o?D:z,r[0]),t().createElement(Nd,{className:Qn()(f.resizer,f[i],{[f.disabled]:!c}),disabled:!c,hitAreaMargins:{coarse:0,fine:0},onDragging:A}),t().createElement(Mu,"second"===o?D:z,r[1])))};Hd.displayName="ResizablePanes";const Vd={XXS:"XXS",XS:"XS",S:"S",M:"M",MPlus:"MPlus",L:"L",XL:"XL"},Wd=Wn({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}});function qd(){return qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qd.apply(null,arguments)}function $d(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Zd(e,t,n[t])}))}return e}function Zd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yd=(0,e.forwardRef)(((e,n)=>{const{className:r,onClick:i,icon:o,size:a=Vd.XS,iconClassName:s,classes:l={}}=e,c=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["className","onClick","icon","size","iconClassName","classes"]),u=Wd();return t().createElement(cs(),qd({ref:n,classes:$d({root:`${u[`root${a}`]} ${u.rootAll}`,disabled:u.disabled},l),onClick:i,className:r},c,{size:"large"}),o&&t().createElement(o,{classes:{root:u[`icon${a}`]},className:s}))}));Yd.displayName="SmallIconButton";const Xd=Fc(Yd),Kd=Wn((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,g.alpha)(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 Qd(){return Qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qd.apply(null,arguments)}const Jd=({disabled:e,buttonsProps:n,activeIndexId:r,className:i,onButtonClick:o})=>{const a=Kd();return t().createElement("div",{className:Qn()(a.container,i)},n.map((n=>{let{id:i}=n,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["id"]);return t().createElement(Xd,Qd({},s,{disabled:e,size:"S",key:i,className:Qn()(a.buttonWrapper,{[a.active]:r===i}),onClick:()=>o(i),"data-reltio-id":`reltio-profile-right-side-button-${i}`}))})))},ef=t().createContext({settings:{},onChange:()=>{}});ef.displayName="PerspectivesSettingsContext";const tf=t=>{const{settings:n,onChange:r}=(0,e.useContext)(ef)||{},i=null==n?void 0:n[t];return{updatePerspectiveSettings:(0,e.useCallback)((e=>{r(t,e)}),[t,r]),perspectiveSettings:i}},nf=Wn((()=>({resizablePanesWrapper:{flexGrow:1,height:"100%",marginRight:"1px"},pane:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",overflow:"hidden"}}))),rf=480,of=({perspectiveId:n,children:r,buttonsProps:i,disabled:o,defaultTab:a})=>{const s=nf(),{perspectiveSettings:l,updatePerspectiveSettings:c}=tf(n),{width:u=rf}=l||{},d=(0,w.isNil)(a)?null==l?void 0:l.active:a,f=i.find((e=>e.id===d)),p=!(0,w.isNil)(d)&&!o&&Boolean(f),h=(0,e.useCallback)((e=>{c(e)}),[c]),m=(0,e.useCallback)((e=>{h({active:d===e?null:e})}),[d,h]),g=(0,e.useCallback)((()=>{h({active:null})}),[h]),v=(0,e.useCallback)((({size:e})=>{h({width:e})}),[h]);return t().createElement(t().Fragment,null,t().createElement(Hd,{className:s.resizablePanesWrapper,primary:"second",orientation:"vertical",size:p?u:0,minSize:320,maxSize:640,allowResize:p,onChange:v,debounceInterval:2500},t().createElement("div",{className:s.pane},r[0]),t().createElement("div",{className:s.pane},(0,e.cloneElement)(r[1],{active:d,onClose:g}))),t().createElement(Jd,{disabled:o,buttonsProps:i,onButtonClick:m,activeIndexId:d}))};of.displayName="ProfileResizablePanes";var af=ae(8996),sf=ae.n(af),lf=ae(6635),cf=ae(9358);const uf=(0,e.createContext)(null),df=uf.Provider;function ff(){const t=(0,e.useContext)(uf);if(null==t)throw new Error("No context provided: useSigmaContext() can only be used in a descendant of <SigmaContainer>");return t}function pf(){return ff().sigma}function hf(){const{sigma:t,container:n}=ff(),[r,i]=(0,e.useState)({});return(0,e.useEffect)((()=>{if(!t||!r)return;const e={};return Object.keys(r).forEach((n=>{e[n]=r[n],t.setSetting(n,r[n])})),()=>{t&&n&&n.offsetWidth>0&&n.offsetHeight>0&&Object.keys(e).forEach((n=>{t.setSetting(n,e[n])}))}}),[t,r,n]),i}const mf=["clickNode","rightClickNode","downNode","enterNode","leaveNode","doubleClickNode","wheelNode","clickEdge","rightClickEdge","downEdge","enterEdge","leaveEdge","doubleClickEdge","wheelEdge","clickStage","rightClickStage","downStage","doubleClickStage","wheelStage","beforeRender","afterRender","kill"],gf=["click","rightClick","mouseup","mousedown","mousemove","mousemovebody","doubleClick","wheel"],vf=["touchup","touchdown","touchmove"],yf=["updated"];function bf(){const t=pf(),n=hf(),[r,i]=(0,e.useState)({});return(0,e.useEffect)((()=>{if(!t||!r)return;const e=r,i=Object.keys(e),o={},a={},s=t.getSettings();return i.some((e=>["clickEdge","rightClickEdge","doubleClickEdge","downEdge"].includes(e)))&&!1===s.enableEdgeClickEvents&&(o.enableEdgeClickEvents=!0,a.enableEdgeClickEvents=!1),i.some((e=>["enterEdge","leaveEdge"].includes(e)))&&!1===s.enableEdgeHoverEvents&&(o.enableEdgeHoverEvents=!0,a.enableEdgeHoverEvents=!1),i.some((e=>["wheelEdge"].includes(e)))&&!1===s.enableEdgeWheelEvents&&(o.enableEdgeWheelEvents=!0,a.enableEdgeWheelEvents=!1),Object.keys(o).length>0&&n(o),i.forEach((n=>{const r=e[n];mf.find((e=>e===n))&&t.on(n,r),gf.find((e=>e===n))&&t.getMouseCaptor().on(n,r),vf.find((e=>e===n))&&t.getTouchCaptor().on(n,r),yf.find((e=>e===n))&&t.getCamera().on(n,r)})),()=>{Object.keys(a).length>0&&n(a),t&&i.forEach((n=>{const r=e[n];mf.find((e=>e===n))&&t.off(n,r),gf.find((e=>e===n))&&t.getMouseCaptor().off(n,r),vf.find((e=>e===n))&&t.getTouchCaptor().off(n,r),yf.find((e=>e===n))&&t.getCamera().off(n,r)}))}}),[t,r,n]),i}const xf=(0,e.forwardRef)((({graph:n,id:r,className:i,style:o,settings:a,children:s},l)=>{const c=(0,e.useRef)(null),u=(0,e.useRef)(null),d={className:`react-sigma ${i||""}`,id:r,style:o},[f,p]=(0,e.useState)(null),h=(0,e.useRef)({});(0,lf.isEqual)(h.current,a)||(h.current=a||{}),(0,e.useEffect)((()=>{let e=null;if(null!==u.current){const t=n?"function"==typeof n?new n:n:new(sf());e=new cf.Sigma(t,u.current,Object.assign({allowInvalidContainer:!0},h.current)),f&&e.getCamera().setState(f.getCamera().getState())}return p(e),()=>{e&&e.kill(),p(null)}}),[u,n,h]),(0,e.useImperativeHandle)(l,(()=>f),[f]);const m=(0,e.useMemo)((()=>f&&c.current?{sigma:f,container:c.current}:null),[f,c.current]),g=null!==m?t().createElement(df,{value:m},s):null;return t().createElement("div",Object.assign({},d,{ref:c}),t().createElement("div",{className:"sigma-container",ref:u}),g)}));var wf=ae(1624),Ef=ae(4488),_f=ae(5372),Sf=ae.n(_f),Cf=ae(8586);const Of=e=>e.getContext("2d",{preserveDrawingBuffer:!1,antialias:!1}),kf=e=>{const t=document.createElement("canvas");return t.style.position="absolute",t.setAttribute("class",`sigma-${e}`),t},Lf=()=>{const{container:t,sigma:n}=ff(),[r,i]=(0,e.useState)({}),o=(0,e.useRef)({}),a=(0,e.useRef)(0),s=(0,e.useRef)(0),l=(0,e.useCallback)((e=>{i((0,w.mergeLeft)(e))}),[]),c=(0,e.useCallback)((()=>{a.current=t.offsetWidth,s.current=t.offsetHeight;const e=(0,Cf.getPixelRatio)();for(const t in o.current){const{canvasElement:n,context:r}=o.current[t];n.style.width=a.current+"px",n.style.height=s.current+"px",n.setAttribute("width",a.current*e+"px"),n.setAttribute("height",s.current*e+"px"),1!==e&&r.scale(e,e)}}),[t.offsetHeight,t.offsetWidth]),u=(0,e.useCallback)((()=>{for(const e in r){const{context:t}=o.current[e];t.clearRect(0,0,a.current,s.current);const{renderer:n}=r[e];n(t)}}),[r]),d=(0,e.useCallback)((()=>{for(const e in r){if(!(0,E.isEmptyValue)(o.current[e]))continue;const{insertBefore:n}=r[e],i=t.querySelector(".sigma-container"),a=kf(e),s=Of(a);i.insertBefore(a,i.querySelector(`.sigma-${n}`)),o.current[e]={canvasElement:a,context:s},c()}}),[r,t,c]);return(0,e.useEffect)((()=>(n.addListener("beforeRender",d),()=>{n.off("beforeRender",d)})),[n,d]),(0,e.useEffect)((()=>(n.addListener("afterRender",u),()=>{n.off("afterRender",u)})),[n,u]),(0,e.useEffect)((()=>(n.addListener("resize",c),()=>{n.off("resize",c)})),[n,c]),(0,e.useEffect)((()=>{const e=o.current;return()=>{for(const t in e)e[t].canvasElement.remove(),delete e[t]}}),[]),{addRenderers:l,canvases:o.current,canvasesRef:o}},Rf=(0,e.createContext)({addRenderers:w.identity,canvases:{}});Rf.displayName="SigmaCustomRenderersContext";const Pf=({children:e})=>{const n=Lf();return t().createElement(Rf.Provider,{value:n},e)},Mf=()=>{const n=pf(),r=(0,e.useCallback)((()=>{n.refresh()}),[n]);return t().createElement(Ns,{handleWidth:!0,onResize:r})},Af=(e,t,n,{backgroundColor:r,borderColor:i}={})=>{var o;if(!t.label)return;const a=n.labelSize,s=n.labelFont,l=n.labelWeight,c=t.selected?6:2,u=1.2*a;e.font=`${l} ${a}px ${s}`;const d=((e,t,n,{backgroundColor:r="rgba(245, 245, 245, 0.9)",marginLeft:i=2,borderColor:o,lineHeight:a}={})=>{e.fillStyle=r,o&&(e.strokeStyle=o);const s=new Path2D;if("string"==typeof t.label){const r=t.secondaryLabel?a:0,l=n.labelSize+r+2,c=2,u=Math.max(e.measureText(t.label).width,e.measureText(t.secondaryLabel||"").width),d=Math.round(u+14),f=Math.round(l+4),p=t.size+2,h=t.y-f/2,m=t.y+f/2,g=t.x+p+i,v=g+d;s.moveTo(g,m-c),s.quadraticCurveTo(g,m,g+c,m),s.lineTo(v-c,m),s.quadraticCurveTo(v,m,v,m-c),s.lineTo(v,h+c),s.quadraticCurveTo(v,h,v-c,h),s.lineTo(g+c,h),s.quadraticCurveTo(g,h,g,h+c),s.closePath(),e.fill(s),o&&e.stroke(s)}return s})(e,t,n,{backgroundColor:t.selected?"#FFF":r,marginLeft:c,borderColor:i,lineHeight:u});e.fillStyle=null!==(o=n.labelColor)&&void 0!==o&&o.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color;const f=t.secondaryLabel?t.y-a/3.75:t.y+a/3;var p,h,m;return e.fillText(t.label,t.x+t.size+9+c,f),t.secondaryLabel&&(e.fillStyle=null!==(p=n.secondaryLabelColor)&&void 0!==p&&p.attribute?t[n.secondaryLabelColor.attribute]||(null===(h=n.secondaryLabelColor)||void 0===h?void 0:h.color)||"#000":null===(m=n.secondaryLabelColor)||void 0===m?void 0:m.color,e.fillText(t.secondaryLabel,t.x+t.size+9+c,f+u)),d},Tf=(e,t,{padding:n=1.5,color:r="#FFF",lineWidth:i=4}={})=>{e.lineWidth=i,e.strokeStyle=r,e.beginPath(),e.arc(t.x,t.y,t.size+n,0,2*Math.PI),e.closePath(),e.stroke()},Df=(e,t)=>{((e,t)=>{t.selected&&(e.shadowColor="rgba(0, 114, 206, 0.5)",e.shadowBlur=10,Tf(e,t,{lineWidth:2,color:"#0072CE",padding:4.5}),e.shadowColor="none",e.shadowBlur=0)})(e,t),Tf(e,t)},zf=(e,t,n)=>{Df(e,t),Af(e,t,n,{backgroundColor:"#FFF"})},Ff="\n// convert color to pale gray\nvec4 toPaleGrayscale(in vec4 color, float paleFactor)\n{\n vec4 white = vec4(1.0, 1.0, 1.0, 1.0);\n vec4 paleColor = mix(color, white, paleFactor);\n\n float average = (paleColor.r + paleColor.g + paleColor.b) / 3.0;\n return vec4(average, average, average, 1.0);\n}",Nf=`\nprecision mediump float;\n\nvarying vec4 v_color; // base color of node\nvarying float v_border;\nvarying float v_borderRadius; // inner border radius\nvarying float v_inactive;\n\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0); // transparent color\nconst float radius = 0.5;\nconst float dashGapRatio = 5.5; // adjust this to change the ratio of dash size to gap size\nconst float totalLength = 2.0 * 3.14159 * radius;\nconst float dashSize = totalLength / (dashGapRatio + 1.0);\nconst float gapSize = dashSize / dashGapRatio;\n\n${Ff}\n\nvoid main(void) {\n vec4 color;\n\n // convert color to gray\n if (v_inactive > 0.0) {\n color = toPaleGrayscale(v_color, 0.5);\n } else {\n color = v_color;\n }\n\n float distToCenter = length(gl_PointCoord - vec2(0.5, 0.5)); // distance from current point to center of node\n float distAlongBorder = atan(gl_PointCoord.y - 0.5, gl_PointCoord.x - 0.5); // distance along the border\n float dashGapRatio = mod(distAlongBorder, dashSize + gapSize) / dashSize; // ratio of dash to gap\n\n // our change - added if statement to check if within a dash\n if (dashGapRatio < 1.0) {// if within a dash\n if (distToCenter < v_borderRadius - v_border) // distance to inner border radius\n gl_FragColor = transparent;\n else if (distToCenter < v_borderRadius)\n gl_FragColor = mix(color, transparent, (v_borderRadius - distToCenter) / v_border);\n else if (distToCenter < radius - v_border) // distance to outer border radius\n gl_FragColor = color;\n else if (distToCenter < radius)\n gl_FragColor = mix(transparent, color, (radius - distToCenter) / v_border);\n else // points outside the button\n gl_FragColor = transparent;\n } else {\n gl_FragColor = transparent;\n }\n}\n`;class If extends wf.AbstractNodeProgram{constructor(e){super(e,"\nattribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\nattribute float a_borderSize;\nattribute float a_inactive;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying vec4 v_color;\nvarying float v_border;\nvarying float v_borderRadius;\nvarying float v_inactive;\n\nconst float bias = 255.0 / 254.0;\nconst float radius = 0.5;\n\nvoid main() {\n gl_Position = vec4((u_matrix * vec3(a_position, 1)).xy, 0, 1);\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 v_borderRadius = radius - (radius * a_borderSize / a_size); // border radius in node's size (full size is 1)\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n\n // Pass inactive property\n v_inactive = a_inactive;\n}",Nf,1,6),this.borderSize=void 0,this.inactive=void 0,this.borderSize=e.getAttribLocation(this.program,"a_borderSize"),this.inactive=e.getAttribLocation(this.program,"a_inactive"),this.bind()}bind(){super.bind();const e=this.gl;e.enableVertexAttribArray(this.borderSize),e.enableVertexAttribArray(this.inactive),e.vertexAttribPointer(this.borderSize,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.inactive,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,20)}process(e,t,n){const r=this.array;let i=1*n*6;if(t||!e.hasBorder)return r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,void(r[i++]=0);r[i++]=e.x,r[i++]=e.y,r[i++]=e.size,r[i++]=(0,Cf.floatColor)(e.color),r[i++]=e.highlighted?2:1,r[i]=e.inactive?1:0}render(e){const 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/6)}}const jf=`\nprecision mediump float;\n\nvarying float v_border;\nvarying float v_inactive;\nvarying vec4 v_color;\nvarying vec4 v_texture;\n\nuniform sampler2D u_atlas;\n\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\nconst float radius = 0.5;\n\n${Ff}\n\nvoid main(void) {\n vec4 color;\n\n // set texel as color of point\n if (v_texture.w > 0.0) {\n vec4 texel = texture2D(u_atlas, v_texture.xy + gl_PointCoord * v_texture.zw, -1.0);\n color = vec4(mix(v_color, texel, texel.a).rgb, max(texel.a, v_color.a));\n } else {\n color = v_color;\n }\n\n // convert color to gray\n if (v_inactive > 0.0) {\n color = toPaleGrayscale(color, 0.5);\n }\n\n // distance from point to center of node\n float dist = length(gl_PointCoord - vec2(0.5, 0.5));\n\n if (dist < radius - v_border) // points inside node\n gl_FragColor = color;\n else if (dist < radius) // border of node\n gl_FragColor = mix(transparent, color, (radius - dist) / v_border);\n else // points outside node\n gl_FragColor = transparent;\n}`;class Bf{constructor(){this.rebindTextureFns=[],this.images={},this.textureImage=void 0,this.hasReceivedImages=!1,this.pendingImagesFrameID=void 0,this.loadImage=(e,t)=>{if(this.images[e])return;const n=new Image;var r;n.addEventListener("load",(()=>{this.images[e]={status:"pending",image:n},"number"!=typeof this.pendingImagesFrameID&&(this.pendingImagesFrameID=requestAnimationFrame((()=>this.finalizePendingImages())))})),n.addEventListener("error",(()=>{this.images[e]={status:"error"}})),this.images[e]={status:"loading"},r=n,new URL(t,window.location.href).origin!==window.location.origin&&(r.crossOrigin=""),n.src=t.startsWith("data:image")?t:t+"?not-from-cache"},this.finalizePendingImages=()=>{this.pendingImagesFrameID=void 0;const e=[];for(const t in this.images){const n=this.images[t];"pending"===n.status&&e.push({id:t,image:n.image,size:Math.min(n.image.width,n.image.height)||1})}const t=document.createElement("canvas"),n=t.getContext("2d");t.width=e.reduce(((e,{size:t})=>e+t),this.hasReceivedImages?this.textureImage.width:0),t.height=Math.max(this.hasReceivedImages?this.textureImage.height:0,...e.map((({size:e})=>e)));let r=0;this.hasReceivedImages&&(n.putImageData(this.textureImage,0,0),r=this.textureImage.width),e.forEach((({id:e,image:t,size:i})=>{const o=Math.min(128,i);let a=0,s=0;(t.width||0)>(t.height||0)?a=(t.width-t.height)/2:s=(t.height-t.width)/2,n.drawImage(t,a,s,i,i,r,0,o,o),this.images[e]={status:"ready",x:r,y:0,width:o,height:o},r+=o})),this.textureImage=n.getImageData(0,0,t.width,t.height),this.hasReceivedImages=!0,this.rebindTextureFns.forEach((e=>e()))}}}const Gf={id:"defaultImage",path:(0,E.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')};class Uf extends wf.AbstractNodeProgram{constructor(e,t){super(e,"\nattribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\nattribute vec4 a_texture;\nattribute float a_inactive;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying float v_border;\nvarying float v_inactive;\nvarying vec4 v_color;\nvarying vec4 v_texture;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n gl_Position = vec4((u_matrix * vec3(a_position, 1)).xy, 0, 1);\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 // Pass the texture coordinates:\n v_texture = a_texture;\n\n // Pass inactive property\n v_inactive = a_inactive;\n}",jf,1,9),this.imageLoader=void 0,this.texture=void 0,this.textureLocation=void 0,this.atlasLocation=void 0,this.latestRenderParams=void 0,this.inactive=void 0,this.imageLoader=new Bf,this.imageLoader.rebindTextureFns.push((()=>{this&&this.rebindTexture&&this.rebindTexture(),t&&t.refresh&&t.refresh()})),this.imageLoader.textureImage=new ImageData(1,1),this.textureLocation=e.getAttribLocation(this.program,"a_texture"),this.inactive=e.getAttribLocation(this.program,"a_inactive");const n=e.getUniformLocation(this.program,"u_atlas");if(null===n)throw new Error("NodeProgramImage: error while getting atlasLocation");this.atlasLocation=n,this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array([0,0,0,0])),this.imageLoader.loadImage(Gf.id,Gf.path),this.bind()}bind(){super.bind();const e=this.gl;e.enableVertexAttribArray(this.textureLocation),e.enableVertexAttribArray(this.inactive),e.vertexAttribPointer(this.inactive,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.textureLocation,4,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,20)}process(e,t,n){const r=this.array;let i=1*n*9;const o=e.image;let a=o&&this.imageLoader.images[o];if("string"!=typeof o||a||this.imageLoader.loadImage(o,o),t)return r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,void(r[i++]=0);if(r[i++]=e.x,r[i++]=e.y,r[i++]=e.size,r[i++]=(0,Cf.floatColor)(e.color),r[i++]=e.inactive?1:0,a&&"ready"===a.status||(a=this.imageLoader.images[Gf.id]),a&&"ready"===a.status){const{width:e,height:t}=this.imageLoader.textureImage;r[i++]=a.x/e,r[i++]=a.y/t,r[i++]=a.width/e,r[i++]=a.height/t}else r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0}render(e){if(this.hasNothingToRender())return;this.latestRenderParams=e;const 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.uniform1i(this.atlasLocation,0),t.drawArrays(t.POINTS,0,this.array.length/9)}rebindTexture(){const e=this.gl;e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this.texture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,this.imageLoader.textureImage),e.generateMipmap(e.TEXTURE_2D),this.latestRenderParams&&(this.bind(),this.bufferData(),this.render(this.latestRenderParams))}}var Hf=ae(3193),Vf=ae.n(Hf);class Wf extends(Vf()){process(e,t,n,r,i){if(r){for(let e=27*i,t=e+27;e<t;e++)this.array[e]=0;return}const o=n.arrowSizeRatio||1,a=n.size*o||1,s=t.size||1,l=e.x,c=e.y,u=t.x,d=t.y,f=(0,Cf.floatColor)(n.color),p=u-l,h=d-c;let m=p*p+h*h,g=0,v=0;m&&(m=1/Math.sqrt(m),g=-h*m*a,v=p*m*a);let y=27*i;const b=this.array;b[y++]=u,b[y++]=d,b[y++]=-g,b[y++]=-v,b[y++]=s,b[y++]=f,b[y++]=1,b[y++]=0,b[y++]=0,b[y++]=u,b[y++]=d,b[y++]=-g,b[y++]=-v,b[y++]=s,b[y++]=f,b[y++]=0,b[y++]=1,b[y++]=0,b[y++]=u,b[y++]=d,b[y++]=-g,b[y++]=-v,b[y++]=s,b[y++]=f,b[y++]=0,b[y++]=0,b[y]=1}}class qf extends Wf{process(e,t,n,r,i){super.process(t,e,n,r,i)}}var $f=ae(3343),Zf=ae.n($f);class Yf extends Ef.AbstractEdgeProgram{constructor(e){super(e,"\nattribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\nattribute float a_radius;\nattribute float a_arrowSizeRatio;\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 // our change - apply a_arrowSizeRatio depending on current zoom and minThickness\n float arrowSizeCoefficient = min(a_arrowSizeRatio, a_arrowSizeRatio / (u_sqrtZoomRatio * minThickness));\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\n float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio * arrowSizeCoefficient;\n\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}",Zf(),4,7),this.IndicesArray=void 0,this.indicesArray=void 0,this.indicesBuffer=void 0,this.indicesType=void 0,this.positionLocation=void 0,this.colorLocation=void 0,this.normalLocation=void 0,this.radiusLocation=void 0,this.arrowSizeRatioLocation=void 0,this.matrixLocation=void 0,this.sqrtZoomRatioLocation=void 0,this.correctionRatioLocation=void 0,this.canUse32BitsIndices=void 0;const t=e.createBuffer();if(null===t)throw new Error("EdgeClampedProgram: error while getting resolutionLocation");this.indicesBuffer=t,this.positionLocation=e.getAttribLocation(this.program,"a_position"),this.colorLocation=e.getAttribLocation(this.program,"a_color"),this.normalLocation=e.getAttribLocation(this.program,"a_normal"),this.radiusLocation=e.getAttribLocation(this.program,"a_radius"),this.arrowSizeRatioLocation=e.getAttribLocation(this.program,"a_arrowSizeRatio");const n=e.getUniformLocation(this.program,"u_matrix");if(null===n)throw new Error("EdgeClampedProgram: error while getting matrixLocation");this.matrixLocation=n;const r=e.getUniformLocation(this.program,"u_sqrtZoomRatio");if(null===r)throw new Error("EdgeClampedProgram: error while getting cameraRatioLocation");this.sqrtZoomRatioLocation=r;const i=e.getUniformLocation(this.program,"u_correctionRatio");if(null===i)throw new Error("EdgeClampedProgram: error while getting viewportRatioLocation");this.correctionRatioLocation=i,this.canUse32BitsIndices=(0,Cf.canUse32BitsIndices)(e),this.IndicesArray=this.canUse32BitsIndices?Uint32Array:Uint16Array,this.indicesArray=new this.IndicesArray,this.indicesType=this.canUse32BitsIndices?e.UNSIGNED_INT:e.UNSIGNED_SHORT,this.bind()}bind(){const 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.enableVertexAttribArray(this.arrowSizeRatioLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,7*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,7*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,7*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,7*Float32Array.BYTES_PER_ELEMENT,20),e.vertexAttribPointer(this.arrowSizeRatioLocation,1,e.FLOAT,!1,7*Float32Array.BYTES_PER_ELEMENT,24)}process(e,t,n,r,i){if(r){for(let e=28*i,t=e+28;e<t;e++)this.array[e]=0;return}const o=n.arrowSizeRatio||1,a=n.size||1,s=e.x,l=e.y,c=t.x,u=t.y,d="doubleArrow"===n.type?e.size||1:0,f=t.size||1,p=(0,Cf.floatColor)(n.color),h=c-s,m=u-l;let g=h*h+m*m,v=0,y=0;g&&(g=1/Math.sqrt(g),v=-m*g*a,y=h*g*a);let b=28*i;const x=this.array;x[b++]=s,x[b++]=l,x[b++]=v,x[b++]=y,x[b++]=p,x[b++]=-d,x[b++]=o,x[b++]=s,x[b++]=l,x[b++]=-v,x[b++]=-y,x[b++]=p,x[b++]=d,x[b++]=o,x[b++]=c,x[b++]=u,x[b++]=v,x[b++]=y,x[b++]=p,x[b++]=f,x[b++]=o,x[b++]=c,x[b++]=u,x[b++]=-v,x[b++]=-y,x[b++]=p,x[b++]=-f,x[b]=o}computeIndices(){const e=this.array.length/7,t=e+e/2,n=new this.IndicesArray(t);for(let t=0,r=0;t<e;t+=4)n[r++]=t,n[r++]=t+1,n[r++]=t+2,n[r++]=t+2,n[r++]=t+1,n[r++]=t+3;this.indicesArray=n}bufferData(){super.bufferData();const e=this.gl;e.bufferData(e.ELEMENT_ARRAY_BUFFER,this.indicesArray,e.STATIC_DRAW)}render(e){if(this.hasNothingToRender())return;const 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)}}class Xf extends Ef.AbstractEdgeProgram{constructor(e){super(e,"\nattribute float a_lineLength; // our addition\nattribute 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;\nvarying float v_position; // our addition\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 // antialiasing 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 v_position = a_lineLength / u_sqrtZoomRatio; // our addition\n}\n","\nprecision mediump float;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\nvarying float v_position; // our addition - the position along the line\n\nconst float feather = 0.001;\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\nconst float u_dashSize = 0.01; // our addition\nconst float u_gapSize = 0.005; // our addition\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 // our additions\n float totalSize = u_dashSize + u_gapSize;\n float positionInDashGap = mod(v_position, totalSize);\n float dashGapRatio = positionInDashGap / u_dashSize;\n // end additions (dashGapRatio is used below in if)\n\n if (dashGapRatio < 1.0) {\n gl_FragColor = mix(v_color, transparent, t);\n } else {\n discard;\n }\n}\n",4,6),this.IndicesArray=void 0,this.indicesArray=void 0,this.indicesBuffer=void 0,this.indicesType=void 0,this.canUse32BitsIndices=void 0,this.positionLocation=void 0,this.colorLocation=void 0,this.normalLocation=void 0,this.lineLengthLocation=void 0,this.matrixLocation=void 0,this.sqrtZoomRatioLocation=void 0,this.correctionRatioLocation=void 0;const t=e.createBuffer();if(null===t)throw new Error("EdgeProgram: error while creating indicesBuffer");this.indicesBuffer=t,this.positionLocation=e.getAttribLocation(this.program,"a_position"),this.colorLocation=e.getAttribLocation(this.program,"a_color"),this.normalLocation=e.getAttribLocation(this.program,"a_normal"),this.lineLengthLocation=e.getAttribLocation(this.program,"a_lineLength");const n=e.getUniformLocation(this.program,"u_matrix");if(null===n)throw new Error("EdgeProgram: error while getting matrixLocation");this.matrixLocation=n;const r=e.getUniformLocation(this.program,"u_correctionRatio");if(null===r)throw new Error("EdgeProgram: error while getting correctionRatioLocation");this.correctionRatioLocation=r;const i=e.getUniformLocation(this.program,"u_sqrtZoomRatio");if(null===i)throw new Error("EdgeProgram: error while getting sqrtZoomRatioLocation");this.sqrtZoomRatioLocation=i,this.canUse32BitsIndices=(0,Cf.canUse32BitsIndices)(e),this.IndicesArray=this.canUse32BitsIndices?Uint32Array:Uint16Array,this.indicesArray=new this.IndicesArray,this.indicesType=this.canUse32BitsIndices?e.UNSIGNED_INT:e.UNSIGNED_SHORT,this.bind()}bind(){const e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.lineLengthLocation),e.enableVertexAttribArray(this.colorLocation),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.lineLengthLocation,1,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,6*Float32Array.BYTES_PER_ELEMENT,20)}computeIndices(){const e=this.array.length/6,t=e+e/2,n=new this.IndicesArray(t);for(let t=0,r=0;t<e;t+=4)n[r++]=t,n[r++]=t+1,n[r++]=t+2,n[r++]=t+2,n[r++]=t+1,n[r++]=t+3;this.indicesArray=n}bufferData(){super.bufferData();const e=this.gl;e.bufferData(e.ELEMENT_ARRAY_BUFFER,this.indicesArray,e.STATIC_DRAW)}process(e,t,n,r,i){if(r){for(let e=24*i,t=e+24;e<t;e++)this.array[e]=0;return}const o=n.size||1,a=e.x,s=e.y,l=t.x,c=t.y,u=(0,Cf.floatColor)(n.color),d=l-a,f=c-s;let p=d*d+f*f,h=0,m=0;const g=Math.sqrt(p);p&&(p=1/Math.sqrt(p),h=-f*p*o,m=d*p*o);let v=24*i;const y=this.array;y[v++]=a,y[v++]=s,y[v++]=h,y[v++]=m,y[v++]=0,y[v++]=u,y[v++]=a,y[v++]=s,y[v++]=-h,y[v++]=-m,y[v++]=0,y[v++]=u,y[v++]=l,y[v++]=c,y[v++]=h,y[v++]=m,y[v++]=g,y[v++]=u,y[v++]=l,y[v++]=c,y[v++]=-h,y[v++]=-m,y[v++]=g,y[v]=u}render(e){if(this.hasNothingToRender())return;const 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)}}const Kf=Wn({"@global :root":{"--sigma-background-color":"#fff","--sigma-controls-background-color":"#fff","--sigma-controls-background-color-hover":"rgba(0,0,0,0.2)","--sigma-controls-border-color":"rgba(0,0,0,0.2)","--sigma-controls-color":"#000","--sigma-controls-zindex":"100","--sigma-controls-margin":"5px","--sigma-controls-size":"30px"},"@global div.react-sigma":{height:"100%",width:"100%",position:"relative",background:"var(--sigma-background-color)"},"@global div.sigma-container":{height:"100%",width:"100%"},"@global .react-sigma-controls":{position:"absolute",zIndex:"var(--sigma-controls-zindex)",border:"2px solid var(--sigma-controls-border-color)",borderRadius:"4px",color:"var(--sigma-controls-color)",backgroundColor:"var(--sigma-controls-background-color)"},"@global .react-sigma-controls.bottom-right":{bottom:"var(--sigma-controls-margin)",right:"var(--sigma-controls-margin)"},"@global .react-sigma-controls.bottom-left":{bottom:"var(--sigma-controls-margin)",left:"var(--sigma-controls-margin)"},"@global .react-sigma-controls.top-right":{top:"var(--sigma-controls-margin)",right:"var(--sigma-controls-margin)"},"@global .react-sigma-controls.top-left":{top:"var(--sigma-controls-margin)",left:"var(--sigma-controls-margin)"},"@global .react-sigma-controls:first-child":{borderTopLeftRadius:"2px",borderTopRightRadius:"2px"},"@global .react-sigma-controls:last-child":{borderBottomLeftRadius:"2px",borderBottomRightRadius:"2px"},"@global .react-sigma-control":{width:"var(--sigma-controls-size)",height:"var(--sigma-controls-size)",lineHeight:"var(--sigma-controls-size)",backgroundColor:"var(--sigma-controls-background-color)",borderBottom:"1px solid var(--sigma-controls-border-color)"},"@global .react-sigma-control:last-child":{borderBottom:"none"},"@global .react-sigma-control > *":{boxSizing:"border-box"},"@global .react-sigma-control > button":{display:"block",border:"none",margin:"0",padding:"0",width:"var(--sigma-controls-size)",height:"var(--sigma-controls-size)",lineHeight:"var(--sigma-controls-size)",backgroundPosition:"center",backgroundSize:"50%",backgroundRepeat:"no-repeat",backgroundColor:"var(--sigma-controls-background-color)",clip:"rect(0,0,0,0)"},"@global .react-sigma-control > button:hover":{backgroundColor:"var(--sigma-controls-background-color-hover)"},"@global .react-sigma-search":{backgroundColor:"var(--sigma-controls-background-color)"},"@global .react-sigma-search label":{visibility:"hidden"},"@global .react-sigma-search input":{color:"var(--sigma-controls-color)",backgroundColor:"var(--sigma-controls-background-color)",fontSize:"1em",width:"100%",margin:"0",border:"none",padding:"var(--sigma-controls-margin)",boxSizing:"border-box"}}),Qf=({children:n,initialSettings:r})=>{Kf();const i=(0,e.useMemo)((()=>(0,w.mergeDeepRight)({allowInvalidContainer:!0,defaultNodeType:"image",hoverRenderer:zf,labelRenderer:Af,nodeProgramClasses:{image:(0,wf.createNodeCompoundProgram)([Uf,If])},edgeProgramClasses:{line:Sf(),arrow:(0,Ef.createEdgeCompoundProgram)([Yf,Wf]),doubleArrow:(0,Ef.createEdgeCompoundProgram)([Yf,Wf,qf]),dashed:Xf},labelFont:"Roboto",labelSize:13,labelColor:{color:"rgba(0, 0, 0, 0.87)",attribute:"labelColor"},secondaryLabelColor:{color:"rgba(0, 0, 0, 0.54)",attribute:"secondaryLabelColor"}},r||{})),[r]);return t().createElement(xf,{graph:af.MultiGraph,style:{background:"transparent"},settings:i},t().createElement(Pf,null,t().createElement(Mf,null),n))};var Jf=ae(8833),ep=ae.n(Jf),tp=ae(3660),np=ae.n(tp),rp=ae(8301),ip=ae.n(rp),op=ae(1181);function ap(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){sp(e,t,n[t])}))}return e}function sp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lp=({graph:t,newNodesIds:n,animationDuration:r,relayoutTrigger:i})=>{const o=(0,e.useMemo)((()=>(ep().assign(t),{settings:ap({},np().inferSettings(t),{gravity:1})})),[t]);((r,i)=>{const o=(0,e.useRef)(!1);(0,e.useEffect)((()=>{o.current?(()=>{if(null!=n&&n.length){const e=t.copy();ep().assign(e),n.forEach((n=>{t.setNodeAttribute(n,"x",e.getNodeAttribute(n,"x")),t.setNodeAttribute(n,"y",e.getNodeAttribute(n,"y"))}))}})():o.current=!0}),i)})(0,[n]),(({graph:t,syncLayout:n,workerLayout:r,layoutSettings:i,initialCameraRatio:o=1.2,animationDuration:a,relayoutTrigger:s})=>{const l=pf(),c=function(){const t=pf();return(0,e.useCallback)(((e,n=!0)=>{t&&e&&(n&&t.getGraph().order>0&&t.getGraph().clear(),t.getGraph().import(e),t.refresh())}),[t])}();(0,e.useEffect)((()=>{l.getCamera().setState({ratio:o})}),[t,l,o]),(0,e.useEffect)((()=>{if(c(t),n){const e=n(l.getGraph(),i);(0,op.animateNodes)(l.getGraph(),e,{duration:a||1e3})}if(r){const e=new r(l.getGraph(),i);e.start();const t=setTimeout((()=>{e.stop()}),a||5e3);return()=>{clearTimeout(t),e.kill()}}}),[t,i,c,l,n,r,a,s])})({workerLayout:ip(),layoutSettings:o,animationDuration:r,graph:t,relayoutTrigger:i})};let cp=function(e){return e.entityType="entityType",e.interactionType="interactionType",e}({});const up=.4,dp=(e,t,n,r=0)=>({x1:e-7*(n+r),y1:t,x2:e,y2:t+7*(n+r)}),fp=(e,t,n,r,i,o,a)=>({aX:e+(r-e)*(n-a-o)/n,aY:t+(i-t)*(n-a-o)/n,vX:(r-e)*a/n,vY:(i-t)*a/n}),pp=(e,t,n,r,i)=>{e.beginPath(),e.moveTo(t+r,n+i),e.lineTo(t+i*up,n-r*up),e.lineTo(t-i*up,n+r*up),e.lineTo(t+r,n+i),e.closePath(),e.fill()};function hp(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){mp(e,t,n[t])}))}return e}function mp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gp=t=>{const n=pf(),{addRenderers:r,canvases:i}=(0,e.useContext)(Rf),o=(0,e.useRef)({}),{selfRelationLoops:a}=i;return(0,e.useEffect)((()=>{r({selfRelationLoops:{renderer:e=>{t.forEachEdge(((t,r,i)=>{if(r.loop){delete o.current[t];const r=n.getEdgeDisplayData(t),a=n.getNodeDisplayData(i);if(r.hidden||a.hidden)return;const s=((e,t,n)=>{const{size:r,color:i,arrowSizeRatio:o=1}=t,a=n.x,s=n.y,l=n.size,c=dp(a,s,.6*l);e.strokeStyle=i,e.lineWidth=r;const u=new Path2D;if("arrow"===t.type||"doubleArrow"===t.type){if(e.fillStyle=i,"doubleArrow"===t.type){const t=((e,t,n,r,i)=>{const o=Math.sqrt(Math.pow(t-e.x1,2)+Math.pow(n-e.y1,2));return fp(e.x2,e.y2,o,t,n,r,i)})(c,a,s,l,r*o*2.2);pp(e,t.aX,t.aY,t.vX,t.vY),u.moveTo(t.aX,t.aY)}else u.moveTo(a,s);const n=((e,t,n,r,i)=>{const o=Math.sqrt(Math.pow(t-e.x1,2)+Math.pow(n-e.y1,2));return fp(e.x1,e.y1,o,t,n,r,i)})(c,a,s,l,r*o*2.2);u.bezierCurveTo(c.x2,c.y2,c.x1,c.y1,n.aX,n.aY),e.stroke(u),pp(e,n.aX,n.aY,n.vX,n.vY)}else u.moveTo(a,s),u.bezierCurveTo(c.x1,c.y1,c.x2,c.y2,a,s),e.stroke(u);return u})(e,hp({},r,{size:n.scaleSize(r.size)}),hp({},a,n.framedGraphToViewport(a),{size:n.scaleSize(a.size)}));o.current[t]=s}}))},insertBefore:"edges"}})}),[r,t,n]),{selfRelationsPathsMap:o.current,selfRelationLoopsCanvas:a}},vp=(e,t,n,r)=>{const i=r.getEdgeDisplayData(e),o=r.getNodeDisplayData(t),a=r.getNodeDisplayData(n),s=r.framedGraphToViewport({x:o.x,y:o.y}),l=r.framedGraphToViewport({x:a.x,y:a.y}),c=i.loop&&(()=>{const{x1:e,y1:t,x2:n,y2:i}=dp(s.x,s.y,.6*r.scaleSize(o.size));return((e,t,n,r,i,o,a,s)=>({x:.125*e+.375*i+.375*a+.125*n,y:.125*t+.375*o+.375*s+.125*r}))(s.x,s.y,s.x,s.y,e,t,n,i)})(),u=e=>s[e]+(l[e]-s[e])/2;return{x:i.loop?c.x:u("x"),y:i.loop?c.y:u("y")}};function yp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bp="customEdgeLabels",xp="edgeDots",wp="customEdgeLabelsHovers";function Ep(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _p(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Sp(e,t,n[t])}))}return e}function Sp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Cp={type:"image",size:28,color:"rgba(55, 71, 79, 1)"},Op={size:1},kp="rgba(224, 224, 224, 1)",Lp="rgba(0, 0, 0, 0.38)",Rp=({graph:t,selectedNode:n,onNodeClick:r,selectedEdges:i,onEdgeLabelClick:o,hideInteractionTypes:a})=>(lp({graph:t,animationDuration:3e3}),(({graph:t,selectedNode:n,selectedEdges:r,onNodeClick:i,onEdgeLabelClick:o,hideInteractionTypes:a,relationEdgesLabelsAmountThreshold:s=29})=>{const l=pf(),{container:c}=ff(),[u,d]=(0,e.useState)(null),f=bf(),p=hf();gp(t);const h=(({graph:t,onEdgeLabelClick:n})=>{const r=pf(),i=r.getSettings(),o=bf(),{addRenderers:a,canvasesRef:s}=Lf(),{[bp]:l}=s.current,c=(0,e.useRef)({}),[u,d]=(0,e.useState)(),[f,p]=(0,e.useState)(!1),h=(0,e.useCallback)(((e,t,n)=>{const i=r.getEdgeDisplayData(e),o=r.getNodeDisplayData(t),a=r.getNodeDisplayData(n);return[o.nodeType,a.nodeType].every((e=>e===cp.entityType))&&!i.hidden&&i.label}),[r]),m=(0,e.useCallback)(((e,t,n,o)=>{delete c.current[t];const a=r.getEdgeDisplayData(t);if(h(t,n,o)){const s=u===t,l=a.selected,d=s?1.2:1,{x:f,y:p}=vp(t,n,o,r),h=Af(e,{label:a.label,labelColor:a.labelColor,x:f,y:p,size:r.scaleSize(4)},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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){yp(e,t,n[t])}))}return e}({},i,{labelSize:i.labelSize*d}),{backgroundColor:`rgba(250, 250, 250, ${l||s?"1":"0.9"})`,borderColor:l?"#0072CE":void 0});c.current[t]=h}}),[r,u,h]),g=(0,e.useCallback)(((e,t,n,i)=>{const o=r.getEdgeDisplayData(t);if(h(t,n,i)){const a=u===t,s=o.selected,l=a||s?1.4:1,c=r.scaleSize(2*l),{x:d,y:f}=vp(t,n,i,r);e.beginPath(),e.arc(d,f,c,0,2*Math.PI),e.fillStyle=(0,E.rgbaToRgb)(o.color),e.fill()}}),[r,u,h]);return(0,e.useEffect)((()=>{let e;const t=()=>{const{[bp]:n}=s.current;n?p(!0):e=setTimeout(t,100)};return t(),()=>{clearTimeout(e)}}),[s]),(0,e.useEffect)((()=>{o({click:e=>{u&&(n(u,e.original),d(null))},mousemove:e=>{if(!l)return;const{context:t,canvasElement:n}=l,{x:r,y:i}=((e,t)=>{const n=e.getBoundingClientRect();return{x:(t.clientX-n.left)/(n.right-n.left)*e.width,y:(t.clientY-n.top)/(n.bottom-n.top)*e.height}})(n,e.original);let o=null;for(const e in c.current){const n=c.current[e];if(t.isPointInPath(n,r,i)){o=e;break}o=null}d(o)}})}),[r,l,o,u,n,f]),(0,e.useEffect)((()=>{a({[bp]:{renderer:e=>{t.forEachEdge(((t,n,r,i)=>{t!==u&&m(e,t,r,i)}))},insertBefore:"labels"}})}),[a,t,m,u]),(0,e.useEffect)((()=>{a({[xp]:{renderer:e=>{t.forEachEdge(((t,n,r,i)=>{t!==u&&g(e,t,r,i)}))},insertBefore:"edgeLabels"}})}),[a,t,g,u]),(0,e.useEffect)((()=>{a({[wp]:{renderer:e=>{t.forEachEdge(((t,n,r,i)=>{t===u&&(m(e,t,r,i),g(e,t,r,i))}))},insertBefore:"hovers"}})}),[a,t,m,g,u]),u})({graph:t,onEdgeLabelClick:o});(t=>{const n=pf(),{addRenderers:r}=Lf();(0,e.useEffect)((()=>{r({selectedNodeBorder:{renderer:e=>{t.forEachNode((t=>{const r=n.getNodeDisplayData(t);if(!r.selected)return;const i=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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Ep(e,t,n[t])}))}return e}({},r,n.framedGraphToViewport(r),{size:n.scaleSize(r.size)});Df(e,i)}))},insertBefore:bp}})}),[r,t,n])})(t);const m=(0,e.useMemo)((()=>t.reduceEdges(((e,t,n)=>{var r;return(null===(r=n.relationTypes)||void 0===r?void 0:r.length)>0?e+1:e}),0)),[t]);(0,e.useEffect)((()=>{f({enterNode:({node:e})=>{d(e)},leaveNode:()=>{d(null)},clickNode:({node:e})=>{i(e)}})}),[l,f,i]),(0,e.useEffect)((()=>{c.style.cursor=u||h?"pointer":"default"}),[c,u,h]),(0,e.useEffect)((()=>{const e=l.getGraph();let t;try{t=e.neighbors(n)}catch{}p({nodeReducer:(i,o)=>{const s=i===n,l=n&&t&&[...t,n].every((e=>e!==i))||(null==r?void 0:r.length)>0&&r.every((t=>!e.hasExtremity(t,i)))||!1,c=_p({},Cp,o);return o.nodeType===cp.interactionType&&(c.hasBorder=!0,c.image=(0,E.svg2Url)('\n<svg id="123" width="500px" height="500px" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">\n <circle cx="25" cy="25" r="25" fill="#E7EAED" stroke="#E7EAED" stroke-width="0"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M26 26.1458C26.1784 26.3176 26.3127 26.5349 26.3841 26.7791L28.7321 28.1346C28.9712 28.2727 29.0531 28.5785 28.9151 28.8177L28.4151 29.6837C28.277 29.9228 27.9712 30.0048 27.7321 29.8667L25.4564 28.5529C25.313 28.6007 25.1595 28.6266 25 28.6266C24.8405 28.6266 24.687 28.6007 24.5436 28.5529L22.2679 29.8667C22.0288 30.0048 21.723 29.9228 21.5849 29.6837L21.0849 28.8177C20.9469 28.5785 21.0288 28.2727 21.2679 28.1346L23.6159 26.7791C23.6873 26.5349 23.8216 26.3176 24 26.1458V23.8846C24 23.6085 24.2239 23.3846 24.5 23.3846H25.5C25.7761 23.3846 26 23.6085 26 23.8846V26.1458ZM24.8 22.3846C23.1431 22.3846 21.8 21.0415 21.8 19.3846C21.8 17.7278 23.1431 16.3846 24.8 16.3846C26.4569 16.3846 27.8 17.7278 27.8 19.3846C27.8 21.0415 26.4569 22.3846 24.8 22.3846ZM18 34.3846C16.3431 34.3846 15 33.0415 15 31.3846C15 29.7278 16.3431 28.3846 18 28.3846C19.6569 28.3846 21 29.7278 21 31.3846C21 33.0415 19.6569 34.3846 18 34.3846ZM32 34.3846C30.3431 34.3846 29 33.0415 29 31.3846C29 29.7278 30.3431 28.3846 32 28.3846C33.6569 28.3846 35 29.7278 35 31.3846C35 33.0415 33.6569 34.3846 32 34.3846Z" fill="#37474F"/>\n</svg>\n')),l&&(c.inactive=!0,c.labelColor=Lp,c.secondaryLabelColor=Lp),s&&(c.selected=!0,c.zIndex=100),u===i||s||delete c.secondaryLabel,o.nodeType===cp.interactionType&&a&&(c.hidden=!0),c},edgeReducer:(t,i)=>{const o="dashed"===i.type,a=_p({},Op,i),l=null==r?void 0:r.includes(t);a.selected=l;const c=m>s;return n?e.hasExtremity(t,n)?a.color=o?"rgba(79, 79, 79, 1)":"rgba(130, 130, 130, 1)":(a.color=kp,a.labelColor=Lp,c&&delete a.label):null!=r&&r.length?(a.color=l?"rgba(79, 79, 79, 1)":kp,a.labelColor=l?void 0:Lp,c&&!l&&delete a.label):(a.color="rgba(0, 0, 0, 0.2)",c&&delete a.label),a}})}),[l,p,n,r,h,u,m,s,a])})({graph:t,selectedNode:n,selectedEdges:i,onNodeClick:r,onEdgeLabelClick:o,hideInteractionTypes:a}),null);var Pp=ae(6439),Mp=ae.n(Pp),Ap=ae(5608),Tp=ae.n(Ap);function Dp(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){zp(e,t,n[t])}))}return e}function zp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fp="0 1px 1px rgba(0,0,0,0.14), 0 2px 1px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.2)",Np={background:"#FFFFFF",boxShadow:Fp,width:"28px",height:"28px"},Ip=Wn({container:{display:"flex",alignItems:"center"},maxButton:Dp({},Np,{borderRadius:"2px 4px 4px 2px"}),minButton:Dp({},Np,{borderRadius:"4px 2px 2px 4px"}),thumb:{boxShadow:Fp,borderRadius:"2px",width:"8px",height:"28px",marginLeft:"5px",color:"rgba(0,0,0,0.54)",backgroundColor:"#FFFFFF","&.MuiSlider-thumb.Mui-focusVisible, &:hover":{boxShadow:Fp},"&:before":{boxShadow:"none"}},thumbIcon:{transform:"rotate(90deg)"},icon:{width:"18px",height:"18px"},rail:{opacity:1,height:"4px",paddingRight:"10px",marginTop:"1px"},sliderRoot:{color:"#EDEDED",marginRight:"10px",height:"2px"}}),jp=e=>Math.pow(100/e,2),Bp=e=>100/Math.sqrt(e),Gp=e=>{const{children:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["children"]),i=Ip();return t().createElement(Ap.SliderThumb,r,n,t().createElement(Mp(),{className:Qn()(i.icon,i.thumbIcon)}))},Up=({className:n,max:r,min:i})=>{const o=Ip(),a=hf(),s=bf(),l=pf().getCamera(),{zoomIn:c,zoomOut:u}=function(t){const n=pf(),r=(0,e.useRef)();(0,lf.isEqual)(r.current,t)||(r.current=t);const i=(0,e.useCallback)((e=>{n.getCamera().animatedZoom(Object.assign(Object.assign({},r.current),e))}),[n,r]),o=(0,e.useCallback)((e=>{n.getCamera().animatedUnzoom(Object.assign(Object.assign({},r.current),e))}),[n,r]),a=(0,e.useCallback)((e=>{n.getCamera().animatedReset(Object.assign(Object.assign({},r.current),e))}),[n,r]),s=(0,e.useCallback)(((e,t)=>{n.getCamera().animate(e,Object.assign(Object.assign({},r.current),t))}),[n,r]),l=(0,e.useCallback)(((e,t)=>{const i=n.getNodeDisplayData(e);i?n.getCamera().animate(i,Object.assign(Object.assign({},r.current),t)):console.log(`Node ${e} not found`)}),[n,r]);return{zoomIn:i,zoomOut:o,reset:a,goto:s,gotoNode:l}}({factor:1.2}),[d,f]=(0,e.useState)((0,w.clamp)(i,r,Bp(l.getState().ratio))),p=(0,e.useMemo)((()=>i>0?jp(i):null),[i]),h=(0,e.useMemo)((()=>r>0?jp(r):null),[r]);return(0,e.useEffect)((()=>(a({maxCameraRatio:p,minCameraRatio:h}),()=>{a({maxCameraRatio:null,minCameraRatio:null})})),[a,h,p]),(0,e.useEffect)((()=>{s({updated:e=>f(Bp(e.ratio))})}),[s]),t().createElement("div",{className:Qn()(o.container,n)},t().createElement(cs(),{"data-reltio-id":"zoom-out-button",className:o.minButton,onClick:()=>u(),size:"large"},t().createElement(Mp(),{className:o.icon})),t().createElement(Tp(),{slots:{thumb:Gp},slotProps:{thumb:{className:o.thumb}},classes:{root:o.sliderRoot,rail:o.rail},track:!1,value:d,min:i,max:r,onChange:(e,t)=>l.setState({ratio:l.getBoundedRatio(jp(t))})}),t().createElement(cs(),{"data-reltio-id":"zoom-in-button",className:o.maxButton,onClick:()=>c(),size:"large"},t().createElement(al(),{className:o.icon})))},Hp=Wn({wrapper:{height:"100%",position:"relative",background:"rgb(245, 245, 245)"},graph:{height:"100%"},rightBottomControls:{position:"absolute",zIndex:100,right:"18px",bottom:"16px",display:"flex",width:"200px"},zoomSlider:{flexGrow:1,marginRight:"8px"}}),Vp={labelRenderedSizeThreshold:11,zIndex:!0},Wp=({graph:e,children:n,selectedNode:r,onNodeClick:i=w.identity,selectedEdges:o,onEdgeLabelClick:a=w.identity,hideInteractionTypes:s})=>{const l=Hp();return t().createElement("div",{className:l.wrapper},t().createElement("div",{className:l.graph},e&&t().createElement(Qf,{initialSettings:Vp},t().createElement(t().Fragment,null,t().createElement(Rp,{graph:e,selectedNode:r,onNodeClick:i,selectedEdges:o,onEdgeLabelClick:a,hideInteractionTypes:s}),t().createElement("div",{className:l.rightBottomControls},t().createElement(Up,{className:l.zoomSlider,min:30,max:300}))))),n)},qp=Wn((e=>({summaryContainer:{position:"absolute",top:12,left:16,zIndex:1,display:"flex",justifyContent:"space-between",alignItems:"center",height:32,padding:"0 16px",borderRadius:32,backgroundColor:e.palette.background.paper},summaryDivider:{height:4,width:4,margin:"0 24px",borderRadius:"50%",backgroundColor:"#D9D9D9"},summaryItem:{display:"flex",alignItems:"center"},summaryItemName:{marginRight:8,color:e.palette.text.secondary,fontSize:13},summaryItemValue:{color:e.palette.text.primary,fontSize:18}}))),$p=()=>{const e=qp(),{entityTypes:n=[],interactionTypes:r=[],relationTypes:i=[]}=O();return t().createElement("div",{className:e.summaryContainer},t().createElement("div",{className:e.summaryItem},t().createElement("span",{className:e.summaryItemName},L().text("Entity types")),t().createElement("span",{className:e.summaryItemValue},n.length)),t().createElement("div",{className:e.summaryDivider}),t().createElement("div",{className:e.summaryItem},t().createElement("span",{className:e.summaryItemName},L().text("Interaction types")),t().createElement("span",{className:e.summaryItemValue},r.length)),t().createElement("div",{className:e.summaryDivider}),t().createElement("div",{className:e.summaryItem},t().createElement("span",{className:e.summaryItemName},L().text("Relationship types")),t().createElement("span",{className:e.summaryItemValue},i.length)))};function Zp(){return Zp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zp.apply(null,arguments)}const Yp=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",Zp({width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("rect",{width:"8",height:"8",rx:"4",fill:"#006"}))};function Xp(){return Xp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xp.apply(null,arguments)}const Kp=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",Xp({width:"8",height:"8",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("rect",{x:".5",y:".5",width:"8",height:"8",rx:"4",stroke:"#006",strokeDasharray:"4 2"}))};function Qp(){return Qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qp.apply(null,arguments)}const Jp=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",Qp({width:"16",height:"4",viewBox:"0 0 16 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 0l4 2-4 2V2.5H0v-1h12V0z",fill:"#006"}))},eh=Wn((e=>({legendContainer:{position:"absolute",bottom:18,left:16,zIndex:1,display:"flex",justifyContent:"space-between",alignItems:"center",height:28,padding:"0 16px",borderRadius:32,backgroundColor:e.palette.background.paper},legendItem:{display:"flex",alignItems:"center","&:not(:first-child)":{marginLeft:16}},legendItemName:{marginLeft:8,color:e.palette.text.secondary,fontSize:12}}))),th=()=>{const e=eh();return t().createElement("div",{className:e.legendContainer},t().createElement("div",{className:e.legendItem},t().createElement(Yp,null),t().createElement("span",{className:e.legendItemName},L().text("Entity type"))),t().createElement("div",{className:e.legendItem},t().createElement(Kp,null),t().createElement("span",{className:e.legendItemName},L().text("Interaction type"))),t().createElement("div",{className:e.legendItem},t().createElement(Jp,null),t().createElement("span",{className:e.legendItemName},L().text("Relationship type"))))};var nh=ae(2811),rh=ae.n(nh),ih=ae(9844),oh=ae.n(ih);const ah=Wn((e=>({checkbox:{position:"absolute",top:12,right:16,zIndex:1},checkboxLabel:{fontSize:13,color:e.palette.text.primary}}))),sh=({isChecked:e,onChange:n})=>{const r=ah();return t().createElement(oh(),{classes:{label:r.checkboxLabel},className:r.checkbox,control:t().createElement(rh(),{checked:e,onChange:n,size:"medium"}),label:L().text("Hide Interaction types")})};var lh=ae(3526),ch=ae.n(lh);const uh="68px",dh=Wn({container:{display:"flex",alignItems:"center",height:"32px",minHeight:"32px",padding:0},text:{display:"flex",width:`calc(100% - ${uh})`},textItem:{fontSize:"13px",lineHeight:"15px",marginRight:10},primaryTextItem:{flex:"45 0",flexBasis:0,overflow:"hidden",textOverflow:"ellipsis"},secondaryTextItem:{flex:"56 0",flexBasis:0,overflow:"hidden",textOverflow:"ellipsis"},icons:{transform:"scale(0.5)",position:"relative",flexShrink:0,width:uh,bottom:"10px"},iconTop:{position:"absolute",top:0,left:0,zIndex:1},iconBottom:{position:"absolute",top:0,left:26,zIndex:0}}),fh=(0,e.memo)((({relationType:e,onSelect:n})=>{const r=dh(),{startObject:i,endObject:o,direction:a}=e,s=(0,E.getLabel)(e.label),l=(0,_.useSelector)(C().selectors.getMetadata),c=(0,E.getEntityType)(l,i.objectTypeURI),u=(0,E.getEntityType)(l,o.objectTypeURI),d=(0,E.getLabel)(c.label)+` ${(e=>{switch(e){case E.RelationTypeDirection.directed:return"→";case E.RelationTypeDirection.bidirectional:default:return"↔"}})(a)} `+(0,E.getLabel)(u.label);return t().createElement(Ls(),{className:r.container,onClick:()=>n(e.uri)},t().createElement("div",{className:r.icons},t().createElement(Wl,{className:r.iconTop,entityType:c}),t().createElement(Wl,{className:r.iconBottom,entityType:u})),t().createElement("div",{className:r.text},t().createElement(Vs,{value:s},t().createElement(A(),{className:Qn()(r.textItem,r.primaryTextItem)},s)),t().createElement(Vs,{value:d},t().createElement(A(),{color:"textSecondary",className:Qn()(r.textItem,r.secondaryTextItem)},d))))}));fh.displayName="RelationTypesMenuItem";const ph=Wn({paper:{minWidth:"395px",maxWidth:"460px",maxHeight:"min(calc(100vh - 100px), 500px)"}});function hh(){return hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hh.apply(null,arguments)}const mh=(0,e.memo)((e=>{let{relationTypes:n,onSelect:r}=e,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["relationTypes","onSelect"]);const o=ph();return t().createElement(ch(),hh({},i,{slotProps:{paper:{className:o.paper}}}),n.map((e=>t().createElement(fh,{key:e.uri,relationType:e,onSelect:r}))))}));function gh(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}mh.displayName="RelationTypesMenu";const vh="-###-",yh=(e,t)=>[e,t].sort().join(vh),bh=e=>({id:e,startNode:e.split(vh)[0],endNode:e.split(vh)[1]}),xh=(e,t)=>Object.entries(t).filter((([t,n])=>n.includes(e))).map((([e])=>e)),wh=()=>{const t=(0,_.useSelector)(C().selectors.getMetadata),{entityTypes:n,relationTypes:r,interactionTypes:i}=O(),o=(0,_.useSelector)(C().selectors.getAbsoluteImagePath)||"",a=(0,e.useMemo)((()=>{const e=new(sf()),a={};(n||[]).forEach((n=>{var r;a[n.uri]=(0,E.getInheritancePath)(t,n.uri),e.addNode(n.uri,{nodeType:cp.entityType,label:n.label,secondaryLabel:L().text("${count} attributes",{count:(null===(r=n.attributes)||void 0===r?void 0:r.length)||0}),image:(0,E.getAbsoluteImageUrl)(o,(0,E.getEntityTypeImage)(t,n))})})),(i||[]).forEach((t=>{var n;e.addNode(t.uri,{nodeType:cp.interactionType,label:t.label,secondaryLabel:L().text("${count} attributes",{count:(null===(n=t.attributes)||void 0===n?void 0:n.length)||0})})}));const s=((e=[],t)=>{const n=(e||[]).reduce(((e,n)=>((n.memberTypes||[]).forEach((({objectTypeURI:r})=>{xh(r,t).forEach((t=>{const r=yh(n.uri,t);e[r]=e[r]||bh(r)}))})),e)),{});return Object.values(n)})(i,a);s.forEach((({id:t,startNode:n,endNode:r})=>{e.addEdgeWithKey(t,n,r,{type:"dashed"})}));const l=((e=[],t)=>{const n=(e||[]).reduce(((e,n)=>{var r,i;const o=xh(null===(r=n.startObject)||void 0===r?void 0:r.objectTypeURI,t),a=xh(null===(i=n.endObject)||void 0===i?void 0:i.objectTypeURI,t);return o.forEach((t=>{a.forEach((r=>{const i=yh(t,r);e[i]=e[i]||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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){gh(e,t,n[t])}))}return e}({},bh(i),{relationTypes:[]}),e[i].relationTypes.includes(n)||e[i].relationTypes.push(n)}))})),e}),{});return Object.values(n)})(r,a);return l.forEach((({id:t,startNode:n,endNode:r,relationTypes:i})=>{e.addEdgeWithKey(t,n,r,{relationTypes:i,label:String(i.length),loop:n===r})})),e}),[t,n,r,i,o]);return a},Eh=Wn({graphContainer:{flexGrow:1}}),_h=({currentMetadataTypeUri:n,onChangeMetadataTypeUri:r})=>{const i=Eh(),o=wh(),a=(0,E.isRelationTypeUri)(n),s=(0,e.useMemo)((()=>a?o.reduceEdges(((e,t,r)=>{var i;return null!==(i=r.relationTypes)&&void 0!==i&&i.some((e=>e.uri===n))&&e.push(t),e}),[]):[]),[a,o,n]),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(),[f,p]=(0,e.useState)(),h=(0,e.useCallback)(((e,t)=>{d({left:t.clientX,top:t.clientY}),p(e)}),[]),m=(0,e.useMemo)((()=>{var e;return f&&(null===(e=o.getEdgeAttributes(f))||void 0===e?void 0:e.relationTypes)||[]}),[o,f]),g=(0,e.useCallback)((()=>{d(null),p(null)}),[]),v=(0,e.useCallback)((e=>{r(e),g()}),[r,g]);return t().createElement("div",{className:i.graphContainer},t().createElement(Wp,{graph:o,selectedNode:n&&!a?n:null,onNodeClick:r,selectedEdges:s,onEdgeLabelClick:h,hideInteractionTypes:l},t().createElement(sh,{isChecked:l,onChange:()=>{!l&&(0,E.isInteractionTypeUri)(n)&&r(n),c((e=>!e))}}),t().createElement($p,null),t().createElement(th,null)),t().createElement(mh,{relationTypes:m,open:Boolean(u),onClose:g,anchorReference:"anchorPosition",anchorPosition:u,onSelect:v}))};class Sh extends t().Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){this.setState({error:e}),console.error(e)}render(){const{children:e,error:t}=this.props;return this.state.error?t:e}}var Ch=ae(5206),Oh=ae.n(Ch);function kh(){return kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kh.apply(null,arguments)}function Lh(){return Lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lh.apply(null,arguments)}function Rh(){return Rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rh.apply(null,arguments)}function Ph(){return Ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ph.apply(null,arguments)}function Mh(){return Mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mh.apply(null,arguments)}function Ah(){return Ah=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ah.apply(null,arguments)}const Th=Wn((e=>({root:{display:"flex",flex:"1 1 auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"10px",overflow:"auto",height:"100%",minHeight:"350px",boxSizing:"border-box","&$root_small":{minHeight:"160px"},"& $text":{color:e.palette.text.primary,fontSize:"20px",fontWeight:500,lineHeight:"24px",letterSpacing:"0.25px",textAlign:"center"},"& $secondaryText":{color:e.palette.text.secondary,fontSize:"15px",fontWeight:300,lineHeight:"18px",letterSpacing:"0.11px",textAlign:"center",paddingTop:"3px"}},root_small:{},small:{width:"88px",height:"88px"},embedded:{flexShrink:0,width:"190px",height:"190px",padding:"8px"},full:{width:"256px",height:"256px"},textBox:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:500,marginTop:"16px"},text:{},secondaryText:{},button:{minHeight:36,minWidth:64,maxWidth:500,padding:"10px 16px",borderRadius:"2px",boxShadow:"0 0 2px 0 rgba(0,0,0,0.12), 0 2px 2px 0 rgba(0,0,0,0.24), 0 0 8px 0 rgba(0,0,0,0.12), 0 8px 8px 0 rgba(0,0,0,0.24)",fontSize:"14px",fontWeight:500,lineHeight:"16px",marginTop:"24px"}})));function Dh(){return Dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dh.apply(null,arguments)}let zh=function(e){return e.full="full",e.embedded="embedded",e.small="small",e}({});const Fh={SEARCH_RESULTS:e=>t().createElement("svg",kh({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","data-reltio-id":"SvgEmptySearchResults"},e),t().createElement("defs",null,t().createElement("radialGradient",{cx:"50%",cy:"100%",fx:"50%",fy:"100%",r:"81.681%",gradientTransform:"matrix(.98998 0 0 .612 .005 .388)",id:"EmptySearchResults_svg__c"},t().createElement("stop",{stopColor:"#00BFFF",stopOpacity:.5,offset:"0%"}),t().createElement("stop",{stopColor:"#9EE8FF",stopOpacity:0,offset:"100%"})),t().createElement("radialGradient",{cx:"50%",cy:"111.651%",fx:"50%",fy:"111.651%",r:"87.693%",gradientTransform:"matrix(0 -.97693 .7263 0 -.31 1.605)",id:"EmptySearchResults_svg__f"},t().createElement("stop",{stopColor:"#91F8E5",stopOpacity:.6,offset:"0%"}),t().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),t().createElement("radialGradient",{cx:"50%",cy:"103.659%",fx:"50%",fy:"103.659%",r:"90.207%",gradientTransform:"matrix(0 -1 2.23905 0 -1.821 1.537)",id:"EmptySearchResults_svg__g"},t().createElement("stop",{stopColor:"#FFF",offset:"0%"}),t().createElement("stop",{stopColor:"#73FAFF",stopOpacity:.21,offset:"59.38%"}),t().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),t().createElement("linearGradient",{x1:"50%",y1:"170.771%",x2:"50%",y2:"10.303%",id:"EmptySearchResults_svg__e"},t().createElement("stop",{stopColor:"#91F8E5",offset:"0%"}),t().createElement("stop",{stopColor:"#99FCFF",stopOpacity:0,offset:"100%"})),t().createElement("filter",{x:"-25.9%",y:"-26.2%",width:"151.8%",height:"152.3%",filterUnits:"objectBoundingBox",id:"EmptySearchResults_svg__d"},t().createElement("feGaussianBlur",{stdDeviation:15,in:"SourceGraphic"})),t().createElement("circle",{id:"EmptySearchResults_svg__a",cx:128,cy:128,r:128})),t().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},t().createElement("mask",{id:"EmptySearchResults_svg__b",fill:"#fff"},t().createElement("use",{xlinkHref:"#EmptySearchResults_svg__a"})),t().createElement("use",{fillOpacity:.2,fill:"#A792CD",xlinkHref:"#EmptySearchResults_svg__a"}),t().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},t().createElement("g",{transform:"translate(56 34)"},t().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},t().createElement("path",{d:"M0 6.99C0 3.13 3.137 0 7 0h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H7c-3.866 0-7-3.143-7-6.99V6.99z"}),t().createElement("path",{d:"M13 25.99c0-3.86 3.137-6.99 7-6.99h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H20c-3.866 0-7-3.143-7-6.99V25.99z",opacity:.4})),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 45.833)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),t().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),t().createElement("path",{d:"M35.365.861h69.768a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M34.274 15.048h126.164a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),t().createElement("rect",{fill:"#645F6D",opacity:.5,x:21.756,y:17.46,width:87.022,height:12.004,rx:6.002}),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 87.302)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),t().createElement("rect",{fill:"#E3EBF4",x:0,y:1.091,width:20.668,height:20.734,rx:10.334}),t().createElement("path",{d:"M35.365.861h82.647a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M34.274 15.048H174.58a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M33.182 24.869h113.119a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 128.77)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),t().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),t().createElement("path",{d:"M35.365.861h110.929a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M34.274 15.048h92.443a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})))),t().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},t().createElement("path",{fill:"#446275",d:"M72.246 84.033l8.66 5-35.5 61.488-8.66-5-12.556-24.729-51.307-29.622 20.431-35.388 50.648 29.242z"}),t().createElement("path",{d:"M62.906 120.21l-80.091-46.24 10.5-18.188 50.647 29.242 28.284-.99 8.66 5-18 31.176z",fillOpacity:.2,fill:"#FFF"}),t().createElement("path",{d:"M27.566 75.558L3.877 109.065l-5.013-2.895 26.045-32.146 2.657 1.534zm9.467 5.466L13.345 114.53l-5.014-2.895L34.377 79.49l2.656 1.534zm8.158 4.71l-22.32 34.297-5.013-2.895L43.903 84.99l1.288.744z",fill:"#527585"}),t().createElement("path",{d:"M11.524 90.544l13.385-16.52 2.657 1.534-12.174 17.22-3.868-2.234zm9.467 5.467L34.377 79.49l2.656 1.534-12.174 17.22-3.868-2.233zm9.527 5.5L43.903 84.99l1.288.744-11.47 17.626-3.203-1.85z",fill:"#76A2B5",opacity:.6}),t().createElement("path",{d:"M.355 59.848l-23.689 33.507-5.013-2.895 26.045-32.146 2.657 1.534zm9.468 5.466L-13.866 98.82l-5.013-2.895L7.166 63.78l2.657 1.534zm8.158 4.71L-4.34 104.32l-5.014-2.895L16.692 69.28l1.289.744z",fillOpacity:.1,fill:"#000"}),t().createElement("g",null,t().createElement("path",{fill:"url(#EmptySearchResults_svg__c)",opacity:.993,filter:"url(#EmptySearchResults_svg__d)",d:"M.63 0h173.74L123 172H52z",transform:"rotate(120 90.404 138.861)"}),t().createElement("path",{fill:"url(#EmptySearchResults_svg__e)",opacity:.3,d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),t().createElement("path",{fill:"url(#EmptySearchResults_svg__f)",opacity:.3,d:"M4 2h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),t().createElement("path",{fill:"url(#EmptySearchResults_svg__g)",d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),t().createElement("path",{fill:"#FFF",opacity:.196,d:"M212.363 205.344l-1 1.732L60.418 124.52l4.977-8.62z"})),t().createElement("path",{fill:"#76A2B5",d:"M73.112 84.533l-35.5 61.488-.866-.5 35.5-61.488z"}),t().createElement("path",{fill:"#F3F3F3",d:"M80.906 89.033l-35.5 61.488-.866-.5 35.5-61.488z"}),t().createElement("path",{fill:"#538196",d:"M55.112 115.71l-17.5 30.311-.866-.5 17.5-30.31z"})))),SELECT_ATTRIBUTES:e=>t().createElement("svg",Lh({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgSelectAttributes"},e),t().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.1}),t().createElement("mask",{id:"SelectAttributes_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},t().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),t().createElement("g",{mask:"url(#SelectAttributes_svg__a)"},t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#SelectAttributes_svg__paint0_linear_0_19219)"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865h135.761z",fill:"url(#SelectAttributes_svg__paint1_linear_0_19219)"}),t().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M47 58h202a7 7 0 017 7v157a7 7 0 01-7 7H47a7 7 0 01-7-7V65a7 7 0 017-7z",fill:"#000"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50 56h201a5 5 0 015 5v157a5 5 0 01-5 5H50a5 5 0 01-5-5V61a5 5 0 015-5z",fill:"#fff"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 72.635a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 84.635a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 163a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 175a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 193a3 3 0 013-3H190a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 205a3 3 0 013-3h74.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 103a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 115a3 3 0 013-3h64.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),t().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),t().createElement("circle",{cx:120,cy:106,r:6,fill:"#B6C7DB"}),t().createElement("circle",{cx:120,cy:136,r:6,fill:"#B6C7DB"}),t().createElement("circle",{cx:67,cy:169,r:9,fill:"#B6C7DB"}),t().createElement("circle",{cx:67,cy:199,r:9,fill:"#B6C7DB"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 133a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 145a3 3 0 013-3h74.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M92.514 108v-8h-2V140.365h11.178v-2h-9.178V110h9.178v-2h-9.178z",fill:"#2B98F0"}),t().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M95.071 77l-3.535 3.535L88 77h7.071z",fill:"#000"}),t().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M50 22h186a6 6 0 016 6v18a6 6 0 01-6 6H50a6 6 0 01-6-6V28a6 6 0 016-6z",fill:"#fff"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M58 37a6 6 0 016-6h70a6 6 0 110 12H64a6 6 0 01-6-6zM148 37a6 6 0 016-6h10a6 6 0 110 12h-10a6 6 0 01-6-6z",fill:"#979797"})),t().createElement("defs",null,t().createElement("linearGradient",{id:"SelectAttributes_svg__paint0_linear_0_19219",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),t().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),t().createElement("linearGradient",{id:"SelectAttributes_svg__paint1_linear_0_19219",x1:266.117,y1:181.111,x2:154.882,y2:77.681,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})))),NO_DATA:e=>t().createElement("svg",Rh({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","data-reltio-id":"SvgNoData"},e),t().createElement("defs",null,t().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__b"},t().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:0,offset:"0%"}),t().createElement("stop",{stopColor:"#F4F4F4",offset:"100%"})),t().createElement("linearGradient",{x1:"69.573%",y1:"86.747%",x2:"38.144%",y2:"33.403%",id:"NoData_svg__d"},t().createElement("stop",{stopColor:"#000",stopOpacity:0,offset:"0%"}),t().createElement("stop",{stopColor:"#000",offset:"100%"})),t().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__e"},t().createElement("stop",{stopColor:"#EEFBFF",offset:"0%"}),t().createElement("stop",{stopColor:"#0072CE",offset:"100%"})),t().createElement("filter",{x:"-7.7%",y:"-7.5%",width:"115.3%",height:"115%",filterUnits:"objectBoundingBox",id:"NoData_svg__f"},t().createElement("feOffset",{dx:0,dy:2,in:"SourceAlpha",result:"shadowOffsetOuter1"}),t().createElement("feGaussianBlur",{stdDeviation:2,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),t().createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0",type:"matrix",in:"shadowBlurOuter1",result:"shadowMatrixOuter1"}),t().createElement("feMerge",null,t().createElement("feMergeNode",{in:"shadowMatrixOuter1"}),t().createElement("feMergeNode",{in:"SourceGraphic"}))),t().createElement("circle",{id:"NoData_svg__a",cx:128,cy:128,r:128})),t().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},t().createElement("mask",{id:"NoData_svg__c",fill:"#fff"},t().createElement("use",{xlinkHref:"#NoData_svg__a"})),t().createElement("use",{fillOpacity:.1,fill:"#0072CE",xlinkHref:"#NoData_svg__a"}),t().createElement("path",{fill:"url(#NoData_svg__b)",mask:"url(#NoData_svg__c)",d:"M0 9h256v247H0z"}),t().createElement("g",{mask:"url(#NoData_svg__c)"},t().createElement("g",{transform:"translate(29 37)"},t().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},t().createElement("path",{fillOpacity:.8,opacity:.5,d:"M14.565 8h228.144v176.476H14.565z"}),t().createElement("path",{d:"M0 8.01C0 3.586 3.576 0 7.997 0h223.838a7.997 7.997 0 017.997 8.01v152.401c0 4.424-3.577 8.01-7.997 8.01H7.997A7.997 7.997 0 010 160.411V8.01z"})),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 42.105)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),t().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),t().createElement("path",{d:"M32.488.791h64.093a3.509 3.509 0 110 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M31.486 13.824h115.902a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),t().createElement("rect",{fill:"#645F6D",opacity:.5,x:19.986,y:16.04,width:79.944,height:11.028,rx:5.514}),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 80.2)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),t().createElement("rect",{fill:"#E3EBF4",x:0,y:1.003,width:18.987,height:19.048,rx:9.493}),t().createElement("path",{d:"M32.488.791h75.925a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M31.486 13.824h128.893a2.506 2.506 0 110 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M30.483 22.846h103.918a1.504 1.504 0 010 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 118.296)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),t().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),t().createElement("path",{d:"M32.488.791h101.906a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M31.486 13.824h84.924a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})))),t().createElement("g",{mask:"url(#NoData_svg__c)"},t().createElement("path",{d:"M154.445 45.134v154.072H36.625V45.134h.811C35.508 62.52 41.07 80.609 54.12 93.944c22.74 23.235 59.61 23.235 82.352 0 13.05-13.335 18.612-31.424 16.683-48.81h1.29z",fill:"url(#NoData_svg__d)",opacity:.1,transform:"rotate(-30 291.014 34.548)"}),t().createElement("path",{d:"M27.473 93.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"url(#NoData_svg__e)",opacity:.2,transform:"translate(70 86)"}),t().createElement("g",{filter:"url(#NoData_svg__f)",strokeWidth:1,fill:"none",transform:"translate(70 86)"},t().createElement("path",{d:"M59.697 0c32.97 0 59.697 26.746 59.697 59.738 0 15.185-5.662 29.047-14.988 39.587l51.204 51.24a89.336 89.336 0 01-10.097 9.392l-51.38-51.416c-9.73 6.888-21.61 10.936-34.436 10.936C26.727 119.477 0 92.73 0 59.738 0 26.746 26.727 0 59.697 0zm0 17.756c-23.17 0-41.953 18.796-41.953 41.982s18.783 41.982 41.953 41.982 41.953-18.796 41.953-41.982-18.783-41.982-41.953-41.982z",fill:"#B5C8C9"}),t().createElement("path",{d:"M21.508 105.656C8.365 94.698 0 78.196 0 59.738 0 26.746 26.727 0 59.697 0c18.444 0 34.935 8.37 45.885 21.523l-9.794 9.8c-8.408-10.68-21.45-17.537-36.091-17.537-25.361 0-45.92 20.573-45.92 45.952 0 14.652 6.852 27.702 17.525 36.117l-9.794 9.8z",fillOpacity:.4,fill:"#FFF"})),t().createElement("path",{d:"M97.473 179.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"#D9F5FF",opacity:.4,style:{mixBlendMode:"soft-light"}}),t().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.87,fill:"#000",style:{mixBlendMode:"overlay"}}),t().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.38,fill:"#3C74B4"})))),ERROR:e=>t().createElement("svg",Ph({width:88,height:88,viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgError"},e),t().createElement("mask",{id:"Error_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:88,height:88},t().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),t().createElement("g",{mask:"url(#Error_svg__a)"},t().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:.3}),t().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),t().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),t().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),t().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),t().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),t().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),t().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),t().createElement("path",{opacity:.5,d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.3,d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.8,d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),t().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.2,d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),t().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),t().createElement("g",{filter:"url(#Error_svg__filter0_d)"},t().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),t().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),t().createElement("path",{opacity:.15,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),t().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),t().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#Error_svg__paint0_linear)"}),t().createElement("g",{filter:"url(#Error_svg__filter1_d)"},t().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),t().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),t().createElement("g",{filter:"url(#Error_svg__filter2_d)"},t().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),t().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),t().createElement("defs",null,t().createElement("filter",{id:"Error_svg__filter0_d",x:36.219,y:37.875,width:42.375,height:42.375,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),t().createElement("feOffset",{dy:2}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),t().createElement("filter",{id:"Error_svg__filter1_d",x:51.688,y:62.625,width:11.438,height:11.438,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),t().createElement("feOffset",{dy:2}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),t().createElement("filter",{id:"Error_svg__filter2_d",x:51.688,y:44.063,width:11.438,height:23.813,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),t().createElement("feOffset",{dy:2}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),t().createElement("linearGradient",{id:"Error_svg__paint0_linear",x1:68.438,y1:71.571,x2:60.119,y2:58.801,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:0}),t().createElement("stop",{offset:1})))),LOADING:e=>t().createElement("svg",Dh({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgEmptyLoading"},e),t().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.03}),t().createElement("mask",{id:"EmptyLoading_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},t().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),t().createElement("g",{mask:"url(#EmptyLoading_svg__a)"},t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#EmptyLoading_svg__paint0_linear_2978_41880)"}),t().createElement("g",{fillRule:"evenodd",clipRule:"evenodd"},t().createElement("path",{d:"M40.755 44.17C40.755 38.002 45.76 33 51.92 33h251.675c6.167 0 11.166 5.001 11.166 11.17v160.596H40.755V44.171z",fill:"#5E7282"}),t().createElement("path",{d:"M50.371 43.106h255.685V195.71H50.371V43.106z",fill:"url(#EmptyLoading_svg__paint1_linear_2978_41880)"}),t().createElement("path",{d:"M15.545 208.914c2.321.469 4.723.716 7.183.716H338.75c.22 0 .439-.002.658-.006-7.061 8.445-17.67 13.816-29.524 13.816H45.655c-12.111 0-22.916-5.597-29.968-14.349l-.142-.177z",fill:"#BDCBD8"}),t().createElement("path",{d:"M339.015 204.883v4.966H15v-4.966h324.015z",fill:"#D4DCDF"}),t().createElement("path",{d:"M201.107 213.991h-45.221a11.176 11.176 0 01-11.046-9.449h67.314a11.172 11.172 0 01-11.047 9.449z",fill:"url(#EmptyLoading_svg__paint2_linear_2978_41880)"})),t().createElement("g",{filter:"url(#EmptyLoading_svg__filter0_d_2978_41880)"},t().createElement("rect",{x:81.703,y:99,width:170,height:26,rx:8,fill:"#D1E6FF"}),t().createElement("rect",{x:84.703,y:102,width:164,height:20,rx:5,stroke:"#fff",strokeWidth:6})),t().createElement("g",{filter:"url(#EmptyLoading_svg__filter1_d_2978_41880)"},t().createElement("mask",{id:"EmptyLoading_svg__b",fill:"#fff"},t().createElement("rect",{x:81,y:105,width:108,height:14,rx:2})),t().createElement("rect",{x:81,y:105,width:108,height:14,rx:2,fill:"#61A3F1"}),t().createElement("rect",{x:81,y:105,width:108,height:14,rx:2,stroke:"#4A90E2",strokeWidth:8,mask:"url(#EmptyLoading_svg__b)"})),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M122.703 74a3 3 0 013-3h81.625a3 3 0 010 6h-81.625a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M146.703 86a3 3 0 013-3h34a3 3 0 110 6h-34a3 3 0 01-3-3zM136.703 139a3 3 0 013-3h54a3 3 0 110 6h-54a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M112.703 151a3 3 0 013-3h103a3 3 0 110 6h-103a3 3 0 01-3-3zM124.703 163a3 3 0 013-3h79a3 3 0 110 6h-79a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("g",{filter:"url(#EmptyLoading_svg__filter2_ddd_2978_41880)"},t().createElement("path",{fill:"#A0C1D7",d:"M70.703 64h11v8h-11z"}),t().createElement("rect",{x:62,y:59,width:28,height:8,rx:1,fill:"#BDD4E3"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.23 160.5c20.704 20.703 54.27 20.703 74.973 0 20.703-20.703 20.703-54.27 0-74.973-20.703-20.703-54.27-20.703-74.973 0-20.703 20.703-20.703 54.27 0 74.973z",fill:"#BDD4E3"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M113.427 85.988c20.463 20.652 20.404 53.981-.175 74.561-20.432 20.431-53.432 20.635-74.115.613l-.446-.439 74.736-74.735z",fill:"#A0C1D7"}),t().createElement("path",{opacity:.144,fillRule:"evenodd",clipRule:"evenodd",d:"M75.037 175.385c29.402 0 53.236-23.834 53.236-53.236a54.67 54.67 0 00-.106-3.399L100.45 91.037l-55.142 58.396 25.814 25.811c1.293.094 2.598.141 3.915.141z",fill:"url(#EmptyLoading_svg__paint3_linear_2978_41880)"}),t().createElement("circle",{cx:75.94,cy:123.237,r:44.723,fill:"#91B0C2"}),t().createElement("g",{filter:"url(#EmptyLoading_svg__filter3_d_2978_41880)"},t().createElement("circle",{r:42.793,transform:"matrix(-1 0 0 1 75.94 123.237)",fill:"#F7F4FF"})),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M105.043 175.309l-10.298.861-20.313-20.152.863-2.292-9.973-9.982 18.679-6.882h-4.308l-8.943-8.951 4.545-10.532L94.35 90.74l37.888 37.162c-.343 20.088-11.146 37.627-27.195 47.407z",fill:"url(#EmptyLoading_svg__paint4_linear_2978_41880)"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.703 123a8 8 0 0112.362-6.707l14.477-25.145A36.828 36.828 0 0075.703 86c-20.434 0-37 16.565-37 37h29z",fill:"url(#EmptyLoading_svg__paint5_angular_2978_41880)"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M94.297 90.6l.24.138s-12.45 35.125-12.811 35.752a6.92 6.92 0 01-11.985-6.92c.361-.626 24.556-28.97 24.556-28.97z",fill:"#323232"}),t().createElement("circle",{cx:75.94,cy:123.237,r:2.896,fill:"#EEEBF6"}),t().createElement("circle",{cx:96.211,cy:148.655,r:2.574,fill:"#A0C3D7"}),t().createElement("circle",{cx:107.15,cy:131.924,r:2.574,fill:"#A0C3D7"}),t().createElement("rect",{x:62.427,y:135.592,width:27.027,height:10.039,rx:3,fill:"#A0C3D7"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M85.914 170.534H75.112l-21.605-21.472 2.126-2.775v-1.01L42.8 132.523l2.853-2.529 40.261 40.54z",fill:"url(#EmptyLoading_svg__paint6_linear_2978_41880)"}),t().createElement("path",{opacity:.02,fillRule:"evenodd",clipRule:"evenodd",d:"M96.362 136.555h-4.988l-38.126-38.01 2.853-2.53 40.261 40.54z",fill:"url(#EmptyLoading_svg__paint7_linear_2978_41880)"}),t().createElement("path",{opacity:.02,fillRule:"evenodd",clipRule:"evenodd",d:"M116.746 129.006h-4.988L73.632 90.995l2.853-2.53 40.261 40.541z",fill:"url(#EmptyLoading_svg__paint8_linear_2978_41880)"}),t().createElement("path",{opacity:.02,fillRule:"evenodd",clipRule:"evenodd",d:"M85.793 152.41h-4.988l-38.126-38.011 2.852-2.53 40.262 40.541z",fill:"url(#EmptyLoading_svg__paint9_linear_2978_41880)"}),t().createElement("circle",{cx:75.618,cy:155.734,r:2.574,fill:"#A0C3D7"}),t().createElement("circle",{cx:55.026,cy:148.655,r:2.574,fill:"#A0C3D7"}),t().createElement("circle",{cx:44.73,cy:131.924,r:2.574,fill:"#A0C3D7"}),t().createElement("g",{fill:"#A0C3D7"},t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 96.21 97.363)"}),t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 107.149 114.094)"}),t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 75.618 90.284)"}),t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 55.026 97.363)"}),t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 44.73 114.094)"})))),t().createElement("defs",null,t().createElement("linearGradient",{id:"EmptyLoading_svg__paint0_linear_2978_41880",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),t().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint1_linear_2978_41880",x1:178.214,y1:43.106,x2:178.214,y2:195.709,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#F2F9FB"}),t().createElement("stop",{offset:1,stopColor:"#fff"})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint2_linear_2978_41880",x1:178.497,y1:204.542,x2:178.497,y2:213.991,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#90AABF"}),t().createElement("stop",{offset:1,stopColor:"#869DAE"})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint3_linear_2978_41880",x1:154.275,y1:146.574,x2:96.683,y2:91.352,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint4_linear_2978_41880",x1:60.762,y1:143.327,x2:114.747,y2:176.019,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.87}),t().createElement("stop",{offset:1,stopOpacity:.01})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint6_linear_2978_41880",x1:90.287,y1:154.267,x2:68.53,y2:131.301,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint7_linear_2978_41880",x1:100.735,y1:120.288,x2:78.978,y2:97.322,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint8_linear_2978_41880",x1:121.119,y1:112.739,x2:99.362,y2:89.773,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint9_linear_2978_41880",x1:90.166,y1:136.143,x2:68.409,y2:113.177,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("filter",{id:"EmptyLoading_svg__filter0_d_2978_41880",x:77.703,y:96,width:178,height:34,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feOffset",{dy:1}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),t().createElement("filter",{id:"EmptyLoading_svg__filter1_d_2978_41880",x:77,y:102,width:116,height:22,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feOffset",{dy:1}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),t().createElement("filter",{id:"EmptyLoading_svg__filter2_ddd_2978_41880",x:-13.297,y:28,width:181.534,height:189.17,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feMorphology",{radius:4,operator:"erode",in:"SourceAlpha",result:"effect1_dropShadow_2978_41880"}),t().createElement("feOffset",{dy:7}),t().createElement("feGaussianBlur",{stdDeviation:4}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.600156 0 0 0 0 0.745337 0 0 0 0 0.8625 0 0 0 0.1 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feMorphology",{radius:4,operator:"dilate",in:"SourceAlpha",result:"effect2_dropShadow_2978_41880"}),t().createElement("feOffset",{dy:5}),t().createElement("feGaussianBlur",{stdDeviation:16}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.447059 0 0 0 0 0.807843 0 0 0 0.06 0"}),t().createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_2978_41880",result:"effect2_dropShadow_2978_41880"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feMorphology",{radius:2,operator:"dilate",in:"SourceAlpha",result:"effect3_dropShadow_2978_41880"}),t().createElement("feOffset",{dy:12}),t().createElement("feGaussianBlur",{stdDeviation:8.5}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.447059 0 0 0 0 0.807843 0 0 0 0.06 0"}),t().createElement("feBlend",{mode:"normal",in2:"effect2_dropShadow_2978_41880",result:"effect3_dropShadow_2978_41880"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow_2978_41880",result:"shape"})),t().createElement("filter",{id:"EmptyLoading_svg__filter3_d_2978_41880",x:29.148,y:78.444,width:93.585,height:93.585,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feOffset",{dy:2}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),t().createElement("radialGradient",{id:"EmptyLoading_svg__paint5_angular_2978_41880",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(-56.035 152.55 -12.515) scale(43.4058 65.5062)"},t().createElement("stop",{stopColor:"#CFE8FF"}),t().createElement("stop",{offset:.599,stopColor:"#D1F2F9",stopOpacity:0})))),NO_LOGS:e=>t().createElement("svg",Mh({width:80,height:81,viewBox:"0 0 80 81",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgNoLogs"},e),t().createElement("circle",{cx:40,cy:40.5,r:40,fill:"#0072CE",fillOpacity:.1}),t().createElement("mask",{id:"NoLogs_svg__a",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:81},t().createElement("circle",{cx:40,cy:40.5,r:40,fill:"#fff"})),t().createElement("g",{mask:"url(#NoLogs_svg__a)",fillRule:"evenodd",clipRule:"evenodd"},t().createElement("path",{d:"M-5 3.313h80V80.5H-5V3.312z",fill:"url(#NoLogs_svg__paint0_linear_8548_48660)"}),t().createElement("path",{opacity:.05,d:"M58.675 18.27L77 36.596v46.522H29.182L16.25 70.84V18.27h42.425z",fill:"url(#NoLogs_svg__paint1_linear_8548_48660)"}),t().createElement("path",{opacity:.06,d:"M14.688 18.625h63.124c1.209 0 2.188.98 2.188 2.188v49.062c0 1.208-.98 2.188-2.188 2.188H14.688a2.188 2.188 0 01-2.188-2.188V20.812c0-1.208.98-2.187 2.188-2.187z",fill:"#000"}),t().createElement("path",{d:"M15.625 18h62.813C79.3 18 80 18.7 80 19.563v49.062c0 .863-.7 1.563-1.563 1.563H15.626c-.863 0-1.563-.7-1.563-1.563V19.562c0-.862.7-1.562 1.563-1.562z",fill:"#fff"}),t().createElement("path",{opacity:.8,d:"M18.526 25.017c0-.518.42-.938.938-.938h13.008a.937.937 0 110 1.875H19.463a.937.937 0 01-.938-.937z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,d:"M55.58 25.017c0-.518.419-.938.937-.938H76.58a.938.938 0 010 1.875H56.517a.937.937 0 01-.938-.937z",fill:"#979797"}),t().createElement("path",{opacity:.8,d:"M18.526 47.753c0-.517.42-.937.938-.937h13.008a.938.938 0 010 1.875H19.463a.937.937 0 01-.938-.938z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,d:"M55.58 47.753c0-.517.419-.937.937-.937H76.58a.938.938 0 010 1.875H56.517a.937.937 0 01-.938-.938z",fill:"#979797"}),t().createElement("path",{opacity:.8,d:"M18.526 56.174c0-.517.42-.937.938-.937h25.508a.937.937 0 110 1.875H19.463a.937.937 0 01-.938-.938zM18.526 63.753c0-.517.42-.937.938-.937h19.611a.938.938 0 010 1.875H19.464a.937.937 0 01-.938-.938z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,d:"M55.58 56.174c0-.517.419-.937.937-.937h23.189a.938.938 0 010 1.875h-23.19a.937.937 0 01-.937-.938zM55.58 63.753c0-.517.419-.937.937-.937h23.189a.938.938 0 010 1.875h-23.19a.937.937 0 01-.937-.938z",fill:"#979797"}),t().createElement("path",{opacity:.8,d:"M18.526 32.174c0-.517.42-.937.938-.937h25.508a.937.937 0 110 1.875H19.463a.937.937 0 01-.938-.938z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,d:"M55.58 32.174c0-.517.419-.937.937-.937H76.58a.938.938 0 010 1.875H56.517a.937.937 0 01-.938-.938z",fill:"#979797"}),t().createElement("path",{opacity:.8,d:"M18.526 39.753c0-.517.42-.937.938-.937h25.508a.938.938 0 010 1.875H19.463a.937.937 0 01-.938-.938z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,d:"M55.58 39.753c0-.517.419-.937.937-.937h23.189a.938.938 0 010 1.875h-23.19a.937.937 0 01-.937-.938z",fill:"#979797"}),t().createElement("path",{opacity:.6,d:"M15.625 7.375H73.75c1.035 0 1.875.84 1.875 1.875v5.625c0 1.036-.84 1.875-1.875 1.875H15.625a1.875 1.875 0 01-1.875-1.875V9.25c0-1.036.84-1.875 1.875-1.875z",fill:"#fff"}),t().createElement("path",{opacity:.2,d:"M18.125 12.063c0-1.036.84-1.876 1.875-1.876h21.875a1.875 1.875 0 010 3.75H20a1.875 1.875 0 01-1.875-1.874zM55.158 12.079c0-1.047.848-1.895 1.895-1.895H72.21a1.895 1.895 0 110 3.79H57.052a1.895 1.895 0 01-1.894-1.895z",fill:"#979797"})),t().createElement("defs",null,t().createElement("linearGradient",{id:"NoLogs_svg__paint0_linear_8548_48660",x1:-5,y1:3.313,x2:-5,y2:80.5,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),t().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),t().createElement("linearGradient",{id:"NoLogs_svg__paint1_linear_8548_48660",x1:83.162,y1:57.097,x2:48.401,y2:24.776,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})))),NO_ACTIVATIONS:e=>t().createElement("svg",Ah({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgNoActivations"},e),t().createElement("circle",{cx:100,cy:100,r:100,fill:"#0072CE",fillOpacity:.1}),t().createElement("mask",{id:"NoActivation_svg__a",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:200,height:200},t().createElement("circle",{cx:100,cy:100,r:100,fill:"#fff"})),t().createElement("g",{mask:"url(#NoActivation_svg__a)"},t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-12.5 7.031h200V200h-200V7.031z",fill:"url(#NoActivation_svg__paint0_linear_8548_48982)"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M146.688 44.426L192.5 90.237v116.306H72.956l-32.331-30.697V44.426h106.063z",fill:"url(#NoActivation_svg__paint1_linear_8548_48982)"}),t().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M36.719 45.313H194.53A5.468 5.468 0 01200 50.78v122.657a5.468 5.468 0 01-5.469 5.468H36.719a5.468 5.468 0 01-5.469-5.468V50.781a5.469 5.469 0 015.469-5.468z",fill:"#000"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.063 43.75h157.031A3.906 3.906 0 01200 47.656v122.656a3.907 3.907 0 01-3.906 3.907H39.063a3.907 3.907 0 01-3.907-3.907V47.656a3.906 3.906 0 013.907-3.906z",fill:"#fff"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M82.325 56.746a2.344 2.344 0 012.343-2.344h32.52a2.343 2.343 0 010 4.688h-32.52a2.344 2.344 0 01-2.343-2.344z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M82.031 66.121a2.344 2.344 0 012.344-2.344h50.16a2.344 2.344 0 110 4.688h-50.16a2.344 2.344 0 01-2.344-2.344z",fill:"#979797"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M82.325 127.344A2.344 2.344 0 0184.668 125h32.52a2.344 2.344 0 010 4.688h-32.52a2.344 2.344 0 01-2.343-2.344z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M82.031 136.719a2.344 2.344 0 012.344-2.344h50.16a2.343 2.343 0 110 4.687h-50.16a2.343 2.343 0 01-2.344-2.343z",fill:"#979797"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M82.325 150.781a2.343 2.343 0 012.343-2.343h63.77a2.343 2.343 0 010 4.687h-63.77a2.344 2.344 0 01-2.343-2.344z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M82.031 160.156a2.344 2.344 0 012.344-2.344h57.973a2.343 2.343 0 010 4.688H84.375a2.344 2.344 0 01-2.344-2.344z",fill:"#979797"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M108.106 80.469a2.344 2.344 0 012.344-2.344h63.769a2.344 2.344 0 010 4.688H110.45a2.344 2.344 0 01-2.344-2.344z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M107.812 89.844a2.344 2.344 0 012.344-2.344h50.16a2.344 2.344 0 110 4.688h-50.16a2.344 2.344 0 01-2.344-2.344z",fill:"#979797"}),t().createElement("circle",{cx:52.344,cy:61.719,r:7.031,fill:"#B6C7DB"}),t().createElement("circle",{cx:52.344,cy:61.719,r:7.031,fill:"#B6C7DB"}),t().createElement("circle",{cx:93.75,cy:82.813,r:4.688,fill:"#B6C7DB"}),t().createElement("circle",{cx:93.75,cy:106.25,r:4.688,fill:"#B6C7DB"}),t().createElement("circle",{cx:52.344,cy:132.031,r:7.031,fill:"#B6C7DB"}),t().createElement("circle",{cx:52.344,cy:155.469,r:7.031,fill:"#B6C7DB"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M108.106 103.906a2.344 2.344 0 012.344-2.344h63.769a2.344 2.344 0 010 4.688H110.45a2.343 2.343 0 01-2.344-2.344z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M107.812 113.281a2.344 2.344 0 012.344-2.343h57.973a2.344 2.344 0 010 4.687h-57.973a2.344 2.344 0 01-2.344-2.344z",fill:"#979797"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M72.277 84.375v-6.25h-1.563v31.535h8.734v-1.562h-7.171v-22.16h7.17v-1.563h-7.17z",fill:"#2B98F0"}),t().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M74.274 60.156l-2.762 2.762-2.762-2.762h5.524z",fill:"#000"}),t().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M39.063 17.188h145.312a4.687 4.687 0 014.687 4.687v14.063a4.687 4.687 0 01-4.687 4.687H39.062a4.688 4.688 0 01-4.687-4.688V21.876a4.688 4.688 0 014.688-4.688z",fill:"#fff"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M45.313 28.906A4.687 4.687 0 0150 24.22h54.688a4.688 4.688 0 010 9.375H50a4.688 4.688 0 01-4.688-4.688zM115.625 28.906a4.688 4.688 0 014.688-4.687h7.812a4.687 4.687 0 010 9.375h-7.813a4.688 4.688 0 01-4.687-4.688z",fill:"#979797"})),t().createElement("g",{filter:"url(#NoActivation_svg__filter0_d_8548_48982)"},t().createElement("path",{d:"M130.469 168.75c21.573 0 39.062-17.489 39.062-39.062 0-21.574-17.489-39.063-39.062-39.063-21.574 0-39.063 17.489-39.063 39.063 0 21.573 17.489 39.062 39.063 39.062z",fill:"#000"})),t().createElement("path",{d:"M130.469 168.75c21.573 0 39.062-17.489 39.062-39.062 0-21.574-17.489-39.063-39.062-39.063-21.574 0-39.063 17.489-39.063 39.063 0 21.573 17.489 39.062 39.063 39.062z",fill:"#93D204"}),t().createElement("path",{opacity:.15,fillRule:"evenodd",clipRule:"evenodd",d:"M130.469 78.906c28.045 0 50.781 22.736 50.781 50.781 0 28.046-22.736 50.782-50.781 50.782-28.046 0-50.781-22.736-50.781-50.782 0-28.045 22.735-50.78 50.781-50.78zm-.391 5.469c-24.81 0-44.922 20.112-44.922 44.922s20.112 44.922 44.922 44.922S175 154.107 175 129.297s-20.112-44.922-44.922-44.922z",fill:"#A9F300"}),t().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M130.469 88.281c22.868 0 41.406 18.538 41.406 41.406 0 22.869-18.538 41.407-41.406 41.407s-41.406-18.538-41.406-41.407c0-22.868 18.538-41.406 41.406-41.406zm0 4.644c-20.304 0-36.763 16.459-36.763 36.762 0 20.304 16.459 36.763 36.763 36.763 20.303 0 36.762-16.459 36.762-36.763 0-20.303-16.459-36.762-36.762-36.762z",fill:"#A9F300"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M130.469 60.156c38.401 0 69.531 31.13 69.531 69.532 0 38.401-31.13 69.531-69.531 69.531-38.401 0-69.531-31.13-69.531-69.531 0-38.401 31.13-69.532 69.531-69.532zm-.391 7.813c-33.87 0-61.328 27.457-61.328 61.328 0 33.87 27.457 61.328 61.328 61.328s61.328-27.458 61.328-61.328c0-33.87-27.457-61.328-61.328-61.328z",fill:"#A9F300"}),t().createElement("path",{d:"M130.469 163.281c18.553 0 33.593-15.04 33.593-33.593 0-18.554-15.04-33.594-33.593-33.594-18.554 0-33.594 15.04-33.594 33.594 0 18.553 15.04 33.593 33.594 33.593z",fill:"#A5E418"}),t().createElement("path",{opacity:.05,d:"M182.031 146.094l-34.375-34.375-5.344 2.343-11.719-11.718-.905 22.656-13.282-13.281-7.031 10.156v23.437l36.719 36.719 35.937-35.937z",fill:"url(#NoActivation_svg__paint2_linear_8548_48982)"}),t().createElement("g",{filter:"url(#NoActivation_svg__filter1_d_8548_48982)"},t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M130.469 102.344a3.907 3.907 0 00-3.907 3.906v17.969a3.907 3.907 0 007.813 0V106.25a3.906 3.906 0 00-3.906-3.906zm17.996 9.347a3.907 3.907 0 00-5.524 5.524 18.186 18.186 0 013.943 19.825 18.187 18.187 0 01-26.912 8.163 18.182 18.182 0 01-7.735-18.674 18.194 18.194 0 014.978-9.314 3.905 3.905 0 10-5.524-5.524 26.008 26.008 0 00-5.637 28.338 26 26 0 0024.024 16.053 25.999 25.999 0 0024.024-16.053 26.007 26.007 0 00-5.637-28.338z",fill:"#fff"})),t().createElement("defs",null,t().createElement("linearGradient",{id:"NoActivation_svg__paint0_linear_8548_48982",x1:-12.5,y1:7.031,x2:-12.5,y2:200,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),t().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),t().createElement("linearGradient",{id:"NoActivation_svg__paint1_linear_8548_48982",x1:207.904,y1:141.493,x2:121.002,y2:60.688,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("linearGradient",{id:"NoActivation_svg__paint2_linear_8548_48982",x1:123.438,y1:112.109,x2:172.656,y2:161.328,gradientUnits:"userSpaceOnUse"},t().createElement("stop",null),t().createElement("stop",{offset:1,stopOpacity:0})),t().createElement("filter",{id:"NoActivation_svg__filter0_d_8548_48982",x:88.281,y:89.063,width:84.375,height:84.375,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feOffset",{dy:1.563}),t().createElement("feGaussianBlur",{stdDeviation:1.563}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_8548_48982"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_8548_48982",result:"shape"})),t().createElement("filter",{id:"NoActivation_svg__filter1_d_8548_48982",x:100.95,y:100.781,width:58.257,height:59.988,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feOffset",{dy:1.563}),t().createElement("feGaussianBlur",{stdDeviation:1.563}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_8548_48982"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_8548_48982",result:"shape"}))))},Nh=({variant:e=zh.full,LogoRenderer:n=Fh.SEARCH_RESULTS,text:r,secondaryText:i,buttonTitle:o,onClick:a=w.identity,access:s,children:l})=>{const c=Th(),u=s&&o;return t().createElement("div",{className:Qn()(c.root,c[`root_${e}`])},t().createElement(n,{className:c[`${e}`]}),t().createElement("div",{className:c.textBox},t().createElement(A(),{variant:"h5",classes:{h5:c.text}},r),i&&t().createElement(A(),{variant:"subtitle1",classes:{subtitle1:c.secondaryText}},i)),l,u&&t().createElement(Oh(),{className:c.button,variant:"contained",color:"primary",onClick:a},o))},Ih=Wn((e=>({contentWrapper:{display:"flex",boxSizing:"border-box",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)",transition:e.transitions.create(["width"],{duration:e.transitions.duration.enteringScreen}),height:"100%"}}))),jh=({width:e,open:n,children:r})=>{const i=Ih();return t().createElement("div",{className:i.contentWrapper,"data-reltio-id":"side-panel",style:{width:e?`${n?e:0}px`:"100%"}},t().createElement(Sh,{error:t().createElement(Nh,{LogoRenderer:Fh.ERROR,text:L().text("Something went wrong"),variant:zh.full})},n&&r))};var Bh=ae(4294),Gh=ae.n(Bh);const Uh=Wn({container:{display:"flex",flexShrink:0,height:"63px",alignItems:"center",borderBottom:"1px solid rgba(0,0,0,0.12)"},icon:{margin:"0 12px"},divider:{borderColor:"rgba(0,0,0,0.12)",margin:"19px 17px"},secondTitle:{fontSize:"14px"}}),Hh=({onClose:e,mainTitle:n,secondTitle:r,content:i,rightContent:o})=>{const a=Uh();return t().createElement("div",{className:a.container},t().createElement(Xd,{size:"L",icon:Gh(),onClick:e,className:a.icon,tooltipTitle:L().text("Close")}),i||t().createElement(t().Fragment,null,t().createElement(A(),{"data-reltio-id":"content-header-title",variant:"h6"},n),r&&t().createElement(t().Fragment,null,t().createElement(Xn(),{"data-reltio-id":"content-header-divider",orientation:"vertical",flexItem:!0,className:a.divider}),t().createElement(A(),{variant:"body1",color:"textSecondary",className:a.secondTitle},r)),o))};function Vh(){return Vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vh.apply(null,arguments)}const Wh=(0,e.memo)((({active:e,tabs:n,onClose:r})=>{const i=!(0,w.isNil)(e),{content:o,headerProps:a}=n[e]||{};return t().createElement(jh,{open:i,key:e},t().createElement(Hh,Vh({onClose:r},a)),o)}));Wh.displayName="RightSidePanel";var qh=ae(8475),$h=ae.n(qh),Zh=ae(7499),Yh=ae.n(Zh),Xh=ae(3734),Kh=ae.n(Xh);const Qh=Wn((()=>({root:{fontSize:"20px",fontWeight:500},input:{background:"transparent !important",paddingRight:"32px !important"},menuPaper:{maxWidth:"300px",maxHeight:"600px"},label:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}))),Jh=({className:n,metadataTypeUri:r,metadataTypes:i,onChange:o})=>{const a=Qh(),s=(0,e.useCallback)((e=>o(e.target.value)),[o]);return t().createElement(Kh(),{value:r,onChange:s,variant:"standard",disableUnderline:!0,className:Qn()(a.root,n),classes:{standard:a.input},MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},classes:{paper:a.menuPaper}},"data-reltio-id":"data-model-metadata-type-selector"},i.map((e=>{const n=(0,E.getLabel)(e.label);return t().createElement(Ls(),{key:e.uri,value:e.uri},t().createElement(Vs,{value:n},t().createElement("div",{className:a.label},n)))})))},em=Wn({selector:{maxWidth:"100%",minWidth:0,marginRight:"28px"}}),tm=({metadataTypeUri:n,onChangeMetadataTypeUri:r})=>{const i=em(),{entityTypes:o,relationTypes:a,interactionTypes:s}=O(),l=(0,e.useMemo)((()=>(0,E.isEntityTypeUri)(n)?o:(0,E.isRelationTypeUri)(n)?a:(0,E.isInteractionTypeUri)(n)?s:void 0),[n,o,a,s]);return n?t().createElement(Jh,{className:i.selector,metadataTypeUri:n,metadataTypes:l,onChange:r}):t().createElement(A(),{variant:"h6"},L().text("Tenant information"))};var nm=ae(8668),rm=ae.n(nm),im=ae(3839),om=ae.n(im),am=ae(6236),sm=ae.n(am);function lm(){return lm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lm.apply(null,arguments)}const cm=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",lm({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:"M12 20a2 2 0 110 4 2 2 0 010-4zm1-15v1.352l3.229 2.051 1.334-.769 1 1.732-1.63.94v3.386l1.63.942-1 1.732-1.334-.77-3.23 2.052L13 19h-2v-1.318l-3.258-2.069-1.304.753-1-1.732 1.575-.91v-3.448l-1.575-.91 1-1.732 1.305.752L11 6.318V5h2zM5.072 16a2 2 0 11-3.464 2 2 2 0 013.464-2zm16.589-.732a2 2 0 11-2 3.464 2 2 0 012-3.464zM12 9a3 3 0 100 6 3 3 0 000-6zm10.392-3a2 2 0 11-3.464 2 2 2 0 013.464-2zM4.34 5.268a2 2 0 11-2 3.464 2 2 0 012-3.464zM12 0a2 2 0 110 4 2 2 0 010-4z",fill:"#000",fillOpacity:".54"}))};function um(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){dm(e,t,n[t])}))}return e}function dm(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fm={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},pm=Wn((e=>({root:{display:"flex",alignItems:"flex-start",padding:"12px",borderRadius:"6px",border:"1px solid rgb(224, 224, 224)",boxSizing:"border-box"},icon:{width:"24px",height:"24px",flexShrink:0,color:e.palette.text.secondary,fill:"currentColor"},content:{marginLeft:"16px",minWidth:0},title:um({marginBottom:"4px",color:e.palette.text.secondary,fontSize:"13px",lineHeight:"15.25px",fontWeight:400},fm),count:um({color:e.palette.text.primary,fontSize:"18px",lineHeight:"21.1px",fontWeight:400},fm)}))),hm=({icon:e,title:n,count:r,className:i,isLoading:o=!1})=>{const a=pm(),s=E.intl.number(r);return t().createElement("div",{className:Qn()(a.root,i),"data-reltio-id":"data-model-metric-card"},t().createElement(e,{className:a.icon}),t().createElement("div",{className:a.content},t().createElement(Vs,{value:n},t().createElement(A(),{className:a.title},n)),t().createElement(Vs,{value:s},t().createElement(A(),{className:a.count},o?t().createElement(Ic(),{"data-reltio-id":"metric-card-skeleton"}):s))))},mm=Wn((e=>({root:{display:"flex",alignItems:"center"},iconWrapper:{display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"4px",border:"1px solid rgb(217, 217, 217)"},icon:{width:"16px",height:"16px"},label:{marginLeft:"11px",fontSize:"13px",fontWeight:400,lineHeight:"15.25px",color:e.palette.text.primary}}))),gm=({name:n})=>{const r=mm(),i=(0,_.useSelector)(C().selectors.getMetadata),o=`configuration/sources/${n}`,a=(0,e.useMemo)((()=>(0,E.getSourceSystemLabel)(i,o)),[i,o]);return t().createElement("div",{className:r.root,"data-reltio-id":"data-model-source-system"},t().createElement("div",{className:r.iconWrapper},t().createElement(Tc,{className:r.icon,sourceType:o})),t().createElement(A(),{className:r.label},a))},vm=Wn((e=>({title:{marginBottom:"8px"},description:{fontSize:"13px",fontWeight:400,lineHeight:"15.25px",color:e.palette.text.secondary}}))),ym=({children:e,className:n})=>{const r=vm();return t().createElement("div",{className:n},t().createElement(A(),{className:r.title},L().text("Description")),t().createElement(A(),{className:r.description},e))},bm=Wn((e=>({title:{fontSize:"16px",fontWeight:400,lineHeight:"24px",letterSpacing:"0.15px",color:e.palette.text.primary}}))),xm=({children:e,className:n})=>{const r=bm();return t().createElement(A(),{className:Qn()(r.title,n)},e)},wm=Wn({description:{marginBottom:"24px"},title:{marginBottom:"8px"},metricCards:{display:"flex",flexWrap:"wrap",gap:"8px",marginBottom:"24px"},metricCard:{width:"calc(50% - 4px)"},sourceSystems:{display:"flex",flexWrap:"wrap",gap:"8px 16px"},sourceSystemRowSkeleton:{width:"100%",height:"30px",marginBottom:"8px",transform:"none"}}),Em=({entityTypeUri:n})=>{const r=wm(),i=(0,_.useSelector)(C().selectors.getMetadata),{count:o,isLoading:a}=(t=>{const n=Kc(),[r,i]=(0,e.useState)(0),[o,a]=(0,e.useState)(!1),s=(0,e.useCallback)((async()=>{a(!0);try{const e=[{filter:"equals",fieldName:"type",values:[t]}],{total:r}=await n((0,E.getTotals)({filters:e}));i(r)}catch(e){i(0),ru(e,{defaultMessage:L().text("Something went wrong while loading the total number of profiles")})}finally{a(!1)}}),[t,n]);return(0,e.useEffect)((()=>{s()}),[s]),{count:r,isLoading:o}})(n),{sourceSystems:s,isLoading:l}=(t=>{const n=Kc(),[r,i]=(0,e.useState)([]),[o,a]=(0,e.useState)(!1),s=(0,e.useCallback)((async()=>{a(!0);try{var e,r;const o=await n((0,E.getDQChartsData)({dataLevel:E.DQDataLevel.ENTITY_TYPE,metrics:[E.DQMetric.CONSOLIDATION_RATE],entityTypeUri:t}));i(Object.keys(null!==(e=null==o||null===(r=o.consolidationRate)||void 0===r?void 0:r.totalCrosswalksBySource)&&void 0!==e?e:{}))}catch(e){i([]),ru(e,{defaultMessage:L().text("Something went wrong while loading the contributing sources")})}finally{a(!1)}}),[t,n]);return(0,e.useEffect)((()=>{s()}),[s]),{sourceSystems:r,isLoading:o}})(n),c=(0,e.useMemo)((()=>(0,E.getEntityType)(i,n)),[i,n]),u=(0,e.useMemo)((()=>(0,E.getInteractionTypesForEntityType)(i,n)),[i,n]),d=(0,e.useMemo)((()=>i.relationTypes.filter((e=>(0,E.isRelationWithEntityType)(i,n,e.uri)))),[i,n]),f=(0,e.useMemo)((()=>_c(c.attributes)),[c]);return t().createElement(t().Fragment,null,c.description&&t().createElement(ym,{className:r.description},c.description),t().createElement("div",{className:r.metricCards},t().createElement(hm,{className:r.metricCard,icon:rm(),title:L().text("Profiles"),count:o,isLoading:a}),t().createElement(hm,{className:r.metricCard,icon:om(),title:L().text("Attributes"),count:f}),t().createElement(hm,{className:r.metricCard,icon:sm(),title:L().text("Relationship types"),count:d.length}),t().createElement(hm,{className:r.metricCard,icon:cm,title:L().text("Interaction types"),count:u.length})),(l||0!==s.length)&&t().createElement(xm,{className:r.title},L().text("Contributing sources")),l?t().createElement(t().Fragment,null,t().createElement(Ic(),{"data-reltio-id":"source-systems-row-skeleton",className:r.sourceSystemRowSkeleton}),t().createElement(Ic(),{"data-reltio-id":"source-systems-row-skeleton",className:r.sourceSystemRowSkeleton}),t().createElement(Ic(),{"data-reltio-id":"source-systems-row-skeleton",className:r.sourceSystemRowSkeleton})):t().createElement("div",{className:r.sourceSystems},s.map((e=>t().createElement(gm,{key:e,name:e})))))},_m=Wn((e=>({root:{display:"flex",alignItems:"center"},entityType:{padding:"4px 8px",display:"flex",alignItems:"center",minWidth:"56px",flexShrink:1},relationType:{padding:"0 6px",minWidth:"30px",textAlign:"center",flexShrink:9999},relationTypeLabel:{marginBottom:"6px",fontSize:"10px",fontWeight:400,lineHeight:"12px",color:e.palette.text.secondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},relationTypeLine:{position:"relative",width:"100%",height:"1px",background:"rgb(130, 130, 130)","&:before, &:after":{position:"absolute",top:0,transform:"translateY(-50%)",width:0,height:0,borderTop:"4px solid transparent",borderBottom:"4px solid transparent"}},relationTypeLineLeftArrow:{"&:before":{content:'""',left:"-2px",borderRight:"6px solid rgb(130, 130, 130)"}},relationTypeLineRightArrow:{"&:after":{content:'""',right:"-2px",borderLeft:"6px solid rgb(130, 130, 130)"}},entityTypeIcon:{width:"32px",height:"32px"},entityTypeLabel:{marginLeft:"8px",fontSize:"13px",fontWeight:400,color:e.palette.text.primary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}))),Sm=({relationType:n})=>{const{direction:r,uri:i,label:o}=n,a=_m(),s=(0,_.useSelector)(C().selectors.getMetadata),[l,c]=(0,e.useMemo)((()=>(0,E.getRelationEntityTypesUris)(s,i)),[s,i]),u=(0,e.useMemo)((()=>(0,E.getEntityType)(s,l)),[s,l]),d=(0,e.useMemo)((()=>(0,E.getEntityType)(s,c)),[s,c]);return t().createElement("div",{className:a.root,"data-reltio-id":"data-model-relation-type-direction"},t().createElement("div",{className:a.entityType},t().createElement(Wl,{className:a.entityTypeIcon,entityType:u}),t().createElement(Vs,{value:(0,E.getLabel)(u.label)},t().createElement(A(),{className:a.entityTypeLabel},(0,E.getLabel)(u.label)))),t().createElement("div",{className:a.relationType},t().createElement(Vs,{value:(0,E.getLabel)(o)},t().createElement(A(),{className:a.relationTypeLabel},(0,E.getLabel)(o))),t().createElement("div",{className:Qn()(a.relationTypeLine,{[a.relationTypeLineLeftArrow]:r===E.RelationTypeDirection.bidirectional,[a.relationTypeLineRightArrow]:r===E.RelationTypeDirection.directed||r===E.RelationTypeDirection.bidirectional})})),t().createElement("div",{className:a.entityType},t().createElement(Wl,{className:a.entityTypeIcon,entityType:d}),t().createElement(Vs,{value:(0,E.getLabel)(d.label)},t().createElement(A(),{className:a.entityTypeLabel},(0,E.getLabel)(d.label)))))},Cm=Wn({description:{marginBottom:"24px"},title:{marginBottom:"8px"},metricCard:{maxWidth:"220px",marginBottom:"24px"}}),Om=({relationTypeUri:n})=>{const r=Cm(),i=(0,_.useSelector)(C().selectors.getMetadata),o=(0,e.useMemo)((()=>(0,E.getRelationType)(i,n)),[i,n]);return t().createElement(t().Fragment,null,o.description&&t().createElement(ym,{className:r.description},o.description),t().createElement(hm,{className:r.metricCard,count:_c(o.attributes),title:L().text("Attributes"),icon:om()}),t().createElement(xm,{className:r.title},L().text("Direction")),t().createElement(Sm,{relationType:o}))};var km=ae(918),Lm=ae.n(km),Rm=ae(9850),Pm=ae.n(Rm),Mm=ae(1159),Am=ae.n(Mm),Tm=ae(8012),Dm=ae.n(Tm),zm=ae(5681),Fm=ae.n(zm),Nm=ae(8878),Im=ae.n(Nm);const jm=Wn({headCell:{fontSize:"14px"},bodyCell:{fontSize:"13px"}}),Bm=({memberTypes:e})=>{const n=jm(),r=(0,_.useSelector)(C().selectors.getMetadata);return t().createElement(Lm(),{component:bs()},t().createElement(Pm(),null,t().createElement(Am(),null,t().createElement(Fm(),null,t().createElement(Im(),{className:n.headCell},L().text("Member type name")),t().createElement(Im(),{className:n.headCell},L().text("Entity type")))),t().createElement(Dm(),null,e.map((e=>{const i=(0,E.getEntityType)(r,e.objectTypeURI);return t().createElement(Fm(),{key:e.uri},t().createElement(Im(),{className:n.bodyCell},(0,E.getLabel)(e.label)),t().createElement(Im(),{className:n.bodyCell},(0,E.getLabel)(null==i?void 0:i.label)))})))))},Gm=Wn({description:{marginBottom:"24px"},title:{marginBottom:"8px"},metricCard:{maxWidth:"220px",marginBottom:"24px"}}),Um=({interactionTypeUri:n})=>{var r;const i=Gm(),o=(0,_.useSelector)(C().selectors.getMetadata),a=(0,e.useMemo)((()=>(0,E.getInteractionType)(o,n)),[o,n]);return t().createElement(t().Fragment,null,a.description&&t().createElement(ym,{className:i.description},a.description),t().createElement(hm,{className:i.metricCard,count:_c(a.attributes),title:L().text("Attributes"),icon:om()}),Boolean(null===(r=a.memberTypes)||void 0===r?void 0:r.length)&&t().createElement(t().Fragment,null,t().createElement(xm,{className:i.title},L().text("Member types")),t().createElement(Bm,{memberTypes:a.memberTypes})))};function Hm(){return Hm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hm.apply(null,arguments)}const Vm=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",Hm({width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{d:"M11.25 4h1.5v1.5h-1.5V4zm4.25 4.5h-7v7h7v-7zM7 7v10h10V7H7zm5.75 11.5h-1.5V20h1.5v-1.5zM20 11.25v1.5h-1.5v-1.5H20zm-14.5 1.5v-1.5H4v1.5h1.5z"}))},Wm=Wn({metricCards:{display:"flex",flexWrap:"wrap",gap:"8px"},metricCard:{width:"calc(50% - 4px)"}}),qm=()=>{const e=Wm(),{entityTypes:n=[],interactionTypes:r=[],relationTypes:i=[]}=O();return t().createElement("div",{className:e.metricCards},t().createElement(hm,{className:e.metricCard,icon:Vm,title:L().text("Entity types"),count:n.length}),t().createElement(hm,{className:e.metricCard,icon:cm,title:L().text("Interaction types"),count:r.length}),t().createElement(hm,{className:e.metricCard,icon:sm(),title:L().text("Relationship types"),count:i.length}))},$m=Wn({root:{padding:"16px",overflowY:"auto"}}),Zm=({metadataTypeUri:e})=>{const n=$m();return t().createElement("div",{className:n.root},(0,E.isEntityTypeUri)(e)?t().createElement(Em,{entityTypeUri:e}):(0,E.isRelationTypeUri)(e)?t().createElement(Om,{relationTypeUri:e}):(0,E.isInteractionTypeUri)(e)?t().createElement(Um,{interactionTypeUri:e}):t().createElement(qm,null))},Ym=e=>e.target.value;var Xm=ae(3732),Km=ae.n(Xm),Qm=ae(8214),Jm=ae.n(Qm),eg=ae(4501),tg=ae.n(eg);const ng=Wn({input:{maxWidth:"320px",width:"100%",height:"40px",fontSize:"14px",background:"rgba(0,0,0,0.03)",padding:"8px 8px 8px 15px",marginRight:"14px",borderRadius:"4px"},startAdornment:{color:"rgba(0,0,0,0.54)"},searchContainer:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"4px 0"},title:{fontSize:"16px",marginRight:"50px",marginLeft:"16px"}}),rg=({onApplySearch:n})=>{const r=ng(),[i,o]=(0,e.useState)(""),a=()=>(0,w.pipe)(w.trim,w.toLower,n)(i);return t().createElement("div",{className:r.searchContainer},t().createElement("div",{className:r.title},L().text("Attributes")),t().createElement(Km(),{className:r.input,value:i,placeholder:L().text("Search"),disableUnderline:!0,onChange:(0,w.pipe)(Ym,o),onBlur:a,startAdornment:t().createElement(Jm(),{position:"start"},t().createElement(tg(),{className:r.startAdornment})),endAdornment:t().createElement(Jm(),{position:"end"},t().createElement(Yd,{"data-reltio-id":"reset-search",size:"S",icon:Gh(),onClick:()=>{n(""),o("")}})),onKeyPress:(0,w.when)((0,w.propEq)("key","Enter"),a)}))},ig=({metadataTypeUri:n})=>{const[r,i]=(0,e.useState)(""),o=(0,_.useSelector)(C().selectors.getMetadata),a=(0,e.useMemo)((()=>(e=>(0,E.isEntityTypeUri)(e)?[{id:Ql.AttributeLabel,size:7,isWithPadding:!0},{id:Ql.Sources,size:5,isWithPadding:!0}]:[{id:Ql.AttributeLabel,size:12,isWithPadding:!0}])(n)),[n]),s=(0,e.useMemo)((()=>{const e=((e,t)=>{if((0,E.isEntityTypeUri)(t)){const n=(0,E.getEntityType)(e,t);return(0,E.getAttributeTypesTree)(e,n)}if((0,E.isRelationTypeUri)(t)){const n=(0,E.getRelationType)(e,t);return(0,E.getAttributeTypesTree)(e,n)}if((0,E.isInteractionTypeUri)(t)){const n=(0,E.getInteractionType)(e,t);return(0,E.getAttributeTypesTree)(e,n)}return[]})(o,n);return r?((e,t)=>{const n=(e,t,r=[])=>{const i=t.map((t=>{var i;const o=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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){wc(e,t,n[t])}))}return e}({},t);return((e,t)=>{var n,r;return(null===(n=e.label)||void 0===n?void 0:n.toLocaleLowerCase().startsWith(t))||(null===(r=e.description)||void 0===r?void 0:r.toLocaleLowerCase().startsWith(t))})(o,e)&&(o.isSearchedElement=!0,r.forEach((e=>e.shouldExpand=!0))),null!==(i=t.children)&&void 0!==i&&i.length&&(o.children=n(e,o.children,[...r,o])),o}));return i},r=e=>{const t=e.filter((e=>e.isSearchedElement||e.shouldExpand));for(const e of t){var n;null!==(n=e.children)&&void 0!==n&&n.length&&(e.children=r(e.children))}return t};return(0,w.pipe)(n,r)(e,t)})(r,e):e}),[o,n,r]);return t().createElement(t().Fragment,null,t().createElement(rg,{onApplySearch:e=>i(e)}),t().createElement(lu,{columnsData:a,attributeNodesList:s,metadataTypeUri:n,isRightSidePanel:!0}))};var og=function(e){return e[e.Info=0]="Info",e[e.AttributesTable=1]="AttributesTable",e}(og||{});const ag=Wn({container:{display:"flex",width:"100%",height:"100%"}}),sg="dataModel",lg=()=>{const n=ag(),[r,i]=(0,e.useState)(null),{perspectiveSettings:{active:o}={},updatePerspectiveSettings:a}=tf(sg),s=(0,e.useCallback)((e=>{const t=r===e;i(t?null:e),t||null!=o||a({active:0})}),[o,r,a]),l=(({metadataTypeUri:n,onChangeMetadataTypeUri:r})=>(0,e.useMemo)((()=>[{buttonProps:{id:og.Info,icon:$h(),tooltipTitle:L().text("Info"),showForDisabled:!0},headerProps:{content:t().createElement(tm,{metadataTypeUri:n,onChangeMetadataTypeUri:r})},content:t().createElement(Zm,{metadataTypeUri:n})},{buttonProps:{id:og.AttributesTable,icon:Yh(),tooltipTitle:L().text("Attributes table"),showForDisabled:!0},headerProps:{content:t().createElement(tm,{metadataTypeUri:n,onChangeMetadataTypeUri:r})},content:t().createElement(ig,{key:n,metadataTypeUri:n})}]),[n,r]))({metadataTypeUri:r,onChangeMetadataTypeUri:s});return t().createElement("div",{className:n.container},t().createElement(of,{perspectiveId:sg,buttonsProps:(0,w.pluck)("buttonProps",l)},t().createElement(_h,{currentMetadataTypeUri:r,onChangeMetadataTypeUri:s}),t().createElement(Wh,{tabs:l})))},cg=Wn({dataModelContainer:{display:"flex",width:"100%",height:"calc(100% - 65px)",position:"absolute"}}),ug=({config:{defaultEntityType:n,mode:r}})=>{const i=cg(),{entityTypes:o}=O(),a=n?o.find((0,w.propEq)("uri",n)):o[0],[s,l]=(0,e.useState)(a);return t().createElement(t().Fragment,null,t().createElement(Xl,{showEntityTypeSelector:!n&&r!==E.DataModelMode.GRAPH,entityTypes:o,selectedEntityType:s,onChangeEntityType:l}),t().createElement("div",{className:i.dataModelContainer},r===E.DataModelMode.GRAPH?t().createElement(lg,null):t().createElement(uu,{entityType:s})))},dg=r()({productionPrefix:"dataModel",disableGlobal:!0,seed:"dtm"}),fg=({config:e})=>t().createElement(o(),{generateClassName:dg},t().createElement(x,{dateAdapter:f},t().createElement(ug,{config:e})))})(),se})()}));
2
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@mui/icons-material/Add"),require("@mui/icons-material/ArrowDropDown"),require("@mui/icons-material/Business"),require("@mui/icons-material/Cancel"),require("@mui/icons-material/Close"),require("@mui/icons-material/DescriptionOutlined"),require("@mui/icons-material/FormatListBulletedOutlined"),require("@mui/icons-material/HighlightOff"),require("@mui/icons-material/Info"),require("@mui/icons-material/MultipleStop"),require("@mui/icons-material/Remove"),require("@mui/icons-material/Search"),require("@mui/icons-material/TableChartOutlined"),require("@mui/material"),require("@mui/material/Avatar"),require("@mui/material/Button"),require("@mui/material/Checkbox"),require("@mui/material/Chip"),require("@mui/material/Collapse"),require("@mui/material/Divider"),require("@mui/material/FormControlLabel"),require("@mui/material/Grid"),require("@mui/material/IconButton"),require("@mui/material/Input"),require("@mui/material/InputAdornment"),require("@mui/material/Menu"),require("@mui/material/MenuItem"),require("@mui/material/Paper"),require("@mui/material/Popper"),require("@mui/material/Portal"),require("@mui/material/Select"),require("@mui/material/Skeleton"),require("@mui/material/Slider"),require("@mui/material/Table"),require("@mui/material/TableBody"),require("@mui/material/TableCell"),require("@mui/material/TableContainer"),require("@mui/material/TableHead"),require("@mui/material/TableRow"),require("@mui/material/TextField"),require("@mui/material/Toolbar"),require("@mui/material/Tooltip"),require("@mui/material/Typography"),require("@mui/material/colors"),require("@mui/material/styles"),require("@mui/styles/StylesProvider"),require("@mui/styles/createGenerateClassName"),require("@mui/styles/withStyles"),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(["@mui/icons-material/Add","@mui/icons-material/ArrowDropDown","@mui/icons-material/Business","@mui/icons-material/Cancel","@mui/icons-material/Close","@mui/icons-material/DescriptionOutlined","@mui/icons-material/FormatListBulletedOutlined","@mui/icons-material/HighlightOff","@mui/icons-material/Info","@mui/icons-material/MultipleStop","@mui/icons-material/Remove","@mui/icons-material/Search","@mui/icons-material/TableChartOutlined","@mui/material","@mui/material/Avatar","@mui/material/Button","@mui/material/Checkbox","@mui/material/Chip","@mui/material/Collapse","@mui/material/Divider","@mui/material/FormControlLabel","@mui/material/Grid","@mui/material/IconButton","@mui/material/Input","@mui/material/InputAdornment","@mui/material/Menu","@mui/material/MenuItem","@mui/material/Paper","@mui/material/Popper","@mui/material/Portal","@mui/material/Select","@mui/material/Skeleton","@mui/material/Slider","@mui/material/Table","@mui/material/TableBody","@mui/material/TableCell","@mui/material/TableContainer","@mui/material/TableHead","@mui/material/TableRow","@mui/material/TextField","@mui/material/Toolbar","@mui/material/Tooltip","@mui/material/Typography","@mui/material/colors","@mui/material/styles","@mui/styles/StylesProvider","@mui/styles/createGenerateClassName","@mui/styles/withStyles","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("@mui/icons-material/Add"),require("@mui/icons-material/ArrowDropDown"),require("@mui/icons-material/Business"),require("@mui/icons-material/Cancel"),require("@mui/icons-material/Close"),require("@mui/icons-material/DescriptionOutlined"),require("@mui/icons-material/FormatListBulletedOutlined"),require("@mui/icons-material/HighlightOff"),require("@mui/icons-material/Info"),require("@mui/icons-material/MultipleStop"),require("@mui/icons-material/Remove"),require("@mui/icons-material/Search"),require("@mui/icons-material/TableChartOutlined"),require("@mui/material"),require("@mui/material/Avatar"),require("@mui/material/Button"),require("@mui/material/Checkbox"),require("@mui/material/Chip"),require("@mui/material/Collapse"),require("@mui/material/Divider"),require("@mui/material/FormControlLabel"),require("@mui/material/Grid"),require("@mui/material/IconButton"),require("@mui/material/Input"),require("@mui/material/InputAdornment"),require("@mui/material/Menu"),require("@mui/material/MenuItem"),require("@mui/material/Paper"),require("@mui/material/Popper"),require("@mui/material/Portal"),require("@mui/material/Select"),require("@mui/material/Skeleton"),require("@mui/material/Slider"),require("@mui/material/Table"),require("@mui/material/TableBody"),require("@mui/material/TableCell"),require("@mui/material/TableContainer"),require("@mui/material/TableHead"),require("@mui/material/TableRow"),require("@mui/material/TextField"),require("@mui/material/Toolbar"),require("@mui/material/Tooltip"),require("@mui/material/Typography"),require("@mui/material/colors"),require("@mui/material/styles"),require("@mui/styles/StylesProvider"),require("@mui/styles/createGenerateClassName"),require("@mui/styles/withStyles"),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["@mui/icons-material/Add"],e["@mui/icons-material/ArrowDropDown"],e["@mui/icons-material/Business"],e["@mui/icons-material/Cancel"],e["@mui/icons-material/Close"],e["@mui/icons-material/DescriptionOutlined"],e["@mui/icons-material/FormatListBulletedOutlined"],e["@mui/icons-material/HighlightOff"],e["@mui/icons-material/Info"],e["@mui/icons-material/MultipleStop"],e["@mui/icons-material/Remove"],e["@mui/icons-material/Search"],e["@mui/icons-material/TableChartOutlined"],e["@mui/material"],e["@mui/material/Avatar"],e["@mui/material/Button"],e["@mui/material/Checkbox"],e["@mui/material/Chip"],e["@mui/material/Collapse"],e["@mui/material/Divider"],e["@mui/material/FormControlLabel"],e["@mui/material/Grid"],e["@mui/material/IconButton"],e["@mui/material/Input"],e["@mui/material/InputAdornment"],e["@mui/material/Menu"],e["@mui/material/MenuItem"],e["@mui/material/Paper"],e["@mui/material/Popper"],e["@mui/material/Portal"],e["@mui/material/Select"],e["@mui/material/Skeleton"],e["@mui/material/Slider"],e["@mui/material/Table"],e["@mui/material/TableBody"],e["@mui/material/TableCell"],e["@mui/material/TableContainer"],e["@mui/material/TableHead"],e["@mui/material/TableRow"],e["@mui/material/TextField"],e["@mui/material/Toolbar"],e["@mui/material/Tooltip"],e["@mui/material/Typography"],e["@mui/material/colors"],e["@mui/material/styles"],e["@mui/styles/StylesProvider"],e["@mui/styles/createGenerateClassName"],e["@mui/styles/withStyles"],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,i,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,x,w,E,_,S,C,O,k,L,R,P,M,A,T,D,z,F,N,I,j,B,G,U,H,V,W,q,$,Z,Y,X,K,Q,J,ee,te,ne,re){return(()=>{var ie={8884:e=>{e.exports=function(e,t){var n=t.length;if(0!==n){var r=e.length;e.length+=n;for(var i=0;i<n;i++)e[r+i]=t[i]}}},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 i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.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 l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,a,c;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!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,c=u,console&&console.warn&&console.warn(c)}return e}function u(){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},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]: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}(i):h(i,i.length)}function p(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 h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(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 i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.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},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(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},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){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 l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var c=l.length,u=h(l,c);for(n=0;n<c;++n)r(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,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(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.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 i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);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},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.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,i=Array.prototype.slice.call(arguments).slice(1);for(t=0,r=i.length;t<r;t++)if(i[t])for(n in i[t])e[n]=i[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,i=e.size,o={},a=new Float32Array(10*r),s=new Float32Array(3*i);return n=0,e.forEachNode((function(e,t){o[e]=n,a[n]=t.x,a[n+1]=t.y,a[n+2]=0,a[n+3]=0,a[n+4]=0,a[n+5]=0,a[n+6]=1,a[n+7]=1,a[n+8]=t.size||1,a[n+9]=t.fixed?1:0,n+=10})),n=0,e.forEachEdge((function(e,r,i,l,c,u,d){var f=o[i],p=o[l],h=t(e,r,i,l,c,u,d);a[f+6]+=h,a[p+6]+=h,s[n]=f,s[n+1]=p,s[n+2]=h,n+=3})),{nodes:a,edges:s}},t.assignLayoutChanges=function(e,t,n){var r=0;e.updateEachNodeAttributes((function(e,i){return i.x=t[r],i.y=t[r+1],r+=10,n?n(e,i):i}))},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(),i={},o=0,a=0,s=t.length;o<s;o+=10){if(n){var l=Object.assign({},e.getNodeAttributes(r[a]));l.x=t[o],l.y=t[o+1],l=n(r[a],l),i[r[a]]={x:l.x,y:l.y}}else i[r[a]]={x:t[o],y:t[o+1]};a++}return i},t.createWorker=function(e){var t=window.URL||window.webkitURL,n=e.toString(),r=t.createObjectURL(new Blob(["("+n+").call(this);"],{type:"text/javascript"})),i=new Worker(r);return t.revokeObjectURL(r),i}},3660:(e,t,n)=>{var r=n(1880),i=n(4363).Q6,o=n(8725),a=n(6061),s=n(9869);function l(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 l=n.iterations;if("number"!=typeof l)throw new Error("graphology-layout-forceatlas2: invalid number of iterations.");if(l<=0)throw new Error("graphology-layout-forceatlas2: you should provide a positive number of iterations.");var c=i("getEdgeWeight"in n?n.getEdgeWeight:"weight").fromEntry,u="function"==typeof n.outputReducer?n.outputReducer:null,d=a.assign({},s,n.settings),f=a.validateSettings(d);if(f)throw new Error("graphology-layout-forceatlas2: "+f.message);var p,h=a.graphToByteArrays(t,c);for(p=0;p<l;p++)o(d,h.nodes,h.edges);if(!e)return a.collectLayoutChanges(t,h.nodes);a.assignLayoutChanges(t,h.nodes,u)}var c=l.bind(null,!1);c.assign=l.bind(null,!0),c.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=c},8725:e=>{var t=10;e.exports=function(e,n,r){var i,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,x,w,E,_,S,C,O,k=n.length,L=r.length,R=e.adjustSizes,P=e.barnesHutTheta*e.barnesHutTheta,M=[];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(h=0,a=0;a<k;a+=t)h+=n[a+6];h/=k/t}if(e.barnesHutOptimize){var A,T,D,z=1/0,F=-1/0,N=1/0,I=-1/0;for(a=0;a<k;a+=t)z=Math.min(z,n[a+0]),F=Math.max(F,n[a+0]),N=Math.min(N,n[a+1]),I=Math.max(I,n[a+1]);var j=F-z,B=I-N;for(j>B?I=(N-=(j-B)/2)+j:F=(z-=(B-j)/2)+B,M[0]=-1,M[1]=(z+F)/2,M[2]=(N+I)/2,M[3]=Math.max(F-z,I-N),M[4]=-1,M[5]=-1,M[6]=0,M[7]=0,M[8]=0,i=1,a=0;a<k;a+=t)for(o=0,D=3;;){if(!(M[o+5]>=0)){if(M[o+0]<0){M[o+0]=a;break}if(M[o+5]=9*i,d=M[o+3]/2,M[(f=M[o+5])+0]=-1,M[f+1]=M[o+1]-d,M[f+2]=M[o+2]-d,M[f+3]=d,M[f+4]=f+9,M[f+5]=-1,M[f+6]=0,M[f+7]=0,M[f+8]=0,M[(f+=9)+0]=-1,M[f+1]=M[o+1]-d,M[f+2]=M[o+2]+d,M[f+3]=d,M[f+4]=f+9,M[f+5]=-1,M[f+6]=0,M[f+7]=0,M[f+8]=0,M[(f+=9)+0]=-1,M[f+1]=M[o+1]+d,M[f+2]=M[o+2]-d,M[f+3]=d,M[f+4]=f+9,M[f+5]=-1,M[f+6]=0,M[f+7]=0,M[f+8]=0,M[(f+=9)+0]=-1,M[f+1]=M[o+1]+d,M[f+2]=M[o+2]+d,M[f+3]=d,M[f+4]=M[o+4],M[f+5]=-1,M[f+6]=0,M[f+7]=0,M[f+8]=0,i+=4,A=n[M[o+0]+0]<M[o+1]?n[M[o+0]+1]<M[o+2]?M[o+5]:M[o+5]+9:n[M[o+0]+1]<M[o+2]?M[o+5]+18:M[o+5]+27,M[o+6]=n[M[o+0]+6],M[o+7]=n[M[o+0]+0],M[o+8]=n[M[o+0]+1],M[A+0]=M[o+0],M[o+0]=-1,A===(T=n[a+0]<M[o+1]?n[a+1]<M[o+2]?M[o+5]:M[o+5]+9:n[a+1]<M[o+2]?M[o+5]+18:M[o+5]+27)){if(D--){o=A;continue}D=3;break}M[T+0]=a;break}A=n[a+0]<M[o+1]?n[a+1]<M[o+2]?M[o+5]:M[o+5]+9:n[a+1]<M[o+2]?M[o+5]+18:M[o+5]+27,M[o+7]=(M[o+7]*M[o+6]+n[a+0]*n[a+6])/(M[o+6]+n[a+6]),M[o+8]=(M[o+8]*M[o+6]+n[a+1]*n[a+6])/(M[o+6]+n[a+6]),M[o+6]+=n[a+6],o=A}}if(e.barnesHutOptimize){for(m=e.scalingRatio,a=0;a<k;a+=t)for(o=0;;)if(M[o+5]>=0){if(b=Math.pow(n[a+0]-M[o+7],2)+Math.pow(n[a+1]-M[o+8],2),4*(p=M[o+3])*p/b<P){if(g=n[a+0]-M[o+7],v=n[a+1]-M[o+8],!0===R?b>0?(x=m*n[a+6]*M[o+6]/b,n[a+2]+=g*x,n[a+3]+=v*x):b<0&&(x=-m*n[a+6]*M[o+6]/Math.sqrt(b),n[a+2]+=g*x,n[a+3]+=v*x):b>0&&(x=m*n[a+6]*M[o+6]/b,n[a+2]+=g*x,n[a+3]+=v*x),(o=M[o+4])<0)break;continue}o=M[o+5]}else if((c=M[o+0])>=0&&c!==a&&(b=(g=n[a+0]-n[c+0])*g+(v=n[a+1]-n[c+1])*v,!0===R?b>0?(x=m*n[a+6]*n[c+6]/b,n[a+2]+=g*x,n[a+3]+=v*x):b<0&&(x=-m*n[a+6]*n[c+6]/Math.sqrt(b),n[a+2]+=g*x,n[a+3]+=v*x):b>0&&(x=m*n[a+6]*n[c+6]/b,n[a+2]+=g*x,n[a+3]+=v*x)),(o=M[o+4])<0)break}else for(m=e.scalingRatio,s=0;s<k;s+=t)for(l=0;l<s;l+=t)g=n[s+0]-n[l+0],v=n[s+1]-n[l+1],!0===R?(b=Math.sqrt(g*g+v*v)-n[s+8]-n[l+8])>0?(x=m*n[s+6]*n[l+6]/b/b,n[s+2]+=g*x,n[s+3]+=v*x,n[l+2]-=g*x,n[l+3]-=v*x):b<0&&(x=100*m*n[s+6]*n[l+6],n[s+2]+=g*x,n[s+3]+=v*x,n[l+2]-=g*x,n[l+3]-=v*x):(b=Math.sqrt(g*g+v*v))>0&&(x=m*n[s+6]*n[l+6]/b/b,n[s+2]+=g*x,n[s+3]+=v*x,n[l+2]-=g*x,n[l+3]-=v*x);for(f=e.gravity/e.scalingRatio,m=e.scalingRatio,a=0;a<k;a+=t)x=0,g=n[a+0],v=n[a+1],b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.strongGravityMode?b>0&&(x=m*n[a+6]*f):b>0&&(x=m*n[a+6]*f/b),n[a+2]-=g*x,n[a+3]-=v*x;for(m=1*(e.outboundAttractionDistribution?h:1),u=0;u<L;u+=3)s=r[u+0],l=r[u+1],d=r[u+2],y=Math.pow(d,e.edgeWeightInfluence),g=n[s+0]-n[l+0],v=n[s+1]-n[l+1],!0===R?(b=Math.sqrt(g*g+v*v)-n[s+8]-n[l+8],e.linLogMode?e.outboundAttractionDistribution?b>0&&(x=-m*y*Math.log(1+b)/b/n[s+6]):b>0&&(x=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?b>0&&(x=-m*y/n[s+6]):b>0&&(x=-m*y)):(b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.linLogMode?e.outboundAttractionDistribution?b>0&&(x=-m*y*Math.log(1+b)/b/n[s+6]):b>0&&(x=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?(b=1,x=-m*y/n[s+6]):(b=1,x=-m*y)),b>0&&(n[s+2]+=g*x,n[s+3]+=v*x,n[l+2]-=g*x,n[l+3]-=v*x);if(!0===R)for(a=0;a<k;a+=t)1!==n[a+9]&&((w=Math.sqrt(Math.pow(n[a+2],2)+Math.pow(n[a+3],2)))>10&&(n[a+2]=10*n[a+2]/w,n[a+3]=10*n[a+3]/w),E=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,S=.1*Math.log(1+_)/(1+Math.sqrt(E)),C=n[a+0]+n[a+2]*(S/e.slowDown),n[a+0]=C,O=n[a+1]+n[a+3]*(S/e.slowDown),n[a+1]=O);else for(a=0;a<k;a+=t)1!==n[a+9]&&(E=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,S=n[a+7]*Math.log(1+_)/(1+Math.sqrt(E)),n[a+7]=Math.min(1,Math.sqrt(S*(Math.pow(n[a+2],2)+Math.pow(n[a+3],2))/(1+Math.sqrt(E)))),C=n[a+0]+n[a+2]*(S/e.slowDown),n[a+0]=C,O=n[a+1]+n[a+3]*(S/e.slowDown),n[a+1]=O);return{}}},1026:e=>{e.exports=function(){var e,t,n,r={};n=10,r.exports=function(e,t,r){var i,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,x,w,E,_,S,C,O,k=t.length,L=r.length,R=e.adjustSizes,P=e.barnesHutTheta*e.barnesHutTheta,M=[];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(h=0,a=0;a<k;a+=n)h+=t[a+6];h/=k/n}if(e.barnesHutOptimize){var A,T,D,z=1/0,F=-1/0,N=1/0,I=-1/0;for(a=0;a<k;a+=n)z=Math.min(z,t[a+0]),F=Math.max(F,t[a+0]),N=Math.min(N,t[a+1]),I=Math.max(I,t[a+1]);var j=F-z,B=I-N;for(j>B?I=(N-=(j-B)/2)+j:F=(z-=(B-j)/2)+B,M[0]=-1,M[1]=(z+F)/2,M[2]=(N+I)/2,M[3]=Math.max(F-z,I-N),M[4]=-1,M[5]=-1,M[6]=0,M[7]=0,M[8]=0,i=1,a=0;a<k;a+=n)for(o=0,D=3;;){if(!(M[o+5]>=0)){if(M[o+0]<0){M[o+0]=a;break}if(M[o+5]=9*i,d=M[o+3]/2,M[(f=M[o+5])+0]=-1,M[f+1]=M[o+1]-d,M[f+2]=M[o+2]-d,M[f+3]=d,M[f+4]=f+9,M[f+5]=-1,M[f+6]=0,M[f+7]=0,M[f+8]=0,M[(f+=9)+0]=-1,M[f+1]=M[o+1]-d,M[f+2]=M[o+2]+d,M[f+3]=d,M[f+4]=f+9,M[f+5]=-1,M[f+6]=0,M[f+7]=0,M[f+8]=0,M[(f+=9)+0]=-1,M[f+1]=M[o+1]+d,M[f+2]=M[o+2]-d,M[f+3]=d,M[f+4]=f+9,M[f+5]=-1,M[f+6]=0,M[f+7]=0,M[f+8]=0,M[(f+=9)+0]=-1,M[f+1]=M[o+1]+d,M[f+2]=M[o+2]+d,M[f+3]=d,M[f+4]=M[o+4],M[f+5]=-1,M[f+6]=0,M[f+7]=0,M[f+8]=0,i+=4,A=t[M[o+0]+0]<M[o+1]?t[M[o+0]+1]<M[o+2]?M[o+5]:M[o+5]+9:t[M[o+0]+1]<M[o+2]?M[o+5]+18:M[o+5]+27,M[o+6]=t[M[o+0]+6],M[o+7]=t[M[o+0]+0],M[o+8]=t[M[o+0]+1],M[A+0]=M[o+0],M[o+0]=-1,A===(T=t[a+0]<M[o+1]?t[a+1]<M[o+2]?M[o+5]:M[o+5]+9:t[a+1]<M[o+2]?M[o+5]+18:M[o+5]+27)){if(D--){o=A;continue}D=3;break}M[T+0]=a;break}A=t[a+0]<M[o+1]?t[a+1]<M[o+2]?M[o+5]:M[o+5]+9:t[a+1]<M[o+2]?M[o+5]+18:M[o+5]+27,M[o+7]=(M[o+7]*M[o+6]+t[a+0]*t[a+6])/(M[o+6]+t[a+6]),M[o+8]=(M[o+8]*M[o+6]+t[a+1]*t[a+6])/(M[o+6]+t[a+6]),M[o+6]+=t[a+6],o=A}}if(e.barnesHutOptimize){for(m=e.scalingRatio,a=0;a<k;a+=n)for(o=0;;)if(M[o+5]>=0){if(b=Math.pow(t[a+0]-M[o+7],2)+Math.pow(t[a+1]-M[o+8],2),4*(p=M[o+3])*p/b<P){if(g=t[a+0]-M[o+7],v=t[a+1]-M[o+8],!0===R?b>0?(x=m*t[a+6]*M[o+6]/b,t[a+2]+=g*x,t[a+3]+=v*x):b<0&&(x=-m*t[a+6]*M[o+6]/Math.sqrt(b),t[a+2]+=g*x,t[a+3]+=v*x):b>0&&(x=m*t[a+6]*M[o+6]/b,t[a+2]+=g*x,t[a+3]+=v*x),(o=M[o+4])<0)break;continue}o=M[o+5]}else if((c=M[o+0])>=0&&c!==a&&(b=(g=t[a+0]-t[c+0])*g+(v=t[a+1]-t[c+1])*v,!0===R?b>0?(x=m*t[a+6]*t[c+6]/b,t[a+2]+=g*x,t[a+3]+=v*x):b<0&&(x=-m*t[a+6]*t[c+6]/Math.sqrt(b),t[a+2]+=g*x,t[a+3]+=v*x):b>0&&(x=m*t[a+6]*t[c+6]/b,t[a+2]+=g*x,t[a+3]+=v*x)),(o=M[o+4])<0)break}else for(m=e.scalingRatio,s=0;s<k;s+=n)for(l=0;l<s;l+=n)g=t[s+0]-t[l+0],v=t[s+1]-t[l+1],!0===R?(b=Math.sqrt(g*g+v*v)-t[s+8]-t[l+8])>0?(x=m*t[s+6]*t[l+6]/b/b,t[s+2]+=g*x,t[s+3]+=v*x,t[l+2]-=g*x,t[l+3]-=v*x):b<0&&(x=100*m*t[s+6]*t[l+6],t[s+2]+=g*x,t[s+3]+=v*x,t[l+2]-=g*x,t[l+3]-=v*x):(b=Math.sqrt(g*g+v*v))>0&&(x=m*t[s+6]*t[l+6]/b/b,t[s+2]+=g*x,t[s+3]+=v*x,t[l+2]-=g*x,t[l+3]-=v*x);for(f=e.gravity/e.scalingRatio,m=e.scalingRatio,a=0;a<k;a+=n)x=0,g=t[a+0],v=t[a+1],b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.strongGravityMode?b>0&&(x=m*t[a+6]*f):b>0&&(x=m*t[a+6]*f/b),t[a+2]-=g*x,t[a+3]-=v*x;for(m=1*(e.outboundAttractionDistribution?h:1),u=0;u<L;u+=3)s=r[u+0],l=r[u+1],d=r[u+2],y=Math.pow(d,e.edgeWeightInfluence),g=t[s+0]-t[l+0],v=t[s+1]-t[l+1],!0===R?(b=Math.sqrt(g*g+v*v)-t[s+8]-t[l+8],e.linLogMode?e.outboundAttractionDistribution?b>0&&(x=-m*y*Math.log(1+b)/b/t[s+6]):b>0&&(x=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?b>0&&(x=-m*y/t[s+6]):b>0&&(x=-m*y)):(b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.linLogMode?e.outboundAttractionDistribution?b>0&&(x=-m*y*Math.log(1+b)/b/t[s+6]):b>0&&(x=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?(b=1,x=-m*y/t[s+6]):(b=1,x=-m*y)),b>0&&(t[s+2]+=g*x,t[s+3]+=v*x,t[l+2]-=g*x,t[l+3]-=v*x);if(!0===R)for(a=0;a<k;a+=n)1!==t[a+9]&&((w=Math.sqrt(Math.pow(t[a+2],2)+Math.pow(t[a+3],2)))>10&&(t[a+2]=10*t[a+2]/w,t[a+3]=10*t[a+3]/w),E=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,S=.1*Math.log(1+_)/(1+Math.sqrt(E)),C=t[a+0]+t[a+2]*(S/e.slowDown),t[a+0]=C,O=t[a+1]+t[a+3]*(S/e.slowDown),t[a+1]=O);else for(a=0;a<k;a+=n)1!==t[a+9]&&(E=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,S=t[a+7]*Math.log(1+_)/(1+Math.sqrt(E)),t[a+7]=Math.min(1,Math.sqrt(S*(Math.pow(t[a+2],2)+Math.pow(t[a+3],2))/(1+Math.sqrt(E)))),C=t[a+0]+t[a+2]*(S/e.slowDown),t[a+0]=C,O=t[a+1]+t[a+3]*(S/e.slowDown),t[a+1]=O);return{}};var i=r.exports;self.addEventListener("message",(function(n){var r=n.data;e=new Float32Array(r.nodes),r.edges&&(t=new Float32Array(r.edges)),i(r.settings,e,t),self.postMessage({nodes:e.buffer},[e.buffer])}))}},8301:(e,t,n)=>{var r=n(1026),i=n(1880),o=n(4363).Q6,a=n(6061),s=n(9869);function l(e,t){if(t=t||{},!i(e))throw new Error("graphology-layout-forceatlas2/worker: the given graph is not a valid graphology instance.");var n=o("getEdgeWeight"in t?t.getEdgeWeight:"weight").fromEntry,r=a.assign({},s,t.settings),l=a.validateSettings(r);if(l)throw new Error("graphology-layout-forceatlas2/worker: "+l.message);this.worker=null,this.graph=e,this.settings=r,this.getEdgeWeight=n,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,u=this;this.handleGraphUpdate=function(){u.worker&&u.worker.terminate(),c&&clearTimeout(c),c=setTimeout((function(){c=void 0,u.spawnWorker()}),0)},e.on("nodeAdded",this.handleGraphUpdate),e.on("edgeAdded",this.handleGraphUpdate),e.on("nodeDropped",this.handleGraphUpdate),e.on("edgeDropped",this.handleGraphUpdate),this.spawnWorker()}l.prototype.isRunning=function(){return this.running},l.prototype.spawnWorker=function(){this.worker&&this.worker.terminate(),this.worker=a.createWorker(r),this.worker.addEventListener("message",this.handleMessage),this.running&&(this.running=!1,this.start())},l.prototype.handleMessage=function(e){if(this.running){var t=new Float32Array(e.data.nodes);a.assignLayoutChanges(this.graph,t,this.outputReducer),this.outputReducer&&a.readGraphPositions(this.graph,t),this.matrices.nodes=t,this.askForIterations()}},l.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},l.prototype.start=function(){if(this.killed)throw new Error("graphology-layout-forceatlas2/worker.start: layout was killed.");return this.running||(this.matrices=a.graphToByteArrays(this.graph,this.getEdgeWeight),this.running=!0,this.askForIterations(!0)),this},l.prototype.stop=function(){return this.running=!1,this},l.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=l},8833:(e,t,n)=>{var r=n(6586),i=n(1880),o={dimensions:["x","y"],center:.5,scale:1};function a(e,t,n){if(!i(t))throw new Error("graphology-layout/random: the given graph is not a valid graphology instance.");var a=(n=r(n,o)).dimensions;if(!Array.isArray(a)||2!==a.length)throw new Error("graphology-layout/random: given dimensions are invalid.");var s=n.center,l=n.scale,c=2*Math.PI,u=(s-.5)*l,d=t.order,f=a[0],p=a[1];function h(e,t){return t[f]=l*Math.cos(e*c/d)+u,t[p]=l*Math.sin(e*c/d)+u,t}var m=0;if(!e){var g={};return t.forEachNode((function(e){g[e]=h(m++,{})})),g}t.updateEachNodeAttributes((function(e,t){return h(m++,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,i={};for(var o in n){var a=t[o],s=n[o];!(r=s)||"object"!=typeof r||"function"==typeof r||Array.isArray(r)||r instanceof Set||r instanceof Map||r instanceof RegExp||r instanceof Date?i[o]=void 0===a?s:a:i[o]=e(a,s)}return i}},4363:(e,t)=>{function n(e){return"number"!=typeof e||isNaN(e)?1:e}t.Q6=function(e){return function(e,t){var n={},r=function(e){return void 0===e?t:e};"function"==typeof t&&(r=t);var i=function(t){return r(t[e])},o=function(){return r(void 0)};return"string"==typeof e?(n.fromAttributes=i,n.fromGraph=function(e,t){return i(e.getEdgeAttributes(t))},n.fromEntry=function(e,t){return i(t)},n.fromPartialEntry=n.fromEntry,n.fromMinimalEntry=n.fromEntry):"function"==typeof e?(n.fromAttributes=function(){throw new Error("graphology-utils/getters/createEdgeValueGetter: irrelevant usage.")},n.fromGraph=function(t,n){var i=t.extremities(n);return r(e(n,t.getEdgeAttributes(n),i[0],i[1],t.getNodeAttributes(i[0]),t.getNodeAttributes(i[1]),t.isUndirected(n)))},n.fromEntry=function(t,n,i,o,a,s,l){return r(e(t,n,i,o,a,s,l))},n.fromPartialEntry=function(t,n,i,o){return r(e(t,n,i,o))},n.fromMinimalEntry=function(t,n){return r(e(t,n))}):(n.fromAttributes=o,n.fromGraph=o,n.fromEntry=o,n.fromMinimalEntry=o),n}(e,n)}},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.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t,n){return i=function(){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}}()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},i.apply(null,arguments)}function o(e){var t="function"==typeof Map?new Map:void 0;return o=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)},o(e)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var s=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 l(e,t,n,r){var i=e._nodes.get(t),o=null;return i?o="mixed"===r?i.out&&i.out[n]||i.undirected&&i.undirected[n]:"directed"===r?i.out&&i.out[n]:i.undirected&&i.undirected[n]:o}function c(t){return"object"===e(t)&&null!==t&&t.constructor===Object}function u(e){var t;for(t in e)return!1;return!0}function d(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!1,writable:!0,value:n})}function f(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 p(e){return!(!c(e)||e.attributes&&!Array.isArray(e.attributes))}"function"==typeof Object.assign&&(s=Object.assign);var h,m={exports:{}},g="object"==typeof Reflect?Reflect:null,v=g&&"function"==typeof g.apply?g.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};h=g&&"function"==typeof g.ownKeys?g.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var y=Number.isNaN||function(e){return e!=e};function b(){b.init.call(this)}m.exports=b,m.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}R(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&R(e,"error",t,{once:!0})}(e,i)}))},b.EventEmitter=b,b.prototype._events=void 0,b.prototype._eventsCount=0,b.prototype._maxListeners=void 0;var x=10;function w(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function E(e){return void 0===e._maxListeners?b.defaultMaxListeners:e._maxListeners}function _(e,t,n,r){var i,o,a,s;if(w(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=E(e))>0&&a.length>i&&!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,s=l,console&&console.warn&&console.warn(s)}return e}function S(){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 C(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=S.bind(r);return i.listener=n,r.wrapFn=i,i}function O(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]: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}(i):L(i,i.length)}function k(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 R(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 i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}function P(e){if("function"!=typeof e)throw new Error("obliterator/iterator: expecting a function!");this.next=e}Object.defineProperty(b,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(e){if("number"!=typeof e||e<0||y(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");x=e}}),b.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},b.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||y(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},b.prototype.getMaxListeners=function(){return E(this)},b.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)v(s,this,t);else{var l=s.length,c=L(s,l);for(n=0;n<l;++n)v(c[n],this,t)}return!0},b.prototype.addListener=function(e,t){return _(this,e,t,!1)},b.prototype.on=b.prototype.addListener,b.prototype.prependListener=function(e,t){return _(this,e,t,!0)},b.prototype.once=function(e,t){return w(t),this.on(e,C(this,e,t)),this},b.prototype.prependOnceListener=function(e,t){return w(t),this.prependListener(e,C(this,e,t)),this},b.prototype.removeListener=function(e,t){var n,r,i,o,a;if(w(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(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},b.prototype.off=b.prototype.removeListener,b.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 i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);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},b.prototype.listeners=function(e){return O(this,e,!0)},b.prototype.rawListeners=function(e){return O(this,e,!1)},b.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):k.call(e,t)},b.prototype.listenerCount=k,b.prototype.eventNames=function(){return this._eventsCount>0?h(this._events):[]},"undefined"!=typeof Symbol&&(P.prototype[Symbol.iterator]=function(){return this}),P.of=function(){var e=arguments,t=e.length,n=0;return new P((function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}}))},P.empty=function(){return new P((function(){return{done:!0}}))},P.fromSequence=function(e){var t=0,n=e.length;return new P((function(){return t>=n?{done:!0}:{done:!1,value:e[t++]}}))},P.is=function(e){return e instanceof P||"object"==typeof e&&null!==e&&"function"==typeof e.next};var M=P,A={};A.ARRAY_BUFFER_SUPPORT="undefined"!=typeof ArrayBuffer,A.SYMBOL_SUPPORT="undefined"!=typeof Symbol;var T=M,D=A,z=D.ARRAY_BUFFER_SUPPORT,F=D.SYMBOL_SUPPORT,N=function(e){var t=function(e){return"string"==typeof e||Array.isArray(e)||z&&ArrayBuffer.isView(e)?T.fromSequence(e):"object"!=typeof e||null===e?null:F&&"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},I=N,j=function(e,t){for(var n,r=arguments.length>1?t:1/0,i=r!==1/0?new Array(r):[],o=0,a=I(e);;){if(o===r)return i;if((n=a.next()).done)return o!==t&&(i.length=o),i;i[o++]=n.value}},B=function(e){function n(t){var n;return(n=e.call(this)||this).name="GraphError",n.message=t,n}return t(n,e),n}(o(Error)),G=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="InvalidArgumentsGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a(r),n.prototype.constructor),r}return t(n,e),n}(B),U=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="NotFoundGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a(r),n.prototype.constructor),r}return t(n,e),n}(B),H=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="UsageGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a(r),n.prototype.constructor),r}return t(n,e),n}(B);function V(e,t){this.key=e,this.attributes=t,this.clear()}function W(e,t){this.key=e,this.attributes=t,this.clear()}function q(e,t){this.key=e,this.attributes=t,this.clear()}function $(e,t,n,r,i){this.key=t,this.attributes=i,this.undirected=e,this.source=n,this.target=r}function Z(e,t,n,r,i,o,a){var s,l,c,u;if(r=""+r,0===n){if(!(s=e._nodes.get(r)))throw new U("Graph.".concat(t,': could not find the "').concat(r,'" node in the graph.'));c=i,u=o}else if(3===n){if(i=""+i,!(l=e._edges.get(i)))throw new U("Graph.".concat(t,': could not find the "').concat(i,'" edge in the graph.'));var d=l.source.key,f=l.target.key;if(r===d)s=l.target;else{if(r!==f)throw new U("Graph.".concat(t,': the "').concat(r,'" node is not attached to the "').concat(i,'" edge (').concat(d,", ").concat(f,")."));s=l.source}c=o,u=a}else{if(!(l=e._edges.get(r)))throw new U("Graph.".concat(t,': could not find the "').concat(r,'" edge in the graph.'));s=1===n?l.source:l.target,c=i,u=o}return[s,c,u]}V.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.undirectedDegree=0,this.undirectedLoops=0,this.directedLoops=0,this.in={},this.out={},this.undirected={}},W.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.directedLoops=0,this.in={},this.out={}},q.prototype.clear=function(){this.undirectedDegree=0,this.undirectedLoops=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 i=this.source[e],o=i[r];if(void 0===o)return i[r]=this,void(this.undirected&&n===r||(this.target[t][n]=this));o.previous=this,this.next=o,i[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 Y=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[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,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[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,i,o){var a=Z(this,t,n,e,r,i,o),s=a[0],l=a[1],c=a[2];return s.attributes[l]=c,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:l}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i,o){var a=Z(this,t,n,e,r,i,o),s=a[0],l=a[1],c=a[2];if("function"!=typeof c)throw new G("Graph.".concat(t,": updater should be a function."));var u=s.attributes,d=c(u[l]);return u[l]=d,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:l}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[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,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[1];if(!c(s))throw new G("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,i){var o=Z(this,t,n,e,r,i),a=o[0],l=o[1];if(!c(l))throw new G("Graph.".concat(t,": provided attributes are not a plain object."));return s(a.attributes,l),this.emit("nodeAttributesUpdated",{key:a.key,type:"merge",attributes:a.attributes,data:l}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[1];if("function"!=typeof s)throw new G("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}}}],X=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new H("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new H("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,a=""+r;if(r=arguments[2],!(i=l(this,o,a,n)))throw new U("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new H("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 U("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return i.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 H("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>1){if(this.multi)throw new H("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,o=""+arguments[1];if(!(r=l(this,i,o,n)))throw new U("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(o,'").'))}else{if("mixed"!==n)throw new H("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 U("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 i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new H("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new H("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,a=""+r;if(r=arguments[2],!(i=l(this,o,a,n)))throw new U("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new H("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 U("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return i.attributes.hasOwnProperty(r)}}},{name:function(e){return"set".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new H("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new H("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],i=arguments[3],!(o=l(this,a,s,n)))throw new U("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(s,'").'))}else{if("mixed"!==n)throw new H("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 U("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return o.attributes[r]=i,this.emit("edgeAttributesUpdated",{key:o.key,type:"set",attributes:o.attributes,name:r}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new H("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new H("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],i=arguments[3],!(o=l(this,a,s,n)))throw new U("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(s,'").'))}else{if("mixed"!==n)throw new H("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 U("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if("function"!=typeof i)throw new G("Graph.".concat(t,": updater should be a function."));return o.attributes[r]=i(o.attributes[r]),this.emit("edgeAttributesUpdated",{key:o.key,type:"set",attributes:o.attributes,name:r}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new H("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new H("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,a=""+r;if(r=arguments[2],!(i=l(this,o,a,n)))throw new U("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new H("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 U("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return delete i.attributes[r],this.emit("edgeAttributesUpdated",{key:i.key,type:"remove",attributes:i.attributes,name:r}),this}}},{name:function(e){return"replace".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new H("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new H("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,a=""+r;if(r=arguments[2],!(i=l(this,o,a,n)))throw new U("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new H("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 U("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if(!c(r))throw new G("Graph.".concat(t,": provided attributes are not a plain object."));return i.attributes=r,this.emit("edgeAttributesUpdated",{key:i.key,type:"replace",attributes:i.attributes}),this}}},{name:function(e){return"merge".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new H("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new H("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,a=""+r;if(r=arguments[2],!(i=l(this,o,a,n)))throw new U("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new H("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 U("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if(!c(r))throw new G("Graph.".concat(t,": provided attributes are not a plain object."));return s(i.attributes,r),this.emit("edgeAttributesUpdated",{key:i.key,type:"merge",attributes:i.attributes,data:r}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new H("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new H("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,a=""+r;if(r=arguments[2],!(i=l(this,o,a,n)))throw new U("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new H("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 U("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if("function"!=typeof r)throw new G("Graph.".concat(t,": provided updater is not a function."));return i.attributes=r(i.attributes),this.emit("edgeAttributesUpdated",{key:i.key,type:"update",attributes:i.attributes}),this}}}],K=M,Q=N,J=function(){var e=arguments,t=null,n=-1;return new K((function(){for(var r=null;;){if(null===t){if(++n>=e.length)return{done:!0};t=Q(e[n])}if(!0!==(r=t.next()).done)break;t=null}return r}))},ee=[{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 te(e,t,n,r){var i=!1;for(var o in t)if(o!==r){var a=t[o];if(i=n(a.key,a.attributes,a.source.key,a.target.key,a.source.attributes,a.target.attributes,a.undirected),e&&i)return a.key}}function ne(e,t,n,r){var i,o,a,s=!1;for(var l in t)if(l!==r){i=t[l];do{if(o=i.source,a=i.target,s=n(i.key,i.attributes,o.key,a.key,o.attributes,a.attributes,i.undirected),e&&s)return i.key;i=i.next}while(void 0!==i)}}function re(e,t){var n,r=Object.keys(e),i=r.length,o=0;return new M((function(){do{if(n)n=n.next;else{if(o>=i)return{done:!0};var a=r[o++];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 ie(e,t,n,r){var i=t[n];if(i){var o=i.source,a=i.target;return r(i.key,i.attributes,o.key,a.key,o.attributes,a.attributes,i.undirected)&&e?i.key:void 0}}function oe(e,t,n,r){var i=t[n];if(i){var o=!1;do{if(o=r(i.key,i.attributes,i.source.key,i.target.key,i.source.attributes,i.target.attributes,i.undirected),e&&o)return i.key;i=i.next}while(void 0!==i)}}function ae(e,t){var n=e[t];return void 0!==n.next?new M((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}})):M.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 se(e,t,n,r){if(0!==t.size)for(var i,o,a="mixed"!==n&&n!==t.type,s="undirected"===n,l=!1,c=t._edges.values();!0!==(i=c.next()).done;)if(o=i.value,!a||o.undirected===s){var u=o,d=u.key,f=u.attributes,p=u.source,h=u.target;if(l=r(d,f,p.key,h.key,p.attributes,h.attributes,o.undirected),e&&l)return d}}function le(e,t,n,r,i,o){var a,s=t?ne:te;if("undirected"!==n){if("out"!==r&&(a=s(e,i.in,o),e&&a))return a;if("in"!==r&&(a=s(e,i.out,o,r?void 0:i.key),e&&a))return a}if("directed"!==n&&(a=s(e,i.undirected,o),e&&a))return a}function ce(e,t,n,r,i,o,a){var s,l=n?oe:ie;if("undirected"!==t){if(void 0!==i.in&&"out"!==r&&(s=l(e,i.in,o,a),e&&s))return s;if(void 0!==i.out&&"in"!==r&&(r||i.key!==o)&&(s=l(e,i.out,o,a),e&&s))return s}if("directed"!==t&&void 0!==i.undirected&&(s=l(e,i.undirected,o,a),e&&s))return s}var ue=[{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 de(){this.A=null,this.B=null}function fe(e,t,n,r,i){for(var o in r){var a=r[o],s=a.source,l=a.target,c=s===n?l:s;if(!t||!t.has(c.key)){var u=i(c.key,c.attributes);if(e&&u)return c.key}}}function pe(e,t,n,r,i){if("mixed"!==t){if("undirected"===t)return fe(e,null,r,r.undirected,i);if("string"==typeof n)return fe(e,null,r,r[n],i)}var o,a=new de;if("undirected"!==t){if("out"!==n){if(o=fe(e,null,r,r.in,i),e&&o)return o;a.wrap(r.in)}if("in"!==n){if(o=fe(e,a,r,r.out,i),e&&o)return o;a.wrap(r.out)}}if("directed"!==t&&(o=fe(e,a,r,r.undirected,i),e&&o))return o}function he(e,t,n){var r=Object.keys(n),i=r.length,o=0;return new M((function(){var a=null;do{if(o>=i)return e&&e.wrap(n),{done:!0};var s=n[r[o++]],l=s.source,c=s.target;a=l===t?c:l,e&&e.has(a.key)&&(a=null)}while(null===a);return{done:!1,value:{neighbor:a.key,attributes:a.attributes}}}))}function me(e,t,n,r,i){for(var o,a,s,l,c,u,d,f=r._nodes.values(),p=r.type;!0!==(o=f.next()).done;){var h=!1;if(a=o.value,"undirected"!==p)for(s in l=a.out){c=l[s];do{if(u=c.target,h=!0,d=i(a.key,u.key,a.attributes,u.attributes,c.key,c.attributes,c.undirected),e&&d)return c;c=c.next}while(c)}if("directed"!==p)for(s in l=a.undirected)if(!(t&&a.key>s)){c=l[s];do{if((u=c.target).key!==s&&(u=c.source),h=!0,d=i(a.key,u.key,a.attributes,u.attributes,c.key,c.attributes,c.undirected),e&&d)return c;c=c.next}while(c)}if(n&&!h&&(d=i(a.key,null,a.attributes,null,null,null,null),e&&d))return null}}function ge(e){if(!c(e))throw new G('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 G("Graph.import: serialized node is missing its key.");if("attributes"in e&&(!c(e.attributes)||null===e.attributes))throw new G("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.")}function ve(e){if(!c(e))throw new G('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 G("Graph.import: serialized edge is missing its source.");if(!("target"in e))throw new G("Graph.import: serialized edge is missing its target.");if("attributes"in e&&(!c(e.attributes)||null===e.attributes))throw new G("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.");if("undirected"in e&&"boolean"!=typeof e.undirected)throw new G("Graph.import: invalid undirectedness information. Undirected should be boolean or omitted.")}de.prototype.wrap=function(e){null===this.A?this.A=e:null===this.B&&(this.B=e)},de.prototype.has=function(e){return null!==this.A&&e in this.A||null!==this.B&&e in this.B};var ye,be=(ye=255&Math.floor(256*Math.random()),function(){return ye++}),xe=new Set(["directed","undirected","mixed"]),we=new Set(["domain","_events","_eventsCount","_maxListeners"]),Ee={allowSelfLoops:!0,multi:!1,type:"mixed"};function _e(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 Se(e,t,n,r,i,o,a,s){if(!r&&"undirected"===e.type)throw new H("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 H("Graph.".concat(t,": you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead."));if(s&&!c(s))throw new G("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(s,'"'));if(o=""+o,a=""+a,s=s||{},!e.allowSelfLoops&&o===a)throw new H("Graph.".concat(t,': source & target are the same ("').concat(o,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var l=e._nodes.get(o),u=e._nodes.get(a);if(!l)throw new U("Graph.".concat(t,': source node "').concat(o,'" not found.'));if(!u)throw new U("Graph.".concat(t,': target node "').concat(a,'" not found.'));var d={key:null,undirected:r,source:o,target:a,attributes:s};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new H("Graph.".concat(t,': the "').concat(i,'" edge already exists in the graph.'));if(!e.multi&&(r?void 0!==l.undirected[a]:void 0!==l.out[a]))throw new H("Graph.".concat(t,': an edge linking "').concat(o,'" 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,i,l,u,s);e._edges.set(i,f);var p=o===a;return r?(l.undirectedDegree++,u.undirectedDegree++,p&&(l.undirectedLoops++,e._undirectedSelfLoopCount++)):(l.outDegree++,u.inDegree++,p&&(l.directedLoops++,e._directedSelfLoopCount++)),e.multi?f.attachMulti():f.attach(),r?e._undirectedSize++:e._directedSize++,d.key=i,e.emit("edgeAdded",d),i}function Ce(e,t,n,r,i,o,a,l,u){if(!r&&"undirected"===e.type)throw new H("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 H("Graph.".concat(t,": you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead."));if(l)if(u){if("function"!=typeof l)throw new G("Graph.".concat(t,': invalid updater function. Expecting a function but got "').concat(l,'"'))}else if(!c(l))throw new G("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(l,'"'));var d;if(o=""+o,a=""+a,u&&(d=l,l=void 0),!e.allowSelfLoops&&o===a)throw new H("Graph.".concat(t,': source & target are the same ("').concat(o,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var f,p,h=e._nodes.get(o),m=e._nodes.get(a);if(!n&&(f=e._edges.get(i))){if(!(f.source.key===o&&f.target.key===a||r&&f.source.key===a&&f.target.key===o))throw new H("Graph.".concat(t,': inconsistency detected when attempting to merge the "').concat(i,'" edge with "').concat(o,'" source & "').concat(a,'" target vs. ("').concat(f.source.key,'", "').concat(f.target.key,'").'));p=f}if(p||e.multi||!h||(p=r?h.undirected[a]:h.out[a]),p){var g=[p.key,!1,!1,!1];if(u?!d:!l)return g;if(u){var v=p.attributes;p.attributes=d(v),e.emit("edgeAttributesUpdated",{type:"replace",key:p.key,attributes:p.attributes})}else s(p.attributes,l),e.emit("edgeAttributesUpdated",{type:"merge",key:p.key,attributes:p.attributes,data:l});return g}l=l||{},u&&d&&(l=d(l));var y={key:null,undirected:r,source:o,target:a,attributes:l};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new H("Graph.".concat(t,': the "').concat(i,'" edge already exists in the graph.'));var b=!1,x=!1;h||(h=_e(e,o,{}),b=!0,o===a&&(m=h,x=!0)),m||(m=_e(e,a,{}),x=!0),f=new $(r,i,h,m,l),e._edges.set(i,f);var w=o===a;return r?(h.undirectedDegree++,m.undirectedDegree++,w&&(h.undirectedLoops++,e._undirectedSelfLoopCount++)):(h.outDegree++,m.inDegree++,w&&(h.directedLoops++,e._directedSelfLoopCount++)),e.multi?f.attachMulti():f.attach(),r?e._undirectedSize++:e._directedSize++,y.key=i,e.emit("edgeAdded",y),[i,!0,b,x]}function Oe(e,t){e._edges.delete(t.key);var n=t.source,r=t.target,i=t.attributes,o=t.undirected,a=n===r;o?(n.undirectedDegree--,r.undirectedDegree--,a&&(n.undirectedLoops--,e._undirectedSelfLoopCount--)):(n.outDegree--,r.inDegree--,a&&(n.directedLoops--,e._directedSelfLoopCount--)),e.multi?t.detachMulti():t.detach(),o?e._undirectedSize--:e._directedSize--,e.emit("edgeDropped",{key:t.key,attributes:i,source:n.key,target:r.key,undirected:o})}var ke=function(n){function r(e){var t;if(t=n.call(this)||this,"boolean"!=typeof(e=s({},Ee,e)).multi)throw new G("Graph.constructor: invalid 'multi' option. Expecting a boolean but got \"".concat(e.multi,'".'));if(!xe.has(e.type))throw new G('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 G("Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got \"".concat(e.allowSelfLoops,'".'));var r="mixed"===e.type?V:"directed"===e.type?W:q;d(a(t),"NodeDataClass",r);var i="geid_"+be()+"_",o=0;return d(a(t),"_attributes",{}),d(a(t),"_nodes",new Map),d(a(t),"_edges",new Map),d(a(t),"_directedSize",0),d(a(t),"_undirectedSize",0),d(a(t),"_directedSelfLoopCount",0),d(a(t),"_undirectedSelfLoopCount",0),d(a(t),"_edgeKeyGenerator",(function(){var e;do{e=i+o++}while(t._edges.has(e));return e})),d(a(t),"_options",e),we.forEach((function(e){return d(a(t),e,t[e])})),f(a(t),"order",(function(){return t._nodes.size})),f(a(t),"size",(function(){return t._edges.size})),f(a(t),"directedSize",(function(){return t._directedSize})),f(a(t),"undirectedSize",(function(){return t._undirectedSize})),f(a(t),"selfLoopCount",(function(){return t._directedSelfLoopCount+t._undirectedSelfLoopCount})),f(a(t),"directedSelfLoopCount",(function(){return t._directedSelfLoopCount})),f(a(t),"undirectedSelfLoopCount",(function(){return t._undirectedSelfLoopCount})),f(a(t),"multi",t._options.multi),f(a(t),"type",t._options.type),f(a(t),"allowSelfLoops",t._options.allowSelfLoops),f(a(t),"implementation",(function(){return"graphology"})),t}t(r,n);var i=r.prototype;return i._resetInstanceCounters=function(){this._directedSize=0,this._undirectedSize=0,this._directedSelfLoopCount=0,this._undirectedSelfLoopCount=0},i.hasNode=function(e){return this._nodes.has(""+e)},i.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 i=this._nodes.get(e);return!!i&&i.out.hasOwnProperty(t)}throw new G("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."))},i.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 i=this._nodes.get(e);return!!i&&i.undirected.hasOwnProperty(t)}throw new G("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."))},i.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);return!!r&&(void 0!==r.out&&r.out.hasOwnProperty(t)||void 0!==r.undirected&&r.undirected.hasOwnProperty(t))}throw new G("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."))},i.directedEdge=function(e,t){if("undirected"!==this.type){if(e=""+e,t=""+t,this.multi)throw new H("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 U('Graph.directedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new U('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}},i.undirectedEdge=function(e,t){if("directed"!==this.type){if(e=""+e,t=""+t,this.multi)throw new H("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 U('Graph.undirectedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new U('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}},i.edge=function(e,t){if(this.multi)throw new H("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 U('Graph.edge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new U('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},i.areDirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new U('Graph.areDirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&(t in n.in||t in n.out)},i.areOutNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new U('Graph.areOutNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.out},i.areInNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new U('Graph.areInNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.in},i.areUndirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new U('Graph.areUndirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"directed"!==this.type&&t in n.undirected},i.areNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new U('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},i.areInboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new U('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},i.areOutboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new U('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},i.inDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.inDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree},i.outDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.outDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.outDegree},i.directedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.directedDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree+t.outDegree},i.undirectedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.undirectedDegree: could not find the "'.concat(e,'" node in the graph.'));return"directed"===this.type?0:t.undirectedDegree},i.inboundDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('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},i.outboundDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('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},i.degree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('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},i.inDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.inDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree-t.directedLoops},i.outDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.outDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.outDegree-t.directedLoops},i.directedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.directedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree+t.outDegree-2*t.directedLoops},i.undirectedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.undirectedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"directed"===this.type?0:t.undirectedDegree-2*t.undirectedLoops},i.inboundDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.inboundDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var n=0,r=0;return"directed"!==this.type&&(n+=t.undirectedDegree,r+=2*t.undirectedLoops),"undirected"!==this.type&&(n+=t.inDegree,r+=t.directedLoops),n-r},i.outboundDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.outboundDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var n=0,r=0;return"directed"!==this.type&&(n+=t.undirectedDegree,r+=2*t.undirectedLoops),"undirected"!==this.type&&(n+=t.outDegree,r+=t.directedLoops),n-r},i.degreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new U('Graph.degreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var n=0,r=0;return"directed"!==this.type&&(n+=t.undirectedDegree,r+=2*t.undirectedLoops),"undirected"!==this.type&&(n+=t.inDegree+t.outDegree,r+=2*t.directedLoops),n-r},i.source=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new U('Graph.source: could not find the "'.concat(e,'" edge in the graph.'));return t.source.key},i.target=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new U('Graph.target: could not find the "'.concat(e,'" edge in the graph.'));return t.target.key},i.extremities=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new U('Graph.extremities: could not find the "'.concat(e,'" edge in the graph.'));return[t.source.key,t.target.key]},i.opposite=function(e,t){e=""+e,t=""+t;var n=this._edges.get(t);if(!n)throw new U('Graph.opposite: could not find the "'.concat(t,'" edge in the graph.'));var r=n.source.key,i=n.target.key;if(e===r)return i;if(e===i)return r;throw new U('Graph.opposite: the "'.concat(e,'" node is not attached to the "').concat(t,'" edge (').concat(r,", ").concat(i,")."))},i.hasExtremity=function(e,t){e=""+e,t=""+t;var n=this._edges.get(e);if(!n)throw new U('Graph.hasExtremity: could not find the "'.concat(e,'" edge in the graph.'));return n.source.key===t||n.target.key===t},i.isUndirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new U('Graph.isUndirected: could not find the "'.concat(e,'" edge in the graph.'));return t.undirected},i.isDirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new U('Graph.isDirected: could not find the "'.concat(e,'" edge in the graph.'));return!t.undirected},i.isSelfLoop=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new U('Graph.isSelfLoop: could not find the "'.concat(e,'" edge in the graph.'));return t.source===t.target},i.addNode=function(e,t){var n=function(e,t,n){if(n&&!c(n))throw new G('Graph.addNode: invalid attributes. Expecting an object but got "'.concat(n,'"'));if(t=""+t,n=n||{},e._nodes.has(t))throw new H('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},i.mergeNode=function(e,t){if(t&&!c(t))throw new G('Graph.mergeNode: invalid attributes. Expecting an object but got "'.concat(t,'"'));e=""+e,t=t||{};var n=this._nodes.get(e);return n?(t&&(s(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])},i.updateNode=function(e,t){if(t&&"function"!=typeof t)throw new G('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 i=t?t({}):{};return n=new this.NodeDataClass(e,i),this._nodes.set(e,n),this.emit("nodeAdded",{key:e,attributes:i}),[e,!0]},i.dropNode=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new U('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{Oe(this,t),t=t.next}while(t)}for(var i in n.in){t=n.in[i];do{Oe(this,t),t=t.next}while(t)}}if("directed"!==this.type)for(var o in n.undirected){t=n.undirected[o];do{Oe(this,t),t=t.next}while(t)}this._nodes.delete(e),this.emit("nodeDropped",{key:e,attributes:n.attributes})},i.dropEdge=function(e){var t;if(arguments.length>1){var n=""+arguments[0],r=""+arguments[1];if(!(t=l(this,n,r,this.type)))throw new U('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 U('Graph.dropEdge: could not find the "'.concat(e,'" edge in the graph.'));return Oe(this,t),this},i.dropDirectedEdge=function(e,t){if(arguments.length<2)throw new H("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 H("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=l(this,e=""+e,t=""+t,"directed");if(!n)throw new U('Graph.dropDirectedEdge: could not find a "'.concat(e,'" -> "').concat(t,'" edge in the graph.'));return Oe(this,n),this},i.dropUndirectedEdge=function(e,t){if(arguments.length<2)throw new H("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 H("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=l(this,e,t,"undirected");if(!n)throw new U('Graph.dropUndirectedEdge: could not find a "'.concat(e,'" -> "').concat(t,'" edge in the graph.'));return Oe(this,n),this},i.clear=function(){this._edges.clear(),this._nodes.clear(),this._resetInstanceCounters(),this.emit("cleared")},i.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")},i.getAttribute=function(e){return this._attributes[e]},i.getAttributes=function(){return this._attributes},i.hasAttribute=function(e){return this._attributes.hasOwnProperty(e)},i.setAttribute=function(e,t){return this._attributes[e]=t,this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:e}),this},i.updateAttribute=function(e,t){if("function"!=typeof t)throw new G("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},i.removeAttribute=function(e){return delete this._attributes[e],this.emit("attributesUpdated",{type:"remove",attributes:this._attributes,name:e}),this},i.replaceAttributes=function(e){if(!c(e))throw new G("Graph.replaceAttributes: provided attributes are not a plain object.");return this._attributes=e,this.emit("attributesUpdated",{type:"replace",attributes:this._attributes}),this},i.mergeAttributes=function(e){if(!c(e))throw new G("Graph.mergeAttributes: provided attributes are not a plain object.");return s(this._attributes,e),this.emit("attributesUpdated",{type:"merge",attributes:this._attributes,data:e}),this},i.updateAttributes=function(e){if("function"!=typeof e)throw new G("Graph.updateAttributes: provided updater is not a function.");return this._attributes=e(this._attributes),this.emit("attributesUpdated",{type:"update",attributes:this._attributes}),this},i.updateEachNodeAttributes=function(e,t){if("function"!=typeof e)throw new G("Graph.updateEachNodeAttributes: expecting an updater function.");if(t&&!p(t))throw new G("Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,i=this._nodes.values();!0!==(n=i.next()).done;)(r=n.value).attributes=e(r.key,r.attributes);this.emit("eachNodeAttributesUpdated",{hints:t||null})},i.updateEachEdgeAttributes=function(e,t){if("function"!=typeof e)throw new G("Graph.updateEachEdgeAttributes: expecting an updater function.");if(t&&!p(t))throw new G("Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,i,o,a=this._edges.values();!0!==(n=a.next()).done;)i=(r=n.value).source,o=r.target,r.attributes=e(r.key,r.attributes,i.key,o.key,i.attributes,o.attributes,r.undirected);this.emit("eachEdgeAttributesUpdated",{hints:t||null})},i.forEachAdjacencyEntry=function(e){if("function"!=typeof e)throw new G("Graph.forEachAdjacencyEntry: expecting a callback.");me(!1,!1,!1,this,e)},i.forEachAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new G("Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.");me(!1,!1,!0,this,e)},i.forEachAssymetricAdjacencyEntry=function(e){if("function"!=typeof e)throw new G("Graph.forEachAssymetricAdjacencyEntry: expecting a callback.");me(!1,!0,!1,this,e)},i.forEachAssymetricAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new G("Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.");me(!1,!0,!0,this,e)},i.nodes=function(){return"function"==typeof Array.from?Array.from(this._nodes.keys()):j(this._nodes.keys(),this._nodes.size)},i.forEachNode=function(e){if("function"!=typeof e)throw new G("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)},i.findNode=function(e){if("function"!=typeof e)throw new G("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},i.mapNodes=function(e){if("function"!=typeof e)throw new G("Graph.mapNode: expecting a callback.");for(var t,n,r=this._nodes.values(),i=new Array(this.order),o=0;!0!==(t=r.next()).done;)n=t.value,i[o++]=e(n.key,n.attributes);return i},i.someNode=function(e){if("function"!=typeof e)throw new G("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},i.everyNode=function(e){if("function"!=typeof e)throw new G("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},i.filterNodes=function(e){if("function"!=typeof e)throw new G("Graph.filterNodes: expecting a callback.");for(var t,n,r=this._nodes.values(),i=[];!0!==(t=r.next()).done;)e((n=t.value).key,n.attributes)&&i.push(n.key);return i},i.reduceNodes=function(e,t){if("function"!=typeof e)throw new G("Graph.reduceNodes: expecting a callback.");if(arguments.length<2)throw new G("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,i=t,o=this._nodes.values();!0!==(n=o.next()).done;)i=e(i,(r=n.value).key,r.attributes);return i},i.nodeEntries=function(){var e=this._nodes.values();return new M((function(){var t=e.next();if(t.done)return t;var n=t.value;return{value:{node:n.key,attributes:n.attributes},done:!1}}))},i.export=function(){var e=this,t=new Array(this._nodes.size),n=0;this._nodes.forEach((function(e,r){t[n++]=function(e,t){var n={key:e};return u(t.attributes)||(n.attributes=s({},t.attributes)),n}(r,e)}));var r=new Array(this._edges.size);return n=0,this._edges.forEach((function(t,i){r[n++]=function(e,t,n){var r={key:t,source:n.source.key,target:n.target.key};return u(n.attributes)||(r.attributes=s({},n.attributes)),"mixed"===e&&n.undirected&&(r.undirected=!0),r}(e.type,i,t)})),{options:{type:this.type,multi:this.multi,allowSelfLoops:this.allowSelfLoops},attributes:this.getAttributes(),nodes:t,edges:r}},i.import=function(e){var t,n,i,o,a,s=this,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof r)return e.forEachNode((function(e,t){l?s.mergeNode(e,t):s.addNode(e,t)})),e.forEachEdge((function(e,t,n,r,i,o,a){l?a?s.mergeUndirectedEdgeWithKey(e,n,r,t):s.mergeDirectedEdgeWithKey(e,n,r,t):a?s.addUndirectedEdgeWithKey(e,n,r,t):s.addDirectedEdgeWithKey(e,n,r,t)})),this;if(!c(e))throw new G("Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.");if(e.attributes){if(!c(e.attributes))throw new G("Graph.import: invalid attributes. Expecting a plain object.");l?this.mergeAttributes(e.attributes):this.replaceAttributes(e.attributes)}if(e.nodes){if(i=e.nodes,!Array.isArray(i))throw new G("Graph.import: invalid nodes. Expecting an array.");for(t=0,n=i.length;t<n;t++){ge(o=i[t]);var u=o,d=u.key,f=u.attributes;l?this.mergeNode(d,f):this.addNode(d,f)}}if(e.edges){var p=!1;if("undirected"===this.type&&(p=!0),i=e.edges,!Array.isArray(i))throw new G("Graph.import: invalid edges. Expecting an array.");for(t=0,n=i.length;t<n;t++){ve(a=i[t]);var h=a,m=h.source,g=h.target,v=h.attributes,y=h.undirected,b=void 0===y?p:y;"key"in a?(l?b?this.mergeUndirectedEdgeWithKey:this.mergeDirectedEdgeWithKey:b?this.addUndirectedEdgeWithKey:this.addDirectedEdgeWithKey).call(this,a.key,m,g,v):(l?b?this.mergeUndirectedEdge:this.mergeDirectedEdge:b?this.addUndirectedEdge:this.addDirectedEdge).call(this,m,g,v)}}return this},i.nullCopy=function(e){var t=new r(s({},this._options,e));return t.replaceAttributes(s({},this.getAttributes())),t},i.emptyCopy=function(e){var t=this.nullCopy(e);return this._nodes.forEach((function(e,n){var r=s({},e.attributes);e=new t.NodeDataClass(n,r),t._nodes.set(n,e)})),t},i.copy=function(e){if("string"==typeof(e=e||{}).type&&e.type!==this.type&&"mixed"!==e.type)throw new H('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 H("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 H("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),i=this._edges.values();!0!==(t=i.next()).done;)Se(r,"copy",!1,(n=t.value).undirected,n.key,n.source.key,n.target.key,s({},n.attributes));return r},i.toJSON=function(){return this.export()},i.toString=function(){return"[object Graph]"},i.inspect=function(){var t=this,n={};this._nodes.forEach((function(e,t){n[t]=e.attributes}));var r={},i={};this._edges.forEach((function(e,n){var o,a=e.undirected?"--":"->",s="",l=e.source.key,c=e.target.key;e.undirected&&l>c&&(o=l,l=c,c=o);var u="(".concat(l,")").concat(a,"(").concat(c,")");n.startsWith("geid_")?t.multi&&(void 0===i[u]?i[u]=0:i[u]++,s+="".concat(i[u],". ")):s+="[".concat(n,"]: "),r[s+=u]=e.attributes}));var o={};for(var a in this)this.hasOwnProperty(a)&&!we.has(a)&&"function"!=typeof this[a]&&"symbol"!==e(a)&&(o[a]=this[a]);return o.attributes=this._attributes,o.nodes=n,o.edges=r,d(o,"constructor",this.constructor),o},r}(m.exports.EventEmitter);"undefined"!=typeof Symbol&&(ke.prototype[Symbol.for("nodejs.util.inspect.custom")]=ke.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?Se:Ce;e.generateKey?ke.prototype[n]=function(i,o,a){return r(this,n,!0,"undirected"===(e.type||this.type),null,i,o,a,"update"===t)}:ke.prototype[n]=function(i,o,a,s){return r(this,n,!1,"undirected"===(e.type||this.type),i,o,a,s,"update"===t)}}))})),function(e){Y.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)}))}(ke),function(e){X.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")}))}(ke),function(e){ee.forEach((function(t){!function(e,t){var n=t.name,r=t.type,i=t.direction;e.prototype[n]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return[];if(!arguments.length)return function(e,t){if(0===e.size)return[];if("mixed"===t||t===e.type)return"function"==typeof Array.from?Array.from(e._edges.keys()):j(e._edges.keys(),e._edges.size);for(var n,r,i="undirected"===t?e.undirectedSize:e.directedSize,o=new Array(i),a="undirected"===t,s=e._edges.values(),l=0;!0!==(n=s.next()).done;)(r=n.value).undirected===a&&(o[l++]=r.key);return o}(this,r);if(1===arguments.length){e=""+e;var o=this._nodes.get(e);if(void 0===o)throw new U("Graph.".concat(n,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n,r){var i=[];return le(!1,e,t,n,r,(function(e){i.push(e)})),i}(this.multi,"mixed"===r?this.type:r,i,o)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new U("Graph.".concat(n,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new U("Graph.".concat(n,': could not find the "').concat(t,'" target node in the graph.'));return function(e,t,n,r,i){var o=[];return ce(!1,e,t,n,r,i,(function(e){o.push(e)})),o}(r,this.multi,i,a,t)}throw new G("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,i=t.direction,o="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(e,t,n){if("mixed"===r||"mixed"===this.type||r===this.type){if(1===arguments.length)return se(!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 U("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return le(!1,this.multi,"mixed"===r?this.type:r,i,a,n)}if(3===arguments.length){e=""+e,t=""+t;var s=this._nodes.get(e);if(!s)throw new U("Graph.".concat(o,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new U("Graph.".concat(o,': could not find the "').concat(t,'" target node in the graph.'));return ce(!1,r,this.multi,i,s,t,n)}throw new G("Graph.".concat(o,": 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 i=0;"directed"!==r&&(i+=this.undirectedSize),"undirected"!==r&&(i+=this.directedSize),e=new Array(i);var a=0;t.push((function(t,r,i,o,s,l,c){e[a++]=n(t,r,i,o,s,l,c)}))}else e=[],t.push((function(t,r,i,o,a,s,l){e.push(n(t,r,i,o,a,s,l))}));return this[o].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,i,o,a,s,l){t(e,r,i,o,a,s,l)&&n.push(e)})),this[o].apply(this,e),n};var l="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[l]=function(){var e,t,n=Array.prototype.slice.call(arguments);if(n.length<2||n.length>4)throw new G("Graph.".concat(l,": 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 G("Graph.".concat(l,": 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,i,o,a,s,l){r=e(r,t,n,i,o,a,s,l)})),this[o].apply(this,n),r}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o="find"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(e,t,n){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return!1;if(1===arguments.length)return se(!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 U("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return le(!0,this.multi,"mixed"===r?this.type:r,i,a,n)}if(3===arguments.length){e=""+e,t=""+t;var s=this._nodes.get(e);if(!s)throw new U("Graph.".concat(o,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new U("Graph.".concat(o,': could not find the "').concat(t,'" target node in the graph.'));return ce(!0,r,this.multi,i,s,t,n)}throw new G("Graph.".concat(o,": 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,i,o,a,s){return t(e,n,r,i,o,a,s)})),!!this[o].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,i,o,a,s){return!t(e,n,r,i,o,a,s)})),!this[o].apply(this,e)}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o=n.slice(0,-1)+"Entries";e.prototype[o]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return M.empty();if(!arguments.length)return function(e,t){if(0===e.size)return M.empty();var n="mixed"!==t&&t!==e.type,r="undirected"===t,i=e._edges.values();return new M((function(){for(var e,t;;){if((e=i.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}}))}(this,r);if(1===arguments.length){e=""+e;var n=this._nodes.get(e);if(!n)throw new U("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){var r=M.empty();return"undirected"!==e&&("out"!==t&&void 0!==n.in&&(r=J(r,re(n.in))),"in"!==t&&void 0!==n.out&&(r=J(r,re(n.out,t?void 0:n.key)))),"directed"!==e&&void 0!==n.undirected&&(r=J(r,re(n.undirected))),r}(r,i,n)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new U("Graph.".concat(o,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new U("Graph.".concat(o,': could not find the "').concat(t,'" target node in the graph.'));return function(e,t,n,r){var i=M.empty();return"undirected"!==e&&(void 0!==n.in&&"out"!==t&&r in n.in&&(i=J(i,ae(n.in,r))),void 0!==n.out&&"in"!==t&&r in n.out&&(t||n.key!==r)&&(i=J(i,ae(n.out,r)))),"directed"!==e&&void 0!==n.undirected&&r in n.undirected&&(i=J(i,ae(n.undirected,r))),i}(r,i,a,t)}throw new G("Graph.".concat(o,": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length,")."))}}(e,t)}))}(ke),function(e){ue.forEach((function(t){(function(e,t){var n=t.name,r=t.type,i=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 U("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 pe(!1,e,t,n,(function(e){r.push(e)})),r}("mixed"===r?this.type:r,i,t)}})(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=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 U("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));pe(!1,"mixed"===r?this.type:r,i,n,t)}};var a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(e,t){var n=[];return this[o](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[o](e,(function(e,r){t(e,r)&&n.push(e)})),n};var l="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[l]=function(e,t,n){if(arguments.length<3)throw new G("Graph.".concat(l,": 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[o](e,(function(e,n){r=t(r,e,n)})),r}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o=n[0].toUpperCase()+n.slice(1,-1),a="find"+o;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 U("Graph.".concat(a,': could not find the "').concat(e,'" node in the graph.'));return pe(!0,"mixed"===r?this.type:r,i,n,t)}};var s="some"+o;e.prototype[s]=function(e,t){return!!this[a](e,t)};var l="every"+o;e.prototype[l]=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,i=t.direction,o=n.slice(0,-1)+"Entries";e.prototype[o]=function(e){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return M.empty();e=""+e;var t=this._nodes.get(e);if(void 0===t)throw new U("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){if("mixed"!==e){if("undirected"===e)return he(null,n,n.undirected);if("string"==typeof t)return he(null,n,n[t])}var r=M.empty(),i=new de;return"undirected"!==e&&("out"!==t&&(r=J(r,he(i,n,n.in))),"in"!==t&&(r=J(r,he(i,n,n.out)))),"directed"!==e&&(r=J(r,he(i,n,n.undirected))),r}("mixed"===r?this.type:r,i,t)}}(e,t)}))}(ke);var Le=function(e){function n(t){var n=s({type:"directed"},t);if("multi"in n&&!1!==n.multi)throw new G("DirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("directed"!==n.type)throw new G('DirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(ke),Re=function(e){function n(t){var n=s({type:"undirected"},t);if("multi"in n&&!1!==n.multi)throw new G("UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("undirected"!==n.type)throw new G('UndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(ke),Pe=function(e){function n(t){var n=s({multi:!0},t);if("multi"in n&&!0!==n.multi)throw new G("MultiGraph.from: inconsistent indication that the graph should be simple in given options!");return e.call(this,n)||this}return t(n,e),n}(ke),Me=function(e){function n(t){var n=s({type:"directed",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new G("MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("directed"!==n.type)throw new G('MultiDirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(ke),Ae=function(e){function n(t){var n=s({type:"undirected",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new G("MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("undirected"!==n.type)throw new G('MultiUndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(ke);function Te(e){e.from=function(t,n){var r=s({},t.options,n),i=new e(r);return i.import(t),i}}return Te(ke),Te(Le),Te(Re),Te(Pe),Te(Me),Te(Ae),ke.Graph=ke,ke.DirectedGraph=Le,ke.UndirectedGraph=Re,ke.MultiGraph=Pe,ke.MultiDirectedGraph=Me,ke.MultiUndirectedGraph=Ae,ke.InvalidArgumentsGraphError=G,ke.NotFoundGraphError=U,ke.UsageGraphError=H,ke}()},3463:(e,t,n)=>{"use strict";var r=n(8570),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=f(n,v);try{c(t,v,y)}catch(e){}}}}return t}},9612:(e,t,n)=>{var r=n(2118),i=n(6909),o=n(8138),a=n(4174),s=n(7942);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},235:(e,t,n)=>{var r=n(3945),i=n(1846),o=n(8028),a=n(2344),s=n(4769);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},326:(e,t,n)=>{var r=n(8761)(n(7772),"Map");e.exports=r},6738:(e,t,n)=>{var r=n(2411),i=n(6417),o=n(6928),a=n(9493),s=n(4150);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},857:(e,t,n)=>{var r=n(7772).Symbol;e.exports=r},343:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},2218:(e,t,n)=>{var r=n(1225);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},3324:(e,t,n)=>{var r=n(7297),i=n(3812);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},3366:(e,t,n)=>{var r=n(857),i=n(2107),o=n(7157),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},6840:(e,t,n)=>{var r=n(1049),i=n(7394),o=n(9259),a=n(7035),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f:s).test(a(e))}},1054:(e,t,n)=>{var r=n(857),i=n(343),o=n(6152),a=n(4795),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},1704:(e,t,n)=>{var r=n(2153),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},7297:(e,t,n)=>{var r=n(6152),i=n(1401),o=n(4452),a=n(6188);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},4019:(e,t,n)=>{var r=n(7772)["__core-js_shared__"];e.exports=r},1242:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},7937:(e,t,n)=>{var r=n(8304);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},8761:(e,t,n)=>{var r=n(6840),i=n(8109);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},2107:(e,t,n)=>{var r=n(857),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2118:(e,t,n)=>{var r=n(9191);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,n)=>{var r=n(9191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},4174:(e,t,n)=>{var r=n(9191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},7942:(e,t,n)=>{var r=n(9191);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},1401:(e,t,n)=>{var r=n(6152),i=n(4795),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},8304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,n)=>{var r,i=n(4019),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,n)=>{var r=n(2218),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},8028:(e,t,n)=>{var r=n(2218);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},2344:(e,t,n)=>{var r=n(2218);e.exports=function(e){return r(this.__data__,e)>-1}},4769:(e,t,n)=>{var r=n(2218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},2411:(e,t,n)=>{var r=n(9612),i=n(235),o=n(326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},6417:(e,t,n)=>{var r=n(7937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).get(e)}},9493:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).has(e)}},4150:(e,t,n)=>{var r=n(7937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},7777:(e,t,n)=>{var r=n(733);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},9191:(e,t,n)=>{var r=n(8761)(Object,"create");e.exports=r},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7772:(e,t,n)=>{var r=n(1242),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},4452:(e,t,n)=>{var r=n(7777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},3812:(e,t,n)=>{var r=n(4795);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7035:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},2153:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},4073:(e,t,n)=>{var r=n(9259),i=n(1100),o=n(7642),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,f,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=u}function x(){var e=i();if(b(e))return w(e);f=setTimeout(x,function(e){var n=t-(e-p);return g?s(n,u-(e-h)):n}(e))}function w(e){return f=void 0,v&&l?y(e):(l=c=void 0,d)}function E(){var e=i(),n=b(e);if(l=arguments,c=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(x,t),m?y(e):d}(p);if(g)return clearTimeout(f),f=setTimeout(x,t),y(p)}return void 0===f&&(f=setTimeout(x,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(o(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),E.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=c=f=void 0},E.flush=function(){return void 0===f?d:w(i())},E}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2579:(e,t,n)=>{var r=n(3324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},6152:e=>{var t=Array.isArray;e.exports=t},1049:(e,t,n)=>{var r=n(3366),i=n(9259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4795:(e,t,n)=>{var r=n(3366),i=n(5125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},6635:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,c=128,u=1/0,d=9007199254740991,f=NaN,p=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",x="[object Function]",w="[object GeneratorFunction]",E="[object Map]",_="[object Number]",S="[object Object]",C="[object Promise]",O="[object RegExp]",k="[object Set]",L="[object String]",R="[object Symbol]",P="[object WeakMap]",M="[object ArrayBuffer]",A="[object DataView]",T="[object Float32Array]",D="[object Float64Array]",z="[object Int8Array]",F="[object Int16Array]",N="[object Int32Array]",I="[object Uint8Array]",j="[object Uint8ClampedArray]",B="[object Uint16Array]",G="[object Uint32Array]",U=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,$=RegExp(W.source),Z=RegExp(q.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Oe="\\ufe0e\\ufe0f",ke="\\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",Le="["+we+"]",Re="["+ke+"]",Pe="["+Ee+"]",Me="\\d+",Ae="["+_e+"]",Te="["+Se+"]",De="[^"+we+ke+Me+_e+Se+Ce+"]",ze="\\ud83c[\\udffb-\\udfff]",Fe="[^"+we+"]",Ne="(?:\\ud83c[\\udde6-\\uddff]){2}",Ie="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Ce+"]",Be="\\u200d",Ge="(?:"+Te+"|"+De+")",Ue="(?:"+je+"|"+De+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+Pe+"|"+ze+")?",qe="["+Oe+"]?",$e=qe+We+"(?:"+Be+"(?:"+[Fe,Ne,Ie].join("|")+")"+qe+We+")*",Ze="(?:"+[Ae,Ne,Ie].join("|")+")"+$e,Ye="(?:"+[Fe+Pe+"?",Pe,Ne,Ie,Le].join("|")+")",Xe=RegExp("['’]","g"),Ke=RegExp(Pe,"g"),Qe=RegExp(ze+"(?="+ze+")|"+Ye+$e,"g"),Je=RegExp([je+"?"+Te+"+"+He+"(?="+[Re,je,"$"].join("|")+")",Ue+"+"+Ve+"(?="+[Re,je+Ge,"$"].join("|")+")",je+"?"+Ge+"+"+He,je+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Me,Ze].join("|"),"g"),et=RegExp("["+Be+we+Ee+Oe+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["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"],rt=-1,it={};it[T]=it[D]=it[z]=it[F]=it[N]=it[I]=it[j]=it[B]=it[G]=!0,it[m]=it[g]=it[M]=it[v]=it[A]=it[y]=it[b]=it[x]=it[E]=it[_]=it[S]=it[O]=it[k]=it[L]=it[P]=!1;var ot={};ot[m]=ot[g]=ot[M]=ot[A]=ot[v]=ot[y]=ot[T]=ot[D]=ot[z]=ot[F]=ot[N]=ot[E]=ot[_]=ot[S]=ot[O]=ot[k]=ot[L]=ot[R]=ot[I]=ot[j]=ot[B]=ot[G]=!0,ot[b]=ot[x]=ot[P]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ut="object"==typeof self&&self&&self.Object===Object&&self,dt=ct||ut||Function("return this")(),ft=t&&!t.nodeType&&t,pt=ft&&e&&!e.nodeType&&e,ht=pt&&pt.exports===ft,mt=ht&&ct.process,gt=function(){try{return pt&&pt.require&&pt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&&gt.isArrayBuffer,yt=gt&&gt.isDate,bt=gt&&gt.isMap,xt=gt&&gt.isRegExp,wt=gt&&gt.isSet,Et=gt&&gt.isTypedArray;function _t(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 St(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function kt(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 Lt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Rt(e,t){return!(null==e||!e.length)&&jt(e,t,0)>-1}function Pt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Mt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function At(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Tt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Dt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function zt(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 Ft=Ht("length");function Nt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function It(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function jt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):It(e,Gt,n)}function Bt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Gt(e){return e!=e}function Ut(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:f}function Ht(e){return function(t){return null==t?i:t[e]}}function Vt(e){return function(t){return null==e?i:e[t]}}function Wt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function qt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function $t(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,fn(e)+1).replace(re,""):e}function Yt(e){return function(t){return e(t)}}function Xt(e,t){return Mt(t,(function(t){return e[t]}))}function Kt(e,t){return e.has(t)}function Qt(e,t){for(var n=-1,r=e.length;++n<r&&jt(t,e[n],0)>-1;);return n}function Jt(e,t){for(var n=e.length;n--&&jt(t,e[n],0)>-1;);return n}var en=Vt({À:"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"}),tn=Vt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function un(e){return rn(e)?function(e){for(var t=Qe.lastIndex=0;Qe.test(e);)++t;return t}(e):Ft(e)}function dn(e){return rn(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.split("")}(e)}function fn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var pn=Vt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),hn=function e(t){var n,r=(t=null==t?dt:hn.defaults(dt.Object(),t,hn.pick(dt,nt))).Array,ie=t.Date,we=t.Error,Ee=t.Function,_e=t.Math,Se=t.Object,Ce=t.RegExp,Oe=t.String,ke=t.TypeError,Le=r.prototype,Re=Ee.prototype,Pe=Se.prototype,Me=t["__core-js_shared__"],Ae=Re.toString,Te=Pe.hasOwnProperty,De=0,ze=(n=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Fe=Pe.toString,Ne=Ae.call(Se),Ie=dt._,je=Ce("^"+Ae.call(Te).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=ht?t.Buffer:i,Ge=t.Symbol,Ue=t.Uint8Array,He=Be?Be.allocUnsafe:i,Ve=an(Se.getPrototypeOf,Se),We=Se.create,qe=Pe.propertyIsEnumerable,$e=Le.splice,Ze=Ge?Ge.isConcatSpreadable:i,Ye=Ge?Ge.iterator:i,Qe=Ge?Ge.toStringTag:i,et=function(){try{var e=lo(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ct=ie&&ie.now!==dt.Date.now&&ie.now,ut=t.setTimeout!==dt.setTimeout&&t.setTimeout,ft=_e.ceil,pt=_e.floor,mt=Se.getOwnPropertySymbols,gt=Be?Be.isBuffer:i,Ft=t.isFinite,Vt=Le.join,mn=an(Se.keys,Se),gn=_e.max,vn=_e.min,yn=ie.now,bn=t.parseInt,xn=_e.random,wn=Le.reverse,En=lo(t,"DataView"),_n=lo(t,"Map"),Sn=lo(t,"Promise"),Cn=lo(t,"Set"),On=lo(t,"WeakMap"),kn=lo(Se,"create"),Ln=On&&new On,Rn={},Pn=No(En),Mn=No(_n),An=No(Sn),Tn=No(Cn),Dn=No(On),zn=Ge?Ge.prototype:i,Fn=zn?zn.valueOf:i,Nn=zn?zn.toString:i;function In(e){if(es(e)&&!Ha(e)&&!(e instanceof Un)){if(e instanceof Gn)return e;if(Te.call(e,"__wrapped__"))return Io(e)}return new Gn(e)}var jn=function(){function e(){}return function(t){if(!Ja(t))return{};if(We)return We(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Bn(){}function Gn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,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 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 Wn(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.__data__=new Wn;++t<n;)this.add(e[t])}function $n(e){var t=this.__data__=new Vn(e);this.size=t.size}function Zn(e,t){var n=Ha(e),r=!n&&Ua(e),i=!n&&!r&&$a(e),o=!n&&!r&&!i&&ls(e),a=n||r||i||o,s=a?$t(e.length,Oe):[],l=s.length;for(var c in e)!t&&!Te.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||go(c,l))||s.push(c);return s}function Yn(e){var t=e.length;return t?e[Wr(0,t-1)]:i}function Xn(e,t){return Ao(Oi(e),or(t,0,e.length))}function Kn(e){return Ao(Oi(e))}function Qn(e,t,n){(n!==i&&!ja(e[t],n)||n===i&&!(t in e))&&rr(e,t,n)}function Jn(e,t,n){var r=e[t];Te.call(e,t)&&ja(r,n)&&(n!==i||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(ja(e[n][0],t))return n;return-1}function tr(e,t,n,r){return ur(e,(function(e,i,o){t(r,e,n(e),o)})),r}function nr(e,t){return e&&ki(t,Ps(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:Cs(e,t[n]);return a}function or(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ar(e,t,n,r,o,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!Ja(e))return e;var d=Ha(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Te.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Oi(e,s)}else{var f=fo(e),p=f==x||f==w;if($a(e))return xi(e,l);if(f==S||f==m||p&&!o){if(s=c||p?{}:ho(e),!l)return c?function(e,t){return ki(e,uo(e),t)}(e,function(e,t){return e&&ki(t,Ms(t),e)}(s,e)):function(e,t){return ki(e,co(e),t)}(e,nr(s,e))}else{if(!ot[f])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case M:return wi(e);case v:case y:return new i(+e);case A:return function(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case T:case D:case z:case F:case N:case I:case j:case B:case G:return Ei(e,n);case E:return new i;case _:case L:return new i(e);case O:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new i;case R:return r=e,Fn?Se(Fn.call(r)):{}}}(e,f,l)}}a||(a=new $n);var h=a.get(e);if(h)return h;a.set(e,s),os(e)?e.forEach((function(r){s.add(ar(r,t,n,r,e,a))})):ts(e)&&e.forEach((function(r,i){s.set(i,ar(r,t,n,i,e,a))}));var g=d?i:(u?c?to:eo:c?Ms:Ps)(e);return Ct(g||e,(function(r,i){g&&(r=e[i=r]),Jn(s,i,ar(r,t,n,i,e,a))})),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Se(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new ke(o);return Lo((function(){e.apply(i,n)}),t)}function cr(e,t,n,r){var i=-1,o=Rt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Mt(t,Yt(n))),r?(o=Pt,a=!1):t.length>=200&&(o=Kt,a=!1,t=new qn(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l}In.templateSettings={escape:Y,evaluate:X,interpolate:K,variable:"",imports:{_:In}},In.prototype=Bn.prototype,In.prototype.constructor=In,Gn.prototype=jn(Bn.prototype),Gn.prototype.constructor=Gn,Un.prototype=jn(Bn.prototype),Un.prototype.constructor=Un,Hn.prototype.clear=function(){this.__data__=kn?kn(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(kn){var n=t[e];return n===a?i:n}return Te.call(t,e)?t[e]:i},Hn.prototype.has=function(e){var t=this.__data__;return kn?t[e]!==i:Te.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=kn&&t===i?a:t,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,0))},Vn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?i:t[n][1]},Vn.prototype.has=function(e){return er(this.__data__,e)>-1},Vn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Wn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(_n||Vn),string:new Hn}},Wn.prototype.delete=function(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t},Wn.prototype.get=function(e){return ao(this,e).get(e)},Wn.prototype.has=function(e){return ao(this,e).has(e)},Wn.prototype.set=function(e,t){var n=ao(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,a),this},qn.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.clear=function(){this.__data__=new Vn,this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$n.prototype.get=function(e){return this.__data__.get(e)},$n.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!_n||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wn(r)}return n.set(e,t),this.size=n.size,this};var ur=Pi(yr),dr=Pi(br,!0);function fr(e,t){var n=!0;return ur(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function pr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(l===i?s==s&&!ss(s):n(s,l)))var l=s,c=a}return c}function hr(e,t){var n=[];return ur(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function mr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=mo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?mr(s,t-1,n,r,i):At(i,s):r||(i[i.length]=s)}return i}var gr=Mi(),vr=Mi(!0);function yr(e,t){return e&&gr(e,t,Ps)}function br(e,t){return e&&vr(e,t,Ps)}function xr(e,t){return Lt(t,(function(t){return Xa(e[t])}))}function wr(e,t){for(var n=0,r=(t=gi(t,e)).length;null!=e&&n<r;)e=e[Fo(t[n++])];return n&&n==r?e:i}function Er(e,t,n){var r=t(e);return Ha(e)?r:At(r,n(e))}function _r(e){return null==e?e===i?"[object Undefined]":"[object Null]":Qe&&Qe in Se(e)?function(e){var t=Te.call(e,Qe),n=e[Qe];try{e[Qe]=i;var r=!0}catch(e){}var o=Fe.call(e);return r&&(t?e[Qe]=n:delete e[Qe]),o}(e):function(e){return Fe.call(e)}(e)}function Sr(e,t){return e>t}function Cr(e,t){return null!=e&&Te.call(e,t)}function Or(e,t){return null!=e&&t in Se(e)}function kr(e,t,n){for(var o=n?Pt:Rt,a=e[0].length,s=e.length,l=s,c=r(s),u=1/0,d=[];l--;){var f=e[l];l&&t&&(f=Mt(f,Yt(t))),u=vn(f.length,u),c[l]=!n&&(t||a>=120&&f.length>=120)?new qn(l&&f):i}f=e[0];var p=-1,h=c[0];e:for(;++p<a&&d.length<u;){var m=f[p],g=t?t(m):m;if(m=n||0!==m?m:0,!(h?Kt(h,g):o(d,g,n))){for(l=s;--l;){var v=c[l];if(!(v?Kt(v,g):o(e[l],g,n)))continue e}h&&h.push(g),d.push(m)}}return d}function Lr(e,t,n){var r=null==(e=Co(e,t=gi(t,e)))?e:e[Fo(Yo(t))];return null==r?i:_t(r,e,n)}function Rr(e){return es(e)&&_r(e)==m}function Pr(e,t,n,r,o){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=Ha(e),l=Ha(t),c=s?g:fo(e),u=l?g:fo(t),d=(c=c==m?S:c)==S,f=(u=u==m?S:u)==S,p=c==u;if(p&&$a(e)){if(!$a(t))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new $n),s||ls(e)?Qi(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!o(new Ue(e),new Ue(t)));case v:case y:case _:return ja(+e,+t);case b:return e.name==t.name&&e.message==t.message;case O:case L:return e==t+"";case E:var s=on;case k:var l=1&r;if(s||(s=ln),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=Qi(s(e),s(t),r,i,o,a);return a.delete(e),u;case R:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var h=d&&Te.call(e,"__wrapped__"),x=f&&Te.call(t,"__wrapped__");if(h||x){var w=h?e.value():e,C=x?t.value():t;return a||(a=new $n),o(w,C,n,r,a)}}return!!p&&(a||(a=new $n),function(e,t,n,r,o,a){var s=1&n,l=eo(e),c=l.length;if(c!=eo(t).length&&!s)return!1;for(var u=c;u--;){var d=l[u];if(!(s?d in t:Te.call(t,d)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++u<c;){var g=e[d=l[u]],v=t[d];if(r)var y=s?r(v,g,d,t,e,a):r(g,v,d,e,t,a);if(!(y===i?g===v||o(g,v,n,r,a):y)){h=!1;break}m||(m="constructor"==d)}if(h&&!m){var b=e.constructor,x=t.constructor;b==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,o,a))}(e,t,n,r,Pr,o))}function Mr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Se(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var c=(l=n[o])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===i&&!(c in e))return!1}else{var f=new $n;if(r)var p=r(u,d,c,e,t,f);if(!(p===i?Pr(d,u,3,r,f):p))return!1}}return!0}function Ar(e){return!(!Ja(e)||(t=e,ze&&ze in t))&&(Xa(e)?je:me).test(No(e));var t}function Tr(e){return"function"==typeof e?e:null==e?nl:"object"==typeof e?Ha(e)?Ir(e[0],e[1]):Nr(e):dl(e)}function Dr(e){if(!wo(e))return mn(e);var t=[];for(var n in Se(e))Te.call(e,n)&&"constructor"!=n&&t.push(n);return t}function zr(e,t){return e<t}function Fr(e,t){var n=-1,i=Wa(e)?r(e.length):[];return ur(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Nr(e){var t=so(e);return 1==t.length&&t[0][2]?_o(t[0][0],t[0][1]):function(n){return n===e||Mr(n,e,t)}}function Ir(e,t){return yo(e)&&Eo(t)?_o(Fo(e),t):function(n){var r=Cs(n,e);return r===i&&r===t?Os(n,e):Pr(t,r,3)}}function jr(e,t,n,r,o){e!==t&&gr(t,(function(a,s){if(o||(o=new $n),Ja(a))!function(e,t,n,r,o,a,s){var l=Oo(e,n),c=Oo(t,n),u=s.get(c);if(u)Qn(e,n,u);else{var d=a?a(l,c,n+"",e,t,s):i,f=d===i;if(f){var p=Ha(c),h=!p&&$a(c),m=!p&&!h&&ls(c);d=c,p||h||m?Ha(l)?d=l:qa(l)?d=Oi(l):h?(f=!1,d=xi(c,!0)):m?(f=!1,d=Ei(c,!0)):d=[]:rs(c)||Ua(c)?(d=l,Ua(l)?d=gs(l):Ja(l)&&!Xa(l)||(d=ho(c))):f=!1}f&&(s.set(c,d),o(d,c,r,a,s),s.delete(c)),Qn(e,n,d)}}(e,t,s,n,jr,r,o);else{var l=r?r(Oo(e,s),a,s+"",e,t,o):i;l===i&&(l=a),Qn(e,s,l)}}),Ms)}function Br(e,t){var n=e.length;if(n)return go(t+=t<0?n:0,n)?e[t]:i}function Gr(e,t,n){t=t.length?Mt(t,(function(e){return Ha(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[nl];var r=-1;t=Mt(t,Yt(oo()));var i=Fr(e,(function(e,n,i){var o=Mt(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e){var t=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=_i(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));t--;)e[t]=e[t].value;return e}(i)}function Ur(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=wr(e,a);n(s,a)&&Xr(o,gi(a,e),s)}return o}function Hr(e,t,n,r){var i=r?Bt:jt,o=-1,a=t.length,s=e;for(e===t&&(t=Oi(t)),n&&(s=Mt(e,Yt(n)));++o<a;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&$e.call(s,l,1),$e.call(e,l,1);return e}function Vr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;go(i)?$e.call(e,i,1):li(e,i)}}return e}function Wr(e,t){return e+pt(xn()*(t-e+1))}function qr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function $r(e,t){return Ro(So(e,t,nl),e+"")}function Zr(e){return Yn(js(e))}function Yr(e,t){var n=js(e);return Ao(n,or(t,0,n.length))}function Xr(e,t,n,r){if(!Ja(e))return e;for(var o=-1,a=(t=gi(t,e)).length,s=a-1,l=e;null!=l&&++o<a;){var c=Fo(t[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var d=l[c];(u=r?r(d,c,l):i)===i&&(u=Ja(d)?d:go(t[o+1])?[]:{})}Jn(l,c,u),l=l[c]}return e}var Kr=Ln?function(e,t){return Ln.set(e,t),e}:nl,Qr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Js(t),writable:!0})}:nl;function Jr(e){return Ao(js(e))}function ei(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function ti(e,t){var n;return ur(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ni(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!ss(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ri(e,t,nl,n)}function ri(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,c=ss(t),u=t===i;o<a;){var d=pt((o+a)/2),f=n(e[d]),p=f!==i,h=null===f,m=f==f,g=ss(f);if(s)var v=r||m;else v=u?m&&(r||p):l?m&&p&&(r||!h):c?m&&p&&!h&&(r||!g):!h&&!g&&(r?f<=t:f<t);v?o=d+1:a=d}return vn(a,4294967294)}function ii(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!ja(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function oi(e){return"number"==typeof e?e:ss(e)?f:+e}function ai(e){if("string"==typeof e)return e;if(Ha(e))return Mt(e,ai)+"";if(ss(e))return Nn?Nn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function si(e,t,n){var r=-1,i=Rt,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=Pt;else if(o>=200){var c=t?null:qi(e);if(c)return ln(c);a=!1,i=Kt,l=new qn}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function li(e,t){return null==(e=Co(e,t=gi(t,e)))||delete e[Fo(Yo(t))]}function ci(e,t,n,r){return Xr(e,t,n(wr(e,t)),r)}function ui(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ei(e,r?0:o,r?o+1:i):ei(e,r?o+1:0,r?i:o)}function di(e,t){var n=e;return n instanceof Un&&(n=n.value()),Tt(t,(function(e,t){return t.func.apply(t.thisArg,At([e],t.args))}),n)}function fi(e,t,n){var i=e.length;if(i<2)return i?si(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],l=-1;++l<i;)l!=o&&(a[o]=cr(a[o]||s,e[l],t,n));return si(mr(a,1),t,n)}function pi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var l=r<a?t[r]:i;n(s,e[r],l)}return s}function hi(e){return qa(e)?e:[]}function mi(e){return"function"==typeof e?e:nl}function gi(e,t){return Ha(e)?e:yo(e,t)?[e]:zo(vs(e))}var vi=$r;function yi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ei(e,t,n)}var bi=at||function(e){return dt.clearTimeout(e)};function xi(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function wi(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Ei(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function _i(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=ss(e),s=t!==i,l=null===t,c=t==t,u=ss(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!u&&e<t||u&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}function Si(e,t,n,i){for(var o=-1,a=e.length,s=n.length,l=-1,c=t.length,u=gn(a-s,0),d=r(c+u),f=!i;++l<c;)d[l]=t[l];for(;++o<s;)(f||o<a)&&(d[n[o]]=e[o]);for(;u--;)d[l++]=e[o++];return d}function Ci(e,t,n,i){for(var o=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=gn(a-l,0),f=r(d+u),p=!i;++o<d;)f[o]=e[o];for(var h=o;++c<u;)f[h+c]=t[c];for(;++s<l;)(p||o<a)&&(f[h+n[s]]=e[o++]);return f}function Oi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function ki(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):i;c===i&&(c=e[l]),o?rr(n,l,c):Jn(n,l,c)}return n}function Li(e,t){return function(n,r){var i=Ha(n)?St:tr,o=t?t():{};return i(n,e,oo(r,2),o)}}function Ri(e){return $r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&vo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Se(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}function Pi(e,t){return function(n,r){if(null==n)return n;if(!Wa(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Se(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Mi(e){return function(t,n,r){for(var i=-1,o=Se(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function Ai(e){return function(t){var n=rn(t=vs(t))?dn(t):i,r=n?n[0]:t.charAt(0),o=n?yi(n,1).join(""):t.slice(1);return r[e]()+o}}function Ti(e){return function(t){return Tt(Xs(Us(t).replace(Xe,"")),e,"")}}function Di(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=jn(e.prototype),r=e.apply(n,t);return Ja(r)?r:n}}function zi(e){return function(t,n,r){var o=Se(t);if(!Wa(t)){var a=oo(n,3);t=Ps(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Fi(e){return Ji((function(t){var n=t.length,r=n,a=Gn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new ke(o);if(a&&!l&&"wrapper"==ro(s))var l=new Gn([],!0)}for(r=l?r:n;++r<n;){var c=ro(s=t[r]),u="wrapper"==c?no(s):i;l=u&&bo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[ro(u[0])].apply(l,u[3]):1==s.length&&bo(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Ha(r))return l.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Ni(e,t,n,o,a,s,l,u,d,f){var p=t&c,h=1&t,m=2&t,g=24&t,v=512&t,y=m?i:Di(e);return function c(){for(var b=arguments.length,x=r(b),w=b;w--;)x[w]=arguments[w];if(g)var E=io(c),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(x,E);if(o&&(x=Si(x,o,a,g)),s&&(x=Ci(x,s,l,g)),b-=_,g&&b<f){var S=sn(x,E);return Vi(e,t,Ni,c.placeholder,n,x,S,u,d,f-b)}var C=h?n:this,O=m?C[e]:e;return b=x.length,u?x=function(e,t){for(var n=e.length,r=vn(t.length,n),o=Oi(e);r--;){var a=t[r];e[r]=go(a,n)?o[a]:i}return e}(x,u):v&&b>1&&x.reverse(),p&&d<b&&(x.length=d),this&&this!==dt&&this instanceof c&&(O=y||Di(O)),O.apply(C,x)}}function Ii(e,t){return function(n,r){return function(e,t,n,r){return yr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function ji(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ai(n),r=ai(r)):(n=oi(n),r=oi(r)),o=e(n,r)}return o}}function Bi(e){return Ji((function(t){return t=Mt(t,Yt(oo())),$r((function(n){var r=this;return e(t,(function(e){return _t(e,r,n)}))}))}))}function Gi(e,t){var n=(t=t===i?" ":ai(t)).length;if(n<2)return n?qr(t,e):t;var r=qr(t,ft(e/un(t)));return rn(t)?yi(dn(r),0,e).join(""):r.slice(0,e)}function Ui(e){return function(t,n,o){return o&&"number"!=typeof o&&vo(t,n,o)&&(n=o=i),t=fs(t),n===i?(n=t,t=0):n=fs(n),function(e,t,n,i){for(var o=-1,a=gn(ft((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:fs(o),e)}}function Hi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function Vi(e,t,n,r,o,a,s,c,u,d){var f=8&t;t|=f?l:64,4&(t&=~(f?64:l))||(t&=-4);var p=[e,t,o,f?a:i,f?s:i,f?i:a,f?i:s,c,u,d],h=n.apply(i,p);return bo(e)&&ko(h,p),h.placeholder=r,Po(h,e,t)}function Wi(e){var t=_e[e];return function(e,n){if(e=ms(e),(n=null==n?0:vn(ps(n),292))&&Ft(e)){var r=(vs(e)+"e").split("e");return+((r=(vs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var qi=Cn&&1/ln(new Cn([,-0]))[1]==u?function(e){return new Cn(e)}:sl;function $i(e){return function(t){var n=fo(t);return n==E?on(t):n==k?cn(t):function(e,t){return Mt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Zi(e,t,n,a,u,d,f,p){var h=2&t;if(!h&&"function"!=typeof e)throw new ke(o);var m=a?a.length:0;if(m||(t&=-97,a=u=i),f=f===i?f:gn(ps(f),0),p=p===i?p:ps(p),m-=u?u.length:0,64&t){var g=a,v=u;a=u=i}var y=h?i:no(e),b=[e,t,n,a,u,g,v,d,f,p];if(y&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<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(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Si(u,l,t[4]):l,e[4]=u?sn(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Ci(u,l,t[6]):l,e[6]=u?sn(e[5],s):t[6]),(l=t[7])&&(e[7]=l),r&c&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,y),e=b[0],t=b[1],n=b[2],a=b[3],u=b[4],!(p=b[9]=b[9]===i?h?0:e.length:gn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||16==t?function(e,t,n){var o=Di(e);return function a(){for(var s=arguments.length,l=r(s),c=s,u=io(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:sn(l,u);return(s-=d.length)<n?Vi(e,t,Ni,a.placeholder,i,l,d,i,i,n-s):_t(this&&this!==dt&&this instanceof a?o:e,this,l)}}(e,t,p):t!=l&&33!=t||u.length?Ni.apply(i,b):function(e,t,n,i){var o=1&t,a=Di(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=i.length,d=r(u+l),f=this&&this!==dt&&this instanceof t?a:e;++c<u;)d[c]=i[c];for(;l--;)d[c++]=arguments[++s];return _t(f,o?n:this,d)}}(e,t,n,a);else var x=function(e,t,n){var r=1&t,i=Di(e);return function t(){return(this&&this!==dt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Po((y?Kr:ko)(x,b),e,t)}function Yi(e,t,n,r){return e===i||ja(e,Pe[n])&&!Te.call(r,n)?t:e}function Xi(e,t,n,r,o,a){return Ja(e)&&Ja(t)&&(a.set(t,e),jr(e,t,i,Xi,a),a.delete(t)),e}function Ki(e){return rs(e)?i:e}function Qi(e,t,n,r,o,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,h=2&n?new qn:i;for(a.set(e,t),a.set(t,e);++f<l;){var m=e[f],g=t[f];if(r)var v=s?r(g,m,f,t,e,a):r(m,g,f,e,t,a);if(v!==i){if(v)continue;p=!1;break}if(h){if(!zt(t,(function(e,t){if(!Kt(h,t)&&(m===e||o(m,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(m!==g&&!o(m,g,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function Ji(e){return Ro(So(e,i,Vo),e+"")}function eo(e){return Er(e,Ps,co)}function to(e){return Er(e,Ms,uo)}var no=Ln?function(e){return Ln.get(e)}:sl;function ro(e){for(var t=e.name+"",n=Rn[t],r=Te.call(Rn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function io(e){return(Te.call(In,"placeholder")?In:e).placeholder}function oo(){var e=In.iteratee||rl;return e=e===rl?Tr:e,arguments.length?e(arguments[0],arguments[1]):e}function ao(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function so(e){for(var t=Ps(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Eo(i)]}return t}function lo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Ar(n)?n:i}var co=mt?function(e){return null==e?[]:(e=Se(e),Lt(mt(e),(function(t){return qe.call(e,t)})))}:hl,uo=mt?function(e){for(var t=[];e;)At(t,co(e)),e=Ve(e);return t}:hl,fo=_r;function po(e,t,n){for(var r=-1,i=(t=gi(t,e)).length,o=!1;++r<i;){var a=Fo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Qa(i)&&go(a,i)&&(Ha(e)||Ua(e))}function ho(e){return"function"!=typeof e.constructor||wo(e)?{}:jn(Ve(e))}function mo(e){return Ha(e)||Ua(e)||!!(Ze&&e&&e[Ze])}function go(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 vo(e,t,n){if(!Ja(n))return!1;var r=typeof t;return!!("number"==r?Wa(n)&&go(t,n.length):"string"==r&&t in n)&&ja(n[t],e)}function yo(e,t){if(Ha(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ss(e))||J.test(e)||!Q.test(e)||null!=t&&e in Se(t)}function bo(e){var t=ro(e),n=In[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var r=no(n);return!!r&&e===r[0]}(En&&fo(new En(new ArrayBuffer(1)))!=A||_n&&fo(new _n)!=E||Sn&&fo(Sn.resolve())!=C||Cn&&fo(new Cn)!=k||On&&fo(new On)!=P)&&(fo=function(e){var t=_r(e),n=t==S?e.constructor:i,r=n?No(n):"";if(r)switch(r){case Pn:return A;case Mn:return E;case An:return C;case Tn:return k;case Dn:return P}return t});var xo=Me?Xa:ml;function wo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function Eo(e){return e==e&&!Ja(e)}function _o(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Se(n))}}function So(e,t,n){return t=gn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=gn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(s),_t(e,this,l)}}function Co(e,t){return t.length<2?e:wr(e,ei(t,0,-1))}function Oo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ko=Mo(Kr),Lo=ut||function(e,t){return dt.setTimeout(e,t)},Ro=Mo(Qr);function Po(e,t,n){var r=t+"";return Ro(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(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(h,(function(n){var r="_."+n[0];t&n[1]&&!Rt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Mo(e){var t=0,n=0;return function(){var r=yn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ao(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=Wr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var To,Do,zo=(To=Ta((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(ue,"$1"):n||e)})),t}),(function(e){return 500===Do.size&&Do.clear(),e})),Do=To.cache,To);function Fo(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function No(e){if(null!=e){try{return Ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Io(e){if(e instanceof Un)return e.clone();var t=new Gn(e.__wrapped__,e.__chain__);return t.__actions__=Oi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var jo=$r((function(e,t){return qa(e)?cr(e,mr(t,1,qa,!0)):[]})),Bo=$r((function(e,t){var n=Yo(t);return qa(n)&&(n=i),qa(e)?cr(e,mr(t,1,qa,!0),oo(n,2)):[]})),Go=$r((function(e,t){var n=Yo(t);return qa(n)&&(n=i),qa(e)?cr(e,mr(t,1,qa,!0),i,n):[]}));function Uo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ps(n);return i<0&&(i=gn(r+i,0)),It(e,oo(t,3),i)}function Ho(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=ps(n),o=n<0?gn(r+o,0):vn(o,r-1)),It(e,oo(t,3),o,!0)}function Vo(e){return null!=e&&e.length?mr(e,1):[]}function Wo(e){return e&&e.length?e[0]:i}var qo=$r((function(e){var t=Mt(e,hi);return t.length&&t[0]===e[0]?kr(t):[]})),$o=$r((function(e){var t=Yo(e),n=Mt(e,hi);return t===Yo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?kr(n,oo(t,2)):[]})),Zo=$r((function(e){var t=Yo(e),n=Mt(e,hi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?kr(n,i,t):[]}));function Yo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Xo=$r(Ko);function Ko(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var Qo=Ji((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Vr(e,Mt(t,(function(e){return go(e,n)?+e:e})).sort(_i)),r}));function Jo(e){return null==e?e:wn.call(e)}var ea=$r((function(e){return si(mr(e,1,qa,!0))})),ta=$r((function(e){var t=Yo(e);return qa(t)&&(t=i),si(mr(e,1,qa,!0),oo(t,2))})),na=$r((function(e){var t=Yo(e);return t="function"==typeof t?t:i,si(mr(e,1,qa,!0),i,t)}));function ra(e){if(!e||!e.length)return[];var t=0;return e=Lt(e,(function(e){if(qa(e))return t=gn(e.length,t),!0})),$t(t,(function(t){return Mt(e,Ht(t))}))}function ia(e,t){if(!e||!e.length)return[];var n=ra(e);return null==t?n:Mt(n,(function(e){return _t(t,i,e)}))}var oa=$r((function(e,t){return qa(e)?cr(e,t):[]})),aa=$r((function(e){return fi(Lt(e,qa))})),sa=$r((function(e){var t=Yo(e);return qa(t)&&(t=i),fi(Lt(e,qa),oo(t,2))})),la=$r((function(e){var t=Yo(e);return t="function"==typeof t?t:i,fi(Lt(e,qa),i,t)})),ca=$r(ra),ua=$r((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,ia(e,n)}));function da(e){var t=In(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var pa=Ji((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&go(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:fa,args:[o],thisArg:i}),new Gn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ha=Li((function(e,t,n){Te.call(e,n)?++e[n]:rr(e,n,1)})),ma=zi(Uo),ga=zi(Ho);function va(e,t){return(Ha(e)?Ct:ur)(e,oo(t,3))}function ya(e,t){return(Ha(e)?Ot:dr)(e,oo(t,3))}var ba=Li((function(e,t,n){Te.call(e,n)?e[n].push(t):rr(e,n,[t])})),xa=$r((function(e,t,n){var i=-1,o="function"==typeof t,a=Wa(e)?r(e.length):[];return ur(e,(function(e){a[++i]=o?_t(t,e,n):Lr(e,t,n)})),a})),wa=Li((function(e,t,n){rr(e,n,t)}));function Ea(e,t){return(Ha(e)?Mt:Fr)(e,oo(t,3))}var _a=Li((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Sa=$r((function(e,t){if(null==e)return[];var n=t.length;return n>1&&vo(e,t[0],t[1])?t=[]:n>2&&vo(t[0],t[1],t[2])&&(t=[t[0]]),Gr(e,mr(t,1),[])})),Ca=ct||function(){return dt.Date.now()};function Oa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Zi(e,c,i,i,i,i,t)}function ka(e,t){var n;if("function"!=typeof t)throw new ke(o);return e=ps(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var La=$r((function(e,t,n){var r=1;if(n.length){var i=sn(n,io(La));r|=l}return Zi(e,r,t,n,i)})),Ra=$r((function(e,t,n){var r=3;if(n.length){var i=sn(n,io(Ra));r|=l}return Zi(t,r,e,n,i)}));function Pa(e,t,n){var r,a,s,l,c,u,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new ke(o);function m(t){var n=r,o=a;return r=a=i,d=t,l=e.apply(o,n)}function g(e){var n=e-u;return u===i||n>=t||n<0||p&&e-d>=s}function v(){var e=Ca();if(g(e))return y(e);c=Lo(v,function(e){var n=t-(e-u);return p?vn(n,s-(e-d)):n}(e))}function y(e){return c=i,h&&r?m(e):(r=a=i,l)}function b(){var e=Ca(),n=g(e);if(r=arguments,a=this,u=e,n){if(c===i)return function(e){return d=e,c=Lo(v,t),f?m(e):l}(u);if(p)return bi(c),c=Lo(v,t),m(u)}return c===i&&(c=Lo(v,t)),l}return t=ms(t)||0,Ja(n)&&(f=!!n.leading,s=(p="maxWait"in n)?gn(ms(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==i&&bi(c),d=0,r=u=a=c=i},b.flush=function(){return c===i?l:y(Ca())},b}var Ma=$r((function(e,t){return lr(e,1,t)})),Aa=$r((function(e,t,n){return lr(e,ms(t)||0,n)}));function Ta(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ta.Cache||Wn),n}function Da(e){if("function"!=typeof e)throw new ke(o);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)}}Ta.Cache=Wn;var za=vi((function(e,t){var n=(t=1==t.length&&Ha(t[0])?Mt(t[0],Yt(oo())):Mt(mr(t,1),Yt(oo()))).length;return $r((function(r){for(var i=-1,o=vn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return _t(e,this,r)}))})),Fa=$r((function(e,t){var n=sn(t,io(Fa));return Zi(e,l,i,t,n)})),Na=$r((function(e,t){var n=sn(t,io(Na));return Zi(e,64,i,t,n)})),Ia=Ji((function(e,t){return Zi(e,256,i,i,i,t)}));function ja(e,t){return e===t||e!=e&&t!=t}var Ba=Hi(Sr),Ga=Hi((function(e,t){return e>=t})),Ua=Rr(function(){return arguments}())?Rr:function(e){return es(e)&&Te.call(e,"callee")&&!qe.call(e,"callee")},Ha=r.isArray,Va=vt?Yt(vt):function(e){return es(e)&&_r(e)==M};function Wa(e){return null!=e&&Qa(e.length)&&!Xa(e)}function qa(e){return es(e)&&Wa(e)}var $a=gt||ml,Za=yt?Yt(yt):function(e){return es(e)&&_r(e)==y};function Ya(e){if(!es(e))return!1;var t=_r(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Xa(e){if(!Ja(e))return!1;var t=_r(e);return t==x||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ka(e){return"number"==typeof e&&e==ps(e)}function Qa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Ja(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=bt?Yt(bt):function(e){return es(e)&&fo(e)==E};function ns(e){return"number"==typeof e||es(e)&&_r(e)==_}function rs(e){if(!es(e)||_r(e)!=S)return!1;var t=Ve(e);if(null===t)return!0;var n=Te.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ae.call(n)==Ne}var is=xt?Yt(xt):function(e){return es(e)&&_r(e)==O},os=wt?Yt(wt):function(e){return es(e)&&fo(e)==k};function as(e){return"string"==typeof e||!Ha(e)&&es(e)&&_r(e)==L}function ss(e){return"symbol"==typeof e||es(e)&&_r(e)==R}var ls=Et?Yt(Et):function(e){return es(e)&&Qa(e.length)&&!!it[_r(e)]},cs=Hi(zr),us=Hi((function(e,t){return e<=t}));function ds(e){if(!e)return[];if(Wa(e))return as(e)?dn(e):Oi(e);if(Ye&&e[Ye])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ye]());var t=fo(e);return(t==E?on:t==k?ln:js)(e)}function fs(e){return e?(e=ms(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ps(e){var t=fs(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?or(ps(e),0,p):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return f;if(Ja(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ja(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=he.test(e);return n||ge.test(e)?lt(e.slice(2),n?2:8):pe.test(e)?f:+e}function gs(e){return ki(e,Ms(e))}function vs(e){return null==e?"":ai(e)}var ys=Ri((function(e,t){if(wo(t)||Wa(t))ki(t,Ps(t),e);else for(var n in t)Te.call(t,n)&&Jn(e,n,t[n])})),bs=Ri((function(e,t){ki(t,Ms(t),e)})),xs=Ri((function(e,t,n,r){ki(t,Ms(t),e,r)})),ws=Ri((function(e,t,n,r){ki(t,Ps(t),e,r)})),Es=Ji(ir),_s=$r((function(e,t){e=Se(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&vo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Ms(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===i||ja(d,Pe[u])&&!Te.call(e,u))&&(e[u]=a[u])}return e})),Ss=$r((function(e){return e.push(i,Xi),_t(Ts,i,e)}));function Cs(e,t,n){var r=null==e?i:wr(e,t);return r===i?n:r}function Os(e,t){return null!=e&&po(e,t,Or)}var ks=Ii((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),Js(nl)),Ls=Ii((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Te.call(e,t)?e[t].push(n):e[t]=[n]}),oo),Rs=$r(Lr);function Ps(e){return Wa(e)?Zn(e):Dr(e)}function Ms(e){return Wa(e)?Zn(e,!0):function(e){if(!Ja(e))return function(e){var t=[];if(null!=e)for(var n in Se(e))t.push(n);return t}(e);var t=wo(e),n=[];for(var r in e)("constructor"!=r||!t&&Te.call(e,r))&&n.push(r);return n}(e)}var As=Ri((function(e,t,n){jr(e,t,n)})),Ts=Ri((function(e,t,n,r){jr(e,t,n,r)})),Ds=Ji((function(e,t){var n={};if(null==e)return n;var r=!1;t=Mt(t,(function(t){return t=gi(t,e),r||(r=t.length>1),t})),ki(e,to(e),n),r&&(n=ar(n,7,Ki));for(var i=t.length;i--;)li(n,t[i]);return n})),zs=Ji((function(e,t){return null==e?{}:function(e,t){return Ur(e,t,(function(t,n){return Os(e,n)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var n=Mt(to(e),(function(e){return[e]}));return t=oo(t),Ur(e,n,(function(e,n){return t(e,n[0])}))}var Ns=$i(Ps),Is=$i(Ms);function js(e){return null==e?[]:Xt(e,Ps(e))}var Bs=Ti((function(e,t,n){return t=t.toLowerCase(),e+(n?Gs(t):t)}));function Gs(e){return Ys(vs(e).toLowerCase())}function Us(e){return(e=vs(e))&&e.replace(ye,en).replace(Ke,"")}var Hs=Ti((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Vs=Ti((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ws=Ai("toLowerCase"),qs=Ti((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),$s=Ti((function(e,t,n){return e+(n?" ":"")+Ys(t)})),Zs=Ti((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ys=Ai("toUpperCase");function Xs(e,t,n){return e=vs(e),(t=n?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Ks=$r((function(e,t){try{return _t(e,i,t)}catch(e){return Ya(e)?e:new we(e)}})),Qs=Ji((function(e,t){return Ct(t,(function(t){t=Fo(t),rr(e,t,La(e[t],e))})),e}));function Js(e){return function(){return e}}var el=Fi(),tl=Fi(!0);function nl(e){return e}function rl(e){return Tr("function"==typeof e?e:ar(e,1))}var il=$r((function(e,t){return function(n){return Lr(n,e,t)}})),ol=$r((function(e,t){return function(n){return Lr(e,n,t)}}));function al(e,t,n){var r=Ps(t),i=xr(t,r);null!=n||Ja(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=xr(t,Ps(t)));var o=!(Ja(n)&&"chain"in n&&!n.chain),a=Xa(e);return Ct(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Oi(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,At([this.value()],arguments))})})),e}function sl(){}var ll=Bi(Mt),cl=Bi(kt),ul=Bi(zt);function dl(e){return yo(e)?Ht(Fo(e)):function(e){return function(t){return wr(t,e)}}(e)}var fl=Ui(),pl=Ui(!0);function hl(){return[]}function ml(){return!1}var gl,vl=ji((function(e,t){return e+t}),0),yl=Wi("ceil"),bl=ji((function(e,t){return e/t}),1),xl=Wi("floor"),wl=ji((function(e,t){return e*t}),1),El=Wi("round"),_l=ji((function(e,t){return e-t}),0);return In.after=function(e,t){if("function"!=typeof t)throw new ke(o);return e=ps(e),function(){if(--e<1)return t.apply(this,arguments)}},In.ary=Oa,In.assign=ys,In.assignIn=bs,In.assignInWith=xs,In.assignWith=ws,In.at=Es,In.before=ka,In.bind=La,In.bindAll=Qs,In.bindKey=Ra,In.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ha(e)?e:[e]},In.chain=da,In.chunk=function(e,t,n){t=(n?vo(e,t,n):t===i)?1:gn(ps(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=r(ft(o/t));a<o;)l[s++]=ei(e,a,a+=t);return l},In.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},In.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return At(Ha(n)?Oi(n):[n],mr(t,1))},In.cond=function(e){var t=null==e?0:e.length,n=oo();return e=t?Mt(e,(function(e){if("function"!=typeof e[1])throw new ke(o);return[n(e[0]),e[1]]})):[],$r((function(n){for(var r=-1;++r<t;){var i=e[r];if(_t(i[0],this,n))return _t(i[1],this,n)}}))},In.conforms=function(e){return function(e){var t=Ps(e);return function(n){return sr(n,e,t)}}(ar(e,1))},In.constant=Js,In.countBy=ha,In.create=function(e,t){var n=jn(e);return null==t?n:nr(n,t)},In.curry=function e(t,n,r){var o=Zi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},In.curryRight=function e(t,n,r){var o=Zi(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},In.debounce=Pa,In.defaults=_s,In.defaultsDeep=Ss,In.defer=Ma,In.delay=Aa,In.difference=jo,In.differenceBy=Bo,In.differenceWith=Go,In.drop=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=n||t===i?1:ps(t))<0?0:t,r):[]},In.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,0,(t=r-(t=n||t===i?1:ps(t)))<0?0:t):[]},In.dropRightWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!0,!0):[]},In.dropWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!0):[]},In.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&vo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=ps(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:ps(r))<0&&(r+=o),r=n>r?0:hs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},In.filter=function(e,t){return(Ha(e)?Lt:hr)(e,oo(t,3))},In.flatMap=function(e,t){return mr(Ea(e,t),1)},In.flatMapDeep=function(e,t){return mr(Ea(e,t),u)},In.flatMapDepth=function(e,t,n){return n=n===i?1:ps(n),mr(Ea(e,t),n)},In.flatten=Vo,In.flattenDeep=function(e){return null!=e&&e.length?mr(e,u):[]},In.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===i?1:ps(t)):[]},In.flip=function(e){return Zi(e,512)},In.flow=el,In.flowRight=tl,In.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},In.functions=function(e){return null==e?[]:xr(e,Ps(e))},In.functionsIn=function(e){return null==e?[]:xr(e,Ms(e))},In.groupBy=ba,In.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},In.intersection=qo,In.intersectionBy=$o,In.intersectionWith=Zo,In.invert=ks,In.invertBy=Ls,In.invokeMap=xa,In.iteratee=rl,In.keyBy=wa,In.keys=Ps,In.keysIn=Ms,In.map=Ea,In.mapKeys=function(e,t){var n={};return t=oo(t,3),yr(e,(function(e,r,i){rr(n,t(e,r,i),e)})),n},In.mapValues=function(e,t){var n={};return t=oo(t,3),yr(e,(function(e,r,i){rr(n,r,t(e,r,i))})),n},In.matches=function(e){return Nr(ar(e,1))},In.matchesProperty=function(e,t){return Ir(e,ar(t,1))},In.memoize=Ta,In.merge=As,In.mergeWith=Ts,In.method=il,In.methodOf=ol,In.mixin=al,In.negate=Da,In.nthArg=function(e){return e=ps(e),$r((function(t){return Br(t,e)}))},In.omit=Ds,In.omitBy=function(e,t){return Fs(e,Da(oo(t)))},In.once=function(e){return ka(2,e)},In.orderBy=function(e,t,n,r){return null==e?[]:(Ha(t)||(t=null==t?[]:[t]),Ha(n=r?i:n)||(n=null==n?[]:[n]),Gr(e,t,n))},In.over=ll,In.overArgs=za,In.overEvery=cl,In.overSome=ul,In.partial=Fa,In.partialRight=Na,In.partition=_a,In.pick=zs,In.pickBy=Fs,In.property=dl,In.propertyOf=function(e){return function(t){return null==e?i:wr(e,t)}},In.pull=Xo,In.pullAll=Ko,In.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,oo(n,2)):e},In.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,i,n):e},In.pullAt=Qo,In.range=fl,In.rangeRight=pl,In.rearg=Ia,In.reject=function(e,t){return(Ha(e)?Lt:hr)(e,Da(oo(t,3)))},In.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=oo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Vr(e,i),n},In.rest=function(e,t){if("function"!=typeof e)throw new ke(o);return $r(e,t=t===i?t:ps(t))},In.reverse=Jo,In.sampleSize=function(e,t,n){return t=(n?vo(e,t,n):t===i)?1:ps(t),(Ha(e)?Xn:Yr)(e,t)},In.set=function(e,t,n){return null==e?e:Xr(e,t,n)},In.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Xr(e,t,n,r)},In.shuffle=function(e){return(Ha(e)?Kn:Jr)(e)},In.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&vo(e,t,n)?(t=0,n=r):(t=null==t?0:ps(t),n=n===i?r:ps(n)),ei(e,t,n)):[]},In.sortBy=Sa,In.sortedUniq=function(e){return e&&e.length?ii(e):[]},In.sortedUniqBy=function(e,t){return e&&e.length?ii(e,oo(t,2)):[]},In.split=function(e,t,n){return n&&"number"!=typeof n&&vo(e,t,n)&&(t=n=i),(n=n===i?p:n>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=ai(t))&&rn(e)?yi(dn(e),0,n):e.split(t,n):[]},In.spread=function(e,t){if("function"!=typeof e)throw new ke(o);return t=null==t?0:gn(ps(t),0),$r((function(n){var r=n[t],i=yi(n,0,t);return r&&At(i,r),_t(e,this,i)}))},In.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},In.take=function(e,t,n){return e&&e.length?ei(e,0,(t=n||t===i?1:ps(t))<0?0:t):[]},In.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=r-(t=n||t===i?1:ps(t)))<0?0:t,r):[]},In.takeRightWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!1,!0):[]},In.takeWhile=function(e,t){return e&&e.length?ui(e,oo(t,3)):[]},In.tap=function(e,t){return t(e),e},In.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ke(o);return Ja(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Pa(e,t,{leading:r,maxWait:t,trailing:i})},In.thru=fa,In.toArray=ds,In.toPairs=Ns,In.toPairsIn=Is,In.toPath=function(e){return Ha(e)?Mt(e,Fo):ss(e)?[e]:Oi(zo(vs(e)))},In.toPlainObject=gs,In.transform=function(e,t,n){var r=Ha(e),i=r||$a(e)||ls(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ja(e)&&Xa(o)?jn(Ve(e)):{}}return(i?Ct:yr)(e,(function(e,r,i){return t(n,e,r,i)})),n},In.unary=function(e){return Oa(e,1)},In.union=ea,In.unionBy=ta,In.unionWith=na,In.uniq=function(e){return e&&e.length?si(e):[]},In.uniqBy=function(e,t){return e&&e.length?si(e,oo(t,2)):[]},In.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?si(e,i,t):[]},In.unset=function(e,t){return null==e||li(e,t)},In.unzip=ra,In.unzipWith=ia,In.update=function(e,t,n){return null==e?e:ci(e,t,mi(n))},In.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ci(e,t,mi(n),r)},In.values=js,In.valuesIn=function(e){return null==e?[]:Xt(e,Ms(e))},In.without=oa,In.words=Xs,In.wrap=function(e,t){return Fa(mi(t),e)},In.xor=aa,In.xorBy=sa,In.xorWith=la,In.zip=ca,In.zipObject=function(e,t){return pi(e||[],t||[],Jn)},In.zipObjectDeep=function(e,t){return pi(e||[],t||[],Xr)},In.zipWith=ua,In.entries=Ns,In.entriesIn=Is,In.extend=bs,In.extendWith=xs,al(In,In),In.add=vl,In.attempt=Ks,In.camelCase=Bs,In.capitalize=Gs,In.ceil=yl,In.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ms(n))==n?n:0),t!==i&&(t=(t=ms(t))==t?t:0),or(ms(e),t,n)},In.clone=function(e){return ar(e,4)},In.cloneDeep=function(e){return ar(e,5)},In.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:i)},In.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:i)},In.conformsTo=function(e,t){return null==t||sr(e,t,Ps(t))},In.deburr=Us,In.defaultTo=function(e,t){return null==e||e!=e?t:e},In.divide=bl,In.endsWith=function(e,t,n){e=vs(e),t=ai(t);var r=e.length,o=n=n===i?r:or(ps(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},In.eq=ja,In.escape=function(e){return(e=vs(e))&&Z.test(e)?e.replace(q,tn):e},In.escapeRegExp=function(e){return(e=vs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},In.every=function(e,t,n){var r=Ha(e)?kt:fr;return n&&vo(e,t,n)&&(t=i),r(e,oo(t,3))},In.find=ma,In.findIndex=Uo,In.findKey=function(e,t){return Nt(e,oo(t,3),yr)},In.findLast=ga,In.findLastIndex=Ho,In.findLastKey=function(e,t){return Nt(e,oo(t,3),br)},In.floor=xl,In.forEach=va,In.forEachRight=ya,In.forIn=function(e,t){return null==e?e:gr(e,oo(t,3),Ms)},In.forInRight=function(e,t){return null==e?e:vr(e,oo(t,3),Ms)},In.forOwn=function(e,t){return e&&yr(e,oo(t,3))},In.forOwnRight=function(e,t){return e&&br(e,oo(t,3))},In.get=Cs,In.gt=Ba,In.gte=Ga,In.has=function(e,t){return null!=e&&po(e,t,Cr)},In.hasIn=Os,In.head=Wo,In.identity=nl,In.includes=function(e,t,n,r){e=Wa(e)?e:js(e),n=n&&!r?ps(n):0;var i=e.length;return n<0&&(n=gn(i+n,0)),as(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&jt(e,t,n)>-1},In.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ps(n);return i<0&&(i=gn(r+i,0)),jt(e,t,i)},In.inRange=function(e,t,n){return t=fs(t),n===i?(n=t,t=0):n=fs(n),function(e,t,n){return e>=vn(t,n)&&e<gn(t,n)}(e=ms(e),t,n)},In.invoke=Rs,In.isArguments=Ua,In.isArray=Ha,In.isArrayBuffer=Va,In.isArrayLike=Wa,In.isArrayLikeObject=qa,In.isBoolean=function(e){return!0===e||!1===e||es(e)&&_r(e)==v},In.isBuffer=$a,In.isDate=Za,In.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},In.isEmpty=function(e){if(null==e)return!0;if(Wa(e)&&(Ha(e)||"string"==typeof e||"function"==typeof e.splice||$a(e)||ls(e)||Ua(e)))return!e.length;var t=fo(e);if(t==E||t==k)return!e.size;if(wo(e))return!Dr(e).length;for(var n in e)if(Te.call(e,n))return!1;return!0},In.isEqual=function(e,t){return Pr(e,t)},In.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Pr(e,t,i,n):!!r},In.isError=Ya,In.isFinite=function(e){return"number"==typeof e&&Ft(e)},In.isFunction=Xa,In.isInteger=Ka,In.isLength=Qa,In.isMap=ts,In.isMatch=function(e,t){return e===t||Mr(e,t,so(t))},In.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Mr(e,t,so(t),n)},In.isNaN=function(e){return ns(e)&&e!=+e},In.isNative=function(e){if(xo(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ar(e)},In.isNil=function(e){return null==e},In.isNull=function(e){return null===e},In.isNumber=ns,In.isObject=Ja,In.isObjectLike=es,In.isPlainObject=rs,In.isRegExp=is,In.isSafeInteger=function(e){return Ka(e)&&e>=-9007199254740991&&e<=d},In.isSet=os,In.isString=as,In.isSymbol=ss,In.isTypedArray=ls,In.isUndefined=function(e){return e===i},In.isWeakMap=function(e){return es(e)&&fo(e)==P},In.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==_r(e)},In.join=function(e,t){return null==e?"":Vt.call(e,t)},In.kebabCase=Hs,In.last=Yo,In.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=ps(n))<0?gn(r+o,0):vn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):It(e,Gt,o,!0)},In.lowerCase=Vs,In.lowerFirst=Ws,In.lt=cs,In.lte=us,In.max=function(e){return e&&e.length?pr(e,nl,Sr):i},In.maxBy=function(e,t){return e&&e.length?pr(e,oo(t,2),Sr):i},In.mean=function(e){return Ut(e,nl)},In.meanBy=function(e,t){return Ut(e,oo(t,2))},In.min=function(e){return e&&e.length?pr(e,nl,zr):i},In.minBy=function(e,t){return e&&e.length?pr(e,oo(t,2),zr):i},In.stubArray=hl,In.stubFalse=ml,In.stubObject=function(){return{}},In.stubString=function(){return""},In.stubTrue=function(){return!0},In.multiply=wl,In.nth=function(e,t){return e&&e.length?Br(e,ps(t)):i},In.noConflict=function(){return dt._===this&&(dt._=Ie),this},In.noop=sl,In.now=Ca,In.pad=function(e,t,n){e=vs(e);var r=(t=ps(t))?un(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Gi(pt(i),n)+e+Gi(ft(i),n)},In.padEnd=function(e,t,n){e=vs(e);var r=(t=ps(t))?un(e):0;return t&&r<t?e+Gi(t-r,n):e},In.padStart=function(e,t,n){e=vs(e);var r=(t=ps(t))?un(e):0;return t&&r<t?Gi(t-r,n)+e:e},In.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(vs(e).replace(re,""),t||0)},In.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=fs(e),t===i?(t=e,e=0):t=fs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=xn();return vn(e+o*(t-e+st("1e-"+((o+"").length-1))),t)}return Wr(e,t)},In.reduce=function(e,t,n){var r=Ha(e)?Tt:Wt,i=arguments.length<3;return r(e,oo(t,4),n,i,ur)},In.reduceRight=function(e,t,n){var r=Ha(e)?Dt:Wt,i=arguments.length<3;return r(e,oo(t,4),n,i,dr)},In.repeat=function(e,t,n){return t=(n?vo(e,t,n):t===i)?1:ps(t),qr(vs(e),t)},In.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},In.result=function(e,t,n){var r=-1,o=(t=gi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Fo(t[r])];a===i&&(r=o,a=n),e=Xa(a)?a.call(e):a}return e},In.round=El,In.runInContext=e,In.sample=function(e){return(Ha(e)?Yn:Zr)(e)},In.size=function(e){if(null==e)return 0;if(Wa(e))return as(e)?un(e):e.length;var t=fo(e);return t==E||t==k?e.size:Dr(e).length},In.snakeCase=qs,In.some=function(e,t,n){var r=Ha(e)?zt:ti;return n&&vo(e,t,n)&&(t=i),r(e,oo(t,3))},In.sortedIndex=function(e,t){return ni(e,t)},In.sortedIndexBy=function(e,t,n){return ri(e,t,oo(n,2))},In.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ni(e,t);if(r<n&&ja(e[r],t))return r}return-1},In.sortedLastIndex=function(e,t){return ni(e,t,!0)},In.sortedLastIndexBy=function(e,t,n){return ri(e,t,oo(n,2),!0)},In.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ni(e,t,!0)-1;if(ja(e[n],t))return n}return-1},In.startCase=$s,In.startsWith=function(e,t,n){return e=vs(e),n=null==n?0:or(ps(n),0,e.length),t=ai(t),e.slice(n,n+t.length)==t},In.subtract=_l,In.sum=function(e){return e&&e.length?qt(e,nl):0},In.sumBy=function(e,t){return e&&e.length?qt(e,oo(t,2)):0},In.template=function(e,t,n){var r=In.templateSettings;n&&vo(e,t,n)&&(t=i),e=vs(e),t=xs({},t,r,Yi);var o,a,s=xs({},t.imports,r.imports,Yi),l=Ps(s),c=Xt(s,l),u=0,d=t.interpolate||be,f="__p += '",p=Ce((t.escape||be).source+"|"+d.source+"|"+(d===K?de:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Te.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(p,(function(t,n,r,i,s,l){return r||(r=i),f+=e.slice(u,l).replace(xe,nn),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),f+="';\n";var m=Te.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new we("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(U,""):f).replace(H,"$1").replace(V,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Ks((function(){return Ee(l,h+"return "+f).apply(i,c)}));if(g.source=f,Ya(g))throw g;return g},In.times=function(e,t){if((e=ps(e))<1||e>d)return[];var n=p,r=vn(e,p);t=oo(t),e-=p;for(var i=$t(r,t);++n<e;)t(n);return i},In.toFinite=fs,In.toInteger=ps,In.toLength=hs,In.toLower=function(e){return vs(e).toLowerCase()},In.toNumber=ms,In.toSafeInteger=function(e){return e?or(ps(e),-9007199254740991,d):0===e?e:0},In.toString=vs,In.toUpper=function(e){return vs(e).toUpperCase()},In.trim=function(e,t,n){if((e=vs(e))&&(n||t===i))return Zt(e);if(!e||!(t=ai(t)))return e;var r=dn(e),o=dn(t);return yi(r,Qt(r,o),Jt(r,o)+1).join("")},In.trimEnd=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.slice(0,fn(e)+1);if(!e||!(t=ai(t)))return e;var r=dn(e);return yi(r,0,Jt(r,dn(t))+1).join("")},In.trimStart=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=ai(t)))return e;var r=dn(e);return yi(r,Qt(r,dn(t))).join("")},In.truncate=function(e,t){var n=30,r="...";if(Ja(t)){var o="separator"in t?t.separator:o;n="length"in t?ps(t.length):n,r="omission"in t?ai(t.omission):r}var a=(e=vs(e)).length;if(rn(e)){var s=dn(e);a=s.length}if(n>=a)return e;var l=n-un(r);if(l<1)return r;var c=s?yi(s,0,l).join(""):e.slice(0,l);if(o===i)return c+r;if(s&&(l+=c.length-l),is(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=Ce(o.source,vs(fe.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var f=u.index;c=c.slice(0,f===i?l:f)}}else if(e.indexOf(ai(o),l)!=l){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r},In.unescape=function(e){return(e=vs(e))&&$.test(e)?e.replace(W,pn):e},In.uniqueId=function(e){var t=++De;return vs(e)+t},In.upperCase=Zs,In.upperFirst=Ys,In.each=va,In.eachRight=ya,In.first=Wo,al(In,(gl={},yr(In,(function(e,t){Te.call(In.prototype,t)||(gl[t]=e)})),gl),{chain:!1}),In.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){In[e].placeholder=In})),Ct(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===i?1:gn(ps(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,p),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(nl)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=$r((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Lr(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Da(oo(e)))},Un.prototype.slice=function(e,t){e=ps(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ps(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(p)},yr(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=In[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(In.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Un,c=s[0],u=l||Ha(t),d=function(e){var t=o.apply(In,At([e],s));return r&&f?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,m=l&&!p;if(!a&&u){t=m?t:new Un(this);var g=e.apply(t,s);return g.__actions__.push({func:fa,args:[d],thisArg:i}),new Gn(g,f)}return h&&m?e.apply(this,s):(g=this.thru(d),h?r?g.value()[0]:g.value():g)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Le[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);In.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ha(i)?i:[],e)}return this[n]((function(n){return t.apply(Ha(n)?n:[],e)}))}})),yr(Un.prototype,(function(e,t){var n=In[t];if(n){var r=n.name+"";Te.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[Ni(i,2).name]=[{name:"wrapper",func:i}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Oi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oi(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ha(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=vn(t,e+a);break;case"takeRight":e=gn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,f=0,p=vn(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return di(e,this.__actions__);var h=[];e:for(;l--&&f<p;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],y=v.iteratee,b=v.type,x=y(g);if(2==b)g=x;else if(!x){if(1==b)continue e;break e}}h[f++]=g}return h},In.prototype.at=pa,In.prototype.chain=function(){return da(this)},In.prototype.commit=function(){return new Gn(this.value(),this.__chain__)},In.prototype.next=function(){this.__values__===i&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},In.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=Io(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},In.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:fa,args:[Jo],thisArg:i}),new Gn(t,this.__chain__)}return this.thru(Jo)},In.prototype.toJSON=In.prototype.valueOf=In.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},In.prototype.first=In.prototype.head,Ye&&(In.prototype[Ye]=function(){return this}),In}();dt._=hn,(r=function(){return hn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},733:(e,t,n)=>{var r=n(6738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},1100:(e,t,n)=>{var r=n(7772);e.exports=function(){return r.Date.now()}},2436:(e,t,n)=>{var r=n(4073),i=n(9259);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},7642:(e,t,n)=>{var r=n(1704),i=n(9259),o=n(4795),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},6188:(e,t,n)=>{var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},7320:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))n.call(o,c)&&(s[c]=o[c]);if(t){a=t(o);for(var u=0;u<a.length;u++)r.call(o,a[u])&&(s[a[u]]=o[a[u]])}}return s}},8018:(e,t,n)=>{"use strict";var r=n(1600),i=n(7425);t.ZP=void 0;var o=r(n(3100)),a=r(n(8870)),s=r(n(5297)),l=r(n(8230)),c=r(n(421)),u=r(n(1147)),d=r(n(6290)),f=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=x(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(8156)),p=n(901),h=r(n(1230)),m=r(n(6496)),g=r(n(5099)),v=r(n(835)),y=r(n(7339)),b=r(n(8310));function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(x=function(e){return e?n:t})(e)}var w=n(4841).deepPurple[500],E=function(e){(0,l.default)(i,e);var t,n,r=(t=i,n=function(){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(){var e,r=(0,u.default)(t);if(n){var i=(0,u.default)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,c.default)(this,e)});function i(){var e;(0,o.default)(this,i);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return e=r.call.apply(r,[this].concat(n)),(0,d.default)((0,s.default)(e),"buildUrl",(function(t){var n=e.props.storagePath;return t?t.startsWith("http:")||t.startsWith("https:")?t:n+t.replace(/^\/+/,""):""})),(0,d.default)((0,s.default)(e),"getFallbackAvatar",(function(){var t=e.props,n=t.entityType,r=t.classes,i=t.backgroundColor,o=t.color,a=t.className,s=(0,v.default)(n);return f.default.createElement(p.Avatar,{className:(0,b.default)(a,r.avatar),style:{border:"2px solid ".concat(n.typeColor||w),backgroundColor:i||n.typeColor||w,color:o}},s&&s.charAt(0)||f.default.createElement(m.default,null))})),e}return(0,a.default)(i,[{key:"render",value:function(){var e=this.props,t=e.entityType,n=e.classes,r=e.className,i=t.typeIcon||t.typeImage;return i?f.default.createElement(p.Avatar,{className:(0,b.default)(r,n.avatar),style:{border:"2px solid ".concat(t.typeColor||w),backgroundColor:"#FFFFFF"},src:this.buildUrl(i)},this.getFallbackAvatar()):this.getFallbackAvatar()}}]),i}(f.PureComponent);(0,d.default)(E,"propTypes",{entityType:g.default.shape({typeColor:g.default.string,typeIcon:g.default.string,typeImage:g.default.string,label:g.default.string,uri:g.default.string}),className:g.default.string,classes:g.default.shape({avatar:g.default.string}),storagePath:g.default.string,backgroundColor:g.default.string,color:g.default.string}),(0,d.default)(E,"defaultProps",{storagePath:"https://reltio-images.s3.amazonaws.com/api/",entityType:{},color:"#FFFFFF"});var _=(0,h.default)(y.default)(E);t.ZP=_},7339:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={avatar:{"& img":{display:"flex",flexDirection:"row",alignItems:"center","&::before":{width:"100%"}}}}},4660:(e,t,n)=>{"use strict";var r=n(1600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(8156)),o=r(n(5099)),a=r(n(3627)),s=r(n(9233)),l=r(n(4294)),c=r(n(5751)),u=r(n(8310));function d(e){var t=e.classes,n=e.title,r=e.message;return i.default.createElement("div",null,i.default.createElement("span",{className:t.errorTitle},n),i.default.createElement("span",{className:t.errorMessage},r))}d.defaultProps={title:c.default.text("Error:"),message:c.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,r=e.onClose,o=e.style,f=e.classes,p=e.className,h=c.default.text("Close");if(i.default.isValidElement(n))t=n;else{var m=n||{},g=m.title,v=m.message;t=i.default.createElement(d,{classes:f,title:g,message:v})}return i.default.createElement("div",{className:(0,u.default)(f.errorBlock,p),style:o,"data-reltio-id":"error-message"},i.default.createElement("div",{className:f.descriptionBlock},t),i.default.createElement("div",{className:f.closeIconContainer},i.default.createElement(a.default,{title:h,placement:"bottom"},i.default.createElement(s.default,{onClick:r,"aria-label":h,size:"large"},i.default.createElement(l.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 p=f;t.default=p},4176:(e,t,n)=>{"use strict";var r=n(1600),i=n(7425);t.ZP=void 0;var o=r(n(3100)),a=r(n(8870)),s=r(n(5297)),l=r(n(8230)),c=r(n(421)),u=r(n(1147)),d=r(n(6290)),f=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(8156)),p=r(n(5099)),h=n(7420),m=r(n(4660)),g=r(n(1230)),v=r(n(1444));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}var b=function(e){(0,l.default)(i,e);var t,n,r=(t=i,n=function(){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(){var e,r=(0,u.default)(t);if(n){var i=(0,u.default)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,c.default)(this,e)});function i(e){var t;return(0,o.default)(this,i),t=r.call(this,e),(0,d.default)((0,s.default)(t),"processAutoCloseInterval",(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)))})),i.$$instance=(0,s.default)(t),t.handleCloseErrorMessage=t.handleCloseErrorMessage.bind((0,s.default)(t)),t.state={errors:[]},t}return(0,a.default)(i,[{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,o=r[i-1];return f.default.createElement(h.TransitionGroup,null,Boolean(i)&&f.default.createElement(h.CSSTransition,{key:"errorMessage".concat(i),classNames:{enter:n.errorContainerEnter,enterActive:n.errorContainerEnterActive,exit:n.errorContainerExit,exitActive:n.errorContainerExitActive,appear:n.errorContainerEnter,appearActive:n.errorContainerEnterActive},timeout:{enter:600,exit:300}},f.default.createElement(m.default,{classes:n,onClose:this.handleCloseErrorMessage,error:o,className:t})))}}],[{key:"addError",value:function(e){i.$$instance&&(i.$$instance.setState({errors:i.$$instance.state.errors.concat(e)}),i.$$instance.processAutoCloseInterval())}}]),i}(f.PureComponent);b.propTypes={className:p.default.oneOfType([p.default.string,p.default.object]),classes:p.default.object,autoCloseInterval:p.default.number},b.defaultProps={classes:{}};var x=(0,g.default)(v.default)(b);t.ZP=x},1444:(e,t,n)=>{"use strict";var r=n(1600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(6290)),o="#FFFFFF";t.default=function(e){var t;return{errorContainer:{zIndex:2},errorContainerEnter:{opacity:0},errorContainerEnterActive:{opacity:1,transition:"opacity 600ms ease-in"},errorContainerExit:{opacity:1},errorContainerExitActive:{opacity:0,transition:"opacity 300ms ease-in"},errorBlock:(t={zIndex:2,color:o,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)"},(0,i.default)(t,e.breakpoints.down("md"),{left:0,right:0}),(0,i.default)(t,e.breakpoints.down("lg"),{left:288,right:32}),(0,i.default)(t,e.breakpoints.down("xl"),{left:336,right:80}),(0,i.default)(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:o,marginTop:5}}}}},835:(e,t,n)=>{"use strict";var r=n(1600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e?(0,i.default)(e,"label")||(0,i.default)(e,"uri","").slice((0,i.default)(e,"uri","").lastIndexOf("/")+1):null};var i=r(n(2579))},6866:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function E(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||w(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},8570:(e,t,n)=>{"use strict";e.exports=n(6866)},7420:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CSSTransition:()=>S,ReplaceTransition:()=>T,SwitchTransition:()=>U,Transition:()=>w,TransitionGroup:()=>M,config:()=>d});var r=n(7896),i=n(1461),o=n(1665);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}n(5099);var s=n(8156),l=n.n(s),c=n(7111),u=n.n(c);const d={disabled:!1},f=l().createContext(null);var p=function(e){return e.scrollTop},h="unmounted",m="exited",g="entering",v="entered",y="exiting",b=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=m,r.appearStatus=g):i=v:i=t.unmountOnExit||t.mountOnEnter?h:m,r.state={status:i},r.nextCallback=null,r}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===h?{status:m}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==g&&n!==v&&(t=g):n!==g&&n!==v||(t=y)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.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}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===g){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:u().findDOMNode(this);n&&p(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===m&&this.setState({status:h})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[u().findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||d.disabled?this.safeSetState({status:v},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:g},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:v},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u().findDOMNode(this);t&&!d.disabled?(this.props.onExit(r),this.safeSetState({status:y},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:m},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:m},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.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},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===h)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,i.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return l().createElement(f.Provider,{value:null},"function"==typeof n?n(e,r):l().cloneElement(l().Children.only(n),r))},t}(l().Component);function x(){}b.contextType=f,b.propTypes={},b.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:x,onEntering:x,onEntered:x,onExit:x,onExiting:x,onExited:x},b.UNMOUNTED=h,b.EXITED=m,b.ENTERING=g,b.ENTERED=v,b.EXITING=y;const w=b;var E=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},_=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}(0,o.Z)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&p(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&E(e,r),i&&E(e,i),o&&E(e,o)},n.render=function(){var e=this.props,t=(e.classNames,(0,i.Z)(e,["classNames"]));return l().createElement(w,(0,r.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l().Component);_.defaultProps={classNames:""},_.propTypes={};const S=_;var C=n(753);function O(e,t){var n=Object.create(null);return e&&s.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,s.isValidElement)(e)?t(e):e}(e)})),n}function k(e,t,n){return null!=n[t]?n[t]:e.props[t]}function L(e,t,n){var r=O(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if((0,s.isValidElement)(a)){var l=o in t,c=o in r,u=t[o],d=(0,s.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,s.isValidElement)(u)&&(i[o]=(0,s.cloneElement)(a,{onExited:n.bind(null,a),in:u.props.in,exit:k(a,"exit",e),enter:k(a,"enter",e)})):i[o]=(0,s.cloneElement)(a,{in:!1}):i[o]=(0,s.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:k(a,"exit",e),enter:k(a,"enter",e)})}})),i}var R=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},P=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind((0,C.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,O(n.children,(function(e){return(0,s.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:k(e,"appear",n),enter:k(e,"enter",n),exit:k(e,"exit",n)})}))):L(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=O(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,r.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,i.Z)(e,["component","childFactory"]),o=this.state.contextValue,a=R(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?l().createElement(f.Provider,{value:o},a):l().createElement(f.Provider,{value:o},l().createElement(t,r,a))},t}(l().Component);P.propTypes={},P.defaultProps={component:"div",childFactory:function(e){return e}};const M=P;var A=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}(0,o.Z)(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,i=this.props.children,o=l().Children.toArray(i)[t];if(o.props[e]&&(r=o.props)[e].apply(r,n),this.props[e]){var a=o.props.nodeRef?void 0:u().findDOMNode(this);this.props[e](a)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=(0,i.Z)(e,["children","in"]),o=l().Children.toArray(t),a=o[0],s=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,l().createElement(M,r,n?l().cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):l().cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(l().Component);A.propTypes={};const T=A;var D,z,F="out-in",N="in-out",I=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},j=((D={})[F]=function(e){var t=e.current,n=e.changeState;return l().cloneElement(t,{in:!1,onExited:I(t,"onExited",(function(){n(g,null)}))})},D[N]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,l().cloneElement(r,{in:!0,onEntered:I(r,"onEntered",(function(){n(g)}))})]},D),B=((z={})[F]=function(e){var t=e.children,n=e.changeState;return l().cloneElement(t,{in:!0,onEntered:I(t,"onEntered",(function(){n(v,l().cloneElement(t,{in:!0}))}))})},z[N]=function(e){var t=e.current,n=e.children,r=e.changeState;return[l().cloneElement(t,{in:!1,onExited:I(t,"onExited",(function(){r(v,l().cloneElement(n,{in:!0}))}))}),l().cloneElement(n,{in:!0})]},z),G=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={status:v,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===g&&e.mode===N?{status:g}:!t.current||((n=t.current)===(r=e.children)||l().isValidElement(n)&&l().isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:l().cloneElement(e.children,{in:!0})}:{status:y};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,i=this.state,o=i.status,a=i.current,s={children:n,current:a,changeState:this.changeState,status:o};switch(o){case g:e=B[r](s);break;case y:e=j[r](s);break;case v:e=a}return l().createElement(f.Provider,{value:{isMounting:!this.appeared}},e)},t}(l().Component);G.propTypes={},G.defaultProps={mode:F};const U=G},1837:(e,t,n)=>{"use strict";n(7320);var r=n(8156),i=60103;if("function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:a.current}}},2322:(e,t,n)=>{"use strict";e.exports=n(1837)},6475:(e,t)=>{"use strict";var n,r,i,o,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,l=null,c=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(c,0),e}},u=Date.now();t.unstable_now=function(){return Date.now()-u},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(c,0))},r=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},o=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,f=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var g=f.now();t.unstable_now=function(){return f.now()-g}}var v=!1,y=null,b=-1,x=5,w=0;o=function(){return t.unstable_now()>=w},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):x=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,_=E.port2;E.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();w=e+x;try{y(!0,e)?_.postMessage(null):(v=!1,y=null)}catch(e){throw _.postMessage(null),e}}else v=!1},n=function(e){y=e,v||(v=!0,_.postMessage(null))},r=function(e,n){b=p((function(){e(t.unstable_now())}),n)},i=function(){h(b),b=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<k(i,t)))break e;e[r]=t,e[n]=i,n=r}}function C(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>k(a,n))void 0!==l&&0>k(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>k(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var L=[],R=[],P=1,M=null,A=3,T=!1,D=!1,z=!1;function F(e){for(var t=C(R);null!==t;){if(null===t.callback)O(R);else{if(!(t.startTime<=e))break;O(R),t.sortIndex=t.expirationTime,S(L,t)}t=C(R)}}function N(e){if(z=!1,F(e),!D)if(null!==C(L))D=!0,n(I);else{var t=C(R);null!==t&&r(N,t.startTime-e)}}function I(e,n){D=!1,z&&(z=!1,i()),T=!0;var a=A;try{for(F(n),M=C(L);null!==M&&(!(M.expirationTime>n)||e&&!o());){var s=M.callback;if(null!==s){M.callback=null,A=M.priorityLevel;var l=s(M.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?M.callback=l:M===C(L)&&O(L),F(n)}else O(L);M=C(L)}if(null!==M)var c=!0;else{var u=C(R);null!==u&&r(N,u.startTime-n),c=!1}return c}finally{M=null,A=a,T=!1}}function j(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||T||(D=!0,n(I))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return C(L)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:j(e)}else a=j(e),l=s;return e={id:P++,callback:o,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,S(R,e),null===C(L)&&e===C(R)&&(z?i():z=!0,r(N,l-s))):(e.sortIndex=a,S(L,e),D||T||(D=!0,n(I))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();F(e);var n=C(L);return n!==M&&null!==M&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<M.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},4616:(e,t,n)=>{"use strict";e.exports=n(6475)},1250:function(e,t,n){"use strict";var r,i=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)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1181),s=o(n(2383)),l=n(8586),c=n(432),u=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 i(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.updateState=function(e){return this.setState(e(this.getState())),this},t.prototype.animate=function(e,t,n){var r=this;if(this.enabled){var i=Object.assign({},a.ANIMATE_DEFAULTS,t),o=this.validateState(e),c="function"==typeof i.easing?i.easing:s.default[i.easing],u=Date.now(),d=this.getState(),f=function(){var e=(Date.now()-u)/i.duration;if(e>=1)return r.nextFrame=null,r.setState(o),void(r.animationCallback&&(r.animationCallback.call(null),r.animationCallback=void 0));var t=c(e),n={};"number"==typeof o.x&&(n.x=d.x+(o.x-d.x)*t),"number"==typeof o.y&&(n.y=d.y+(o.y-d.y)*t),"number"==typeof o.angle&&(n.angle=d.angle+(o.angle-d.angle)*t),"number"==typeof o.ratio&&(n.ratio=d.ratio+(o.ratio-d.ratio)*t),r.setState(n),r.nextFrame=(0,l.requestFrame)(f)};this.nextFrame?((0,l.cancelFrame)(this.nextFrame),this.animationCallback&&this.animationCallback.call(null),this.nextFrame=(0,l.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||u)},e)}else this.animate({ratio:this.ratio/u})},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||u)},e)}else this.animate({ratio:this.ratio*u})},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,i=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)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.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 l(e,t){var n=o(o({},s(e,t)),{sigmaDefaultPrevented:!1,preventSigmaDefault:function(){n.sigmaDefaultPrevented=!0},original:e});return n}t.getPosition=s,t.getMouseCoords=l,t.getWheelCoords=function(e,t){return o(o({},l(e,t)),{delta:u(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 u(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.getTouchesArray=c,t.getTouchCoords=function(e,t){return{touches:c(e.touches).map((function(e){return s(e,t)})),original:e}},t.getWheelDelta=u;var d=function(e){function t(t,n){var r=e.call(this)||this;return r.container=t,r.renderer=n,r}return i(t,e),t}(a.TypedEventEmitter);t.default=d},3834:function(e,t,n){"use strict";var r,i=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)}),o=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)&&o(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var l=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 i(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,l.getMouseCoords)(e,this.container))}},t.prototype.handleRightClick=function(e){this.enabled&&this.emit("rightClick",(0,l.getMouseCoords)(e,this.container))},t.prototype.handleDoubleClick=function(e){if(this.enabled){e.preventDefault(),e.stopPropagation();var t=(0,l.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,l.getPosition)(e,this.container),r),{easing:"quadraticInOut",duration:200})}}},t.prototype.handleDown=function(e){if(this.enabled){if(0===e.button){this.startCameraState=this.renderer.getCamera().getState();var t=(0,l.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,l.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,l.getPosition)(e,this.container),i=r.x,o=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===i&&this.lastMouseY===o||n.setState({x:a.x,y:a.y}),this.isMoving=!1,setTimeout((function(){t.draggedEvents=0,t.renderer.refresh()}),0),this.emit("mouseup",(0,l.getMouseCoords)(e,this.container))}},t.prototype.handleMove=function(e){var t=this;if(this.enabled){var n=(0,l.getMouseCoords)(e,this.container);if(this.emit("mousemovebody",n),e.target===this.container&&this.emit("mousemove",n),!n.sigmaDefaultPrevented&&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(),i=(0,l.getPosition)(e,this.container),o=i.x,a=i.y,s=this.renderer.viewportToFramedGraph({x:this.lastMouseX,y:this.lastMouseY}),c=this.renderer.viewportToFramedGraph({x:o,y:a}),u=s.x-c.x,d=s.y-c.y,f=r.getState(),p=f.x+u,h=f.y+d;r.setState({x:p,y:h}),this.lastMouseX=o,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,l.getWheelDelta)(e);if(n){var r=(0,l.getWheelCoords)(e,this.container);if(this.emit("wheel",r),!r.sigmaDefaultPrevented){var i=n>0?1/1.7:1.7,o=this.renderer.getCamera(),a=o.getBoundedRatio(o.getState().ratio*i),s=n>0?1:-1,c=Date.now();this.currentWheelDirection===s&&this.lastWheelTriggerTime&&c-this.lastWheelTriggerTime<50||(o.animate(this.renderer.getViewportZoomedState((0,l.getPosition)(e,this.container),a),{easing:"quadraticOut",duration:250},(function(){t.currentWheelDirection=0})),this.currentWheelDirection=s,this.lastWheelTriggerTime=c)}}}},t.prototype.handleOut=function(){},t}(l.default);t.default=c},916:function(e,t,n){"use strict";var r,i=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)}),o=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)&&o(t,e,n);return a(t,e),t},l=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var c=s(n(8231)),u=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.enabled=!0,r.isMoving=!1,r.hasMoved=!1,r.touchMode=0,r.startTouchesPositions=[],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 i(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 i=n||t.touches[0],o=new MouseEvent(e,{clientX:i.clientX,clientY:i.clientY,altKey:t.altKey,ctrlKey:t.ctrlKey});o.isFakeSigmaMouseEvent=!0,(r||this.container).dispatchEvent(o)},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.touchMode=n.length,this.startCameraState=this.renderer.getCamera().getState(),this.startTouchesPositions=n.map((function(e){return(0,c.getPosition)(e,t.container)})),this.lastTouches=n,this.lastTouchesPositions=this.startTouchesPositions,2===this.touchMode){var r=l(this.startTouchesPositions,2),i=r[0],o=i.x,a=i.y,s=r[1],u=s.x,d=s.y;this.startTouchesAngle=Math.atan2(d-a,u-o),this.startTouchesDistance=Math.sqrt(Math.pow(u-o,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.lastTouches&&this.lastTouches.length&&(this.dispatchRelatedMouseEvent("mouseup",e,this.lastTouches[0],document),this.hasMoved||this.dispatchRelatedMouseEvent("click",e,this.lastTouches[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.hasMoved=!1,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=(0,c.getTouchesArray)(e.touches),i=r.map((function(e){return(0,c.getPosition)(e,n.container)}));if(this.lastTouches=r,this.lastTouchesPositions=i,this.hasMoved||(this.hasMoved=i.some((function(e,t){var r=n.startTouchesPositions[t];return e.x!==r.x||e.y!==r.y}))),this.hasMoved){this.isMoving=!0,this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout((function(){n.isMoving=!1}),200);var o=this.renderer.getCamera(),a=this.startCameraState;switch(this.touchMode){case 1:var s=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0]),u=s.x,d=s.y,f=this.renderer.viewportToFramedGraph(i[0]),p=f.x,h=f.y;o.setState({x:a.x+u-p,y:a.y+d-h});break;case 2:var m={},g=i[0],v=g.x,y=g.y,b=i[1],x=b.x,w=b.y,E=Math.atan2(w-y,x-v)-this.startTouchesAngle,_=Math.hypot(w-y,x-v)/this.startTouchesDistance,S=o.getBoundedRatio(a.ratio/_);m.ratio=S,m.angle=a.angle+E;var C=this.getDimensions(),O=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0],{cameraState:a}),k=Math.min(C.width,C.height),L=k/C.width,R=S/k;h=y-k/2/(k/C.height),p=(t=l([(p=v-k/2/L)*Math.cos(-m.angle)-h*Math.sin(-m.angle),h*Math.cos(-m.angle)+p*Math.sin(-m.angle)],2))[0],h=t[1],m.x=O.x-p*R,m.y=O.y+h*R,o.setState(m)}this.emit("touchmove",(0,c.getTouchCoords)(e,this.container))}}},t}(c.default);t.default=u},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 i=new n(e,t),o=this.getIndex(r),a=this.cells[o];a||(a=[],this.cells[o]=a),a.push(i)},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,i=Math.ceil(r),o=[];for(var a in this.cells)for(var s=this.cells[a],l=0;l<Math.min(i,s.length);l++)o.push(s[l].key);return o},e}();t.LabelGrid=r,t.edgeLabelsToDisplayFromNodes=function(e){var t=e.graph,n=e.hoveredNode,r=e.highlightedNodes,i=e.displayedNodeLabels,o=[];return t.forEachEdge((function(e,t,a,s){(a===n||s===n||r.has(a)||r.has(s)||i.has(a)&&i.has(s))&&o.push(e)})),o}},9316: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.rectangleCollidesWithQuad=t.squareCollidesWithQuad=t.getCircumscribedAlignedRectangle=t.isRectangleAligned=void 0;var i=r(n(8884)),o=!1;function a(e){return e.x1===e.x2||e.y1===e.y2}function s(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,i={x:e.x1,y:e.y1},o={x:e.x2,y:e.y2},a={x:e.x1+n,y:e.y1+r},s={x:e.x2+n,y:e.y2+r},l=Math.min(i.x,o.x,a.x,s.x),c=Math.max(i.x,o.x,a.x,s.x),u=Math.min(i.y,o.y,a.y,s.y);return{x1:l,y1:u,x2:c,y2:u,height:Math.max(i.y,o.y,a.y,s.y)-u}}function l(e,t,n,r,i,o,a){return e<r+o&&e+n>r&&t<i+a&&t+n>i}function c(e,t,n,r,i,o,a,s){return e<i+a&&e+n>i&&t<o+s&&t+r>o}function u(e,t,n,r,i,o){var a=e<n+i/2;return t<r+o/2?a?1:2:a?3:4}t.isRectangleAligned=a,t.getCircumscribedAlignedRectangle=s,t.squareCollidesWithQuad=l,t.rectangleCollidesWithQuad=c;var d=function(){function e(e){var t;void 0===e&&(e={}),this.containers=((t={})[5460]=[],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,i,a,s){for(var c=i-s,u=a-s,d=2*s,f=0,p=0;;){if(f>=5)return n[p]=n[p]||[],void n[p].push(r);var h=4*p+4,m=4*p+8,g=4*p+12,v=4*p+16,y=l(c,u,d,t[h+0],t[h+1],t[h+2],t[h+3]),b=l(c,u,d,t[m+0],t[m+1],t[m+2],t[m+3]),x=l(c,u,d,t[g+0],t[g+1],t[g+2],t[g+3]),w=l(c,u,d,t[v+0],t[v+1],t[v+2],t[v+3]),E=[y,b,x,w].reduce((function(e,t){return t?e+1:e}),0);if(0===E&&0===f)return n[5460].push(r),void(!o&&n[5460].length>=5&&(o=!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===E)throw new Error("sigma/quadtree.insertNode: no collision (level: ".concat(f,", key: ").concat(r,", x: ").concat(i,", y: ").concat(a,", size: ").concat(s,")."));if(3===E)throw new Error("sigma/quadtree.insertNode: 3 impossible collisions (level: ".concat(f,", key: ").concat(r,", x: ").concat(i,", y: ").concat(a,", size: ").concat(s,")."));if(E>1)return n[p]=n[p]||[],void n[p].push(r);f++,y&&(p=h),b&&(p=m),x&&(p=g),w&&(p=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(),i=n.pop(),o=4*i+4,a=4*i+8,s=4*i+12,l=4*i+16,c=t[i+0],u=t[i+1],d=t[i+2]/2,f=t[i+3]/2;t[o+0]=c,t[o+1]=u,t[o+2]=d,t[o+3]=f,t[a+0]=c+d,t[a+1]=u,t[a+2]=d,t[a+3]=f,t[s+0]=c,t[s+1]=u+f,t[s+2]=d,t[s+3]=f,t[l+0]=c+d,t[l+1]=u+f,t[l+2]=d,t[l+3]=f,r<4&&(n.push(l,r+1),n.push(s,r+1),n.push(a,r+1),n.push(o,r+1))}}(0,this.data)},e.prototype.clear=function(){var e;return this.containers=((e={})[5460]=[],e),this},e.prototype.point=function(e,t){var n=this.containers[5460].slice(),r=0,o=0;do{this.containers[r]&&(0,i.default)(n,this.containers[r]),r=4*r+4*u(e,t,this.data[r+0],this.data[r+1],this.data[r+2],this.data[r+3]),o++}while(o<=5);return n},e.prototype.rectangle=function(e,t,n,r,o){var l=this.lastRectangle;return l&&e===l.x1&&n===l.x2&&t===l.y1&&r===l.y2&&o===l.height||(this.lastRectangle={x1:e,y1:t,x2:n,y2:r,height:o},a(this.lastRectangle)||(this.lastRectangle=s(this.lastRectangle)),this.cache=function(e,t,n,r,o,a,s){for(var l,u=[0,0],d=[];u.length;){var f=u.pop(),p=u.pop();if((l=n[p])&&(0,i.default)(d,l),!(f>=5)){var h=4*p+4,m=4*p+8,g=4*p+12,v=4*p+16,y=c(r,o,a,s,t[h+0],t[h+1],t[h+2],t[h+3]),b=c(r,o,a,s,t[m+0],t[m+1],t[m+2],t[m+3]),x=c(r,o,a,s,t[g+0],t[g+1],t[g+2],t[g+3]),w=c(r,o,a,s,t[v+0],t[v+1],t[v+2],t[v+3]);y&&u.push(h,f+1),b&&u.push(m,f+1),x&&u.push(g,f+1),w&&u.push(v,f+1)}}return d}(0,this.data,this.containers,e,t,Math.abs(e-n)||Math.abs(t-r),o),(0,i.default)(this.cache,this.containers[5460])),this.cache},e}();t.default=d},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 i=r(n(8953));t.Sigma=i.default;var o=r(n(1250));t.Camera=o.default;var a=r(n(9316));t.QuadTree=a.default;var s=r(n(3834));t.MouseCaptor=s.default,t.default=i.default},284:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){var o=i.edgeLabelSize,a=i.edgeLabelFont,s=i.edgeLabelWeight,l=i.edgeLabelColor.attribute?t[i.edgeLabelColor.attribute]||i.edgeLabelColor.color||"#000":i.edgeLabelColor.color,c=t.label;if(c){e.fillStyle=l,e.font="".concat(s," ").concat(o,"px ").concat(a);var u,d,f=n.size,p=r.size,h=n.x,m=n.y,g=r.x,v=r.y,y=g-h,b=v-m,x=Math.sqrt(y*y+b*b);if(!(x<f+p)){u=((h+=y*f/x)+(g-=y*p/x))/2,d=((m+=b*f/x)+(v-=b*p/x))/2,y=g-h,b=v-m,x=Math.sqrt(y*y+b*b);var w,E=e.measureText(c).width;if(E>x){for(c+="…",E=e.measureText(c).width;E>x&&c.length>1;)c=c.slice(0,-2)+"…",E=e.measureText(c).width;if(c.length<4)return}w=y>0?b>0?Math.acos(y/x):Math.asin(b/x):b>0?Math.acos(y/x)+Math.PI:Math.asin(y/x)+Math.PI/2,e.save(),e.translate(u,d),e.rotate(w),e.fillText(c,-E/2,t.size/2+o),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 i=r(n(2193));t.default=function(e,t,n){var r=n.labelSize,o=n.labelFont,a=n.labelWeight;if(e.font="".concat(a," ").concat(r,"px ").concat(o),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,l=Math.round(s+5),c=Math.round(r+4),u=Math.max(t.size,r/2)+2,d=Math.asin(c/2/u),f=Math.sqrt(Math.abs(Math.pow(u,2)-Math.pow(c/2,2)));e.beginPath(),e.moveTo(t.x+f,t.y+c/2),e.lineTo(t.x+u+l,t.y+c/2),e.lineTo(t.x+u+l,t.y-c/2),e.lineTo(t.x+f,t.y-c/2),e.arc(t.x,t.y,u,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,i.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,i=n.labelFont,o=n.labelWeight,a=n.labelColor.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color;e.fillStyle=a,e.font="".concat(o," ").concat(r,"px ").concat(i),e.fillText(t.label,t.x+t.size+3,t.y+r/3)}}},4488:function(e,t,n){"use strict";var r,i=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 o=function(e){function t(t,n,r,i,o){return e.call(this,t,n,r,i,o)||this}return i(t,e),t}(n(1549).AbstractProgram);t.AbstractEdgeProgram=o,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,i){this.programs.forEach((function(o){return o.process(e,t,n,r,i)}))},t}()}},1624:function(e,t,n){"use strict";var r,i=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 o=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i,o)||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 l=t.getUniformLocation(a.program,"u_ratio");if(null===l)throw new Error("AbstractNodeProgram: error while getting ratioLocation");a.ratioLocation=l;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 i(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=o,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){t.bind(),t.bufferData(),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),i=function(){function e(e,t,n,i,o){this.array=new Float32Array,this.points=i,this.attributes=o,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=i},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 i=n(4488),o=r(n(3193)),a=r(n(3653)),s=(0,i.createEdgeCompoundProgram)([a.default,o.default]);t.default=s},3193:function(e,t,n){"use strict";var r,i=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)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=o(n(577)),l=o(n(1604)),c=function(e){function t(t){var n=e.call(this,t,s.default,l.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 i=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===i)throw new Error("EdgeArrowHeadProgram: error while getting sqrtZoomRatioLocation");n.sqrtZoomRatioLocation=i;var o=t.getUniformLocation(n.program,"u_correctionRatio");if(null===o)throw new Error("EdgeArrowHeadProgram: error while getting correctionRatioLocation");return n.correctionRatioLocation=o,n.bind(),n}return i(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,i){if(r)for(var o=27*i,s=o+27;o<s;o++)this.array[o]=0;else{var l=n.size||1,c=t.size||1,u=e.x,d=e.y,f=t.x,p=t.y,h=(0,a.floatColor)(n.color),m=f-u,g=p-d,v=m*m+g*g,y=0,b=0;v&&(y=-g*(v=1/Math.sqrt(v))*l,b=m*v*l);var x=27*i,w=this.array;w[x++]=f,w[x++]=p,w[x++]=-y,w[x++]=-b,w[x++]=c,w[x++]=h,w[x++]=1,w[x++]=0,w[x++]=0,w[x++]=f,w[x++]=p,w[x++]=-y,w[x++]=-b,w[x++]=c,w[x++]=h,w[x++]=0,w[x++]=1,w[x++]=0,w[x++]=f,w[x++]=p,w[x++]=-y,w[x++]=-b,w[x++]=c,w[x++]=h,w[x++]=0,w[x++]=0,w[x]=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,i=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)}),o=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),l=o(n(3574)),c=o(n(3343)),u=function(e){function t(t){var n=e.call(this,t,l.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 i=t.getUniformLocation(n.program,"u_matrix");if(null===i)throw new Error("EdgeClampedProgram: error while getting matrixLocation");n.matrixLocation=i;var o=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===o)throw new Error("EdgeClampedProgram: error while getting cameraRatioLocation");n.sqrtZoomRatioLocation=o;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 i(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,i){if(r)for(var o=24*i,a=o+24;o<a;o++)this.array[o]=0;else{var l=n.size||1,c=e.x,u=e.y,d=t.x,f=t.y,p=t.size||1,h=(0,s.floatColor)(n.color),m=d-c,g=f-u,v=m*m+g*g,y=0,b=0;v&&(y=-g*(v=1/Math.sqrt(v))*l,b=m*v*l);var x=24*i,w=this.array;w[x++]=c,w[x++]=u,w[x++]=y,w[x++]=b,w[x++]=h,w[x++]=0,w[x++]=c,w[x++]=u,w[x++]=-y,w[x++]=-b,w[x++]=h,w[x++]=0,w[x++]=d,w[x++]=f,w[x++]=y,w[x++]=b,w[x++]=h,w[x++]=p,w[x++]=d,w[x++]=f,w[x++]=-y,w[x++]=-b,w[x++]=h,w[x]=-p}},t.prototype.computeIndices=function(){for(var e=this.array.length/6,t=e+e/2,n=new this.IndicesArray(t),r=0,i=0;r<e;r+=4)n[i++]=r,n[i++]=r+1,n[i++]=r+2,n[i++]=r+2,n[i++]=r+1,n[i++]=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=u},5372:function(e,t,n){"use strict";var r,i=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)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=o(n(9843)),l=o(n(3343)),c=function(e){function t(t){var n=e.call(this,t,s.default,l.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 i=t.getUniformLocation(n.program,"u_matrix");if(null===i)throw new Error("EdgeProgram: error while getting matrixLocation");n.matrixLocation=i;var o=t.getUniformLocation(n.program,"u_correctionRatio");if(null===o)throw new Error("EdgeProgram: error while getting correctionRatioLocation");n.correctionRatioLocation=o;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 i(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,i=0;r<e;r+=4)n[i++]=r,n[i++]=r+1,n[i++]=r+2,n[i++]=r+2,n[i++]=r+1,n[i++]=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,i){if(r)for(var o=20*i,s=o+20;o<s;o++)this.array[o]=0;else{var l=n.size||1,c=e.x,u=e.y,d=t.x,f=t.y,p=(0,a.floatColor)(n.color),h=d-c,m=f-u,g=h*h+m*m,v=0,y=0;g&&(v=-m*(g=1/Math.sqrt(g))*l,y=h*g*l);var b=20*i,x=this.array;x[b++]=c,x[b++]=u,x[b++]=v,x[b++]=y,x[b++]=p,x[b++]=c,x[b++]=u,x[b++]=-v,x[b++]=-y,x[b++]=p,x[b++]=d,x[b++]=f,x[b++]=v,x[b++]=y,x[b++]=p,x[b++]=d,x[b++]=f,x[b++]=-v,x[b++]=-y,x[b]=p}},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,i=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)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=o(n(1432)),l=o(n(6846)),c=function(e){function t(t){var n=e.call(this,t,s.default,l.default,1,4)||this;return n.bind(),n}return i(t,e),t.prototype.process=function(e,t,n){var r=this.array,i=1*n*4;if(t)return r[i++]=0,r[i++]=0,r[i++]=0,void(r[i++]=0);var o=(0,a.floatColor)(e.color);r[i++]=e.x,r[i++]=e.y,r[i++]=e.size,r[i]=o},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\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}\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 // antialiasing 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;\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\n\nvoid main(void) {\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(transparent, 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,i=t.createShader(r);if(null===i)throw new Error("loadShader: error while creating the shader");if(t.shaderSource(i,n),t.compileShader(i),!t.getShaderParameter(i,t.COMPILE_STATUS)){var o=t.getShaderInfoLog(i);throw t.deleteShader(i),new Error("loadShader: error while compiling the shader:\n".concat(o,"\n").concat(n))}return i}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,i=e.createProgram();if(null===i)throw new Error("loadProgram: error while creating the program.");for(n=0,r=t.length;n<r;n++)e.attachShader(i,t[n]);if(e.linkProgram(i),!e.getProgramParameter(i,e.LINK_STATUS))throw e.deleteProgram(i),new Error("loadProgram: error while linking the program.");return i}},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.resolveSettings=t.validateSettings=t.DEFAULT_EDGE_PROGRAM_CLASSES=t.DEFAULT_NODE_PROGRAM_CLASSES=t.DEFAULT_SETTINGS=void 0;var i=n(8586),o=r(n(2193)),a=r(n(4362)),s=r(n(284)),l=r(n(732)),c=r(n(5372)),u=r(n(5696));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:a.default,edgeLabelRenderer:s.default,allowInvalidContainer:!1,nodeProgramClasses:{},nodeHoverProgramClasses:{},edgeProgramClasses:{}},t.DEFAULT_NODE_PROGRAM_CLASSES={circle:l.default},t.DEFAULT_EDGE_PROGRAM_CLASSES={arrow:u.default,line:c.default},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.resolveSettings=function(e){var n=(0,i.assign)({},t.DEFAULT_SETTINGS,e);return n.nodeProgramClasses=(0,i.assign)({},t.DEFAULT_NODE_PROGRAM_CLASSES,n.nodeProgramClasses),n.edgeProgramClasses=(0,i.assign)({},t.DEFAULT_EDGE_PROGRAM_CLASSES,n.edgeProgramClasses),n}},8953:function(e,t,n){"use strict";var r,i=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)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.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 l=s(n(8884)),c=s(n(1250)),u=s(n(3834)),d=s(n(9316)),f=n(432),p=n(8586),h=n(2306),m=n(9061),g=s(n(916)),v=n(2237),y=n(8073);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 x(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 w=function(e){function t(t,n,r){void 0===r&&(r={});var i=e.call(this)||this;if(i.elements={},i.canvasContexts={},i.webGLContexts={},i.activeListeners={},i.quadtree=new d.default,i.labelGrid=new h.LabelGrid,i.nodeDataCache={},i.edgeDataCache={},i.nodesWithForcedLabels=[],i.edgesWithForcedLabels=[],i.nodeExtent={x:[0,1],y:[0,1]},i.matrix=(0,v.identity)(),i.invMatrix=(0,v.identity)(),i.correctionRatio=1,i.customBBox=null,i.normalizationFunction=(0,p.createNormalizationFunction)({x:[0,1],y:[0,1]}),i.cameraSizeRatio=1,i.width=0,i.height=0,i.pixelRatio=(0,p.getPixelRatio)(),i.displayedLabels=new Set,i.highlightedNodes=new Set,i.hoveredNode=null,i.hoveredEdge=null,i.renderFrame=null,i.renderHighlightedNodesFrame=null,i.needToProcess=!1,i.needToSoftProcess=!1,i.checkEdgesEventsFrame=null,i.nodePrograms={},i.nodeHoverPrograms={},i.edgePrograms={},i.settings=(0,m.resolveSettings)(r),(0,m.validateSettings)(i.settings),(0,p.validateGraph)(t),!(n instanceof HTMLElement))throw new Error("Sigma: container should be an html element.");for(var o in i.graph=t,i.container=n,i.createWebGLContext("edges",{preserveDrawingBuffer:!0}),i.createCanvasContext("edgeLabels"),i.createWebGLContext("nodes"),i.createCanvasContext("labels"),i.createCanvasContext("hovers"),i.createWebGLContext("hoverNodes"),i.createCanvasContext("mouse"),i.webGLContexts){var a=i.webGLContexts[o];a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA),a.enable(a.BLEND)}for(var s in i.settings.nodeProgramClasses){var l=i.settings.nodeProgramClasses[s];i.nodePrograms[s]=new l(i.webGLContexts.nodes,i);var f=l;s in i.settings.nodeHoverProgramClasses&&(f=i.settings.nodeHoverProgramClasses[s]),i.nodeHoverPrograms[s]=new f(i.webGLContexts.hoverNodes,i)}for(var s in i.settings.edgeProgramClasses){var y=i.settings.edgeProgramClasses[s];i.edgePrograms[s]=new y(i.webGLContexts.edges,i)}return i.resize(),i.camera=new c.default,i.bindCameraHandlers(),i.mouseCaptor=new u.default(i.elements.mouse,i),i.touchCaptor=new g.default(i.elements.mouse,i),i.bindEventHandlers(),i.bindGraphHandlers(),i.handleSettingsUpdate(),i.process(),i.render(),i}return i(t,e),t.prototype.createCanvas=function(e){var t=(0,p.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),i=o({preserveDrawingBuffer:!1,antialias:!1},t||{});return(n=r.getContext("webgl2",i))||(n=r.getContext("webgl",i)),n||(n=r.getContext("experimental-webgl",i)),this.webGLContexts[e]=n,this},t.prototype.bindCameraHandlers=function(){var e=this;return this.activeListeners.camera=function(){e._scheduleRefresh()},this.camera.on("updated",this.activeListeners.camera),this},t.prototype.mouseIsOnNode=function(e,t,n){var r=e.x,i=e.y,o=t.x,a=t.y;return r>o-n&&r<o+n&&i>a-n&&i<a+n&&Math.sqrt(Math.pow(r-o,2)+Math.pow(i-a,2))<n},t.prototype.getQuadNodes=function(e){var t=this.viewportToFramedGraph(e);return this.quadtree.point(t.x,1-t.y)},t.prototype.getNodeAtPosition=function(e){for(var t=e.x,n=e.y,r=this.getQuadNodes(e),i=1/0,o=null,a=0,s=r.length;a<s;a++){var l=r[a],c=this.nodeDataCache[l],u=this.framedGraphToViewport(c),d=this.scaleSize(c.size);if(!c.hidden&&this.mouseIsOnNode(e,u,d)){var f=Math.sqrt(Math.pow(t-u.x,2)+Math.pow(n-u.y,2));f<i&&(i=f,o=l)}}return o},t.prototype.bindEventHandlers=function(){var e=this;this.activeListeners.handleResize=function(){e.needToSoftProcess=!0,e._scheduleRefresh()},window.addEventListener("resize",this.activeListeners.handleResize),this.activeListeners.handleMove=function(t){var n={event:t,preventSigmaDefault:function(){t.preventSigmaDefault()}},r=e.getNodeAtPosition(t);if(r&&e.hoveredNode!==r&&!e.nodeDataCache[r].hidden)return e.hoveredNode&&e.emit("leaveNode",o(o({},n),{node:e.hoveredNode})),e.hoveredNode=r,e.emit("enterNode",o(o({},n),{node:r})),void e.scheduleHighlightedNodesRender();if(e.hoveredNode){var i=e.nodeDataCache[e.hoveredNode],a=e.framedGraphToViewport(i),s=e.scaleSize(i.size);if(!e.mouseIsOnNode(t,a,s)){var l=e.hoveredNode;return e.hoveredNode=null,e.emit("leaveNode",o(o({},n),{node:l})),void e.scheduleHighlightedNodesRender()}}!0===e.settings.enableEdgeHoverEvents?e.checkEdgeHoverEvents(n):"debounce"===e.settings.enableEdgeHoverEvents&&(e.checkEdgesEventsFrame||(e.checkEdgesEventsFrame=(0,p.requestFrame)((function(){e.checkEdgeHoverEvents(n),e.checkEdgesEventsFrame=null}))))};var t=function(t){return function(n){var r={event:n,preventSigmaDefault:function(){n.preventSigmaDefault()}},i=n.original.isFakeSigmaMouseEvent?e.getNodeAtPosition(n):e.hoveredNode;if(i)return e.emit("".concat(t,"Node"),o(o({},r),{node:i}));if("wheel"===t?e.settings.enableEdgeWheelEvents:e.settings.enableEdgeClickEvents){var a=e.getEdgeAtPoint(n.x,n.y);if(a)return e.emit("".concat(t,"Edge"),o(o({},r),{edge:a}))}return e.emit("".concat(t,"Stage"),r)}};return this.activeListeners.handleClick=t("click"),this.activeListeners.handleRightClick=t("rightClick"),this.activeListeners.handleDoubleClick=t("doubleClick"),this.activeListeners.handleWheel=t("wheel"),this.activeListeners.handleDown=t("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.dropNodeGraphUpdate=function(t){delete e.nodeDataCache[t.key],e.hoveredNode===t.key&&(e.hoveredNode=null),e.activeListeners.graphUpdate()},this.activeListeners.dropEdgeGraphUpdate=function(t){delete e.edgeDataCache[t.key],e.hoveredEdge===t.key&&(e.hoveredEdge=null),e.activeListeners.graphUpdate()},this.activeListeners.clearEdgesGraphUpdate=function(){e.edgeDataCache={},e.hoveredEdge=null,e.activeListeners.graphUpdate()},this.activeListeners.clearGraphUpdate=function(){e.nodeDataCache={},e.hoveredNode=null,e.activeListeners.clearEdgesGraphUpdate()},t.on("nodeAdded",this.activeListeners.graphUpdate),t.on("nodeDropped",this.activeListeners.dropNodeGraphUpdate),t.on("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgeAdded",this.activeListeners.graphUpdate),t.on("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),t.on("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),t.on("cleared",this.activeListeners.clearGraphUpdate),this},t.prototype.unbindGraphHandlers=function(){var e=this.graph;e.removeListener("nodeAdded",this.activeListeners.graphUpdate),e.removeListener("nodeDropped",this.activeListeners.dropNodeGraphUpdate),e.removeListener("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgeAdded",this.activeListeners.graphUpdate),e.removeListener("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),e.removeListener("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),e.removeListener("cleared",this.activeListeners.clearGraphUpdate)},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",o(o({},e),{edge:this.hoveredEdge})),t&&this.emit("enterEdge",o(o({},e),{edge:t})),this.hoveredEdge=t),this},t.prototype.getEdgeAtPoint=function(e,t){var n,r,i=this,o=this.edgeDataCache,s=this.nodeDataCache;if(!(0,y.isPixelColored)(this.webGLContexts.edges,e*this.pixelRatio,t*this.pixelRatio))return null;var l=this.viewportToGraph({x:e,y:t}),c=l.x,u=l.y,d=0;if(this.graph.someEdge((function(e,t,n,r,a,l){var c=a.x,u=a.y,f=l.x,p=l.y;if(o[e].hidden||s[n].hidden||s[r].hidden)return!1;if(c!==f||u!==p){var h=Math.sqrt(Math.pow(f-c,2)+Math.pow(p-u,2)),m=i.graphToViewport({x:c,y:u}),g=m.x,v=m.y,y=i.graphToViewport({x:f,y:p}),b=y.x,x=y.y,w=Math.sqrt(Math.pow(b-g,2)+Math.pow(x-v,2));return d=h/w,!0}})),!d)return null;var f=this.graph.filterEdges((function(e,t,n,r,a,l){return!(o[e].hidden||s[n].hidden||s[r].hidden)&&(!!(0,y.doEdgeCollideWithPoint)(c,u,a.x,a.y,l.x,l.y,o[e].size*d/i.cameraSizeRatio)||void 0)}));if(0===f.length)return null;var p=f[f.length-1],h=-1/0;try{for(var m=a(f),g=m.next();!g.done;g=m.next()){var v=g.value,b=this.graph.getEdgeAttribute(v,"zIndex");b>=h&&(p=v,h=b)}}catch(e){n={error:e}}finally{try{g&&!g.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}return p},t.prototype.process=function(e){var t=this;void 0===e&&(e=!1);var n=this.graph,r=this.settings,i=this.getDimensions(),o=[1/0,-1/0],a=[1/0,-1/0];this.quadtree.clear(),this.labelGrid.resizeAndClear(i,r.labelGridCellSize),this.highlightedNodes=new Set,this.nodeExtent=(0,p.graphExtent)(n),this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[];var s=new c.default,l=(0,p.matrixFromCamera)(s.getState(),this.getDimensions(),this.getGraphDimensions(),this.getSetting("stagePadding")||0);this.normalizationFunction=(0,p.createNormalizationFunction)(this.customBBox||this.nodeExtent);for(var u={},d=n.nodes(),f=0,h=d.length;f<h;f++){var m=d[f],g=Object.assign({},n.getNodeAttributes(m));r.nodeReducer&&(g=r.nodeReducer(m,g)),u[(y=b(this.settings,m,g)).type]=(u[y.type]||0)+1,this.nodeDataCache[m]=y,this.normalizationFunction.applyTo(y),y.forceLabel&&this.nodesWithForcedLabels.push(m),this.settings.zIndex&&(y.zIndex<o[0]&&(o[0]=y.zIndex),y.zIndex>o[1]&&(o[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(u[v]||0),u[v]=0}for(this.settings.zIndex&&o[0]!==o[1]&&(d=(0,p.zIndexOrdering)(o,(function(e){return t.nodeDataCache[e].zIndex}),d)),f=0,h=d.length;f<h;f++){m=d[f];var y=this.nodeDataCache[m];this.quadtree.add(m,y.x,1-y.y,y.size/this.width),"string"!=typeof y.label||y.hidden||this.labelGrid.add(m,y.size,this.framedGraphToViewport(y,{matrix:l}));var w=this.nodePrograms[y.type];if(!w)throw new Error('Sigma: could not find a suitable program for node type "'.concat(y.type,'"!'));w.process(y,y.hidden,u[y.type]++),y.highlighted&&!y.hidden&&this.highlightedNodes.add(m)}this.labelGrid.organize();var E={},_=n.edges();for(f=0,h=_.length;f<h;f++){var S=_[f];g=Object.assign({},n.getEdgeAttributes(S)),r.edgeReducer&&(g=r.edgeReducer(S,g)),E[(y=x(this.settings,0,g)).type]=(E[y.type]||0)+1,this.edgeDataCache[S]=y,y.forceLabel&&!y.hidden&&this.edgesWithForcedLabels.push(S),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]&&(_=(0,p.zIndexOrdering)(a,(function(e){return t.edgeDataCache[e].zIndex}),_)),f=0,h=_.length;f<h;f++){S=_[f],y=this.edgeDataCache[S];var C=n.extremities(S),O=this.nodeDataCache[C[0]],k=this.nodeDataCache[C[1]],L=y.hidden||O.hidden||k.hidden;this.edgePrograms[y.type].process(O,k,y,L,E[y.type]++)}for(var v in this.edgePrograms){var R=this.edgePrograms[v];e||"function"!=typeof R.computeIndices||R.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,p.requestFrame)((function(){e._refresh(),e.renderFrame=null}))),this},t.prototype.renderLabels=function(){if(!this.settings.renderLabels)return this;var e=this.camera.getState(),t=this.labelGrid.getLabelsToDisplay(e.ratio,this.settings.labelDensity);(0,l.default)(t,this.nodesWithForcedLabels),this.displayedLabels=new Set;for(var n=this.canvasContexts.labels,r=0,i=t.length;r<i;r++){var a=t[r],s=this.nodeDataCache[a];if(!this.displayedLabels.has(a)&&!s.hidden){var c=this.framedGraphToViewport(s),u=c.x,d=c.y,f=this.scaleSize(s.size);!s.forceLabel&&f<this.settings.labelRenderedSizeThreshold||u<-150||u>this.width+150||d<-50||d>this.height+50||(this.displayedLabels.add(a),this.settings.labelRenderer(n,o(o({key:a},s),{size:f,x:u,y:d}),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,i=t.length;r<i;r++){var a=t[r],s=this.graph.extremities(a),l=this.nodeDataCache[s[0]],c=this.nodeDataCache[s[1]],u=this.edgeDataCache[a];n.has(a)||u.hidden||l.hidden||c.hidden||(this.settings.edgeLabelRenderer(e,o(o({key:a},u),{size:this.scaleSize(u.size)}),o(o(o({key:s[0]},l),this.framedGraphToViewport(l)),{size:this.scaleSize(l.size)}),o(o(o({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],i=e.framedGraphToViewport(r),a=i.x,s=i.y,l=e.scaleSize(r.size);e.settings.hoverRenderer(t,o(o({key:n},r),{size:l,x:a,y:s}),e.settings)}(n)}));var r={};for(var i in n.forEach((function(t){var n=e.nodeDataCache[t].type;r[n]=(r[n]||0)+1})),this.nodeHoverPrograms)this.nodeHoverPrograms[i].allocate(r[i]||0),r[i]=0;for(var i in n.forEach((function(t){var n=e.nodeDataCache[t];e.nodeHoverPrograms[n.type].process(n,n.hidden,r[n.type]++)})),this.webGLContexts.hoverNodes.clear(this.webGLContexts.hoverNodes.COLOR_BUFFER_BIT),this.nodeHoverPrograms){var a=this.nodeHoverPrograms[i];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:this.pixelRatio})}},t.prototype.scheduleHighlightedNodesRender=function(){var e=this;this.renderHighlightedNodesFrame||this.renderFrame||(this.renderHighlightedNodesFrame=(0,p.requestFrame)((function(){e.renderHighlightedNodesFrame=null,e.renderHighlightedNodes(),e.renderEdgeLabels()})))},t.prototype.render=function(){var e=this;this.emit("beforeRender");var t=function(){return e.emit("afterRender"),e};if(this.renderFrame&&((0,p.cancelFrame)(this.renderFrame),this.renderFrame=null,this.needToProcess=!1,this.needToSoftProcess=!1),this.resize(),this.clear(),this.updateCachedValues(),!this.graph.order)return t();var n=this.mouseCaptor,r=this.camera.isAnimated()||n.isMoving||n.draggedEvents||n.currentWheelDirection,i=this.camera.getState(),o=this.getDimensions(),a=this.getGraphDimensions(),s=this.getSetting("stagePadding")||0;for(var l in this.matrix=(0,p.matrixFromCamera)(i,o,a,s),this.invMatrix=(0,p.matrixFromCamera)(i,o,a,s,!0),this.correctionRatio=(0,p.getMatrixImpact)(this.matrix,i,o),this.nodePrograms)(c=this.nodePrograms[l]).bind(),c.bufferData(),c.render({matrix:this.matrix,width:this.width,height:this.height,ratio:i.ratio,correctionRatio:this.correctionRatio/i.ratio,scalingRatio:this.pixelRatio});if(!this.settings.hideEdgesOnMove||!r)for(var l in this.edgePrograms){var c;(c=this.edgePrograms[l]).bind(),c.bufferData(),c.render({matrix:this.matrix,width:this.width,height:this.height,ratio:i.ratio,correctionRatio:this.correctionRatio/i.ratio,scalingRatio:this.pixelRatio})}return this.settings.hideLabelsOnMove&&r||(this.renderLabels(),this.renderEdgeLabels(),this.renderHighlightedNodes()),t()},t.prototype.updateCachedValues=function(){var e=this.camera.getState().ratio;this.cameraSizeRatio=Math.sqrt(e)},t.prototype.getCamera=function(){return this.camera},t.prototype.getContainer=function(){return this.container},t.prototype.getGraph=function(){return this.graph},t.prototype.setGraph=function(e){e!==this.graph&&(this.unbindGraphHandlers(),this.nodeDataCache={},this.edgeDataCache={},this.displayedLabels.clear(),this.highlightedNodes.clear(),this.hoveredNode=null,this.hoveredEdge=null,this.nodesWithForcedLabels.length=0,this.edgesWithForcedLabels.length=0,null!==this.checkEdgesEventsFrame&&((0,p.cancelFrame)(this.checkEdgesEventsFrame),this.checkEdgesEventsFrame=null),this.graph=e,this.bindGraphHandlers(),this.process(),this.render())},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 o({},this.settings)},t.prototype.getSetting=function(e){return this.settings[e]},t.prototype.setSetting=function(e,t){return this.settings[e]=t,(0,m.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,m.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,this.pixelRatio=(0,p.getPixelRatio)(),0===this.width){if(!this.settings.allowInvalidContainer)throw new Error("Sigma: Container has no width. You can set the allowInvalidContainer setting to true to stop seeing this error.");this.width=1}if(0===this.height){if(!this.settings.allowInvalidContainer)throw new Error("Sigma: Container has no height. You can set the allowInvalidContainer setting to true to stop seeing this error.");this.height=1}if(e===this.width&&t===this.height)return this;for(var n in this.emit("resize"),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*this.pixelRatio+"px"),this.elements[n].setAttribute("height",this.height*this.pixelRatio+"px"),1!==this.pixelRatio&&this.canvasContexts[n].scale(this.pixelRatio,this.pixelRatio);for(var n in this.webGLContexts)this.elements[n].setAttribute("width",this.width*this.pixelRatio+"px"),this.elements[n].setAttribute("height",this.height*this.pixelRatio+"px"),this.webGLContexts[n].viewport(0,0,this.width*this.pixelRatio,this.height*this.pixelRatio);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.hoverNodes.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,i=n.angle,o=n.x,a=n.y,s=t/r,l={x:this.width/2,y:this.height/2},c=this.viewportToFramedGraph(e),u=this.viewportToFramedGraph(l);return{angle:i,x:(c.x-u.x)*(1-s)+o,y:(c.y-u.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}),i=this.viewportToFramedGraph({x:0,y:this.height+t});return{x1:n.x,y1:n.y,x2:r.x,y2:r.y,height:r.y-i.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,p.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0):this.matrix,i=(0,v.multiplyVec2)(r,e);return{x:(1+i.x)*this.width/2,y:(1-i.y)*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,p.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0,!0):this.invMatrix,i=(0,v.multiplyVec2)(r,{x:e.x/this.width*2-1,y:1-e.y/this.height*2});return isNaN(i.x)&&(i.x=0),isNaN(i.y)&&(i.y=0),i},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,p.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(){this.emit("kill"),this.removeAllListeners(),this.camera.removeListener("updated",this.activeListeners.camera),window.removeEventListener("resize",this.activeListeners.handleResize),this.mouseCaptor.kill(),this.touchCaptor.kill(),this.unbindGraphHandlers(),this.quadtree=new d.default,this.nodeDataCache={},this.edgeDataCache={},this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[],this.highlightedNodes.clear(),this.renderFrame&&((0,p.cancelFrame)(this.renderFrame),this.renderFrame=null),this.renderHighlightedNodesFrame&&((0,p.cancelFrame)(this.renderHighlightedNodesFrame),this.renderHighlightedNodesFrame=null);for(var e=this.container;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.scaleSize=function(e){return e/this.cameraSizeRatio},t.prototype.getCanvases=function(){return o({},this.elements)},t}(f.TypedEventEmitter);t.default=w},432:function(e,t,n){"use strict";var r,i=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 o=function(e){function t(){var t=e.call(this)||this;return t.rawEmitter=t,t}return i(t,e),t}(n(2699).EventEmitter);t.TypedEventEmitter=o},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 i=n(8586),o=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),l="function"==typeof s.easing?s.easing:o.default[s.easing],c=Date.now(),u={};for(var d in n){var f=n[d];for(var p in u[d]={},f)u[d][p]=e.getNodeAttribute(d,p)}var h=null,m=function(){h=null;var t=(Date.now()-c)/s.duration;if(t>=1){for(var r in n){var o=n[r];for(var d in o)e.setNodeAttribute(r,d,o[d])}"function"==typeof a&&a()}else{for(var r in t=l(t),n){o=n[r];var f=u[r];for(var d in o)e.setNodeAttribute(r,d,o[d]*t+f[d]*(1-t))}h=(0,i.requestFrame)(m)}};return m(),function(){h&&(0,i.cancelFrame)(h)}}},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,i,o,a){return!(e<n-a&&e<i-a||t<r-a&&t<o-a||e>n+a&&e>i+a||t>r+a&&t>o+a||!(Math.abs((i-n)*(r-t)-(n-e)*(o-r))/Math.sqrt(Math.pow(i-n,2)+Math.pow(o-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,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=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.floatArrayColor=t.parseColor=t.zIndexOrdering=t.createNormalizationFunction=t.graphExtent=t.getPixelRatio=t.createElement=t.cancelFrame=t.requestFrame=t.assignDeep=t.assign=t.isPlainObject=void 0;var o=i(n(1880)),a=n(2237),s=n(1078);function l(e){return"object"==typeof e&&null!==e&&e.constructor===Object}t.isPlainObject=l,t.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e=e||{};for(var r=0,i=t.length;r<i;r++){var o=t[r];o&&Object.assign(e,o)}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 i=0,o=n.length;i<o;i++){var a=n[i];if(a)for(var s in a)l(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 i in t)r.style[i]=t[i];if(n)for(var i in n)r.setAttribute(i,n[i]);return r},t.getPixelRatio=function(){return void 0!==window.devicePixelRatio?window.devicePixelRatio:1},t.graphExtent=function(e){if(!e.order)return{x:[0,1],y:[0,1]};var t=1/0,n=-1/0,r=1/0,i=-1/0;return e.forEachNode((function(e,o){var a=o.x,s=o.y;a<t&&(t=a),a>n&&(n=a),s<r&&(r=s),s>i&&(i=s)})),{x:[t,n],y:[r,i]}},t.createNormalizationFunction=function(e){var t=r(e.x,2),n=t[0],i=t[1],o=r(e.y,2),a=o[0],s=o[1],l=Math.max(i-n,s-a),c=(i+n)/2,u=(s+a)/2;(0===l||Math.abs(l)===1/0||isNaN(l))&&(l=1),isNaN(c)&&(c=0),isNaN(u)&&(u=0);var d=function(e){return{x:.5+(e.x-c)/l,y:.5+(e.y-u)/l}};return d.applyTo=function(e){e.x=.5+(e.x-c)/l,e.y=.5+(e.y-u)/l},d.inverse=function(e){return{x:c+l*(e.x-.5),y:u+l*(e.y-.5)}},d.ratio=l,d},t.zIndexOrdering=function(e,t,n){return n.sort((function(e,n){var r=t(e)||0,i=t(n)||0;return r<i?-1:r>i?1:0}))};var c=new Int8Array(4),u=new Int32Array(c.buffer,0,1),d=new Float32Array(c.buffer,0,1),f=/^\s*rgba?\s*\(/,p=/^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/;function h(e){var t=0,n=0,r=0,i=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)),9===e.length&&(i=parseInt(e.charAt(7)+e.charAt(8),16)/255);else if(f.test(e)){var o=e.match(p);o&&(t=+o[1],n=+o[2],r=+o[3],o[4]&&(i=+o[4]))}return{r:t,g:n,b:r,a:i}}t.parseColor=h;var m={};for(var g in s.HTML_COLORS)m[g]=v(s.HTML_COLORS[g]),m[s.HTML_COLORS[g]]=m[g];function v(e){if(void 0!==m[e])return m[e];var t=h(e),n=t.r,r=t.g,i=t.b,o=t.a;o=255*o|0,u[0]=4278190079&(o<<24|i<<16|r<<8|n);var a=d[0];return m[e]=a,a}function y(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.floatArrayColor=function(e){var t=h(e=s.HTML_COLORS[e]||e),n=t.r,r=t.g,i=t.b,o=t.a;return new Float32Array([n/255,r/255,i/255,o])},t.floatColor=v,t.getCorrectionRatio=y,t.matrixFromCamera=function(e,t,n,r,i){var o=e.angle,s=e.ratio,l=e.x,c=e.y,u=t.width,d=t.height,f=(0,a.identity)(),p=Math.min(u,d)-2*r,h=y(t,n);return i?((0,a.multiply)(f,(0,a.translate)((0,a.identity)(),l,c)),(0,a.multiply)(f,(0,a.scale)((0,a.identity)(),s)),(0,a.multiply)(f,(0,a.rotate)((0,a.identity)(),o)),(0,a.multiply)(f,(0,a.scale)((0,a.identity)(),u/p/2/h,d/p/2/h))):((0,a.multiply)(f,(0,a.scale)((0,a.identity)(),p/u*2*h,p/d*2*h)),(0,a.multiply)(f,(0,a.rotate)((0,a.identity)(),-o)),(0,a.multiply)(f,(0,a.scale)((0,a.identity)(),1/s)),(0,a.multiply)(f,(0,a.translate)((0,a.identity)(),-l,-c))),f},t.getMatrixImpact=function(e,t,n){var r=(0,a.multiplyVec2)(e,{x:Math.cos(t.angle),y:Math.sin(t.angle)},0),i=r.x,o=r.y;return 1/Math.sqrt(Math.pow(i,2)+Math.pow(o,2))/n.width},t.extractPixel=function(e,t,n,r){var i=r||new Uint8Array(4);return e.readPixels(t,n,1,1,e.RGBA,e.UNSIGNED_BYTE,i),i},t.canUse32BitsIndices=function(e){return"undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||!!e.getExtension("OES_element_index_uint")},t.validateGraph=function(e){if(!(0,o.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.multiplyVec2=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],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=t[0],f=t[1],p=t[2],h=t[3],m=t[4],g=t[5],v=t[6],y=t[7],b=t[8];return e[0]=d*n+f*o+p*l,e[1]=d*r+f*a+p*c,e[2]=d*i+f*s+p*u,e[3]=h*n+m*o+g*l,e[4]=h*r+m*a+g*c,e[5]=h*i+m*s+g*u,e[6]=v*n+y*o+b*l,e[7]=v*r+y*a+b*c,e[8]=v*i+y*s+b*u,e},t.multiplyVec2=function(e,t,n){void 0===n&&(n=1);var r=e[0],i=e[1],o=e[3],a=e[4],s=e[6],l=e[7],c=t.x,u=t.y;return{x:c*r+u*o+s*n,y:c*i+u*a+l*n}}},1884:t=>{"use strict";t.exports=e},8282:e=>{"use strict";e.exports=t},6496:e=>{"use strict";e.exports=n},5635:e=>{"use strict";e.exports=r},4294:e=>{"use strict";e.exports=i},8668:e=>{"use strict";e.exports=o},3839:e=>{"use strict";e.exports=a},518:e=>{"use strict";e.exports=s},8475:e=>{"use strict";e.exports=l},6236:e=>{"use strict";e.exports=c},6439:e=>{"use strict";e.exports=u},4501:e=>{"use strict";e.exports=d},7499:e=>{"use strict";e.exports=f},901:e=>{"use strict";e.exports=p},5743:e=>{"use strict";e.exports=h},5206:e=>{"use strict";e.exports=m},2811:e=>{"use strict";e.exports=g},6091:e=>{"use strict";e.exports=v},4539:e=>{"use strict";e.exports=y},6825:e=>{"use strict";e.exports=b},9844:e=>{"use strict";e.exports=x},3643:e=>{"use strict";e.exports=w},9233:e=>{"use strict";e.exports=E},3732:e=>{"use strict";e.exports=_},8214:e=>{"use strict";e.exports=S},3526:e=>{"use strict";e.exports=C},3222:e=>{"use strict";e.exports=O},4436:e=>{"use strict";e.exports=k},5788:e=>{"use strict";e.exports=L},1733:e=>{"use strict";e.exports=R},3734:e=>{"use strict";e.exports=P},2600:e=>{"use strict";e.exports=M},5608:e=>{"use strict";e.exports=A},9850:e=>{"use strict";e.exports=T},8012:e=>{"use strict";e.exports=D},8878:e=>{"use strict";e.exports=z},918:e=>{"use strict";e.exports=F},1159:e=>{"use strict";e.exports=N},5681:e=>{"use strict";e.exports=I},7290:e=>{"use strict";e.exports=j},6038:e=>{"use strict";e.exports=B},3627:e=>{"use strict";e.exports=G},8759:e=>{"use strict";e.exports=U},4841:e=>{"use strict";e.exports=H},7655:e=>{"use strict";e.exports=V},3962:e=>{"use strict";e.exports=W},9881:e=>{"use strict";e.exports=q},1230:e=>{"use strict";e.exports=$},8310:e=>{"use strict";e.exports=Z},2308:e=>{"use strict";e.exports=Y},2396:e=>{"use strict";e.exports=X},3192:e=>{"use strict";e.exports=K},5099:e=>{"use strict";e.exports=Q},3288:e=>{"use strict";e.exports=J},8156:e=>{"use strict";e.exports=ee},7111:e=>{"use strict";e.exports=te},4756:e=>{"use strict";e.exports=ne},5751:e=>{"use strict";e.exports=re},5297:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},3100:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},8870:(e,t,n)=>{var r=n(7739);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},6290:(e,t,n)=>{var r=n(7739);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},1147:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},8230:(e,t,n)=>{var r=n(8560);e.exports=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},1600:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},421:(e,t,n)=>{var r=n(7425).default,i=n(5297);e.exports=function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},8560:e=>{function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},8064:(e,t,n)=>{var r=n(7425).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7739:(e,t,n)=>{var r=n(7425).default,i=n(8064);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},753:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},7896:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{Z:()=>r})},1665:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(8960);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},1461:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{Z:()=>r})},8960:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})}},oe={};function ae(e){var t=oe[e];if(void 0!==t)return t.exports;var n=oe[e]={id:e,loaded:!1,exports:{}};return ie[e].call(n.exports,n,n.exports,ae),n.loaded=!0,n.exports}ae.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return ae.d(t,{a:t}),t},ae.d=(e,t)=>{for(var n in t)ae.o(t,n)&&!ae.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},ae.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),ae.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ae.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},ae.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var se={};return(()=>{"use strict";ae.r(se),ae.d(se,{DataModelScreen:()=>fg});var e=ae(8156),t=ae.n(e),n=ae(9881),r=ae.n(n),i=ae(3962),o=ae.n(i),a=ae(7896),s=ae(3192),l=ae.n(s);const c={Y:"year",YY:"year",YYYY:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},u={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},d=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join("\n");class f{constructor({locale:e,formats:t,instance:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=c,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasTimezonePlugin=()=>void 0!==this.moment.tz,this.createSystemDate=e=>{const t=this.moment(e).local();return void 0===this.locale?t:t.locale(this.locale)},this.createUTCDate=e=>{const t=this.moment.utc(e);return void 0===this.locale?t:t.locale(this.locale)},this.createTZDate=(e,t)=>{if(!this.hasTimezonePlugin())throw new Error(d);const n="default"===t?this.moment(e):this.moment.tz(e,t);return void 0===this.locale?n:n.locale(this.locale)},this.date=e=>{if(null===e)return null;const t=this.moment(e);return t.locale(this.getCurrentLocaleCode()),t},this.dateWithTimezone=(e,t)=>null===e?null:"UTC"===t?this.createUTCDate(e):"system"===t||"default"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t),this.getTimezone=e=>{var t,n,r;if(e.isUTC())return"UTC";const i=null==(t=e._z)?void 0:t.name;return null!=(n=null!=i?i:null==(r=this.moment.defaultZone)?void 0:r.name)?n:"system"},this.setTimezone=(e,t)=>{var n,r;if("UTC"===t)return e.clone().utc();if("system"===t)return e.clone().local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(d)}const i="default"===t?null!=(n=null==(r=this.moment.defaultZone)?void 0:r.name)?n:"system":t,o=e.clone();return o.tz(i),o},this.toJsDate=e=>e.toDate(),this.parseISO=e=>this.moment(e,!0),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.locale?this.moment(e,t,this.locale,!0):this.moment(e,t,!0),this.getCurrentLocaleCode=()=>this.locale||l().locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(l().localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=e=>e.match(/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g).map((e=>{const t=e[0];return"L"===t||";"===t?l().localeData(this.getCurrentLocaleCode()).longDateFormat(e):e})).join(""),this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=e=>null===e,this.isValid=e=>this.moment(e).isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>{const n=e.clone();return n.locale(this.getCurrentLocaleCode()),n.format(t)},this.formatNumber=e=>e,this.getDiff=(e,t,n)=>e.diff(t,n),this.isEqual=(e,t)=>null===e&&null===t||this.moment(e).isSame(t),this.isSameYear=(e,t)=>e.isSame(t,"year"),this.isSameMonth=(e,t)=>e.isSame(t,"month"),this.isSameDay=(e,t)=>e.isSame(t,"day"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e.isAfter(t),this.isAfterYear=(e,t)=>e.isAfter(t,"year"),this.isAfterDay=(e,t)=>e.isAfter(t,"day"),this.isBefore=(e,t)=>e.isBefore(t),this.isBeforeYear=(e,t)=>e.isBefore(t,"year"),this.isBeforeDay=(e,t)=>e.isBefore(t,"day"),this.isWithinRange=(e,[t,n])=>e.isBetween(t,n,null,"[]"),this.startOfYear=e=>e.clone().startOf("year"),this.startOfMonth=e=>e.clone().startOf("month"),this.startOfWeek=e=>e.clone().startOf("week"),this.startOfDay=e=>e.clone().startOf("day"),this.endOfYear=e=>e.clone().endOf("year"),this.endOfMonth=e=>e.clone().endOf("month"),this.endOfWeek=e=>e.clone().endOf("week"),this.endOfDay=e=>e.clone().endOf("day"),this.addYears=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"years"):e.clone().add(t,"years"),this.addMonths=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"months"):e.clone().add(t,"months"),this.addWeeks=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"weeks"):e.clone().add(t,"weeks"),this.addDays=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days"),this.addHours=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"hours"):e.clone().add(t,"hours"),this.addMinutes=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"minutes"):e.clone().add(t,"minutes"),this.addSeconds=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"seconds"):e.clone().add(t,"seconds"),this.getYear=e=>e.get("year"),this.getMonth=e=>e.get("month"),this.getDate=e=>e.get("date"),this.getHours=e=>e.get("hours"),this.getMinutes=e=>e.get("minutes"),this.getSeconds=e=>e.get("seconds"),this.getMilliseconds=e=>e.get("milliseconds"),this.setYear=(e,t)=>e.clone().year(t),this.setMonth=(e,t)=>e.clone().month(t),this.setDate=(e,t)=>e.clone().date(t),this.setHours=(e,t)=>e.clone().hours(t),this.setMinutes=(e,t)=>e.clone().minutes(t),this.setSeconds=(e,t)=>e.clone().seconds(t),this.setMilliseconds=(e,t)=>e.clone().milliseconds(t),this.getDaysInMonth=e=>e.daysInMonth(),this.getNextMonth=e=>e.clone().add(1,"month"),this.getPreviousMonth=e=>e.clone().subtract(1,"month"),this.getMonthArray=e=>{const t=[this.startOfYear(e)];for(;t.length<12;){const e=t[t.length-1];t.push(this.getNextMonth(e))}return t},this.mergeDateAndTime=(e,t)=>e.clone().hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>l().weekdaysShort(!0),this.getWeekArray=e=>{const t=this.setLocaleToValue(e),n=t.clone().startOf("month").startOf("week"),r=t.clone().endOf("month").endOf("week");let i=0,o=n;const a=[];for(;o.isBefore(r);){const e=Math.floor(i/7);a[e]=a[e]||[],a[e].push(o),o=o.clone().add(1,"day"),i+=1}return a},this.getWeekNumber=e=>e.week(),this.getYearRange=(e,t)=>{const n=this.moment(e).startOf("year"),r=this.moment(t).endOf("year"),i=[];let o=n;for(;o.isBefore(r);)i.push(o),o=o.clone().add(1,"year");return i},this.getMeridiemText=e=>this.is12HourCycleInCurrentLocale()?l().localeData(this.getCurrentLocaleCode()).meridiem("am"===e?0:13,0,!1):"am"===e?"AM":"PM",this.moment=n||l(),this.locale=e,this.formats=(0,a.Z)({},u,t)}}var p=ae(1461),h=ae(5099),m=ae.n(h),g=ae(7655),v=ae(2322);const y=["localeText"],b=e.createContext(null),x=function(t){var n;const{localeText:r}=t,i=(0,p.Z)(t,y),{utils:o,localeText:s}=null!=(n=e.useContext(b))?n:{utils:void 0,localeText:void 0},l=(0,g.useThemeProps)({props:i,name:"MuiLocalizationProvider"}),{children:c,dateAdapter:u,dateFormats:d,dateLibInstance:f,adapterLocale:h,localeText:m}=l,x=e.useMemo((()=>(0,a.Z)({},m,s,r)),[m,s,r]),w=e.useMemo((()=>{if(!u)return o||null;const e=new u({locale:h,formats:d,instance:f});if(!e.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e}),[u,h,d,f,o]),E=e.useMemo((()=>w?{minDate:w.date("1900-01-01T00:00:00.000"),maxDate:w.date("2099-12-31T00:00:00.000")}:null),[w]),_=e.useMemo((()=>({utils:w,defaultDates:E,localeText:x})),[E,w,x]);return(0,v.jsx)(b.Provider,{value:_,children:c})};var w=ae(3288),E=ae(2396),_=ae(4756),S=ae(2308),C=ae.n(S);const O=()=>{const t=(0,_.useSelector)(C().selectors.getMetadata);return{entityTypes:(0,e.useMemo)((()=>t.entityTypes.filter((0,w.complement)(E.isAbstractEntityType))),[t.entityTypes]),relationTypes:t.relationTypes,interactionTypes:t.interactionTypes}};var k=ae(5751),L=ae.n(k),R=ae(6038),P=ae.n(R),M=ae(8759),A=ae.n(M),T="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};const D="object"===("undefined"==typeof window?"undefined":T(window))&&"object"===("undefined"==typeof document?"undefined":T(document))&&9===document.nodeType;function z(e){return z="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},z(e)}function F(e){var t=function(e){if("object"!=z(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==z(t)?t:t+""}function N(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,F(r.key),r)}}function I(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var j=ae(1665),B=ae(753),G={}.constructor;function U(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(U);if(e.constructor!==G)return e;var t={};for(var n in e)t[n]=U(e[n]);return t}function H(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=U(t);return r.plugins.onCreateRule(e,i,n)||(e[0],null)}var V=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},W=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=V(e[n]," ");else t=V(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function q(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function $(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Z(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=q(n),l=s.linebreak,c=s.space;if(e&&o++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var f in d){var p=d[f];null!=p&&(r&&(r+=l),r+=$(f+":"+c+W(p)+";",o))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=$(h+":"+c+W(m)+";",o))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=$(g+":"+c+W(v)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),$(""+e+c+"{"+r,--o)+$("}",o)):r}var Y=/([[\].#*$><+~=|^:(),"'`\s])/g,X="undefined"!=typeof CSS&&CSS.escape,K=function(e){return X?X(e):e.replace(Y,"\\$1")},Q=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),J=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l((0,B.Z)((0,B.Z)(i)),s),i.selectorText="."+K(i.id)),i}(0,j.Z)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=W(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,a.Z)({},e,{allowEmpty:!0}):e;return Z(this.selectorText,this.style,n)},I(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(Q),ee={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new J(e,t,n)}},te={indent:1,children:!0},ne=/@([\w-]+)/,re=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(ne);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Re((0,a.Z)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=te);var t=q(e).linebreak;if(null==e.indent&&(e.indent=te.indent),null==e.children&&(e.children=te.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),ie=/@container|@media|@supports\s+/,oe={onCreateRule:function(e,t,n){return ie.test(e)?new re(e,t,n):null}},le={indent:1,children:!0},ce=/@keyframes\s+([\w-]+)/,ue=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(ce);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,s=n.generateId;for(var l in this.id=!1===i?this.name:K(s(this,o)),this.rules=new Re((0,a.Z)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,a.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=le);var t=q(e).linebreak;if(null==e.indent&&(e.indent=le.indent),null==e.children&&(e.children=le.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),de=/@keyframes\s+/,fe=/\$([\w-]+)/g,pe=function(e,t){return"string"==typeof e?e.replace(fe,(function(e,n){return n in t?t[n]:e})):e},he=function(e,t,n){var r=e[t],i=pe(r,n);i!==r&&(e[t]=i)},me={onCreateRule:function(e,t,n){return"string"==typeof e&&de.test(e)?new ue(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&he(e,"animation-name",n.keyframes),"animation"in e&&he(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return pe(e,r.keyframes);default:return e}}},ge=function(e){function t(){return e.apply(this,arguments)||this}return(0,j.Z)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,a.Z)({},e,{allowEmpty:!0}):e;return Z(this.key,this.style,n)},t}(Q),ve={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new ge(e,t,n):null}},ye=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=q(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Z(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Z(this.at,this.style,e)},e}(),be=/@font-face/,xe={onCreateRule:function(e,t,n){return be.test(e)?new ye(e,t,n):null}},we=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Z(this.key,this.style,e)},e}(),Ee={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new we(e,t,n):null}},_e=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Se={"@charset":!0,"@import":!0,"@namespace":!0},Ce={onCreateRule:function(e,t,n){return e in Se?new _e(e,t,n):null}},Oe=[ee,oe,me,ve,xe,Ee,Ce],ke={process:!0},Le={force:!0,process:!0},Re=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,o=r.sheet,s=r.jss,l=r.Renderer,c=r.generateId,u=r.scoped,d=(0,a.Z)({classes:this.classes,parent:i,sheet:o,jss:s,Renderer:l,generateId:c,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),f=e;e in this.raw&&(f=e+"-d"+this.counter++),this.raw[f]=t,f in this.classes&&(d.selector="."+K(this.classes[f]));var p=H(f,t,d);if(!p)return null;this.register(p);var h=void 0===d.index?this.index.length:d.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=(0,a.Z)({},n,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof J?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof ue&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof J?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof ue&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=ke);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,Le)}for(var u in s){var d=t.style[u],f=s[u];null==d&&d!==f&&t.prop(u,null,Le)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=q(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),Pe=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,a.Z)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Re(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Me=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Ae=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,p.Z)(t,["attached"]),i=q(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},I(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Te=new Ae,De="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ze="2f1acc6c3a606b082e5eef5e54414ffb";null==De[ze]&&(De[ze]=0);var Fe=De[ze]++,Ne=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+Fe+i+t:o+n.key+"-"+Fe+(i?"-"+i:"")+"-"+t}},Ie=function(e){var t;return function(){return t||(t=e()),t}},je=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Be=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=W(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},Ge=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Ue=function(e,t){return e.selectorText=t,e.selectorText===t},He=Ie((function(){return document.querySelector("head")}));var Ve=Ie((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),We=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},qe=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},$e=function(){function e(e){this.getPropertyValue=je,this.setProperty=Be,this.removeProperty=Ge,this.setSelector=Ue,this.hasInsertedRules=!1,this.cssRules=[],e&&Te.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=Ve();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=Te.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=He(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else He().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=qe(n,t);if(!1===(i=We(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=qe(n,t),l=We(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Pe&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ze=0,Ye=function(){function e(e){this.id=Ze++,this.version="10.10.0",this.plugins=new Me,this.options={id:{minify:!1},createGenerateId:Ne,Renderer:D?$e:null,plugins:[]},this.generateId=Ne({minify:!1});for(var t=0;t<Oe.length;t++)this.plugins.use(Oe[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,a.Z)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===Te.index?0:Te.index+1);var r=new Pe(e,(0,a.Z)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),Te.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=(0,a.Z)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=H(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Xe=function(e){return new Ye(e)},Ke="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Qe(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=Qe(r);o&&(t||(t={}),t[n]=o)}}return t}function Je(e={}){const{baseClasses:t,newClasses:n,Component:r}=e;if(!n)return t;const i=(0,a.Z)({},t);return Object.keys(n).forEach((e=>{n[e]&&(i[e]=`${t[e]} ${n[e]}`)})),i}Xe();const et={set:(e,t,n,r)=>{let i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:(e,t,n)=>{const r=e.get(t);return r?r.get(n):void 0},delete:(e,t,n)=>{e.get(t).delete(n)}},tt=et,nt=e.createContext(null);function rt(){var t;const n=e.useContext(nt);return null!=(t=null==n?void 0:n.$$material)?t:n}const it="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ot=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var at=Date.now(),st="fnValues"+at,lt="fnStyle"+ ++at;var ct="@global",ut=function(){function e(e,t,n){for(var r in this.type="global",this.at=ct,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Re((0,a.Z)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),dt=function(){function e(e,t,n){this.type="global",this.at=ct,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,a.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),ft=/\s*,\s*/g;function pt(e,t){for(var n=e.split(ft),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}var ht=/\s*,\s*/g,mt=/&/g,gt=/\$([\w-]+)/g;var vt=/[A-Z]/g,yt=/^ms-/,bt={};function xt(e){return"-"+e.toLowerCase()}const wt=function(e){if(bt.hasOwnProperty(e))return bt[e];var t=e.replace(vt,xt);return bt[e]=yt.test(t)?"-"+t:t};function Et(e){var t={};for(var n in e)t[0===n.indexOf("--")?n:wt(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Et):t.fallbacks=Et(e.fallbacks)),t}var _t=Ke&&CSS?CSS.px:"px",St=Ke&&CSS?CSS.ms:"ms",Ct=Ke&&CSS?CSS.percent:"%";function Ot(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var kt=Ot({"animation-delay":St,"animation-duration":St,"background-position":_t,"background-position-x":_t,"background-position-y":_t,"background-size":_t,border:_t,"border-bottom":_t,"border-bottom-left-radius":_t,"border-bottom-right-radius":_t,"border-bottom-width":_t,"border-left":_t,"border-left-width":_t,"border-radius":_t,"border-right":_t,"border-right-width":_t,"border-top":_t,"border-top-left-radius":_t,"border-top-right-radius":_t,"border-top-width":_t,"border-width":_t,"border-block":_t,"border-block-end":_t,"border-block-end-width":_t,"border-block-start":_t,"border-block-start-width":_t,"border-block-width":_t,"border-inline":_t,"border-inline-end":_t,"border-inline-end-width":_t,"border-inline-start":_t,"border-inline-start-width":_t,"border-inline-width":_t,"border-start-start-radius":_t,"border-start-end-radius":_t,"border-end-start-radius":_t,"border-end-end-radius":_t,margin:_t,"margin-bottom":_t,"margin-left":_t,"margin-right":_t,"margin-top":_t,"margin-block":_t,"margin-block-end":_t,"margin-block-start":_t,"margin-inline":_t,"margin-inline-end":_t,"margin-inline-start":_t,padding:_t,"padding-bottom":_t,"padding-left":_t,"padding-right":_t,"padding-top":_t,"padding-block":_t,"padding-block-end":_t,"padding-block-start":_t,"padding-inline":_t,"padding-inline-end":_t,"padding-inline-start":_t,"mask-position-x":_t,"mask-position-y":_t,"mask-size":_t,height:_t,width:_t,"min-height":_t,"max-height":_t,"min-width":_t,"max-width":_t,bottom:_t,left:_t,top:_t,right:_t,inset:_t,"inset-block":_t,"inset-block-end":_t,"inset-block-start":_t,"inset-inline":_t,"inset-inline-end":_t,"inset-inline-start":_t,"box-shadow":_t,"text-shadow":_t,"column-gap":_t,"column-rule":_t,"column-rule-width":_t,"column-width":_t,"font-size":_t,"font-size-delta":_t,"letter-spacing":_t,"text-decoration-thickness":_t,"text-indent":_t,"text-stroke":_t,"text-stroke-width":_t,"word-spacing":_t,motion:_t,"motion-offset":_t,outline:_t,"outline-offset":_t,"outline-width":_t,perspective:_t,"perspective-origin-x":Ct,"perspective-origin-y":Ct,"transform-origin":Ct,"transform-origin-x":Ct,"transform-origin-y":Ct,"transform-origin-z":Ct,"transition-delay":St,"transition-duration":St,"vertical-align":_t,"flex-basis":_t,"shape-margin":_t,size:_t,gap:_t,grid:_t,"grid-gap":_t,"row-gap":_t,"grid-row-gap":_t,"grid-column-gap":_t,"grid-template-rows":_t,"grid-template-columns":_t,"grid-auto-rows":_t,"grid-auto-columns":_t,"box-shadow-x":_t,"box-shadow-y":_t,"box-shadow-blur":_t,"box-shadow-spread":_t,"font-line-height":_t,"text-shadow-x":_t,"text-shadow-y":_t,"text-shadow-blur":_t});function Lt(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Lt(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=Lt(i,t[i],n);else for(var o in t)t[o]=Lt(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||kt[e];return!a||0===t&&a===_t?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pt(e,t){if(e){if("string"==typeof e)return Rt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rt(e,t):void 0}}function Mt(e){return function(e){if(Array.isArray(e))return Rt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Pt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var At="",Tt="",Dt="",zt="",Ft=D&&"ontouchstart"in document.documentElement;if(D){var Nt={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},It=document.createElement("p").style;for(var jt in Nt)if(jt+"Transform"in It){At=jt,Tt=Nt[jt];break}"Webkit"===At&&"msHyphens"in It&&(At="ms",Tt=Nt.ms,zt="edge"),"Webkit"===At&&"-apple-trailing-word"in It&&(Dt="apple")}var Bt=At,Gt=Tt,Ut=Dt,Ht=zt,Vt=Ft,Wt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Bt?"-webkit-"+e:Gt+e)}},qt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Bt?Gt+"print-"+e:e)}},$t=/[-\s]+(.)?/g;function Zt(e,t){return t?t.toUpperCase():""}function Yt(e){return e.replace($t,Zt)}function Xt(e){return Yt("-"+e)}var Kt,Qt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Bt){var n="mask-image";if(Yt(n)in t)return e;if(Bt+Xt(n)in t)return Gt+e}return e}},Jt={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Ut||Vt?e:Gt+e)}},en={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Gt+e)}},tn={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Gt+e)}},nn={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Bt||"ms"===Bt&&"edge"!==Ht?Gt+e:e)}},rn={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Bt||"ms"===Bt||"apple"===Ut?Gt+e:e)}},on={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Bt?"WebkitColumn"+Xt(e)in t&&Gt+"column-"+e:"Moz"===Bt&&"page"+Xt(e)in t&&"page-"+e)}},an={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Bt)return e;var n=e.replace("-inline","");return Bt+Xt(n)in t&&Gt+n}},sn={supportedProperty:function(e,t){return Yt(e)in t&&e}},ln={supportedProperty:function(e,t){var n=Xt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Bt+n in t?Gt+e:"Webkit"!==Bt&&"Webkit"+n in t&&"-webkit-"+e}},cn={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Bt?""+Gt+e:e)}},un={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Bt?Gt+"scroll-chaining":e)}},dn={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},fn={supportedProperty:function(e,t){var n=dn[e];return!!n&&Bt+Xt(n)in t&&Gt+n}},pn={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},hn=Object.keys(pn),mn=function(e){return Gt+e},gn={supportedProperty:function(e,t,n){var r=n.multiple;if(hn.indexOf(e)>-1){var i=pn[e];if(!Array.isArray(i))return Bt+Xt(i)in t&&Gt+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(Bt+Xt(i[0])in t))return!1;return i.map(mn)}return!1}},vn=[Wt,qt,Qt,Jt,en,tn,nn,rn,on,an,sn,ln,cn,un,fn,gn],yn=vn.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),bn=vn.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Mt(t.noPrefill)),e}),[]),xn={};if(D){Kt=document.createElement("p");var wn=window.getComputedStyle(document.documentElement,"");for(var En in wn)isNaN(En)||(xn[wn[En]]=wn[En]);bn.forEach((function(e){return delete xn[e]}))}function _n(e,t){if(void 0===t&&(t={}),!Kt)return e;if(null!=xn[e])return xn[e];"transition"!==e&&"transform"!==e||(t[e]=e in Kt.style);for(var n=0;n<yn.length&&(xn[e]=yn[n](e,Kt.style,t),!xn[e]);n++);try{Kt.style[e]=""}catch(e){return!1}return xn[e]}var Sn,Cn={},On={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},kn=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ln(e,t,n){return"var"===t?"var":"all"===t?"all":"all"===n?", all":(t?_n(t):", "+_n(n))||t||n}function Rn(e,t){var n=t;if(!Sn||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Cn[r])return Cn[r];try{Sn.style[e]=n}catch(e){return Cn[r]=!1,!1}if(On[e])n=n.replace(kn,Ln);else if(""===Sn.style[e]&&("-ms-flex"===(n=Gt+n)&&(Sn.style[e]="-ms-flexbox"),Sn.style[e]=n,""===Sn.style[e]))return Cn[r]=!1,!1;return Sn.style[e]="",Cn[r]=n,Cn[r]}D&&(Sn=document.createElement("p"));const Pn=Xe({plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=H(e,{},n);return r[lt]=t,r},onProcessStyle:function(e,t){if(st in t||lt in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[st]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[lt];o&&(i.style=o(e)||{});var a=i[st];if(a)for(var s in a)i.prop(s,a[s](e),r)}},{onCreateRule:function(e,t,n){if(!e)return null;if(e===ct)return new ut(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,8))return new dt(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[ct]:null;if(i){for(var o in i)t.addRule(o,i[o],(0,a.Z)({},n,{selector:pt(o,e.selector)}));delete r[ct]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,7)===ct){var o=pt(i.substr(7),e.selector);t.addRule(o,r[i],(0,a.Z)({},n,{selector:o})),delete r[i]}}(e,t))}},function(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(ht),r=e.split(ht),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(mt,a):a+" "+l}return i}function n(e,t,n){if(n)return(0,a.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=(0,a.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var s,l,c=i,u=c.options.parent;for(var d in r){var f=-1!==d.indexOf("&"),p="@"===d[0];if(f||p){if(s=n(c,u,s),f){var h=t(d,c.selector);l||(l=e(u,o)),h=h.replace(gt,l);var m=c.key+"-"+d;"replaceRule"in u?u.replaceRule(m,r[d],(0,a.Z)({},s,{selector:h})):u.addRule(m,r[d],(0,a.Z)({},s,{selector:h}))}else p&&u.addRule(d,{},s).addRule(c.key,r[d],{selector:c.selector});delete r[d]}}return r}}}(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Et(e[t]);return e}return Et(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=wt(t);return t===r?e:(n.prop(r,e),null)}},function(e){void 0===e&&(e={});var t=Ot(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Lt(r,e[r],t);return e},onChangeValue:function(e,n){return Lt(n,e,t)}}}(),"undefined"==typeof window?null:function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=_n(n);o&&o!==n&&(i=!0);var a=!1,s=Rn(o,W(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Bt?e:"@"+Gt+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Rn(t,W(e))||e}}}(),(Dn=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var n={},r=Object.keys(e).sort(Dn),i=0;i<r.length;i++)n[r[i]]=e[r[i]];return n}})]}),Mn=function(e={}){const{disableGlobal:t=!1,productionPrefix:n="jss",seed:r=""}=e,i=""===r?"":`${r}-`;let o=0;const a=()=>(o+=1,o);return(e,o)=>{const s=o.options.name;if(s&&0===s.indexOf("Mui")&&!o.options.link&&!t){if(-1!==ot.indexOf(e.key))return`Mui-${e.key}`;const t=`${i}${s}-${e.key}`;return o.options.theme[it]&&""===r?`${t}-${a()}`:t}return`${i}${n}${a()}`}}(),An={disableGeneration:!1,generateClassName:Mn,jss:Pn,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Tn=e.createContext(An);var Dn;let zn=-1e9;function Fn(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Nn(e){if(!Fn(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Nn(e[n])})),t}function In(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Fn(e)&&Fn(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(Fn(t[i])&&i in e&&Fn(e[i])?r[i]=In(e[i],t[i],n):n.clone?r[i]=Fn(t[i])?Nn(t[i]):t[i]:r[i]=t[i])})),r}function jn(e){if("string"!=typeof e)throw new Error(function(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Bn=["variant"];function Gn(e){return 0===e.length}const Un={},Hn=["name","classNamePrefix","Component","defaultTheme"];function Vn({state:e,theme:t,stylesOptions:n,stylesCreator:r,name:i},o){if(n.disableGeneration)return;let s=tt.get(n.sheetsManager,r,t);s||(s={refs:0,staticSheet:null,dynamicStyles:null},tt.set(n.sheetsManager,r,t,s));const l=(0,a.Z)({},r.options,n,{theme:t,flip:"boolean"==typeof n.flip?n.flip:"rtl"===t.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;const c=n.sheetsRegistry;if(0===s.refs){let e;n.sheetsCache&&(e=tt.get(n.sheetsCache,r,t));const o=r.create(t,i);e||(e=n.jss.createStyleSheet(o,(0,a.Z)({link:!1},l)),e.attach(),n.sheetsCache&&tt.set(n.sheetsCache,r,t,e)),c&&c.add(e),s.staticSheet=e,s.dynamicStyles=Qe(o)}if(s.dynamicStyles){const t=n.jss.createStyleSheet(s.dynamicStyles,(0,a.Z)({link:!0},l));t.update(o),t.attach(),e.dynamicSheet=t,e.classes=Je({baseClasses:s.staticSheet.classes,newClasses:t.classes}),c&&c.add(t)}else e.classes=s.staticSheet.classes;s.refs+=1}function Wn(t,n={}){const{name:r,classNamePrefix:i,Component:o,defaultTheme:s=Un}=n,l=(0,p.Z)(n,Hn),c=function(e){const t="function"==typeof e;return{create:(n,r)=>{let i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.components||!n.components[r]||!n.components[r].styleOverrides&&!n.components[r].variants)return i;const o=n.components[r].styleOverrides||{},s=n.components[r].variants||[],l=(0,a.Z)({},i);return Object.keys(o).forEach((e=>{l[e]=In(l[e]||{},o[e])})),s.forEach((e=>{const t=function(e){const{variant:t}=e,n=(0,p.Z)(e,Bn);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Gn(r)?e[t]:jn(e[t]):`${Gn(r)?t:jn(t)}${jn(e[t].toString())}`})),r}(e.props);l[t]=In(l[t]||{},e.style)})),l},options:{}}}(t),u=r||i||"makeStyles";return c.options={index:(zn+=1,zn),name:r,meta:u,classNamePrefix:u},(t={})=>{const n=rt()||s,i=(0,a.Z)({},e.useContext(Tn),l),u=e.useRef(),d=e.useRef();!function(o,a){const s=e.useRef([]);let l;const f=e.useMemo((()=>({})),a);s.current!==f&&(s.current=f,l=(()=>{const e={name:r,state:{},stylesCreator:c,stylesOptions:i,theme:n};return Vn(e,t),d.current=!1,u.current=e,()=>{!function({state:e,theme:t,stylesOptions:n,stylesCreator:r}){if(n.disableGeneration)return;const i=tt.get(n.sheetsManager,r,t);i.refs-=1;const o=n.sheetsRegistry;0===i.refs&&(tt.delete(n.sheetsManager,r,t),n.jss.removeStyleSheet(i.staticSheet),o&&o.remove(i.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),o&&o.remove(e.dynamicSheet))}(e)}})()),e.useEffect((()=>()=>{l&&l()}),[f])}(0,[n,c]),e.useEffect((()=>{d.current&&function({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}(u.current,t),d.current=!0}));const f=function({state:e,stylesOptions:t},n,r){if(t.disableGeneration)return n||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let i=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,i=!0),n!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=n,i=!0),i&&(e.cacheClasses.value=Je({baseClasses:e.cacheClasses.lastJSS,newClasses:n,Component:r})),e.cacheClasses.value}(u.current,t.classes,o);return f}}const qn=Wn({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",minWidth:"20px",fontWeight:"normal",lineHeight:"inherit",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$n.apply(null,arguments)}const Zn=e=>{let{title:n="",children:r=null,classes:i={}}=e,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["title","children","classes"]);const a=qn();return t().createElement(P(),$n({className:i.root,classes:{root:a.toolbar}},o),n&&t().createElement(A(),{className:i.title,classes:{root:a.title},variant:"h6"},L().text(n)),r)};var Yn=ae(6825),Xn=ae.n(Yn),Kn=ae(8310),Qn=ae.n(Kn),Jn=ae(8282),er=ae.n(Jn);const tr=Wn((e=>({expanded:{transform:"rotate(180deg)"},disabled:{color:`${e.palette.text.disabled} !important`}})));function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nr.apply(null,arguments)}const rr=e=>{const{selectProps:{classes:n,menuIsOpen:r,isDisabled:i},innerProps:o}=e,a=tr();return t().createElement(er(),nr({"data-reltio-id":"select-dropdown-indicator"},o,{className:Qn()(n.dropdownIndicator,{[a.expanded]:r},{[a.disabled]:i})}))};function ir(e,t,n){return(t=F(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function or(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 ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach((function(t){ir(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}rr.propTypes={innerProps:m().object.isRequired,selectProps:m().shape({classes:m().shape({dropdownIndicator:m().string}).isRequired,menuIsOpen:m().bool.isRequired,isDisabled:m().bool}).isRequired};var sr=ae(8960);function lr(e){return lr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lr(e)}function cr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cr=function(){return!!e})()}var ur=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),dr=Math.abs,fr=String.fromCharCode,pr=Object.assign;function hr(e){return e.trim()}function mr(e,t,n){return e.replace(t,n)}function gr(e,t){return e.indexOf(t)}function vr(e,t){return 0|e.charCodeAt(t)}function yr(e,t,n){return e.slice(t,n)}function br(e){return e.length}function xr(e){return e.length}function wr(e,t){return t.push(e),e}var Er=1,_r=1,Sr=0,Cr=0,Or=0,kr="";function Lr(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Er,column:_r,length:a,return:""}}function Rr(e,t){return pr(Lr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pr(){return Or=Cr>0?vr(kr,--Cr):0,_r--,10===Or&&(_r=1,Er--),Or}function Mr(){return Or=Cr<Sr?vr(kr,Cr++):0,_r++,10===Or&&(_r=1,Er++),Or}function Ar(){return vr(kr,Cr)}function Tr(){return Cr}function Dr(e,t){return yr(kr,e,t)}function zr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Fr(e){return Er=_r=1,Sr=br(kr=e),Cr=0,[]}function Nr(e){return kr="",e}function Ir(e){return hr(Dr(Cr-1,Gr(91===e?e+2:40===e?e+1:e)))}function jr(e){for(;(Or=Ar())&&Or<33;)Mr();return zr(e)>2||zr(Or)>3?"":" "}function Br(e,t){for(;--t&&Mr()&&!(Or<48||Or>102||Or>57&&Or<65||Or>70&&Or<97););return Dr(e,Tr()+(t<6&&32==Ar()&&32==Mr()))}function Gr(e){for(;Mr();)switch(Or){case e:return Cr;case 34:case 39:34!==e&&39!==e&&Gr(Or);break;case 40:41===e&&Gr(e);break;case 92:Mr()}return Cr}function Ur(e,t){for(;Mr()&&e+Or!==57&&(e+Or!==84||47!==Ar()););return"/*"+Dr(t,Cr-1)+"*"+fr(47===e?e:Mr())}function Hr(e){for(;!zr(Ar());)Mr();return Dr(e,Cr)}var Vr="-ms-",Wr="-moz-",qr="-webkit-",$r="comm",Zr="rule",Yr="decl",Xr="@keyframes";function Kr(e,t){for(var n="",r=xr(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Qr(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Yr:return e.return=e.return||e.value;case $r:return"";case Xr:return e.return=e.value+"{"+Kr(e.children,r)+"}";case Zr:e.value=e.props.join(",")}return br(n=Kr(e.children,r))?e.return=e.value+"{"+n+"}":""}function Jr(e){return Nr(ei("",null,null,null,[""],e=Fr(e),0,[0],e))}function ei(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",x=i,w=o,E=r,_=b;g;)switch(h=y,y=Mr()){case 40:if(108!=h&&58==vr(_,d-1)){-1!=gr(_+=mr(Ir(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=Ir(y);break;case 9:case 10:case 13:case 32:_+=jr(h);break;case 92:_+=Br(Tr()-1,7);continue;case 47:switch(Ar()){case 42:case 47:wr(ni(Ur(Mr(),Tr()),t,n),l);break;default:_+="/"}break;case 123*m:s[c++]=br(_)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(_=mr(_,/\f/g,"")),p>0&&br(_)-d&&wr(p>32?ri(_+";",r,n,d-1):ri(mr(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(wr(E=ti(_,t,n,c,u,i,s,b,x=[],w=[],d),o),123===y)if(0===u)ei(_,t,E,E,x,o,d,s,w);else switch(99===f&&110===vr(_,3)?100:f){case 100:case 108:case 109:case 115:ei(e,E,E,r&&wr(ti(e,E,E,0,0,i,s,b,i,x=[],d),w),i,w,d,s,r?x:w);break;default:ei(_,E,E,E,[""],w,0,s,w)}}c=u=p=0,m=v=1,b=_="",d=a;break;case 58:d=1+br(_),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Pr())continue;switch(_+=fr(y),y*m){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(br(_)-1)*v,v=1;break;case 64:45===Ar()&&(_+=Ir(Mr())),f=Ar(),u=d=br(b=_+=Hr(Tr())),y++;break;case 45:45===h&&2==br(_)&&(m=0)}}return o}function ti(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],p=xr(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=yr(e,d+1,d=dr(m=a[h])),b=e;v<p;++v)(b=hr(m>0?f[v]+" "+y:mr(y,/&\f/g,f[v])))&&(l[g++]=b);return Lr(e,t,n,0===i?Zr:s,l,c,u)}function ni(e,t,n){return Lr(e,t,n,$r,fr(Or),yr(e,2,-2),0)}function ri(e,t,n,r){return Lr(e,t,n,Yr,yr(e,0,r),yr(e,r+1,-1),r)}var ii=function(e,t,n){for(var r=0,i=0;r=i,i=Ar(),38===r&&12===i&&(t[n]=1),!zr(i);)Mr();return Dr(e,Cr)},oi=new WeakMap,ai=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||oi.get(n))&&!r){oi.set(e,!0);for(var i=[],o=function(e,t){return Nr(function(e,t){var n=-1,r=44;do{switch(zr(r)){case 0:38===r&&12===Ar()&&(t[n]=1),e[n]+=ii(Cr-1,t,n);break;case 2:e[n]+=Ir(r);break;case 4:if(44===r){e[++n]=58===Ar()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=fr(r)}}while(r=Mr());return e}(Fr(e),t))}(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},si=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function li(e,t){switch(function(e,t){return 45^vr(e,0)?(((t<<2^vr(e,0))<<2^vr(e,1))<<2^vr(e,2))<<2^vr(e,3):0}(e,t)){case 5103:return qr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return qr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qr+e+Wr+e+Vr+e+e;case 6828:case 4268:return qr+e+Vr+e+e;case 6165:return qr+e+Vr+"flex-"+e+e;case 5187:return qr+e+mr(e,/(\w+).+(:[^]+)/,qr+"box-$1$2"+Vr+"flex-$1$2")+e;case 5443:return qr+e+Vr+"flex-item-"+mr(e,/flex-|-self/,"")+e;case 4675:return qr+e+Vr+"flex-line-pack"+mr(e,/align-content|flex-|-self/,"")+e;case 5548:return qr+e+Vr+mr(e,"shrink","negative")+e;case 5292:return qr+e+Vr+mr(e,"basis","preferred-size")+e;case 6060:return qr+"box-"+mr(e,"-grow","")+qr+e+Vr+mr(e,"grow","positive")+e;case 4554:return qr+mr(e,/([^-])(transform)/g,"$1"+qr+"$2")+e;case 6187:return mr(mr(mr(e,/(zoom-|grab)/,qr+"$1"),/(image-set)/,qr+"$1"),e,"")+e;case 5495:case 3959:return mr(e,/(image-set\([^]*)/,qr+"$1$`$1");case 4968:return mr(mr(e,/(.+:)(flex-)?(.*)/,qr+"box-pack:$3"+Vr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qr+e+e;case 4095:case 3583:case 4068:case 2532:return mr(e,/(.+)-inline(.+)/,qr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(br(e)-1-t>6)switch(vr(e,t+1)){case 109:if(45!==vr(e,t+4))break;case 102:return mr(e,/(.+:)(.+)-([^]+)/,"$1"+qr+"$2-$3$1"+Wr+(108==vr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~gr(e,"stretch")?li(mr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==vr(e,t+1))break;case 6444:switch(vr(e,br(e)-3-(~gr(e,"!important")&&10))){case 107:return mr(e,":",":"+qr)+e;case 101:return mr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qr+(45===vr(e,14)?"inline-":"")+"box$3$1"+qr+"$2$3$1"+Vr+"$2box$3")+e}break;case 5936:switch(vr(e,t+11)){case 114:return qr+e+Vr+mr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qr+e+Vr+mr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qr+e+Vr+mr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return qr+e+Vr+e+e}return e}var ci=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Yr:e.return=li(e.value,e.length);break;case Xr:return Kr([Rr(e,{value:mr(e.value,"@","@"+qr)})],r);case Zr:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Kr([Rr(e,{props:[mr(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Kr([Rr(e,{props:[mr(t,/:(plac\w+)/,":"+qr+"input-$1")]}),Rr(e,{props:[mr(t,/:(plac\w+)/,":-moz-$1")]}),Rr(e,{props:[mr(t,/:(plac\w+)/,Vr+"input-$1")]})],r)}return""}))}}],ui=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||ci,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u,d,f=[Qr,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[ai,si].concat(o,f),u=xr(c),function(e,t,n,r){for(var i="",o=0;o<u;o++)i+=c[o](e,t,n,r)||"";return i});i=function(e,t,n,r){l=n,Kr(Jr(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new ur({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(s),h},di=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},fi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function pi(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var hi=/[A-Z]|^ms/g,mi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gi=function(e){return 45===e.charCodeAt(1)},vi=function(e){return null!=e&&"boolean"!=typeof e},yi=pi((function(e){return gi(e)?e:e.replace(hi,"-$&").toLowerCase()})),bi=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(mi,(function(e,t,n){return wi={name:t,styles:n,next:wi},t}))}return 1===fi[e]||gi(e)||"number"!=typeof t||0===t?t:t+"px"};function xi(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return wi={name:n.name,styles:n.styles,next:wi},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)wi={name:r.name,styles:r.styles,next:wi},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=xi(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":vi(a)&&(r+=yi(o)+":"+bi(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=xi(e,t,a);switch(o){case"animation":case"animationName":r+=yi(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)vi(a[l])&&(r+=yi(o)+":"+bi(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=wi,o=n(e);return wi=i,xi(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var wi,Ei=/label:\s*([^\s;\n{]+)\s*(;|$)/g,_i=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";wi=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=xi(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=xi(n,t,e[a]),r&&(i+=o[a]);Ei.lastIndex=0;for(var s,l="";null!==(s=Ei.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:wi}},Si=!!e.useInsertionEffect&&e.useInsertionEffect,Ci=Si||function(e){return e()},Oi=(Si||e.useLayoutEffect,{}.hasOwnProperty),ki=e.createContext("undefined"!=typeof HTMLElement?ui({key:"css"}):null);ki.Provider;var Li=function(t){return(0,e.forwardRef)((function(n,r){var i=(0,e.useContext)(ki);return t(n,i,r)}))},Ri=e.createContext({}),Pi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Mi=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return di(t,n,r),Ci((function(){return function(e,t,n){di(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(t,n,r)})),null},Ai=Li((function(t,n,r){var i=t.css;"string"==typeof i&&void 0!==n.registered[i]&&(i=n.registered[i]);var o=t[Pi],a=[i],s="";"string"==typeof t.className?s=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(n.registered,a,t.className):null!=t.className&&(s=t.className+" ");var l=_i(a,void 0,e.useContext(Ri));s+=n.key+"-"+l.name;var c={};for(var u in t)Oi.call(t,u)&&"css"!==u&&u!==Pi&&(c[u]=t[u]);return c.ref=r,c.className=s,e.createElement(e.Fragment,null,e.createElement(Mi,{cache:n,serialized:l,isStringTag:"string"==typeof o}),e.createElement(o,c))})),Ti=Ai,Di=(ae(3463),function(t,n){var r=arguments;if(null==n||!Oi.call(n,"css"))return e.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=Ti,o[1]=function(e,t){var n={};for(var r in t)Oi.call(t,r)&&(n[r]=t[r]);return n[Pi]=e,n}(t,n);for(var a=2;a<i;a++)o[a]=r[a];return e.createElement.apply(null,o)});function zi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _i(t)}function Fi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||Pt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ni(e,t){if(null==e)return{};var n,r,i=(0,p.Z)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Ii=ae(7111);const ji=Math.min,Bi=Math.max,Gi=Math.round,Ui=Math.floor,Hi=e=>({x:e,y:e});function Vi(e){return $i(e)?(e.nodeName||"").toLowerCase():"#document"}function Wi(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function qi(e){var t;return null==(t=($i(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $i(e){return e instanceof Node||e instanceof Wi(e).Node}function Zi(e){return e instanceof Element||e instanceof Wi(e).Element}function Yi(e){return e instanceof HTMLElement||e instanceof Wi(e).HTMLElement}function Xi(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Wi(e).ShadowRoot)}function Ki(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Qi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Qi(e){return Wi(e).getComputedStyle(e)}function Ji(e){const t=function(e){if("html"===Vi(e))return e;const t=e.assignedSlot||e.parentNode||Xi(e)&&e.host||qi(e);return Xi(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Vi(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yi(t)&&Ki(t)?t:Ji(t)}function eo(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Ji(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Wi(i);if(o){const e=to(a);return t.concat(a,a.visualViewport||[],Ki(i)?i:[],e&&n?eo(e):[])}return t.concat(i,eo(i,[],n))}function to(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function no(e){return Zi(e)?e:e.contextElement}function ro(e){const t=no(e);if(!Yi(t))return Hi(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=function(e){const t=Qi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Yi(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Gi(n)!==o||Gi(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}(t);let a=(o?Gi(n.width):n.width)/r,s=(o?Gi(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const io=Hi(0);function oo(e){const t=Wi(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:io}function ao(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=no(e);let a=Hi(1);t&&(r?Zi(r)&&(a=ro(r)):a=ro(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Wi(e))&&t}(o,n,r)?oo(o):Hi(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o){const e=Wi(o),t=r&&Zi(r)?Wi(r):r;let n=e,i=to(n);for(;i&&r&&t!==n;){const e=ro(i),t=i.getBoundingClientRect(),r=Qi(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=a,n=Wi(i),i=to(n)}}return function(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}({width:u,height:d,x:l,y:c})}const so=e.useLayoutEffect;var lo=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],co=function(){};function uo(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function fo(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(uo(e,a)));return o.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var po=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===z(e)&&null!==e?[e]:[];var t},ho=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,ar({},Ni(e,lo))},mo=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.className;return{css:i(t,e),className:r(null!=n?n:{},o(t,e),a)}};function go(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function vo(e){return go(e)?window.pageYOffset:e.scrollTop}function yo(e,t){go(e)?window.scrollTo(0,t):e.scrollTop=t}function bo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:co,i=vo(e),o=t-i,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,i,o,n);yo(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function xo(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?yo(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&yo(e,Math.max(t.offsetTop-i,0))}function wo(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Eo=!1,_o={get passive(){return Eo=!0}},So="undefined"!=typeof window?window:{};So.addEventListener&&So.removeEventListener&&(So.addEventListener("p",co,_o),So.removeEventListener("p",co,!1));var Co=Eo;function Oo(e){return null!=e}function ko(e,t,n){return e?t:n}var Lo=["children","innerProps"],Ro=["children","innerProps"];var Po,Mo,Ao,To=function(e){return"auto"===e?"bottom":e},Do=(0,e.createContext)(null),zo=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=((0,e.useContext)(Do)||{}).setPortalPlacement,u=(0,e.useRef)(null),d=Fi((0,e.useState)(i),2),f=d[0],p=d[1],h=Fi((0,e.useState)(null),2),m=h[0],g=h[1],v=l.spacing.controlHeight;return so((function(){var e=u.current;if(e){var t="fixed"===a,n=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,p=d.height,h=d.top,m=n.offsetParent.getBoundingClientRect().top,g=a?window.innerHeight:function(e){return go(e)?window.innerHeight:e.clientHeight}(l),v=vo(l),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),x=m-b,w=g-h,E=x+v,_=u-v-h,S=f-g+v+y,C=v+h-b,O=160;switch(i){case"auto":case"bottom":if(w>=p)return{placement:"bottom",maxHeight:t};if(_>=p&&!a)return o&&bo(l,S,O),{placement:"bottom",maxHeight:t};if(!a&&_>=r||a&&w>=r)return o&&bo(l,S,O),{placement:"bottom",maxHeight:a?w-y:_-y};if("auto"===i||a){var k=t,L=a?x:E;return L>=r&&(k=Math.min(L-y-s,t)),{placement:"top",maxHeight:k}}if("bottom"===i)return o&&yo(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(x>=p)return{placement:"top",maxHeight:t};if(E>=p&&!a)return o&&bo(l,C,O),{placement:"top",maxHeight:t};if(!a&&E>=r||a&&x>=r){var R=t;return(!a&&E>=r||a&&x>=r)&&(R=a?x-b:E-b),o&&bo(l,C,O),{placement:"top",maxHeight:R}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}({maxHeight:i,menuEl:e,minHeight:r,placement:o,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:v});p(n.maxHeight),g(n.placement),null==c||c(n.placement)}}),[i,o,a,s,r,c,v]),n({ref:u,placerProps:ar(ar({},t),{},{placement:m||To(o),maxHeight:f})})},Fo=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return ar({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},No=Fo,Io=Fo,jo=["size"],Bo=["innerProps","isRtl","size"],Go={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Uo=function(e){var t=e.size,n=Ni(e,jo);return Di("svg",(0,a.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Go},n))},Ho=function(e){return Di(Uo,(0,a.Z)({size:20},e),Di("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Vo=function(e){return Di(Uo,(0,a.Z)({size:20},e),Di("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Wo=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return ar({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},qo=Wo,$o=Wo,Zo=function(){var e=zi.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Po||(Mo=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Ao||(Ao=Mo.slice(0)),Po=Object.freeze(Object.defineProperties(Mo,{raw:{value:Object.freeze(Ao)}})))),Yo=function(e){var t=e.delay,n=e.offset;return Di("span",{css:zi({animation:"".concat(Zo," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Xo=["data"],Ko=["innerRef","isDisabled","isHidden","inputClassName"],Qo={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Jo={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ar({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Qo)},ea=function(e){return ar({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Qo)},ta=function(e){var t=e.children,n=e.innerProps;return Di("div",n,t)},na={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Di("div",(0,a.Z)({},mo(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Di(Ho,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,s=e.menuIsOpen;return Di("div",(0,a.Z)({ref:i},mo(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":s}),o,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Di("div",(0,a.Z)({},mo(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Di(Vo,null))},DownChevron:Vo,CrossIcon:Ho,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,s=e.headingProps,l=e.innerProps,c=e.label,u=e.theme,d=e.selectProps;return Di("div",(0,a.Z)({},mo(e,"group",{group:!0}),l),Di(o,(0,a.Z)({},s,{selectProps:d,theme:u,getStyles:r,getClassNames:i,cx:n}),c),Di("div",null,t))},GroupHeading:function(e){var t=ho(e);t.data;var n=Ni(t,Xo);return Di("div",(0,a.Z)({},mo(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Di("div",(0,a.Z)({},mo(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Di("span",(0,a.Z)({},t,mo(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=ho(e),i=r.innerRef,o=r.isDisabled,s=r.isHidden,l=r.inputClassName,c=Ni(r,Ko);return Di("div",(0,a.Z)({},mo(e,"input",{"input-container":!0}),{"data-value":n||""}),Di("input",(0,a.Z)({className:t({input:!0},l),ref:i,style:ea(s),disabled:o},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=void 0===r?4:r,o=Ni(e,Bo);return Di("div",(0,a.Z)({},mo(ar(ar({},o),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Di(Yo,{delay:0,offset:n}),Di(Yo,{delay:160,offset:!0}),Di(Yo,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Di("div",(0,a.Z)({},mo(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return Di("div",(0,a.Z)({},mo(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,s=t.menuPlacement,l=t.menuPosition,c=(0,e.useRef)(null),u=(0,e.useRef)(null),d=Fi((0,e.useState)(To(s)),2),f=d[0],p=d[1],h=(0,e.useMemo)((function(){return{setPortalPlacement:p}}),[]),m=Fi((0,e.useState)(null),2),g=m[0],v=m[1],y=(0,e.useCallback)((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===l?0:window.pageYOffset,n=e[f]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||v({offset:n,rect:e})}}),[i,l,f,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);so((function(){y()}),[y]);var b=(0,e.useCallback)((function(){"function"==typeof u.current&&(u.current(),u.current=null),i&&c.current&&(u.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=no(e),u=i||o?[...c?eo(c):[],...eo(t)]:[];u.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const i=qi(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-Ui(u)+"px "+-Ui(i.clientWidth-(c+d))+"px "+-Ui(i.clientHeight-(u+f))+"px "+-Ui(c)+"px",threshold:Bi(0,ji(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...p,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),o}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?ao(e):null;return l&&function t(){const r=ao(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}(i,c.current,y,{elementResize:"ResizeObserver"in window}))}),[i,y]);so((function(){b()}),[b]);var x=(0,e.useCallback)((function(e){c.current=e,b()}),[b]);if(!n&&"fixed"!==l||!g)return null;var w=Di("div",(0,a.Z)({ref:x},mo(ar(ar({},t),{},{offset:g.offset,position:l,rect:g.rect}),"menuPortal",{"menu-portal":!0}),o),r);return Di(Do.Provider,{value:h},n?(0,Ii.createPortal)(w,n):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=Ni(e,Ro);return Di("div",(0,a.Z)({},mo(ar(ar({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=Ni(e,Lo);return Di("div",(0,a.Z)({},mo(ar(ar({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return Di(l,{data:r,innerProps:ar(ar({},mo(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:s},Di(c,{data:r,innerProps:ar({},mo(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Di(u,{data:r,innerProps:ar(ar({},mo(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:ta,MultiValueLabel:ta,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Di("div",(0,a.Z)({role:"button"},n),t||Di(Ho,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,s=e.innerProps;return Di("div",(0,a.Z)({},mo(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Di("div",(0,a.Z)({},mo(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return Di("div",(0,a.Z)({},mo(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Di("div",(0,a.Z)({},mo(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return Di("div",(0,a.Z)({},mo(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},ra=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ia(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(i=t[n])||ra(r)&&ra(i)))return!1;var r,i;return!0}for(var oa={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},aa=function(e){return Di("span",(0,a.Z)({css:oa},e))},sa={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,o=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=s?" disabled":"",f="".concat(l?" selected":"").concat(d);return"".concat(o).concat(f,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},la=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,h=l.isMulti,m=l.isOptionDisabled,g=l.isSearchable,v=l.menuIsOpen,y=l.options,b=l.screenReaderStatus,x=l.tabSelectsValue,w=l.isLoading,E=l["aria-label"],_=l["aria-live"],S=(0,e.useMemo)((function(){return ar(ar({},sa),d||{})}),[d]),C=(0,e.useMemo)((function(){var e,t="";if(n&&S.onChange){var r=n.option,i=n.options,o=n.removedValue,a=n.removedValues,l=n.value,c=o||r||(e=l,Array.isArray(e)?null:e),u=c?f(c):"",d=i||a||void 0,p=d?d.map(f):[],h=ar({isDisabled:c&&m(c,s),label:u,labels:p},n);t=S.onChange(h)}return t}),[n,S,m,s,f]),O=(0,e.useMemo)((function(){var e="",t=r||i,n=!!(r&&s&&s.includes(r));if(t&&S.onFocus){var a={focused:t,label:f(t),isDisabled:m(t,s),isSelected:n,options:o,context:t===r?"menu":"value",selectValue:s,isAppleDevice:u};e=S.onFocus(a)}return e}),[r,i,f,m,S,o,s,u]),k=(0,e.useMemo)((function(){var e="";if(v&&y.length&&!w&&S.onFilter){var t=b({count:o.length});e=S.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,v,S,y,b,w]),L="initial-input-focus"===(null==n?void 0:n.action),R=(0,e.useMemo)((function(){var e="";if(S.guidance){var t=i?"value":v?"menu":"input";e=S.guidance({"aria-label":E,context:t,isDisabled:r&&m(r,s),isMulti:h,isSearchable:g,tabSelectsValue:x,isInitialFocus:L})}return e}),[E,r,i,h,m,g,v,S,s,x,L]),P=Di(e.Fragment,null,Di("span",{id:"aria-selection"},C),Di("span",{id:"aria-focused"},O),Di("span",{id:"aria-results"},k),Di("span",{id:"aria-guidance"},R));return Di(e.Fragment,null,Di(aa,{id:c},L&&P),Di(aa,{"aria-live":_,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!L&&P))},ca=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ua=new RegExp("["+ca.map((function(e){return e.letters})).join("")+"]","g"),da={},fa=0;fa<ca.length;fa++)for(var pa=ca[fa],ha=0;ha<pa.letters.length;ha++)da[pa.letters[ha]]=pa.base;var ma=function(e){return e.replace(ua,(function(e){return da[e]}))},ga=function(e,t){void 0===t&&(t=ia);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(ma),va=function(e){return e.replace(/^\s+|\s+$/g,"")},ya=function(e){return"".concat(e.label," ").concat(e.value)},ba=function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=ar({ignoreCase:!0,ignoreAccents:!0,stringify:ya,trim:!0,matchFrom:"any"},e),i=r.ignoreCase,o=r.ignoreAccents,a=r.stringify,s=r.trim,l=r.matchFrom,c=s?va(n):n,u=s?va(a(t)):a(t);return i&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=ga(c),u=ma(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1}},xa=["innerRef"];function wa(e){var t=e.innerRef,n=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=Object.entries(e).filter((function(e){var t=Fi(e,1)[0];return!n.includes(t)}));return i.reduce((function(e,t){var n=Fi(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})}(Ni(e,xa),"onExited","in","enter","exit","appear");return Di("input",(0,a.Z)({ref:t},n,{css:zi({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Ea=["boxSizing","height","overflow","paddingRight","position"],_a={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Sa(e){e.preventDefault()}function Ca(e){e.stopPropagation()}function Oa(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ka(){return"ontouchstart"in window||navigator.maxTouchPoints}var La=!("undefined"==typeof window||!window.document||!window.document.createElement),Ra=0,Pa={capture:!1,passive:!1},Ma=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Aa={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ta(t){var n=t.children,r=t.lockEnabled,i=t.captureEnabled,o=function(t){var n=t.isEnabled,r=t.onBottomArrive,i=t.onBottomLeave,o=t.onTopArrive,a=t.onTopLeave,s=(0,e.useRef)(!1),l=(0,e.useRef)(!1),c=(0,e.useRef)(0),u=(0,e.useRef)(null),d=(0,e.useCallback)((function(e,t){if(null!==u.current){var n=u.current,c=n.scrollTop,d=n.scrollHeight,f=n.clientHeight,p=u.current,h=t>0,m=d-f-c,g=!1;m>t&&s.current&&(i&&i(e),s.current=!1),h&&l.current&&(a&&a(e),l.current=!1),h&&t>m?(r&&!s.current&&r(e),p.scrollTop=d,g=!0,s.current=!0):!h&&-t>c&&(o&&!l.current&&o(e),p.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[r,i,o,a]),f=(0,e.useCallback)((function(e){d(e,e.deltaY)}),[d]),p=(0,e.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),h=(0,e.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=(0,e.useCallback)((function(e){if(e){var t=!!Co&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,f]),g=(0,e.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,f]);return(0,e.useEffect)((function(){if(n){var e=u.current;return m(e),function(){g(e)}}}),[n,m,g]),function(e){u.current=e}}({isEnabled:void 0===i||i,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var n=t.isEnabled,r=t.accountForScrollbars,i=void 0===r||r,o=(0,e.useRef)({}),a=(0,e.useRef)(null),s=(0,e.useCallback)((function(e){if(La){var t=document.body,n=t&&t.style;if(i&&Ea.forEach((function(e){var t=n&&n[e];o.current[e]=t})),i&&Ra<1){var r=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(_a).forEach((function(e){var t=_a[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&ka()&&(t.addEventListener("touchmove",Sa,Pa),e&&(e.addEventListener("touchstart",Oa,Pa),e.addEventListener("touchmove",Ca,Pa))),Ra+=1}}),[i]),l=(0,e.useCallback)((function(e){if(La){var t=document.body,n=t&&t.style;Ra=Math.max(Ra-1,0),i&&Ra<1&&Ea.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&ka()&&(t.removeEventListener("touchmove",Sa,Pa),e&&(e.removeEventListener("touchstart",Oa,Pa),e.removeEventListener("touchmove",Ca,Pa)))}}),[i]);return(0,e.useEffect)((function(){if(n){var e=a.current;return s(e),function(){l(e)}}}),[n,s,l]),function(e){a.current=e}}({isEnabled:r});return Di(e.Fragment,null,r&&Di("div",{onClick:Ma,css:Aa}),n((function(e){o(e),a(e)})))}var Da={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},za=function(e){var t=e.name,n=e.onFocus;return Di("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Da,value:"",onChange:function(){}})};function Fa(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Na(){return Fa(/^Mac/i)}var Ia={clearIndicator:$o,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors,a=i.borderRadius;return ar({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:qo,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return ar({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return ar({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,a=i.colors;return ar(ar({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Jo),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return ar({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*a})},loadingMessage:Io,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,s=i.colors;return ar((ir(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),ir(n,"position","absolute"),ir(n,"width","100%"),ir(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return ar({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return ar({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return ar({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,a=e.isFocused;return ar({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:No,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,s=o.colors;return ar({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return ar({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return ar({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return ar({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},ja={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ba={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:wo(),captureMenuScroll:!wo(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:ba(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Ga(e,t,n,r){return{type:"option",data:t,isDisabled:Ya(e,t,n),isSelected:Xa(e,t,n),label:$a(e,t),value:Za(e,t),index:r}}function Ua(e,t){return e.options.map((function(n,r){if("options"in n){var i=n.options.map((function(n,r){return Ga(e,n,t,r)})).filter((function(t){return Wa(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=Ga(e,n,t,r);return Wa(e,o)?o:void 0})).filter(Oo)}function Ha(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Mt(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Va(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Mt(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function Wa(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!Qa(e)||!o)&&Ka(e,{label:a,value:s,data:i},r)}var qa=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},$a=function(e,t){return e.getOptionLabel(t)},Za=function(e,t){return e.getOptionValue(t)};function Ya(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Xa(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Za(e,t);return n.some((function(t){return Za(e,t)===r}))}function Ka(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Qa=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Ja=1,es=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,sr.Z)(e,t)}(r,t);var n=function(e){var t=cr();return function(){var n,r=lr(e);if(t){var i=lr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,B.Z)(e)}(this,n)}}(r);function r(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Na()||Fa(/^iPhone/i)||Fa(/^iPad/i)||Na()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,o=r.name;n.name=o,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,o=n.name,a=t.state.selectValue,s=i&&t.isOptionSelected(e,a),l=t.isOptionDisabled(e,a);if(s){var c=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:o});i?t.setValue([].concat(Mt(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,i=t.getOptionValue(e),o=r.filter((function(e){return t.getOptionValue(e)!==i})),a=ko(n,o,o[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(ko(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],i=n.slice(0,n.length-1),o=ko(e,i,i[0]||null);t.onChange(o,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return qa(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Va(Ua(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return fo.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return $a(t.props,e)},t.getOptionValue=function(e){return Za(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=Ia[e](n,r);i.boxSizing="border-box";var o=t.props.styles[e];return o?o(i,n):i},t.getClassNames=function(e,n){var r,i;return null===(r=(i=t.props.classNames)[e])||void 0===r?void 0:r.call(i,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return function(e){return ar(ar({},na),e.components)}(t.props)},t.buildCategorizedOptions=function(){return Ua(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Ha(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:ar({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&go(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return Qa(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!h||f&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&o&&t.clearValue();break;case" ":if(a)return;if(!c){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++Ja),t.state.selectValue=po(e.value),e.menuIsOpen&&t.state.selectValue.length){var i=t.getFocusableOptionsWithIds(),o=t.buildFocusableOptions(),a=o.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=i,t.state.focusedOption=o[a],t.state.focusedOptionId=qa(i,o[a])}return t}return I(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&xo(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(xo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(ja):ar(ar({},ja),this.props.theme):ja}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:o,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Ya(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Xa(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ka(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,n=t.isDisabled,r=t.isSearchable,i=t.inputId,o=t.inputValue,s=t.tabIndex,l=t.form,c=t.menuIsOpen,u=t.required,d=this.getComponents().Input,f=this.state,p=f.inputIsHidden,h=f.ariaSelection,m=this.commonProps,g=i||this.getElementId("input"),v=ar(ar(ar({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==h?void 0:h.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?e.createElement(d,(0,a.Z)({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:n,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:o},v)):e.createElement(wa,(0,a.Z)({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:co,onFocus:this.onInputFocus,disabled:n,tabIndex:s,inputMode:"none",form:l,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,i=n.MultiValueContainer,o=n.MultiValueLabel,s=n.MultiValueRemove,l=n.SingleValue,c=n.Placeholder,u=this.commonProps,d=this.props,f=d.controlShouldRenderValue,p=d.isDisabled,h=d.isMulti,m=d.inputValue,g=d.placeholder,v=this.state,y=v.selectValue,b=v.focusedValue,x=v.isFocused;if(!this.hasValue()||!f)return m?null:e.createElement(c,(0,a.Z)({},u,{key:"placeholder",isDisabled:p,isFocused:x,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return y.map((function(n,l){var c=n===b,d="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(r,(0,a.Z)({},u,{components:{Container:i,Label:o,Remove:s},isFocused:c,isDisabled:p,key:d,index:l,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))}));if(m)return null;var w=y[0];return e.createElement(l,(0,a.Z)({},u,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,i=r.isDisabled,o=r.isLoading,s=this.state.isFocused;if(!this.isClearable()||!t||i||!this.hasValue()||o)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,(0,a.Z)({},n,{innerProps:l,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,i=r.isDisabled,o=r.isLoading,s=this.state.isFocused;return t&&o?e.createElement(t,(0,a.Z)({},n,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var i=this.commonProps,o=this.props.isDisabled,s=this.state.isFocused;return e.createElement(r,(0,a.Z)({},i,{isDisabled:o,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,(0,a.Z)({},n,{innerProps:o,isDisabled:r,isFocused:i}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,o=n.Menu,s=n.MenuList,l=n.MenuPortal,c=n.LoadingMessage,u=n.NoOptionsMessage,d=n.Option,f=this.commonProps,p=this.state.focusedOption,h=this.props,m=h.captureMenuScroll,g=h.inputValue,v=h.isLoading,y=h.loadingMessage,b=h.minMenuHeight,x=h.maxMenuHeight,w=h.menuIsOpen,E=h.menuPlacement,_=h.menuPosition,S=h.menuPortalTarget,C=h.menuShouldBlockScroll,O=h.menuShouldScrollIntoView,k=h.noOptionsMessage,L=h.onMenuScrollToTop,R=h.onMenuScrollToBottom;if(!w)return null;var P,M=function(n,r){var i=n.type,o=n.data,s=n.isDisabled,l=n.isSelected,c=n.label,u=n.value,h=p===o,m=s?void 0:function(){return t.onOptionHover(o)},g=s?void 0:function(){return t.selectOption(o)},v="".concat(t.getElementId("option"),"-").concat(r),y={id:v,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:l};return e.createElement(d,(0,a.Z)({},f,{innerProps:y,data:o,isDisabled:s,isSelected:l,key:v,label:c,type:i,value:u,isFocused:h,innerRef:h?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(n){if("group"===n.type){var o=n.data,s=n.options,l=n.index,c="".concat(t.getElementId("group"),"-").concat(l),u="".concat(c,"-heading");return e.createElement(r,(0,a.Z)({},f,{key:c,data:o,options:s,Heading:i,headingProps:{id:u,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return M(e,"".concat(l,"-").concat(e.index))})))}if("option"===n.type)return M(n,"".concat(n.index))}));else if(v){var A=y({inputValue:g});if(null===A)return null;P=e.createElement(c,f,A)}else{var T=k({inputValue:g});if(null===T)return null;P=e.createElement(u,f,T)}var D={minMenuHeight:b,maxMenuHeight:x,menuPlacement:E,menuPosition:_,menuShouldScrollIntoView:O},z=e.createElement(zo,(0,a.Z)({},f,D),(function(n){var r=n.ref,i=n.placerProps,l=i.placement,c=i.maxHeight;return e.createElement(o,(0,a.Z)({},f,D,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:v,placement:l}),e.createElement(Ta,{captureEnabled:m,onTopArrive:L,onBottomArrive:R,lockEnabled:C},(function(n){return e.createElement(s,(0,a.Z)({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":f.isMulti,id:t.getElementId("listbox")},isLoading:v,maxHeight:c,focusedOption:p}),P)})))}));return S||"fixed"===_?e.createElement(l,(0,a.Z)({},f,{appendTo:S,controlElement:this.controlRef,menuPlacement:E,menuPosition:_}),z):z}},{key:"renderFormField",value:function(){var t=this,n=this.props,r=n.delimiter,i=n.isDisabled,o=n.isMulti,a=n.name,s=n.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!i)return e.createElement(za,{name:a,onFocus:this.onValueInputFocus});if(a&&!i){if(o){if(r){var c=l.map((function(e){return t.getOptionValue(e)})).join(r);return e.createElement("input",{name:a,type:"hidden",value:c})}var u=l.length>0?l.map((function(n,r){return e.createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:a,type:"hidden",value:""});return e.createElement("div",null,u)}var d=l[0]?this.getOptionValue(l[0]):"";return e.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,i=n.focusedOption,o=n.focusedValue,s=n.isFocused,l=n.selectValue,c=this.getFocusableOptions();return e.createElement(la,(0,a.Z)({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:i,focusedValue:o,isFocused:s,selectValue:l,focusableOptions:c,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,i=t.SelectContainer,o=t.ValueContainer,s=this.props,l=s.className,c=s.id,u=s.isDisabled,d=s.menuIsOpen,f=this.state.isFocused,p=this.commonProps=this.getCommonProps();return e.createElement(i,(0,a.Z)({},p,{className:l,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:f}),this.renderLiveRegion(),e.createElement(n,(0,a.Z)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:f,menuIsOpen:d}),e.createElement(o,(0,a.Z)({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,(0,a.Z)({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=po(u),m={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return Ha(Ua(e,t))}(e,h):[],v=d?Va(Ua(e,h),"".concat(l,"-option")):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:b,focusedOptionId:qa(v,b),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var x=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},w=o,E=a&&s;return a&&!E&&(w={value:ko(p,h,h[0]||null),options:h,action:"initial-input-focus"},E=!s),"initial-input-focus"===(null==o?void 0:o.action)&&(w=null),ar(ar(ar({},m),x),{},{prevProps:e,ariaSelection:w,prevWasFocused:E})}}]),r}(e.Component);es.defaultProps=Ba;var ts=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ns(t){var n=t.defaultInputValue,r=void 0===n?"":n,i=t.defaultMenuIsOpen,o=void 0!==i&&i,a=t.defaultValue,s=void 0===a?null:a,l=t.inputValue,c=t.menuIsOpen,u=t.onChange,d=t.onInputChange,f=t.onMenuClose,p=t.onMenuOpen,h=t.value,m=Ni(t,ts),g=Fi((0,e.useState)(void 0!==l?l:r),2),v=g[0],y=g[1],b=Fi((0,e.useState)(void 0!==c?c:o),2),x=b[0],w=b[1],E=Fi((0,e.useState)(void 0!==h?h:s),2),_=E[0],S=E[1],C=(0,e.useCallback)((function(e,t){"function"==typeof u&&u(e,t),S(e)}),[u]),O=(0,e.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),y(void 0!==n?n:e)}),[d]),k=(0,e.useCallback)((function(){"function"==typeof p&&p(),w(!0)}),[p]),L=(0,e.useCallback)((function(){"function"==typeof f&&f(),w(!1)}),[f]),R=void 0!==l?l:v,P=void 0!==c?c:x,M=void 0!==h?h:_;return ar(ar({},m),{},{inputValue:R,menuIsOpen:P,onChange:C,onInputChange:O,onMenuClose:L,onMenuOpen:k,value:M})}var rs=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"],is=(0,e.forwardRef)((function(t,n){var r=function(t){var n=t.defaultOptions,r=void 0!==n&&n,i=t.cacheOptions,o=void 0!==i&&i,a=t.loadOptions;t.options;var s=t.isLoading,l=void 0!==s&&s,c=t.onInputChange,u=t.filterOption,d=void 0===u?null:u,f=Ni(t,rs),p=f.inputValue,h=(0,e.useRef)(void 0),m=(0,e.useRef)(!1),g=Fi((0,e.useState)(Array.isArray(r)?r:void 0),2),v=g[0],y=g[1],b=Fi((0,e.useState)(void 0!==p?p:""),2),x=b[0],w=b[1],E=Fi((0,e.useState)(!0===r),2),_=E[0],S=E[1],C=Fi((0,e.useState)(void 0),2),O=C[0],k=C[1],L=Fi((0,e.useState)([]),2),R=L[0],P=L[1],M=Fi((0,e.useState)(!1),2),A=M[0],T=M[1],D=Fi((0,e.useState)({}),2),z=D[0],F=D[1],N=Fi((0,e.useState)(void 0),2),I=N[0],j=N[1],B=Fi((0,e.useState)(void 0),2),G=B[0],U=B[1];o!==G&&(F({}),U(o)),r!==I&&(y(Array.isArray(r)?r:void 0),j(r)),(0,e.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var H=(0,e.useCallback)((function(e,t){if(!a)return t();var n=a(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}),[a]);(0,e.useEffect)((function(){!0===r&&H(x,(function(e){m.current&&(y(e||[]),S(!!h.current))}))}),[]);var V=(0,e.useCallback)((function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,c);if(!n)return h.current=void 0,w(""),k(""),P([]),S(!1),void T(!1);if(o&&z[n])w(n),k(n),P(z[n]),S(!1),T(!1);else{var r=h.current={};w(n),S(!0),T(!O),H(n,(function(e){m&&r===h.current&&(h.current=void 0,S(!1),k(n),P(e||[]),T(!1),F(e?ar(ar({},z),{},ir({},n,e)):z))}))}}),[o,H,O,z,c]),W=A?[]:x&&O?R:v||[];return ar(ar({},f),{},{options:W,isLoading:_||l,onInputChange:V,filterOption:d})}(t),i=ns(r);return e.createElement(es,(0,a.Z)({ref:n},i))})),os=is,as=ae(518),ss=ae.n(as),ls=ae(9233),cs=ae.n(ls);function us(){return us=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},us.apply(null,arguments)}var ds=ae(7290),fs=ae.n(ds);function ps(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){hs(e,t,n[t])}))}return e}function hs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ms(){return ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ms.apply(null,arguments)}const gs=t().forwardRef(((e,n)=>t().createElement("div",ms({ref:n},e))));function vs(){return vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vs.apply(null,arguments)}gs.displayName="InputComponent";var ys=ae(4436),bs=ae.n(ys);function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xs.apply(null,arguments)}var ws=ae(6091),Es=ae.n(ws),_s=ae(5635),Ss=ae.n(_s);function Cs(){return Cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cs.apply(null,arguments)}const Os=e=>{const{children:n,selectProps:r,removeProps:i}=e;return t().createElement(Es(),{tabIndex:-1,label:n,className:r.classes.multiValue,classes:{label:r.classes.multiValue__label},onDelete:i.onClick,deleteIcon:t().createElement(Ss(),Cs({},e.removeProps,{style:{height:"18px",width:"18px",color:"rgba(0,0,0,0.38)",marginRight:"8px"}}))})};Os.propTypes={children:m().node,isFocused:m().bool.isRequired,removeProps:m().shape({onClick:m().func.isRequired,onMouseDown:m().func.isRequired,onTouchEnd:m().func.isRequired}).isRequired,selectProps:m().object.isRequired};var ks=ae(3222),Ls=ae.n(ks),Rs=ae(4073),Ps=ae.n(Rs),Ms=ae(2436),As=ae.n(Ms),Ts=function(e,t){return Ts=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])},Ts(e,t)};"function"==typeof SuppressedError&&SuppressedError;var Ds=function(e){return"function"==typeof e},zs=function(){return"undefined"==typeof window},Fs=function(e){return e instanceof Element||e instanceof HTMLDocument},Ns=function(n){function r(t){var r=n.call(this,t)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var e=r.props,t=e.targetRef,n=e.observerOptions;if(!zs()){t&&t.current&&(r.targetRef.current=t.current);var i=r.getElement();i&&(r.observableElement&&r.observableElement===i||(r.observableElement=i,r.resizeObserver.observe(i,n)))}},r.getElement=function(){var e=r.props,t=e.querySelector,n=e.targetDomEl;if(zs())return null;if(t)return document.querySelector(t);if(n&&Fs(n))return n;if(r.targetRef&&Fs(r.targetRef.current))return r.targetRef.current;var i=(0,Ii.findDOMNode)(r);if(!i)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},r.createResizeHandler=function(e){var t=r.props,n=t.handleWidth,i=void 0===n||n,o=t.handleHeight,a=void 0===o||o,s=t.onResize;(i||a)&&e.forEach((function(e){var t=e&&e.contentRect||{},n=t.width,o=t.height;!r.skipOnMount&&!zs()&&function(e){var t=e.width,n=e.height;r.state.width===t&&r.state.height===n||r.state.width===t&&!a||r.state.height===n&&!i||(null==s||s(t,n),r.setState({width:t,height:n}))}({width:n,height:o}),r.skipOnMount=!1}))},r.getRenderType=function(){var t=r.props,n=t.render,i=t.children;return Ds(n)?"renderProp":Ds(i)?"childFunction":(0,e.isValidElement)(i)?"child":Array.isArray(i)?"childArray":"parent"};var i=t.skipOnMount,o=t.refreshMode,a=t.refreshRate,s=void 0===a?1e3:a,l=t.refreshOptions;return r.state={width:void 0,height:void 0},r.sizeRef={current:r.state},r.skipOnMount=i,r.targetRef=(0,e.createRef)(),r.observableElement=null,zs()||(r.resizeHandler=function(e,t,n,r){switch(t){case"debounce":return Ps()(e,n,r);case"throttle":return As()(e,n,r);default:return e}}(r.createResizeHandler,o,s,l),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}return 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}Ts(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(r,n),r.prototype.componentDidMount=function(){this.attachObserver()},r.prototype.componentDidUpdate=function(){this.attachObserver(),this.sizeRef.current=this.state},r.prototype.componentWillUnmount=function(){zs()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},r.prototype.render=function(){var n=this.props,r=n.render,i=n.children,o=n.nodeType,a=void 0===o?"div":o,s=this.state,l={width:s.width,height:s.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return null==r?void 0:r(l);case"childFunction":return null==i?void 0:i(l);case"child":var c=i;if(c.type&&"string"==typeof c.type){var u=function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(l,["targetRef"]);return(0,e.cloneElement)(c,u)}return(0,e.cloneElement)(c,l);case"childArray":return i.map((function(t){return!!t&&(0,e.cloneElement)(t,l)}));default:return t().createElement(a,null)}},r}(e.PureComponent),Is=ae(3627),js=ae.n(Is);const Bs=Wn((e=>({tooltip:e.tooltip,popper:{zIndex:1e4}})));function Gs(){return Gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gs.apply(null,arguments)}function Us(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Hs(e,t,n[t])}))}return e}function Hs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vs=n=>{let{children:r,value:i="",className:o,showOnExceededWidth:a=!0,showOnExceededHeight:s}=n,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["children","value","className","showOnExceededWidth","showOnExceededHeight"]);const c=Bs(),u=(0,e.useRef)(),[d,f]=(0,e.useState)(!1),p=()=>f(((e,t,n)=>e&&(t&&e.clientWidth<e.scrollWidth||n&&e.clientHeight<e.scrollHeight))(u.current,a,s));return(0,e.useEffect)(p,[s,a,i]),t().createElement(t().Fragment,null,t().createElement(Ns,{handleWidth:a,handleHeight:s,onResize:p,refreshMode:"debounce",refreshRate:100}),t().createElement(js(),Gs({ref:u,title:d?i:"",classes:Us({},c,{tooltip:o})},l),r))};function Ws(){return Ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ws.apply(null,arguments)}const qs=e=>{const{innerProps:n,innerRef:r,children:i,isFocused:o,isSelected:a,label:s,selectProps:{classes:l}}=e;return t().createElement(Ls(),Ws({className:Qn()(l.option,{[l["option--selected"]]:a}),ref:r,selected:o,component:"div"},n),t().createElement(Vs,{value:s},t().createElement("div",{className:l["option--item"]},i)))};function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$s.apply(null,arguments)}qs.propTypes={children:m().node,innerProps:m().shape({id:m().string.isRequired,key:m().string,onClick:m().func.isRequired,onMouseMove:m().func.isRequired,onMouseOver:m().func.isRequired,tabIndex:m().number.isRequired}).isRequired,innerRef:m().oneOfType([m().oneOf([null]),m().func,m().shape({current:m().any.isRequired})]),isFocused:m().bool.isRequired,isSelected:m().bool.isRequired,label:m().string,selectProps:m().shape({classes:m().shape({option:m().string,"option--selected":m().string})})};const Zs={ClearIndicator:e=>{const{innerProps:n,selectProps:{classes:r}}=e;return t().createElement(cs(),us({},n,{className:r.clearIndicator,size:"large"}),t().createElement(ss(),null))},Control:e=>{const{children:n,innerProps:r,innerRef:i,selectProps:{classes:o,TextFieldProps:a={}}}=e;return t().createElement(fs(),ms({variant:"standard",fullWidth:!0},a,{InputProps:ps({inputComponent:gs},a.InputProps,{inputProps:ps({className:o.control,ref:i,children:n},r,a.inputProps)})}))},DropdownIndicator:e=>{const{innerProps:n,selectProps:{classes:r}}=e;return t().createElement(cs(),vs({},n,{className:r.dropdownIndicator,size:"large"}),t().createElement(er(),null))},GroupHeading:e=>{const{children:n,selectProps:{classes:r}}=e;return t().createElement(A(),{variant:"subtitle2",className:Qn()(r.groupHeading)},n)},Menu:e=>{const{selectProps:{classes:n},innerProps:r,innerRef:i,getStyles:o,children:a}=e;return t().createElement(bs(),xs({ref:i,style:o("menu",e),className:n.menu},r),a)},MultiValue:Os,NoOptionsMessage:e=>{const{selectProps:{classes:n},children:r}=e;return t().createElement(A(),{color:"textSecondary",className:n.noOptionsMessage},r)},Option:qs,Placeholder:e=>{const{selectProps:{classes:n},children:r}=e;return t().createElement(A(),{color:"textSecondary",className:n.placeholder},r)},SingleValue:e=>{const{selectProps:{classes:n},innerProps:r,children:i}=e;return t().createElement(A(),$s({className:n.singleValue},r),i)},ValueContainer:e=>{const{selectProps:{classes:n},children:r,isMulti:i}=e;return t().createElement("div",{className:Qn()(n.valueContainer,{[n["valueContainer--multi"]]:i})},r)}};function Ys(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Xs=Wn((e=>({control:{display:"flex","&&":{padding:0},height:"auto"},valueContainer:{display:"flex",flexWrap:"nowrap",flex:1,alignItems:"center",overflow:"hidden",marginLeft:e.spacing(1)},"valueContainer--multi":{flexWrap:"wrap"},multiValue:{margin:e.spacing(.5,.5),maxWidth:"calc(100% - 8px)"},multiValue__label:{paddingRight:0,marginRight:12,maxWidth:"100%",overflow:"hidden"},noOptionsMessage:{padding:e.spacing(1,2)},singleValue:{fontSize:16,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},placeholder:{position:"absolute",left:6,bottom:10,fontSize:16},menu:{zIndex:40,marginTop:e.spacing(1)},clearIndicator:{},dropdownIndicator:{},groupHeading:{paddingLeft:"28px"},option:{fontWeight:400},"option--selected":{fontWeight:400},"option--item":{display:"block",width:"100%",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"pre"}})));function Ks(){return Ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ks.apply(null,arguments)}function Qs(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Js(e,t,n[t])}))}return e}function Js(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const el=e=>{function n(n){const{components:r,classes:i,error:o,TextFieldProps:a,innerRef:s}=n,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["components","classes","error","TextFieldProps","innerRef"]),c=Xs(),u=Qs({},Zs,r),d=((e,t)=>(0,w.union)(Object.keys(e),Object.keys(t)).reduce(((n,r)=>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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Ys(e,t,n[t])}))}return e}({},n,{[r]:Qn()(e[r],t[r])})),{}))(c,i);return t().createElement(e,Ks({ref:s,components:u,classes:d,TextFieldProps:Qs({},a,{error:o})},l))}return n.displayName=`withMuiSkin(${e.displayName||e.name})`,n.defaultProps={components:{},classes:{}},n},tl=el(os);var nl=(0,e.forwardRef)((function(t,n){var r=ns(t);return e.createElement(es,(0,a.Z)({ref:n},r))}));const rl=el(nl),il=()=>null;var ol=ae(1884),al=ae.n(ol);const sl=t().createContext(null);sl.displayName="PopupBoundariesContext";var ll=ae(1733),cl=ae.n(ll),ul=ae(5788),dl=ae.n(ul);const fl=({anchorEl:e,leftBackdropRef:t,rightBackdropRef:n,topBackdropRef:r,bottomBackdropRef:i,rafIdRef:o,lastResizeTimestamp:a=0})=>{if(e){if(Date.now()-a>100&&r.current&&t.current&&n.current&&i.current){const o=e.getBoundingClientRect();r.current.style.top="0",r.current.style.left="0",r.current.style.right="0",r.current.style.height=o.top+"px",t.current.style.top="0",t.current.style.left="0",t.current.style.width=o.left+"px",t.current.style.bottom="0",n.current.style.top="0",n.current.style.left=o.right+"px",n.current.style.right="0",n.current.style.bottom="0",i.current.style.top=o.bottom+"px",i.current.style.left="0",i.current.style.right="0",i.current.style.bottom="0",a=Date.now()}o.current=requestAnimationFrame((()=>fl({anchorEl:e,leftBackdropRef:t,rightBackdropRef:n,topBackdropRef:r,bottomBackdropRef:i,rafIdRef:o,lastResizeTimestamp:a})))}},pl=Wn({backdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:10},popper:{zIndex:1300}});function hl(){return hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hl.apply(null,arguments)}const ml=(0,e.forwardRef)(((n,r)=>{var i;let{open:o,anchorEl:a,className:s,modal:l=!0,excludeAnchorFromBackdrop:c=!0,onClose:u=w.identity}=n,d=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["open","anchorEl","className","modal","excludeAnchorFromBackdrop","onClose"]);const f=pl(),p=(0,e.useRef)(),h=(0,e.useRef)(),m=(0,e.useRef)(),g=(0,e.useRef)(),v=(0,e.useRef)(),y=rt();return(0,e.useEffect)((()=>{if(o&&l)return fl({anchorEl:a,leftBackdropRef:p,rightBackdropRef:h,topBackdropRef:m,bottomBackdropRef:g,rafIdRef:v}),()=>cancelAnimationFrame(v.current)}),[a,o,l]),t().createElement(t().Fragment,null,l&&o&&t().createElement(cl(),{container:document.body},c?t().createElement(t().Fragment,null,t().createElement("div",{ref:m,className:f.backdrop,onClick:u}),t().createElement("div",{ref:h,className:f.backdrop,onClick:u}),t().createElement("div",{ref:g,className:f.backdrop,onClick:u}),t().createElement("div",{ref:p,className:f.backdrop,onClick:u})):t().createElement("div",{className:f.backdrop,onClick:u})),t().createElement(dl(),hl({"data-mui-color-scheme":null==y||null===(i=y.palette)||void 0===i?void 0:i.mode,open:o,anchorEl:a},d,{className:Qn()(s,f.popper),ref:r})))}));ml.displayName="Popper";const gl=Wn({popper:{borderRadius:"4px",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)",backgroundColor:"#FFFFFF",margin:0,zIndex:1e4}});function vl(){return vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vl.apply(null,arguments)}const yl=n=>{const{selectProps:{inputRef:r,menuIsOpen:i,inputValue:o},innerRef:a,children:s,innerProps:l}=n,[c,u]=(0,e.useState)("id");(0,e.useEffect)((()=>{u(((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),""))())}),[o]);const d=gl(),f=(0,e.useContext)(sl),p=Boolean(null==f?void 0:f.element),h=p?f.element.clientWidth:window.innerWidth;return t().createElement(ml,{anchorEl:r.current,open:i,className:d.popper,key:c,modifiers:[{name:"preventOverflow",enabled:!0,options:{altAxis:!0,altBoundary:!0,tether:!1,boundary:p?f.element:document.body,padding:5}}],placement:"bottom-start"},t().createElement(bs(),vl({ref:a,style:{minWidth:Math.min((0,w.prop)("clientWidth",r.current),h),maxWidth:Math.min(521,h)}},l),s))};yl.propTypes={children:m().oneOfType([m().element,m().array]).isRequired,selectProps:m().shape({inputRef:m().object.isRequired,menuIsOpen:m().bool.isRequired,inputValue:m().string}).isRequired,innerRef:m().oneOfType([m().oneOf([null]),m().func,m().shape({current:m().any})]).isRequired,innerProps:m().object.isRequired};const bl=Wn((e=>({addLabel:{display:"flex",padding:"0 7px",height:"35px",alignItems:"center",fontSize:"13px",fontWeight:"500",color:e.palette.primary.main,cursor:"pointer",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",borderTop:"solid 1px rgba(0, 0, 0, 0.14)",backgroundColor:"rgba(0, 0, 0, 0.03)"},addIcon:{height:"18px",width:"18px",padding:"0 9px"}}))),xl=e=>{const{selectProps:{onCreate:n,createLabel:r,inputValue:i,components:o,canCreateOption:a},children:s}=e,l=bl();return t().createElement(yl,e,s,r&&!(0,w.prop)("Group",o)&&a()&&t().createElement("span",{className:l.addLabel,onClick:()=>n(i)},t().createElement(al(),{className:l.addIcon}),r))},wl=Wn({singleValue:{fontSize:"14px",lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:"17px"}});function El(){return El=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},El.apply(null,arguments)}const _l=e=>{const{selectProps:{menuIsOpen:n},innerProps:r,children:i}=e,o=wl();return!n&&t().createElement(A(),El({className:o.singleValue},r),i)};function Sl(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Cl(e,t,n[t])}))}return e}function Cl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}_l.propTypes={children:m().node,innerProps:m().object};const Ol=Wn({control:{height:"auto"},dropdownIndicator:{boxSizing:"content-box",transition:"transform .15s ease",padding:e=>(e.height-24)/2+"px 12px",cursor:"pointer",color:"rgba(0, 0, 0, 0.54)"},valueContainer:{marginLeft:"16px",width:0},formControl:{margin:0},filledInputRoot:{backgroundColor:"rgba(0, 0, 0, 0.03)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"},"&.focused":{backgroundColor:"rgba(0, 0, 0, 0.03)"}},filledInputUnderline:{"&:before":{display:"none"}},inputLabel:{color:"rgba(0,0,0,0.6)",fontSize:"14px",paddingLeft:"4px","&.shrink":{paddingLeft:"4px"}}}),kl={menu:e=>Sl({},e,{borderRadius:"0 0 4px 4px",backgroundColor:"#FFFFFFFF",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)",margin:0}),menuList:e=>Sl({},e,{maxHeight:"208px",padding:"8px 0"}),group:e=>Sl({},e,{padding:"0 0 8px 0"}),input:e=>Sl({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:"16px 0 0",padding:0}),option:e=>Sl({},e,{fontSize:"13px",lineHeight:"15px",height:"32px"})},Ll={menuList:e=>Sl({},e,{padding:0})},Rl={input:e=>Sl({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:0,padding:0})};function Pl(){return Pl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pl.apply(null,arguments)}function Ml(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Al(e,t,n[t])}))}return e}function Al(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tl=n=>{let{value:r,label:i,options:o,getOptions:a,createLabel:s,height:l=46,onChange:c=w.identity,onCreate:u,canCreateOption:d=()=>Boolean(u),onClear:f=w.identity,components:p={},textFieldInputRef:h,TextFieldProps:m,classes:g={}}=n,v=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["value","label","options","getOptions","createLabel","height","onChange","onCreate","canCreateOption","onClear","components","textFieldInputRef","TextFieldProps","classes"]);const y=Ol({height:l}),[b,x]=(0,e.useState)(!1),_=(0,e.useRef)(null),S=a?tl:rl,C=(0,w.prop)("ClearIndicator",p)?{}:{IndicatorSeparator:il,ClearIndicator:il},O=u?(e,t)=>{u(e,t),x(!1)}:void 0,k=(0,w.prop)("Group",p)?Ll:{},L=(0,w.isEmpty)(i)?Rl:{},R=Ml({},kl,k,L),P=Ml({},y,g);return t().createElement(S,Pl({placeholder:"",defaultOptions:!0},v,{value:(0,w.defaultTo)(null,r),loadOptions:a,options:o,cacheOptions:!0,onChange:c,onCreate:O,onClear:f,createLabel:s,canCreateOption:d,classes:P,styles:R,components:Ml({DropdownIndicator:rr,LoadingIndicator:il,SingleValue:_l,Menu:xl},C,p),menuPlacement:"auto",TextFieldProps:Ml({},m,{label:i,variant:"filled",size:"small",classes:Ml({},(0,w.prop)("classes",m),{root:Qn()(y.formControl,(0,w.path)(["classes","root"],m))}),inputProps:Ml({},(0,w.prop)("inputProps",m)),InputProps:Ml({},(0,w.prop)("InputProps",m),{classes:Ml({},(0,w.path)(["InputProps","classes"],m),{root:Qn()(y.filledInputRoot,(0,w.path)(["InputProps","classes","root"],m)),underline:Qn()({[y.filledInputUnderline]:(0,E.isEmptyValue)(r)},(0,w.path)(["InputProps","classes","underline"],m)),focused:Qn()("focused",(0,w.path)(["InputProps","classes","focused"],m))})}),InputLabelProps:Ml({},(0,w.prop)("InputLabelProps",m),{classes:Ml({},(0,w.path)(["InputLabelProps","classes"],m),{root:Qn()(y.inputLabel,(0,w.path)(["InputLabelProps","classes","root"],m)),shrink:Qn()("shrink",(0,w.path)(["InputLabelProps","classes","shrink"],m))}),shrink:!(0,E.isEmptyValue)(r)||void 0}),ref:h||_}),inputRef:h||_,menuIsOpen:b,onMenuOpen:()=>x(!0),onMenuClose:()=>x(!1)}))},Dl={BY_LABEL:ba({stringify:(0,w.prop)("label")})};var zl=ae(8018);const Fl="undefined"!=typeof window&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect,Nl=(t,n)=>{const r=e.useContext(t),{value:{current:i},version:{current:o},listeners:a}=r,s=n(i),[l,c]=e.useReducer(((e,t)=>{if(!t)return[i,s];if(t[0]<=o)return Il(e[1],s)?e:[i,s];try{if(Il(e[0],t[1]))return e;const r=n(t[1]);return Il(e[1],r)?e:[t[1],r]}catch(e){}return[e[0],e[1]]}),[i,s]);return Il(l[1],s)||c(void 0),Fl((()=>(a.push(c),()=>{const e=a.indexOf(c);a.splice(e,1)})),[a]),l[1]},Il="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};var jl=ae(4616);const Bl=t=>{const n=e.createContext({value:{current:t},version:{current:-1},listeners:[]});var r;return n.Provider=(r=n.Provider,t=>{const n=e.useRef(t.value),i=e.useRef(0),o=e.useRef();return o.current||(o.current={value:n,version:i,listeners:[]}),Fl((()=>{n.current=t.value,i.current+=1,(0,jl.unstable_runWithPriority)(jl.unstable_NormalPriority,(()=>{o.current.listeners.forEach((e=>{e([i.current,t.value])}))}))}),[t.value]),e.createElement(r,{value:o.current},t.children)}),delete n.Consumer,n},Gl=Bl({}),Ul=Bl({}),Hl=(Bl({}),e=>Nl(Ul,e));function Vl(){return Vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vl.apply(null,arguments)}const Wl=e=>{const n=Hl((e=>e.absoluteImagePath))||"";return t().createElement(zl.ZP,Vl({},e,{storagePath:(r=n,r.endsWith("/")?r:r+"/")}));var r},ql=Wn({dropDownSelector:{width:"276px"},entityTypeAvatar:{width:"20px",height:"20px",marginRight:"8px"},entityTypeLabel:{fontSize:"13px",overflow:"hidden",textOverflow:"ellipsis"},text:{overflow:"hidden"},container:{width:"100%"},valueContainer:{paddingLeft:"0","&:hover":{backgroundColor:"transparent"}}}),$l=({selectOption:e,data:n,type:r,isFocused:i,innerRef:o})=>{const a=ql(),s=(0,E.getLabel)(n.label),l="option"===r,c=l?()=>e(n):w.identity;return t().createElement(Ls(),{ref:o,selected:i,className:Qn()(a.container,{[a.valueContainer]:!l}),onClick:c,disableRipple:!l},t().createElement(Wl,{className:a.entityTypeAvatar,entityType:n}),t().createElement("div",{className:a.text},t().createElement(Vs,{value:s},t().createElement(A(),{className:a.entityTypeLabel},s))))},Zl=({value:e,options:n,onChange:r})=>{const i=ql(),o=n.length?"":L().text("There are no available entity types");return t().createElement(Tl,{height:40,className:i.dropDownSelector,value:e,filterOption:Dl.BY_LABEL,options:n,onChange:r,components:{Option:$l,SingleValue:$l},label:o})},Yl=Wn({header:{backgroundColor:"rgba(255, 255, 255, 1)",borderBottom:"1px solid rgba(0, 0, 0, 0.12)"},headerTitle:{fontSize:"18px"},divider:{marginLeft:"24px",marginRight:"16px",height:"42px",borderColor:"rgba(0, 0, 0, 0.12)"}}),Xl=({selectedEntityType:e,entityTypes:n,showEntityTypeSelector:r,onChangeEntityType:i})=>{const o=Yl();return t().createElement(Zn,{className:o.header},t().createElement(A(),{className:o.headerTitle},L().text("Data Model")),r&&t().createElement(t().Fragment,null,t().createElement(Xn(),{orientation:"vertical",className:o.divider}),t().createElement(Zl,{value:e,options:n,onChange:i})))},Kl=Wn({tableContainer:{boxSizing:"border-box",padding:"0 16px 0 16px",marginTop:"16px",overflow:"hidden",position:"absolute",top:0,bottom:0,left:0,right:0}});let Ql=function(e){return e.AttributeLabel="attributeLabel",e.Name="name",e.Type="type",e.Description="description",e.Sources="sources",e}({});const Jl=(0,e.createContext)({loadedAttributesSourcesRef:{current:{}},entityTypeUri:null}),ec=({children:n,entityTypeUri:r})=>{const i=(0,e.useRef)({}),o=(0,e.useMemo)((()=>({loadedAttributesSourcesRef:i,entityTypeUri:r})),[r]);return t().createElement(Jl.Provider,{value:o},n)};var tc=ae(3643),nc=ae.n(tc);const rc=Wn({attributesListHeader:{backgroundColor:"white",minHeight:"48px",borderBottom:"1px solid rgba(0, 0, 0, 0.05)",alignItems:"center",fontWeight:"500",lineHeight:"16px",paddingRight:"6px"},columnWithPadding:{paddingLeft:"16px"},rightSidePaneStyles:{fontSize:"12px"}}),ic=({columnsData:e,isRightSidePanel:n})=>{const r=rc();return t().createElement(nc(),{container:!0,className:r.attributesListHeader},e.map((({id:e,size:i,isWithPadding:o})=>t().createElement(nc(),{key:e,item:!0,xs:i,className:Qn()({[r.columnWithPadding]:o,[r.rightSidePaneStyles]:n})},(e=>{switch(e){case Ql.AttributeLabel:return L().text("Attribute label");case Ql.Name:return L().text("Name");case Ql.Type:return L().text("Type");case Ql.Description:return L().text("Description");case Ql.Sources:return L().text("Contributing sources");default:return""}})(e)))))};var oc=ae(4539),ac=ae.n(oc);function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sc.apply(null,arguments)}const lc=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",sc({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("mask",{id:"svg2452379238a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},t().createElement("path",{d:"M5.345 12l-.418-1.947H2.782L2.353 12h-.979l1.86-7.7h1.264L6.324 12h-.979zM3.85 5.026l-.89 4.202H4.75L3.85 5.026zM10.494 10.262c0 .63-.146 1.078-.44 1.342-.286.264-.763.396-1.43.396h-2.09V4.3h1.958c.653 0 1.13.132 1.43.396.308.264.462.704.462 1.32v.627c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.99zM9.427 5.917c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187H7.491v2.431h1.133a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.836zm.11 3.256c0-.242-.073-.433-.22-.572-.147-.147-.34-.22-.583-.22H7.491v2.794h1.232c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.173zM13.119 12c-.638 0-1.13-.154-1.474-.462-.337-.315-.506-.785-.506-1.408V6.17c0-.623.169-1.089.506-1.397.345-.315.836-.473 1.474-.473h1.342v.836h-1.452c-.271 0-.491.08-.66.242a.778.778 0 00-.253.583v4.378c0 .227.084.422.253.583.169.161.389.242.66.242h1.452V12h-1.342z",fill:"#000"})),t().createElement("g",{mask:"url(#svg2452379238a)"},t().createElement("path",{fill:"#000",fillOpacity:".54",d:"M0 0h16v16H0z"})))};function cc(){return cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cc.apply(null,arguments)}const uc=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",cc({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("mask",{id:"svg4130327632a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},t().createElement("path",{d:"M5.95 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2zM7.948 12v-1.1h1.1V12h-1.1zM13.651 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2z",fill:"#000"})),t().createElement("g",{mask:"url(#svg4130327632a)"},t().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function dc(){return dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dc.apply(null,arguments)}const fc=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",dc({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{d:"M2.11 12v-.825h1.331V5.169L2 5.741V4.85l1.331-.55h1.045v6.875h1.089V12H2.11zM5.968 11.032l1.65-2.508c.242-.367.403-.62.484-.759.08-.147.136-.29.165-.429.03-.14.044-.341.044-.605v-.77a.778.778 0 00-.253-.583c-.169-.161-.389-.242-.66-.242h-1.21V4.3h1.1c.638 0 1.126.158 1.463.473.345.308.517.774.517 1.397v.462c0 .367-.018.645-.055.836-.037.19-.103.37-.198.539-.088.169-.264.455-.528.858l-1.518 2.299h2.519V12h-3.52v-.968zM13.544 10.262c0 .609-.147 1.052-.44 1.331-.293.271-.77.407-1.43.407h-1.298v-.825h1.397c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.239c0-.242-.073-.433-.22-.572-.147-.147-.341-.22-.583-.22h-1.067v-.825h.957a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.902c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187h-1.298V4.3h1.166c.623 0 1.093.14 1.408.418.323.271.484.704.484 1.298v.693c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.924z",fill:"#000",fillOpacity:".541"}))};function pc(){return pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pc.apply(null,arguments)}const hc=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",pc({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{d:"M11.667 4H5C2.793 4 1 5.793 1 8s1.793 4 4 4h6.667c2.206 0 4-1.793 4-4s-1.794-4-4-4zm0 6.667H5a2.666 2.666 0 110-5.334h6.667a2.666 2.666 0 110 5.334zm0-4.667c-1.107 0-2 .893-2 2s.893 2 2 2c1.106 0 2-.893 2-2s-.894-2-2-2z",fill:"#000",fillOpacity:".541"}))};function mc(){return mc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mc.apply(null,arguments)}const gc=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",mc({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.667 12h2v-.667c0-.368.298-.666.666-.666H12c.368 0 .667.298.667.666V14a.667.667 0 01-.667.667H9.333A.667.667 0 018.667 14v-.667H5.333v-8H4a.667.667 0 01-.667-.666V2c0-.368.299-.667.667-.667h4c.368 0 .667.299.667.667v2.667A.667.667 0 018 5.333H6.667v2h2v-.666c0-.369.298-.667.666-.667H12c.368 0 .667.298.667.667v2.666A.667.667 0 0112 10H9.333a.667.667 0 01-.666-.667v-.666h-2V12z",fill:"#000",fillOpacity:".54"}))};function vc(){return vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vc.apply(null,arguments)}const yc=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",vc({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{d:"M7.992 1.333A6.663 6.663 0 001.332 8c0 3.68 2.98 6.667 6.66 6.667A6.67 6.67 0 0014.665 8a6.67 6.67 0 00-6.673-6.667zm.007 12A5.332 5.332 0 012.665 8 5.332 5.332 0 018 2.667 5.332 5.332 0 0113.332 8a5.332 5.332 0 01-5.333 5.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z",fill:"#000",fillOpacity:".54"}))};function bc(){return bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bc.apply(null,arguments)}const xc=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",bc({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("mask",{id:"svg1811967645a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},t().createElement("path",{d:"M5.463 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H2.03v-.836h1.562c.271 0 .491-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.059-.396-.176-.528-.11-.14-.279-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473h1.463v.836H3.714c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM9.136 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H5.704v-.836h1.562c.27 0 .49-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.06-.396-.176-.528-.11-.14-.28-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473H8.96v.836H7.387c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM12.255 12l-1.683-6.886V12H9.68V4.3h1.562l1.694 6.886V4.3h.89V12h-1.572z",fill:"#000"})),t().createElement("g",{mask:"url(#svg1811967645a)"},t().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function wc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ec=e=>{switch(e){case E.DataTypes.TYPE_NUMBER:case E.DataTypes.TYPE_LONG:return uc;case E.DataTypes.TYPE_INT:return fc;case E.DataTypes.TYPE_BOOLEAN:case E.DataTypes.TYPE_BOOLEAN_RADIO:return hc;case E.DataTypes.TYPE_NESTED:case E.DataTypes.TYPE_REFERENCE:return gc;case E.DataTypes.TYPE_DATE:case E.DataTypes.TYPE_TIMESTAMP:return yc;case E.DataTypes.TYPE_SSN:return xc;default:return lc}},_c=(0,w.pipe)((0,w.defaultTo)([]),(0,w.count)((0,w.complement)(E.isHiddenAttribute))),Sc=Wn({label:{margin:0,padding:0,overflow:"hidden",textOverflow:"ellipsis"},labelContainer:{position:"relative",padding:"9px 16px 9px 20px",boxSizing:"border-box",height:"100%",overflow:"hidden"},labelTittle:{margin:"0 0 4px 0",padding:0,display:"flex",alignItems:"center",fontSize:"13px"},icon:{marginRight:"8px"},description:{margin:0,padding:"0 0 0 24px",fontSize:"12px",lineHeight:"16px",color:"rgba(0, 0, 0, 0.54)",display:"-webkit-box",maxWidth:"100%",lineClamp:3,boxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},complex:{cursor:"pointer"}}),Cc=(0,e.memo)((({label:e,type:n,description:r,isComplex:i})=>{const o=Sc(),a=Ec(n);return t().createElement("div",{className:Qn()(o.labelContainer,{[o.complex]:i})},t().createElement("div",{className:o.labelTittle},t().createElement(a,{className:o.icon}),t().createElement(Vs,{value:e},t().createElement("p",{className:o.label},e))),t().createElement(Vs,{showOnExceededHeight:!0,value:r},t().createElement("p",{className:o.description},r)))}));Cc.displayName="LabelComponentWithDescription";const Oc=Wn({container:{display:"flex",height:"100%",position:"relative",marginLeft:"10px"},treeLine:{height:"100%",width:"12px"},treeLineBorder:{borderRight:"1px solid rgba(0, 114, 206, 0.3)"},treeLineLastElement:{width:"12px",height:"50%",borderRight:"1px solid rgba(0, 114, 206, 0.3)"},marker:{top:"50%",right:"-3px",position:"absolute",width:"4px",height:"1px",backgroundColor:"rgba(0, 114, 206, 0.3)"},rightSidePanelMarker:{top:"16px"},rightPanelTreeLineLastElement:{height:"16px"}}),kc=({level:e,isLastAttributeInGroup:n,parentLevelsWithoutElementsBelow:r,isRightSidePanel:i})=>{const o=Oc();return t().createElement("div",{className:o.container},Array(e).fill(null).map(((a,s)=>{const l=n&&s+1===e;return t().createElement("div",{"data-reltio-id":"tree-list-item",className:Qn()(o.treeLine,{[o.treeLineBorder]:!r.includes(s+1),[o.treeLineLastElement]:l,[o.rightPanelTreeLineLastElement]:i&&l}),key:s},t().createElement("div",{"data-reltio-id":"tree-list-item-marker",className:Qn()({[o.marker]:s+1===e,[o.rightSidePanelMarker]:i})}))})))};var Lc=ae(5743),Rc=ae.n(Lc);let Pc=function(e){return e[e.ICON_MODE=0]="ICON_MODE",e[e.TEXT_MODE=1]="TEXT_MODE",e[e.ERROR_MODE=2]="ERROR_MODE",e}({});function Mc(){return Mc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mc.apply(null,arguments)}const Ac=n=>{let{className:r,icon:i,avatarText:o,rootClasses:a}=n,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["className","icon","avatarText","rootClasses"]);const[l,c]=(0,e.useState)(null);(0,e.useEffect)((()=>{c(i?Pc.ICON_MODE:Pc.TEXT_MODE)}),[i,o]);const u=()=>{c(Pc.ERROR_MODE)};switch(l){case Pc.ICON_MODE:return t().createElement(Rc(),Mc({className:Qn()(r,null==a?void 0:a.iconRoot),src:i,onError:u},s));case Pc.TEXT_MODE:case Pc.ERROR_MODE:return t().createElement(Rc(),Mc({className:Qn()(r,null==a?void 0:a.textRoot)},s),o);default:return null}},Tc=({sourceType:e,className:n,classes:r})=>{const i=Hl((e=>e.metadata)),{uri:o,icon:a}=(0,E.findSourceSystemByUri)(i,e)||{},s=o?(0,E.getSourceSystemLabel)(i,o)[0]:"",l=a?(0,E.getAbsoluteImageUrl)("https://s3.amazonaws.com/reltio.images/api",a):null;return t().createElement(Ac,{className:n,avatarText:s,icon:l,variant:"square",rootClasses:r})},Dc=Wn((e=>({tooltip:e.tooltip,wrapper:{lineHeight:0}})));function zc(){return zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zc.apply(null,arguments)}const Fc=n=>{const r=(0,e.forwardRef)(((e,r)=>{let{tooltipTitle:i,tooltipPlacement:o,showForDisabled:a=!1,tooltipClassName:s}=e,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["tooltipTitle","tooltipPlacement","showForDisabled","tooltipClassName"]);const c=Dc();return i?t().createElement(js(),{ref:r,title:i,placement:o||"bottom",disableFocusListener:!0,disableTouchListener:!0,classes:{tooltip:Qn()(c.tooltip,s)},PopperProps:{modifiers:[{name:"preventOverflow",options:{altAxis:!0}}]}},(e=>e?t().createElement("span",{ref:r,className:c.wrapper},t().createElement(n,l)):t().createElement(n,zc({ref:r},l)))(a)):t().createElement(n,zc({ref:r},l))}));return r.displayName="WithTooltip",r};var Nc=ae(2600),Ic=ae.n(Nc);const jc=Wn((e=>({sourcesContainer:{padding:"10px 10px 0 16px",color:"rgba(0, 0, 0, 0.87)"},source:{padding:"0 0 10px 0",margin:0},chipContainer:{position:"relative",top:"-2px",height:"19px",marginLeft:"6px",backgroundColor:"white",borderColor:e.palette.primary.main},chipLabel:{paddingLeft:"6px",paddingRight:"6px",fontSize:"13px",color:e.palette.primary.main},sourceContainer:{display:"flex"},sourceIcon:{height:"16px",width:"16px",marginRight:"4px"},sourceSystemRowSkeleton:{width:"55px",height:"20px","&:last-child":{marginBottom:"10px"}}}))),Bc=Fc(Es()),Gc=(0,e.memo)((({attributeUri:e,sourcesData:n,parents:r})=>{const i=jc(),{sourcesByAttributeName:o}=n,a=(0,E.attributeUriToSearchUri)(e,r),{sources:s=[],isLoading:l}=o[a]||{},[c,u]=(0,w.splitAt)(2,s),d=u.map(((e,n)=>t().createElement("div",{key:n},e)));return l?t().createElement("div",{className:i.sourcesContainer},t().createElement(Ic(),{"data-reltio-id":"source-systems-row-skeleton",className:i.sourceSystemRowSkeleton}),t().createElement(Ic(),{"data-reltio-id":"source-systems-row-skeleton",className:i.sourceSystemRowSkeleton})):t().createElement("div",{className:i.sourcesContainer},c.map(((e,n)=>{const r=`configuration/sources/${e}`;return t().createElement("div",{className:i.sourceContainer,key:n},t().createElement(Tc,{className:i.sourceIcon,sourceType:r}),t().createElement("p",{className:i.source},e),!!u.length&&n===c.length-1&&t().createElement(Bc,{"data-reltio-id":"sources-chip",tooltipTitle:d,label:`+ ${u.length}`,variant:"outlined",classes:{root:i.chipContainer,label:i.chipLabel}}))})))}));Gc.displayName="AttributeSources";const Uc=Wn({attributeTypeContainer:{display:"flex",alignItems:"center",paddingRight:"16px"},text:{marginLeft:"16px",overflow:"hidden",textOverflow:"ellipsis"},icon:{flexShrink:0}}),Hc=(0,e.memo)((({type:e})=>{const n=Uc(),r=Ec(e);return t().createElement("div",{className:n.attributeTypeContainer},t().createElement(r,{className:n.icon}),t().createElement(Vs,{value:e},t().createElement("p",{className:n.text},e)))}));Hc.displayName="AttributeTypeComponent";const Vc=Wn({basicCellStyles:{paddingRight:"16px",overflow:"hidden",textOverflow:"ellipsis"}}),Wc=(0,e.memo)((({value:e,className:n})=>{const r=Vc();return t().createElement(Vs,{value:e},t().createElement("p",{className:Qn()(r.basicCellStyles,n)},e))}));Wc.displayName="TableBasicCell";const qc="rgba(0, 0, 0, 0.05)",$c=`1px solid ${qc}`,Zc=Wn({container:{width:"100%"},expandIcon:{position:"absolute",opacity:"0.54",cursor:"pointer",top:"calc(50% - 12px)"},expandIconNormal:{transform:"rotate(-90deg)"},expandIconRotated:{transform:"rotate(0)"},attributeRow:{position:"relative",minHeight:"48px",width:"100%",display:"flex",alignItems:"center",fontSize:"13px",lineHeight:"15px",backgroundColor:"white"},divider:{width:"100%",borderColor:qc},label:{position:"relative",paddingLeft:"36px",paddingRight:"16px",overflow:"hidden",textOverflow:"ellipsis"},labelContainer:{display:"flex",alignItems:"center",minHeight:"48px",alignSelf:"stretch",position:"relative"},sourcesContainer:{alignSelf:"stretch",alignContent:"start",minHeight:"36px",borderLeft:$c},rightSidePanelMinHeight:{minHeight:"36px"},isComplex:{cursor:"pointer"},rightSidePanelExpandIconPosition:{top:"6px"},attributeRowBorder:{borderLeft:$c,borderRight:$c}}),Yc=({attributeNode:n,level:r,attributesGroupLength:i,index:o,isParentLastInGroup:a,parentLevelsWithoutElementsBelow:s,columnsData:l,isRightSidePanel:c,sourcesData:u,parents:d,shouldCollapse:f})=>{const{label:p,description:h,name:m,children:g,analyticsAttributes:v,shouldExpand:y}=n,[b,x]=(0,e.useState)(!0),[S,O]=(0,e.useState)(!1),k=(0,E.isComplexAttribute)(n),L=Zc();(0,e.useEffect)((()=>{x(f||!y)}),[f,y]);const R=(0,_.useSelector)(C().selectors.getMetadata),P=((e,t)=>{if(null!=e&&e.includes("/attributeTypes/")){const n=t.attributeTypes.find((0,w.propEq)("uri",e));return(null==n?void 0:n.valueType)||""}return e})(n.type,R),M=o+1===i;a&&s.push(r-1);const A=[...g||[],...c?[]:(null==v?void 0:v.filter(E.isReadableAttribute))||[]],T=d.concat({name:m,label:p}),D=(0,e.useCallback)((e=>{switch(e){case Ql.Name:return t().createElement(Wc,{value:m});case Ql.Type:return t().createElement(Hc,{type:P});case Ql.Description:return t().createElement(Wc,{value:h});case Ql.Sources:return t().createElement(Gc,{attributeUri:n.uri,sourcesData:u,parents:d});default:return null}}),[n.uri,P,h,m,d,u]),z=(0,w.find)((0,w.propEq)("id",Ql.AttributeLabel),l),F=(0,e.useMemo)((()=>(0,w.pipe)((0,w.reject)((({id:e})=>e===Ql.AttributeLabel)),(0,w.map)((({id:e,size:n})=>t().createElement(nc(),{key:e,item:!0,xs:n,className:Qn()({[L.sourcesContainer]:e===Ql.Sources})},D(e)))))(l)),[l,D,L.sourcesContainer]);return t().createElement(nc(),{container:!0,className:Qn()(L.attributeRow,{[L.rightSidePanelMinHeight]:c,[L.attributeRowBorder]:0===r&&!c}),"data-reltio-id":`level-${r}-row-${o}`},!!z&&t().createElement(nc(),{item:!0,xs:z.size,className:Qn()(L.labelContainer,{[L.rightSidePanelMinHeight]:c}),onClick:()=>{y&&O(!0),x((e=>!e))}},k&&t().createElement(er(),{"data-reltio-id":"expand-icon",className:Qn()(L.expandIcon,{[L.rightSidePanelExpandIconPosition]:c,[L.expandIconNormal]:b,[L.expandIconRotated]:!b}),style:{left:12*(r+1)+"px"}}),t().createElement(kc,{isRightSidePanel:c,level:r,isLastAttributeInGroup:M,parentLevelsWithoutElementsBelow:s}),c?t().createElement(Cc,{label:p,type:P,description:h,isComplex:k}):t().createElement(Wc,{value:p,className:Qn()(L.label,{[L.isComplex]:k})})),F,t().createElement(Xn(),{className:L.divider}),k&&t().createElement(ac(),{in:!b,className:L.container,mountOnEnter:!0,unmountOnExit:!0},t().createElement(au,{isRightSidePanel:c,columnsData:l,key:r+1,attributeNodes:A,level:r+1,isParentLastInGroup:M,parentLevelsWithoutElementsBelow:[...s],parents:T,shouldCollapse:S})))},Xc=new Promise((()=>{})),Kc=({cancelPrevious:t=!0,cancelOnUnmount:n=!0}={})=>{const r=(0,e.useRef)(w.identity),i=()=>r.current();return(0,e.useEffect)((()=>()=>{n&&i()}),[]),(0,e.useCallback)((e=>(t&&i(),new Promise(((t,n)=>{r.current=()=>n("canceled"),e.then(t,n)})).catch((function(e){if("canceled"===e)return Xc;throw e})))),[])};var Qc=ae(4176);const Jc=Wn((()=>({errorBlock:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",minHeight:"58px",left:0,right:0,width:"calc(100% - 64px)",maxWidth:"1280px",margin:"0 auto",zIndex:1e4}})));function eu(){return eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eu.apply(null,arguments)}const tu=Qc.ZP.addError,nu=n=>{let{showErrorFromStore:r}=n,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["showErrorFromStore"]);const o=Jc(),a=(c="errorSet",Nl(Gl,(e=>e[c]))),s=Hl((e=>e.autoCloseInterval)),l=Hl((e=>e.uiError));var c;return(0,e.useEffect)((()=>{l&&r&&(nu.addError({title:L().text("Error"),message:l}),a(null))}),[a,l,r]),t().createElement(cl(),{container:document.body},t().createElement(Qc.ZP,eu({classes:{errorBlock:Qn()(o.errorBlock,(0,w.path)(["classes","errorBlock"],i))},autoCloseInterval:s},i)))};nu.addError=tu;const ru=(e,t)=>{const{title:n=L().text("Error"),message:r,defaultMessage:i}=t||{};console.warn(e),nu.addError({title:n,message:r||(0,E.getRequestErrorMessage)(e,i)})};function iu(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){ou(e,t,n[t])}))}return e}function ou(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const au=({attributeNodes:n,level:r,isParentLastInGroup:i,parentLevelsWithoutElementsBelow:o=[],columnsData:a,isRightSidePanel:s,parents:l=[],shouldCollapse:c})=>{const u=((t,n)=>{const{loadedAttributesSourcesRef:r,entityTypeUri:i}=(()=>{const t=(0,e.useContext)(Jl);if(void 0===t)throw new Error("AttributesTableSources must be used within a AttributesTableSourcesProvider");return t})(),o=Kc(),[a,s]=(0,e.useState)({}),l=(0,e.useRef)(null);(0,e.useEffect)((()=>(l.current=new AbortController,()=>{l.current.abort()})),[]);const c=(0,e.useCallback)((async(e,t)=>{const n=(0,w.reduce)(((e,t)=>iu({},e,{[t]:{isLoading:!0}})),{},e);s((e=>iu({},e,n)));try{const n=await o((0,E.getDQChartsData)({entityTypeUri:i,attributes:e,dataLevel:E.DQDataLevel.ATTRIBUTE_TYPE,metrics:[E.DQMetric.CROSSWALK_ANALYSIS]},l.current.signal));if("statistic"in n){const e=(0,w.map)((e=>({sources:Object.keys(e.crosswalkAnalysis.data),isLoading:!1})),n.statistic);s((t=>iu({},t,e))),Object.assign(t,e)}}catch(e){const t=(0,w.map)((0,w.assoc)("isLoading",!1),n);s(t),ru(e,{defaultMessage:L().text("Something went wrong while loading the contributing sources")})}}),[]);return(0,e.useEffect)((()=>{if(!i||!t.length)return;const e=t.map((({uri:e})=>(0,E.attributeUriToSearchUri)(e,n))),o=r.current,[a,l]=(0,w.partition)((0,w.includes)(w.__,(0,w.keys)(o)),e);if(l.length||(0,E.isEmptyValue)(o)){if(a.length){const e=(0,w.pick)(a,o);s(e)}l.length&&c(l,o)}else s(o)}),[]),{sourcesByAttributeName:a}})(n,l);return t().createElement(t().Fragment,null,n.map(((e,d)=>t().createElement(Yc,{sourcesData:u,isRightSidePanel:s,columnsData:a,key:e.uri,attributeNode:e,level:r,index:d,attributesGroupLength:n.length,isParentLastInGroup:i,parentLevelsWithoutElementsBelow:o,parents:l,shouldCollapse:c}))))},su=Wn({attributesListContainer:{height:"100%",overflow:"auto"}}),lu=({columnsData:e,attributeNodesList:n,isRightSidePanel:r,metadataTypeUri:i})=>{const o=su(),a=(0,E.isEntityTypeUri)(i)?i:null;return t().createElement(ec,{entityTypeUri:a},t().createElement(ic,{columnsData:e,isRightSidePanel:r}),t().createElement("div",{className:o.attributesListContainer},t().createElement(au,{attributeNodes:n,level:0,columnsData:e,isRightSidePanel:r})))},cu=[{id:Ql.AttributeLabel,size:3,isWithPadding:!0},{id:Ql.Name,size:2},{id:Ql.Type,size:2},{id:Ql.Description,size:5}],uu=({entityType:e})=>{const n=Kl(),r=(0,_.useSelector)(C().selectors.getMetadata),i=e?(0,E.getAllAttributeTypesTree)(r,e):[];return t().createElement("div",{key:null==e?void 0:e.uri,className:n.tableContainer},t().createElement(lu,{columnsData:cu,attributeNodesList:i}))},{createElement:du,createContext:fu,createRef:pu,forwardRef:hu,useCallback:mu,useContext:gu,useEffect:vu,useImperativeHandle:yu,useLayoutEffect:bu,useMemo:xu,useRef:wu,useState:Eu}=e,_u=e["useId".toString()],Su=bu,Cu=fu(null);Cu.displayName="PanelGroupContext";const Ou=Su,ku="function"==typeof _u?_u:()=>null;let Lu=0;function Ru(e=null){const t=ku(),n=wu(e||t||null);return null===n.current&&(n.current=""+Lu++),null!=e?e:n.current}function Pu({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:a,maxSize:s,minSize:l,onCollapse:c,onExpand:u,onResize:d,order:f,style:p,tagName:h="div",...m}){const g=gu(Cu);if(null===g)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:v,expandPanel:y,getPanelSize:b,getPanelStyle:x,groupId:w,isPanelCollapsed:E,reevaluatePanelConstraints:_,registerPanel:S,resizePanel:C,unregisterPanel:O}=g,k=Ru(a),L=wu({callbacks:{onCollapse:c,onExpand:u,onResize:d},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:s,minSize:l},id:k,idIsFromProps:void 0!==a,order:f});wu({didLogMissingDefaultSizeWarning:!1}),Ou((()=>{const{callbacks:e,constraints:t}=L.current,o={...t};L.current.id=k,L.current.idIsFromProps=void 0!==a,L.current.order=f,e.onCollapse=c,e.onExpand=u,e.onResize=d,t.collapsedSize=n,t.collapsible=r,t.defaultSize=i,t.maxSize=s,t.minSize=l,o.collapsedSize===t.collapsedSize&&o.collapsible===t.collapsible&&o.maxSize===t.maxSize&&o.minSize===t.minSize||_(L.current,o)})),Ou((()=>{const e=L.current;return S(e),()=>{O(e)}}),[f,k,S,O]),yu(o,(()=>({collapse:()=>{v(L.current)},expand:e=>{y(L.current,e)},getId:()=>k,getSize:()=>b(L.current),isCollapsed:()=>E(L.current),isExpanded:()=>!E(L.current),resize:e=>{C(L.current,e)}})),[v,y,b,E,k,C]);const R=x(L.current,i);return du(h,{...m,children:e,className:t,id:a,style:{...R,...p},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":w,"data-panel-id":k,"data-panel-size":parseFloat(""+R.flexGrow).toFixed(1)})}const Mu=hu(((e,t)=>du(Pu,{...e,forwardedRef:t})));Pu.displayName="Panel",Mu.displayName="forwardRef(Panel)";let Au=null,Tu=null;function Du(e,t){const n=function(e,t){if(t){const e=!!(t&$u),n=!!(t&Zu);if(t&Wu)return e?"se-resize":n?"ne-resize":"e-resize";if(t&qu)return e?"sw-resize":n?"nw-resize":"w-resize";if(e)return"s-resize";if(n)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,t);Au!==n&&(Au=n,null===Tu&&(Tu=document.createElement("style"),document.head.appendChild(Tu)),Tu.innerHTML=`*{cursor: ${n}!important;}`)}function zu(e){return"keydown"===e.type}function Fu(e){return e.type.startsWith("pointer")}function Nu(e){return e.type.startsWith("mouse")}function Iu(e){if(Fu(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(Nu(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}const ju=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Bu(e){const t=getComputedStyle(e);return"fixed"===t.position||!("auto"===t.zIndex||"static"===t.position&&!function(e){var t;const n=getComputedStyle(null!==(t=Vu(e))&&void 0!==t?t:e).display;return"flex"===n||"inline-flex"===n}(e))||+t.opacity<1||"transform"in t&&"none"!==t.transform||"webkitTransform"in t&&"none"!==t.webkitTransform||"mixBlendMode"in t&&"normal"!==t.mixBlendMode||"filter"in t&&"none"!==t.filter||"webkitFilter"in t&&"none"!==t.webkitFilter||"isolation"in t&&"isolate"===t.isolation||!!ju.test(t.willChange)||"touch"===t.webkitOverflowScrolling}function Gu(e){let t=e.length;for(;t--;){const n=e[t];if(ld(n,"Missing node"),Bu(n))return n}return null}function Uu(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Hu(e){const t=[];for(;e;)t.push(e),e=Vu(e);return t}function Vu(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const Wu=1,qu=2,$u=4,Zu=8,Yu="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}();let Xu=[],Ku=!1,Qu=new Map,Ju=new Map;const ed=new Set;function td(e){const{target:t}=e,{x:n,y:r}=Iu(e);Ku=!0,id({target:t,x:n,y:r}),ad(),Xu.length>0&&(sd("down",e),e.preventDefault(),e.stopPropagation())}function nd(e){const{x:t,y:n}=Iu(e);if(!Ku){const{target:r}=e;id({target:r,x:t,y:n})}sd("move",e),od(),Xu.length>0&&e.preventDefault()}function rd(e){const{target:t}=e,{x:n,y:r}=Iu(e);Ju.clear(),Ku=!1,Xu.length>0&&e.preventDefault(),sd("up",e),id({target:t,x:n,y:r}),od(),ad()}function id({target:e,x:t,y:n}){Xu.splice(0);let r=null;e instanceof HTMLElement&&(r=e),ed.forEach((e=>{const{element:i,hitAreaMargins:o}=e,a=i.getBoundingClientRect(),{bottom:s,left:l,right:c,top:u}=a,d=Yu?o.coarse:o.fine;if(t>=l-d&&t<=c+d&&n>=u-d&&n<=s+d){if(null!==r&&i!==r&&!i.contains(r)&&!r.contains(i)&&function(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Hu(e),b:Hu(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;ld(r,"Stacking order can only be calculated for elements with a common ancestor");const i=Uu(Gu(n.a)),o=Uu(Gu(n.b));if(i===o){const e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)};let i=e.length;for(;i--;){const n=e[i];if(n===t.a)return 1;if(n===t.b)return-1}}return Math.sign(i-o)}(r,i)>0){let e=r,t=!1;for(;e&&!e.contains(i);){if(f=e.getBoundingClientRect(),p=a,!0?f.x<p.x+p.width&&f.x+f.width>p.x&&f.y<p.y+p.height&&f.y+f.height>p.y:f.x<=p.x+p.width&&f.x+f.width>=p.x&&f.y<=p.y+p.height&&f.y+f.height>=p.y){t=!0;break}e=e.parentElement}if(t)return}Xu.push(e)}var f,p}))}function od(){let e=!1,t=!1;Xu.forEach((n=>{const{direction:r}=n;"horizontal"===r?e=!0:t=!0}));let n=0;Ju.forEach((e=>{n|=e})),e&&t?Du("intersection",n):e?Du("horizontal",n):t?Du("vertical",n):null!==Tu&&(document.head.removeChild(Tu),Au=null,Tu=null)}function ad(){Qu.forEach(((e,t)=>{const{body:n}=t;n.removeEventListener("contextmenu",rd),n.removeEventListener("pointerdown",td),n.removeEventListener("pointerleave",nd),n.removeEventListener("pointermove",nd)})),window.removeEventListener("pointerup",rd),window.removeEventListener("pointercancel",rd),ed.size>0&&(Ku?(Xu.length>0&&Qu.forEach(((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("contextmenu",rd),n.addEventListener("pointerleave",nd),n.addEventListener("pointermove",nd))})),window.addEventListener("pointerup",rd),window.addEventListener("pointercancel",rd)):Qu.forEach(((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("pointerdown",td,{capture:!0}),n.addEventListener("pointermove",nd))})))}function sd(e,t){ed.forEach((n=>{const{setResizeHandlerState:r}=n,i=Xu.includes(n);r(e,i,t)}))}function ld(e,t){if(!e)throw console.error(t),Error(t)}const cd=10;function ud(e,t,n=cd){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function dd(e,t,n=cd){return 0===ud(e,t,n)}function fd(e,t,n){return 0===ud(e,t,n)}function pd({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];ld(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:o,maxSize:a=100,minSize:s=0}=r;return ud(n,s)<0&&(n=o&&ud(n,(i+s)/2)<0?i:s),n=Math.min(a,n),parseFloat(n.toFixed(cd))}function hd({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(fd(e,0))return t;const a=[...t],[s,l]=r;ld(null!=s,"Invalid first pivot index"),ld(null!=l,"Invalid second pivot index");let c=0;if("keyboard"===o){{const r=e<0?l:s,i=n[r];ld(i,`Panel constraints not found for index ${r}`);const{collapsedSize:o=0,collapsible:a,minSize:c=0}=i;if(a){const n=t[r];if(ld(null!=n,`Previous layout not found for panel index ${r}`),fd(n,o)){const t=c-n;ud(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{const r=e<0?s:l,i=n[r];ld(i,`No panel constraints found for index ${r}`);const{collapsedSize:o=0,collapsible:a,minSize:c=0}=i;if(a){const n=t[r];if(ld(null!=n,`Previous layout not found for panel index ${r}`),fd(n,c)){const t=n-o;ud(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{const r=e<0?1:-1;let i=e<0?l:s,o=0;for(;;){const e=t[i];if(ld(null!=e,`Previous layout not found for panel index ${i}`),o+=pd({panelConstraints:n,panelIndex:i,size:100})-e,i+=r,i<0||i>=n.length)break}const a=Math.min(Math.abs(e),Math.abs(o));e=e<0?0-a:a}{let r=e<0?s:l;for(;r>=0&&r<n.length;){const i=Math.abs(e)-Math.abs(c),o=t[r];ld(null!=o,`Previous layout not found for panel index ${r}`);const s=pd({panelConstraints:n,panelIndex:r,size:o-i});if(!fd(o,s)&&(c+=o-s,a[r]=s,c.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?r--:r++}}if(function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!fd(e[n],t[n],undefined))return!1;return!0}(i,a))return i;{const r=e<0?l:s,i=t[r];ld(null!=i,`Previous layout not found for panel index ${r}`);const o=i+c,u=pd({panelConstraints:n,panelIndex:r,size:o});if(a[r]=u,!fd(u,o)){let t=o-u,r=e<0?l:s;for(;r>=0&&r<n.length;){const i=a[r];ld(null!=i,`Previous layout not found for panel index ${r}`);const o=pd({panelConstraints:n,panelIndex:r,size:i+t});if(fd(i,o)||(t-=o-i,a[r]=o),fd(t,0))break;e>0?r--:r++}}}return fd(a.reduce(((e,t)=>t+e),0),100)?a:i}function md({layout:e,panelsArray:t,pivotIndices:n}){let r=0,i=100,o=0,a=0;const s=n[0];return ld(null!=s,"No pivot index found"),t.forEach(((e,t)=>{const{constraints:n}=e,{maxSize:l=100,minSize:c=0}=n;t===s?(r=c,i=l):(o+=c,a+=l)})),{valueMax:Math.min(i,100-o),valueMin:Math.max(r,100-a),valueNow:e[s]}}function gd(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function vd(e,t,n=document){const r=gd(e,n).findIndex((e=>e.getAttribute("data-panel-resize-handle-id")===t));return null!=r?r:null}function yd(e,t,n){const r=vd(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function bd(e,t=document){var n;if(t instanceof HTMLElement&&(null==t||null===(n=t.dataset)||void 0===n?void 0:n.panelGroupId)==e)return t;return t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`)||null}function xd(e,t=document){return t.querySelector(`[data-panel-resize-handle-id="${e}"]`)||null}function wd(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Ed(e,t){const n="horizontal"===e,{x:r,y:i}=Iu(t);return n?r:i}function _d(e,t,n){t.forEach(((t,r)=>{const i=e[r];ld(i,`Panel data not found for index ${r}`);const{callbacks:o,constraints:a,id:s}=i,{collapsedSize:l=0,collapsible:c}=a,u=n[s];if(null==u||t!==u){n[s]=t;const{onCollapse:e,onExpand:r,onResize:i}=o;i&&i(t,u),c&&(e||r)&&(!r||null!=u&&!dd(u,l)||dd(t,l)||r(),!e||null!=u&&dd(u,l)||!dd(t,l)||e())}}))}function Sd(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function Cd(e){try{if("undefined"==typeof localStorage)throw new Error("localStorage not supported in this environment");e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)}}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function Od(e){return`react-resizable-panels:${e}`}function kd(e){return e.map((e=>{const{constraints:t,id:n,idIsFromProps:r,order:i}=e;return r?n:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)})).sort(((e,t)=>e.localeCompare(t))).join(",")}function Ld(e,t){try{const n=Od(e),r=t.getItem(n);if(r){const e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function Rd(e,t,n,r,i){var o;const a=Od(e),s=kd(t),l=null!==(o=Ld(e,i))&&void 0!==o?o:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(a,JSON.stringify(l))}catch(e){console.error(e)}}function Pd({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce(((e,t)=>e+t),0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map((e=>`${e}%`)).join(", ")}`);if(!fd(r,100))for(let e=0;e<t.length;e++){const t=n[e];ld(null!=t,`No layout data found for index ${e}`);const i=100/r*t;n[e]=i}let i=0;for(let e=0;e<t.length;e++){const r=n[e];ld(null!=r,`No layout data found for index ${e}`);const o=pd({panelConstraints:t,panelIndex:e,size:r});r!=o&&(i+=r-o,n[e]=o)}if(!fd(i,0))for(let e=0;e<t.length;e++){const r=n[e];ld(null!=r,`No layout data found for index ${e}`);const o=pd({panelConstraints:t,panelIndex:e,size:r+i});if(r!==o&&(i-=o-r,n[e]=o,fd(i,0)))break}return n}const Md={getItem:e=>(Cd(Md),Md.getItem(e)),setItem:(e,t)=>{Cd(Md),Md.setItem(e,t)}},Ad={};function Td({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:a=null,keyboardResizeBy:s=null,storage:l=Md,style:c,tagName:u="div",...d}){const f=Ru(o),p=wu(null),[h,m]=Eu(null),[g,v]=Eu([]),y=wu({}),b=wu(new Map),x=wu(0),w=wu({autoSaveId:e,direction:r,dragState:h,id:f,keyboardResizeBy:s,onLayout:a,storage:l}),E=wu({layout:g,panelDataArray:[],panelDataArrayChanged:!1});wu({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),yu(i,(()=>({getId:()=>w.current.id,getLayout:()=>{const{layout:e}=E.current;return e},setLayout:e=>{const{onLayout:t}=w.current,{layout:n,panelDataArray:r}=E.current,i=Pd({layout:e,panelConstraints:r.map((e=>e.constraints))});wd(n,i)||(v(i),E.current.layout=i,t&&t(i),_d(r,i,y.current))}})),[]),Ou((()=>{w.current.autoSaveId=e,w.current.direction=r,w.current.dragState=h,w.current.id=f,w.current.onLayout=a,w.current.storage=l})),function({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:a}){wu({didWarnAboutMissingResizeHandle:!1}),Ou((()=>{if(!o)return;const e=gd(n,o);for(let t=0;t<i.length-1;t++){const{valueMax:n,valueMin:o,valueNow:a}=md({layout:r,panelsArray:i,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{const e=i[t];ld(e,`No panel data found for index "${t}"`),s.setAttribute("aria-controls",e.id),s.setAttribute("aria-valuemax",""+Math.round(n)),s.setAttribute("aria-valuemin",""+Math.round(o)),s.setAttribute("aria-valuenow",null!=a?""+Math.round(a):"")}}return()=>{e.forEach(((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")}))}}),[n,r,i,o]),vu((()=>{if(!o)return;const e=t.current;ld(e,"Eager values not found");const{panelDataArray:i}=e;ld(null!=bd(n,o),`No group found for id "${n}"`);const s=gd(n,o);ld(s,`No resize handles found for group id "${n}"`);const l=s.map((e=>{const t=e.getAttribute("data-panel-resize-handle-id");ld(t,"Resize handle element has no handle id attribute");const[s,l]=function(e,t,n,r=document){var i,o,a,s;const l=xd(t,r),c=gd(e,r),u=l?c.indexOf(l):-1;return[null!==(i=null===(o=n[u])||void 0===o?void 0:o.id)&&void 0!==i?i:null,null!==(a=null===(s=n[u+1])||void 0===s?void 0:s.id)&&void 0!==a?a:null]}(n,t,i,o);if(null==s||null==l)return()=>{};const c=e=>{if(!e.defaultPrevented)switch(e.key){case"Enter":{e.preventDefault();const l=i.findIndex((e=>e.id===s));if(l>=0){const e=i[l];ld(e,`No panel data found for index ${l}`);const s=r[l],{collapsedSize:c=0,collapsible:u,minSize:d=0}=e.constraints;if(null!=s&&u){const e=hd({delta:fd(s,c)?d-c:c-s,initialLayout:r,panelConstraints:i.map((e=>e.constraints)),pivotIndices:yd(n,t,o),prevLayout:r,trigger:"keyboard"});r!==e&&a(e)}}break}}};return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}));return()=>{l.forEach((e=>e()))}}),[o,e,t,n,r,i,a])}({committedValuesRef:w,eagerValuesRef:E,groupId:f,layout:g,panelDataArray:E.current.panelDataArray,setLayout:v,panelGroupElement:p.current}),vu((()=>{const{panelDataArray:t}=E.current;if(e){if(0===g.length||g.length!==t.length)return;let n=Ad[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}}(Rd,100),Ad[e]=n);const r=[...t],i=new Map(b.current);n(e,r,i,g,l)}}),[e,g,l]),vu((()=>{}));const _=mu((e=>{const{onLayout:t}=w.current,{layout:n,panelDataArray:r}=E.current;if(e.constraints.collapsible){const i=r.map((e=>e.constraints)),{collapsedSize:o=0,panelSize:a,pivotIndices:s}=Fd(r,e,n);if(ld(null!=a,`Panel size not found for panel "${e.id}"`),!dd(a,o)){b.current.set(e.id,a);const l=hd({delta:zd(r,e)===r.length-1?a-o:o-a,initialLayout:n,panelConstraints:i,pivotIndices:s,prevLayout:n,trigger:"imperative-api"});Sd(n,l)||(v(l),E.current.layout=l,t&&t(l),_d(r,l,y.current))}}}),[]),S=mu(((e,t)=>{const{onLayout:n}=w.current,{layout:r,panelDataArray:i}=E.current;if(e.constraints.collapsible){const o=i.map((e=>e.constraints)),{collapsedSize:a=0,panelSize:s=0,minSize:l=0,pivotIndices:c}=Fd(i,e,r),u=null!=t?t:l;if(dd(s,a)){const t=b.current.get(e.id),a=null!=t&&t>=u?t:u,l=hd({delta:zd(i,e)===i.length-1?s-a:a-s,initialLayout:r,panelConstraints:o,pivotIndices:c,prevLayout:r,trigger:"imperative-api"});Sd(r,l)||(v(l),E.current.layout=l,n&&n(l),_d(i,l,y.current))}}}),[]),C=mu((e=>{const{layout:t,panelDataArray:n}=E.current,{panelSize:r}=Fd(n,e,t);return ld(null!=r,`Panel size not found for panel "${e.id}"`),r}),[]),O=mu(((e,t)=>{const{panelDataArray:n}=E.current,r=zd(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:i,precision:o=3}){const a=n[i];let s;return s=null==a?null!=e?e.toPrecision(o):"1":1===r.length?"1":a.toPrecision(o),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:h,layout:g,panelData:n,panelIndex:r})}),[h,g]),k=mu((e=>{const{layout:t,panelDataArray:n}=E.current,{collapsedSize:r=0,collapsible:i,panelSize:o}=Fd(n,e,t);return ld(null!=o,`Panel size not found for panel "${e.id}"`),!0===i&&dd(o,r)}),[]),L=mu((e=>{const{layout:t,panelDataArray:n}=E.current,{collapsedSize:r=0,collapsible:i,panelSize:o}=Fd(n,e,t);return ld(null!=o,`Panel size not found for panel "${e.id}"`),!i||ud(o,r)>0}),[]),R=mu((e=>{const{panelDataArray:t}=E.current;t.push(e),t.sort(((e,t)=>{const n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r})),E.current.panelDataArrayChanged=!0}),[]);Ou((()=>{if(E.current.panelDataArrayChanged){E.current.panelDataArrayChanged=!1;const{autoSaveId:e,onLayout:t,storage:n}=w.current,{layout:r,panelDataArray:i}=E.current;let o=null;if(e){const t=function(e,t,n){var r,i;return null!==(i=(null!==(r=Ld(e,n))&&void 0!==r?r:{})[kd(t)])&&void 0!==i?i:null}(e,i,n);t&&(b.current=new Map(Object.entries(t.expandToSizes)),o=t.layout)}null==o&&(o=function({panelDataArray:e}){const t=Array(e.length),n=e.map((e=>e.constraints));let r=0,i=100;for(let o=0;o<e.length;o++){const e=n[o];ld(e,`Panel constraints not found for index ${o}`);const{defaultSize:a}=e;null!=a&&(r++,t[o]=a,i-=a)}for(let o=0;o<e.length;o++){const a=n[o];ld(a,`Panel constraints not found for index ${o}`);const{defaultSize:s}=a;if(null!=s)continue;const l=i/(e.length-r);r++,t[o]=l,i-=l}return t}({panelDataArray:i}));const a=Pd({layout:o,panelConstraints:i.map((e=>e.constraints))});wd(r,a)||(v(a),E.current.layout=a,t&&t(a),_d(i,a,y.current))}})),Ou((()=>{const e=E.current;return()=>{e.layout=[]}}),[]);const P=mu((e=>function(t){t.preventDefault();const n=p.current;if(!n)return()=>null;const{direction:r,dragState:i,id:o,keyboardResizeBy:a,onLayout:s}=w.current,{layout:l,panelDataArray:c}=E.current,{initialLayout:u}=null!=i?i:{},d=yd(o,e,n);let f=function(e,t,n,r,i,o){if(zu(e)){const t="horizontal"===n;let r=0;r=e.shiftKey?100:null!=i?i:10;let o=0;switch(e.key){case"ArrowDown":o=t?0:r;break;case"ArrowLeft":o=t?-r:0;break;case"ArrowRight":o=t?r:0;break;case"ArrowUp":o=t?0:-r;break;case"End":o=100;break;case"Home":o=-100}return o}return null==r?0:function(e,t,n,r,i){const o="horizontal"===n,a=xd(t,i);ld(a,`No resize handle element found for id "${t}"`);const s=a.getAttribute("data-panel-group-id");ld(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const c=Ed(n,e),u=bd(s,i);ld(u,`No group element found for id "${s}"`);const d=u.getBoundingClientRect();return(c-l)/(o?d.width:d.height)*100}(e,t,n,r,o)}(t,e,r,i,a,n);if(0===f)return;const h="horizontal"===r;"rtl"===document.dir&&h&&(f=-f);const m=hd({delta:f,initialLayout:null!=u?u:l,panelConstraints:c.map((e=>e.constraints)),pivotIndices:d,prevLayout:l,trigger:zu(t)?"keyboard":"mouse-or-touch"}),g=!Sd(l,m);var b,_;(Fu(t)||Nu(t))&&x.current!=f&&(x.current=f,b=e,_=g?0:h?f<0?Wu:qu:f<0?$u:Zu,Ju.set(b,_)),g&&(v(m),E.current.layout=m,s&&s(m),_d(c,m,y.current))}),[]),M=mu(((e,t)=>{const{onLayout:n}=w.current,{layout:r,panelDataArray:i}=E.current,o=i.map((e=>e.constraints)),{panelSize:a,pivotIndices:s}=Fd(i,e,r);ld(null!=a,`Panel size not found for panel "${e.id}"`);const l=hd({delta:zd(i,e)===i.length-1?a-t:t-a,initialLayout:r,panelConstraints:o,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});Sd(r,l)||(v(l),E.current.layout=l,n&&n(l),_d(i,l,y.current))}),[]),A=mu(((e,t)=>{const{layout:n,panelDataArray:r}=E.current,{collapsedSize:i=0,collapsible:o}=t,{collapsedSize:a=0,collapsible:s,maxSize:l=100,minSize:c=0}=e.constraints,{panelSize:u}=Fd(r,e,n);null!=u&&(o&&s&&dd(u,i)?dd(i,a)||M(e,a):u<c?M(e,c):u>l&&M(e,l))}),[M]),T=mu(((e,t)=>{const{direction:n}=w.current,{layout:r}=E.current;if(!p.current)return;const i=xd(e,p.current);ld(i,`Drag handle element not found for id "${e}"`);const o=Ed(n,t);m({dragHandleId:e,dragHandleRect:i.getBoundingClientRect(),initialCursorPosition:o,initialLayout:r})}),[]),D=mu((()=>{m(null)}),[]),z=mu((e=>{const{panelDataArray:t}=E.current,n=zd(t,e);n>=0&&(t.splice(n,1),delete y.current[e.id],E.current.panelDataArrayChanged=!0)}),[]),F=xu((()=>({collapsePanel:_,direction:r,dragState:h,expandPanel:S,getPanelSize:C,getPanelStyle:O,groupId:f,isPanelCollapsed:k,isPanelExpanded:L,reevaluatePanelConstraints:A,registerPanel:R,registerResizeHandle:P,resizePanel:M,startDragging:T,stopDragging:D,unregisterPanel:z,panelGroupElement:p.current})),[_,h,r,S,C,O,f,k,L,A,R,P,M,T,D,z]),N={display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return du(Cu.Provider,{value:F},du(u,{...d,children:t,className:n,id:o,ref:p,style:{...N,...c},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":f}))}const Dd=hu(((e,t)=>du(Td,{...e,forwardedRef:t})));function zd(e,t){return e.findIndex((e=>e===t||e.id===t.id))}function Fd(e,t,n){const r=zd(e,t),i=r===e.length-1?[r-1,r]:[r,r+1],o=n[r];return{...t.constraints,panelSize:o,pivotIndices:i}}function Nd({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:a,onFocus:s,style:l={},tabIndex:c=0,tagName:u="div",...d}){var f,p;const h=wu(null),m=wu({onDragging:a});vu((()=>{m.current.onDragging=a}));const g=gu(Cu);if(null===g)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:v,groupId:y,registerResizeHandle:b,startDragging:x,stopDragging:w,panelGroupElement:E}=g,_=Ru(i),[S,C]=Eu("inactive"),[O,k]=Eu(!1),[L,R]=Eu(null),P=wu({state:S});Ou((()=>{P.current.state=S})),vu((()=>{if(n)R(null);else{const e=b(_);R((()=>e))}}),[n,_,b]);const M=null!==(f=null==r?void 0:r.coarse)&&void 0!==f?f:15,A=null!==(p=null==r?void 0:r.fine)&&void 0!==p?p:5;return vu((()=>{if(n||null==L)return;const e=h.current;return ld(e,"Element ref not attached"),function(e,t,n,r,i){var o;const{ownerDocument:a}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:i},l=null!==(o=Qu.get(a))&&void 0!==o?o:0;return Qu.set(a,l+1),ed.add(s),ad(),function(){var t;Ju.delete(e),ed.delete(s);const n=null!==(t=Qu.get(a))&&void 0!==t?t:1;if(Qu.set(a,n-1),ad(),1===n&&Qu.delete(a),Xu.includes(s)){const e=Xu.indexOf(s);e>=0&&Xu.splice(e,1),od()}}}(_,e,v,{coarse:M,fine:A},((e,t,n)=>{if(t)switch(e){case"down":{C("drag"),x(_,n);const{onDragging:e}=m.current;e&&e(!0);break}case"move":{const{state:e}=P.current;"drag"!==e&&C("hover"),L(n);break}case"up":{C("hover"),w();const{onDragging:e}=m.current;e&&e(!1);break}}else C("inactive")}))}),[M,v,n,A,b,_,L,x,w]),function({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){vu((()=>{if(e||null==n||null==r)return;const i=xd(t,r);if(null==i)return;const o=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();const n=i.getAttribute("data-panel-group-id");ld(n,`No group element found for id "${n}"`);const o=gd(n,r),a=vd(n,t,r);ld(null!==a,`No resize element found for id "${t}"`),o[e.shiftKey?a>0?a-1:o.length-1:a+1<o.length?a+1:0].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}}),[r,e,t,n])}({disabled:n,handleId:_,resizeHandler:L,panelGroupElement:E}),du(u,{...d,children:e,className:t,id:i,onBlur:()=>{k(!1),null==o||o()},onFocus:()=>{k(!0),null==s||s()},ref:h,role:"separator",style:{touchAction:"none",userSelect:"none",...l},tabIndex:c,"data-panel-group-direction":v,"data-panel-group-id":y,"data-resize-handle":"","data-resize-handle-active":"drag"===S?"pointer":O?"keyboard":void 0,"data-resize-handle-state":S,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":_})}Td.displayName="PanelGroup",Dd.displayName="forwardRef(PanelGroup)",Nd.displayName="PanelResizeHandle";const Id=Wn((()=>({container:{position:"relative"},panel:{position:"relative"},horizontal:{},vertical:{},disabled:{},resizer:{zIndex:1,boxSizing:"border-box",backgroundClip:"padding-box","&$disabled":{cursor:"initial",height:0,margin:0},"&$horizontal":{height:"11px",backgroundImage:"linear-gradient(rgba(0,0,0,0.33), rgba(0,0,0,0.33))",backgroundRepeat:"no-repeat",backgroundSize:"100% 1px",backgroundPosition:"top",width:"100%",marginBottom:"-10px","&$disabled":{background:"transparent"},"&:not($disabled):hover":{cursor:"ns-resize",backgroundImage:"linear-gradient(rgba(0, 114, 206, 0), rgba(0, 114, 206, 0.35), rgba(0, 114, 206, 1))",backgroundSize:"100% 3px"}},"&$vertical":{width:"11px",backgroundImage:"linear-gradient(rgba(0,0,0,0.33), rgba(0,0,0,0.33))",backgroundRepeat:"no-repeat",backgroundSize:"1px 100%",backgroundPosition:"left",height:"100%",marginRight:"-10px","&$disabled":{background:"transparent"},"&:not($disabled):hover":{cursor:"ew-resize",backgroundImage:"linear-gradient(to left, rgba(0, 114, 206, 0.35), rgba(0, 114, 206, 1), rgba(0, 114, 206, 0.35))",backgroundSize:"3px 100%"}}}})));function jd(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Bd(e,t,n[t])}))}return e}function Bd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Gd=e=>"horizontal"===e,Ud=(e,t)=>e.toFixed(2)===t.toFixed(2),Hd=({className:n,children:r,orientation:i="vertical",primary:o="first",size:a,minSize:s,maxSize:l,allowResize:c,debounceInterval:u=250,onChange:d})=>{const f=Id(),p=(0,g.useTheme)(),h=(0,e.useRef)(),[m,v]=(0,e.useState)(null),[y,b]=(0,e.useState)(0),[x,w]=(0,e.useState)(0),[_,S]=(0,e.useState)(!0),C=(0,e.useCallback)((()=>S(!0)),[]),O=(0,e.useCallback)((()=>S(!1)),[]),k=(0,e.useCallback)((()=>Gd(i)?null==m?void 0:m.clientHeight:null==m?void 0:m.clientWidth),[m,i]);"number"==typeof a&&a<0&&(a=(k()||0)+a);const L=(0,e.useCallback)((e=>"string"==typeof e&&e.endsWith("%")?+e.replace("%",""):("string"==typeof e&&e.endsWith("px")&&(e=e.replace("px","")),isNaN(+e)?null:+e/k()*100)),[k]),R=(0,e.useCallback)(((e,t)=>0===e||100===e?0:L(t)||0),[L]),P=(0,e.useCallback)((()=>{if(m&&h.current){const e=L(a);null==e||isNaN(e)||(w(R(e,l)),b(R(e,s)),h.current.resize(e))}}),[L,R,s,l,a,m]);(0,e.useEffect)((()=>{P()}),[P,x,y]);const M=(0,e.useCallback)((0,E.debounce)(((e,t)=>{void 0!==e&&0!==t&&d({percentageSize:e+"%",isMaxSize:Ud(e,+x>0?x:100+x),isMinSize:Ud(e,y),size:Math.round(e*t/100)})}),u),[d,x,y]),A=(0,e.useCallback)((e=>{e?(M(),O()):(M(h.current.getSize(),k()),C())}),[O,C,M,k]),T=(0,e.useMemo)((()=>({transition:p.transitions.create("flex",{easing:p.transitions.easing.sharp,duration:p.transitions.duration.leavingScreen})})),[p]),D=jd({className:f.panel,minSize:y},x>0?{maxSize:x}:{},{ref:h,style:_?T:void 0}),z=jd({className:f.panel,style:_?T:void 0},x<0?{minSize:-x}:{});return t().createElement("div",{ref:v,className:Qn()(f.container,n)},t().createElement(Ns,{handleHeight:Gd(i),handleWidth:!Gd(i),onResize:P,refreshMode:"debounce",refreshRate:50}),t().createElement(Dd,{direction:Gd(i)?"vertical":"horizontal"},t().createElement(Mu,"first"===o?D:z,r[0]),t().createElement(Nd,{className:Qn()(f.resizer,f[i],{[f.disabled]:!c}),disabled:!c,hitAreaMargins:{coarse:0,fine:0},onDragging:A}),t().createElement(Mu,"second"===o?D:z,r[1])))};Hd.displayName="ResizablePanes";const Vd={XXS:"XXS",XS:"XS",S:"S",M:"M",MPlus:"MPlus",L:"L",XL:"XL"},Wd=Wn({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}});function qd(){return qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qd.apply(null,arguments)}function $d(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Zd(e,t,n[t])}))}return e}function Zd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yd=(0,e.forwardRef)(((e,n)=>{const{className:r,onClick:i,icon:o,size:a=Vd.XS,iconClassName:s,classes:l={}}=e,c=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["className","onClick","icon","size","iconClassName","classes"]),u=Wd();return t().createElement(cs(),qd({ref:n,classes:$d({root:`${u[`root${a}`]} ${u.rootAll}`,disabled:u.disabled},l),onClick:i,className:r},c,{size:"large"}),o&&t().createElement(o,{classes:{root:u[`icon${a}`]},className:s}))}));Yd.displayName="SmallIconButton";const Xd=Fc(Yd),Kd=Wn((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,g.alpha)(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 Qd(){return Qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qd.apply(null,arguments)}const Jd=({disabled:e,buttonsProps:n,activeIndexId:r,className:i,onButtonClick:o})=>{const a=Kd();return t().createElement("div",{className:Qn()(a.container,i)},n.map((n=>{let{id:i}=n,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["id"]);return t().createElement(Xd,Qd({},s,{disabled:e,size:"S",key:i,className:Qn()(a.buttonWrapper,{[a.active]:r===i}),onClick:()=>o(i),"data-reltio-id":`reltio-profile-right-side-button-${i}`}))})))},ef=t().createContext({settings:{},onChange:()=>{}});ef.displayName="PerspectivesSettingsContext";const tf=t=>{const{settings:n,onChange:r}=(0,e.useContext)(ef)||{},i=null==n?void 0:n[t];return{updatePerspectiveSettings:(0,e.useCallback)((e=>{r(t,e)}),[t,r]),perspectiveSettings:i}},nf=Wn((()=>({resizablePanesWrapper:{flexGrow:1,height:"100%",marginRight:"1px"},pane:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",overflow:"hidden"}}))),rf=480,of=({perspectiveId:n,children:r,buttonsProps:i,disabled:o,defaultTab:a})=>{const s=nf(),{perspectiveSettings:l,updatePerspectiveSettings:c}=tf(n),{width:u=rf}=l||{},d=(0,w.isNil)(a)?null==l?void 0:l.active:a,f=i.find((e=>e.id===d)),p=!(0,w.isNil)(d)&&!o&&Boolean(f),h=(0,e.useCallback)((e=>{c(e)}),[c]),m=(0,e.useCallback)((e=>{h({active:d===e?null:e})}),[d,h]),g=(0,e.useCallback)((()=>{h({active:null})}),[h]),v=(0,e.useCallback)((({size:e})=>{h({width:e})}),[h]);return t().createElement(t().Fragment,null,t().createElement(Hd,{className:s.resizablePanesWrapper,primary:"second",orientation:"vertical",size:p?u:0,minSize:320,maxSize:640,allowResize:p,onChange:v,debounceInterval:2500},t().createElement("div",{className:s.pane},r[0]),t().createElement("div",{className:s.pane},(0,e.cloneElement)(r[1],{active:d,onClose:g}))),t().createElement(Jd,{disabled:o,buttonsProps:i,onButtonClick:m,activeIndexId:d}))};of.displayName="ProfileResizablePanes";var af=ae(8996),sf=ae.n(af),lf=ae(6635),cf=ae(9358);const uf=(0,e.createContext)(null),df=uf.Provider;function ff(){const t=(0,e.useContext)(uf);if(null==t)throw new Error("No context provided: useSigmaContext() can only be used in a descendant of <SigmaContainer>");return t}function pf(){return ff().sigma}function hf(){const{sigma:t,container:n}=ff(),[r,i]=(0,e.useState)({});return(0,e.useEffect)((()=>{if(!t||!r)return;const e={};return Object.keys(r).forEach((n=>{e[n]=r[n],t.setSetting(n,r[n])})),()=>{t&&n&&n.offsetWidth>0&&n.offsetHeight>0&&Object.keys(e).forEach((n=>{t.setSetting(n,e[n])}))}}),[t,r,n]),i}const mf=["clickNode","rightClickNode","downNode","enterNode","leaveNode","doubleClickNode","wheelNode","clickEdge","rightClickEdge","downEdge","enterEdge","leaveEdge","doubleClickEdge","wheelEdge","clickStage","rightClickStage","downStage","doubleClickStage","wheelStage","beforeRender","afterRender","kill"],gf=["click","rightClick","mouseup","mousedown","mousemove","mousemovebody","doubleClick","wheel"],vf=["touchup","touchdown","touchmove"],yf=["updated"];function bf(){const t=pf(),n=hf(),[r,i]=(0,e.useState)({});return(0,e.useEffect)((()=>{if(!t||!r)return;const e=r,i=Object.keys(e),o={},a={},s=t.getSettings();return i.some((e=>["clickEdge","rightClickEdge","doubleClickEdge","downEdge"].includes(e)))&&!1===s.enableEdgeClickEvents&&(o.enableEdgeClickEvents=!0,a.enableEdgeClickEvents=!1),i.some((e=>["enterEdge","leaveEdge"].includes(e)))&&!1===s.enableEdgeHoverEvents&&(o.enableEdgeHoverEvents=!0,a.enableEdgeHoverEvents=!1),i.some((e=>["wheelEdge"].includes(e)))&&!1===s.enableEdgeWheelEvents&&(o.enableEdgeWheelEvents=!0,a.enableEdgeWheelEvents=!1),Object.keys(o).length>0&&n(o),i.forEach((n=>{const r=e[n];mf.find((e=>e===n))&&t.on(n,r),gf.find((e=>e===n))&&t.getMouseCaptor().on(n,r),vf.find((e=>e===n))&&t.getTouchCaptor().on(n,r),yf.find((e=>e===n))&&t.getCamera().on(n,r)})),()=>{Object.keys(a).length>0&&n(a),t&&i.forEach((n=>{const r=e[n];mf.find((e=>e===n))&&t.off(n,r),gf.find((e=>e===n))&&t.getMouseCaptor().off(n,r),vf.find((e=>e===n))&&t.getTouchCaptor().off(n,r),yf.find((e=>e===n))&&t.getCamera().off(n,r)}))}}),[t,r,n]),i}const xf=(0,e.forwardRef)((({graph:n,id:r,className:i,style:o,settings:a,children:s},l)=>{const c=(0,e.useRef)(null),u=(0,e.useRef)(null),d={className:`react-sigma ${i||""}`,id:r,style:o},[f,p]=(0,e.useState)(null),h=(0,e.useRef)({});(0,lf.isEqual)(h.current,a)||(h.current=a||{}),(0,e.useEffect)((()=>{let e=null;if(null!==u.current){const t=n?"function"==typeof n?new n:n:new(sf());e=new cf.Sigma(t,u.current,Object.assign({allowInvalidContainer:!0},h.current)),f&&e.getCamera().setState(f.getCamera().getState())}return p(e),()=>{e&&e.kill(),p(null)}}),[u,n,h]),(0,e.useImperativeHandle)(l,(()=>f),[f]);const m=(0,e.useMemo)((()=>f&&c.current?{sigma:f,container:c.current}:null),[f,c.current]),g=null!==m?t().createElement(df,{value:m},s):null;return t().createElement("div",Object.assign({},d,{ref:c}),t().createElement("div",{className:"sigma-container",ref:u}),g)}));var wf=ae(1624),Ef=ae(4488),_f=ae(5372),Sf=ae.n(_f),Cf=ae(8586);const Of=e=>e.getContext("2d",{preserveDrawingBuffer:!1,antialias:!1}),kf=e=>{const t=document.createElement("canvas");return t.style.position="absolute",t.setAttribute("class",`sigma-${e}`),t},Lf=()=>{const{container:t,sigma:n}=ff(),[r,i]=(0,e.useState)({}),o=(0,e.useRef)({}),a=(0,e.useRef)(0),s=(0,e.useRef)(0),l=(0,e.useCallback)((e=>{i((0,w.mergeLeft)(e))}),[]),c=(0,e.useCallback)((()=>{a.current=t.offsetWidth,s.current=t.offsetHeight;const e=(0,Cf.getPixelRatio)();for(const t in o.current){const{canvasElement:n,context:r}=o.current[t];n.style.width=a.current+"px",n.style.height=s.current+"px",n.setAttribute("width",a.current*e+"px"),n.setAttribute("height",s.current*e+"px"),1!==e&&r.scale(e,e)}}),[t.offsetHeight,t.offsetWidth]),u=(0,e.useCallback)((()=>{for(const e in r){const{context:t}=o.current[e];t.clearRect(0,0,a.current,s.current);const{renderer:n}=r[e];n(t)}}),[r]),d=(0,e.useCallback)((()=>{for(const e in r){if(!(0,E.isEmptyValue)(o.current[e]))continue;const{insertBefore:n}=r[e],i=t.querySelector(".sigma-container"),a=kf(e),s=Of(a);i.insertBefore(a,i.querySelector(`.sigma-${n}`)),o.current[e]={canvasElement:a,context:s},c()}}),[r,t,c]);return(0,e.useEffect)((()=>(n.addListener("beforeRender",d),()=>{n.off("beforeRender",d)})),[n,d]),(0,e.useEffect)((()=>(n.addListener("afterRender",u),()=>{n.off("afterRender",u)})),[n,u]),(0,e.useEffect)((()=>(n.addListener("resize",c),()=>{n.off("resize",c)})),[n,c]),(0,e.useEffect)((()=>{const e=o.current;return()=>{for(const t in e)e[t].canvasElement.remove(),delete e[t]}}),[]),{addRenderers:l,canvases:o.current,canvasesRef:o}},Rf=(0,e.createContext)({addRenderers:w.identity,canvases:{}});Rf.displayName="SigmaCustomRenderersContext";const Pf=({children:e})=>{const n=Lf();return t().createElement(Rf.Provider,{value:n},e)},Mf=()=>{const n=pf(),r=(0,e.useCallback)((()=>{n.refresh()}),[n]);return t().createElement(Ns,{handleWidth:!0,onResize:r})},Af=(e,t,n,{backgroundColor:r,borderColor:i}={})=>{var o;if(!t.label)return;const a=n.labelSize,s=n.labelFont,l=n.labelWeight,c=t.selected?6:2,u=1.2*a;e.font=`${l} ${a}px ${s}`;const d=((e,t,n,{backgroundColor:r="rgba(245, 245, 245, 0.9)",marginLeft:i=2,borderColor:o,lineHeight:a}={})=>{e.fillStyle=r,o&&(e.strokeStyle=o);const s=new Path2D;if("string"==typeof t.label){const r=t.secondaryLabel?a:0,l=n.labelSize+r+2,c=2,u=Math.max(e.measureText(t.label).width,e.measureText(t.secondaryLabel||"").width),d=Math.round(u+14),f=Math.round(l+4),p=t.size+2,h=t.y-f/2,m=t.y+f/2,g=t.x+p+i,v=g+d;s.moveTo(g,m-c),s.quadraticCurveTo(g,m,g+c,m),s.lineTo(v-c,m),s.quadraticCurveTo(v,m,v,m-c),s.lineTo(v,h+c),s.quadraticCurveTo(v,h,v-c,h),s.lineTo(g+c,h),s.quadraticCurveTo(g,h,g,h+c),s.closePath(),e.fill(s),o&&e.stroke(s)}return s})(e,t,n,{backgroundColor:t.selected?"#FFF":r,marginLeft:c,borderColor:i,lineHeight:u});e.fillStyle=null!==(o=n.labelColor)&&void 0!==o&&o.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color;const f=t.secondaryLabel?t.y-a/3.75:t.y+a/3;var p,h,m;return e.fillText(t.label,t.x+t.size+9+c,f),t.secondaryLabel&&(e.fillStyle=null!==(p=n.secondaryLabelColor)&&void 0!==p&&p.attribute?t[n.secondaryLabelColor.attribute]||(null===(h=n.secondaryLabelColor)||void 0===h?void 0:h.color)||"#000":null===(m=n.secondaryLabelColor)||void 0===m?void 0:m.color,e.fillText(t.secondaryLabel,t.x+t.size+9+c,f+u)),d},Tf=(e,t,{padding:n=1.5,color:r="#FFF",lineWidth:i=4}={})=>{e.lineWidth=i,e.strokeStyle=r,e.beginPath(),e.arc(t.x,t.y,t.size+n,0,2*Math.PI),e.closePath(),e.stroke()},Df=(e,t)=>{((e,t)=>{t.selected&&(e.shadowColor="rgba(0, 114, 206, 0.5)",e.shadowBlur=10,Tf(e,t,{lineWidth:2,color:"#0072CE",padding:4.5}),e.shadowColor="none",e.shadowBlur=0)})(e,t),Tf(e,t)},zf=(e,t,n)=>{Df(e,t),Af(e,t,n,{backgroundColor:"#FFF"})},Ff="\n// convert color to pale gray\nvec4 toPaleGrayscale(in vec4 color, float paleFactor)\n{\n vec4 white = vec4(1.0, 1.0, 1.0, 1.0);\n vec4 paleColor = mix(color, white, paleFactor);\n\n float average = (paleColor.r + paleColor.g + paleColor.b) / 3.0;\n return vec4(average, average, average, 1.0);\n}",Nf=`\nprecision mediump float;\n\nvarying vec4 v_color; // base color of node\nvarying float v_border;\nvarying float v_borderRadius; // inner border radius\nvarying float v_inactive;\n\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0); // transparent color\nconst float radius = 0.5;\nconst float dashGapRatio = 5.5; // adjust this to change the ratio of dash size to gap size\nconst float totalLength = 2.0 * 3.14159 * radius;\nconst float dashSize = totalLength / (dashGapRatio + 1.0);\nconst float gapSize = dashSize / dashGapRatio;\n\n${Ff}\n\nvoid main(void) {\n vec4 color;\n\n // convert color to gray\n if (v_inactive > 0.0) {\n color = toPaleGrayscale(v_color, 0.5);\n } else {\n color = v_color;\n }\n\n float distToCenter = length(gl_PointCoord - vec2(0.5, 0.5)); // distance from current point to center of node\n float distAlongBorder = atan(gl_PointCoord.y - 0.5, gl_PointCoord.x - 0.5); // distance along the border\n float dashGapRatio = mod(distAlongBorder, dashSize + gapSize) / dashSize; // ratio of dash to gap\n\n // our change - added if statement to check if within a dash\n if (dashGapRatio < 1.0) {// if within a dash\n if (distToCenter < v_borderRadius - v_border) // distance to inner border radius\n gl_FragColor = transparent;\n else if (distToCenter < v_borderRadius)\n gl_FragColor = mix(color, transparent, (v_borderRadius - distToCenter) / v_border);\n else if (distToCenter < radius - v_border) // distance to outer border radius\n gl_FragColor = color;\n else if (distToCenter < radius)\n gl_FragColor = mix(transparent, color, (radius - distToCenter) / v_border);\n else // points outside the button\n gl_FragColor = transparent;\n } else {\n gl_FragColor = transparent;\n }\n}\n`;class If extends wf.AbstractNodeProgram{constructor(e){super(e,"\nattribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\nattribute float a_borderSize;\nattribute float a_inactive;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying vec4 v_color;\nvarying float v_border;\nvarying float v_borderRadius;\nvarying float v_inactive;\n\nconst float bias = 255.0 / 254.0;\nconst float radius = 0.5;\n\nvoid main() {\n gl_Position = vec4((u_matrix * vec3(a_position, 1)).xy, 0, 1);\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 v_borderRadius = radius - (radius * a_borderSize / a_size); // border radius in node's size (full size is 1)\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n\n // Pass inactive property\n v_inactive = a_inactive;\n}",Nf,1,6),this.borderSize=void 0,this.inactive=void 0,this.borderSize=e.getAttribLocation(this.program,"a_borderSize"),this.inactive=e.getAttribLocation(this.program,"a_inactive"),this.bind()}bind(){super.bind();const e=this.gl;e.enableVertexAttribArray(this.borderSize),e.enableVertexAttribArray(this.inactive),e.vertexAttribPointer(this.borderSize,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.inactive,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,20)}process(e,t,n){const r=this.array;let i=1*n*6;if(t||!e.hasBorder)return r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,void(r[i++]=0);r[i++]=e.x,r[i++]=e.y,r[i++]=e.size,r[i++]=(0,Cf.floatColor)(e.color),r[i++]=e.highlighted?2:1,r[i]=e.inactive?1:0}render(e){const 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/6)}}const jf=`\nprecision mediump float;\n\nvarying float v_border;\nvarying float v_inactive;\nvarying vec4 v_color;\nvarying vec4 v_texture;\n\nuniform sampler2D u_atlas;\n\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\nconst float radius = 0.5;\n\n${Ff}\n\nvoid main(void) {\n vec4 color;\n\n // set texel as color of point\n if (v_texture.w > 0.0) {\n vec4 texel = texture2D(u_atlas, v_texture.xy + gl_PointCoord * v_texture.zw, -1.0);\n color = vec4(mix(v_color, texel, texel.a).rgb, max(texel.a, v_color.a));\n } else {\n color = v_color;\n }\n\n // convert color to gray\n if (v_inactive > 0.0) {\n color = toPaleGrayscale(color, 0.5);\n }\n\n // distance from point to center of node\n float dist = length(gl_PointCoord - vec2(0.5, 0.5));\n\n if (dist < radius - v_border) // points inside node\n gl_FragColor = color;\n else if (dist < radius) // border of node\n gl_FragColor = mix(transparent, color, (radius - dist) / v_border);\n else // points outside node\n gl_FragColor = transparent;\n}`;class Bf{constructor(){this.rebindTextureFns=[],this.images={},this.textureImage=void 0,this.hasReceivedImages=!1,this.pendingImagesFrameID=void 0,this.loadImage=(e,t)=>{if(this.images[e])return;const n=new Image;var r;n.addEventListener("load",(()=>{this.images[e]={status:"pending",image:n},"number"!=typeof this.pendingImagesFrameID&&(this.pendingImagesFrameID=requestAnimationFrame((()=>this.finalizePendingImages())))})),n.addEventListener("error",(()=>{this.images[e]={status:"error"}})),this.images[e]={status:"loading"},r=n,new URL(t,window.location.href).origin!==window.location.origin&&(r.crossOrigin=""),n.src=t.startsWith("data:image")?t:t+"?not-from-cache"},this.finalizePendingImages=()=>{this.pendingImagesFrameID=void 0;const e=[];for(const t in this.images){const n=this.images[t];"pending"===n.status&&e.push({id:t,image:n.image,size:Math.min(n.image.width,n.image.height)||1})}const t=document.createElement("canvas"),n=t.getContext("2d");t.width=e.reduce(((e,{size:t})=>e+t),this.hasReceivedImages?this.textureImage.width:0),t.height=Math.max(this.hasReceivedImages?this.textureImage.height:0,...e.map((({size:e})=>e)));let r=0;this.hasReceivedImages&&(n.putImageData(this.textureImage,0,0),r=this.textureImage.width),e.forEach((({id:e,image:t,size:i})=>{const o=Math.min(128,i);let a=0,s=0;(t.width||0)>(t.height||0)?a=(t.width-t.height)/2:s=(t.height-t.width)/2,n.drawImage(t,a,s,i,i,r,0,o,o),this.images[e]={status:"ready",x:r,y:0,width:o,height:o},r+=o})),this.textureImage=n.getImageData(0,0,t.width,t.height),this.hasReceivedImages=!0,this.rebindTextureFns.forEach((e=>e()))}}}const Gf={id:"defaultImage",path:(0,E.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')};class Uf extends wf.AbstractNodeProgram{constructor(e,t){super(e,"\nattribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\nattribute vec4 a_texture;\nattribute float a_inactive;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying float v_border;\nvarying float v_inactive;\nvarying vec4 v_color;\nvarying vec4 v_texture;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n gl_Position = vec4((u_matrix * vec3(a_position, 1)).xy, 0, 1);\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 // Pass the texture coordinates:\n v_texture = a_texture;\n\n // Pass inactive property\n v_inactive = a_inactive;\n}",jf,1,9),this.imageLoader=void 0,this.texture=void 0,this.textureLocation=void 0,this.atlasLocation=void 0,this.latestRenderParams=void 0,this.inactive=void 0,this.imageLoader=new Bf,this.imageLoader.rebindTextureFns.push((()=>{this&&this.rebindTexture&&this.rebindTexture(),t&&t.refresh&&t.refresh()})),this.imageLoader.textureImage=new ImageData(1,1),this.textureLocation=e.getAttribLocation(this.program,"a_texture"),this.inactive=e.getAttribLocation(this.program,"a_inactive");const n=e.getUniformLocation(this.program,"u_atlas");if(null===n)throw new Error("NodeProgramImage: error while getting atlasLocation");this.atlasLocation=n,this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array([0,0,0,0])),this.imageLoader.loadImage(Gf.id,Gf.path),this.bind()}bind(){super.bind();const e=this.gl;e.enableVertexAttribArray(this.textureLocation),e.enableVertexAttribArray(this.inactive),e.vertexAttribPointer(this.inactive,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.textureLocation,4,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,20)}process(e,t,n){const r=this.array;let i=1*n*9;const o=e.image;let a=o&&this.imageLoader.images[o];if("string"!=typeof o||a||this.imageLoader.loadImage(o,o),t)return r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,void(r[i++]=0);if(r[i++]=e.x,r[i++]=e.y,r[i++]=e.size,r[i++]=(0,Cf.floatColor)(e.color),r[i++]=e.inactive?1:0,a&&"ready"===a.status||(a=this.imageLoader.images[Gf.id]),a&&"ready"===a.status){const{width:e,height:t}=this.imageLoader.textureImage;r[i++]=a.x/e,r[i++]=a.y/t,r[i++]=a.width/e,r[i++]=a.height/t}else r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0}render(e){if(this.hasNothingToRender())return;this.latestRenderParams=e;const 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.uniform1i(this.atlasLocation,0),t.drawArrays(t.POINTS,0,this.array.length/9)}rebindTexture(){const e=this.gl;e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this.texture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,this.imageLoader.textureImage),e.generateMipmap(e.TEXTURE_2D),this.latestRenderParams&&(this.bind(),this.bufferData(),this.render(this.latestRenderParams))}}var Hf=ae(3193),Vf=ae.n(Hf);class Wf extends(Vf()){process(e,t,n,r,i){if(r){for(let e=27*i,t=e+27;e<t;e++)this.array[e]=0;return}const o=n.arrowSizeRatio||1,a=n.size*o||1,s=t.size||1,l=e.x,c=e.y,u=t.x,d=t.y,f=(0,Cf.floatColor)(n.color),p=u-l,h=d-c;let m=p*p+h*h,g=0,v=0;m&&(m=1/Math.sqrt(m),g=-h*m*a,v=p*m*a);let y=27*i;const b=this.array;b[y++]=u,b[y++]=d,b[y++]=-g,b[y++]=-v,b[y++]=s,b[y++]=f,b[y++]=1,b[y++]=0,b[y++]=0,b[y++]=u,b[y++]=d,b[y++]=-g,b[y++]=-v,b[y++]=s,b[y++]=f,b[y++]=0,b[y++]=1,b[y++]=0,b[y++]=u,b[y++]=d,b[y++]=-g,b[y++]=-v,b[y++]=s,b[y++]=f,b[y++]=0,b[y++]=0,b[y]=1}}class qf extends Wf{process(e,t,n,r,i){super.process(t,e,n,r,i)}}var $f=ae(3343),Zf=ae.n($f);class Yf extends Ef.AbstractEdgeProgram{constructor(e){super(e,"\nattribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\nattribute float a_radius;\nattribute float a_arrowSizeRatio;\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 // our change - apply a_arrowSizeRatio depending on current zoom and minThickness\n float arrowSizeCoefficient = min(a_arrowSizeRatio, a_arrowSizeRatio / (u_sqrtZoomRatio * minThickness));\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\n float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio * arrowSizeCoefficient;\n\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}",Zf(),4,7),this.IndicesArray=void 0,this.indicesArray=void 0,this.indicesBuffer=void 0,this.indicesType=void 0,this.positionLocation=void 0,this.colorLocation=void 0,this.normalLocation=void 0,this.radiusLocation=void 0,this.arrowSizeRatioLocation=void 0,this.matrixLocation=void 0,this.sqrtZoomRatioLocation=void 0,this.correctionRatioLocation=void 0,this.canUse32BitsIndices=void 0;const t=e.createBuffer();if(null===t)throw new Error("EdgeClampedProgram: error while getting resolutionLocation");this.indicesBuffer=t,this.positionLocation=e.getAttribLocation(this.program,"a_position"),this.colorLocation=e.getAttribLocation(this.program,"a_color"),this.normalLocation=e.getAttribLocation(this.program,"a_normal"),this.radiusLocation=e.getAttribLocation(this.program,"a_radius"),this.arrowSizeRatioLocation=e.getAttribLocation(this.program,"a_arrowSizeRatio");const n=e.getUniformLocation(this.program,"u_matrix");if(null===n)throw new Error("EdgeClampedProgram: error while getting matrixLocation");this.matrixLocation=n;const r=e.getUniformLocation(this.program,"u_sqrtZoomRatio");if(null===r)throw new Error("EdgeClampedProgram: error while getting cameraRatioLocation");this.sqrtZoomRatioLocation=r;const i=e.getUniformLocation(this.program,"u_correctionRatio");if(null===i)throw new Error("EdgeClampedProgram: error while getting viewportRatioLocation");this.correctionRatioLocation=i,this.canUse32BitsIndices=(0,Cf.canUse32BitsIndices)(e),this.IndicesArray=this.canUse32BitsIndices?Uint32Array:Uint16Array,this.indicesArray=new this.IndicesArray,this.indicesType=this.canUse32BitsIndices?e.UNSIGNED_INT:e.UNSIGNED_SHORT,this.bind()}bind(){const 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.enableVertexAttribArray(this.arrowSizeRatioLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,7*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,7*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,7*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,7*Float32Array.BYTES_PER_ELEMENT,20),e.vertexAttribPointer(this.arrowSizeRatioLocation,1,e.FLOAT,!1,7*Float32Array.BYTES_PER_ELEMENT,24)}process(e,t,n,r,i){if(r){for(let e=28*i,t=e+28;e<t;e++)this.array[e]=0;return}const o=n.arrowSizeRatio||1,a=n.size||1,s=e.x,l=e.y,c=t.x,u=t.y,d="doubleArrow"===n.type?e.size||1:0,f=t.size||1,p=(0,Cf.floatColor)(n.color),h=c-s,m=u-l;let g=h*h+m*m,v=0,y=0;g&&(g=1/Math.sqrt(g),v=-m*g*a,y=h*g*a);let b=28*i;const x=this.array;x[b++]=s,x[b++]=l,x[b++]=v,x[b++]=y,x[b++]=p,x[b++]=-d,x[b++]=o,x[b++]=s,x[b++]=l,x[b++]=-v,x[b++]=-y,x[b++]=p,x[b++]=d,x[b++]=o,x[b++]=c,x[b++]=u,x[b++]=v,x[b++]=y,x[b++]=p,x[b++]=f,x[b++]=o,x[b++]=c,x[b++]=u,x[b++]=-v,x[b++]=-y,x[b++]=p,x[b++]=-f,x[b]=o}computeIndices(){const e=this.array.length/7,t=e+e/2,n=new this.IndicesArray(t);for(let t=0,r=0;t<e;t+=4)n[r++]=t,n[r++]=t+1,n[r++]=t+2,n[r++]=t+2,n[r++]=t+1,n[r++]=t+3;this.indicesArray=n}bufferData(){super.bufferData();const e=this.gl;e.bufferData(e.ELEMENT_ARRAY_BUFFER,this.indicesArray,e.STATIC_DRAW)}render(e){if(this.hasNothingToRender())return;const 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)}}class Xf extends Ef.AbstractEdgeProgram{constructor(e){super(e,"\nattribute float a_lineLength; // our addition\nattribute 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;\nvarying float v_position; // our addition\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 // antialiasing 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 v_position = a_lineLength / u_sqrtZoomRatio; // our addition\n}\n","\nprecision mediump float;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\nvarying float v_position; // our addition - the position along the line\n\nconst float feather = 0.001;\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\nconst float u_dashSize = 0.01; // our addition\nconst float u_gapSize = 0.005; // our addition\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 // our additions\n float totalSize = u_dashSize + u_gapSize;\n float positionInDashGap = mod(v_position, totalSize);\n float dashGapRatio = positionInDashGap / u_dashSize;\n // end additions (dashGapRatio is used below in if)\n\n if (dashGapRatio < 1.0) {\n gl_FragColor = mix(v_color, transparent, t);\n } else {\n discard;\n }\n}\n",4,6),this.IndicesArray=void 0,this.indicesArray=void 0,this.indicesBuffer=void 0,this.indicesType=void 0,this.canUse32BitsIndices=void 0,this.positionLocation=void 0,this.colorLocation=void 0,this.normalLocation=void 0,this.lineLengthLocation=void 0,this.matrixLocation=void 0,this.sqrtZoomRatioLocation=void 0,this.correctionRatioLocation=void 0;const t=e.createBuffer();if(null===t)throw new Error("EdgeProgram: error while creating indicesBuffer");this.indicesBuffer=t,this.positionLocation=e.getAttribLocation(this.program,"a_position"),this.colorLocation=e.getAttribLocation(this.program,"a_color"),this.normalLocation=e.getAttribLocation(this.program,"a_normal"),this.lineLengthLocation=e.getAttribLocation(this.program,"a_lineLength");const n=e.getUniformLocation(this.program,"u_matrix");if(null===n)throw new Error("EdgeProgram: error while getting matrixLocation");this.matrixLocation=n;const r=e.getUniformLocation(this.program,"u_correctionRatio");if(null===r)throw new Error("EdgeProgram: error while getting correctionRatioLocation");this.correctionRatioLocation=r;const i=e.getUniformLocation(this.program,"u_sqrtZoomRatio");if(null===i)throw new Error("EdgeProgram: error while getting sqrtZoomRatioLocation");this.sqrtZoomRatioLocation=i,this.canUse32BitsIndices=(0,Cf.canUse32BitsIndices)(e),this.IndicesArray=this.canUse32BitsIndices?Uint32Array:Uint16Array,this.indicesArray=new this.IndicesArray,this.indicesType=this.canUse32BitsIndices?e.UNSIGNED_INT:e.UNSIGNED_SHORT,this.bind()}bind(){const e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.lineLengthLocation),e.enableVertexAttribArray(this.colorLocation),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.lineLengthLocation,1,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,6*Float32Array.BYTES_PER_ELEMENT,20)}computeIndices(){const e=this.array.length/6,t=e+e/2,n=new this.IndicesArray(t);for(let t=0,r=0;t<e;t+=4)n[r++]=t,n[r++]=t+1,n[r++]=t+2,n[r++]=t+2,n[r++]=t+1,n[r++]=t+3;this.indicesArray=n}bufferData(){super.bufferData();const e=this.gl;e.bufferData(e.ELEMENT_ARRAY_BUFFER,this.indicesArray,e.STATIC_DRAW)}process(e,t,n,r,i){if(r){for(let e=24*i,t=e+24;e<t;e++)this.array[e]=0;return}const o=n.size||1,a=e.x,s=e.y,l=t.x,c=t.y,u=(0,Cf.floatColor)(n.color),d=l-a,f=c-s;let p=d*d+f*f,h=0,m=0;const g=Math.sqrt(p);p&&(p=1/Math.sqrt(p),h=-f*p*o,m=d*p*o);let v=24*i;const y=this.array;y[v++]=a,y[v++]=s,y[v++]=h,y[v++]=m,y[v++]=0,y[v++]=u,y[v++]=a,y[v++]=s,y[v++]=-h,y[v++]=-m,y[v++]=0,y[v++]=u,y[v++]=l,y[v++]=c,y[v++]=h,y[v++]=m,y[v++]=g,y[v++]=u,y[v++]=l,y[v++]=c,y[v++]=-h,y[v++]=-m,y[v++]=g,y[v]=u}render(e){if(this.hasNothingToRender())return;const 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)}}const Kf=Wn({"@global :root":{"--sigma-background-color":"#fff","--sigma-controls-background-color":"#fff","--sigma-controls-background-color-hover":"rgba(0,0,0,0.2)","--sigma-controls-border-color":"rgba(0,0,0,0.2)","--sigma-controls-color":"#000","--sigma-controls-zindex":"100","--sigma-controls-margin":"5px","--sigma-controls-size":"30px"},"@global div.react-sigma":{height:"100%",width:"100%",position:"relative",background:"var(--sigma-background-color)"},"@global div.sigma-container":{height:"100%",width:"100%"},"@global .react-sigma-controls":{position:"absolute",zIndex:"var(--sigma-controls-zindex)",border:"2px solid var(--sigma-controls-border-color)",borderRadius:"4px",color:"var(--sigma-controls-color)",backgroundColor:"var(--sigma-controls-background-color)"},"@global .react-sigma-controls.bottom-right":{bottom:"var(--sigma-controls-margin)",right:"var(--sigma-controls-margin)"},"@global .react-sigma-controls.bottom-left":{bottom:"var(--sigma-controls-margin)",left:"var(--sigma-controls-margin)"},"@global .react-sigma-controls.top-right":{top:"var(--sigma-controls-margin)",right:"var(--sigma-controls-margin)"},"@global .react-sigma-controls.top-left":{top:"var(--sigma-controls-margin)",left:"var(--sigma-controls-margin)"},"@global .react-sigma-controls:first-child":{borderTopLeftRadius:"2px",borderTopRightRadius:"2px"},"@global .react-sigma-controls:last-child":{borderBottomLeftRadius:"2px",borderBottomRightRadius:"2px"},"@global .react-sigma-control":{width:"var(--sigma-controls-size)",height:"var(--sigma-controls-size)",lineHeight:"var(--sigma-controls-size)",backgroundColor:"var(--sigma-controls-background-color)",borderBottom:"1px solid var(--sigma-controls-border-color)"},"@global .react-sigma-control:last-child":{borderBottom:"none"},"@global .react-sigma-control > *":{boxSizing:"border-box"},"@global .react-sigma-control > button":{display:"block",border:"none",margin:"0",padding:"0",width:"var(--sigma-controls-size)",height:"var(--sigma-controls-size)",lineHeight:"var(--sigma-controls-size)",backgroundPosition:"center",backgroundSize:"50%",backgroundRepeat:"no-repeat",backgroundColor:"var(--sigma-controls-background-color)",clip:"rect(0,0,0,0)"},"@global .react-sigma-control > button:hover":{backgroundColor:"var(--sigma-controls-background-color-hover)"},"@global .react-sigma-search":{backgroundColor:"var(--sigma-controls-background-color)"},"@global .react-sigma-search label":{visibility:"hidden"},"@global .react-sigma-search input":{color:"var(--sigma-controls-color)",backgroundColor:"var(--sigma-controls-background-color)",fontSize:"1em",width:"100%",margin:"0",border:"none",padding:"var(--sigma-controls-margin)",boxSizing:"border-box"}}),Qf=({children:n,initialSettings:r})=>{Kf();const i=(0,e.useMemo)((()=>(0,w.mergeDeepRight)({allowInvalidContainer:!0,defaultNodeType:"image",hoverRenderer:zf,labelRenderer:Af,nodeProgramClasses:{image:(0,wf.createNodeCompoundProgram)([Uf,If])},edgeProgramClasses:{line:Sf(),arrow:(0,Ef.createEdgeCompoundProgram)([Yf,Wf]),doubleArrow:(0,Ef.createEdgeCompoundProgram)([Yf,Wf,qf]),dashed:Xf},labelFont:"Roboto",labelSize:13,labelColor:{color:"rgba(0, 0, 0, 0.87)",attribute:"labelColor"},secondaryLabelColor:{color:"rgba(0, 0, 0, 0.54)",attribute:"secondaryLabelColor"}},r||{})),[r]);return t().createElement(xf,{graph:af.MultiGraph,style:{background:"transparent"},settings:i},t().createElement(Pf,null,t().createElement(Mf,null),n))};var Jf=ae(8833),ep=ae.n(Jf),tp=ae(3660),np=ae.n(tp),rp=ae(8301),ip=ae.n(rp),op=ae(1181);function ap(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){sp(e,t,n[t])}))}return e}function sp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lp=({graph:t,newNodesIds:n,animationDuration:r,relayoutTrigger:i})=>{const o=(0,e.useMemo)((()=>(ep().assign(t),{settings:ap({},np().inferSettings(t),{gravity:1})})),[t]);((r,i)=>{const o=(0,e.useRef)(!1);(0,e.useEffect)((()=>{o.current?(()=>{if(null!=n&&n.length){const e=t.copy();ep().assign(e),n.forEach((n=>{t.setNodeAttribute(n,"x",e.getNodeAttribute(n,"x")),t.setNodeAttribute(n,"y",e.getNodeAttribute(n,"y"))}))}})():o.current=!0}),i)})(0,[n]),(({graph:t,syncLayout:n,workerLayout:r,layoutSettings:i,initialCameraRatio:o=1.2,animationDuration:a,relayoutTrigger:s})=>{const l=pf(),c=function(){const t=pf();return(0,e.useCallback)(((e,n=!0)=>{t&&e&&(n&&t.getGraph().order>0&&t.getGraph().clear(),t.getGraph().import(e),t.refresh())}),[t])}();(0,e.useEffect)((()=>{l.getCamera().setState({ratio:o})}),[t,l,o]),(0,e.useEffect)((()=>{if(c(t),n){const e=n(l.getGraph(),i);(0,op.animateNodes)(l.getGraph(),e,{duration:a||1e3})}if(r){const e=new r(l.getGraph(),i);e.start();const t=setTimeout((()=>{e.stop()}),a||5e3);return()=>{clearTimeout(t),e.kill()}}}),[t,i,c,l,n,r,a,s])})({workerLayout:ip(),layoutSettings:o,animationDuration:r,graph:t,relayoutTrigger:i})};let cp=function(e){return e.entityType="entityType",e.interactionType="interactionType",e}({});const up=.4,dp=(e,t,n,r=0)=>({x1:e-7*(n+r),y1:t,x2:e,y2:t+7*(n+r)}),fp=(e,t,n,r,i,o,a)=>({aX:e+(r-e)*(n-a-o)/n,aY:t+(i-t)*(n-a-o)/n,vX:(r-e)*a/n,vY:(i-t)*a/n}),pp=(e,t,n,r,i)=>{e.beginPath(),e.moveTo(t+r,n+i),e.lineTo(t+i*up,n-r*up),e.lineTo(t-i*up,n+r*up),e.lineTo(t+r,n+i),e.closePath(),e.fill()};function hp(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){mp(e,t,n[t])}))}return e}function mp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gp=t=>{const n=pf(),{addRenderers:r,canvases:i}=(0,e.useContext)(Rf),o=(0,e.useRef)({}),{selfRelationLoops:a}=i;return(0,e.useEffect)((()=>{r({selfRelationLoops:{renderer:e=>{t.forEachEdge(((t,r,i)=>{if(r.loop){delete o.current[t];const r=n.getEdgeDisplayData(t),a=n.getNodeDisplayData(i);if(r.hidden||a.hidden)return;const s=((e,t,n)=>{const{size:r,color:i,arrowSizeRatio:o=1}=t,a=n.x,s=n.y,l=n.size,c=dp(a,s,.6*l);e.strokeStyle=i,e.lineWidth=r;const u=new Path2D;if("arrow"===t.type||"doubleArrow"===t.type){if(e.fillStyle=i,"doubleArrow"===t.type){const t=((e,t,n,r,i)=>{const o=Math.sqrt(Math.pow(t-e.x1,2)+Math.pow(n-e.y1,2));return fp(e.x2,e.y2,o,t,n,r,i)})(c,a,s,l,r*o*2.2);pp(e,t.aX,t.aY,t.vX,t.vY),u.moveTo(t.aX,t.aY)}else u.moveTo(a,s);const n=((e,t,n,r,i)=>{const o=Math.sqrt(Math.pow(t-e.x1,2)+Math.pow(n-e.y1,2));return fp(e.x1,e.y1,o,t,n,r,i)})(c,a,s,l,r*o*2.2);u.bezierCurveTo(c.x2,c.y2,c.x1,c.y1,n.aX,n.aY),e.stroke(u),pp(e,n.aX,n.aY,n.vX,n.vY)}else u.moveTo(a,s),u.bezierCurveTo(c.x1,c.y1,c.x2,c.y2,a,s),e.stroke(u);return u})(e,hp({},r,{size:n.scaleSize(r.size)}),hp({},a,n.framedGraphToViewport(a),{size:n.scaleSize(a.size)}));o.current[t]=s}}))},insertBefore:"edges"}})}),[r,t,n]),{selfRelationsPathsMap:o.current,selfRelationLoopsCanvas:a}},vp=(e,t,n,r)=>{const i=r.getEdgeDisplayData(e),o=r.getNodeDisplayData(t),a=r.getNodeDisplayData(n),s=r.framedGraphToViewport({x:o.x,y:o.y}),l=r.framedGraphToViewport({x:a.x,y:a.y}),c=i.loop&&(()=>{const{x1:e,y1:t,x2:n,y2:i}=dp(s.x,s.y,.6*r.scaleSize(o.size));return((e,t,n,r,i,o,a,s)=>({x:.125*e+.375*i+.375*a+.125*n,y:.125*t+.375*o+.375*s+.125*r}))(s.x,s.y,s.x,s.y,e,t,n,i)})(),u=e=>s[e]+(l[e]-s[e])/2;return{x:i.loop?c.x:u("x"),y:i.loop?c.y:u("y")}};function yp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bp="customEdgeLabels",xp="edgeDots",wp="customEdgeLabelsHovers";function Ep(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _p(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Sp(e,t,n[t])}))}return e}function Sp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Cp={type:"image",size:28,color:"rgba(55, 71, 79, 1)"},Op={size:1},kp="rgba(224, 224, 224, 1)",Lp="rgba(0, 0, 0, 0.38)",Rp=({graph:t,selectedNode:n,onNodeClick:r,selectedEdges:i,onEdgeLabelClick:o,hideInteractionTypes:a})=>(lp({graph:t,animationDuration:3e3}),(({graph:t,selectedNode:n,selectedEdges:r,onNodeClick:i,onEdgeLabelClick:o,hideInteractionTypes:a,relationEdgesLabelsAmountThreshold:s=29})=>{const l=pf(),{container:c}=ff(),[u,d]=(0,e.useState)(null),f=bf(),p=hf();gp(t);const h=(({graph:t,onEdgeLabelClick:n})=>{const r=pf(),i=r.getSettings(),o=bf(),{addRenderers:a,canvasesRef:s}=Lf(),{[bp]:l}=s.current,c=(0,e.useRef)({}),[u,d]=(0,e.useState)(),[f,p]=(0,e.useState)(!1),h=(0,e.useCallback)(((e,t,n)=>{const i=r.getEdgeDisplayData(e),o=r.getNodeDisplayData(t),a=r.getNodeDisplayData(n);return[o.nodeType,a.nodeType].every((e=>e===cp.entityType))&&!i.hidden&&i.label}),[r]),m=(0,e.useCallback)(((e,t,n,o)=>{delete c.current[t];const a=r.getEdgeDisplayData(t);if(h(t,n,o)){const s=u===t,l=a.selected,d=s?1.2:1,{x:f,y:p}=vp(t,n,o,r),h=Af(e,{label:a.label,labelColor:a.labelColor,x:f,y:p,size:r.scaleSize(4)},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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){yp(e,t,n[t])}))}return e}({},i,{labelSize:i.labelSize*d}),{backgroundColor:`rgba(250, 250, 250, ${l||s?"1":"0.9"})`,borderColor:l?"#0072CE":void 0});c.current[t]=h}}),[r,u,h]),g=(0,e.useCallback)(((e,t,n,i)=>{const o=r.getEdgeDisplayData(t);if(h(t,n,i)){const a=u===t,s=o.selected,l=a||s?1.4:1,c=r.scaleSize(2*l),{x:d,y:f}=vp(t,n,i,r);e.beginPath(),e.arc(d,f,c,0,2*Math.PI),e.fillStyle=(0,E.rgbaToRgb)(o.color),e.fill()}}),[r,u,h]);return(0,e.useEffect)((()=>{let e;const t=()=>{const{[bp]:n}=s.current;n?p(!0):e=setTimeout(t,100)};return t(),()=>{clearTimeout(e)}}),[s]),(0,e.useEffect)((()=>{o({click:e=>{u&&(n(u,e.original),d(null))},mousemove:e=>{if(!l)return;const{context:t,canvasElement:n}=l,{x:r,y:i}=((e,t)=>{const n=e.getBoundingClientRect();return{x:(t.clientX-n.left)/(n.right-n.left)*e.width,y:(t.clientY-n.top)/(n.bottom-n.top)*e.height}})(n,e.original);let o=null;for(const e in c.current){const n=c.current[e];if(t.isPointInPath(n,r,i)){o=e;break}o=null}d(o)}})}),[r,l,o,u,n,f]),(0,e.useEffect)((()=>{a({[bp]:{renderer:e=>{t.forEachEdge(((t,n,r,i)=>{t!==u&&m(e,t,r,i)}))},insertBefore:"labels"}})}),[a,t,m,u]),(0,e.useEffect)((()=>{a({[xp]:{renderer:e=>{t.forEachEdge(((t,n,r,i)=>{t!==u&&g(e,t,r,i)}))},insertBefore:"edgeLabels"}})}),[a,t,g,u]),(0,e.useEffect)((()=>{a({[wp]:{renderer:e=>{t.forEachEdge(((t,n,r,i)=>{t===u&&(m(e,t,r,i),g(e,t,r,i))}))},insertBefore:"hovers"}})}),[a,t,m,g,u]),u})({graph:t,onEdgeLabelClick:o});(t=>{const n=pf(),{addRenderers:r}=Lf();(0,e.useEffect)((()=>{r({selectedNodeBorder:{renderer:e=>{t.forEachNode((t=>{const r=n.getNodeDisplayData(t);if(!r.selected)return;const i=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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Ep(e,t,n[t])}))}return e}({},r,n.framedGraphToViewport(r),{size:n.scaleSize(r.size)});Df(e,i)}))},insertBefore:bp}})}),[r,t,n])})(t);const m=(0,e.useMemo)((()=>t.reduceEdges(((e,t,n)=>{var r;return(null===(r=n.relationTypes)||void 0===r?void 0:r.length)>0?e+1:e}),0)),[t]);(0,e.useEffect)((()=>{f({enterNode:({node:e})=>{d(e)},leaveNode:()=>{d(null)},clickNode:({node:e})=>{i(e)}})}),[l,f,i]),(0,e.useEffect)((()=>{c.style.cursor=u||h?"pointer":"default"}),[c,u,h]),(0,e.useEffect)((()=>{const e=l.getGraph();let t;try{t=e.neighbors(n)}catch{}p({nodeReducer:(i,o)=>{const s=i===n,l=n&&t&&[...t,n].every((e=>e!==i))||(null==r?void 0:r.length)>0&&r.every((t=>!e.hasExtremity(t,i)))||!1,c=_p({},Cp,o);return o.nodeType===cp.interactionType&&(c.hasBorder=!0,c.image=(0,E.svg2Url)('\n<svg id="123" width="500px" height="500px" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">\n <circle cx="25" cy="25" r="25" fill="#E7EAED" stroke="#E7EAED" stroke-width="0"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M26 26.1458C26.1784 26.3176 26.3127 26.5349 26.3841 26.7791L28.7321 28.1346C28.9712 28.2727 29.0531 28.5785 28.9151 28.8177L28.4151 29.6837C28.277 29.9228 27.9712 30.0048 27.7321 29.8667L25.4564 28.5529C25.313 28.6007 25.1595 28.6266 25 28.6266C24.8405 28.6266 24.687 28.6007 24.5436 28.5529L22.2679 29.8667C22.0288 30.0048 21.723 29.9228 21.5849 29.6837L21.0849 28.8177C20.9469 28.5785 21.0288 28.2727 21.2679 28.1346L23.6159 26.7791C23.6873 26.5349 23.8216 26.3176 24 26.1458V23.8846C24 23.6085 24.2239 23.3846 24.5 23.3846H25.5C25.7761 23.3846 26 23.6085 26 23.8846V26.1458ZM24.8 22.3846C23.1431 22.3846 21.8 21.0415 21.8 19.3846C21.8 17.7278 23.1431 16.3846 24.8 16.3846C26.4569 16.3846 27.8 17.7278 27.8 19.3846C27.8 21.0415 26.4569 22.3846 24.8 22.3846ZM18 34.3846C16.3431 34.3846 15 33.0415 15 31.3846C15 29.7278 16.3431 28.3846 18 28.3846C19.6569 28.3846 21 29.7278 21 31.3846C21 33.0415 19.6569 34.3846 18 34.3846ZM32 34.3846C30.3431 34.3846 29 33.0415 29 31.3846C29 29.7278 30.3431 28.3846 32 28.3846C33.6569 28.3846 35 29.7278 35 31.3846C35 33.0415 33.6569 34.3846 32 34.3846Z" fill="#37474F"/>\n</svg>\n')),l&&(c.inactive=!0,c.labelColor=Lp,c.secondaryLabelColor=Lp),s&&(c.selected=!0,c.zIndex=100),u===i||s||delete c.secondaryLabel,o.nodeType===cp.interactionType&&a&&(c.hidden=!0),c},edgeReducer:(t,i)=>{const o="dashed"===i.type,a=_p({},Op,i),l=null==r?void 0:r.includes(t);a.selected=l;const c=m>s;return n?e.hasExtremity(t,n)?a.color=o?"rgba(79, 79, 79, 1)":"rgba(130, 130, 130, 1)":(a.color=kp,a.labelColor=Lp,c&&delete a.label):null!=r&&r.length?(a.color=l?"rgba(79, 79, 79, 1)":kp,a.labelColor=l?void 0:Lp,c&&!l&&delete a.label):(a.color="rgba(0, 0, 0, 0.2)",c&&delete a.label),a}})}),[l,p,n,r,h,u,m,s,a])})({graph:t,selectedNode:n,selectedEdges:i,onNodeClick:r,onEdgeLabelClick:o,hideInteractionTypes:a}),null);var Pp=ae(6439),Mp=ae.n(Pp),Ap=ae(5608),Tp=ae.n(Ap);function Dp(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){zp(e,t,n[t])}))}return e}function zp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fp="0 1px 1px rgba(0,0,0,0.14), 0 2px 1px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.2)",Np={background:"#FFFFFF",boxShadow:Fp,width:"28px",height:"28px"},Ip=Wn({container:{display:"flex",alignItems:"center"},maxButton:Dp({},Np,{borderRadius:"2px 4px 4px 2px"}),minButton:Dp({},Np,{borderRadius:"4px 2px 2px 4px"}),thumb:{boxShadow:Fp,borderRadius:"2px",width:"8px",height:"28px",marginLeft:"5px",color:"rgba(0,0,0,0.54)",backgroundColor:"#FFFFFF","&.MuiSlider-thumb.Mui-focusVisible, &:hover":{boxShadow:Fp},"&:before":{boxShadow:"none"}},thumbIcon:{transform:"rotate(90deg)"},icon:{width:"18px",height:"18px"},rail:{opacity:1,height:"4px",paddingRight:"10px",marginTop:"1px"},sliderRoot:{color:"#EDEDED",marginRight:"10px",height:"2px"}}),jp=e=>Math.pow(100/e,2),Bp=e=>100/Math.sqrt(e),Gp=e=>{const{children:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["children"]),i=Ip();return t().createElement(Ap.SliderThumb,r,n,t().createElement(Mp(),{className:Qn()(i.icon,i.thumbIcon)}))},Up=({className:n,max:r,min:i})=>{const o=Ip(),a=hf(),s=bf(),l=pf().getCamera(),{zoomIn:c,zoomOut:u}=function(t){const n=pf(),r=(0,e.useRef)();(0,lf.isEqual)(r.current,t)||(r.current=t);const i=(0,e.useCallback)((e=>{n.getCamera().animatedZoom(Object.assign(Object.assign({},r.current),e))}),[n,r]),o=(0,e.useCallback)((e=>{n.getCamera().animatedUnzoom(Object.assign(Object.assign({},r.current),e))}),[n,r]),a=(0,e.useCallback)((e=>{n.getCamera().animatedReset(Object.assign(Object.assign({},r.current),e))}),[n,r]),s=(0,e.useCallback)(((e,t)=>{n.getCamera().animate(e,Object.assign(Object.assign({},r.current),t))}),[n,r]),l=(0,e.useCallback)(((e,t)=>{const i=n.getNodeDisplayData(e);i?n.getCamera().animate(i,Object.assign(Object.assign({},r.current),t)):console.log(`Node ${e} not found`)}),[n,r]);return{zoomIn:i,zoomOut:o,reset:a,goto:s,gotoNode:l}}({factor:1.2}),[d,f]=(0,e.useState)((0,w.clamp)(i,r,Bp(l.getState().ratio))),p=(0,e.useMemo)((()=>i>0?jp(i):null),[i]),h=(0,e.useMemo)((()=>r>0?jp(r):null),[r]);return(0,e.useEffect)((()=>(a({maxCameraRatio:p,minCameraRatio:h}),()=>{a({maxCameraRatio:null,minCameraRatio:null})})),[a,h,p]),(0,e.useEffect)((()=>{s({updated:e=>f(Bp(e.ratio))})}),[s]),t().createElement("div",{className:Qn()(o.container,n)},t().createElement(cs(),{"data-reltio-id":"zoom-out-button",className:o.minButton,onClick:()=>u(),size:"large"},t().createElement(Mp(),{className:o.icon})),t().createElement(Tp(),{slots:{thumb:Gp},slotProps:{thumb:{className:o.thumb}},classes:{root:o.sliderRoot,rail:o.rail},track:!1,value:d,min:i,max:r,onChange:(e,t)=>l.setState({ratio:l.getBoundedRatio(jp(t))})}),t().createElement(cs(),{"data-reltio-id":"zoom-in-button",className:o.maxButton,onClick:()=>c(),size:"large"},t().createElement(al(),{className:o.icon})))},Hp=Wn({wrapper:{height:"100%",position:"relative",background:"rgb(245, 245, 245)"},graph:{height:"100%"},rightBottomControls:{position:"absolute",zIndex:100,right:"18px",bottom:"16px",display:"flex",width:"200px"},zoomSlider:{flexGrow:1,marginRight:"8px"}}),Vp={labelRenderedSizeThreshold:11,zIndex:!0},Wp=({graph:e,children:n,selectedNode:r,onNodeClick:i=w.identity,selectedEdges:o,onEdgeLabelClick:a=w.identity,hideInteractionTypes:s})=>{const l=Hp();return t().createElement("div",{className:l.wrapper},t().createElement("div",{className:l.graph},e&&t().createElement(Qf,{initialSettings:Vp},t().createElement(t().Fragment,null,t().createElement(Rp,{graph:e,selectedNode:r,onNodeClick:i,selectedEdges:o,onEdgeLabelClick:a,hideInteractionTypes:s}),t().createElement("div",{className:l.rightBottomControls},t().createElement(Up,{className:l.zoomSlider,min:30,max:300}))))),n)},qp=Wn((e=>({summaryContainer:{position:"absolute",top:12,left:16,zIndex:1,display:"flex",justifyContent:"space-between",alignItems:"center",height:32,padding:"0 16px",borderRadius:32,backgroundColor:e.palette.background.paper},summaryDivider:{height:4,width:4,margin:"0 24px",borderRadius:"50%",backgroundColor:"#D9D9D9"},summaryItem:{display:"flex",alignItems:"center"},summaryItemName:{marginRight:8,color:e.palette.text.secondary,fontSize:13},summaryItemValue:{color:e.palette.text.primary,fontSize:18}}))),$p=()=>{const e=qp(),{entityTypes:n=[],interactionTypes:r=[],relationTypes:i=[]}=O();return t().createElement("div",{className:e.summaryContainer},t().createElement("div",{className:e.summaryItem},t().createElement("span",{className:e.summaryItemName},L().text("Entity types")),t().createElement("span",{className:e.summaryItemValue},n.length)),t().createElement("div",{className:e.summaryDivider}),t().createElement("div",{className:e.summaryItem},t().createElement("span",{className:e.summaryItemName},L().text("Interaction types")),t().createElement("span",{className:e.summaryItemValue},r.length)),t().createElement("div",{className:e.summaryDivider}),t().createElement("div",{className:e.summaryItem},t().createElement("span",{className:e.summaryItemName},L().text("Relationship types")),t().createElement("span",{className:e.summaryItemValue},i.length)))};function Zp(){return Zp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zp.apply(null,arguments)}const Yp=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",Zp({width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("rect",{width:"8",height:"8",rx:"4",fill:"#006"}))};function Xp(){return Xp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xp.apply(null,arguments)}const Kp=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",Xp({width:"8",height:"8",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("rect",{x:".5",y:".5",width:"8",height:"8",rx:"4",stroke:"#006",strokeDasharray:"4 2"}))};function Qp(){return Qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qp.apply(null,arguments)}const Jp=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",Qp({width:"16",height:"4",viewBox:"0 0 16 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 0l4 2-4 2V2.5H0v-1h12V0z",fill:"#006"}))},eh=Wn((e=>({legendContainer:{position:"absolute",bottom:18,left:16,zIndex:1,display:"flex",justifyContent:"space-between",alignItems:"center",height:28,padding:"0 16px",borderRadius:32,backgroundColor:e.palette.background.paper},legendItem:{display:"flex",alignItems:"center","&:not(:first-child)":{marginLeft:16}},legendItemName:{marginLeft:8,color:e.palette.text.secondary,fontSize:12}}))),th=()=>{const e=eh();return t().createElement("div",{className:e.legendContainer},t().createElement("div",{className:e.legendItem},t().createElement(Yp,null),t().createElement("span",{className:e.legendItemName},L().text("Entity type"))),t().createElement("div",{className:e.legendItem},t().createElement(Kp,null),t().createElement("span",{className:e.legendItemName},L().text("Interaction type"))),t().createElement("div",{className:e.legendItem},t().createElement(Jp,null),t().createElement("span",{className:e.legendItemName},L().text("Relationship type"))))};var nh=ae(2811),rh=ae.n(nh),ih=ae(9844),oh=ae.n(ih);const ah=Wn((e=>({checkbox:{position:"absolute",top:12,right:16,zIndex:1},checkboxLabel:{fontSize:13,color:e.palette.text.primary}}))),sh=({isChecked:e,onChange:n})=>{const r=ah();return t().createElement(oh(),{classes:{label:r.checkboxLabel},className:r.checkbox,control:t().createElement(rh(),{checked:e,onChange:n,size:"medium"}),label:L().text("Hide Interaction types")})};var lh=ae(3526),ch=ae.n(lh);const uh="68px",dh=Wn({container:{display:"flex",alignItems:"center",height:"32px",minHeight:"32px",padding:0},text:{display:"flex",width:`calc(100% - ${uh})`},textItem:{fontSize:"13px",lineHeight:"15px",marginRight:10},primaryTextItem:{flex:"45 0",flexBasis:0,overflow:"hidden",textOverflow:"ellipsis"},secondaryTextItem:{flex:"56 0",flexBasis:0,overflow:"hidden",textOverflow:"ellipsis"},icons:{transform:"scale(0.5)",position:"relative",flexShrink:0,width:uh,bottom:"10px"},iconTop:{position:"absolute",top:0,left:0,zIndex:1},iconBottom:{position:"absolute",top:0,left:26,zIndex:0}}),fh=(0,e.memo)((({relationType:e,onSelect:n})=>{const r=dh(),{startObject:i,endObject:o,direction:a}=e,s=(0,E.getLabel)(e.label),l=(0,_.useSelector)(C().selectors.getMetadata),c=(0,E.getEntityType)(l,i.objectTypeURI),u=(0,E.getEntityType)(l,o.objectTypeURI),d=(0,E.getLabel)(c.label)+` ${(e=>{switch(e){case E.RelationTypeDirection.directed:return"→";case E.RelationTypeDirection.bidirectional:default:return"↔"}})(a)} `+(0,E.getLabel)(u.label);return t().createElement(Ls(),{className:r.container,onClick:()=>n(e.uri)},t().createElement("div",{className:r.icons},t().createElement(Wl,{className:r.iconTop,entityType:c}),t().createElement(Wl,{className:r.iconBottom,entityType:u})),t().createElement("div",{className:r.text},t().createElement(Vs,{value:s},t().createElement(A(),{className:Qn()(r.textItem,r.primaryTextItem)},s)),t().createElement(Vs,{value:d},t().createElement(A(),{color:"textSecondary",className:Qn()(r.textItem,r.secondaryTextItem)},d))))}));fh.displayName="RelationTypesMenuItem";const ph=Wn({paper:{minWidth:"395px",maxWidth:"460px",maxHeight:"min(calc(100vh - 100px), 500px)"}});function hh(){return hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hh.apply(null,arguments)}const mh=(0,e.memo)((e=>{let{relationTypes:n,onSelect:r}=e,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["relationTypes","onSelect"]);const o=ph();return t().createElement(ch(),hh({},i,{slotProps:{paper:{className:o.paper}}}),n.map((e=>t().createElement(fh,{key:e.uri,relationType:e,onSelect:r}))))}));function gh(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}mh.displayName="RelationTypesMenu";const vh="-###-",yh=(e,t)=>[e,t].sort().join(vh),bh=e=>({id:e,startNode:e.split(vh)[0],endNode:e.split(vh)[1]}),xh=(e,t)=>Object.entries(t).filter((([t,n])=>n.includes(e))).map((([e])=>e)),wh=()=>{const t=(0,_.useSelector)(C().selectors.getMetadata),{entityTypes:n,relationTypes:r,interactionTypes:i}=O(),o=(0,_.useSelector)(C().selectors.getAbsoluteImagePath)||"",a=(0,e.useMemo)((()=>{const e=new(sf()),a={};(n||[]).forEach((n=>{var r;a[n.uri]=(0,E.getInheritancePath)(t,n.uri),e.addNode(n.uri,{nodeType:cp.entityType,label:n.label,secondaryLabel:L().text("${count} attributes",{count:(null===(r=n.attributes)||void 0===r?void 0:r.length)||0}),image:(0,E.getAbsoluteImageUrl)(o,(0,E.getEntityTypeImage)(t,n))})})),(i||[]).forEach((t=>{var n;e.addNode(t.uri,{nodeType:cp.interactionType,label:t.label,secondaryLabel:L().text("${count} attributes",{count:(null===(n=t.attributes)||void 0===n?void 0:n.length)||0})})}));const s=((e=[],t)=>{const n=(e||[]).reduce(((e,n)=>((n.memberTypes||[]).forEach((({objectTypeURI:r})=>{xh(r,t).forEach((t=>{const r=yh(n.uri,t);e[r]=e[r]||bh(r)}))})),e)),{});return Object.values(n)})(i,a);s.forEach((({id:t,startNode:n,endNode:r})=>{e.addEdgeWithKey(t,n,r,{type:"dashed"})}));const l=((e=[],t)=>{const n=(e||[]).reduce(((e,n)=>{var r,i;const o=xh(null===(r=n.startObject)||void 0===r?void 0:r.objectTypeURI,t),a=xh(null===(i=n.endObject)||void 0===i?void 0:i.objectTypeURI,t);return o.forEach((t=>{a.forEach((r=>{const i=yh(t,r);e[i]=e[i]||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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){gh(e,t,n[t])}))}return e}({},bh(i),{relationTypes:[]}),e[i].relationTypes.includes(n)||e[i].relationTypes.push(n)}))})),e}),{});return Object.values(n)})(r,a);return l.forEach((({id:t,startNode:n,endNode:r,relationTypes:i})=>{e.addEdgeWithKey(t,n,r,{relationTypes:i,label:String(i.length),loop:n===r})})),e}),[t,n,r,i,o]);return a},Eh=Wn({graphContainer:{flexGrow:1}}),_h=({currentMetadataTypeUri:n,onChangeMetadataTypeUri:r})=>{const i=Eh(),o=wh(),a=(0,E.isRelationTypeUri)(n),s=(0,e.useMemo)((()=>a?o.reduceEdges(((e,t,r)=>{var i;return null!==(i=r.relationTypes)&&void 0!==i&&i.some((e=>e.uri===n))&&e.push(t),e}),[]):[]),[a,o,n]),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(),[f,p]=(0,e.useState)(),h=(0,e.useCallback)(((e,t)=>{d({left:t.clientX,top:t.clientY}),p(e)}),[]),m=(0,e.useMemo)((()=>{var e;return f&&(null===(e=o.getEdgeAttributes(f))||void 0===e?void 0:e.relationTypes)||[]}),[o,f]),g=(0,e.useCallback)((()=>{d(null),p(null)}),[]),v=(0,e.useCallback)((e=>{r(e),g()}),[r,g]);return t().createElement("div",{className:i.graphContainer},t().createElement(Wp,{graph:o,selectedNode:n&&!a?n:null,onNodeClick:r,selectedEdges:s,onEdgeLabelClick:h,hideInteractionTypes:l},t().createElement(sh,{isChecked:l,onChange:()=>{!l&&(0,E.isInteractionTypeUri)(n)&&r(n),c((e=>!e))}}),t().createElement($p,null),t().createElement(th,null)),t().createElement(mh,{relationTypes:m,open:Boolean(u),onClose:g,anchorReference:"anchorPosition",anchorPosition:u,onSelect:v}))};class Sh extends t().Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){this.setState({error:e}),console.error(e)}render(){const{children:e,error:t}=this.props;return this.state.error?t:e}}var Ch=ae(5206),Oh=ae.n(Ch);function kh(){return kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kh.apply(null,arguments)}function Lh(){return Lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lh.apply(null,arguments)}function Rh(){return Rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rh.apply(null,arguments)}function Ph(){return Ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ph.apply(null,arguments)}function Mh(){return Mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mh.apply(null,arguments)}function Ah(){return Ah=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ah.apply(null,arguments)}const Th=Wn((e=>({root:{display:"flex",flex:"1 1 auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"10px",overflow:"auto",height:"100%",minHeight:"350px",boxSizing:"border-box","&$root_small":{minHeight:"160px"},"& $text":{color:e.palette.text.primary,fontSize:"20px",fontWeight:500,lineHeight:"24px",letterSpacing:"0.25px",textAlign:"center"},"& $secondaryText":{color:e.palette.text.secondary,fontSize:"15px",fontWeight:300,lineHeight:"18px",letterSpacing:"0.11px",textAlign:"center",paddingTop:"3px"}},root_small:{},small:{width:"88px",height:"88px"},embedded:{flexShrink:0,width:"190px",height:"190px",padding:"8px"},full:{width:"256px",height:"256px"},textBox:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:500,marginTop:"16px"},text:{},secondaryText:{},button:{minHeight:36,minWidth:64,maxWidth:500,padding:"10px 16px",borderRadius:"2px",boxShadow:"0 0 2px 0 rgba(0,0,0,0.12), 0 2px 2px 0 rgba(0,0,0,0.24), 0 0 8px 0 rgba(0,0,0,0.12), 0 8px 8px 0 rgba(0,0,0,0.24)",fontSize:"14px",fontWeight:500,lineHeight:"16px",marginTop:"24px"}})));function Dh(){return Dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dh.apply(null,arguments)}let zh=function(e){return e.full="full",e.embedded="embedded",e.small="small",e}({});const Fh={SEARCH_RESULTS:e=>t().createElement("svg",kh({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","data-reltio-id":"SvgEmptySearchResults"},e),t().createElement("defs",null,t().createElement("radialGradient",{cx:"50%",cy:"100%",fx:"50%",fy:"100%",r:"81.681%",gradientTransform:"matrix(.98998 0 0 .612 .005 .388)",id:"EmptySearchResults_svg__c"},t().createElement("stop",{stopColor:"#00BFFF",stopOpacity:.5,offset:"0%"}),t().createElement("stop",{stopColor:"#9EE8FF",stopOpacity:0,offset:"100%"})),t().createElement("radialGradient",{cx:"50%",cy:"111.651%",fx:"50%",fy:"111.651%",r:"87.693%",gradientTransform:"matrix(0 -.97693 .7263 0 -.31 1.605)",id:"EmptySearchResults_svg__f"},t().createElement("stop",{stopColor:"#91F8E5",stopOpacity:.6,offset:"0%"}),t().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),t().createElement("radialGradient",{cx:"50%",cy:"103.659%",fx:"50%",fy:"103.659%",r:"90.207%",gradientTransform:"matrix(0 -1 2.23905 0 -1.821 1.537)",id:"EmptySearchResults_svg__g"},t().createElement("stop",{stopColor:"#FFF",offset:"0%"}),t().createElement("stop",{stopColor:"#73FAFF",stopOpacity:.21,offset:"59.38%"}),t().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),t().createElement("linearGradient",{x1:"50%",y1:"170.771%",x2:"50%",y2:"10.303%",id:"EmptySearchResults_svg__e"},t().createElement("stop",{stopColor:"#91F8E5",offset:"0%"}),t().createElement("stop",{stopColor:"#99FCFF",stopOpacity:0,offset:"100%"})),t().createElement("filter",{x:"-25.9%",y:"-26.2%",width:"151.8%",height:"152.3%",filterUnits:"objectBoundingBox",id:"EmptySearchResults_svg__d"},t().createElement("feGaussianBlur",{stdDeviation:15,in:"SourceGraphic"})),t().createElement("circle",{id:"EmptySearchResults_svg__a",cx:128,cy:128,r:128})),t().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},t().createElement("mask",{id:"EmptySearchResults_svg__b",fill:"#fff"},t().createElement("use",{xlinkHref:"#EmptySearchResults_svg__a"})),t().createElement("use",{fillOpacity:.2,fill:"#A792CD",xlinkHref:"#EmptySearchResults_svg__a"}),t().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},t().createElement("g",{transform:"translate(56 34)"},t().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},t().createElement("path",{d:"M0 6.99C0 3.13 3.137 0 7 0h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H7c-3.866 0-7-3.143-7-6.99V6.99z"}),t().createElement("path",{d:"M13 25.99c0-3.86 3.137-6.99 7-6.99h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H20c-3.866 0-7-3.143-7-6.99V25.99z",opacity:.4})),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 45.833)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),t().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),t().createElement("path",{d:"M35.365.861h69.768a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M34.274 15.048h126.164a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),t().createElement("rect",{fill:"#645F6D",opacity:.5,x:21.756,y:17.46,width:87.022,height:12.004,rx:6.002}),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 87.302)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),t().createElement("rect",{fill:"#E3EBF4",x:0,y:1.091,width:20.668,height:20.734,rx:10.334}),t().createElement("path",{d:"M35.365.861h82.647a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M34.274 15.048H174.58a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M33.182 24.869h113.119a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 128.77)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),t().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),t().createElement("path",{d:"M35.365.861h110.929a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M34.274 15.048h92.443a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})))),t().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},t().createElement("path",{fill:"#446275",d:"M72.246 84.033l8.66 5-35.5 61.488-8.66-5-12.556-24.729-51.307-29.622 20.431-35.388 50.648 29.242z"}),t().createElement("path",{d:"M62.906 120.21l-80.091-46.24 10.5-18.188 50.647 29.242 28.284-.99 8.66 5-18 31.176z",fillOpacity:.2,fill:"#FFF"}),t().createElement("path",{d:"M27.566 75.558L3.877 109.065l-5.013-2.895 26.045-32.146 2.657 1.534zm9.467 5.466L13.345 114.53l-5.014-2.895L34.377 79.49l2.656 1.534zm8.158 4.71l-22.32 34.297-5.013-2.895L43.903 84.99l1.288.744z",fill:"#527585"}),t().createElement("path",{d:"M11.524 90.544l13.385-16.52 2.657 1.534-12.174 17.22-3.868-2.234zm9.467 5.467L34.377 79.49l2.656 1.534-12.174 17.22-3.868-2.233zm9.527 5.5L43.903 84.99l1.288.744-11.47 17.626-3.203-1.85z",fill:"#76A2B5",opacity:.6}),t().createElement("path",{d:"M.355 59.848l-23.689 33.507-5.013-2.895 26.045-32.146 2.657 1.534zm9.468 5.466L-13.866 98.82l-5.013-2.895L7.166 63.78l2.657 1.534zm8.158 4.71L-4.34 104.32l-5.014-2.895L16.692 69.28l1.289.744z",fillOpacity:.1,fill:"#000"}),t().createElement("g",null,t().createElement("path",{fill:"url(#EmptySearchResults_svg__c)",opacity:.993,filter:"url(#EmptySearchResults_svg__d)",d:"M.63 0h173.74L123 172H52z",transform:"rotate(120 90.404 138.861)"}),t().createElement("path",{fill:"url(#EmptySearchResults_svg__e)",opacity:.3,d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),t().createElement("path",{fill:"url(#EmptySearchResults_svg__f)",opacity:.3,d:"M4 2h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),t().createElement("path",{fill:"url(#EmptySearchResults_svg__g)",d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),t().createElement("path",{fill:"#FFF",opacity:.196,d:"M212.363 205.344l-1 1.732L60.418 124.52l4.977-8.62z"})),t().createElement("path",{fill:"#76A2B5",d:"M73.112 84.533l-35.5 61.488-.866-.5 35.5-61.488z"}),t().createElement("path",{fill:"#F3F3F3",d:"M80.906 89.033l-35.5 61.488-.866-.5 35.5-61.488z"}),t().createElement("path",{fill:"#538196",d:"M55.112 115.71l-17.5 30.311-.866-.5 17.5-30.31z"})))),SELECT_ATTRIBUTES:e=>t().createElement("svg",Lh({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgSelectAttributes"},e),t().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.1}),t().createElement("mask",{id:"SelectAttributes_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},t().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),t().createElement("g",{mask:"url(#SelectAttributes_svg__a)"},t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#SelectAttributes_svg__paint0_linear_0_19219)"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865h135.761z",fill:"url(#SelectAttributes_svg__paint1_linear_0_19219)"}),t().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M47 58h202a7 7 0 017 7v157a7 7 0 01-7 7H47a7 7 0 01-7-7V65a7 7 0 017-7z",fill:"#000"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50 56h201a5 5 0 015 5v157a5 5 0 01-5 5H50a5 5 0 01-5-5V61a5 5 0 015-5z",fill:"#fff"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 72.635a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 84.635a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 163a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 175a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 193a3 3 0 013-3H190a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 205a3 3 0 013-3h74.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 103a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 115a3 3 0 013-3h64.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),t().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),t().createElement("circle",{cx:120,cy:106,r:6,fill:"#B6C7DB"}),t().createElement("circle",{cx:120,cy:136,r:6,fill:"#B6C7DB"}),t().createElement("circle",{cx:67,cy:169,r:9,fill:"#B6C7DB"}),t().createElement("circle",{cx:67,cy:199,r:9,fill:"#B6C7DB"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 133a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 145a3 3 0 013-3h74.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M92.514 108v-8h-2V140.365h11.178v-2h-9.178V110h9.178v-2h-9.178z",fill:"#2B98F0"}),t().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M95.071 77l-3.535 3.535L88 77h7.071z",fill:"#000"}),t().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M50 22h186a6 6 0 016 6v18a6 6 0 01-6 6H50a6 6 0 01-6-6V28a6 6 0 016-6z",fill:"#fff"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M58 37a6 6 0 016-6h70a6 6 0 110 12H64a6 6 0 01-6-6zM148 37a6 6 0 016-6h10a6 6 0 110 12h-10a6 6 0 01-6-6z",fill:"#979797"})),t().createElement("defs",null,t().createElement("linearGradient",{id:"SelectAttributes_svg__paint0_linear_0_19219",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),t().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),t().createElement("linearGradient",{id:"SelectAttributes_svg__paint1_linear_0_19219",x1:266.117,y1:181.111,x2:154.882,y2:77.681,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})))),NO_DATA:e=>t().createElement("svg",Rh({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","data-reltio-id":"SvgNoData"},e),t().createElement("defs",null,t().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__b"},t().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:0,offset:"0%"}),t().createElement("stop",{stopColor:"#F4F4F4",offset:"100%"})),t().createElement("linearGradient",{x1:"69.573%",y1:"86.747%",x2:"38.144%",y2:"33.403%",id:"NoData_svg__d"},t().createElement("stop",{stopColor:"#000",stopOpacity:0,offset:"0%"}),t().createElement("stop",{stopColor:"#000",offset:"100%"})),t().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__e"},t().createElement("stop",{stopColor:"#EEFBFF",offset:"0%"}),t().createElement("stop",{stopColor:"#0072CE",offset:"100%"})),t().createElement("filter",{x:"-7.7%",y:"-7.5%",width:"115.3%",height:"115%",filterUnits:"objectBoundingBox",id:"NoData_svg__f"},t().createElement("feOffset",{dx:0,dy:2,in:"SourceAlpha",result:"shadowOffsetOuter1"}),t().createElement("feGaussianBlur",{stdDeviation:2,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),t().createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0",type:"matrix",in:"shadowBlurOuter1",result:"shadowMatrixOuter1"}),t().createElement("feMerge",null,t().createElement("feMergeNode",{in:"shadowMatrixOuter1"}),t().createElement("feMergeNode",{in:"SourceGraphic"}))),t().createElement("circle",{id:"NoData_svg__a",cx:128,cy:128,r:128})),t().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},t().createElement("mask",{id:"NoData_svg__c",fill:"#fff"},t().createElement("use",{xlinkHref:"#NoData_svg__a"})),t().createElement("use",{fillOpacity:.1,fill:"#0072CE",xlinkHref:"#NoData_svg__a"}),t().createElement("path",{fill:"url(#NoData_svg__b)",mask:"url(#NoData_svg__c)",d:"M0 9h256v247H0z"}),t().createElement("g",{mask:"url(#NoData_svg__c)"},t().createElement("g",{transform:"translate(29 37)"},t().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},t().createElement("path",{fillOpacity:.8,opacity:.5,d:"M14.565 8h228.144v176.476H14.565z"}),t().createElement("path",{d:"M0 8.01C0 3.586 3.576 0 7.997 0h223.838a7.997 7.997 0 017.997 8.01v152.401c0 4.424-3.577 8.01-7.997 8.01H7.997A7.997 7.997 0 010 160.411V8.01z"})),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 42.105)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),t().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),t().createElement("path",{d:"M32.488.791h64.093a3.509 3.509 0 110 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M31.486 13.824h115.902a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),t().createElement("rect",{fill:"#645F6D",opacity:.5,x:19.986,y:16.04,width:79.944,height:11.028,rx:5.514}),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 80.2)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),t().createElement("rect",{fill:"#E3EBF4",x:0,y:1.003,width:18.987,height:19.048,rx:9.493}),t().createElement("path",{d:"M32.488.791h75.925a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M31.486 13.824h128.893a2.506 2.506 0 110 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M30.483 22.846h103.918a1.504 1.504 0 010 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 118.296)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),t().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),t().createElement("path",{d:"M32.488.791h101.906a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M31.486 13.824h84.924a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})))),t().createElement("g",{mask:"url(#NoData_svg__c)"},t().createElement("path",{d:"M154.445 45.134v154.072H36.625V45.134h.811C35.508 62.52 41.07 80.609 54.12 93.944c22.74 23.235 59.61 23.235 82.352 0 13.05-13.335 18.612-31.424 16.683-48.81h1.29z",fill:"url(#NoData_svg__d)",opacity:.1,transform:"rotate(-30 291.014 34.548)"}),t().createElement("path",{d:"M27.473 93.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"url(#NoData_svg__e)",opacity:.2,transform:"translate(70 86)"}),t().createElement("g",{filter:"url(#NoData_svg__f)",strokeWidth:1,fill:"none",transform:"translate(70 86)"},t().createElement("path",{d:"M59.697 0c32.97 0 59.697 26.746 59.697 59.738 0 15.185-5.662 29.047-14.988 39.587l51.204 51.24a89.336 89.336 0 01-10.097 9.392l-51.38-51.416c-9.73 6.888-21.61 10.936-34.436 10.936C26.727 119.477 0 92.73 0 59.738 0 26.746 26.727 0 59.697 0zm0 17.756c-23.17 0-41.953 18.796-41.953 41.982s18.783 41.982 41.953 41.982 41.953-18.796 41.953-41.982-18.783-41.982-41.953-41.982z",fill:"#B5C8C9"}),t().createElement("path",{d:"M21.508 105.656C8.365 94.698 0 78.196 0 59.738 0 26.746 26.727 0 59.697 0c18.444 0 34.935 8.37 45.885 21.523l-9.794 9.8c-8.408-10.68-21.45-17.537-36.091-17.537-25.361 0-45.92 20.573-45.92 45.952 0 14.652 6.852 27.702 17.525 36.117l-9.794 9.8z",fillOpacity:.4,fill:"#FFF"})),t().createElement("path",{d:"M97.473 179.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"#D9F5FF",opacity:.4,style:{mixBlendMode:"soft-light"}}),t().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.87,fill:"#000",style:{mixBlendMode:"overlay"}}),t().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.38,fill:"#3C74B4"})))),ERROR:e=>t().createElement("svg",Ph({width:88,height:88,viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgError"},e),t().createElement("mask",{id:"Error_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:88,height:88},t().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),t().createElement("g",{mask:"url(#Error_svg__a)"},t().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:.3}),t().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),t().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),t().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),t().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),t().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),t().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),t().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),t().createElement("path",{opacity:.5,d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.3,d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.8,d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),t().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.2,d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),t().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),t().createElement("g",{filter:"url(#Error_svg__filter0_d)"},t().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),t().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),t().createElement("path",{opacity:.15,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),t().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),t().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#Error_svg__paint0_linear)"}),t().createElement("g",{filter:"url(#Error_svg__filter1_d)"},t().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),t().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),t().createElement("g",{filter:"url(#Error_svg__filter2_d)"},t().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),t().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),t().createElement("defs",null,t().createElement("filter",{id:"Error_svg__filter0_d",x:36.219,y:37.875,width:42.375,height:42.375,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),t().createElement("feOffset",{dy:2}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),t().createElement("filter",{id:"Error_svg__filter1_d",x:51.688,y:62.625,width:11.438,height:11.438,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),t().createElement("feOffset",{dy:2}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),t().createElement("filter",{id:"Error_svg__filter2_d",x:51.688,y:44.063,width:11.438,height:23.813,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),t().createElement("feOffset",{dy:2}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),t().createElement("linearGradient",{id:"Error_svg__paint0_linear",x1:68.438,y1:71.571,x2:60.119,y2:58.801,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:0}),t().createElement("stop",{offset:1})))),LOADING:e=>t().createElement("svg",Dh({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgEmptyLoading"},e),t().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.03}),t().createElement("mask",{id:"EmptyLoading_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},t().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),t().createElement("g",{mask:"url(#EmptyLoading_svg__a)"},t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#EmptyLoading_svg__paint0_linear_2978_41880)"}),t().createElement("g",{fillRule:"evenodd",clipRule:"evenodd"},t().createElement("path",{d:"M40.755 44.17C40.755 38.002 45.76 33 51.92 33h251.675c6.167 0 11.166 5.001 11.166 11.17v160.596H40.755V44.171z",fill:"#5E7282"}),t().createElement("path",{d:"M50.371 43.106h255.685V195.71H50.371V43.106z",fill:"url(#EmptyLoading_svg__paint1_linear_2978_41880)"}),t().createElement("path",{d:"M15.545 208.914c2.321.469 4.723.716 7.183.716H338.75c.22 0 .439-.002.658-.006-7.061 8.445-17.67 13.816-29.524 13.816H45.655c-12.111 0-22.916-5.597-29.968-14.349l-.142-.177z",fill:"#BDCBD8"}),t().createElement("path",{d:"M339.015 204.883v4.966H15v-4.966h324.015z",fill:"#D4DCDF"}),t().createElement("path",{d:"M201.107 213.991h-45.221a11.176 11.176 0 01-11.046-9.449h67.314a11.172 11.172 0 01-11.047 9.449z",fill:"url(#EmptyLoading_svg__paint2_linear_2978_41880)"})),t().createElement("g",{filter:"url(#EmptyLoading_svg__filter0_d_2978_41880)"},t().createElement("rect",{x:81.703,y:99,width:170,height:26,rx:8,fill:"#D1E6FF"}),t().createElement("rect",{x:84.703,y:102,width:164,height:20,rx:5,stroke:"#fff",strokeWidth:6})),t().createElement("g",{filter:"url(#EmptyLoading_svg__filter1_d_2978_41880)"},t().createElement("mask",{id:"EmptyLoading_svg__b",fill:"#fff"},t().createElement("rect",{x:81,y:105,width:108,height:14,rx:2})),t().createElement("rect",{x:81,y:105,width:108,height:14,rx:2,fill:"#61A3F1"}),t().createElement("rect",{x:81,y:105,width:108,height:14,rx:2,stroke:"#4A90E2",strokeWidth:8,mask:"url(#EmptyLoading_svg__b)"})),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M122.703 74a3 3 0 013-3h81.625a3 3 0 010 6h-81.625a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M146.703 86a3 3 0 013-3h34a3 3 0 110 6h-34a3 3 0 01-3-3zM136.703 139a3 3 0 013-3h54a3 3 0 110 6h-54a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M112.703 151a3 3 0 013-3h103a3 3 0 110 6h-103a3 3 0 01-3-3zM124.703 163a3 3 0 013-3h79a3 3 0 110 6h-79a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("g",{filter:"url(#EmptyLoading_svg__filter2_ddd_2978_41880)"},t().createElement("path",{fill:"#A0C1D7",d:"M70.703 64h11v8h-11z"}),t().createElement("rect",{x:62,y:59,width:28,height:8,rx:1,fill:"#BDD4E3"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.23 160.5c20.704 20.703 54.27 20.703 74.973 0 20.703-20.703 20.703-54.27 0-74.973-20.703-20.703-54.27-20.703-74.973 0-20.703 20.703-20.703 54.27 0 74.973z",fill:"#BDD4E3"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M113.427 85.988c20.463 20.652 20.404 53.981-.175 74.561-20.432 20.431-53.432 20.635-74.115.613l-.446-.439 74.736-74.735z",fill:"#A0C1D7"}),t().createElement("path",{opacity:.144,fillRule:"evenodd",clipRule:"evenodd",d:"M75.037 175.385c29.402 0 53.236-23.834 53.236-53.236a54.67 54.67 0 00-.106-3.399L100.45 91.037l-55.142 58.396 25.814 25.811c1.293.094 2.598.141 3.915.141z",fill:"url(#EmptyLoading_svg__paint3_linear_2978_41880)"}),t().createElement("circle",{cx:75.94,cy:123.237,r:44.723,fill:"#91B0C2"}),t().createElement("g",{filter:"url(#EmptyLoading_svg__filter3_d_2978_41880)"},t().createElement("circle",{r:42.793,transform:"matrix(-1 0 0 1 75.94 123.237)",fill:"#F7F4FF"})),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M105.043 175.309l-10.298.861-20.313-20.152.863-2.292-9.973-9.982 18.679-6.882h-4.308l-8.943-8.951 4.545-10.532L94.35 90.74l37.888 37.162c-.343 20.088-11.146 37.627-27.195 47.407z",fill:"url(#EmptyLoading_svg__paint4_linear_2978_41880)"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.703 123a8 8 0 0112.362-6.707l14.477-25.145A36.828 36.828 0 0075.703 86c-20.434 0-37 16.565-37 37h29z",fill:"url(#EmptyLoading_svg__paint5_angular_2978_41880)"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M94.297 90.6l.24.138s-12.45 35.125-12.811 35.752a6.92 6.92 0 01-11.985-6.92c.361-.626 24.556-28.97 24.556-28.97z",fill:"#323232"}),t().createElement("circle",{cx:75.94,cy:123.237,r:2.896,fill:"#EEEBF6"}),t().createElement("circle",{cx:96.211,cy:148.655,r:2.574,fill:"#A0C3D7"}),t().createElement("circle",{cx:107.15,cy:131.924,r:2.574,fill:"#A0C3D7"}),t().createElement("rect",{x:62.427,y:135.592,width:27.027,height:10.039,rx:3,fill:"#A0C3D7"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M85.914 170.534H75.112l-21.605-21.472 2.126-2.775v-1.01L42.8 132.523l2.853-2.529 40.261 40.54z",fill:"url(#EmptyLoading_svg__paint6_linear_2978_41880)"}),t().createElement("path",{opacity:.02,fillRule:"evenodd",clipRule:"evenodd",d:"M96.362 136.555h-4.988l-38.126-38.01 2.853-2.53 40.261 40.54z",fill:"url(#EmptyLoading_svg__paint7_linear_2978_41880)"}),t().createElement("path",{opacity:.02,fillRule:"evenodd",clipRule:"evenodd",d:"M116.746 129.006h-4.988L73.632 90.995l2.853-2.53 40.261 40.541z",fill:"url(#EmptyLoading_svg__paint8_linear_2978_41880)"}),t().createElement("path",{opacity:.02,fillRule:"evenodd",clipRule:"evenodd",d:"M85.793 152.41h-4.988l-38.126-38.011 2.852-2.53 40.262 40.541z",fill:"url(#EmptyLoading_svg__paint9_linear_2978_41880)"}),t().createElement("circle",{cx:75.618,cy:155.734,r:2.574,fill:"#A0C3D7"}),t().createElement("circle",{cx:55.026,cy:148.655,r:2.574,fill:"#A0C3D7"}),t().createElement("circle",{cx:44.73,cy:131.924,r:2.574,fill:"#A0C3D7"}),t().createElement("g",{fill:"#A0C3D7"},t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 96.21 97.363)"}),t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 107.149 114.094)"}),t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 75.618 90.284)"}),t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 55.026 97.363)"}),t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 44.73 114.094)"})))),t().createElement("defs",null,t().createElement("linearGradient",{id:"EmptyLoading_svg__paint0_linear_2978_41880",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),t().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint1_linear_2978_41880",x1:178.214,y1:43.106,x2:178.214,y2:195.709,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#F2F9FB"}),t().createElement("stop",{offset:1,stopColor:"#fff"})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint2_linear_2978_41880",x1:178.497,y1:204.542,x2:178.497,y2:213.991,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#90AABF"}),t().createElement("stop",{offset:1,stopColor:"#869DAE"})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint3_linear_2978_41880",x1:154.275,y1:146.574,x2:96.683,y2:91.352,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint4_linear_2978_41880",x1:60.762,y1:143.327,x2:114.747,y2:176.019,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.87}),t().createElement("stop",{offset:1,stopOpacity:.01})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint6_linear_2978_41880",x1:90.287,y1:154.267,x2:68.53,y2:131.301,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint7_linear_2978_41880",x1:100.735,y1:120.288,x2:78.978,y2:97.322,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint8_linear_2978_41880",x1:121.119,y1:112.739,x2:99.362,y2:89.773,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint9_linear_2978_41880",x1:90.166,y1:136.143,x2:68.409,y2:113.177,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("filter",{id:"EmptyLoading_svg__filter0_d_2978_41880",x:77.703,y:96,width:178,height:34,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feOffset",{dy:1}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),t().createElement("filter",{id:"EmptyLoading_svg__filter1_d_2978_41880",x:77,y:102,width:116,height:22,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feOffset",{dy:1}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),t().createElement("filter",{id:"EmptyLoading_svg__filter2_ddd_2978_41880",x:-13.297,y:28,width:181.534,height:189.17,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feMorphology",{radius:4,operator:"erode",in:"SourceAlpha",result:"effect1_dropShadow_2978_41880"}),t().createElement("feOffset",{dy:7}),t().createElement("feGaussianBlur",{stdDeviation:4}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.600156 0 0 0 0 0.745337 0 0 0 0 0.8625 0 0 0 0.1 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feMorphology",{radius:4,operator:"dilate",in:"SourceAlpha",result:"effect2_dropShadow_2978_41880"}),t().createElement("feOffset",{dy:5}),t().createElement("feGaussianBlur",{stdDeviation:16}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.447059 0 0 0 0 0.807843 0 0 0 0.06 0"}),t().createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_2978_41880",result:"effect2_dropShadow_2978_41880"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feMorphology",{radius:2,operator:"dilate",in:"SourceAlpha",result:"effect3_dropShadow_2978_41880"}),t().createElement("feOffset",{dy:12}),t().createElement("feGaussianBlur",{stdDeviation:8.5}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.447059 0 0 0 0 0.807843 0 0 0 0.06 0"}),t().createElement("feBlend",{mode:"normal",in2:"effect2_dropShadow_2978_41880",result:"effect3_dropShadow_2978_41880"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow_2978_41880",result:"shape"})),t().createElement("filter",{id:"EmptyLoading_svg__filter3_d_2978_41880",x:29.148,y:78.444,width:93.585,height:93.585,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feOffset",{dy:2}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),t().createElement("radialGradient",{id:"EmptyLoading_svg__paint5_angular_2978_41880",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(-56.035 152.55 -12.515) scale(43.4058 65.5062)"},t().createElement("stop",{stopColor:"#CFE8FF"}),t().createElement("stop",{offset:.599,stopColor:"#D1F2F9",stopOpacity:0})))),NO_LOGS:e=>t().createElement("svg",Mh({width:80,height:81,viewBox:"0 0 80 81",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgNoLogs"},e),t().createElement("circle",{cx:40,cy:40.5,r:40,fill:"#0072CE",fillOpacity:.1}),t().createElement("mask",{id:"NoLogs_svg__a",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:81},t().createElement("circle",{cx:40,cy:40.5,r:40,fill:"#fff"})),t().createElement("g",{mask:"url(#NoLogs_svg__a)",fillRule:"evenodd",clipRule:"evenodd"},t().createElement("path",{d:"M-5 3.313h80V80.5H-5V3.312z",fill:"url(#NoLogs_svg__paint0_linear_8548_48660)"}),t().createElement("path",{opacity:.05,d:"M58.675 18.27L77 36.596v46.522H29.182L16.25 70.84V18.27h42.425z",fill:"url(#NoLogs_svg__paint1_linear_8548_48660)"}),t().createElement("path",{opacity:.06,d:"M14.688 18.625h63.124c1.209 0 2.188.98 2.188 2.188v49.062c0 1.208-.98 2.188-2.188 2.188H14.688a2.188 2.188 0 01-2.188-2.188V20.812c0-1.208.98-2.187 2.188-2.187z",fill:"#000"}),t().createElement("path",{d:"M15.625 18h62.813C79.3 18 80 18.7 80 19.563v49.062c0 .863-.7 1.563-1.563 1.563H15.626c-.863 0-1.563-.7-1.563-1.563V19.562c0-.862.7-1.562 1.563-1.562z",fill:"#fff"}),t().createElement("path",{opacity:.8,d:"M18.526 25.017c0-.518.42-.938.938-.938h13.008a.937.937 0 110 1.875H19.463a.937.937 0 01-.938-.937z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,d:"M55.58 25.017c0-.518.419-.938.937-.938H76.58a.938.938 0 010 1.875H56.517a.937.937 0 01-.938-.937z",fill:"#979797"}),t().createElement("path",{opacity:.8,d:"M18.526 47.753c0-.517.42-.937.938-.937h13.008a.938.938 0 010 1.875H19.463a.937.937 0 01-.938-.938z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,d:"M55.58 47.753c0-.517.419-.937.937-.937H76.58a.938.938 0 010 1.875H56.517a.937.937 0 01-.938-.938z",fill:"#979797"}),t().createElement("path",{opacity:.8,d:"M18.526 56.174c0-.517.42-.937.938-.937h25.508a.937.937 0 110 1.875H19.463a.937.937 0 01-.938-.938zM18.526 63.753c0-.517.42-.937.938-.937h19.611a.938.938 0 010 1.875H19.464a.937.937 0 01-.938-.938z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,d:"M55.58 56.174c0-.517.419-.937.937-.937h23.189a.938.938 0 010 1.875h-23.19a.937.937 0 01-.937-.938zM55.58 63.753c0-.517.419-.937.937-.937h23.189a.938.938 0 010 1.875h-23.19a.937.937 0 01-.937-.938z",fill:"#979797"}),t().createElement("path",{opacity:.8,d:"M18.526 32.174c0-.517.42-.937.938-.937h25.508a.937.937 0 110 1.875H19.463a.937.937 0 01-.938-.938z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,d:"M55.58 32.174c0-.517.419-.937.937-.937H76.58a.938.938 0 010 1.875H56.517a.937.937 0 01-.938-.938z",fill:"#979797"}),t().createElement("path",{opacity:.8,d:"M18.526 39.753c0-.517.42-.937.938-.937h25.508a.938.938 0 010 1.875H19.463a.937.937 0 01-.938-.938z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,d:"M55.58 39.753c0-.517.419-.937.937-.937h23.189a.938.938 0 010 1.875h-23.19a.937.937 0 01-.937-.938z",fill:"#979797"}),t().createElement("path",{opacity:.6,d:"M15.625 7.375H73.75c1.035 0 1.875.84 1.875 1.875v5.625c0 1.036-.84 1.875-1.875 1.875H15.625a1.875 1.875 0 01-1.875-1.875V9.25c0-1.036.84-1.875 1.875-1.875z",fill:"#fff"}),t().createElement("path",{opacity:.2,d:"M18.125 12.063c0-1.036.84-1.876 1.875-1.876h21.875a1.875 1.875 0 010 3.75H20a1.875 1.875 0 01-1.875-1.874zM55.158 12.079c0-1.047.848-1.895 1.895-1.895H72.21a1.895 1.895 0 110 3.79H57.052a1.895 1.895 0 01-1.894-1.895z",fill:"#979797"})),t().createElement("defs",null,t().createElement("linearGradient",{id:"NoLogs_svg__paint0_linear_8548_48660",x1:-5,y1:3.313,x2:-5,y2:80.5,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),t().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),t().createElement("linearGradient",{id:"NoLogs_svg__paint1_linear_8548_48660",x1:83.162,y1:57.097,x2:48.401,y2:24.776,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})))),NO_ACTIVATIONS:e=>t().createElement("svg",Ah({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgNoActivations"},e),t().createElement("circle",{cx:100,cy:100,r:100,fill:"#0072CE",fillOpacity:.1}),t().createElement("mask",{id:"NoActivation_svg__a",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:200,height:200},t().createElement("circle",{cx:100,cy:100,r:100,fill:"#fff"})),t().createElement("g",{mask:"url(#NoActivation_svg__a)"},t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-12.5 7.031h200V200h-200V7.031z",fill:"url(#NoActivation_svg__paint0_linear_8548_48982)"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M146.688 44.426L192.5 90.237v116.306H72.956l-32.331-30.697V44.426h106.063z",fill:"url(#NoActivation_svg__paint1_linear_8548_48982)"}),t().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M36.719 45.313H194.53A5.468 5.468 0 01200 50.78v122.657a5.468 5.468 0 01-5.469 5.468H36.719a5.468 5.468 0 01-5.469-5.468V50.781a5.469 5.469 0 015.469-5.468z",fill:"#000"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.063 43.75h157.031A3.906 3.906 0 01200 47.656v122.656a3.907 3.907 0 01-3.906 3.907H39.063a3.907 3.907 0 01-3.907-3.907V47.656a3.906 3.906 0 013.907-3.906z",fill:"#fff"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M82.325 56.746a2.344 2.344 0 012.343-2.344h32.52a2.343 2.343 0 010 4.688h-32.52a2.344 2.344 0 01-2.343-2.344z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M82.031 66.121a2.344 2.344 0 012.344-2.344h50.16a2.344 2.344 0 110 4.688h-50.16a2.344 2.344 0 01-2.344-2.344z",fill:"#979797"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M82.325 127.344A2.344 2.344 0 0184.668 125h32.52a2.344 2.344 0 010 4.688h-32.52a2.344 2.344 0 01-2.343-2.344z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M82.031 136.719a2.344 2.344 0 012.344-2.344h50.16a2.343 2.343 0 110 4.687h-50.16a2.343 2.343 0 01-2.344-2.343z",fill:"#979797"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M82.325 150.781a2.343 2.343 0 012.343-2.343h63.77a2.343 2.343 0 010 4.687h-63.77a2.344 2.344 0 01-2.343-2.344z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M82.031 160.156a2.344 2.344 0 012.344-2.344h57.973a2.343 2.343 0 010 4.688H84.375a2.344 2.344 0 01-2.344-2.344z",fill:"#979797"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M108.106 80.469a2.344 2.344 0 012.344-2.344h63.769a2.344 2.344 0 010 4.688H110.45a2.344 2.344 0 01-2.344-2.344z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M107.812 89.844a2.344 2.344 0 012.344-2.344h50.16a2.344 2.344 0 110 4.688h-50.16a2.344 2.344 0 01-2.344-2.344z",fill:"#979797"}),t().createElement("circle",{cx:52.344,cy:61.719,r:7.031,fill:"#B6C7DB"}),t().createElement("circle",{cx:52.344,cy:61.719,r:7.031,fill:"#B6C7DB"}),t().createElement("circle",{cx:93.75,cy:82.813,r:4.688,fill:"#B6C7DB"}),t().createElement("circle",{cx:93.75,cy:106.25,r:4.688,fill:"#B6C7DB"}),t().createElement("circle",{cx:52.344,cy:132.031,r:7.031,fill:"#B6C7DB"}),t().createElement("circle",{cx:52.344,cy:155.469,r:7.031,fill:"#B6C7DB"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M108.106 103.906a2.344 2.344 0 012.344-2.344h63.769a2.344 2.344 0 010 4.688H110.45a2.343 2.343 0 01-2.344-2.344z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M107.812 113.281a2.344 2.344 0 012.344-2.343h57.973a2.344 2.344 0 010 4.687h-57.973a2.344 2.344 0 01-2.344-2.344z",fill:"#979797"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M72.277 84.375v-6.25h-1.563v31.535h8.734v-1.562h-7.171v-22.16h7.17v-1.563h-7.17z",fill:"#2B98F0"}),t().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M74.274 60.156l-2.762 2.762-2.762-2.762h5.524z",fill:"#000"}),t().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M39.063 17.188h145.312a4.687 4.687 0 014.687 4.687v14.063a4.687 4.687 0 01-4.687 4.687H39.062a4.688 4.688 0 01-4.687-4.688V21.876a4.688 4.688 0 014.688-4.688z",fill:"#fff"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M45.313 28.906A4.687 4.687 0 0150 24.22h54.688a4.688 4.688 0 010 9.375H50a4.688 4.688 0 01-4.688-4.688zM115.625 28.906a4.688 4.688 0 014.688-4.687h7.812a4.687 4.687 0 010 9.375h-7.813a4.688 4.688 0 01-4.687-4.688z",fill:"#979797"})),t().createElement("g",{filter:"url(#NoActivation_svg__filter0_d_8548_48982)"},t().createElement("path",{d:"M130.469 168.75c21.573 0 39.062-17.489 39.062-39.062 0-21.574-17.489-39.063-39.062-39.063-21.574 0-39.063 17.489-39.063 39.063 0 21.573 17.489 39.062 39.063 39.062z",fill:"#000"})),t().createElement("path",{d:"M130.469 168.75c21.573 0 39.062-17.489 39.062-39.062 0-21.574-17.489-39.063-39.062-39.063-21.574 0-39.063 17.489-39.063 39.063 0 21.573 17.489 39.062 39.063 39.062z",fill:"#93D204"}),t().createElement("path",{opacity:.15,fillRule:"evenodd",clipRule:"evenodd",d:"M130.469 78.906c28.045 0 50.781 22.736 50.781 50.781 0 28.046-22.736 50.782-50.781 50.782-28.046 0-50.781-22.736-50.781-50.782 0-28.045 22.735-50.78 50.781-50.78zm-.391 5.469c-24.81 0-44.922 20.112-44.922 44.922s20.112 44.922 44.922 44.922S175 154.107 175 129.297s-20.112-44.922-44.922-44.922z",fill:"#A9F300"}),t().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M130.469 88.281c22.868 0 41.406 18.538 41.406 41.406 0 22.869-18.538 41.407-41.406 41.407s-41.406-18.538-41.406-41.407c0-22.868 18.538-41.406 41.406-41.406zm0 4.644c-20.304 0-36.763 16.459-36.763 36.762 0 20.304 16.459 36.763 36.763 36.763 20.303 0 36.762-16.459 36.762-36.763 0-20.303-16.459-36.762-36.762-36.762z",fill:"#A9F300"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M130.469 60.156c38.401 0 69.531 31.13 69.531 69.532 0 38.401-31.13 69.531-69.531 69.531-38.401 0-69.531-31.13-69.531-69.531 0-38.401 31.13-69.532 69.531-69.532zm-.391 7.813c-33.87 0-61.328 27.457-61.328 61.328 0 33.87 27.457 61.328 61.328 61.328s61.328-27.458 61.328-61.328c0-33.87-27.457-61.328-61.328-61.328z",fill:"#A9F300"}),t().createElement("path",{d:"M130.469 163.281c18.553 0 33.593-15.04 33.593-33.593 0-18.554-15.04-33.594-33.593-33.594-18.554 0-33.594 15.04-33.594 33.594 0 18.553 15.04 33.593 33.594 33.593z",fill:"#A5E418"}),t().createElement("path",{opacity:.05,d:"M182.031 146.094l-34.375-34.375-5.344 2.343-11.719-11.718-.905 22.656-13.282-13.281-7.031 10.156v23.437l36.719 36.719 35.937-35.937z",fill:"url(#NoActivation_svg__paint2_linear_8548_48982)"}),t().createElement("g",{filter:"url(#NoActivation_svg__filter1_d_8548_48982)"},t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M130.469 102.344a3.907 3.907 0 00-3.907 3.906v17.969a3.907 3.907 0 007.813 0V106.25a3.906 3.906 0 00-3.906-3.906zm17.996 9.347a3.907 3.907 0 00-5.524 5.524 18.186 18.186 0 013.943 19.825 18.187 18.187 0 01-26.912 8.163 18.182 18.182 0 01-7.735-18.674 18.194 18.194 0 014.978-9.314 3.905 3.905 0 10-5.524-5.524 26.008 26.008 0 00-5.637 28.338 26 26 0 0024.024 16.053 25.999 25.999 0 0024.024-16.053 26.007 26.007 0 00-5.637-28.338z",fill:"#fff"})),t().createElement("defs",null,t().createElement("linearGradient",{id:"NoActivation_svg__paint0_linear_8548_48982",x1:-12.5,y1:7.031,x2:-12.5,y2:200,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),t().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),t().createElement("linearGradient",{id:"NoActivation_svg__paint1_linear_8548_48982",x1:207.904,y1:141.493,x2:121.002,y2:60.688,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("linearGradient",{id:"NoActivation_svg__paint2_linear_8548_48982",x1:123.438,y1:112.109,x2:172.656,y2:161.328,gradientUnits:"userSpaceOnUse"},t().createElement("stop",null),t().createElement("stop",{offset:1,stopOpacity:0})),t().createElement("filter",{id:"NoActivation_svg__filter0_d_8548_48982",x:88.281,y:89.063,width:84.375,height:84.375,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feOffset",{dy:1.563}),t().createElement("feGaussianBlur",{stdDeviation:1.563}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_8548_48982"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_8548_48982",result:"shape"})),t().createElement("filter",{id:"NoActivation_svg__filter1_d_8548_48982",x:100.95,y:100.781,width:58.257,height:59.988,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feOffset",{dy:1.563}),t().createElement("feGaussianBlur",{stdDeviation:1.563}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_8548_48982"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_8548_48982",result:"shape"}))))},Nh=({variant:e=zh.full,LogoRenderer:n=Fh.SEARCH_RESULTS,text:r,secondaryText:i,buttonTitle:o,onClick:a=w.identity,access:s,children:l})=>{const c=Th(),u=s&&o;return t().createElement("div",{className:Qn()(c.root,c[`root_${e}`])},t().createElement(n,{className:c[`${e}`]}),t().createElement("div",{className:c.textBox},t().createElement(A(),{variant:"h5",classes:{h5:c.text}},r),i&&t().createElement(A(),{variant:"subtitle1",classes:{subtitle1:c.secondaryText}},i)),l,u&&t().createElement(Oh(),{className:c.button,variant:"contained",color:"primary",onClick:a},o))},Ih=Wn((e=>({contentWrapper:{display:"flex",boxSizing:"border-box",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)",transition:e.transitions.create(["width"],{duration:e.transitions.duration.enteringScreen}),height:"100%"}}))),jh=({width:e,open:n,children:r})=>{const i=Ih();return t().createElement("div",{className:i.contentWrapper,"data-reltio-id":"side-panel",style:{width:e?`${n?e:0}px`:"100%"}},t().createElement(Sh,{error:t().createElement(Nh,{LogoRenderer:Fh.ERROR,text:L().text("Something went wrong"),variant:zh.full})},n&&r))};var Bh=ae(4294),Gh=ae.n(Bh);const Uh=Wn({container:{display:"flex",flexShrink:0,height:"63px",alignItems:"center",borderBottom:"1px solid rgba(0,0,0,0.12)"},icon:{margin:"0 12px"},divider:{borderColor:"rgba(0,0,0,0.12)",margin:"19px 17px"},secondTitle:{fontSize:"14px"}}),Hh=({onClose:e,mainTitle:n,secondTitle:r,content:i,rightContent:o})=>{const a=Uh();return t().createElement("div",{className:a.container},t().createElement(Xd,{size:"L",icon:Gh(),onClick:e,className:a.icon,tooltipTitle:L().text("Close")}),i||t().createElement(t().Fragment,null,t().createElement(A(),{"data-reltio-id":"content-header-title",variant:"h6"},n),r&&t().createElement(t().Fragment,null,t().createElement(Xn(),{"data-reltio-id":"content-header-divider",orientation:"vertical",flexItem:!0,className:a.divider}),t().createElement(A(),{variant:"body1",color:"textSecondary",className:a.secondTitle},r)),o))};function Vh(){return Vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vh.apply(null,arguments)}const Wh=(0,e.memo)((({active:e,tabs:n,onClose:r})=>{const i=!(0,w.isNil)(e),{content:o,headerProps:a}=n[e]||{};return t().createElement(jh,{open:i,key:e},t().createElement(Hh,Vh({onClose:r},a)),o)}));Wh.displayName="RightSidePanel";var qh=ae(8475),$h=ae.n(qh),Zh=ae(7499),Yh=ae.n(Zh),Xh=ae(3734),Kh=ae.n(Xh);const Qh=Wn((()=>({root:{fontSize:"20px",fontWeight:500},input:{background:"transparent !important",paddingRight:"32px !important"},menuPaper:{maxWidth:"300px",maxHeight:"600px"},label:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}))),Jh=({className:n,metadataTypeUri:r,metadataTypes:i,onChange:o})=>{const a=Qh(),s=(0,e.useCallback)((e=>o(e.target.value)),[o]);return t().createElement(Kh(),{value:r,onChange:s,variant:"standard",disableUnderline:!0,className:Qn()(a.root,n),classes:{standard:a.input},MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},classes:{paper:a.menuPaper}},"data-reltio-id":"data-model-metadata-type-selector"},i.map((e=>{const n=(0,E.getLabel)(e.label);return t().createElement(Ls(),{key:e.uri,value:e.uri},t().createElement(Vs,{value:n},t().createElement("div",{className:a.label},n)))})))},em=Wn({selector:{maxWidth:"100%",minWidth:0,marginRight:"28px"}}),tm=({metadataTypeUri:n,onChangeMetadataTypeUri:r})=>{const i=em(),{entityTypes:o,relationTypes:a,interactionTypes:s}=O(),l=(0,e.useMemo)((()=>(0,E.isEntityTypeUri)(n)?o:(0,E.isRelationTypeUri)(n)?a:(0,E.isInteractionTypeUri)(n)?s:void 0),[n,o,a,s]);return n?t().createElement(Jh,{className:i.selector,metadataTypeUri:n,metadataTypes:l,onChange:r}):t().createElement(A(),{variant:"h6"},L().text("Tenant information"))};var nm=ae(8668),rm=ae.n(nm),im=ae(3839),om=ae.n(im),am=ae(6236),sm=ae.n(am);function lm(){return lm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lm.apply(null,arguments)}const cm=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",lm({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:"M12 20a2 2 0 110 4 2 2 0 010-4zm1-15v1.352l3.229 2.051 1.334-.769 1 1.732-1.63.94v3.386l1.63.942-1 1.732-1.334-.77-3.23 2.052L13 19h-2v-1.318l-3.258-2.069-1.304.753-1-1.732 1.575-.91v-3.448l-1.575-.91 1-1.732 1.305.752L11 6.318V5h2zM5.072 16a2 2 0 11-3.464 2 2 2 0 013.464-2zm16.589-.732a2 2 0 11-2 3.464 2 2 0 012-3.464zM12 9a3 3 0 100 6 3 3 0 000-6zm10.392-3a2 2 0 11-3.464 2 2 2 0 013.464-2zM4.34 5.268a2 2 0 11-2 3.464 2 2 0 012-3.464zM12 0a2 2 0 110 4 2 2 0 010-4z",fill:"#000",fillOpacity:".54"}))};function um(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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){dm(e,t,n[t])}))}return e}function dm(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fm={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},pm=Wn((e=>({root:{display:"flex",alignItems:"flex-start",padding:"12px",borderRadius:"6px",border:"1px solid rgb(224, 224, 224)",boxSizing:"border-box"},icon:{width:"24px",height:"24px",flexShrink:0,color:e.palette.text.secondary,fill:"currentColor"},content:{marginLeft:"16px",minWidth:0},title:um({marginBottom:"4px",color:e.palette.text.secondary,fontSize:"13px",lineHeight:"15.25px",fontWeight:400},fm),count:um({color:e.palette.text.primary,fontSize:"18px",lineHeight:"21.1px",fontWeight:400},fm)}))),hm=({icon:e,title:n,count:r,className:i,isLoading:o=!1})=>{const a=pm(),s=E.intl.number(r);return t().createElement("div",{className:Qn()(a.root,i),"data-reltio-id":"data-model-metric-card"},t().createElement(e,{className:a.icon}),t().createElement("div",{className:a.content},t().createElement(Vs,{value:n},t().createElement(A(),{className:a.title},n)),t().createElement(Vs,{value:s},t().createElement(A(),{className:a.count},o?t().createElement(Ic(),{"data-reltio-id":"metric-card-skeleton"}):s))))},mm=Wn((e=>({root:{display:"flex",alignItems:"center"},iconWrapper:{display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"4px",border:"1px solid rgb(217, 217, 217)"},icon:{width:"16px",height:"16px"},label:{marginLeft:"11px",fontSize:"13px",fontWeight:400,lineHeight:"15.25px",color:e.palette.text.primary}}))),gm=({name:n})=>{const r=mm(),i=(0,_.useSelector)(C().selectors.getMetadata),o=`configuration/sources/${n}`,a=(0,e.useMemo)((()=>(0,E.getSourceSystemLabel)(i,o)),[i,o]);return t().createElement("div",{className:r.root,"data-reltio-id":"data-model-source-system"},t().createElement("div",{className:r.iconWrapper},t().createElement(Tc,{className:r.icon,sourceType:o})),t().createElement(A(),{className:r.label},a))},vm=Wn((e=>({title:{marginBottom:"8px"},description:{fontSize:"13px",fontWeight:400,lineHeight:"15.25px",color:e.palette.text.secondary}}))),ym=({children:e,className:n})=>{const r=vm();return t().createElement("div",{className:n},t().createElement(A(),{className:r.title},L().text("Description")),t().createElement(A(),{className:r.description},e))},bm=Wn((e=>({title:{fontSize:"16px",fontWeight:400,lineHeight:"24px",letterSpacing:"0.15px",color:e.palette.text.primary}}))),xm=({children:e,className:n})=>{const r=bm();return t().createElement(A(),{className:Qn()(r.title,n)},e)},wm=Wn({description:{marginBottom:"24px"},title:{marginBottom:"8px"},metricCards:{display:"flex",flexWrap:"wrap",gap:"8px",marginBottom:"24px"},metricCard:{width:"calc(50% - 4px)"},sourceSystems:{display:"flex",flexWrap:"wrap",gap:"8px 16px"},sourceSystemRowSkeleton:{width:"100%",height:"30px",marginBottom:"8px",transform:"none"}}),Em=({entityTypeUri:n})=>{const r=wm(),i=(0,_.useSelector)(C().selectors.getMetadata),{count:o,isLoading:a}=(t=>{const n=Kc(),[r,i]=(0,e.useState)(0),[o,a]=(0,e.useState)(!1),s=(0,e.useCallback)((async()=>{a(!0);try{const e=[{filter:"equals",fieldName:"type",values:[t]}],{total:r}=await n((0,E.getTotals)({filters:e}));i(r)}catch(e){i(0),ru(e,{defaultMessage:L().text("Something went wrong while loading the total number of profiles")})}finally{a(!1)}}),[t,n]);return(0,e.useEffect)((()=>{s()}),[s]),{count:r,isLoading:o}})(n),{sourceSystems:s,isLoading:l}=(t=>{const n=Kc(),[r,i]=(0,e.useState)([]),[o,a]=(0,e.useState)(!1),s=(0,e.useCallback)((async()=>{a(!0);try{var e,r;const o=await n((0,E.getDQChartsData)({dataLevel:E.DQDataLevel.ENTITY_TYPE,metrics:[E.DQMetric.CONSOLIDATION_RATE],entityTypeUri:t}));i(Object.keys(null!==(e=null==o||null===(r=o.consolidationRate)||void 0===r?void 0:r.totalCrosswalksBySource)&&void 0!==e?e:{}))}catch(e){i([]),ru(e,{defaultMessage:L().text("Something went wrong while loading the contributing sources")})}finally{a(!1)}}),[t,n]);return(0,e.useEffect)((()=>{s()}),[s]),{sourceSystems:r,isLoading:o}})(n),c=(0,e.useMemo)((()=>(0,E.getEntityType)(i,n)),[i,n]),u=(0,e.useMemo)((()=>(0,E.getInteractionTypesForEntityType)(i,n)),[i,n]),d=(0,e.useMemo)((()=>i.relationTypes.filter((e=>(0,E.isRelationWithEntityType)(i,n,e.uri)))),[i,n]),f=(0,e.useMemo)((()=>_c(c.attributes)),[c]);return t().createElement(t().Fragment,null,c.description&&t().createElement(ym,{className:r.description},c.description),t().createElement("div",{className:r.metricCards},t().createElement(hm,{className:r.metricCard,icon:rm(),title:L().text("Profiles"),count:o,isLoading:a}),t().createElement(hm,{className:r.metricCard,icon:om(),title:L().text("Attributes"),count:f}),t().createElement(hm,{className:r.metricCard,icon:sm(),title:L().text("Relationship types"),count:d.length}),t().createElement(hm,{className:r.metricCard,icon:cm,title:L().text("Interaction types"),count:u.length})),(l||0!==s.length)&&t().createElement(xm,{className:r.title},L().text("Contributing sources")),l?t().createElement(t().Fragment,null,t().createElement(Ic(),{"data-reltio-id":"source-systems-row-skeleton",className:r.sourceSystemRowSkeleton}),t().createElement(Ic(),{"data-reltio-id":"source-systems-row-skeleton",className:r.sourceSystemRowSkeleton}),t().createElement(Ic(),{"data-reltio-id":"source-systems-row-skeleton",className:r.sourceSystemRowSkeleton})):t().createElement("div",{className:r.sourceSystems},s.map((e=>t().createElement(gm,{key:e,name:e})))))},_m=Wn((e=>({root:{display:"flex",alignItems:"center"},entityType:{padding:"4px 8px",display:"flex",alignItems:"center",minWidth:"56px",flexShrink:1},relationType:{padding:"0 6px",minWidth:"30px",textAlign:"center",flexShrink:9999},relationTypeLabel:{marginBottom:"6px",fontSize:"10px",fontWeight:400,lineHeight:"12px",color:e.palette.text.secondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},relationTypeLine:{position:"relative",width:"100%",height:"1px",background:"rgb(130, 130, 130)","&:before, &:after":{position:"absolute",top:0,transform:"translateY(-50%)",width:0,height:0,borderTop:"4px solid transparent",borderBottom:"4px solid transparent"}},relationTypeLineLeftArrow:{"&:before":{content:'""',left:"-2px",borderRight:"6px solid rgb(130, 130, 130)"}},relationTypeLineRightArrow:{"&:after":{content:'""',right:"-2px",borderLeft:"6px solid rgb(130, 130, 130)"}},entityTypeIcon:{width:"32px",height:"32px"},entityTypeLabel:{marginLeft:"8px",fontSize:"13px",fontWeight:400,color:e.palette.text.primary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}))),Sm=({relationType:n})=>{const{direction:r,uri:i,label:o}=n,a=_m(),s=(0,_.useSelector)(C().selectors.getMetadata),[l,c]=(0,e.useMemo)((()=>(0,E.getRelationEntityTypesUris)(s,i)),[s,i]),u=(0,e.useMemo)((()=>(0,E.getEntityType)(s,l)),[s,l]),d=(0,e.useMemo)((()=>(0,E.getEntityType)(s,c)),[s,c]);return t().createElement("div",{className:a.root,"data-reltio-id":"data-model-relation-type-direction"},t().createElement("div",{className:a.entityType},t().createElement(Wl,{className:a.entityTypeIcon,entityType:u}),t().createElement(Vs,{value:(0,E.getLabel)(u.label)},t().createElement(A(),{className:a.entityTypeLabel},(0,E.getLabel)(u.label)))),t().createElement("div",{className:a.relationType},t().createElement(Vs,{value:(0,E.getLabel)(o)},t().createElement(A(),{className:a.relationTypeLabel},(0,E.getLabel)(o))),t().createElement("div",{className:Qn()(a.relationTypeLine,{[a.relationTypeLineLeftArrow]:r===E.RelationTypeDirection.bidirectional,[a.relationTypeLineRightArrow]:r===E.RelationTypeDirection.directed||r===E.RelationTypeDirection.bidirectional})})),t().createElement("div",{className:a.entityType},t().createElement(Wl,{className:a.entityTypeIcon,entityType:d}),t().createElement(Vs,{value:(0,E.getLabel)(d.label)},t().createElement(A(),{className:a.entityTypeLabel},(0,E.getLabel)(d.label)))))},Cm=Wn({description:{marginBottom:"24px"},title:{marginBottom:"8px"},metricCard:{maxWidth:"220px",marginBottom:"24px"}}),Om=({relationTypeUri:n})=>{const r=Cm(),i=(0,_.useSelector)(C().selectors.getMetadata),o=(0,e.useMemo)((()=>(0,E.getRelationType)(i,n)),[i,n]);return t().createElement(t().Fragment,null,o.description&&t().createElement(ym,{className:r.description},o.description),t().createElement(hm,{className:r.metricCard,count:_c(o.attributes),title:L().text("Attributes"),icon:om()}),t().createElement(xm,{className:r.title},L().text("Direction")),t().createElement(Sm,{relationType:o}))};var km=ae(918),Lm=ae.n(km),Rm=ae(9850),Pm=ae.n(Rm),Mm=ae(1159),Am=ae.n(Mm),Tm=ae(8012),Dm=ae.n(Tm),zm=ae(5681),Fm=ae.n(zm),Nm=ae(8878),Im=ae.n(Nm);const jm=Wn({headCell:{fontSize:"14px"},bodyCell:{fontSize:"13px"}}),Bm=({memberTypes:e})=>{const n=jm(),r=(0,_.useSelector)(C().selectors.getMetadata);return t().createElement(Lm(),{component:bs()},t().createElement(Pm(),null,t().createElement(Am(),null,t().createElement(Fm(),null,t().createElement(Im(),{className:n.headCell},L().text("Member type name")),t().createElement(Im(),{className:n.headCell},L().text("Entity type")))),t().createElement(Dm(),null,e.map((e=>{const i=(0,E.getEntityType)(r,e.objectTypeURI);return t().createElement(Fm(),{key:e.uri},t().createElement(Im(),{className:n.bodyCell},(0,E.getLabel)(e.label)),t().createElement(Im(),{className:n.bodyCell},(0,E.getLabel)(null==i?void 0:i.label)))})))))},Gm=Wn({description:{marginBottom:"24px"},title:{marginBottom:"8px"},metricCard:{maxWidth:"220px",marginBottom:"24px"}}),Um=({interactionTypeUri:n})=>{var r;const i=Gm(),o=(0,_.useSelector)(C().selectors.getMetadata),a=(0,e.useMemo)((()=>(0,E.getInteractionType)(o,n)),[o,n]);return t().createElement(t().Fragment,null,a.description&&t().createElement(ym,{className:i.description},a.description),t().createElement(hm,{className:i.metricCard,count:_c(a.attributes),title:L().text("Attributes"),icon:om()}),Boolean(null===(r=a.memberTypes)||void 0===r?void 0:r.length)&&t().createElement(t().Fragment,null,t().createElement(xm,{className:i.title},L().text("Member types")),t().createElement(Bm,{memberTypes:a.memberTypes})))};function Hm(){return Hm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hm.apply(null,arguments)}const Vm=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",Hm({width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{d:"M11.25 4h1.5v1.5h-1.5V4zm4.25 4.5h-7v7h7v-7zM7 7v10h10V7H7zm5.75 11.5h-1.5V20h1.5v-1.5zM20 11.25v1.5h-1.5v-1.5H20zm-14.5 1.5v-1.5H4v1.5h1.5z"}))},Wm=Wn({metricCards:{display:"flex",flexWrap:"wrap",gap:"8px"},metricCard:{width:"calc(50% - 4px)"}}),qm=()=>{const e=Wm(),{entityTypes:n=[],interactionTypes:r=[],relationTypes:i=[]}=O();return t().createElement("div",{className:e.metricCards},t().createElement(hm,{className:e.metricCard,icon:Vm,title:L().text("Entity types"),count:n.length}),t().createElement(hm,{className:e.metricCard,icon:cm,title:L().text("Interaction types"),count:r.length}),t().createElement(hm,{className:e.metricCard,icon:sm(),title:L().text("Relationship types"),count:i.length}))},$m=Wn({root:{padding:"16px",overflowY:"auto"}}),Zm=({metadataTypeUri:e})=>{const n=$m();return t().createElement("div",{className:n.root},(0,E.isEntityTypeUri)(e)?t().createElement(Em,{entityTypeUri:e}):(0,E.isRelationTypeUri)(e)?t().createElement(Om,{relationTypeUri:e}):(0,E.isInteractionTypeUri)(e)?t().createElement(Um,{interactionTypeUri:e}):t().createElement(qm,null))},Ym=e=>e.target.value;var Xm=ae(3732),Km=ae.n(Xm),Qm=ae(8214),Jm=ae.n(Qm),eg=ae(4501),tg=ae.n(eg);const ng=Wn({input:{maxWidth:"320px",width:"100%",height:"40px",fontSize:"14px",background:"rgba(0,0,0,0.03)",padding:"8px 8px 8px 15px",marginRight:"14px",borderRadius:"4px"},startAdornment:{color:"rgba(0,0,0,0.54)"},searchContainer:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"4px 0"},title:{fontSize:"16px",marginRight:"50px",marginLeft:"16px"}}),rg=({onApplySearch:n})=>{const r=ng(),[i,o]=(0,e.useState)(""),a=()=>(0,w.pipe)(w.trim,w.toLower,n)(i);return t().createElement("div",{className:r.searchContainer},t().createElement("div",{className:r.title},L().text("Attributes")),t().createElement(Km(),{className:r.input,value:i,placeholder:L().text("Search"),disableUnderline:!0,onChange:(0,w.pipe)(Ym,o),onBlur:a,startAdornment:t().createElement(Jm(),{position:"start"},t().createElement(tg(),{className:r.startAdornment})),endAdornment:t().createElement(Jm(),{position:"end"},t().createElement(Yd,{"data-reltio-id":"reset-search",size:"S",icon:Gh(),onClick:()=>{n(""),o("")}})),onKeyPress:(0,w.when)((0,w.propEq)("key","Enter"),a)}))},ig=({metadataTypeUri:n})=>{const[r,i]=(0,e.useState)(""),o=(0,_.useSelector)(C().selectors.getMetadata),a=(0,e.useMemo)((()=>(e=>(0,E.isEntityTypeUri)(e)?[{id:Ql.AttributeLabel,size:7,isWithPadding:!0},{id:Ql.Sources,size:5,isWithPadding:!0}]:[{id:Ql.AttributeLabel,size:12,isWithPadding:!0}])(n)),[n]),s=(0,e.useMemo)((()=>{const e=((e,t)=>{if((0,E.isEntityTypeUri)(t)){const n=(0,E.getEntityType)(e,t);return(0,E.getAttributeTypesTree)(e,n)}if((0,E.isRelationTypeUri)(t)){const n=(0,E.getRelationType)(e,t);return(0,E.getAttributeTypesTree)(e,n)}if((0,E.isInteractionTypeUri)(t)){const n=(0,E.getInteractionType)(e,t);return(0,E.getAttributeTypesTree)(e,n)}return[]})(o,n);return r?((e,t)=>{const n=(e,t,r=[])=>{const i=t.map((t=>{var i;const o=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.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){wc(e,t,n[t])}))}return e}({},t);return((e,t)=>{var n,r;return(null===(n=e.label)||void 0===n?void 0:n.toLocaleLowerCase().startsWith(t))||(null===(r=e.description)||void 0===r?void 0:r.toLocaleLowerCase().startsWith(t))})(o,e)&&(o.isSearchedElement=!0,r.forEach((e=>e.shouldExpand=!0))),null!==(i=t.children)&&void 0!==i&&i.length&&(o.children=n(e,o.children,[...r,o])),o}));return i},r=e=>{const t=e.filter((e=>e.isSearchedElement||e.shouldExpand));for(const e of t){var n;null!==(n=e.children)&&void 0!==n&&n.length&&(e.children=r(e.children))}return t};return(0,w.pipe)(n,r)(e,t)})(r,e):e}),[o,n,r]);return t().createElement(t().Fragment,null,t().createElement(rg,{onApplySearch:e=>i(e)}),t().createElement(lu,{columnsData:a,attributeNodesList:s,metadataTypeUri:n,isRightSidePanel:!0}))};var og=function(e){return e[e.Info=0]="Info",e[e.AttributesTable=1]="AttributesTable",e}(og||{});const ag=Wn({container:{display:"flex",width:"100%",height:"100%"}}),sg="dataModel",lg=()=>{const n=ag(),[r,i]=(0,e.useState)(null),{perspectiveSettings:{active:o}={},updatePerspectiveSettings:a}=tf(sg),s=(0,e.useCallback)((e=>{const t=r===e;i(t?null:e),t||null!=o||a({active:0})}),[o,r,a]),l=(({metadataTypeUri:n,onChangeMetadataTypeUri:r})=>(0,e.useMemo)((()=>[{buttonProps:{id:og.Info,icon:$h(),tooltipTitle:L().text("Info"),showForDisabled:!0},headerProps:{content:t().createElement(tm,{metadataTypeUri:n,onChangeMetadataTypeUri:r})},content:t().createElement(Zm,{metadataTypeUri:n})},{buttonProps:{id:og.AttributesTable,icon:Yh(),tooltipTitle:L().text("Attributes table"),showForDisabled:!0},headerProps:{content:t().createElement(tm,{metadataTypeUri:n,onChangeMetadataTypeUri:r})},content:t().createElement(ig,{key:n,metadataTypeUri:n})}]),[n,r]))({metadataTypeUri:r,onChangeMetadataTypeUri:s});return t().createElement("div",{className:n.container},t().createElement(of,{perspectiveId:sg,buttonsProps:(0,w.pluck)("buttonProps",l)},t().createElement(_h,{currentMetadataTypeUri:r,onChangeMetadataTypeUri:s}),t().createElement(Wh,{tabs:l})))},cg=Wn({dataModelContainer:{display:"flex",width:"100%",height:"calc(100% - 65px)",position:"absolute"}}),ug=({config:{defaultEntityType:n,mode:r}})=>{const i=cg(),{entityTypes:o}=O(),a=n?o.find((0,w.propEq)("uri",n)):o[0],[s,l]=(0,e.useState)(a);return t().createElement(t().Fragment,null,t().createElement(Xl,{showEntityTypeSelector:!n&&r!==E.DataModelMode.GRAPH,entityTypes:o,selectedEntityType:s,onChangeEntityType:l}),t().createElement("div",{className:i.dataModelContainer},r===E.DataModelMode.GRAPH?t().createElement(lg,null):t().createElement(uu,{entityType:s})))},dg=r()({productionPrefix:"dataModel",disableGlobal:!0,seed:"dtm"}),fg=({config:e})=>t().createElement(o(),{generateClassName:dg},t().createElement(x,{dateAdapter:f},t().createElement(ug,{config:e})))})(),se})()}));