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