@hpcc-js/react 2.52.2 → 2.53.0

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.
package/dist/index.min.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@hpcc-js/react"]={},t["@hpcc-js/common"])}(this,(function(t,e){"use strict";var n,i,o,r,a,l={},s=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function c(t,e){for(var n in e)t[n]=e[n];return t}function h(t){var e=t.parentNode;e&&e.removeChild(t)}function d(t,e,i){var o,r,a,l={};for(a in e)"key"==a?o=e[a]:"ref"==a?r=e[a]:l[a]=e[a];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===l[a]&&(l[a]=t.defaultProps[a]);return u(t,l,o,r,null)}function u(t,e,n,r,a){var l={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=i.vnode&&i.vnode(l),l}function f(t){return t.children}function p(t,e){this.props=t,this.context=e}function v(t,e){if(null==e)return t.__?v(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?v(t):null}function g(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return g(t)}}function y(t){(!t.__d&&(t.__d=!0)&&r.push(t)&&!x.__r++||a!==i.debounceRendering)&&((a=i.debounceRendering)||setTimeout)(x)}function x(){for(var t;x.__r=r.length;)t=r.sort((function(t,e){return t.__v.__b-e.__v.__b})),r=[],t.some((function(t){var e,n,i,o,r,a;t.__d&&(r=(o=(e=t).__v).__e,(a=e.__P)&&(n=[],(i=c({},o)).__v=o.__v+1,R(a,o,i,e.__n,void 0!==a.ownerSVGElement,null!=o.__h?[r]:null,n,null==r?v(o):r,o.__h),W(n,o),o.__e!=r&&g(o)))}))}function m(t,e,n,i,o,r,a,_,c,h){var d,p,g,y,x,m,b,C=i&&i.__k||s,w=C.length;for(n.__k=[],d=0;d<e.length;d++)if(null!=(y=n.__k[d]=null==(y=e[d])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?u(null,y,null,null,y):Array.isArray(y)?u(f,{children:y},null,null,null):y.__b>0?u(y.type,y.props,y.key,null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(g=C[d])||g&&y.key==g.key&&y.type===g.type)C[d]=void 0;else for(p=0;p<w;p++){if((g=C[p])&&y.key==g.key&&y.type===g.type){C[p]=void 0;break}g=null}R(t,y,g=g||l,o,r,a,_,c,h),x=y.__e,(p=y.ref)&&g.ref!=p&&(b||(b=[]),g.ref&&b.push(g.ref,null,y),b.push(p,y.__c||x,y)),null!=x?(null==m&&(m=x),"function"==typeof y.type&&y.__k===g.__k?y.__d=c=k(y,c,t):c=F(t,y,g,C,x,c),"function"==typeof n.type&&(n.__d=c)):c&&g.__e==c&&c.parentNode!=t&&(c=v(g))}for(n.__e=m,d=w;d--;)null!=C[d]&&("function"==typeof n.type&&null!=C[d].__e&&C[d].__e==n.__d&&(n.__d=v(i,d+1)),E(C[d],C[d]));if(b)for(d=0;d<b.length;d++)T(b[d],b[++d],b[++d])}function k(t,e,n){for(var i,o=t.__k,r=0;o&&r<o.length;r++)(i=o[r])&&(i.__=t,e="function"==typeof i.type?k(i,e,n):F(n,i,i,o,i.__e,e));return e}function F(t,e,n,i,o,r){var a,l,s;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||o!=r||null==o.parentNode)t:if(null==r||r.parentNode!==t)t.appendChild(o),a=null;else{for(l=r,s=0;(l=l.nextSibling)&&s<i.length;s+=2)if(l==o)break t;t.insertBefore(o,r),a=r}return void 0!==a?a:o.nextSibling}function b(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||_.test(e)?n:n+"px"}function C(t,e,n,i,o){var r;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof i&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||b(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||b(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])r=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+r]=n,n?i||t.addEventListener(e,r?S:w,r):t.removeEventListener(e,r?S:w,r);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function w(t){this.l[t.type+!1](i.event?i.event(t):t)}function S(t){this.l[t.type+!0](i.event?i.event(t):t)}function R(t,e,n,o,r,a,l,s,_){var h,d,u,v,g,y,x,k,F,b,C,w,S,R=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(_=n.__h,s=e.__e=n.__e,e.__h=null,a=[s]),(h=i.__b)&&h(e);try{t:if("function"==typeof R){if(k=e.props,F=(h=R.contextType)&&o[h.__c],b=h?F?F.props.value:h.__:o,n.__c?x=(d=e.__c=n.__c).__=d.__E:("prototype"in R&&R.prototype.render?e.__c=d=new R(k,b):(e.__c=d=new p(k,b),d.constructor=R,d.render=P),F&&F.sub(d),d.props=k,d.state||(d.state={}),d.context=b,d.__n=o,u=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=R.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=c({},d.__s)),c(d.__s,R.getDerivedStateFromProps(k,d.__s))),v=d.props,g=d.state,u)null==R.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==R.getDerivedStateFromProps&&k!==v&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(k,b),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(k,d.__s,b)||e.__v===n.__v){d.props=k,d.state=d.__s,e.__v!==n.__v&&(d.__d=!1),d.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),d.__h.length&&l.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(k,d.__s,b),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(v,g,y)}))}if(d.context=b,d.props=k,d.__v=e,d.__P=t,C=i.__r,w=0,"prototype"in R&&R.prototype.render)d.state=d.__s,d.__d=!1,C&&C(e),h=d.render(d.props,d.state,d.context);else do{d.__d=!1,C&&C(e),h=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++w<25);d.state=d.__s,null!=d.getChildContext&&(o=c(c({},o),d.getChildContext())),u||null==d.getSnapshotBeforeUpdate||(y=d.getSnapshotBeforeUpdate(v,g)),S=null!=h&&h.type===f&&null==h.key?h.props.children:h,m(t,Array.isArray(S)?S:[S],e,n,o,r,a,l,s,_),d.base=e.__e,e.__h=null,d.__h.length&&l.push(d),x&&(d.__E=d.__=null),d.__e=!1}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=O(n.__e,e,n,o,r,a,l,_);(h=i.diffed)&&h(e)}catch(t){e.__v=null,(_||null!=a)&&(e.__e=s,e.__h=!!_,a[a.indexOf(s)]=null),i.__e(t,e,n)}}function W(t,e){i.__c&&i.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){i.__e(t,e.__v)}}))}function O(t,e,i,o,r,a,s,_){var c,d,u,f=i.props,p=e.props,g=e.type,y=0;if("svg"===g&&(r=!0),null!=a)for(;y<a.length;y++)if((c=a[y])&&"setAttribute"in c==!!g&&(g?c.localName===g:3===c.nodeType)){t=c,a[y]=null;break}if(null==t){if(null===g)return document.createTextNode(p);t=r?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,p.is&&p),a=null,_=!1}if(null===g)f===p||_&&t.data===p||(t.data=p);else{if(a=a&&n.call(t.childNodes),d=(f=i.props||l).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!_){if(null!=a)for(f={},y=0;y<t.attributes.length;y++)f[t.attributes[y].name]=t.attributes[y].value;(u||d)&&(u&&(d&&u.__html==d.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(function(t,e,n,i,o){var r;for(r in n)"children"===r||"key"===r||r in e||C(t,r,null,n[r],i);for(r in e)o&&"function"!=typeof e[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===e[r]||C(t,r,e[r],n[r],i)}(t,p,f,r,_),u)e.__k=[];else if(y=e.props.children,m(t,Array.isArray(y)?y:[y],e,i,o,r&&"foreignObject"!==g,a,s,a?a[0]:i.__k&&v(i,0),_),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);_||("value"in p&&void 0!==(y=p.value)&&(y!==t.value||"progress"===g&&!y||"option"===g&&y!==f.value)&&C(t,"value",y,f.value,!1),"checked"in p&&void 0!==(y=p.checked)&&y!==t.checked&&C(t,"checked",y,f.checked,!1))}return t}function T(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){i.__e(t,n)}}function E(t,e,n){var o,r;if(i.unmount&&i.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||T(o,null,e)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){i.__e(t,e)}o.base=o.__P=null}if(o=t.__k)for(r=0;r<o.length;r++)o[r]&&E(o[r],e,"function"!=typeof t.type);n||null==t.__e||h(t.__e),t.__e=t.__d=void 0}function P(t,e,n){return this.constructor(t,n)}function A(t,e,o){var r,a,s;i.__&&i.__(t,e),a=(r="function"==typeof o)?null:o&&o.__k||e.__k,s=[],R(e,t=(!r&&o||e).__k=d(f,null,[t]),a||l,l,void 0!==e.ownerSVGElement,!r&&o?[o]:a?null:e.firstChild?n.call(e.childNodes):null,s,!r&&o?o:a?a.__e:e.firstChild,r),W(s,t)}n=s.slice,i={__e:function(t,e,n,i){for(var o,r,a;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(t)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,i||{}),a=o.__d),a)return o.__E=o}catch(e){t=e}throw t}},o=0,p.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=c({},this.state),"function"==typeof t&&(t=t(c({},n),this.props)),t&&c(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),y(this))},p.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),y(this))},p.prototype.render=f,r=[],x.__r=0;var H,N,D,M,I=0,V=[],L=[],U=i.__b,z=i.__r,j=i.diffed,q=i.__c,B=i.unmount;function G(t,e){i.__h&&i.__h(N,t,I||e),I=0;var n=N.__H||(N.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:L}),n.__[t]}function X(t){return I=1,Y(it,t)}function Y(t,e,n){var i=G(H++,2);if(i.t=t,!i.__c&&(i.__=[n?n(e):it(void 0,e),function(t){var e=i.__N?i.__N[0]:i.__[0],n=i.t(e,t);e!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=N,!N.u)){N.u=!0;var o=N.shouldComponentUpdate;N.shouldComponentUpdate=function(t,e,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(t){return t.__c}));if(r.every((function(t){return!t.__N})))return!o||o.call(this,t,e,n);var a=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),!!a&&(!o||o.call(this,t,e,n))}}return i.__N||i.__}function J(t,e){var n=G(H++,3);!i.__s&&nt(n.__H,e)&&(n.__=t,n.i=e,N.__H.__h.push(n))}function K(t,e){var n=G(H++,7);return nt(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function $(t,e){return I=8,K((function(){return t}),e)}function Z(){for(var t;t=V.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(tt),t.__H.__h.forEach(et),t.__H.__h=[]}catch(e){t.__H.__h=[],i.__e(e,t.__v)}}i.__b=function(t){N=null,U&&U(t)},i.__r=function(t){z&&z(t),H=0;var e=(N=t.__c).__H;e&&(D===N?(e.__h=[],N.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=L,t.__N=t.i=void 0}))):(e.__h.forEach(tt),e.__h.forEach(et),e.__h=[])),D=N},i.diffed=function(t){j&&j(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==V.push(e)&&M===i.requestAnimationFrame||((M=i.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(i),Q&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);Q&&(e=requestAnimationFrame(n))})(Z)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==L&&(t.__=t.__V),t.i=void 0,t.__V=L}))),D=N=null},i.__c=function(t,e){e.some((function(t){try{t.__h.forEach(tt),t.__h=t.__h.filter((function(t){return!t.__||et(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],i.__e(n,t.__v)}})),q&&q(t,e)},i.unmount=function(t){B&&B(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{tt(t)}catch(t){e=t}})),e&&i.__e(e,n.__v))};var Q="function"==typeof requestAnimationFrame;function tt(t){var e=N,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),N=e}function et(t){var e=N;t.__c=t.__(),N=e}function nt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function it(t,e){return"function"==typeof e?e(t):e}var ot=Object.freeze({__proto__:null,BUILD_VERSION:"2.104.7",Component:p,Fragment:f,PKG_NAME:"@hpcc-js/preact-shim",PKG_VERSION:"2.16.2",createElement:d,h:d,render:A,useCallback:$,useEffect:J,useMemo:K,useReducer:Y,useState:X}),rt=Math.PI,at=2*rt,lt=1e-6,st=at-lt;function _t(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ct(){return new _t}function ht(t){return function(){return t}}function dt(t){this._context=t}function ut(t){return new dt(t)}function ft(t){return t[0]}function pt(t){return t[1]}function vt(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function gt(t){this._context=t}_t.prototype=ct.prototype={constructor:_t,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,o,r){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+o)+","+(this._y1=+r)},arcTo:function(t,e,n,i,o){t=+t,e=+e,n=+n,i=+i,o=+o;var r=this._x1,a=this._y1,l=n-t,s=i-e,_=r-t,c=a-e,h=_*_+c*c;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>lt)if(Math.abs(c*l-s*_)>lt&&o){var d=n-r,u=i-a,f=l*l+s*s,p=d*d+u*u,v=Math.sqrt(f),g=Math.sqrt(h),y=o*Math.tan((rt-Math.acos((f+h-p)/(2*v*g)))/2),x=y/g,m=y/v;Math.abs(x-1)>lt&&(this._+="L"+(t+x*_)+","+(e+x*c)),this._+="A"+o+","+o+",0,0,"+ +(c*d>_*u)+","+(this._x1=t+m*l)+","+(this._y1=e+m*s)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,i,o,r){t=+t,e=+e,r=!!r;var a=(n=+n)*Math.cos(i),l=n*Math.sin(i),s=t+a,_=e+l,c=1^r,h=r?i-o:o-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+s+","+_:(Math.abs(this._x1-s)>lt||Math.abs(this._y1-_)>lt)&&(this._+="L"+s+","+_),n&&(h<0&&(h=h%at+at),h>st?this._+="A"+n+","+n+",0,1,"+c+","+(t-a)+","+(e-l)+"A"+n+","+n+",0,1,"+c+","+(this._x1=s)+","+(this._y1=_):h>lt&&(this._+="A"+n+","+n+",0,"+ +(h>=rt)+","+c+","+(this._x1=t+n*Math.cos(o))+","+(this._y1=e+n*Math.sin(o))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}},dt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},gt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:vt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:vt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var yt=function(){var t=ft,e=pt,n=ht(!0),i=null,o=ut,r=null;function a(a){var l,s,_,c=a.length,h=!1;for(null==i&&(r=o(_=ct())),l=0;l<=c;++l)!(l<c&&n(s=a[l],l,a))===h&&((h=!h)?r.lineStart():r.lineEnd()),h&&r.point(+t(s,l,a),+e(s,l,a));if(_)return r=null,_+""||null}return a.x=function(e){return arguments.length?(t="function"==typeof e?e:ht(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:ht(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:ht(!!t),a):n},a.curve=function(t){return arguments.length?(o=t,null!=i&&(r=o(i)),a):o},a.context=function(t){return arguments.length?(null==t?i=r=null:r=o(i=t),a):i},a}().x((function(t){return t[0]})).y((function(t){return t[1]})).curve((function(t){return new gt(t)}));var xt=function(t){var n=t.x,i=t.y,o=void 0===i?0:i,r=t.height,a=void 0===r?12:r,l=t.fill,s=t.stroke,_=t.fontFamily,c=void 0===_?"FontAwesome":_,h=t.char,u=void 0===h?"":h,f=K((function(){return"FontAwesome"===c?e.Utility.faChar(u):u}),[u,c]);return d("text",{x:n,y:o,fill:l,stroke:s,"font-family":c,"font-size":"".concat(a,"px"),"dominant-baseline":"middle",style:"text-anchor: middle;alignment-baseline:middle;"},f)},mt=function(t,e){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},mt(t,e)};function kt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}mt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Ft=function(){return Ft=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ft.apply(this,arguments)};function bt(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function Ct(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var wt=function(t){var e=t.radius,n=void 0===e?32:e,i=t.fill,o=void 0===i?"navy":i,r=t.stroke,a=void 0===r?o:r,l=t.strokeWidth;return d("circle",{r:n,fill:o,stroke:a,"stroke-width":void 0===l?1:l,"shape-rendering":t.shapeRendering})},St=function(t){var e=t.radius,n=void 0===e?30:e,i=t.cornerRadius,o=void 0===i?0:i,r=t.fill,a=void 0===r?"white":r,l=t.stroke,s=t.strokeWidth;return d("rect",{x:-n,y:-n,rx:o,ry:o,width:2*n,height:2*n,fill:a,stroke:l||a,"stroke-width":void 0===s?1:s,"shape-rendering":t.shapeRendering})},Rt=function(t){var e=t.width,n=void 0===e?30:e,i=t.height,o=void 0===i?30:i,r=t.cornerRadius,a=void 0===r?0:r,l=t.fill,s=void 0===l?"white":l,_=t.stroke,c=void 0===_?"black":_,h=t.strokeWidth;return d("rect",{x:-n/2,y:-o/2,rx:a,ry:a,width:n,height:o,fill:s,stroke:c||s,"stroke-width":void 0===h?1:h,"shape-rendering":t.shapeRendering})},Wt=function(t){var e=t.shape,n=void 0===e?"circle":e,i=t.height,o=void 0===i?128:i,r=t.width,a=t.fill,l=t.stroke,s=t.strokeWidth,_=void 0===s?1:s,c=t.shapeRendering,h=t.cornerRadius;switch(n){case"square":return d(St,{radius:o/2,fill:a,stroke:l,strokeWidth:_,shapeRendering:c,cornerRadius:h});case"rectangle":return d(Rt,{width:null!=r?r:o,height:o,fill:a,stroke:l,strokeWidth:_,shapeRendering:c,cornerRadius:h});default:return d(wt,{radius:o/2,fill:a,stroke:l,strokeWidth:_,shapeRendering:c})}},Ot=function(t){var n=t.shape,i=void 0===n?"circle":n,o=t.width,r=t.height,a=void 0===r?32:r,l=t.fill,s=t.stroke,_=t.strokeWidth,c=void 0===_?0:_,h=t.imageFontFamily,u=void 0===h?"FontAwesome":h,p=t.imageChar,v=void 0===p?"":p,g=t.imageCharFill,y=void 0===g?e.Palette.textColor(l):g,x=t.padding,m=void 0===x?a/5:x,k=t.xOffset,F=void 0===k?0:k,b=t.yOffset,C=void 0===b?0:b,w=t.cornerRadius,S=t.shapeRendering;return d(f,null,d(Wt,{shape:i,width:o,height:a,fill:l,stroke:s,strokeWidth:c,shapeRendering:S,cornerRadius:w}),d(xt,{x:F,y:C,height:a-m,fontFamily:u,char:v,fill:y,"font-weight":400}))};function Tt(t,e,n,i){A(d(t,e),n,i)}var Et=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return kt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=Ft(Ft({},this._props),t),this):this._props},n.prototype.prop=function(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)},n.prototype.update=function(e,n){t.prototype.update.call(this,e,n),Tt(this._component,this._props,e)},bt([e.publish({},"object","Properties"),Ct("design:type",Object)],n.prototype,"_props",void 0),n}(e.HTMLWidget),Pt=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return kt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=Ft(Ft({},this._props),t),this):this._props},n.prototype.prop=function(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)},n.prototype.update=function(e,n){t.prototype.update.call(this,e,n),Tt(this._component,this._props,e)},bt([e.publish({},"object","Properties"),Ct("design:type",Object)],n.prototype,"_props",void 0),n}(e.SVGWidget),At=function(t){var e=t.text,n=t.height,i=void 0===n?12:n,o=t.anchor,r=void 0===o?"middle":o,a=t.baseline,l=void 0===a?"middle":a,s=t.fontFamily,_=void 0===s?"Verdana":s,c=t.fill,h=void 0===c?"black":c;return d("text",{"font-family":_,"font-size":"".concat(i,"px"),"text-anchor":r,"dominant-baseline":l,fill:h},e)},Ht=function(t){var n=t.text,i=t.height,o=void 0===i?12:i,r=t.fontFamily,a=void 0===r?"Verdana":r,l=t.fill,s=void 0===l?"black":l,_=t.onSizeUpdate,c=X(0),h=c[0],u=c[1],p=X(0),v=p[0],g=p[1];J((function(){_&&_({width:h,height:v})}),[h,v,_]);var y=K((function(){return n.split("\n")}),[n]);u(K((function(){return e.Utility.textSize(y,a,o)}),[a,o,y]).width),g(y.length*(o+2)-2);var x=-v/2+o/2,m=K((function(){return y.map((function(t,e){return d("g",{key:e,transform:"translate(0 ".concat(x+e*(o+2),")")},d(At,{text:t,height:o,fontFamily:a,fill:s}))}))}),[s,a,o,y,x]);return d(f,null,m)},Nt=function(t){var e=t.text,n=t.height,i=void 0===n?12:n,o=t.fontFamily,r=void 0===o?"Verdana":o,a=t.padding,l=void 0===a?4:a,s=t.fill,_=void 0===s?"whitesmoke":s,c=t.stroke,h=void 0===c?"lightgray":c,u=t.textFill,p=void 0===u?"black":u,v=t.strokeWidth,g=void 0===v?1:v,y=t.cornerRadius,x=void 0===y?0:y,m=t.onSizeUpdate,k=X(0),F=k[0],b=k[1],C=X(0),w=C[0],S=C[1];J((function(){m&&m({width:F,height:w})}),[F,w,m]);var R=$((function(t){b(t.width),S(t.height)}),[]),W=F+2*l+g,O=w+2*l+g,T=Math.floor(i/10);return d(f,null,d(Rt,{width:W,height:O,fill:_,stroke:h,strokeWidth:g,cornerRadius:x}),d("g",{transform:"translate(0 ".concat(T,")")},d(Ht,{text:e,fontFamily:r,height:i,fill:p,onSizeUpdate:R})))},Dt=function(t){var e=t.x,n=t.y,i=t.annotationIDs,o=void 0===i?[]:i,r=t.stepSize,a=void 0===r?-16:r,l=o.map((function(t,i){return d("g",{key:t,transform:"translate(".concat(e+i*a," ").concat(n,")")},d("use",{href:"#"+t}))}));return d(f,null,l)},Mt=function(t){var n=t.text,i=void 0===n?"":n,o=t.textHeight,r=void 0===o?10:o,a=t.textPadding,l=void 0===a?4:a,s=t.textFill,_=void 0===s?"#287EC4":s,c=t.textboxFill,h=void 0===c?"white":c,u=t.textboxStroke,f=void 0===u?"#CCCCCC":u,p=t.textboxStrokeWidth,v=void 0===p?1:p,g=t.textFontFamily,y=void 0===g?"Verdana":g,x=t.annotationGutter,m=void 0===x?2:x,k=t.annotations,F=void 0===k?[]:k,b=t.cornerRadius,C=void 0===b?3:b,w=t.icon,S=void 0===w?{}:w,R=t.subText,W=void 0===R?{}:R,O=t.showLabel,T=void 0===O||O,E=t.noLabelRadius,P=void 0===E?5:E,A=t.expansionIcon,H=t.scale,N=void 0===H?1:H;S=Ft({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},S),W=Ft({text:"",fill:"white",textFill:"#555555"},W),A=A?Ft({height:16,shape:"circle",padding:6,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"black",fill:"whitesmoke",stroke:"whitesmoke",strokeWidth:0},A):void 0;var D=0,M=K((function(){return e.Utility.textSize(i,y,r,!1).width}),[i,y,r]),I=0;""!==i&&(I=M+2*l+2*v);var V=(D+=I+m)-I/2,L=r+2*l+2*v,U=[];F.forEach((function(t,e){var n=t.imageChar,i=(D+=L+m)-L/2;U.push(d("g",{key:e,class:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(i," ").concat(0,")")},d(Ot,Ft({},t,{shape:"square",height:L,imageChar:n,imageFontFamily:t.imageFontFamily,cornerRadius:C,strokeWidth:0}))))})),F.length>0&&(D+=m*(F.length-1));var z=d("g",{"data-click":"text",transform:"translate(".concat(V," ").concat(0,")")},T&&""!==i?d(Nt,{text:i,height:r,padding:l,strokeWidth:v,stroke:f,fill:h,textFill:_,fontFamily:y,cornerRadius:C}):d("circle",{r:P,stroke:f,fill:_})),j=S.height||20,q=S.strokeWidth||0,B=0,G=L+2*m;""!==i||U.length>0?B=-j/2-q-L/2-2*m:""!==W.text&&(G=j/2+q+2*m);var X=""===W.text?null:d("g",{"data-click":"subtext",transform:"translate(".concat(0," ").concat(G,")")},d(Nt,Ft({fill:W.fill||"#FFFFFF",textFill:W.textFill||_},W,{height:r,padding:l,strokeWidth:0,stroke:f,fontFamily:y,cornerRadius:C})));return d("g",{transform:"scale(".concat(N,")")},d("g",{"data-click":"icon",transform:"translate(".concat(0," ").concat(B,")")},d(Ot,Ft({},S)),A&&d("g",{"data-click":"expanded-icon","data-click-data":JSON.stringify(A),transform:"translate(".concat((S.height+q)/2-A.height/2," ").concat(-(S.height+q)/2+A.height/2,")")},d(Ot,Ft({},A)))),d("g",{transform:"translate(".concat(-D/2," ").concat(0,")")},z,U),X)},It=function(t){t.categoryID;var n=t.text,i=void 0===n?"":n,o=t.textHeight,r=void 0===o?10:o,a=t.textPadding,l=void 0===a?4:a,s=t.textFill,_=void 0===s?"#287EC4":s,c=t.textboxFill,h=void 0===c?"white":c,u=t.textboxStroke,f=void 0===u?"#CCCCCC":u,p=t.textboxStrokeWidth,v=void 0===p?1:p,g=t.textFontFamily,y=void 0===g?"Verdana":g,x=t.annotationGutter,m=void 0===x?2:x,k=t.annotations,F=void 0===k?[]:k,b=t.iconAnnotations,C=void 0===b?[]:b,w=t.cornerRadius,S=void 0===w?3:w,R=t.icon,W=void 0===R?{}:R,O=t.subText,T=void 0===O?{}:O,E=t.showLabel,P=void 0===E||E,A=t.noLabelRadius,H=void 0===A?5:A,N=t.iconBorderWidth,D=void 0===N?1:N,M=t.iconBorderColor,I=void 0===M?"#333":M,V=t.iconBackgroundColor,L=void 0===V?"#fff":V,U=t.iconFontColor,z=void 0===U?"#000":U,j=t.iconFontSize,q=void 0===j?20:j,B=t.iconFontFamily,G=void 0===B?"FontAwesome":B,X=t.shapeOffsetX,Y=void 0===X?0:X,J=t.shapeOffsetY,$=void 0===J?0:J,Z=t.iconOffsetX,Q=void 0===Z?0:Z,tt=t.iconOffsetY,et=void 0===tt?0:tt,nt=t.iconPadding,it=void 0===nt?4:nt,ot=t.iconText,rt=void 0===ot?"?":ot,at=t.shapeRendering,lt=void 0===at?"auto":at;W=Ft({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},W),T=Ft({text:"",fill:"white",textFill:"#555555"},T);var st=K((function(){return e.Utility.textSize(i,y,r,!1).width}),[i,y,r]),_t=0;""!==i&&(_t=st+2*l+2*v);var ct=_t+m,ht=ct-_t/2,dt=r+2*m+2*v,ut=F.map((function(t,n){return e.Utility.textSize(t.imageChar,t.imageFontFamily,t.height,!1).width})),ft=[],pt=ct;F.forEach((function(t,e){var n,i=t.imageChar,o=null!==(n=t.height)&&void 0!==n?n:dt,r=(pt+=ut[e]+m)-ut[e]/2;ft.push(d("g",{key:e,class:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(r," ").concat(0,")")},d(Ot,Ft({},t,{shape:"rectangle",width:ut[e],height:o,imageChar:i,imageFontFamily:t.imageFontFamily,cornerRadius:S,strokeWidth:0}))))})),F.length>0&&(ct+=m*(F.length-1));var vt=[];C.forEach((function(t,e){var n,i=t.shapeOffsetX,o=t.shapeOffsetY;vt.push(d("g",{key:e,class:"vertex3-iconAnno","data-click":"icon-annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(i," ").concat(o,")")},d(Ot,Ft({},t,{shape:null!==(n=t.shape)&&void 0!==n?n:"square",imageChar:t.imageChar,imageFontFamily:t.imageFontFamily,cornerRadius:S,stroke:t.stroke,strokeWidth:t.strokeWidth}))))}));var gt=d("g",{"data-click":"text",transform:"translate(".concat(ht," ").concat(0,")")},P&&""!==i?d(Nt,{text:i,height:r,padding:l,strokeWidth:v,stroke:f,fill:h,textFill:_,fontFamily:y,cornerRadius:S}):d("circle",{r:H,stroke:f,fill:_})),yt=dt+2*m,xt=""===T.text?null:d("g",{"data-click":"subtext",transform:"translate(".concat(0," ").concat(yt,")")},d(Nt,Ft({fill:T.fill||"#FFFFFF",textFill:T.textFill||_},T,{height:r,padding:l,strokeWidth:0,stroke:f,fontFamily:y,cornerRadius:S})));return d("g",null,d("g",{"data-click":"icon",transform:"translate(".concat(Y," ").concat($,")")},d(Ot,Ft({},W,{strokeWidth:D,shape:"circle",height:q,fill:L,stroke:I,imageFontFamily:G,imageChar:rt,imageCharFill:z,padding:it,xOffset:Q,yOffset:et,cornerRadius:S,shapeRendering:lt})),vt),d("g",{transform:"translate(".concat(-ct/2," ").concat(0,")")},gt,ft),xt)};t.Annotations=Dt,t.BUILD_VERSION="2.104.7",t.CentroidVertex3=function(t){var e=t.id,n=t.categoryID,i=void 0===n?"":n,o=t.text,r=void 0===o?"":o,a=t.textHeight,l=void 0===a?12:a,s=t.textPadding,_=void 0===s?10:s,c=t.textFill,h=void 0===c?"#287EC4":c,u=t.textboxFill,f=void 0===u?"white":u,p=t.textboxStroke,v=void 0===p?"#CCCCCC":p,g=t.textboxStrokeWidth,y=void 0===g?1:g,x=t.textFontFamily,m=void 0===x?"Verdana":x,k=t.annotationGutter,F=void 0===k?2:k,b=t.annotations,C=void 0===b?[]:b,w=t.cornerRadius,S=t.icon,R=void 0===S?{}:S,W=t.subText,O=void 0===W?{}:W,T=t.expansionIcon,E=t.scale,P=void 0===E?1:E;return R=Ft({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},R),O=Ft({text:"",fill:"transparent",textFill:"#555555"},O),d(Mt,Ft({},{id:e,categoryID:i,text:r,textHeight:l,textPadding:_,textFill:h,textboxFill:f,textboxStroke:v,textboxStrokeWidth:y,textFontFamily:m,annotationGutter:F,annotations:C,cornerRadius:w,icon:R,subText:O,expansionIcon:T,scale:P},{icon:R,subText:O}))},t.CentroidVertex4=function(t){var e=t.id,n=t.categoryID,i=void 0===n?"":n,o=t.text,r=void 0===o?"":o,a=t.textHeight,l=void 0===a?12:a,s=t.textPadding,_=void 0===s?10:s,c=t.textFill,h=void 0===c?"#287EC4":c,u=t.textboxFill,f=void 0===u?"white":u,p=t.textboxStroke,v=void 0===p?"#CCCCCC":p,g=t.textboxStrokeWidth,y=void 0===g?1:g,x=t.textFontFamily,m=void 0===x?"Verdana":x,k=t.annotationGutter,F=void 0===k?2:k,b=t.annotations,C=void 0===b?[]:b,w=t.iconAnnotations,S=void 0===w?[]:w,R=t.cornerRadius,W=t.icon,O=void 0===W?{}:W,T=t.subText,E=void 0===T?{}:T,P=t.showLabel,A=void 0===P||P,H=t.noLabelRadius,N=void 0===H?5:H,D=t.iconBorderWidth,M=void 0===D?1:D,I=t.iconBorderColor,V=void 0===I?"#333":I,L=t.iconBackgroundColor,U=void 0===L?"#fff":L,z=t.iconFontColor,j=void 0===z?"#000":z,q=t.iconFontSize,B=void 0===q?20:q,G=t.iconFontFamily,X=void 0===G?"FontAwesome":G,Y=t.shapeOffsetX,J=void 0===Y?0:Y,K=t.shapeOffsetY,$=void 0===K?0:K,Z=t.iconOffsetX,Q=void 0===Z?0:Z,tt=t.iconOffsetY,et=void 0===tt?0:tt,nt=t.iconPadding,it=void 0===nt?4:nt,ot=t.iconText,rt=void 0===ot?"?":ot,at=t.shapeRendering,lt=void 0===at?"auto":at;return O=Ft({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},O),E=Ft({text:"",fill:"transparent",textFill:"#555555"},E),d(It,Ft({},{id:e,categoryID:i,text:r,textHeight:l,textPadding:_,textFill:h,textboxFill:f,textboxStroke:v,textboxStrokeWidth:y,textFontFamily:m,annotationGutter:F,annotations:C,iconAnnotations:S,cornerRadius:R,icon:O,subText:E,showLabel:A,noLabelRadius:N,iconBorderWidth:M,iconBorderColor:V,iconBackgroundColor:U,iconFontColor:j,iconFontSize:B,iconFontFamily:X,shapeOffsetX:J,shapeOffsetY:$,iconOffsetX:Q,iconOffsetY:et,iconPadding:it,iconText:rt,shapeRendering:lt},{icon:O,subText:E}))},t.Circle=wt,t.Edge=function(t){var e=t.points,n=void 0===e?[]:e,i=t.curveDepth,o=void 0===i?16:i,r=t.stroke;return d("path",{stroke:void 0===r?"black":r,"stroke-dasharray":t.strokeDasharray,d:K((function(){return yt(function(t,e){if(2===t.length&&e){var n=t[0][0]-t[1][0],i=t[0][1]-t[1][1];if(Math.sqrt(n*n+i*i)){var o=(t[0][0]+t[1][0])/2-i*e/100,r=(t[0][1]+t[1][1])/2+n*e/100;return[t[0],[o,r],t[1]]}}return t}(n,o))}),[o,n])})},t.HTMLAdapter=Et,t.Icon=Ot,t.IconLabelledRect=function(t){var e=t.icon,n=t.iconFontFamily,i=t.text,o=t.height,r=void 0===o?12:o,a=t.width,l=void 0===a?12:a,s=t.fontFamily,_=void 0===s?"Verdana":s,c=t.fontSize,h=void 0===c?10:c,u=t.padding,p=void 0===u?3:u,v=t.fill,g=void 0===v?"whitesmoke":v,y=t.stroke,x=void 0===y?"lightgray":y,m=t.textFill,k=void 0===m?"black":m,F=t.strokeWidth,b=void 0===F?1:F,C=t.cornerRadius,w=void 0===C?0:C;return t.onSizeUpdate,d(f,null,d(Rt,{width:l,height:r,fill:g,stroke:x,strokeWidth:b,cornerRadius:w}),d("g",{transform:"translate(".concat(-l/2+p," ").concat(-r/2+p,")")},d(Ot,{shape:"square",imageFontFamily:n,imageChar:e,height:r,fill:g,imageCharFill:k})),d("g",{transform:"translate(".concat(-l/2+2*p+r," ").concat(-r/2+p,")")},d(At,{text:i,fontFamily:_,height:h,fill:k,anchor:"start",baseline:"hanging"})))},t.Icons=function(t){var e=t.icons,n=(void 0===e?[]:e).map((function(t){return d("g",{key:t.id,id:t.id},d(Ot,Ft({},t)))}));return d(f,null,n)},t.ImageChar=xt,t.LabelledRect=function(t){var e=t.text,n=t.height,i=void 0===n?12:n,o=t.width,r=void 0===o?12:o,a=t.fontFamily,l=void 0===a?"Verdana":a,s=t.fontSize,_=void 0===s?10:s,c=t.padding,h=void 0===c?3:c,u=t.fill,p=void 0===u?"whitesmoke":u,v=t.stroke,g=void 0===v?"lightgray":v,y=t.textFill,x=void 0===y?"black":y,m=t.strokeWidth,k=void 0===m?1:m,F=t.cornerRadius,b=void 0===F?0:F;return t.onSizeUpdate,d(f,null,d(Rt,{width:r,height:i,fill:p,stroke:g,strokeWidth:k,cornerRadius:b}),d("g",{transform:"translate(".concat(-r/2+h," ").concat(-i/2+h,")")},d(At,{text:e,fontFamily:l,height:_,fill:x,anchor:"start",baseline:"hanging"})))},t.PKG_NAME="@hpcc-js/react",t.PKG_VERSION="2.52.2",t.React=ot,t.Rectangle=Rt,t.SVGAdapter=Pt,t.Shape=Wt,t.Square=St,t.Subgraph=function(t){var n=t.text,i=t.width,o=void 0===i?100:i,r=t.height,a=void 0===r?100:r,l=t.fill,s=void 0===l?"transparent":l,_=t.stroke,c=void 0===_?"black":_,h=t.fontHeight,u=void 0===h?12:h,p=t.fontFamily,v=e.Utility.textSize(n,p,u,!1);return d(f,null,d(Rt,{width:o,height:a,fill:s,stroke:c}),d("g",{transform:"translate(".concat((-o+v.width)/2+4," ").concat((-a+v.height)/2+4,")")},d(Ht,{height:u,text:n,fontFamily:p})))},t.Text=Ht,t.TextBox=Nt,t.TextLine=At,t.Vertex=function(t){var e=t.categoryID,n=void 0===e?"":e,i=t.text,o=void 0===i?"":i,r=t.textHeight,a=void 0===r?12:r,l=t.textPadding,s=void 0===l?4:l,_=t.icon,c=void 0===_?{}:_,h=t.annotationsHeight,u=void 0===h?12:h,f=t.annotationIDs,p=void 0===f?[]:f,v=t.textFill,g=t.textboxFill,y=t.textboxStroke,x=t.textFontFamily,m=t.onSizeUpdate,k=t.showLabel,F=void 0===k||k,b=t.scale,C=void 0===b?1:b,w=X(0),S=w[0],R=w[1],W=X(0),O=W[0],T=W[1];J((function(){m&&m({width:0,height:0})}),[S,O,m]);var E=S;E+=4;var P=-(2*(c=Ft({imageChar:"fa-question",height:32,fill:"transparent"},c)).height/6+a+8)/2,A=c.height/3+O/2+s,H=c.height/3+O+s+u/3;F||(P+=(a+8)/2,H-=O+s);var N=$((function(t){R(t.width),T(t.height)}),[]),D=F?d("g",{transform:"translate(0 ".concat(A,")")},d(Nt,{text:o,height:a,padding:s,onSizeUpdate:N,textFill:v,fill:g,stroke:y,fontFamily:x})):void 0;return n?d("g",{transform:"translate(0 ".concat(P,") scale(").concat(C,")")},d("use",{href:"#"+n}),D,d(Dt,{x:E/2,y:H,annotationIDs:p})):d("g",{transform:"translate(0 ".concat(P,") scale(").concat(C,")")},d(Ot,Ft({},c)),D)},t.Vertex2=function(t){var n=t.categoryID,i=void 0===n?"":n,o=t.text,r=void 0===o?"":o,a=t.textHeight,l=void 0===a?12:a,s=t.textPadding,_=void 0===s?4:s,c=t.icon,h=void 0===c?{}:c,u=t.textFill,p=void 0===u?"black":u,v=t.textboxFill,g=void 0===v?"white":v,y=t.textboxStroke,x=void 0===y?"black":y,m=t.textFontFamily,k=t.annotationsHeight,F=void 0===k?12:k,b=t.annotationIDs,C=void 0===b?[]:b;h=Ft({imageChar:"fa-question",imageCharFill:"white",height:32,fill:"black",shape:"square"},h);var w=l+2*_,S=K((function(){return e.Utility.textSize(r,m,l,!1)}),[r,m,l]).width,R=F,W=w/2,O=-(2*h.height/6+l+8)/2,T=-h.height/2,E=Math.ceil(S/2+_),P=W-h.height/2,A=R/2,H=W;return i?d("g",{transform:"translate(".concat(0," ").concat(O,")")},d("g",{transform:"translate(".concat(T," ").concat(0,")")},d("use",{href:"#"+i})),d("g",{transform:"translate(".concat(E," ").concat(P,")")},d(Nt,{text:r,height:l,padding:_,strokeWidth:1,stroke:x,fill:g,textFill:p,fontFamily:m})),d(Dt,{x:A,y:H,annotationIDs:C,stepSize:R})):d(f,null,d("g",{transform:"translate(".concat(T," ").concat(0,")scale(1.0002)")},d(Ot,Ft({},h,{shape:"square"}))),d("g",{transform:"translate(".concat(E," ").concat(P,")scale(1.0002)")},d(Nt,{text:r,height:l,padding:_,stroke:x,fill:g})))},t.Vertex3=Mt,t.Vertex4=It,t.render=Tt,t.svgRender=function(t,e,n,i){A(d("svg",null,d(t,e)),n,i)},Object.defineProperty(t,"__esModule",{value:!0})}));
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@hpcc-js/react"]={},t["@hpcc-js/common"])}(this,(function(t,e){"use strict";var n,i,o,r,a,l={},s=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function c(t,e){for(var n in e)t[n]=e[n];return t}function h(t){var e=t.parentNode;e&&e.removeChild(t)}function d(t,e,i){var o,r,a,l={};for(a in e)"key"==a?o=e[a]:"ref"==a?r=e[a]:l[a]=e[a];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===l[a]&&(l[a]=t.defaultProps[a]);return u(t,l,o,r,null)}function u(t,e,n,r,a){var l={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=i.vnode&&i.vnode(l),l}function f(t){return t.children}function p(t,e){this.props=t,this.context=e}function v(t,e){if(null==e)return t.__?v(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?v(t):null}function g(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return g(t)}}function y(t){(!t.__d&&(t.__d=!0)&&r.push(t)&&!x.__r++||a!==i.debounceRendering)&&((a=i.debounceRendering)||setTimeout)(x)}function x(){for(var t;x.__r=r.length;)t=r.sort((function(t,e){return t.__v.__b-e.__v.__b})),r=[],t.some((function(t){var e,n,i,o,r,a;t.__d&&(r=(o=(e=t).__v).__e,(a=e.__P)&&(n=[],(i=c({},o)).__v=o.__v+1,R(a,o,i,e.__n,void 0!==a.ownerSVGElement,null!=o.__h?[r]:null,n,null==r?v(o):r,o.__h),W(n,o),o.__e!=r&&g(o)))}))}function m(t,e,n,i,o,r,a,_,c,h){var d,p,g,y,x,m,b,C=i&&i.__k||s,w=C.length;for(n.__k=[],d=0;d<e.length;d++)if(null!=(y=n.__k[d]=null==(y=e[d])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?u(null,y,null,null,y):Array.isArray(y)?u(f,{children:y},null,null,null):y.__b>0?u(y.type,y.props,y.key,null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(g=C[d])||g&&y.key==g.key&&y.type===g.type)C[d]=void 0;else for(p=0;p<w;p++){if((g=C[p])&&y.key==g.key&&y.type===g.type){C[p]=void 0;break}g=null}R(t,y,g=g||l,o,r,a,_,c,h),x=y.__e,(p=y.ref)&&g.ref!=p&&(b||(b=[]),g.ref&&b.push(g.ref,null,y),b.push(p,y.__c||x,y)),null!=x?(null==m&&(m=x),"function"==typeof y.type&&y.__k===g.__k?y.__d=c=k(y,c,t):c=F(t,y,g,C,x,c),"function"==typeof n.type&&(n.__d=c)):c&&g.__e==c&&c.parentNode!=t&&(c=v(g))}for(n.__e=m,d=w;d--;)null!=C[d]&&("function"==typeof n.type&&null!=C[d].__e&&C[d].__e==n.__d&&(n.__d=v(i,d+1)),E(C[d],C[d]));if(b)for(d=0;d<b.length;d++)T(b[d],b[++d],b[++d])}function k(t,e,n){for(var i,o=t.__k,r=0;o&&r<o.length;r++)(i=o[r])&&(i.__=t,e="function"==typeof i.type?k(i,e,n):F(n,i,i,o,i.__e,e));return e}function F(t,e,n,i,o,r){var a,l,s;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||o!=r||null==o.parentNode)t:if(null==r||r.parentNode!==t)t.appendChild(o),a=null;else{for(l=r,s=0;(l=l.nextSibling)&&s<i.length;s+=2)if(l==o)break t;t.insertBefore(o,r),a=r}return void 0!==a?a:o.nextSibling}function b(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||_.test(e)?n:n+"px"}function C(t,e,n,i,o){var r;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof i&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||b(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||b(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])r=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+r]=n,n?i||t.addEventListener(e,r?S:w,r):t.removeEventListener(e,r?S:w,r);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function w(t){this.l[t.type+!1](i.event?i.event(t):t)}function S(t){this.l[t.type+!0](i.event?i.event(t):t)}function R(t,e,n,o,r,a,l,s,_){var h,d,u,v,g,y,x,k,F,b,C,w,S,R=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(_=n.__h,s=e.__e=n.__e,e.__h=null,a=[s]),(h=i.__b)&&h(e);try{t:if("function"==typeof R){if(k=e.props,F=(h=R.contextType)&&o[h.__c],b=h?F?F.props.value:h.__:o,n.__c?x=(d=e.__c=n.__c).__=d.__E:("prototype"in R&&R.prototype.render?e.__c=d=new R(k,b):(e.__c=d=new p(k,b),d.constructor=R,d.render=P),F&&F.sub(d),d.props=k,d.state||(d.state={}),d.context=b,d.__n=o,u=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=R.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=c({},d.__s)),c(d.__s,R.getDerivedStateFromProps(k,d.__s))),v=d.props,g=d.state,u)null==R.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==R.getDerivedStateFromProps&&k!==v&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(k,b),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(k,d.__s,b)||e.__v===n.__v){d.props=k,d.state=d.__s,e.__v!==n.__v&&(d.__d=!1),d.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),d.__h.length&&l.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(k,d.__s,b),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(v,g,y)}))}if(d.context=b,d.props=k,d.__v=e,d.__P=t,C=i.__r,w=0,"prototype"in R&&R.prototype.render)d.state=d.__s,d.__d=!1,C&&C(e),h=d.render(d.props,d.state,d.context);else do{d.__d=!1,C&&C(e),h=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++w<25);d.state=d.__s,null!=d.getChildContext&&(o=c(c({},o),d.getChildContext())),u||null==d.getSnapshotBeforeUpdate||(y=d.getSnapshotBeforeUpdate(v,g)),S=null!=h&&h.type===f&&null==h.key?h.props.children:h,m(t,Array.isArray(S)?S:[S],e,n,o,r,a,l,s,_),d.base=e.__e,e.__h=null,d.__h.length&&l.push(d),x&&(d.__E=d.__=null),d.__e=!1}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=O(n.__e,e,n,o,r,a,l,_);(h=i.diffed)&&h(e)}catch(t){e.__v=null,(_||null!=a)&&(e.__e=s,e.__h=!!_,a[a.indexOf(s)]=null),i.__e(t,e,n)}}function W(t,e){i.__c&&i.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){i.__e(t,e.__v)}}))}function O(t,e,i,o,r,a,s,_){var c,d,u,f=i.props,p=e.props,g=e.type,y=0;if("svg"===g&&(r=!0),null!=a)for(;y<a.length;y++)if((c=a[y])&&"setAttribute"in c==!!g&&(g?c.localName===g:3===c.nodeType)){t=c,a[y]=null;break}if(null==t){if(null===g)return document.createTextNode(p);t=r?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,p.is&&p),a=null,_=!1}if(null===g)f===p||_&&t.data===p||(t.data=p);else{if(a=a&&n.call(t.childNodes),d=(f=i.props||l).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!_){if(null!=a)for(f={},y=0;y<t.attributes.length;y++)f[t.attributes[y].name]=t.attributes[y].value;(u||d)&&(u&&(d&&u.__html==d.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(function(t,e,n,i,o){var r;for(r in n)"children"===r||"key"===r||r in e||C(t,r,null,n[r],i);for(r in e)o&&"function"!=typeof e[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===e[r]||C(t,r,e[r],n[r],i)}(t,p,f,r,_),u)e.__k=[];else if(y=e.props.children,m(t,Array.isArray(y)?y:[y],e,i,o,r&&"foreignObject"!==g,a,s,a?a[0]:i.__k&&v(i,0),_),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);_||("value"in p&&void 0!==(y=p.value)&&(y!==t.value||"progress"===g&&!y||"option"===g&&y!==f.value)&&C(t,"value",y,f.value,!1),"checked"in p&&void 0!==(y=p.checked)&&y!==t.checked&&C(t,"checked",y,f.checked,!1))}return t}function T(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){i.__e(t,n)}}function E(t,e,n){var o,r;if(i.unmount&&i.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||T(o,null,e)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){i.__e(t,e)}o.base=o.__P=null}if(o=t.__k)for(r=0;r<o.length;r++)o[r]&&E(o[r],e,"function"!=typeof t.type);n||null==t.__e||h(t.__e),t.__e=t.__d=void 0}function P(t,e,n){return this.constructor(t,n)}function A(t,e,o){var r,a,s;i.__&&i.__(t,e),a=(r="function"==typeof o)?null:o&&o.__k||e.__k,s=[],R(e,t=(!r&&o||e).__k=d(f,null,[t]),a||l,l,void 0!==e.ownerSVGElement,!r&&o?[o]:a?null:e.firstChild?n.call(e.childNodes):null,s,!r&&o?o:a?a.__e:e.firstChild,r),W(s,t)}n=s.slice,i={__e:function(t,e,n,i){for(var o,r,a;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(t)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,i||{}),a=o.__d),a)return o.__E=o}catch(e){t=e}throw t}},o=0,p.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=c({},this.state),"function"==typeof t&&(t=t(c({},n),this.props)),t&&c(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),y(this))},p.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),y(this))},p.prototype.render=f,r=[],x.__r=0;var H,N,D,M,I=0,V=[],L=[],U=i.__b,z=i.__r,j=i.diffed,q=i.__c,B=i.unmount;function G(t,e){i.__h&&i.__h(N,t,I||e),I=0;var n=N.__H||(N.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:L}),n.__[t]}function X(t){return I=1,Y(it,t)}function Y(t,e,n){var i=G(H++,2);if(i.t=t,!i.__c&&(i.__=[n?n(e):it(void 0,e),function(t){var e=i.__N?i.__N[0]:i.__[0],n=i.t(e,t);e!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=N,!N.u)){N.u=!0;var o=N.shouldComponentUpdate;N.shouldComponentUpdate=function(t,e,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(t){return t.__c}));if(r.every((function(t){return!t.__N})))return!o||o.call(this,t,e,n);var a=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),!!a&&(!o||o.call(this,t,e,n))}}return i.__N||i.__}function J(t,e){var n=G(H++,3);!i.__s&&nt(n.__H,e)&&(n.__=t,n.i=e,N.__H.__h.push(n))}function K(t,e){var n=G(H++,7);return nt(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function $(t,e){return I=8,K((function(){return t}),e)}function Z(){for(var t;t=V.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(tt),t.__H.__h.forEach(et),t.__H.__h=[]}catch(e){t.__H.__h=[],i.__e(e,t.__v)}}i.__b=function(t){N=null,U&&U(t)},i.__r=function(t){z&&z(t),H=0;var e=(N=t.__c).__H;e&&(D===N?(e.__h=[],N.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=L,t.__N=t.i=void 0}))):(e.__h.forEach(tt),e.__h.forEach(et),e.__h=[])),D=N},i.diffed=function(t){j&&j(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==V.push(e)&&M===i.requestAnimationFrame||((M=i.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(i),Q&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);Q&&(e=requestAnimationFrame(n))})(Z)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==L&&(t.__=t.__V),t.i=void 0,t.__V=L}))),D=N=null},i.__c=function(t,e){e.some((function(t){try{t.__h.forEach(tt),t.__h=t.__h.filter((function(t){return!t.__||et(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],i.__e(n,t.__v)}})),q&&q(t,e)},i.unmount=function(t){B&&B(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{tt(t)}catch(t){e=t}})),e&&i.__e(e,n.__v))};var Q="function"==typeof requestAnimationFrame;function tt(t){var e=N,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),N=e}function et(t){var e=N;t.__c=t.__(),N=e}function nt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function it(t,e){return"function"==typeof e?e(t):e}var ot=Object.freeze({__proto__:null,BUILD_VERSION:"2.104.8",Component:p,Fragment:f,PKG_NAME:"@hpcc-js/preact-shim",PKG_VERSION:"2.16.2",createElement:d,h:d,render:A,useCallback:$,useEffect:J,useMemo:K,useReducer:Y,useState:X}),rt=Math.PI,at=2*rt,lt=1e-6,st=at-lt;function _t(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ct(){return new _t}function ht(t){return function(){return t}}function dt(t){this._context=t}function ut(t){return new dt(t)}function ft(t){return t[0]}function pt(t){return t[1]}function vt(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function gt(t){this._context=t}_t.prototype=ct.prototype={constructor:_t,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,o,r){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+o)+","+(this._y1=+r)},arcTo:function(t,e,n,i,o){t=+t,e=+e,n=+n,i=+i,o=+o;var r=this._x1,a=this._y1,l=n-t,s=i-e,_=r-t,c=a-e,h=_*_+c*c;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>lt)if(Math.abs(c*l-s*_)>lt&&o){var d=n-r,u=i-a,f=l*l+s*s,p=d*d+u*u,v=Math.sqrt(f),g=Math.sqrt(h),y=o*Math.tan((rt-Math.acos((f+h-p)/(2*v*g)))/2),x=y/g,m=y/v;Math.abs(x-1)>lt&&(this._+="L"+(t+x*_)+","+(e+x*c)),this._+="A"+o+","+o+",0,0,"+ +(c*d>_*u)+","+(this._x1=t+m*l)+","+(this._y1=e+m*s)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,i,o,r){t=+t,e=+e,r=!!r;var a=(n=+n)*Math.cos(i),l=n*Math.sin(i),s=t+a,_=e+l,c=1^r,h=r?i-o:o-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+s+","+_:(Math.abs(this._x1-s)>lt||Math.abs(this._y1-_)>lt)&&(this._+="L"+s+","+_),n&&(h<0&&(h=h%at+at),h>st?this._+="A"+n+","+n+",0,1,"+c+","+(t-a)+","+(e-l)+"A"+n+","+n+",0,1,"+c+","+(this._x1=s)+","+(this._y1=_):h>lt&&(this._+="A"+n+","+n+",0,"+ +(h>=rt)+","+c+","+(this._x1=t+n*Math.cos(o))+","+(this._y1=e+n*Math.sin(o))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}},dt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},gt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:vt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:vt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var yt=function(){var t=ft,e=pt,n=ht(!0),i=null,o=ut,r=null;function a(a){var l,s,_,c=a.length,h=!1;for(null==i&&(r=o(_=ct())),l=0;l<=c;++l)!(l<c&&n(s=a[l],l,a))===h&&((h=!h)?r.lineStart():r.lineEnd()),h&&r.point(+t(s,l,a),+e(s,l,a));if(_)return r=null,_+""||null}return a.x=function(e){return arguments.length?(t="function"==typeof e?e:ht(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:ht(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:ht(!!t),a):n},a.curve=function(t){return arguments.length?(o=t,null!=i&&(r=o(i)),a):o},a.context=function(t){return arguments.length?(null==t?i=r=null:r=o(i=t),a):i},a}().x((function(t){return t[0]})).y((function(t){return t[1]})).curve((function(t){return new gt(t)}));var xt=function(t){var n=t.x,i=t.y,o=void 0===i?0:i,r=t.height,a=void 0===r?12:r,l=t.fill,s=t.stroke,_=t.fontFamily,c=void 0===_?"FontAwesome":_,h=t.char,u=void 0===h?"":h,f=K((function(){return"FontAwesome"===c?e.Utility.faChar(u):u}),[u,c]);return d("text",{x:n,y:o,fill:l,stroke:s,"font-family":c,"font-size":"".concat(a,"px"),"dominant-baseline":"middle",style:"text-anchor: middle;alignment-baseline:middle;"},f)},mt=function(t,e){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},mt(t,e)};function kt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}mt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Ft=function(){return Ft=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ft.apply(this,arguments)};function bt(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function Ct(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var wt=function(t){var e=t.radius,n=void 0===e?32:e,i=t.fill,o=void 0===i?"navy":i,r=t.stroke,a=void 0===r?o:r,l=t.strokeWidth;return d("circle",{r:n,fill:o,stroke:a,"stroke-width":void 0===l?1:l,"shape-rendering":t.shapeRendering})},St=function(t){var e=t.radius,n=void 0===e?30:e,i=t.cornerRadius,o=void 0===i?0:i,r=t.fill,a=void 0===r?"white":r,l=t.stroke,s=t.strokeWidth;return d("rect",{x:-n,y:-n,rx:o,ry:o,width:2*n,height:2*n,fill:a,stroke:l||a,"stroke-width":void 0===s?1:s,"shape-rendering":t.shapeRendering})},Rt=function(t){var e=t.width,n=void 0===e?30:e,i=t.height,o=void 0===i?30:i,r=t.cornerRadius,a=void 0===r?0:r,l=t.fill,s=void 0===l?"white":l,_=t.stroke,c=void 0===_?"black":_,h=t.strokeWidth;return d("rect",{x:-n/2,y:-o/2,rx:a,ry:a,width:n,height:o,fill:s,stroke:c||s,"stroke-width":void 0===h?1:h,"shape-rendering":t.shapeRendering})},Wt=function(t){var e=t.shape,n=void 0===e?"circle":e,i=t.height,o=void 0===i?128:i,r=t.width,a=t.fill,l=t.stroke,s=t.strokeWidth,_=void 0===s?1:s,c=t.shapeRendering,h=t.cornerRadius;switch(n){case"square":return d(St,{radius:o/2,fill:a,stroke:l,strokeWidth:_,shapeRendering:c,cornerRadius:h});case"rectangle":return d(Rt,{width:null!=r?r:o,height:o,fill:a,stroke:l,strokeWidth:_,shapeRendering:c,cornerRadius:h});default:return d(wt,{radius:o/2,fill:a,stroke:l,strokeWidth:_,shapeRendering:c})}},Ot=function(t){var n=t.shape,i=void 0===n?"circle":n,o=t.width,r=t.height,a=void 0===r?32:r,l=t.fill,s=t.stroke,_=t.strokeWidth,c=void 0===_?0:_,h=t.imageFontFamily,u=void 0===h?"FontAwesome":h,p=t.imageChar,v=void 0===p?"":p,g=t.imageCharFill,y=void 0===g?e.Palette.textColor(l):g,x=t.padding,m=void 0===x?a/5:x,k=t.xOffset,F=void 0===k?0:k,b=t.yOffset,C=void 0===b?0:b,w=t.cornerRadius,S=t.shapeRendering;return d(f,null,d(Wt,{shape:i,width:o,height:a,fill:l,stroke:s,strokeWidth:c,shapeRendering:S,cornerRadius:w}),d(xt,{x:F,y:C,height:a-m,fontFamily:u,char:v,fill:y,"font-weight":400}))};function Tt(t,e,n,i){A(d(t,e),n,i)}var Et=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return kt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=Ft(Ft({},this._props),t),this):this._props},n.prototype.prop=function(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)},n.prototype.update=function(e,n){t.prototype.update.call(this,e,n),Tt(this._component,this._props,e)},bt([e.publish({},"object","Properties"),Ct("design:type",Object)],n.prototype,"_props",void 0),n}(e.HTMLWidget),Pt=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return kt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=Ft(Ft({},this._props),t),this):this._props},n.prototype.prop=function(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)},n.prototype.update=function(e,n){t.prototype.update.call(this,e,n),Tt(this._component,this._props,e)},bt([e.publish({},"object","Properties"),Ct("design:type",Object)],n.prototype,"_props",void 0),n}(e.SVGWidget),At=function(t){var e=t.text,n=t.height,i=void 0===n?12:n,o=t.anchor,r=void 0===o?"middle":o,a=t.baseline,l=void 0===a?"middle":a,s=t.fontFamily,_=void 0===s?"Verdana":s,c=t.fill,h=void 0===c?"black":c;return d("text",{"font-family":_,"font-size":"".concat(i,"px"),"text-anchor":r,"dominant-baseline":l,fill:h},e)},Ht=function(t){var n=t.text,i=t.height,o=void 0===i?12:i,r=t.fontFamily,a=void 0===r?"Verdana":r,l=t.fill,s=void 0===l?"black":l,_=t.onSizeUpdate,c=X(0),h=c[0],u=c[1],p=X(0),v=p[0],g=p[1];J((function(){_&&_({width:h,height:v})}),[h,v,_]);var y=K((function(){return n.split("\n")}),[n]);u(K((function(){return e.Utility.textSize(y,a,o)}),[a,o,y]).width),g(y.length*(o+2)-2);var x=-v/2+o/2,m=K((function(){return y.map((function(t,e){return d("g",{key:e,transform:"translate(0 ".concat(x+e*(o+2),")")},d(At,{text:t,height:o,fontFamily:a,fill:s}))}))}),[s,a,o,y,x]);return d(f,null,m)},Nt=function(t){var e=t.text,n=t.height,i=void 0===n?12:n,o=t.fontFamily,r=void 0===o?"Verdana":o,a=t.padding,l=void 0===a?4:a,s=t.fill,_=void 0===s?"whitesmoke":s,c=t.stroke,h=void 0===c?"lightgray":c,u=t.textFill,p=void 0===u?"black":u,v=t.strokeWidth,g=void 0===v?1:v,y=t.cornerRadius,x=void 0===y?0:y,m=t.onSizeUpdate,k=X(0),F=k[0],b=k[1],C=X(0),w=C[0],S=C[1];J((function(){m&&m({width:F,height:w})}),[F,w,m]);var R=$((function(t){b(t.width),S(t.height)}),[]),W=F+2*l+g,O=w+2*l+g,T=Math.floor(i/10);return d(f,null,d(Rt,{width:W,height:O,fill:_,stroke:h,strokeWidth:g,cornerRadius:x}),d("g",{transform:"translate(0 ".concat(T,")")},d(Ht,{text:e,fontFamily:r,height:i,fill:p,onSizeUpdate:R})))},Dt=function(t){var e=t.x,n=t.y,i=t.annotationIDs,o=void 0===i?[]:i,r=t.stepSize,a=void 0===r?-16:r,l=o.map((function(t,i){return d("g",{key:t,transform:"translate(".concat(e+i*a," ").concat(n,")")},d("use",{href:"#"+t}))}));return d(f,null,l)},Mt=function(t){var n=t.text,i=void 0===n?"":n,o=t.textHeight,r=void 0===o?10:o,a=t.textPadding,l=void 0===a?4:a,s=t.textFill,_=void 0===s?"#287EC4":s,c=t.textboxFill,h=void 0===c?"white":c,u=t.textboxStroke,f=void 0===u?"#CCCCCC":u,p=t.textboxStrokeWidth,v=void 0===p?1:p,g=t.textFontFamily,y=void 0===g?"Verdana":g,x=t.annotationGutter,m=void 0===x?2:x,k=t.annotations,F=void 0===k?[]:k,b=t.cornerRadius,C=void 0===b?3:b,w=t.icon,S=void 0===w?{}:w,R=t.subText,W=void 0===R?{}:R,O=t.showLabel,T=void 0===O||O,E=t.noLabelRadius,P=void 0===E?5:E,A=t.expansionIcon,H=t.scale,N=void 0===H?1:H;S=Ft({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},S),W=Ft({text:"",fill:"white",textFill:"#555555"},W),A=A?Ft({height:16,shape:"circle",padding:6,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"black",fill:"whitesmoke",stroke:"whitesmoke",strokeWidth:0},A):void 0;var D=0,M=K((function(){return e.Utility.textSize(i,y,r,!1).width}),[i,y,r]),I=0;""!==i&&(I=M+2*l+2*v);var V=(D+=I+m)-I/2,L=r+2*l+2*v,U=[];F.forEach((function(t,e){var n=t.imageChar,i=(D+=L+m)-L/2;U.push(d("g",{key:e,class:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(i," ").concat(0,")")},d(Ot,Ft({},t,{shape:"square",height:L,imageChar:n,imageFontFamily:t.imageFontFamily,cornerRadius:C,strokeWidth:0}))))})),F.length>0&&(D+=m*(F.length-1));var z=d("g",{"data-click":"text",transform:"translate(".concat(V," ").concat(0,")")},T&&""!==i?d(Nt,{text:i,height:r,padding:l,strokeWidth:v,stroke:f,fill:h,textFill:_,fontFamily:y,cornerRadius:C}):d("circle",{r:P,stroke:f,fill:_})),j=S.height||20,q=S.strokeWidth||0,B=0,G=L+2*m;""!==i||U.length>0?B=-j/2-q-L/2-2*m:""!==W.text&&(G=j/2+q+2*m);var X=""===W.text?null:d("g",{"data-click":"subtext",transform:"translate(".concat(0," ").concat(G,")")},d(Nt,Ft({fill:W.fill||"#FFFFFF",textFill:W.textFill||_},W,{height:r,padding:l,strokeWidth:0,stroke:f,fontFamily:y,cornerRadius:C})));return d("g",{transform:"scale(".concat(N,")")},d("g",{"data-click":"icon",transform:"translate(".concat(0," ").concat(B,")")},d(Ot,Ft({},S)),A&&d("g",{"data-click":"expanded-icon","data-click-data":JSON.stringify(A),transform:"translate(".concat((S.height+q)/2-A.height/2," ").concat(-(S.height+q)/2+A.height/2,")")},d(Ot,Ft({},A)))),d("g",{transform:"translate(".concat(-D/2," ").concat(0,")")},z,U),X)},It=function(t){t.categoryID;var n=t.text,i=void 0===n?"":n,o=t.textHeight,r=void 0===o?10:o,a=t.textPadding,l=void 0===a?4:a,s=t.textFill,_=void 0===s?"#287EC4":s,c=t.textboxFill,h=void 0===c?"white":c,u=t.textboxStroke,f=void 0===u?"#CCCCCC":u,p=t.textboxStrokeWidth,v=void 0===p?1:p,g=t.textFontFamily,y=void 0===g?"Verdana":g,x=t.annotationGutter,m=void 0===x?2:x,k=t.annotations,F=void 0===k?[]:k,b=t.iconAnnotations,C=void 0===b?[]:b,w=t.cornerRadius,S=void 0===w?3:w,R=t.icon,W=void 0===R?{}:R,O=t.subText,T=void 0===O?{}:O,E=t.showLabel,P=void 0===E||E,A=t.noLabelRadius,H=void 0===A?5:A,N=t.iconBorderWidth,D=void 0===N?1:N,M=t.iconBorderColor,I=void 0===M?"#333":M,V=t.iconBackgroundColor,L=void 0===V?"#fff":V,U=t.iconFontColor,z=void 0===U?"#000":U,j=t.iconFontSize,q=void 0===j?20:j,B=t.iconFontFamily,G=void 0===B?"FontAwesome":B,X=t.shapeOffsetX,Y=void 0===X?0:X,J=t.shapeOffsetY,$=void 0===J?0:J,Z=t.iconOffsetX,Q=void 0===Z?0:Z,tt=t.iconOffsetY,et=void 0===tt?0:tt,nt=t.iconPadding,it=void 0===nt?4:nt,ot=t.iconText,rt=void 0===ot?"?":ot,at=t.shapeRendering,lt=void 0===at?"auto":at;W=Ft({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},W),T=Ft({text:"",fill:"white",textFill:"#555555"},T);var st=K((function(){return e.Utility.textSize(i,y,r,!1).width}),[i,y,r]),_t=0;""!==i&&(_t=st+2*l+2*v);var ct=_t+m,ht=ct-_t/2,dt=r+2*m+2*v,ut=F.map((function(t,n){return e.Utility.textSize(t.imageChar,t.imageFontFamily,t.height,!1).width})),ft=[],pt=ct;F.forEach((function(t,e){var n,i=t.imageChar,o=null!==(n=t.height)&&void 0!==n?n:dt,r=(pt+=ut[e]+m)-ut[e]/2;ft.push(d("g",{key:e,class:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(r," ").concat(0,")")},d(Ot,Ft({},t,{shape:"rectangle",width:ut[e],height:o,imageChar:i,imageFontFamily:t.imageFontFamily,cornerRadius:S,strokeWidth:0}))))})),F.length>0&&(ct+=m*(F.length-1));var vt=[];C.forEach((function(t,e){var n,i=t.shapeOffsetX,o=t.shapeOffsetY;vt.push(d("g",{key:e,class:"vertex3-iconAnno","data-click":"icon-annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(i," ").concat(o,")")},d(Ot,Ft({},t,{shape:null!==(n=t.shape)&&void 0!==n?n:"square",imageChar:t.imageChar,imageFontFamily:t.imageFontFamily,cornerRadius:S,stroke:t.stroke,strokeWidth:t.strokeWidth}))))}));var gt=d("g",{"data-click":"text",transform:"translate(".concat(ht," ").concat(0,")")},P&&""!==i?d(Nt,{text:i,height:r,padding:l,strokeWidth:v,stroke:f,fill:h,textFill:_,fontFamily:y,cornerRadius:S}):d("circle",{r:H,stroke:f,fill:_})),yt=dt+2*m,xt=""===T.text?null:d("g",{"data-click":"subtext",transform:"translate(".concat(0," ").concat(yt,")")},d(Nt,Ft({fill:T.fill||"#FFFFFF",textFill:T.textFill||_},T,{height:r,padding:l,strokeWidth:0,stroke:f,fontFamily:y,cornerRadius:S})));return d("g",null,d("g",{"data-click":"icon",transform:"translate(".concat(Y," ").concat($,")")},d(Ot,Ft({},W,{strokeWidth:D,shape:"circle",height:q,fill:L,stroke:I,imageFontFamily:G,imageChar:rt,imageCharFill:z,padding:it,xOffset:Q,yOffset:et,cornerRadius:S,shapeRendering:lt})),vt),d("g",{transform:"translate(".concat(-ct/2," ").concat(0,")")},gt,ft),xt)};t.Annotations=Dt,t.BUILD_VERSION="2.104.8",t.CentroidVertex3=function(t){var e=t.id,n=t.categoryID,i=void 0===n?"":n,o=t.text,r=void 0===o?"":o,a=t.textHeight,l=void 0===a?12:a,s=t.textPadding,_=void 0===s?10:s,c=t.textFill,h=void 0===c?"#287EC4":c,u=t.textboxFill,f=void 0===u?"white":u,p=t.textboxStroke,v=void 0===p?"#CCCCCC":p,g=t.textboxStrokeWidth,y=void 0===g?1:g,x=t.textFontFamily,m=void 0===x?"Verdana":x,k=t.annotationGutter,F=void 0===k?2:k,b=t.annotations,C=void 0===b?[]:b,w=t.cornerRadius,S=t.icon,R=void 0===S?{}:S,W=t.subText,O=void 0===W?{}:W,T=t.expansionIcon,E=t.scale,P=void 0===E?1:E;return R=Ft({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},R),O=Ft({text:"",fill:"transparent",textFill:"#555555"},O),d(Mt,Ft({},{id:e,categoryID:i,text:r,textHeight:l,textPadding:_,textFill:h,textboxFill:f,textboxStroke:v,textboxStrokeWidth:y,textFontFamily:m,annotationGutter:F,annotations:C,cornerRadius:w,icon:R,subText:O,expansionIcon:T,scale:P},{icon:R,subText:O}))},t.CentroidVertex4=function(t){var e=t.id,n=t.categoryID,i=void 0===n?"":n,o=t.text,r=void 0===o?"":o,a=t.textHeight,l=void 0===a?12:a,s=t.textPadding,_=void 0===s?10:s,c=t.textFill,h=void 0===c?"#287EC4":c,u=t.textboxFill,f=void 0===u?"white":u,p=t.textboxStroke,v=void 0===p?"#CCCCCC":p,g=t.textboxStrokeWidth,y=void 0===g?1:g,x=t.textFontFamily,m=void 0===x?"Verdana":x,k=t.annotationGutter,F=void 0===k?2:k,b=t.annotations,C=void 0===b?[]:b,w=t.iconAnnotations,S=void 0===w?[]:w,R=t.cornerRadius,W=t.icon,O=void 0===W?{}:W,T=t.subText,E=void 0===T?{}:T,P=t.showLabel,A=void 0===P||P,H=t.noLabelRadius,N=void 0===H?5:H,D=t.iconBorderWidth,M=void 0===D?1:D,I=t.iconBorderColor,V=void 0===I?"#333":I,L=t.iconBackgroundColor,U=void 0===L?"#fff":L,z=t.iconFontColor,j=void 0===z?"#000":z,q=t.iconFontSize,B=void 0===q?20:q,G=t.iconFontFamily,X=void 0===G?"FontAwesome":G,Y=t.shapeOffsetX,J=void 0===Y?0:Y,K=t.shapeOffsetY,$=void 0===K?0:K,Z=t.iconOffsetX,Q=void 0===Z?0:Z,tt=t.iconOffsetY,et=void 0===tt?0:tt,nt=t.iconPadding,it=void 0===nt?4:nt,ot=t.iconText,rt=void 0===ot?"?":ot,at=t.shapeRendering,lt=void 0===at?"auto":at;return O=Ft({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},O),E=Ft({text:"",fill:"transparent",textFill:"#555555"},E),d(It,Ft({},{id:e,categoryID:i,text:r,textHeight:l,textPadding:_,textFill:h,textboxFill:f,textboxStroke:v,textboxStrokeWidth:y,textFontFamily:m,annotationGutter:F,annotations:C,iconAnnotations:S,cornerRadius:R,icon:O,subText:E,showLabel:A,noLabelRadius:N,iconBorderWidth:M,iconBorderColor:V,iconBackgroundColor:U,iconFontColor:j,iconFontSize:B,iconFontFamily:X,shapeOffsetX:J,shapeOffsetY:$,iconOffsetX:Q,iconOffsetY:et,iconPadding:it,iconText:rt,shapeRendering:lt},{icon:O,subText:E}))},t.Circle=wt,t.Edge=function(t){var e=t.points,n=void 0===e?[]:e,i=t.curveDepth,o=void 0===i?16:i,r=t.stroke;return d("path",{stroke:void 0===r?"black":r,"stroke-dasharray":t.strokeDasharray,d:K((function(){return yt(function(t,e){if(2===t.length&&e){var n=t[0][0]-t[1][0],i=t[0][1]-t[1][1];if(Math.sqrt(n*n+i*i)){var o=(t[0][0]+t[1][0])/2-i*e/100,r=(t[0][1]+t[1][1])/2+n*e/100;return[t[0],[o,r],t[1]]}}return t}(n,o))}),[o,n])})},t.HTMLAdapter=Et,t.Icon=Ot,t.IconLabelledRect=function(t){var e=t.icon,n=t.iconFontFamily,i=t.text,o=t.height,r=void 0===o?12:o,a=t.width,l=void 0===a?12:a,s=t.fontFamily,_=void 0===s?"Verdana":s,c=t.fontSize,h=void 0===c?10:c,u=t.padding,p=void 0===u?3:u,v=t.fill,g=void 0===v?"whitesmoke":v,y=t.stroke,x=void 0===y?"lightgray":y,m=t.textFill,k=void 0===m?"black":m,F=t.strokeWidth,b=void 0===F?1:F,C=t.cornerRadius,w=void 0===C?0:C;return t.onSizeUpdate,d(f,null,d(Rt,{width:l,height:r,fill:g,stroke:x,strokeWidth:b,cornerRadius:w}),d("g",{transform:"translate(".concat(-l/2+p," ").concat(-r/2+p,")")},d(Ot,{shape:"square",imageFontFamily:n,imageChar:e,height:r,fill:g,imageCharFill:k})),d("g",{transform:"translate(".concat(-l/2+2*p+r," ").concat(-r/2+p,")")},d(At,{text:i,fontFamily:_,height:h,fill:k,anchor:"start",baseline:"hanging"})))},t.Icons=function(t){var e=t.icons,n=(void 0===e?[]:e).map((function(t){return d("g",{key:t.id,id:t.id},d(Ot,Ft({},t)))}));return d(f,null,n)},t.ImageChar=xt,t.LabelledRect=function(t){var e=t.text,n=t.height,i=void 0===n?12:n,o=t.width,r=void 0===o?12:o,a=t.fontFamily,l=void 0===a?"Verdana":a,s=t.fontSize,_=void 0===s?10:s,c=t.padding,h=void 0===c?3:c,u=t.fill,p=void 0===u?"whitesmoke":u,v=t.stroke,g=void 0===v?"lightgray":v,y=t.textFill,x=void 0===y?"black":y,m=t.strokeWidth,k=void 0===m?1:m,F=t.cornerRadius,b=void 0===F?0:F;return t.onSizeUpdate,d(f,null,d(Rt,{width:r,height:i,fill:p,stroke:g,strokeWidth:k,cornerRadius:b}),d("g",{transform:"translate(".concat(-r/2+h," ").concat(-i/2+h,")")},d(At,{text:e,fontFamily:l,height:_,fill:x,anchor:"start",baseline:"hanging"})))},t.PKG_NAME="@hpcc-js/react",t.PKG_VERSION="2.53.0",t.React=ot,t.Rectangle=Rt,t.SVGAdapter=Pt,t.Shape=Wt,t.Square=St,t.Subgraph=function(t){var n=t.text,i=t.width,o=void 0===i?100:i,r=t.height,a=void 0===r?100:r,l=t.fill,s=void 0===l?"transparent":l,_=t.stroke,c=void 0===_?"black":_,h=t.fontHeight,u=void 0===h?12:h,p=t.fontFamily,v=e.Utility.textSize(n,p,u,!1);return d(f,null,d(Rt,{width:o,height:a,fill:s,stroke:c}),d("g",{transform:"translate(".concat((-o+v.width)/2+4," ").concat((-a+v.height)/2+4,")")},d(Ht,{height:u,text:n,fontFamily:p})))},t.Text=Ht,t.TextBox=Nt,t.TextLine=At,t.Vertex=function(t){var e=t.categoryID,n=void 0===e?"":e,i=t.text,o=void 0===i?"":i,r=t.textHeight,a=void 0===r?12:r,l=t.textPadding,s=void 0===l?4:l,_=t.icon,c=void 0===_?{}:_,h=t.annotationsHeight,u=void 0===h?12:h,f=t.annotationIDs,p=void 0===f?[]:f,v=t.textFill,g=t.textboxFill,y=t.textboxStroke,x=t.textFontFamily,m=t.onSizeUpdate,k=t.showLabel,F=void 0===k||k,b=t.scale,C=void 0===b?1:b,w=X(0),S=w[0],R=w[1],W=X(0),O=W[0],T=W[1];J((function(){m&&m({width:0,height:0})}),[S,O,m]);var E=S;E+=4;var P=-(2*(c=Ft({imageChar:"fa-question",height:32,fill:"transparent"},c)).height/6+a+8)/2,A=c.height/3+O/2+s,H=c.height/3+O+s+u/3;F||(P+=(a+8)/2,H-=O+s);var N=$((function(t){R(t.width),T(t.height)}),[]),D=F?d("g",{transform:"translate(0 ".concat(A,")")},d(Nt,{text:o,height:a,padding:s,onSizeUpdate:N,textFill:v,fill:g,stroke:y,fontFamily:x})):void 0;return n?d("g",{transform:"translate(0 ".concat(P,") scale(").concat(C,")")},d("use",{href:"#"+n}),D,d(Dt,{x:E/2,y:H,annotationIDs:p})):d("g",{transform:"translate(0 ".concat(P,") scale(").concat(C,")")},d(Ot,Ft({},c)),D)},t.Vertex2=function(t){var n=t.categoryID,i=void 0===n?"":n,o=t.text,r=void 0===o?"":o,a=t.textHeight,l=void 0===a?12:a,s=t.textPadding,_=void 0===s?4:s,c=t.icon,h=void 0===c?{}:c,u=t.textFill,p=void 0===u?"black":u,v=t.textboxFill,g=void 0===v?"white":v,y=t.textboxStroke,x=void 0===y?"black":y,m=t.textFontFamily,k=t.annotationsHeight,F=void 0===k?12:k,b=t.annotationIDs,C=void 0===b?[]:b;h=Ft({imageChar:"fa-question",imageCharFill:"white",height:32,fill:"black",shape:"square"},h);var w=l+2*_,S=K((function(){return e.Utility.textSize(r,m,l,!1)}),[r,m,l]).width,R=F,W=w/2,O=-(2*h.height/6+l+8)/2,T=-h.height/2,E=Math.ceil(S/2+_),P=W-h.height/2,A=R/2,H=W;return i?d("g",{transform:"translate(".concat(0," ").concat(O,")")},d("g",{transform:"translate(".concat(T," ").concat(0,")")},d("use",{href:"#"+i})),d("g",{transform:"translate(".concat(E," ").concat(P,")")},d(Nt,{text:r,height:l,padding:_,strokeWidth:1,stroke:x,fill:g,textFill:p,fontFamily:m})),d(Dt,{x:A,y:H,annotationIDs:C,stepSize:R})):d(f,null,d("g",{transform:"translate(".concat(T," ").concat(0,")scale(1.0002)")},d(Ot,Ft({},h,{shape:"square"}))),d("g",{transform:"translate(".concat(E," ").concat(P,")scale(1.0002)")},d(Nt,{text:r,height:l,padding:_,stroke:x,fill:g})))},t.Vertex3=Mt,t.Vertex4=It,t.render=Tt,t.svgRender=function(t,e,n,i){A(d("svg",null,d(t,e)),n,i)},Object.defineProperty(t,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=index.min.js.map