@hpcc-js/dgrid2 2.3.13 → 2.3.14

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(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@hpcc-js/dgrid2"]={},e["@hpcc-js/common"])}(this,(function(e,t){"use strict";var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};var o=function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};function r(e,t,n,o){var r,i=arguments.length,l=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(l=(i<3?r(l):i>3?r(t,n,l):r(t,n))||l);return i>3&&l&&Object.defineProperty(t,n,l),l}function i(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var c,u,a,s,d,_,f,p,h={},m=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,w=Array.isArray;function g(e,t){for(var n in t)e[n]=t[n];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function x(e,t,n){var o,r,i,l={};for(i in t)"key"==i?o=t[i]:"ref"==i?r=t[i]:l[i]=t[i];if(arguments.length>2&&(l.children=arguments.length>3?c.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===l[i]&&(l[i]=e.defaultProps[i]);return C(e,l,o,r,null)}function C(e,t,n,o,r){var i={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++a:r};return null==r&&null!=u.vnode&&u.vnode(i),i}function b(e){return e.children}function I(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__d||n.__e;return"function"==typeof e.type?k(e):null}function S(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return S(e)}}function R(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!E.__r++||d!==u.debounceRendering)&&((d=u.debounceRendering)||_)(E)}function E(){var e,t,n,o,r,i,l,c,u;for(s.sort(f);e=s.shift();)e.__d&&(t=s.length,o=void 0,r=void 0,i=void 0,c=(l=(n=e).__v).__e,(u=n.__P)&&(o=[],r=[],(i=g({},l)).__v=l.__v+1,M(u,l,i,n.__n,void 0!==u.ownerSVGElement,null!=l.__h?[c]:null,o,null==c?k(l):c,l.__h,r),W(o,l,r),l.__e!=c&&S(l)),s.length>t&&s.sort(f));E.__r=0}function D(e,t,n,o,r,i,l,c,u,a,s){var d,_,f,p,v,g,y,x,I,S=0,R=o&&o.__k||m,E=R.length,D=E,P=t.length;for(n.__k=[],d=0;d<P;d++)null!=(p=n.__k[d]=null==(p=t[d])||"boolean"==typeof p||"function"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?C(null,p,null,null,p):w(p)?C(b,{children:p},null,null,null):p.__b>0?C(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)?(p.__=n,p.__b=n.__b+1,-1===(x=O(p,R,y=d+S,D))?f=h:(f=R[x]||h,R[x]=void 0,D--),M(e,p,f,r,i,l,c,u,a,s),v=p.__e,(_=p.ref)&&f.ref!=_&&(f.ref&&U(f.ref,null,p),s.push(_,p.__c||v,p)),null!=v&&(null==g&&(g=v),(I=f===h||null===f.__v)?-1==x&&S--:x!==y&&(x===y+1?S++:x>y?D>P-y?S+=x-y:S--:S=x<y&&x==y-1?x-y:0),y=d+S,"function"!=typeof p.type||x===y&&f.__k!==p.__k?"function"==typeof p.type||x===y&&!I?void 0!==p.__d?(u=p.__d,p.__d=void 0):u=v.nextSibling:u=F(e,v,u):u=T(p,u,e),"function"==typeof n.type&&(n.__d=u))):(f=R[d])&&null==f.key&&f.__e&&(f.__e==u&&(f.__=o,u=k(f)),$(f,f,!1),R[d]=null);for(n.__e=g,d=E;d--;)null!=R[d]&&("function"==typeof n.type&&null!=R[d].__e&&R[d].__e==n.__d&&(n.__d=R[d].__e.nextSibling),$(R[d],R[d]))}function T(e,t,n){for(var o,r=e.__k,i=0;r&&i<r.length;i++)(o=r[i])&&(o.__=e,t="function"==typeof o.type?T(o,t,n):F(n,o.__e,t));return t}function P(e,t){return t=t||[],null==e||"boolean"==typeof e||(w(e)?e.some((function(e){P(e,t)})):t.push(e)),t}function F(e,t,n){return null==n||n.parentNode!==e?e.insertBefore(t,null):t==n&&null!=t.parentNode||e.insertBefore(t,n),t.nextSibling}function O(e,t,n,o){var r=e.key,i=e.type,l=n-1,c=n+1,u=t[n];if(null===u||u&&r==u.key&&i===u.type)return n;if(o>(null!=u?1:0))for(;l>=0||c<t.length;){if(l>=0){if((u=t[l])&&r==u.key&&i===u.type)return l;l--}if(c<t.length){if((u=t[c])&&r==u.key&&i===u.type)return c;c++}}return-1}function N(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||v.test(t)?n:n+"px"}function z(e,t,n,o,r){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof o&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||N(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||N(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?o?n.u=o.u:(n.u=Date.now(),e.addEventListener(t,i?A:H,i)):e.removeEventListener(t,i?A:H,i);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function H(e){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(u.event?u.event(e):e)}function A(e){return this.l[e.type+!0](u.event?u.event(e):e)}function M(e,t,n,o,r,i,l,c,a,s){var d,_,f,p,h,m,v,y,x,C,k,S,R,E,T,P=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(a=n.__h,c=t.__e=n.__e,t.__h=null,i=[c]),(d=u.__b)&&d(t);e:if("function"==typeof P)try{if(y=t.props,x=(d=P.contextType)&&o[d.__c],C=d?x?x.props.value:d.__:o,n.__c?v=(_=t.__c=n.__c).__=_.__E:("prototype"in P&&P.prototype.render?t.__c=_=new P(y,C):(t.__c=_=new I(y,C),_.constructor=P,_.render=K),x&&x.sub(_),_.props=y,_.state||(_.state={}),_.context=C,_.__n=o,f=_.__d=!0,_.__h=[],_._sb=[]),null==_.__s&&(_.__s=_.state),null!=P.getDerivedStateFromProps&&(_.__s==_.state&&(_.__s=g({},_.__s)),g(_.__s,P.getDerivedStateFromProps(y,_.__s))),p=_.props,h=_.state,_.__v=t,f)null==P.getDerivedStateFromProps&&null!=_.componentWillMount&&_.componentWillMount(),null!=_.componentDidMount&&_.__h.push(_.componentDidMount);else{if(null==P.getDerivedStateFromProps&&y!==p&&null!=_.componentWillReceiveProps&&_.componentWillReceiveProps(y,C),!_.__e&&(null!=_.shouldComponentUpdate&&!1===_.shouldComponentUpdate(y,_.__s,C)||t.__v===n.__v)){for(t.__v!==n.__v&&(_.props=y,_.state=_.__s,_.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),k=0;k<_._sb.length;k++)_.__h.push(_._sb[k]);_._sb=[],_.__h.length&&l.push(_);break e}null!=_.componentWillUpdate&&_.componentWillUpdate(y,_.__s,C),null!=_.componentDidUpdate&&_.__h.push((function(){_.componentDidUpdate(p,h,m)}))}if(_.context=C,_.props=y,_.__P=e,_.__e=!1,S=u.__r,R=0,"prototype"in P&&P.prototype.render){for(_.state=_.__s,_.__d=!1,S&&S(t),d=_.render(_.props,_.state,_.context),E=0;E<_._sb.length;E++)_.__h.push(_._sb[E]);_._sb=[]}else do{_.__d=!1,S&&S(t),d=_.render(_.props,_.state,_.context),_.state=_.__s}while(_.__d&&++R<25);_.state=_.__s,null!=_.getChildContext&&(o=g(g({},o),_.getChildContext())),f||null==_.getSnapshotBeforeUpdate||(m=_.getSnapshotBeforeUpdate(p,h)),D(e,w(T=null!=d&&d.type===b&&null==d.key?d.props.children:d)?T:[T],t,n,o,r,i,l,c,a,s),_.base=t.__e,t.__h=null,_.__h.length&&l.push(_),v&&(_.__E=_.__=null)}catch(e){t.__v=null,(a||null!=i)&&(t.__e=c,t.__h=!!a,i[i.indexOf(c)]=null),u.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=L(n.__e,t,n,o,r,i,l,a,s);(d=u.diffed)&&d(t)}function W(e,t,n){for(var o=0;o<n.length;o++)U(n[o],n[++o],n[++o]);u.__c&&u.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){u.__e(e,t.__v)}}))}function L(e,t,n,o,r,i,l,u,a){var s,d,_,f=n.props,p=t.props,m=t.type,v=0;if("svg"===m&&(r=!0),null!=i)for(;v<i.length;v++)if((s=i[v])&&"setAttribute"in s==!!m&&(m?s.localName===m:3===s.nodeType)){e=s,i[v]=null;break}if(null==e){if(null===m)return document.createTextNode(p);e=r?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,p.is&&p),i=null,u=!1}if(null===m)f===p||u&&e.data===p||(e.data=p);else{if(i=i&&c.call(e.childNodes),d=(f=n.props||h).dangerouslySetInnerHTML,_=p.dangerouslySetInnerHTML,!u){if(null!=i)for(f={},v=0;v<e.attributes.length;v++)f[e.attributes[v].name]=e.attributes[v].value;(_||d)&&(_&&(d&&_.__html==d.__html||_.__html===e.innerHTML)||(e.innerHTML=_&&_.__html||""))}if(function(e,t,n,o,r){var i;for(i in n)"children"===i||"key"===i||i in t||z(e,i,null,n[i],o);for(i in t)r&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||z(e,i,t[i],n[i],o)}(e,p,f,r,u),_)t.__k=[];else if(D(e,w(v=t.props.children)?v:[v],t,n,o,r&&"foreignObject"!==m,i,l,i?i[0]:n.__k&&k(n,0),u,a),null!=i)for(v=i.length;v--;)null!=i[v]&&y(i[v]);u||("value"in p&&void 0!==(v=p.value)&&(v!==e.value||"progress"===m&&!v||"option"===m&&v!==f.value)&&z(e,"value",v,f.value,!1),"checked"in p&&void 0!==(v=p.checked)&&v!==e.checked&&z(e,"checked",v,f.checked,!1))}return e}function U(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){u.__e(e,n)}}function $(e,t,n){var o,r;if(u.unmount&&u.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||U(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){u.__e(e,t)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(r=0;r<o.length;r++)o[r]&&$(o[r],t,n||"function"!=typeof e.type);n||null==e.__e||y(e.__e),e.__=e.__e=e.__d=void 0}function K(e,t,n){return this.constructor(e,n)}function j(e,t,n){var o,r,i,l;u.__&&u.__(e,t),r=(o="function"==typeof n)?null:n&&n.__k||t.__k,i=[],l=[],M(t,e=(!o&&n||t).__k=x(b,null,[e]),r||h,h,void 0!==t.ownerSVGElement,!o&&n?[n]:r?null:t.firstChild?c.call(t.childNodes):null,i,!o&&n?n:r?r.__e:t.firstChild,o,l),W(i,e,l)}function B(e,t){var n={__c:t="__cC"+p++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,o;return this.getChildContext||(n=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,R(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}c=m.slice,u={__e:function(e,t,n,o){for(var r,i,l;t=t.__;)if((r=t.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(e)),l=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,o||{}),l=r.__d),l)return r.__E=r}catch(t){e=t}throw e}},a=0,I.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},n),this.props)),e&&g(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),R(this))},I.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),R(this))},I.prototype.render=b,s=[],_="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(e,t){return e.__v.__b-t.__v.__b},E.__r=0,p=0;var V,G,q,Y,X=0,J=[],Z=[],Q=u.__b,ee=u.__r,te=u.diffed,ne=u.__c,oe=u.unmount;function re(e,t){u.__h&&u.__h(G,e,X||t),X=0;var n=G.__H||(G.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Z}),n.__[e]}function ie(e){return X=1,function(e,t,n){var o=re(V++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):we(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=G,!G.u)){var r=function(e,t,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var l=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(l=!0)}})),!(!l&&o.__c.props===e)&&(!i||i.call(this,e,t,n))};G.u=!0;var i=G.shouldComponentUpdate,l=G.componentWillUpdate;G.componentWillUpdate=function(e,t,n){if(this.__e){var o=i;i=void 0,r(e,t,n),i=o}l&&l.call(this,e,t,n)},G.shouldComponentUpdate=r}return o.__N||o.__}(we,e)}function le(e,t){var n=re(V++,3);!u.__s&&ve(n.__H,t)&&(n.__=e,n.i=t,G.__H.__h.push(n))}function ce(e,t){var n=re(V++,4);!u.__s&&ve(n.__H,t)&&(n.__=e,n.i=t,G.__h.push(n))}function ue(e){return X=5,ae((function(){return{current:e}}),[])}function ae(e,t){var n=re(V++,7);return ve(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function se(e,t){return X=8,ae((function(){return e}),t)}function de(e){var t=G.context[e.__c],n=re(V++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(G)),t.props.value):e.__}function _e(){for(var e;e=J.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(he),e.__H.__h.forEach(me),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){G=null,Q&&Q(e)},u.__r=function(e){ee&&ee(e),V=0;var t=(G=e.__c).__H;t&&(q===G?(t.__h=[],G.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Z,e.__N=e.i=void 0}))):(t.__h.forEach(he),t.__h.forEach(me),t.__h=[],V=0)),q=G},u.diffed=function(e){te&&te(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==J.push(t)&&Y===u.requestAnimationFrame||((Y=u.requestAnimationFrame)||pe)(_e)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Z&&(e.__=e.__V),e.i=void 0,e.__V=Z}))),q=G=null},u.__c=function(e,t){t.some((function(e){try{e.__h.forEach(he),e.__h=e.__h.filter((function(e){return!e.__||me(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],u.__e(n,e.__v)}})),ne&&ne(e,t)},u.unmount=function(e){oe&&oe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{he(e)}catch(e){t=e}})),n.__H=void 0,t&&u.__e(t,n.__v))};var fe="function"==typeof requestAnimationFrame;function pe(e){var t,n=function(){clearTimeout(o),fe&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);fe&&(t=requestAnimationFrame(n))}function he(e){var t=G,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),G=t}function me(e){var t=G;e.__c=e.__(),G=t}function ve(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function we(e,t){return"function"==typeof t?t(e):t}function ge(e,t){for(var n in t)e[n]=t[n];return e}function ye(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var o in t)if("__source"!==o&&e[o]!==t[o])return!0;return!1}function xe(e){this.props=e}function Ce(e,t){function n(e){var n=this.props.ref,o=n==e.ref;return!o&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!o:ye(this.props,e)}function o(t){return this.shouldComponentUpdate=n,x(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(xe.prototype=new I).isPureReactComponent=!0,xe.prototype.shouldComponentUpdate=function(e,t){return ye(this.props,e)||ye(this.state,t)};var be=u.__b;u.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),be&&be(e)};var Ie="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ke(e){function t(t){var n=ge({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ie,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Se=u.__e;u.__e=function(e,t,n,o){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);Se(e,t,n,o)};var Re=u.unmount;function Ee(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=ge({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Ee(e,t,n)}))),e}function De(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return De(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Te(){this.__u=0,this.t=null,this.__b=null}function Pe(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Fe(){this.u=null,this.o=null}u.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Re&&Re(e)},(Te.prototype=new I).__c=function(e,t){var n=t.__c,o=this;null==o.t&&(o.t=[]),o.t.push(n);var r=Pe(o.__v),i=!1,l=function(){i||(i=!0,n.__R=null,r?r(c):c())};n.__R=l;var c=function(){if(! --o.__u){if(o.state.__a){var e=o.state.__a;o.__v.__k[0]=De(e,e.__c.__P,e.__c.__O)}var t;for(o.setState({__a:o.__b=null});t=o.t.pop();)t.forceUpdate()}},u=!0===t.__h;o.__u++||u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(l,l)},Te.prototype.componentWillUnmount=function(){this.t=[]},Te.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=Ee(this.__b,n,o.__O=o.__P)}this.__b=null}var r=t.__a&&x(b,null,e.fallback);return r&&(r.__h=null),[x(b,null,t.__a?null:e.children),r]};var Oe=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(Fe.prototype=new I).__a=function(e){var t=this,n=Pe(t.__v),o=t.o.get(e);return o[0]++,function(r){var i=function(){t.props.revealOrder?(o.push(r),Oe(t,e,o)):r()};n?n(i):i()}},Fe.prototype.render=function(e){this.u=null,this.o=new Map;var t=P(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Fe.prototype.componentDidUpdate=Fe.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Oe(e,n,t)}))};var Ne="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ze=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,He=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ae=/[A-Z0-9]/g,Me="undefined"!=typeof document,We=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};I.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(I.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Le=u.event;function Ue(){}function $e(){return this.cancelBubble}function Ke(){return this.defaultPrevented}u.event=function(e){return Le&&(e=Le(e)),e.persist=Ue,e.isPropagationStopped=$e,e.isDefaultPrevented=Ke,e.nativeEvent=e};var je={enumerable:!1,configurable:!0,get:function(){return this.class}},Be=u.vnode;u.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,o={};for(var r in t){var i=t[r];if(!("value"===r&&"defaultValue"in t&&null==i||Me&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var l=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===i?i="":"ondoubleclick"===l?r="ondblclick":"onchange"!==l||"input"!==n&&"textarea"!==n||We(t.type)?"onfocus"===l?r="onfocusin":"onblur"===l?r="onfocusout":He.test(r)?r=l:-1===n.indexOf("-")&&ze.test(r)?r=r.replace(Ae,"-$&").toLowerCase():null===i&&(i=void 0):l=r="oninput","oninput"===l&&o[r=l]&&(r="oninputCapture"),o[r]=i}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=P(t.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=P(t.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),t.class&&!t.className?(o.class=t.class,Object.defineProperty(o,"className",je)):(t.className&&!t.class||t.class&&t.className)&&(o.class=o.className=t.className),e.props=o}(e),e.$$typeof=Ne,Be&&Be(e)};var Ve=u.__r;u.__r=function(e){Ve&&Ve(e),e.__c};var Ge=u.diffed;u.diffed=function(e){Ge&&Ge(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};var qe=function(e,t){return e(t)};function Ye(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ye(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Xe(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=Ye(e))&&(o&&(o+=" "),o+=t);return o}var Je=0;function Ze(e,t,n,o,r,i){var l,c,a={};for(c in t)"ref"==c?l=t[c]:a[c]=t[c];var s={type:e,props:a,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Je,__source:r,__self:i};if("function"==typeof e&&(l=e.defaultProps))for(c in l)void 0===a[c]&&(a[c]=l[c]);return u.vnode&&u.vnode(s),s}function Qe(e,t,n){const o="function"==typeof e.colSpan?e.colSpan(n):1;if(Number.isInteger(o)&&o>1&&(!e.frozen||e.idx+o-1<=t))return o}function et(e){e.stopPropagation()}function tt(e){e?.scrollIntoView({inline:"nearest",block:"nearest"})}function nt(e){let t=!1;const n={...e,preventGridDefault(){t=!0},isGridDefaultPrevented:()=>t};return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),n}const ot=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function rt(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}const it="mlln6zg7-0-0-beta-40";function lt(e){return e.map((({key:e,idx:t,minWidth:n,maxWidth:o})=>Ze("div",{className:it,style:{gridColumnStart:t+1,minWidth:n,maxWidth:o},"data-measuring-cell-key":e},e)))}function ct({selectedPosition:e,columns:t,rows:n}){return ut(t[e.idx],n[e.rowIdx])}function ut(e,t){return null!=e.renderEditCell&&!1!==("function"==typeof e.editable?e.editable(t):e.editable)}function at({rows:e,topSummaryRows:t,bottomSummaryRows:n,rowIdx:o,mainHeaderRowIdx:r,lastFrozenColumnIndex:i,column:l}){const c=t?.length??0;if(o===r)return Qe(l,i,{type:"HEADER"});if(t&&o>r&&o<=c+r)return Qe(l,i,{type:"SUMMARY",row:t[o+c]});if(o>=0&&o<e.length){return Qe(l,i,{type:"ROW",row:e[o]})}return n?Qe(l,i,{type:"SUMMARY",row:n[o-e.length]}):void 0}function st({moveUp:e,moveNext:t,cellNavigationMode:n,columns:o,colSpanColumns:r,rows:i,topSummaryRows:l,bottomSummaryRows:c,minRowIdx:u,mainHeaderRowIdx:a,maxRowIdx:s,currentPosition:{idx:d,rowIdx:_},nextPosition:f,lastFrozenColumnIndex:p,isCellWithinBounds:h}){let{idx:m,rowIdx:v}=f;const w=o.length,g=e=>{for(const t of r){const n=t.idx;if(n>m)break;const o=at({rows:i,topSummaryRows:l,bottomSummaryRows:c,rowIdx:v,mainHeaderRowIdx:a,lastFrozenColumnIndex:p,column:t});if(o&&m>n&&m<o+n){m=n+(e?o:0);break}}},y=e=>e.level+a;if(h(f)&&(g(t),v<a&&(()=>{if(t){let e=o[m].parent;for(;void 0!==e;){const t=y(e);if(v===t){m=e.idx+e.colSpan;break}e=e.parent}}else if(e){let e=o[m].parent,t=!1;for(;void 0!==e;){const n=y(e);if(v>=n){m=e.idx,v=n,t=!0;break}e=e.parent}t||(m=d,v=_)}})()),"CHANGE_ROW"===n){const e=-1===m;if(m===w){v===s||(m=0,v+=1)}else if(e){v===u||(v-=1,m=w-1),g(!1)}}if(v<a){let e=o[m].parent;const t=v;for(v=a;void 0!==e;){const n=y(e);n>=t&&(v=n,m=e.idx),e=e.parent}}return{idx:m,rowIdx:v}}const dt="rdg-cell cj343x07-0-0-beta-40",_t="rdg-cell-frozen csofj7r7-0-0-beta-40",ft="rdg-cell-frozen-last ch2wcw87-0-0-beta-40";function pt(e,t){return void 0!==t?{"--rdg-grid-row-start":e,"--rdg-row-height":`${t}px`}:{"--rdg-grid-row-start":e}}function ht(e,t,n){const o=t+1,r=`calc(${n-1} * var(--rdg-header-row-height))`;return void 0===e.parent?{insetBlockStart:0,gridRowStart:1,gridRowEnd:o,paddingBlockStart:r}:{insetBlockStart:`calc(${t-n} * var(--rdg-header-row-height))`,gridRowStart:o-n,gridRowEnd:o,paddingBlockStart:r}}function mt(e,t=1){const n=e.idx+1;return{gridColumnStart:n,gridColumnEnd:n+t,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function vt(e,...t){return Xe(dt,...t,e.frozen&&_t,e.isLastFrozenColumn&&ft)}const{min:wt,max:gt,round:yt,floor:xt,sign:Ct,abs:bt}=Math;function It(e){if("function"!=typeof e)throw new Error("Please specify the rowKeyGetter prop to use selection")}function kt(e,{minWidth:t,maxWidth:n}){return e=gt(e,t),"number"==typeof n&&n>=t?wt(e,n):e}function St(e,t){return void 0===e.parent?t:e.level-e.parent.level}const Rt="rdg-checkbox-label c1bn88vv7-0-0-beta-40",Et="rdg-checkbox-input c1qt073l7-0-0-beta-40",Dt="rdg-checkbox cf71kmq7-0-0-beta-40",Tt="rdg-checkbox-label-disabled c1lwve4p7-0-0-beta-40";function Pt({onChange:e,...t}){return Ze("label",{className:Xe(Rt,t.disabled&&Tt),children:[Ze("input",{type:"checkbox",...t,className:Et,onChange:function(t){e(t.target.checked,t.nativeEvent.shiftKey)}}),Ze("div",{className:Dt})]})}function Ft(e){try{return e.row[e.column.key]}catch{return null}}const Ot=B(void 0),Nt=Ot.Provider;function zt(){return de(Ot)}function Ht({value:e,tabIndex:t,disabled:n,onChange:o,"aria-label":r,"aria-labelledby":i}){return(0,zt().renderCheckbox)({"aria-label":r,"aria-labelledby":i,tabIndex:t,disabled:n,checked:e,onChange:o})}const At=B(void 0),Mt=At.Provider,Wt=B(void 0),Lt=Wt.Provider;function Ut(){const e=de(At),t=de(Wt);if(void 0===e||void 0===t)throw new Error("useRowSelection must be used within DataGrid cells");return[e,t]}const $t="select-row";function Kt(e){const[t,n]=Ut();return Ze(Ht,{"aria-label":"Select All",tabIndex:e.tabIndex,value:t,onChange:e=>{n({type:"HEADER",checked:e})}})}function jt(e){const[t,n]=Ut();return Ze(Ht,{"aria-label":"Select",tabIndex:e.tabIndex,value:t,onChange:(t,o)=>{n({type:"ROW",row:e.row,checked:t,isShiftClick:o})}})}function Bt(e){const[t,n]=Ut();return Ze(Ht,{"aria-label":"Select Group",tabIndex:e.tabIndex,value:t,onChange:t=>{n({type:"ROW",row:e.row,checked:t,isShiftClick:!1})}})}const Vt={key:$t,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell:e=>Ze(Kt,{...e}),renderCell:e=>Ze(jt,{...e}),renderGroupCell:e=>Ze(Bt,{...e})},Gt="auto",qt=50;function Yt({rawColumns:e,defaultColumnOptions:t,getColumnWidth:n,viewportWidth:o,scrollLeft:r,enableVirtualization:i}){const l=t?.width??Gt,c=t?.minWidth??qt,u=t?.maxWidth??void 0,a=t?.renderCell??Ft,s=t?.sortable??!1,d=t?.resizable??!1,_=t?.draggable??!1,{columns:f,colSpanColumns:p,lastFrozenColumnIndex:h,headerRowsCount:m}=ae((()=>{let t=-1,n=1;const o=[];!function e(r,i,f){for(const p of r){if("children"in p){const t={name:p.name,parent:f,idx:-1,colSpan:0,level:0,headerCellClass:p.headerCellClass};e(p.children,i+1,t);continue}const r=p.frozen??!1,h={...p,parent:f,idx:0,level:0,frozen:r,isLastFrozenColumn:!1,width:p.width??l,minWidth:p.minWidth??c,maxWidth:p.maxWidth??u,sortable:p.sortable??s,resizable:p.resizable??d,draggable:p.draggable??_,renderCell:p.renderCell??a};o.push(h),r&&t++,i>n&&(n=i)}}(e,1),o.sort((({key:e,frozen:t},{key:n,frozen:o})=>e===$t?-1:n===$t?1:t?o?0:-1:o?1:0));const r=[];return o.forEach(((e,t)=>{e.idx=t,Xt(e,t,0),null!=e.colSpan&&r.push(e)})),-1!==t&&(o[t].isLastFrozenColumn=!0),{columns:o,colSpanColumns:r,lastFrozenColumnIndex:t,headerRowsCount:n}}),[e,l,c,u,a,d,s,_]),{templateColumns:v,layoutCssVars:w,totalFrozenColumnWidth:g,columnMetrics:y}=ae((()=>{const e=new Map;let t=0,o=0;const r=[];for(const o of f){let i=n(o);i="number"==typeof i?kt(i,o):o.minWidth,r.push(`${i}px`),e.set(o,{width:i,left:t}),t+=i}if(-1!==h){const t=e.get(f[h]);o=t.left+t.width}const i={};for(let t=0;t<=h;t++){const n=f[t];i[`--rdg-frozen-left-${n.idx}`]=`${e.get(n).left}px`}return{templateColumns:r,layoutCssVars:i,totalFrozenColumnWidth:o,columnMetrics:e}}),[n,f,h]),[x,C]=ae((()=>{if(!i)return[0,f.length-1];const e=r+g,t=r+o,n=f.length-1,l=wt(h+1,n);if(e>=t)return[l,l];let c=l;for(;c<n;){const{left:t,width:n}=y.get(f[c]);if(t+n>e)break;c++}let u=c;for(;u<n;){const{left:e,width:n}=y.get(f[u]);if(e+n>=t)break;u++}return[gt(l,c-1),wt(n,u+1)]}),[y,f,h,r,g,o,i]);return{columns:f,colSpanColumns:p,colOverscanStartIdx:x,colOverscanEndIdx:C,templateColumns:v,layoutCssVars:w,headerRowsCount:m,lastFrozenColumnIndex:h,totalFrozenColumnWidth:g}}function Xt(e,t,n){if(n<e.level&&(e.level=n),void 0!==e.parent){const{parent:o}=e;-1===o.idx&&(o.idx=t),o.colSpan+=1,Xt(o,t,n-1)}}const Jt="undefined"==typeof window?le:ce;function Zt(e,t){const n=`[data-measuring-cell-key="${CSS.escape(t)}"]`,o=e.current.querySelector(n);return o?.getBoundingClientRect().width}function Qt(e){const t=ue(e);le((()=>{t.current=e}));const n=se(((...e)=>{t.current(...e)}),[]);return e?n:e}function en(e){const[t,n]=ie(!1);t&&!e&&n(!1);return{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?function(e){e.target!==e.currentTarget&&n(!0)}:void 0}}const tn="c1creorc7-0-0-beta-40",nn="rdg-cell-drag-handle c1w9bbhr7-0-0-beta-40";function on({gridRowStart:e,rows:t,column:n,columnWidth:o,selectedPosition:r,latestDraggedOverRowIdx:i,isCellEditable:l,onRowsChange:c,onFill:u,onClick:a,setDragging:s,setDraggedOverRowIdx:d}){const{idx:_,rowIdx:f}=r;function p(e,o){const r=t[f],i=[...t],a=[];for(let c=e;c<o;c++)if(l({rowIdx:c,idx:_})){const e=u({columnKey:n.key,sourceRow:r,targetRow:t[c]});e!==t[c]&&(i[c]=e,a.push(c))}a.length>0&&c?.(i,{indexes:a,column:n})}const h=n.colSpan?.({type:"ROW",row:t[f]})??1,m=mt(n,h);return Ze("div",{style:{...m,gridRowStart:e,insetInlineStart:m.insetInlineStart&&"number"==typeof o?`calc(${m.insetInlineStart} + ${o}px - var(--rdg-drag-handle-size))`:void 0},className:Xe(nn,n.frozen&&tn),onClick:a,onMouseDown:function(e){function t(e){1!==e.buttons&&n()}function n(){window.removeEventListener("mouseover",t),window.removeEventListener("mouseup",n),s(!1),function(){const e=i.current;if(void 0===e)return;p(f<e?f+1:e,f<e?e+1:f),d(void 0)}()}e.preventDefault(),1===e.buttons&&(s(!0),window.addEventListener("mouseover",t),window.addEventListener("mouseup",n))},onDoubleClick:function(e){e.stopPropagation(),p(f+1,t.length)}})}const rn="cis5rrm7-0-0-beta-40";function ln({column:e,colSpan:t,row:n,rowIdx:o,onRowChange:r,closeEditor:i,onKeyDown:l,navigate:c}){const u=ue(),a=!1!==e.editorOptions?.commitOnOutsideClick,s=Qt((()=>{_(!0,!1)}));function d(){cancelAnimationFrame(u.current)}function _(e=!1,t=!0){e?r(n,!0,t):i(t)}function f(e,t=!1){r(e,t,t)}le((()=>{if(a)return addEventListener("mousedown",e,{capture:!0}),()=>{removeEventListener("mousedown",e,{capture:!0}),d()};function e(){u.current=requestAnimationFrame(s)}}),[a,s]);const{cellClass:p}=e,h=vt(e,"rdg-editor-container","function"==typeof p?p(n):p,!e.editorOptions?.displayCellContent&&rn);return Ze("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:h,style:mt(e,t),onKeyDown:function(t){if(l){const r=nt(t);if(l({mode:"EDIT",row:n,column:e,rowIdx:o,navigate(){c(t)},onClose:_},r),r.isGridDefaultPrevented())return}"Escape"===t.key?_():"Enter"===t.key?_(!0):function({key:e,target:t}){return"Tab"===e&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)&&1===t.closest(".rdg-editor-container")?.querySelectorAll("input, textarea, select").length}(t)&&c(t)},onMouseDownCapture:d,children:null!=e.renderEditCell&&Ze(b,{children:[e.renderEditCell({column:e,row:n,onRowChange:f,onClose:_}),e.editorOptions?.displayCellContent&&e.renderCell({column:e,row:n,isCellEditable:!0,tabIndex:-1,onRowChange:f})]})})}function cn({column:e,rowIdx:t,isCellSelected:n,selectCell:o}){const{tabIndex:r,onFocus:i}=en(n),{colSpan:l}=e,c=St(e,t),u=e.idx+1;return Ze("div",{role:"columnheader","aria-colindex":u,"aria-colspan":l,"aria-rowspan":c,"aria-selected":n,tabIndex:r,className:Xe(dt,e.headerCellClass),style:{...ht(e,t,c),gridColumnStart:u,gridColumnEnd:u+l},onFocus:i,onClick:function(){o({idx:e.idx,rowIdx:t})},children:e.name})}const un="h44jtk67-0-0-beta-40",an="rdg-header-sort-name hcgkhxz7-0-0-beta-40";function sn({column:e,sortDirection:t,priority:n}){return e.sortable?Ze(dn,{sortDirection:t,priority:n,children:e.name}):e.name}function dn({sortDirection:e,priority:t,children:n}){const o=zt().renderSortStatus;return Ze("span",{className:un,children:[Ze("span",{className:an,children:n}),Ze("span",{children:o({sortDirection:e,priority:t})})]})}const _n="c6l2wv17-0-0-beta-40",fn="rdg-cell-resizable c1kqdw7y7-0-0-beta-40",pn="r1y6ywlx7-0-0-beta-40",hn="rdg-cell-draggable",mn="rdg-cell-dragging c1bezg5o7-0-0-beta-40",vn="rdg-cell-drag-over c1vc96037-0-0-beta-40";function wn({column:e,colSpan:t,rowIdx:n,isCellSelected:o,onColumnResize:r,onColumnsReorder:i,sortColumns:l,onSortColumnsChange:c,selectCell:u,shouldFocusGrid:a,direction:s,dragDropKey:d}){const[_,f]=ie(!1),[p,h]=ie(!1),m="rtl"===s,v=St(e,n),{tabIndex:w,childTabIndex:g,onFocus:y}=en(o),x=l?.findIndex((t=>t.columnKey===e.key)),C=void 0!==x&&x>-1?l[x]:void 0,b=C?.direction,I=void 0!==C&&l.length>1?x+1:void 0,k=b&&!I?"ASC"===b?"ascending":"descending":void 0,{sortable:S,resizable:R,draggable:E}=e,D=vt(e,e.headerCellClass,S&&_n,R&&fn,E&&hn,_&&mn,p&&vn),T=e.renderHeaderCell??sn;function P(t){if(null==c)return;const{sortDescendingFirst:n}=e;if(void 0===C){const o={columnKey:e.key,direction:n?"DESC":"ASC"};c(l&&t?[...l,o]:[o])}else{let o;if((!0===n&&"DESC"===b||!0!==n&&"ASC"===b)&&(o={columnKey:e.key,direction:"ASC"===b?"DESC":"ASC"}),t){const e=[...l];o?e[x]=o:e.splice(x,1),c(e)}else c(o?[o]:[])}}let F;return E&&(F={draggable:!0,onDragStart:function(t){t.dataTransfer.setData(d,e.key),t.dataTransfer.dropEffect="move",f(!0)},onDragEnd:function(){f(!1)},onDragOver:function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"},onDragEnter:function(e){gn(e)&&h(!0)},onDragLeave:function(e){gn(e)&&h(!1)},onDrop:function(t){if(h(!1),t.dataTransfer.types.includes(d)){const n=t.dataTransfer.getData(d);n!==e.key&&(t.preventDefault(),i?.(n,e.key))}}}),Ze("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":v,"aria-selected":o,"aria-sort":k,tabIndex:a?0:w,className:D,style:{...ht(e,n,v),...mt(e,t)},onFocus:function(e){y?.(e),a&&u({idx:0,rowIdx:n})},onClick:function(t){u({idx:e.idx,rowIdx:n}),S&&P(t.ctrlKey||t.metaKey)},onKeyDown:S?function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),P(e.ctrlKey||e.metaKey))}:void 0,...F,children:[T({column:e,sortDirection:b,priority:I,tabIndex:g}),R&&Ze("div",{className:pn,onClick:et,onDoubleClick:function(){r(e,"max-content")},onPointerDown:function(t){if("mouse"===t.pointerType&&1!==t.buttons)return;const{currentTarget:n,pointerId:o}=t,i=n.parentElement,{right:l,left:c}=i.getBoundingClientRect(),u=m?t.clientX-c:l-t.clientX;function a(t){t.preventDefault();const{right:n,left:o}=i.getBoundingClientRect(),l=m?n+u-t.clientX:t.clientX+u-o;l>0&&r(e,kt(l,e))}n.setPointerCapture(o),n.addEventListener("pointermove",a),n.addEventListener("lostpointercapture",(function e(){n.removeEventListener("pointermove",a),n.removeEventListener("lostpointercapture",e)}))}})]})}function gn(e){const t=e.relatedTarget;return!e.currentTarget.contains(t)}const yn="rdg-row r1upfr807-0-0-beta-40",xn="rdg-row-selected",Cn="rdg-header-row h10tskcx7-0-0-beta-40";function bn({rowIdx:e,columns:t,onColumnResize:n,onColumnsReorder:o,sortColumns:r,onSortColumnsChange:i,lastFrozenColumnIndex:l,selectedCellIdx:c,selectCell:u,shouldFocusGrid:a,direction:s}){const d=function(){var e=re(V++,11);if(!e.__){for(var t=G.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}(),_=[];for(let f=0;f<t.length;f++){const p=t[f],h=Qe(p,l,{type:"HEADER"});void 0!==h&&(f+=h-1),_.push(Ze(wn,{column:p,colSpan:h,rowIdx:e,isCellSelected:c===p.idx,onColumnResize:n,onColumnsReorder:o,onSortColumnsChange:i,sortColumns:r,selectCell:u,shouldFocusGrid:a&&0===f,direction:s,dragDropKey:d},p.key))}return Ze("div",{role:"row","aria-rowindex":e,className:Xe(Cn,-1===c&&xn),children:_})}const In=Ce(bn);function kn({rowIdx:e,level:t,columns:n,selectedCellIdx:o,selectCell:r}){const i=[],l=new Set;for(const c of n){let{parent:n}=c;if(void 0!==n){for(;n.level>t&&void 0!==n.parent;)n=n.parent;if(n.level===t&&!l.has(n)){l.add(n);const{idx:t}=n;i.push(Ze(cn,{column:n,rowIdx:e,isCellSelected:o===t,selectCell:r},t))}}}return Ze("div",{role:"row","aria-rowindex":e,className:Cn,children:i})}const Sn=Ce(kn);function Rn({column:e,colSpan:t,isCellSelected:n,isCopied:o,isDraggedOver:r,row:i,rowIdx:l,onClick:c,onDoubleClick:u,onContextMenu:a,onRowChange:s,selectCell:d,..._}){const{tabIndex:f,childTabIndex:p,onFocus:h}=en(n),{cellClass:m}=e,v=vt(e,"function"==typeof m?m(i):m,o&&"rdg-cell-copied c6ra8a37-0-0-beta-40",r&&"rdg-cell-dragged-over cq910m07-0-0-beta-40"),w=ut(e,i);function g(t){d({rowIdx:l,idx:e.idx},t)}return Ze("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":n,"aria-readonly":!w||void 0,tabIndex:f,className:v,style:mt(e,t),onClick:function(t){if(c){const n=nt(t);if(c({row:i,column:e,selectCell:g},n),n.isGridDefaultPrevented())return}g()},onDoubleClick:function(t){if(u){const n=nt(t);if(u({row:i,column:e,selectCell:g},n),n.isGridDefaultPrevented())return}g(!0)},onContextMenu:function(t){if(a){const n=nt(t);if(a({row:i,column:e,selectCell:g},n),n.isGridDefaultPrevented())return}g()},onFocus:h,..._,children:e.renderCell({column:e,row:i,isCellEditable:w,tabIndex:p,onRowChange:function(t){s(e,t)}})})}const En=Ce(Rn);function Dn({className:e,rowIdx:t,gridRowStart:n,height:o,selectedCellIdx:r,isRowSelected:i,copiedCellIdx:l,draggedOverCellIdx:c,lastFrozenColumnIndex:u,row:a,viewportColumns:s,selectedCellEditor:d,onCellClick:_,onCellDoubleClick:f,onCellContextMenu:p,rowClass:h,setDraggedOverRowIdx:m,onMouseEnter:v,onRowChange:w,selectCell:g,...y},x){const C=Qt(((e,n)=>{w(e,t,n)}));e=Xe(yn,"rdg-row-"+(t%2==0?"even":"odd"),h?.(a,t),e,-1===r&&xn);const b=[];for(let e=0;e<s.length;e++){const n=s[e],{idx:o}=n,i=Qe(n,u,{type:"ROW",row:a});void 0!==i&&(e+=i-1);const h=r===o;h&&d?b.push(d):b.push(Ze(En,{column:n,colSpan:i,row:a,rowIdx:t,isCopied:l===o,isDraggedOver:c===o,isCellSelected:h,onClick:_,onDoubleClick:f,onContextMenu:p,onRowChange:C,selectCell:g},n.key))}return Ze(Mt,{value:i,children:Ze("div",{role:"row",ref:x,className:e,onMouseEnter:function(e){m?.(t),v?.(e)},style:pt(n,o),...y,children:b})})}const Tn=Ce(ke(Dn));function Pn(e,t){return Ze(Tn,{...t},e)}function Fn({scrollToPosition:{idx:e,rowIdx:t},gridElement:n,setScrollToCellPosition:o}){const r=ue(null);return Jt((()=>{tt(r.current)})),Jt((()=>{const e=new IntersectionObserver((function(){o(null)}),{root:n,threshold:1});return e.observe(r.current),()=>{e.disconnect()}}),[n,o]),Ze("div",{ref:r,style:{gridColumn:void 0===e?"1/-1":e+1,gridRow:void 0===t?"1/-1":t+2}})}const On="rdg-sort-arrow a3ejtar7-0-0-beta-40";function Nn({sortDirection:e,priority:t}){return Ze(b,{children:[zn({sortDirection:e}),Hn({priority:t})]})}function zn({sortDirection:e}){return void 0===e?null:Ze("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:On,"aria-hidden":!0,children:Ze("path",{d:"ASC"===e?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function Hn({priority:e}){return e}function An({column:e,colSpan:t,row:n,rowIdx:o,isCellSelected:r,selectCell:i}){const{tabIndex:l,childTabIndex:c,onFocus:u}=en(r),{summaryCellClass:a}=e,s=vt(e,"s8wc6fl7-0-0-beta-40","function"==typeof a?a(n):a);return Ze("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":r,tabIndex:l,className:s,style:mt(e,t),onClick:function(){i({rowIdx:o,idx:e.idx})},onFocus:u,children:e.renderSummaryCell?.({column:e,row:n,tabIndex:c})})}const Mn=Ce(An);function Wn({rowIdx:e,gridRowStart:t,row:n,viewportColumns:o,top:r,bottom:i,lastFrozenColumnIndex:l,selectedCellIdx:c,isTop:u,showBorder:a,selectCell:s,"aria-rowindex":d}){const _=[];for(let t=0;t<o.length;t++){const r=o[t],i=Qe(r,l,{type:"SUMMARY",row:n});void 0!==i&&(t+=i-1);const u=c===r.idx;_.push(Ze(Mn,{column:r,colSpan:i,row:n,rowIdx:e,isCellSelected:u,selectCell:s},r.key))}return Ze("div",{role:"row","aria-rowindex":d,className:Xe(yn,"rdg-row-"+(e%2==0?"even":"odd"),"rdg-summary-row skuhp557-0-0-beta-40",u?["rdg-top-summary-row tf8l5ub7-0-0-beta-40",a&&"tb9ughf7-0-0-beta-40"]:["rdg-bottom-summary-row",a&&"b1yssfnt7-0-0-beta-40"],-1===c&&xn),style:{...pt(t),"--rdg-summary-row-top":void 0!==r?`${r}px`:void 0,"--rdg-summary-row-bottom":void 0!==i?`${i}px`:void 0},children:_})}const Ln=Ce(Wn);function Un(e,t){const{columns:n,rows:o,topSummaryRows:r,bottomSummaryRows:i,rowKeyGetter:l,onRowsChange:c,rowHeight:u,headerRowHeight:a,summaryRowHeight:s,selectedRows:d,onSelectedRowsChange:_,sortColumns:f,onSortColumnsChange:p,defaultColumnOptions:h,onCellClick:m,onCellDoubleClick:v,onCellContextMenu:w,onCellKeyDown:g,onSelectedCellChange:y,onScroll:x,onColumnResize:C,onColumnsReorder:I,onFill:k,onCopy:S,onPaste:R,enableVirtualization:E,renderers:D,className:T,style:P,rowClass:F,direction:O,role:N,"aria-label":z,"aria-labelledby":H,"aria-describedby":A,"aria-rowcount":M,"data-testid":W}=e,L=zt(),U=N??"grid",$=u??35,K=a??("number"==typeof $?$:35),j=s??("number"==typeof $?$:35),B=D?.renderRow??L?.renderRow??Pn,V=D?.renderSortStatus??L?.renderSortStatus??Nn,G=D?.renderCheckbox??L?.renderCheckbox??Pt,q=D?.noRowsFallback??L?.noRowsFallback,Y=E??!0,J=O??"ltr",[Z,Q]=ie(0),[ee,te]=ie(0),[ne,oe]=ie((()=>new Map)),[re,le]=ie((()=>new Map)),[de,_e]=ie(null),[fe,pe]=ie(!1),[he,me]=ie(void 0),[ve,we]=ie(null),ge=se((e=>ne.get(e.key)??re.get(e.key)??e.width),[re,ne]),[ye,xe,Ce]=function(){const e=ue(null),[t,n]=ie(1),[o,r]=ie(1);return Jt((()=>{const{ResizeObserver:t}=window;if(null==t)return;const{clientWidth:o,clientHeight:i,offsetWidth:l,offsetHeight:c}=e.current,{width:u,height:a}=e.current.getBoundingClientRect(),s=a-c+i;n(u-l+o),r(s);const d=new t((e=>{const t=e[0].contentBoxSize[0];qe((()=>{n(t.inlineSize),r(t.blockSize)}))}));return d.observe(e.current),()=>{d.disconnect()}}),[]),[e,t,o]}(),{columns:be,colSpanColumns:Ie,lastFrozenColumnIndex:ke,headerRowsCount:Se,colOverscanStartIdx:Re,colOverscanEndIdx:Ee,templateColumns:De,layoutCssVars:Te,totalFrozenColumnWidth:Pe}=Yt({rawColumns:n,defaultColumnOptions:h,getColumnWidth:ge,scrollLeft:ee,viewportWidth:xe,enableVirtualization:Y}),Fe=r?.length??0,Oe=i?.length??0,Ne=Fe+Oe,ze=Se+Fe,He=Se-1,Ae=-ze,Me=Ae+He,We=o.length+Oe-1,[Le,Ue]=ie((()=>({idx:-1,rowIdx:Ae-1,mode:"SELECT"}))),$e=ue(Le),Ke=ue(he),je=ue(-1),Be=ue(null),Ve=ue(!1),Ge="treegrid"===U,Ye=Se*K,Je=Ce-Ye-Ne*j,et=null!=d&&null!=_,it="rtl"===J,ut=it?"ArrowRight":"ArrowLeft",at=it?"ArrowLeft":"ArrowRight",dt=M??Se+o.length+Ne,_t=ae((()=>({renderCheckbox:G,renderSortStatus:V})),[G,V]),ft=ae((()=>{const{length:e}=o;return 0!==e&&null!=d&&null!=l&&d.size>=e&&o.every((e=>d.has(l(e))))}),[o,d,l]),{rowOverscanStartIdx:pt,rowOverscanEndIdx:ht,totalRowHeight:mt,gridTemplateRows:vt,getRowTop:yt,getRowHeight:kt,findRowIdx:St}=function({rows:e,rowHeight:t,clientHeight:n,scrollTop:o,enableVirtualization:r}){const{totalRowHeight:i,gridTemplateRows:l,getRowTop:c,getRowHeight:u,findRowIdx:a}=ae((()=>{if("number"==typeof t)return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:e=>e*t,getRowHeight:()=>t,findRowIdx:e=>xt(e/t)};let n=0,o=" ";const r=e.map((e=>{const r=t(e),i={top:n,height:r};return o+=`${r}px `,n+=r,i})),i=t=>gt(0,wt(e.length-1,t));return{totalRowHeight:n,gridTemplateRows:o,getRowTop:e=>r[i(e)].top,getRowHeight:e=>r[i(e)].height,findRowIdx(e){let t=0,n=r.length-1;for(;t<=n;){const o=t+xt((n-t)/2),i=r[o].top;if(i===e)return o;if(i<e?t=o+1:i>e&&(n=o-1),t>n)return n}return 0}}}),[t,e]);let s=0,d=e.length-1;if(r){const t=4,r=a(o),i=a(o+n);s=gt(0,r-t),d=wt(e.length-1,i+t)}return{rowOverscanStartIdx:s,rowOverscanEndIdx:d,totalRowHeight:i,gridTemplateRows:l,getRowTop:c,getRowHeight:u,findRowIdx:a}}({rows:o,rowHeight:$,clientHeight:Je,scrollTop:Z,enableVirtualization:Y}),Rt=function({columns:e,colSpanColumns:t,rows:n,topSummaryRows:o,bottomSummaryRows:r,colOverscanStartIdx:i,colOverscanEndIdx:l,lastFrozenColumnIndex:c,rowOverscanStartIdx:u,rowOverscanEndIdx:a}){const s=ae((()=>{if(0===i)return 0;let e=i;const l=(t,n)=>void 0!==n&&t+n>i&&(e=t,!0);for(const i of t){const t=i.idx;if(t>=e)break;if(l(t,Qe(i,c,{type:"HEADER"})))break;for(let e=u;e<=a;e++){const o=n[e];if(l(t,Qe(i,c,{type:"ROW",row:o})))break}if(null!=o)for(const e of o)if(l(t,Qe(i,c,{type:"SUMMARY",row:e})))break;if(null!=r)for(const e of r)if(l(t,Qe(i,c,{type:"SUMMARY",row:e})))break}return e}),[u,a,n,o,r,i,c,t]);return ae((()=>{const t=[];for(let n=0;n<=l;n++){const o=e[n];n<s&&!o.frozen||t.push(o)}return t}),[s,l,e])}({columns:be,colSpanColumns:Ie,colOverscanStartIdx:Re,colOverscanEndIdx:Ee,lastFrozenColumnIndex:ke,rowOverscanStartIdx:pt,rowOverscanEndIdx:ht,rows:o,topSummaryRows:r,bottomSummaryRows:i}),{gridTemplateColumns:Et,handleColumnResize:Dt}=function(e,t,n,o,r,i,l,c,u,a){const s=ue(r),d=e.length===t.length,_=d&&r!==s.current,f=[...n],p=[];for(const{key:e,idx:n,width:o}of t)"string"!=typeof o||!_&&l.has(e)||i.has(e)||(f[n]=o,p.push(e));const h=f.join(" ");function m(e){0!==e.length&&u((t=>{const n=new Map(t);let r=!1;for(const i of e){const e=Zt(o,i);r||=e!==t.get(i),void 0===e?n.delete(i):n.set(i,e)}return r?n:t}))}return Jt((()=>{s.current=r,m(p)})),{gridTemplateColumns:h,handleColumnResize:function(e,r){const{key:l}=e,u=[...n],s=[];for(const{key:e,idx:n,width:o}of t)if(l===e){const e="number"==typeof r?`${r}px`:r;u[n]=e}else d&&"string"==typeof o&&!i.has(e)&&(u[n]=o,s.push(e));o.current.style.gridTemplateColumns=u.join(" ");const _="number"==typeof r?r:Zt(o,l);qe((()=>{c((e=>{const t=new Map(e);return t.set(l,_),t})),m(s)})),a?.(e.idx,_)}}}(be,Rt,De,ye,xe,ne,re,oe,le,C),Tt=Ge?-1:0,Ft=be.length-1,Ot=un(Le),Ht=an(Le),At=Qt(Dt),Wt=Qt(I),Ut=Qt(p),$t=Qt(m),Kt=Qt(v),jt=Qt(w),Bt=Qt(en),Vt=Qt(tn),Gt=Qt(dn),qt=Qt((({idx:e,rowIdx:t})=>{dn({rowIdx:Ae+t-1,idx:e})}));Jt((()=>{Ot&&!Kn(Le,$e.current)?($e.current=Le,-1===Le.idx&&(Be.current.focus({preventScroll:!0}),tt(Be.current))):$e.current=Le})),Jt((()=>{Ve.current&&(Ve.current=!1,pn())})),function(e,t,n){X=6,ce((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}(t,(()=>({element:ye.current,scrollToCell({idx:e,rowIdx:t}){const n=void 0!==e&&e>ke&&e<be.length?e:void 0,o=void 0!==t&&cn(t)?t:void 0;void 0===n&&void 0===o||we({idx:n,rowIdx:o})},selectCell:dn})));const Xt=se((e=>{me(e),Ke.current=e}),[]);function en(e){if(!_)return;if(It(l),"HEADER"===e.type){const t=new Set(d);for(const n of o){const o=l(n);e.checked?t.add(o):t.delete(o)}return void _(t)}const{row:t,checked:n,isShiftClick:r}=e,i=new Set(d),c=l(t);if(n){i.add(c);const e=je.current,n=o.indexOf(t);if(je.current=n,r&&-1!==e&&e!==n){const t=Ct(n-e);for(let r=e+t;r!==n;r+=t){const e=o[r];i.add(l(e))}}}else i.delete(c),je.current=-1;_(i)}function tn(e,t,n){if("function"!=typeof c)return;if(n===o[t])return;const r=[...o];r[t]=n,c(r,{indexes:[t],column:e})}function nn(){"EDIT"===Le.mode&&tn(be[Le.idx],Le.rowIdx,Le.row)}function rn(e){return e>=Tt&&e<=Ft}function cn(e){return e>=0&&e<o.length}function un({idx:e,rowIdx:t}){return t>=Ae&&t<=We&&rn(e)}function an({idx:e,rowIdx:t}){return cn(t)&&rn(e)}function sn(e){return an(e)&&ct({columns:be,rows:o,selectedPosition:e})}function dn(e,t){if(!un(e))return;nn();const n=o[e.rowIdx],r=Kn(Le,e);t&&sn(e)?Ue({...e,mode:"EDIT",row:n,originalRow:n}):r?tt($n(ye.current)):(Ve.current=!0,Ue({...e,mode:"SELECT"})),y&&!r&&y({rowIdx:e.rowIdx,row:n,column:be[e.idx]})}function _n(e){const{key:t,shiftKey:n}=e;let l="NONE";if("Tab"===t){if(function({maxColIdx:e,minRowIdx:t,maxRowIdx:n,selectedPosition:{rowIdx:o,idx:r},shiftKey:i}){return i?0===r&&o===t:r===e&&o===n}({shiftKey:n,maxColIdx:Ft,minRowIdx:Ae,maxRowIdx:We,selectedPosition:Le}))return void nn();l="CHANGE_ROW"}e.preventDefault();const c=function(e,t,n){const{idx:r,rowIdx:i}=Le,l=Ot&&-1===r;switch(e){case"ArrowUp":return{idx:r,rowIdx:i-1};case"ArrowDown":return{idx:r,rowIdx:i+1};case ut:return{idx:r-1,rowIdx:i};case at:return{idx:r+1,rowIdx:i};case"Tab":return{idx:r+(n?-1:1),rowIdx:i};case"Home":return l?{idx:r,rowIdx:Ae}:{idx:0,rowIdx:t?Ae:i};case"End":return l?{idx:r,rowIdx:We}:{idx:Ft,rowIdx:t?We:i};case"PageUp":{if(Le.rowIdx===Ae)return Le;const e=yt(i)+kt(i)-Je;return{idx:r,rowIdx:e>0?St(e):0}}case"PageDown":{if(Le.rowIdx>=o.length)return Le;const e=yt(i)+Je;return{idx:r,rowIdx:e<mt?St(e):o.length-1}}default:return Le}}(t,rt(e),n);if(Kn(Le,c))return;dn(st({moveUp:"ArrowUp"===t,moveNext:t===at||"Tab"===t&&!n,columns:be,colSpanColumns:Ie,rows:o,topSummaryRows:r,bottomSummaryRows:i,minRowIdx:Ae,mainHeaderRowIdx:Me,maxRowIdx:We,lastFrozenColumnIndex:ke,cellNavigationMode:l,currentPosition:Le,nextPosition:c,isCellWithinBounds:un}))}function fn(e){if(void 0===he)return;const{rowIdx:t}=Le;return(t<he?t<e&&e<=he:t>e&&e>=he)?Le.idx:void 0}function pn(){const e=$n(ye.current);if(null===e)return;tt(e);(e.querySelector('[tabindex="0"]')??e).focus({preventScroll:!0})}function hn(e){if(Le.rowIdx!==e||"SELECT"===Le.mode)return;const{idx:t,row:n}=Le,r=be[t],i=Qe(r,ke,{type:"ROW",row:n}),l=e=>{Ve.current=e,Ue((({idx:e,rowIdx:t})=>({idx:e,rowIdx:t,mode:"SELECT"})))};return o[Le.rowIdx]!==Le.originalRow&&l(!1),Ze(ln,{column:r,colSpan:i,row:n,rowIdx:e,onRowChange:(e,t,n)=>{t?qe((()=>{tn(r,Le.rowIdx,e),l(n)})):Ue((t=>({...t,row:e})))},closeEditor:l,onKeyDown:g,navigate:_n},r.key)}function mn(e){const t=-1===Le.idx?void 0:be[Le.idx];return void 0===t||Le.rowIdx!==e||Rt.includes(t)?Rt:Le.idx>Ee?[...Rt,t]:[...Rt.slice(0,ke+1),t,...Rt.slice(ke+1)]}(Le.idx>Ft||Le.rowIdx>We)&&(Ue({idx:-1,rowIdx:Ae-1,mode:"SELECT"}),Xt(void 0));let vn=`repeat(${Se}, ${K}px)`;Fe>0&&(vn+=` repeat(${Fe}, ${j}px)`),o.length>0&&(vn+=vt),Oe>0&&(vn+=` repeat(${Oe}, ${j}px)`);const wn=-1===Le.idx&&Le.rowIdx!==Ae-1;return Ze("div",{role:U,"aria-label":z,"aria-labelledby":H,"aria-describedby":A,"aria-multiselectable":!!et||void 0,"aria-colcount":be.length,"aria-rowcount":dt,className:Xe("rdg rnvodz57-0-0-beta-40",T,fe&&"rdg-viewport-dragging vlqv91k7-0-0-beta-40"),style:{...P,scrollPaddingInlineStart:Le.idx>ke||void 0!==ve?.idx?`${Pe}px`:void 0,scrollPaddingBlock:cn(Le.rowIdx)||void 0!==ve?.rowIdx?`${Ye+Fe*j}px ${Oe*j}px`:void 0,gridTemplateColumns:Et,gridTemplateRows:vn,"--rdg-header-row-height":`${K}px`,"--rdg-summary-row-height":`${j}px`,"--rdg-sign":it?-1:1,...Te},dir:J,ref:ye,onScroll:function(e){const{scrollTop:t,scrollLeft:n}=e.currentTarget;qe((()=>{Q(t),te(bt(n))})),x?.(e)},onKeyDown:function(e){const{idx:t,rowIdx:n,mode:r}=Le;if("EDIT"===r)return;if(g&&cn(n)){const r=o[n],i=nt(e);if(g({mode:"SELECT",row:r,column:be[t],rowIdx:n,selectCell:dn},i),i.isGridDefaultPrevented())return}if(!(e.target instanceof Element))return;const i=null!==e.target.closest(".rdg-cell"),u=Ge&&e.target===Be.current;if(!i&&!u)return;const{keyCode:a}=e;if(Ht&&(null!=R||null!=S)&&rt(e)){const e=86;if(a===67)return void function(){const{idx:e,rowIdx:t}=Le,n=o[t],r=be[e].key;_e({row:n,columnKey:r}),S?.({sourceRow:n,sourceColumnKey:r})}();if(a===e)return void function(){if(!R||!c||null===de||!sn(Le))return;const{idx:e,rowIdx:t}=Le,n=be[e],r=o[t],i=R({sourceRow:de.row,sourceColumnKey:de.columnKey,targetRow:r,targetColumnKey:n.key});tn(n,t,i)}()}switch(e.key){case"Escape":return void _e(null);case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":_n(e);break;default:!function(e){if(!Ht)return;const t=o[Le.rowIdx],{key:n,shiftKey:r}=e;if(et&&r&&" "===n){It(l);const n=l(t);return en({type:"ROW",row:t,checked:!d.has(n),isShiftClick:!1}),void e.preventDefault()}sn(Le)&&function(e){return!ot.has(e.key)}(e)&&Ue((({idx:e,rowIdx:n})=>({idx:e,rowIdx:n,mode:"EDIT",row:t,originalRow:t})))}(e)}},"data-testid":W,children:[Ze(Nt,{value:_t,children:Ze(Lt,{value:Bt,children:[Ze(Mt,{value:ft,children:[Array.from({length:He},((e,t)=>Ze(Sn,{rowIdx:t+1,level:-He+t,columns:mn(Ae+t),selectedCellIdx:Le.rowIdx===Ae+t?Le.idx:void 0,selectCell:qt},t))),Ze(In,{rowIdx:Se,columns:mn(Me),onColumnResize:At,onColumnsReorder:Wt,sortColumns:f,onSortColumnsChange:Ut,lastFrozenColumnIndex:ke,selectedCellIdx:Le.rowIdx===Me?Le.idx:void 0,selectCell:qt,shouldFocusGrid:!Ot,direction:J})]}),0===o.length&&q?q:Ze(b,{children:[r?.map(((e,t)=>{const n=Se+1+t,o=Me+1+t,r=Le.rowIdx===o;return Ze(Ln,{"aria-rowindex":n,rowIdx:o,gridRowStart:n,row:e,top:Ye+j*t,bottom:void 0,viewportColumns:mn(o),lastFrozenColumnIndex:ke,selectedCellIdx:r?Le.idx:void 0,isTop:!0,showBorder:t===Fe-1,selectCell:Gt},t)})),function(){const e=[],{idx:t,rowIdx:n}=Le,r=Ht&&n>ht?ht+1:ht;for(let i=Ht&&n<pt?pt-1:pt;i<=r;i++){const r=i===pt-1||i===ht+1,c=r?n:i;let u=Rt;const a=-1===t?void 0:be[t];void 0!==a&&(u=r?[a]:mn(c));const s=o[c],_=ze+c+1;let f=c,p=!1;"function"==typeof l&&(f=l(s),p=d?.has(f)??!1),e.push(B(f,{"aria-rowindex":ze+c+1,"aria-selected":et?p:void 0,rowIdx:c,row:s,viewportColumns:u,isRowSelected:p,onCellClick:$t,onCellDoubleClick:Kt,onCellContextMenu:jt,rowClass:F,gridRowStart:_,height:kt(c),copiedCellIdx:null!==de&&de.row===s?be.findIndex((e=>e.key===de.columnKey)):void 0,selectedCellIdx:n===c?t:void 0,draggedOverCellIdx:fn(c),setDraggedOverRowIdx:fe?Xt:void 0,lastFrozenColumnIndex:ke,onRowChange:Vt,selectCell:Gt,selectedCellEditor:hn(c)}))}return e}(),i?.map(((e,t)=>{const n=ze+o.length+t+1,r=o.length+t,l=Le.rowIdx===r,c=Je>mt?Ce-j*(i.length-t):void 0,u=void 0===c?j*(i.length-1-t):void 0;return Ze(Ln,{"aria-rowindex":dt-Oe+t+1,rowIdx:r,gridRowStart:n,row:e,top:c,bottom:u,viewportColumns:mn(r),lastFrozenColumnIndex:ke,selectedCellIdx:l?Le.idx:void 0,isTop:!1,showBorder:0===t,selectCell:Gt},t)}))]})]})}),function(){if(null==k||"EDIT"===Le.mode||!an(Le))return;const e=be[Le.idx];if(null==e.renderEditCell||!1===e.editable)return;const t=ge(e);return Ze(on,{gridRowStart:ze+Le.rowIdx+1,rows:o,column:e,columnWidth:t,selectedPosition:Le,isCellEditable:sn,latestDraggedOverRowIdx:Ke,onRowsChange:c,onClick:pn,onFill:k,setDragging:pe,setDraggedOverRowIdx:Xt})}(),lt(Rt),Ge&&Ze("div",{ref:Be,tabIndex:wn?0:-1,className:Xe("f1lsfrzw7-0-0-beta-40",wn&&["r190mhd37-0-0-beta-40",-1!==ke&&"r139qu9m7-0-0-beta-40"],!cn(Le.rowIdx)&&"f1cte0lg7-0-0-beta-40"),style:{gridRowStart:Le.rowIdx+ze+1}}),null!==ve&&Ze(Fn,{scrollToPosition:ve,setScrollToCellPosition:we,gridElement:ye.current})]})}function $n(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function Kn(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}const jn=ke(Un);function Bn(e,t,n){var o=t;return l([],e,!0).sort((function(e,t){return e[o]<t[o]?n?1:-1:e[o]>t[o]?n?-1:1:0}))}var Vn=function(e){return x("div",{style:{textAlign:"center",gridColumn:"1/-1"}},e.message,x("span",null,"--- * --- * ---"))},Gn=function(e){var n,o=e.table,r=e.sort,i=[ae((function(){return n.columns()}),[n=o,n.dataChecksum()]),ae((function(){return n.data()}),[n,n.dataChecksum()])],c=i[0],u=i[1],a=o.multiSelect(),s=o.columnTypes(),d=o.columnPatterns(),_=o.columnFormats(),f=ie([]),p=f[0],h=f[1],m=ie(),v=m[0],w=m[1],g=ie([]),y=g[0],C=g[1],b=ie(new Set),I=b[0],k=b[1];le((function(){h(l(l([],a?[Vt]:[],!0),c.map((function(e){var n,o,r,i;switch(null!==(n=s[e])&&void 0!==n?n:"string"){case"time":r=void 0!==d[e]?t.timeParse(d[e]):void 0,i=void 0!==_[e]?t.timeFormat(_[e]):void 0;break;case"number":o=function(e){return x("div",{style:{textAlign:"right"}},e.row[e.column.key])};default:i=void 0!==_[e]?t.format(_[e]):void 0}return{key:e,name:e,resizable:!0,sortable:!0,minWidth:80,renderCell:o,__hpcc_pattern:r,__hpcc_format:i}})),!0))}),[_,d,s,c,a]);var S=se((function(e){var t=e.slice(-1)[0],n=void 0!==t,o="DESC"===(null==t?void 0:t.direction);w(t),C(Bn(y,n?t.columnKey:"key",!!n&&o))}),[y]),R=se((function(e){return e.key}),[]),E=se((function(e){k(e)}),[]),D=se((function(e,t){o.onRowClickCallback(e,t.key)}),[o]);return le((function(){var e=u.map((function(e,t){var n={key:t};return p.forEach((function(t,o){var r=e[o];t.__hpcc_pattern&&t.__hpcc_format?r=t.__hpcc_format(t.__hpcc_pattern(r)):t.__hpcc_pattern?r=t.__hpcc_pattern(r).toString():t.__hpcc_format&&(r=t.__hpcc_format(r)),n[t.key]=r})),n}));(null==r?void 0:r.attribute)&&(e=Bn(e,r.attribute,r.descending)),C(e)}),[p,u,r]),x(jn,{columns:p,headerRowHeight:24,rows:y,rowKeyGetter:R,rowHeight:20,renderers:{noRowsFallback:x(Vn,{message:o.noDataMessage()})},className:o.darkMode()?"rdg-dark":"rdg-light",sortColumns:v?[v]:[],onSortColumnsChange:S,selectedRows:I,onSelectedRowsChange:a?E:void 0,onCellClick:a?void 0:D,"aria-describedby":"","aria-label":"","aria-labelledby":"",style:{height:"100%"}})};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".dgrid2_Table .rdg{font-family:monospace,Courier New,Courier}.dgrid2_Table .rdg-checkbox-label .rdg-checkbox{block-size:16px;border-width:2px;box-shadow:inset 0 0 0 3px var(--rdg-background-color);inline-size:16px}");var qn=function(e){function l(){return e.call(this)||this}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(l,e),l.prototype.columnType=function(e,t){var n;return 1===arguments.length?this.columnTypes()[e]:(this.columnTypes(o(o({},this.columnTypes()),((n={})[e]=t,n))),this)},l.prototype.columnPattern=function(e,t){var n;return 1===arguments.length?this.columnPatterns()[e]:(this.columnPatterns(o(o({},this.columnPatterns()),((n={})[e]=t,n))),this)},l.prototype.columnFormat=function(e,t){var n;return 1===arguments.length?this.columnFormats()[e]:(this.columnFormats(o(o({},this.columnFormats()),((n={})[e]=t,n))),this)},l.prototype.onRowClickCallback=function(e,t){var n;this._prevRow&&JSON.stringify(this._prevRow)!==JSON.stringify(e)&&this.click(this._prevRow,null!==(n=this._prevColumn)&&void 0!==n?n:"",!1),e&&this.click(e,t,!0),this._prevRow=e,this._prevColumn=t},l.prototype.enter=function(t,n){e.prototype.enter.call(this,t,n),this._div=n.append("div")},l.prototype.update=function(t,n){e.prototype.update.call(this,t,n),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),function(e,t,n){null==t.__k&&(t.textContent=""),j(e,t),"function"==typeof n&&n(),e&&e.__c}(x(Gn,{table:this}),this._div.node())},l.prototype.exit=function(t,n){!function(e){!!e.__k&&j(null,e)}(this._div.node()),this._div.remove(),e.prototype.exit.call(this,t,n)},l.prototype.click=function(e,t,n){},r([t.publish("...empty...","string","No Data Message"),i("design:type",Function)],l.prototype,"noDataMessage",void 0),r([t.publish(!1,"boolean","Dark Mode"),i("design:type",Function)],l.prototype,"darkMode",void 0),r([t.publish(!1,"boolean","Multiple Selection"),i("design:type",Function)],l.prototype,"multiSelect",void 0),r([t.publish({},"object",'Column Types ("boolean" | "number" | "string" | "time"'),i("design:type",Function)],l.prototype,"columnTypes",void 0),r([t.publish({},"object","Column Patterns"),i("design:type",Function)],l.prototype,"columnPatterns",void 0),r([t.publish({},"object","Column Formats"),i("design:type",Function)],l.prototype,"columnFormats",void 0),l}(t.HTMLWidget);qn.prototype._class+=" dgrid2_Table",e.BUILD_VERSION="2.104.32",e.PKG_NAME="@hpcc-js/dgrid2",e.PKG_VERSION="2.3.13",e.Table=qn,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self)["@hpcc-js/dgrid2"]={},e["@hpcc-js/common"])}(this,(function(e,o){"use strict";var n=function(e,o){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])},n(e,o)};var t=function(){return t=Object.assign||function(e){for(var o,n=1,t=arguments.length;n<t;n++)for(var r in o=arguments[n])Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r]);return e},t.apply(this,arguments)};function r(e,o,n,t){var r,l=arguments.length,i=l<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,n):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,o,n,t);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(i=(l<3?r(i):l>3?r(o,n,i):r(o,n))||i);return l>3&&i&&Object.defineProperty(o,n,i),i}function l(e,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,o)}function i(e,o,n){if(n||2===arguments.length)for(var t,r=0,l=o.length;r<l;r++)!t&&r in o||(t||(t=Array.prototype.slice.call(o,0,r)),t[r]=o[r]);return e.concat(t||Array.prototype.slice.call(o))}"function"==typeof SuppressedError&&SuppressedError;var c,a,u,s,d,_,f,p,h={},v=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function m(e,o){for(var n in o)e[n]=o[n];return e}function w(e){var o=e.parentNode;o&&o.removeChild(e)}function x(e,o,n){var t,r,l,i={};for(l in o)"key"==l?t=o[l]:"ref"==l?r=o[l]:i[l]=o[l];if(arguments.length>2&&(i.children=arguments.length>3?c.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===i[l]&&(i[l]=e.defaultProps[l]);return b(e,i,t,r,null)}function b(e,o,n,t,r){var l={type:e,props:o,key:n,ref:t,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u:r,__i:-1,__u:0};return null==r&&null!=a.vnode&&a.vnode(l),l}function C(e){return e.children}function k(e,o){this.props=e,this.context=o}function R(e,o){if(null==o)return e.__?R(e.__,e.__i+1):null;for(var n;o<e.__k.length;o++)if(null!=(n=e.__k[o])&&null!=n.__e)return n.__e;return"function"==typeof e.type?R(e):null}function I(e){var o,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,o=0;o<e.__k.length;o++)if(null!=(n=e.__k[o])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return I(e)}}function S(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!E.__r++||d!==a.debounceRendering)&&((d=a.debounceRendering)||_)(E)}function E(){var e,o,n,t,r,l,i,c,u;for(s.sort(f);e=s.shift();)e.__d&&(o=s.length,t=void 0,l=(r=(n=e).__v).__e,c=[],u=[],(i=n.__P)&&((t=m({},r)).__v=r.__v+1,a.vnode&&a.vnode(t),A(i,t,r,n.__n,void 0!==i.ownerSVGElement,32&r.__u?[l]:null,c,null==l?R(r):l,!!(32&r.__u),u),t.__.__k[t.__i]=t,L(c,t,u),t.__e!=l&&I(t)),s.length>o&&s.sort(f));E.__r=0}function z(e,o,n,t,r,l,i,c,a,u,s){var d,_,f,p,g,m=t&&t.__k||v,w=o.length;for(n.__d=a,function(e,o,n){var t,r,l,i,c,a=o.length,u=n.length,s=u,d=0;for(e.__k=[],t=0;t<a;t++)null!=(r=e.__k[t]=null==(r=o[t])||"boolean"==typeof r||"function"==typeof r?null:"string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?b(null,r,null,null,r):y(r)?b(C,{children:r},null,null,null):void 0===r.constructor&&r.__b>0?b(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)?(r.__=e,r.__b=e.__b+1,c=T(r,n,i=t+d,s),r.__i=c,l=null,-1!==c&&(s--,(l=n[c])&&(l.__u|=131072)),null==l||null===l.__v?(-1==c&&d--,"function"!=typeof r.type&&(r.__u|=65536)):c!==i&&(c===i+1?d++:c>i?s>a-i?d+=c-i:d--:d=c<i&&c==i-1?c-i:0,c!==t+d&&(r.__u|=65536))):(l=n[t])&&null==l.key&&l.__e&&(l.__e==e.__d&&(e.__d=R(l)),G(l,l,!1),n[t]=null,s--);if(s)for(t=0;t<u;t++)null!=(l=n[t])&&0==(131072&l.__u)&&(l.__e==e.__d&&(e.__d=R(l)),G(l,l))}(n,o,m),a=n.__d,d=0;d<w;d++)null!=(f=n.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(_=-1===f.__i?h:m[f.__i]||h,f.__i=d,A(e,f,_,r,l,i,c,a,u,s),p=f.__e,f.ref&&_.ref!=f.ref&&(_.ref&&W(_.ref,null,f),s.push(f.ref,f.__c||p,f)),null==g&&null!=p&&(g=p),65536&f.__u||_.__k===f.__k?a=P(f,a,e):"function"==typeof f.type&&void 0!==f.__d?a=f.__d:p&&(a=p.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=a,n.__e=g}function P(e,o,n){var t,r;if("function"==typeof e.type){for(t=e.__k,r=0;t&&r<t.length;r++)t[r]&&(t[r].__=e,o=P(t[r],o,n));return o}return e.__e!=o&&(n.insertBefore(e.__e,o||null),o=e.__e),o&&o.nextSibling}function N(e,o){return o=o||[],null==e||"boolean"==typeof e||(y(e)?e.some((function(e){N(e,o)})):o.push(e)),o}function T(e,o,n,t){var r=e.key,l=e.type,i=n-1,c=n+1,a=o[n];if(null===a||a&&r==a.key&&l===a.type)return n;if(t>(null!=a&&0==(131072&a.__u)?1:0))for(;i>=0||c<o.length;){if(i>=0){if((a=o[i])&&0==(131072&a.__u)&&r==a.key&&l===a.type)return i;i--}if(c<o.length){if((a=o[c])&&0==(131072&a.__u)&&r==a.key&&l===a.type)return c;c++}}return-1}function O(e,o,n){"-"===o[0]?e.setProperty(o,null==n?"":n):e[o]=null==n?"":"number"!=typeof n||g.test(o)?n:n+"px"}function D(e,o,n,t,r){var l;e:if("style"===o)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof t&&(e.style.cssText=t=""),t)for(o in t)n&&o in n||O(e.style,o,"");if(n)for(o in n)t&&n[o]===t[o]||O(e.style,o,n[o])}else if("o"===o[0]&&"n"===o[1])l=o!==(o=o.replace(/(PointerCapture)$|Capture$/,"$1")),o=o.toLowerCase()in e?o.toLowerCase().slice(2):o.slice(2),e.l||(e.l={}),e.l[o+l]=n,n?t?n.u=t.u:(n.u=Date.now(),e.addEventListener(o,l?H:F,l)):e.removeEventListener(o,l?H:F,l);else{if(r)o=o.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==o&&"height"!==o&&"href"!==o&&"list"!==o&&"form"!==o&&"tabIndex"!==o&&"download"!==o&&"rowSpan"!==o&&"colSpan"!==o&&"role"!==o&&o in e)try{e[o]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==o[4]?e.removeAttribute(o):e.setAttribute(o,n))}}function F(e){var o=this.l[e.type+!1];if(e.t){if(e.t<=o.u)return}else e.t=Date.now();return o(a.event?a.event(e):e)}function H(e){return this.l[e.type+!0](a.event?a.event(e):e)}function A(e,o,n,t,r,l,i,c,u,s){var d,_,f,p,h,v,g,w,x,b,R,I,S,E,P,N=o.type;if(void 0!==o.constructor)return null;128&n.__u&&(u=!!(32&n.__u),l=[c=o.__e=n.__e]),(d=a.__b)&&d(o);e:if("function"==typeof N)try{if(w=o.props,x=(d=N.contextType)&&t[d.__c],b=d?x?x.props.value:d.__:t,n.__c?g=(_=o.__c=n.__c).__=_.__E:("prototype"in N&&N.prototype.render?o.__c=_=new N(w,b):(o.__c=_=new k(w,b),_.constructor=N,_.render=K),x&&x.sub(_),_.props=w,_.state||(_.state={}),_.context=b,_.__n=t,f=_.__d=!0,_.__h=[],_._sb=[]),null==_.__s&&(_.__s=_.state),null!=N.getDerivedStateFromProps&&(_.__s==_.state&&(_.__s=m({},_.__s)),m(_.__s,N.getDerivedStateFromProps(w,_.__s))),p=_.props,h=_.state,_.__v=o,f)null==N.getDerivedStateFromProps&&null!=_.componentWillMount&&_.componentWillMount(),null!=_.componentDidMount&&_.__h.push(_.componentDidMount);else{if(null==N.getDerivedStateFromProps&&w!==p&&null!=_.componentWillReceiveProps&&_.componentWillReceiveProps(w,b),!_.__e&&(null!=_.shouldComponentUpdate&&!1===_.shouldComponentUpdate(w,_.__s,b)||o.__v===n.__v)){for(o.__v!==n.__v&&(_.props=w,_.state=_.__s,_.__d=!1),o.__e=n.__e,o.__k=n.__k,o.__k.forEach((function(e){e&&(e.__=o)})),R=0;R<_._sb.length;R++)_.__h.push(_._sb[R]);_._sb=[],_.__h.length&&i.push(_);break e}null!=_.componentWillUpdate&&_.componentWillUpdate(w,_.__s,b),null!=_.componentDidUpdate&&_.__h.push((function(){_.componentDidUpdate(p,h,v)}))}if(_.context=b,_.props=w,_.__P=e,_.__e=!1,I=a.__r,S=0,"prototype"in N&&N.prototype.render){for(_.state=_.__s,_.__d=!1,I&&I(o),d=_.render(_.props,_.state,_.context),E=0;E<_._sb.length;E++)_.__h.push(_._sb[E]);_._sb=[]}else do{_.__d=!1,I&&I(o),d=_.render(_.props,_.state,_.context),_.state=_.__s}while(_.__d&&++S<25);_.state=_.__s,null!=_.getChildContext&&(t=m(m({},t),_.getChildContext())),f||null==_.getSnapshotBeforeUpdate||(v=_.getSnapshotBeforeUpdate(p,h)),z(e,y(P=null!=d&&d.type===C&&null==d.key?d.props.children:d)?P:[P],o,n,t,r,l,i,c,u,s),_.base=o.__e,o.__u&=-161,_.__h.length&&i.push(_),g&&(_.__E=_.__=null)}catch(e){o.__v=null,u||null!=l?(o.__e=c,o.__u|=u?160:32,l[l.indexOf(c)]=null):(o.__e=n.__e,o.__k=n.__k),a.__e(e,o,n)}else null==l&&o.__v===n.__v?(o.__k=n.__k,o.__e=n.__e):o.__e=M(n.__e,o,n,t,r,l,i,u,s);(d=a.diffed)&&d(o)}function L(e,o,n){o.__d=void 0;for(var t=0;t<n.length;t++)W(n[t],n[++t],n[++t]);a.__c&&a.__c(o,e),e.some((function(o){try{e=o.__h,o.__h=[],e.some((function(e){e.call(o)}))}catch(e){a.__e(e,o.__v)}}))}function M(e,o,n,t,r,l,i,a,u){var s,d,_,f,p,v,g,m=n.props,x=o.props,b=o.type;if("svg"===b&&(r=!0),null!=l)for(s=0;s<l.length;s++)if((p=l[s])&&"setAttribute"in p==!!b&&(b?p.localName===b:3===p.nodeType)){e=p,l[s]=null;break}if(null==e){if(null===b)return document.createTextNode(x);e=r?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,x.is&&x),l=null,a=!1}if(null===b)m===x||a&&e.data===x||(e.data=x);else{if(l=l&&c.call(e.childNodes),m=n.props||h,!a&&null!=l)for(m={},s=0;s<e.attributes.length;s++)m[(p=e.attributes[s]).name]=p.value;for(s in m)p=m[s],"children"==s||("dangerouslySetInnerHTML"==s?_=p:"key"===s||s in x||D(e,s,null,p,r));for(s in x)p=x[s],"children"==s?f=p:"dangerouslySetInnerHTML"==s?d=p:"value"==s?v=p:"checked"==s?g=p:"key"===s||a&&"function"!=typeof p||m[s]===p||D(e,s,p,m[s],r);if(d)a||_&&(d.__html===_.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),o.__k=[];else if(_&&(e.innerHTML=""),z(e,y(f)?f:[f],o,n,t,r&&"foreignObject"!==b,l,i,l?l[0]:n.__k&&R(n,0),a,u),null!=l)for(s=l.length;s--;)null!=l[s]&&w(l[s]);a||(s="value",void 0!==v&&(v!==e[s]||"progress"===b&&!v||"option"===b&&v!==m[s])&&D(e,s,v,m[s],!1),s="checked",void 0!==g&&g!==e[s]&&D(e,s,g,m[s],!1))}return e}function W(e,o,n){try{"function"==typeof e?e(o):e.current=o}catch(e){a.__e(e,n)}}function G(e,o,n){var t,r;if(a.unmount&&a.unmount(e),(t=e.ref)&&(t.current&&t.current!==e.__e||W(t,null,o)),null!=(t=e.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount()}catch(e){a.__e(e,o)}t.base=t.__P=null,e.__c=void 0}if(t=e.__k)for(r=0;r<t.length;r++)t[r]&&G(t[r],o,n||"function"!=typeof e.type);n||null==e.__e||w(e.__e),e.__=e.__e=e.__d=void 0}function K(e,o,n){return this.constructor(e,n)}function j(e,o,n){var t,r,l,i;a.__&&a.__(e,o),r=(t="function"==typeof n)?null:n&&n.__k||o.__k,l=[],i=[],A(o,e=(!t&&n||o).__k=x(C,null,[e]),r||h,h,void 0!==o.ownerSVGElement,!t&&n?[n]:r?null:o.firstChild?c.call(o.childNodes):null,l,!t&&n?n:r?r.__e:o.firstChild,t,i),L(l,e,i)}function U(e,o){var n={__c:o="__cC"+p++,__:e,Consumer:function(e,o){return e.children(o)},Provider:function(e){var n,t;return this.getChildContext||(n=[],(t={})[o]=this,this.getChildContext=function(){return t},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,S(e)}))},this.sub=function(e){n.push(e);var o=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),o&&o.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}c=v.slice,a={__e:function(e,o,n,t){for(var r,l,i;o=o.__;)if((r=o.__c)&&!r.__)try{if((l=r.constructor)&&null!=l.getDerivedStateFromError&&(r.setState(l.getDerivedStateFromError(e)),i=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,t||{}),i=r.__d),i)return r.__E=r}catch(o){e=o}throw e}},u=0,k.prototype.setState=function(e,o){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},n),this.props)),e&&m(n,e),null!=e&&this.__v&&(o&&this._sb.push(o),S(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),S(this))},k.prototype.render=C,s=[],_="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(e,o){return e.__v.__b-o.__v.__b},E.__r=0,p=0;var B,V,$,q,J=0,X=[],Y=[],Z=a.__b,Q=a.__r,ee=a.diffed,oe=a.__c,ne=a.unmount;function te(e,o){a.__h&&a.__h(V,e,J||o),J=0;var n=V.__H||(V.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Y}),n.__[e]}function re(e){return J=1,function(e,o,n){var t=te(B++,2);if(t.t=e,!t.__c&&(t.__=[n?n(o):ge(void 0,o),function(e){var o=t.__N?t.__N[0]:t.__[0],n=t.t(o,e);o!==n&&(t.__N=[n,t.__[1]],t.__c.setState({}))}],t.__c=V,!V.u)){var r=function(e,o,n){if(!t.__c.__H)return!0;var r=t.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!l||l.call(this,e,o,n);var i=!1;return r.forEach((function(e){if(e.__N){var o=e.__[0];e.__=e.__N,e.__N=void 0,o!==e.__[0]&&(i=!0)}})),!(!i&&t.__c.props===e)&&(!l||l.call(this,e,o,n))};V.u=!0;var l=V.shouldComponentUpdate,i=V.componentWillUpdate;V.componentWillUpdate=function(e,o,n){if(this.__e){var t=l;l=void 0,r(e,o,n),l=t}i&&i.call(this,e,o,n)},V.shouldComponentUpdate=r}return t.__N||t.__}(ge,e)}function le(e,o){var n=te(B++,3);!a.__s&&ve(n.__H,o)&&(n.__=e,n.i=o,V.__H.__h.push(n))}function ie(e,o){var n=te(B++,4);!a.__s&&ve(n.__H,o)&&(n.__=e,n.i=o,V.__h.push(n))}function ce(e){return J=5,ae((function(){return{current:e}}),[])}function ae(e,o){var n=te(B++,7);return ve(n.__H,o)?(n.__V=e(),n.i=o,n.__h=e,n.__V):n.__}function ue(e,o){return J=8,ae((function(){return e}),o)}function se(e){var o=V.context[e.__c],n=te(B++,9);return n.c=e,o?(null==n.__&&(n.__=!0,o.sub(V)),o.props.value):e.__}function de(){for(var e;e=X.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(pe),e.__H.__h.forEach(he),e.__H.__h=[]}catch(o){e.__H.__h=[],a.__e(o,e.__v)}}a.__b=function(e){V=null,Z&&Z(e)},a.__r=function(e){Q&&Q(e),B=0;var o=(V=e.__c).__H;o&&($===V?(o.__h=[],V.__h=[],o.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Y,e.__N=e.i=void 0}))):(o.__h.forEach(pe),o.__h.forEach(he),o.__h=[],B=0)),$=V},a.diffed=function(e){ee&&ee(e);var o=e.__c;o&&o.__H&&(o.__H.__h.length&&(1!==X.push(o)&&q===a.requestAnimationFrame||((q=a.requestAnimationFrame)||fe)(de)),o.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Y&&(e.__=e.__V),e.i=void 0,e.__V=Y}))),$=V=null},a.__c=function(e,o){o.some((function(e){try{e.__h.forEach(pe),e.__h=e.__h.filter((function(e){return!e.__||he(e)}))}catch(n){o.some((function(e){e.__h&&(e.__h=[])})),o=[],a.__e(n,e.__v)}})),oe&&oe(e,o)},a.unmount=function(e){ne&&ne(e);var o,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{pe(e)}catch(e){o=e}})),n.__H=void 0,o&&a.__e(o,n.__v))};var _e="function"==typeof requestAnimationFrame;function fe(e){var o,n=function(){clearTimeout(t),_e&&cancelAnimationFrame(o),setTimeout(e)},t=setTimeout(n,100);_e&&(o=requestAnimationFrame(n))}function pe(e){var o=V,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),V=o}function he(e){var o=V;e.__c=e.__(),V=o}function ve(e,o){return!e||e.length!==o.length||o.some((function(o,n){return o!==e[n]}))}function ge(e,o){return"function"==typeof o?o(e):o}function ye(e,o){for(var n in o)e[n]=o[n];return e}function me(e,o){for(var n in e)if("__source"!==n&&!(n in o))return!0;for(var t in o)if("__source"!==t&&e[t]!==o[t])return!0;return!1}function we(e){this.props=e}function xe(e,o){function n(e){var n=this.props.ref,t=n==e.ref;return!t&&n&&(n.call?n(null):n.current=null),o?!o(this.props,e)||!t:me(this.props,e)}function t(o){return this.shouldComponentUpdate=n,x(e,o)}return t.displayName="Memo("+(e.displayName||e.name)+")",t.prototype.isReactComponent=!0,t.__f=!0,t}(we.prototype=new k).isPureReactComponent=!0,we.prototype.shouldComponentUpdate=function(e,o){return me(this.props,e)||me(this.state,o)};var be=a.__b;a.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),be&&be(e)};var Ce="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ke(e){function o(o){var n=ye({},o);return delete n.ref,e(n,o.ref||null)}return o.$$typeof=Ce,o.render=o,o.prototype.isReactComponent=o.__f=!0,o.displayName="ForwardRef("+(e.displayName||e.name)+")",o}var Re=a.__e;a.__e=function(e,o,n,t){if(e.then)for(var r,l=o;l=l.__;)if((r=l.__c)&&r.__c)return null==o.__e&&(o.__e=n.__e,o.__k=n.__k),r.__c(e,o);Re(e,o,n,t)};var Ie=a.unmount;function Se(e,o,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=ye({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=o),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Se(e,o,n)}))),e}function Ee(e,o,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Ee(e,o,n)})),e.__c&&e.__c.__P===o&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function ze(){this.__u=0,this.t=null,this.__b=null}function Pe(e){var o=e.__.__c;return o&&o.__a&&o.__a(e)}function Ne(){this.u=null,this.o=null}a.unmount=function(e){var o=e.__c;o&&o.__R&&o.__R(),o&&32&e.__u&&(e.type=null),Ie&&Ie(e)},(ze.prototype=new k).__c=function(e,o){var n=o.__c,t=this;null==t.t&&(t.t=[]),t.t.push(n);var r=Pe(t.__v),l=!1,i=function(){l||(l=!0,n.__R=null,r?r(c):c())};n.__R=i;var c=function(){if(! --t.__u){if(t.state.__a){var e=t.state.__a;t.__v.__k[0]=Ee(e,e.__c.__P,e.__c.__O)}var o;for(t.setState({__a:t.__b=null});o=t.t.pop();)o.forceUpdate()}};t.__u++||32&o.__u||t.setState({__a:t.__b=t.__v.__k[0]}),e.then(i,i)},ze.prototype.componentWillUnmount=function(){this.t=[]},ze.prototype.render=function(e,o){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),t=this.__v.__k[0].__c;this.__v.__k[0]=Se(this.__b,n,t.__O=t.__P)}this.__b=null}var r=o.__a&&x(C,null,e.fallback);return r&&(r.__u&=-33),[x(C,null,o.__a?null:e.children),r]};var Te=function(e,o,n){if(++n[1]===n[0]&&e.o.delete(o),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Oe(e){return this.getChildContext=function(){return e.context},e.children}function De(e){var o=this,n=e.i;o.componentWillUnmount=function(){j(null,o.l),o.l=null,o.i=null},o.i&&o.i!==n&&o.componentWillUnmount(),o.l||(o.i=n,o.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),o.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),o.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),o.i.removeChild(e)}}),j(x(Oe,{context:o.context},e.__v),o.l)}function Fe(e,o){var n=x(De,{__v:e,i:o});return n.containerInfo=o,n}(Ne.prototype=new k).__a=function(e){var o=this,n=Pe(o.__v),t=o.o.get(e);return t[0]++,function(r){var l=function(){o.props.revealOrder?(t.push(r),Te(o,e,t)):r()};n?n(l):l()}},Ne.prototype.render=function(e){this.u=null,this.o=new Map;var o=N(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&o.reverse();for(var n=o.length;n--;)this.o.set(o[n],this.u=[1,0,this.u]);return e.children},Ne.prototype.componentDidUpdate=Ne.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(o,n){Te(e,n,o)}))};var He="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ae=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Le=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Me=/[A-Z0-9]/g,We="undefined"!=typeof document,Ge=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};k.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(k.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(o){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:o})}})}));var Ke=a.event;function je(){}function Ue(){return this.cancelBubble}function Be(){return this.defaultPrevented}a.event=function(e){return Ke&&(e=Ke(e)),e.persist=je,e.isPropagationStopped=Ue,e.isDefaultPrevented=Be,e.nativeEvent=e};var Ve={enumerable:!1,configurable:!0,get:function(){return this.class}},$e=a.vnode;a.vnode=function(e){"string"==typeof e.type&&function(e){var o=e.props,n=e.type,t={};for(var r in o){var l=o[r];if(!("value"===r&&"defaultValue"in o&&null==l||We&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var i=r.toLowerCase();"defaultValue"===r&&"value"in o&&null==o.value?r="value":"download"===r&&!0===l?l="":"ondoubleclick"===i?r="ondblclick":"onchange"!==i||"input"!==n&&"textarea"!==n||Ge(o.type)?"onfocus"===i?r="onfocusin":"onblur"===i?r="onfocusout":Le.test(r)?r=i:-1===n.indexOf("-")&&Ae.test(r)?r=r.replace(Me,"-$&").toLowerCase():null===l&&(l=void 0):i=r="oninput","oninput"===i&&t[r=i]&&(r="oninputCapture"),t[r]=l}}"select"==n&&t.multiple&&Array.isArray(t.value)&&(t.value=N(o.children).forEach((function(e){e.props.selected=-1!=t.value.indexOf(e.props.value)}))),"select"==n&&null!=t.defaultValue&&(t.value=N(o.children).forEach((function(e){e.props.selected=t.multiple?-1!=t.defaultValue.indexOf(e.props.value):t.defaultValue==e.props.value}))),o.class&&!o.className?(t.class=o.class,Object.defineProperty(t,"className",Ve)):(o.className&&!o.class||o.class&&o.className)&&(t.class=t.className=o.className),e.props=t}(e),e.$$typeof=He,$e&&$e(e)};var qe=a.__r;a.__r=function(e){qe&&qe(e),e.__c};var Je=a.diffed;function Xe(e){var o,n,t="";if("string"==typeof e||"number"==typeof e)t+=e;else if("object"==typeof e)if(Array.isArray(e))for(o=0;o<e.length;o++)e[o]&&(n=Xe(e[o]))&&(t&&(t+=" "),t+=n);else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function Ye(){for(var e,o,n=0,t="";n<arguments.length;)(e=arguments[n++])&&(o=Xe(e))&&(t&&(t+=" "),t+=o);return t}a.diffed=function(e){Je&&Je(e);var o=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in o&&o.value!==n.value&&(n.value=null==o.value?"":o.value)};var Ze=0;function Qe(e,o,n,t,r,l){var i,c,u={};for(c in o)"ref"==c?i=o[c]:u[c]=o[c];var s={type:e,props:u,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Ze,__i:-1,__u:0,__source:r,__self:l};if("function"==typeof e&&(i=e.defaultProps))for(c in i)void 0===u[c]&&(u[c]=i[c]);return a.vnode&&a.vnode(s),s}function eo(e,o){void 0===o&&(o={});var n=o.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}eo(".c1wupbe700-canary49{contain:strict;contain:size layout style paint;padding:0 8px;border-right:1px solid var(--border-color);border-bottom:1px solid var(--border-color);background-color:inherit;white-space:nowrap;overflow:hidden;overflow:clip;text-overflow:ellipsis}.c1wupbe700-canary49[aria-selected=true]{box-shadow:inset 0 0 0 2px var(--selection-color)}.cd0kgiy700-canary49{position:sticky;z-index:1}.c1730fa4700-canary49{box-shadow:2px 0 5px -2px hsla(0,0%,53.3%,.3)}");const oo="rdg-cell c1wupbe700-canary49",no="rdg-cell-frozen cd0kgiy700-canary49",to="rdg-cell-frozen-last c1730fa4700-canary49";eo(".r104f42s700-canary49{--color:#000;--border-color:#ddd;--summary-border-color:#aaa;--background-color:hsl(0deg 0% 100%);--header-background-color:hsl(0deg 0% 97.5%);--row-hover-background-color:hsl(0deg 0% 96%);--row-selected-background-color:hsl(207deg 76% 92%);--row-selected-hover-background-color:hsl(207deg 76% 88%);--checkbox-color:hsl(207deg 100% 29%);--checkbox-focus-color:hsl(207deg 100% 69%);--checkbox-disabled-border-color:#ccc;--checkbox-disabled-background-color:#ddd;--selection-color:#66afe9;--font-size:14px;contain:strict;contain:size layout style paint;content-visibility:auto;height:350px;border:1px solid var(--border-color);box-sizing:border-box;overflow:auto;user-select:none;background-color:var(--background-color);color:var(--color);font-size:var(--font-size)}@supports not (contain:strict){.r104f42s700-canary49{position:relative;z-index:0}}.r104f42s700-canary49 *,.r104f42s700-canary49 :after,.r104f42s700-canary49 :before{box-sizing:inherit}.r104f42s700-canary49.rdg-dark{--color:#ddd;--border-color:#444;--summary-border-color:#555;--background-color:hsl(0deg 0% 13%);--header-background-color:hsl(0deg 0% 10.5%);--row-hover-background-color:hsl(0deg 0% 9%);--row-selected-background-color:hsl(207deg 76% 42%);--row-selected-hover-background-color:hsl(207deg 76% 38%);--checkbox-color:hsl(207deg 100% 79%);--checkbox-focus-color:hsl(207deg 100% 89%);--checkbox-disabled-border-color:#000;--checkbox-disabled-background-color:#333}@media (prefers-color-scheme:dark){.r104f42s700-canary49:not(.rdg-light){--color:#ddd;--border-color:#444;--summary-border-color:#555;--background-color:hsl(0deg 0% 13%);--header-background-color:hsl(0deg 0% 10.5%);--row-hover-background-color:hsl(0deg 0% 9%);--row-selected-background-color:hsl(207deg 76% 42%);--row-selected-hover-background-color:hsl(207deg 76% 38%);--checkbox-color:hsl(207deg 100% 79%);--checkbox-focus-color:hsl(207deg 100% 89%);--checkbox-disabled-border-color:#000;--checkbox-disabled-background-color:#333}}.f7ly7s700-canary49{position:sticky;top:0;left:0;height:0;width:0;outline:0}.vc4f4zb700-canary49.r1otpg64700-canary49{cursor:move}");eo('.g1cvx5us700-canary49:not([aria-selected=true]){background-color:var(--header-background-color)}.g1cvx5us700-canary49>.c1wupbe700-canary49:not(:last-child):not(.c1730fa4700-canary49){border-right:none}.g1j2w62i700-canary49:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;box-shadow:inset 0 0 0 2px var(--selection-color);pointer-events:none;z-index:2}.g1j2w62i700-canary49>.c1wupbe700-canary49:first-child{box-shadow:inset 2px 0 0 0 var(--selection-color)}');const ro="rdg-group-row-selected g1j2w62i700-canary49";eo(".h1fquj5h700-canary49{contain:strict;contain:size layout style paint;display:grid;grid-template-columns:var(--template-columns);grid-template-rows:var(--header-row-height);height:var(--header-row-height);line-height:var(--header-row-height);width:var(--row-width);position:sticky;top:0;background-color:var(--header-background-color);font-weight:700;z-index:3;touch-action:none}");eo(".r1otpg64700-canary49{contain:strict;contain:size layout style paint;display:grid;grid-template-rows:var(--row-height);grid-template-columns:var(--template-columns);position:absolute;left:0;width:var(--row-width);height:var(--row-height);line-height:var(--row-height);background-color:var(--background-color)}.r1otpg64700-canary49:hover{background-color:var(--row-hover-background-color)}.r1otpg64700-canary49[aria-selected=true]{background-color:var(--row-selected-background-color)}.r1otpg64700-canary49[aria-selected=true]:hover{background-color:var(--row-selected-hover-background-color)}.sel5gk2700-canary49{position:sticky;z-index:3;grid-template-rows:var(--summary-row-height);height:var(--summary-row-height);line-height:var(--summary-row-height)}.sel5gk2700-canary49>.c1wupbe700-canary49{border-top:2px solid var(--summary-border-color)}");const lo="rdg-row r1otpg64700-canary49";function io(e){const o=ce(null);return ie((()=>{var n;e&&(null==(n=o.current)||n.focus({preventScroll:!0}))}),[e]),o}eo('.c1w6d5eo700-canary49{cursor:pointer;display:flex;align-items:center;justify-content:center;position:absolute;top:0;right:0;bottom:0;left:0;margin-right:1px}.c1h7iz8d700-canary49{all:unset;width:0;margin:0}.cc79ydj700-canary49{content:"";width:20px;height:20px;border:2px solid var(--border-color);background-color:var(--background-color)}.c1h7iz8d700-canary49:checked+.cc79ydj700-canary49{background-color:var(--checkbox-color);box-shadow:inset 0 0 0 4px var(--background-color)}.c1h7iz8d700-canary49:focus+.cc79ydj700-canary49{border-color:var(--checkbox-focus-color)}.c1e5jt0b700-canary49{cursor:default}.c1e5jt0b700-canary49 .cc79ydj700-canary49{border-color:var(--checkbox-disabled-border-color);background-color:var(--checkbox-disabled-background-color)}');const co="rdg-checkbox-label c1w6d5eo700-canary49",ao="rdg-checkbox-input c1h7iz8d700-canary49",uo="rdg-checkbox cc79ydj700-canary49",so="rdg-checkbox-label-disabled c1e5jt0b700-canary49";function _o({value:e,tabIndex:o,isCellSelected:n,disabled:t,onClick:r,onChange:l,"aria-label":i,"aria-labelledby":c}){const a=io(n);return Qe("label",{className:Ye(co,t&&so),children:[Qe("input",{"aria-label":i,"aria-labelledby":c,tabIndex:o,ref:a,type:"checkbox",className:ao,disabled:t,checked:e,onChange:function(e){l(e.target.checked,e.nativeEvent.shiftKey)},onClick:r}),Qe("div",{className:uo})]})}function fo(e){try{return Qe(C,{children:e.row[e.column.key]})}catch{return null}}eo(".gch972y700-canary49{outline:none}.cz2qf0d700-canary49{margin-left:4px;stroke:currentColor;stroke-width:1.5px;fill:transparent;vertical-align:middle}.cz2qf0d700-canary49>path{transition:d .1s}");const po="rdg-group-cell-content gch972y700-canary49",ho="rdg-caret cz2qf0d700-canary49";function vo({groupKey:e,isExpanded:o,isCellSelected:n,toggleGroup:t}){return Qe("span",{ref:io(n),className:po,tabIndex:-1,onKeyDown:function({key:e}){"Enter"===e&&t()},children:[e,Qe("svg",{viewBox:"0 0 14 8",width:"14",height:"8",className:ho,children:Qe("path",{d:o?"M1 1 L 7 7 L 13 1":"M1 7 L 7 1 L 13 7"})})]})}function go(e,o,n){const t="function"==typeof e.colSpan?e.colSpan(n):1;if(Number.isInteger(t)&&t>1&&(!e.frozen||e.idx+t-1<=o))return t}function yo(e){e.stopPropagation()}const mo=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function wo(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}function xo({key:e,target:o}){return"Tab"===e&&(o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement)&&o.matches(".rdg-editor-container > :only-child, .rdg-editor-container > label:only-child > :only-child")}function bo({selectedPosition:e,columns:o,rows:n,isGroupRow:t}){const r=o[e.idx],l=n[e.rowIdx];return!t(l)&&Co(r,l)}function Co(e,o){return null!=e.editor&&!e.rowGroup&&!1!==("function"==typeof e.editable?e.editable(o):e.editable)}const{min:ko,max:Ro,floor:Io,ceil:So,sign:Eo}=Math;function zo(e){if("function"!=typeof e)throw new Error("Please specify the rowKeyGetter prop to use selection")}function Po(e,o){return{gridColumnStart:e.idx+1,gridColumnEnd:void 0!==o?`span ${o}`:void 0,left:e.frozen?`var(--frozen-left-${e.key})`:void 0}}function No(e,...o){return Ye(oo,...o,e.frozen&&no,e.isLastFrozenColumn&&to)}const To="select-row";const Oo={key:To,name:"",width:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,headerRenderer:e=>Qe(_o,{"aria-label":"Select All",isCellSelected:!1,value:e.allRowsSelected,onChange:e.onAllRowsSelectionChange}),formatter:function(e){const[o,n]=Go();return Qe(_o,{"aria-label":"Select",tabIndex:-1,isCellSelected:e.isCellSelected,value:o,onClick:yo,onChange:(o,t)=>{n({rowIdx:e.rowIdx,checked:o,isShiftClick:t})}})},groupFormatter:function(e){const[o,n]=Go();return Qe(_o,{"aria-label":"Select Group",tabIndex:-1,isCellSelected:e.isCellSelected,value:o,onChange:o=>{n({checked:o,isShiftClick:!1,rowIdx:e.rowIdx})},onClick:yo})}};function Do({key:e,width:o},n,t){return n.has(e)?n.get(e):"number"==typeof o?o:"string"==typeof o&&/^\d+%$/.test(o)?Io(t*parseInt(o,10)/100):void 0}function Fo(e,{minWidth:o,maxWidth:n},t){return e=Ro(e,null!=o?o:t),"number"==typeof n?ko(e,n):e}function Ho(e){const o=ce(e);return le((()=>{o.current=e})),ue(((...e)=>{o.current(...e)}),[])}const Ao=U(void 0),Lo=Ao.Provider,Mo=U(void 0),Wo=Mo.Provider;function Go(){const e=se(Ao),o=se(Mo);if(void 0===e||void 0===o)throw new Error("useRowSelection must be used within DataGrid cells");return[e,o]}const Ko=8;function jo({rawRows:e,rowHeight:o,clientHeight:n,scrollTop:t,groupBy:r,rowGrouper:l,expandedGroupIds:i,enableVirtualization:c}){const[a,u]=ae((()=>{if(0===r.length||null==l)return[void 0,e.length];const o=(e,[n,...t],r)=>{let i=0;const c={};for(const[a,u]of Object.entries(l(e,n))){const[e,n]=0===t.length?[u,u.length]:o(u,t,r+i+1);c[a]={childRows:u,childGroups:e,startRowIndex:r+i},i+=n+1}return[c,i]};return o(e,r,0)}),[r,l,e]),[s,d]=ae((()=>{const o=new Set;if(!a)return[e,r];const n=[],t=(e,r,l)=>{var c;(c=e,Array.isArray(c))?n.push(...e):Object.keys(e).forEach(((c,a,u)=>{var s;const d=void 0!==r?`${r}__${c}`:c,_=null!=(s=null==i?void 0:i.has(d))&&s,{childRows:f,childGroups:p,startRowIndex:h}=e[c],v={id:d,parentId:r,groupKey:c,isExpanded:_,childRows:f,level:l,posInSet:a,startRowIndex:h,setSize:u.length};n.push(v),o.add(v),_&&t(p,d,l+1)}))};return t(a,void 0,0),[n,r];function r(e){return o.has(e)}}),[i,a,e]),{totalRowHeight:_,getRowTop:f,getRowHeight:p,findRowIdx:h}=ae((()=>{if("number"==typeof o)return{totalRowHeight:o*s.length,getRowTop:e=>e*o,getRowHeight:()=>o,findRowIdx:e=>Io(e/o)};let e=0;const n=s.map((n=>{const t=d(n)?o({type:"GROUP",row:n}):o({type:"ROW",row:n}),r={top:e,height:t};return e+=t,r})),t=e=>Ro(0,ko(s.length-1,e));return{totalRowHeight:e,getRowTop:e=>n[t(e)].top,getRowHeight:e=>n[t(e)].height,findRowIdx(e){let o=0,t=n.length-1;for(;o<=t;){const r=o+Io((t-o)/2),l=n[r].top;if(l===e)return r;if(l<e?o=r+1:l>e&&(t=r-1),o>t)return t}return 0}}}),[d,o,s]);if(!c)return{rowOverscanStartIdx:0,rowOverscanEndIdx:s.length-1,rows:s,rowsCount:u,totalRowHeight:_,isGroupRow:d,getRowTop:f,getRowHeight:p,findRowIdx:h};const v=h(t),g=ko(s.length-1,h(t+n));return{rowOverscanStartIdx:Ro(0,Io((v-4)/Ko)*Ko),rowOverscanEndIdx:ko(s.length-1,So((g+4)/Ko)*Ko),rows:s,rowsCount:u,totalRowHeight:_,isGroupRow:d,getRowTop:f,getRowHeight:p,findRowIdx:h}}eo(".h13yq3r8700-canary49{cursor:pointer;display:flex}.ht6rdyl700-canary49{flex-grow:1;overflow:hidden;overflow:clip;text-overflow:ellipsis}");const Uo="rdg-header-sort-cell h13yq3r8700-canary49",Bo="rdg-header-sort-name ht6rdyl700-canary49";function Vo({onSort:e,sortDirection:o,priority:n,children:t}){let r="";return"ASC"===o?r="▲":"DESC"===o&&(r="▼"),Qe("span",{className:Uo,onClick:o=>e(o.ctrlKey),children:[Qe("span",{className:Bo,children:t}),Qe("span",{children:[r,n]})]})}eo('.celq7o9700-canary49:after{content:"";cursor:col-resize;position:absolute;top:0;right:0;bottom:0;width:10px}');const $o="rdg-cell-resizable celq7o9700-canary49";function qo({column:e,colSpan:o,onResize:n,allRowsSelected:t,onAllRowsSelectionChange:r,sortColumns:l,onSortColumnsChange:i}){const c=null==l?void 0:l.findIndex((o=>o.columnKey===e.key)),a=void 0!==c&&c>-1?l[c]:void 0,u=null==a?void 0:a.direction,s=void 0!==a&&l.length>1?c+1:void 0,d=u&&!s?"ASC"===u?"ascending":"descending":void 0,_=o=>{if(null==i)return;const{sortDescendingFirst:n}=e;if(void 0===a){const t={columnKey:e.key,direction:n?"DESC":"ASC"};i(l&&o?[...l,t]:[t])}else{let t;if((n&&"DESC"===u||!n&&"ASC"===u)&&(t={columnKey:e.key,direction:"ASC"===u?"DESC":"ASC"}),o){const e=[...l];t?e[c]=t:e.splice(c,1),i(e)}else i(t?[t]:[])}};const f=No(e,e.headerCellClass,e.resizable&&$o);return Qe("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-sort":d,"aria-colspan":o,className:f,style:Po(e,o),onPointerDown:e.resizable?function(o){if("mouse"===o.pointerType&&1!==o.buttons)return;const{currentTarget:t,pointerId:r}=o,{right:l}=t.getBoundingClientRect(),i=l-o.clientX;function c(o){if(o.pointerId!==r)return;if("mouse"===o.pointerType&&1!==o.buttons)return void a(o);const l=o.clientX+i-t.getBoundingClientRect().left;l>0&&n(e,l)}function a(e){e.pointerId===r&&(window.removeEventListener("pointermove",c),window.removeEventListener("pointerup",a))}i>11||(o.preventDefault(),window.addEventListener("pointermove",c),window.addEventListener("pointerup",a))}:void 0,children:e.headerRenderer?Qe(e.headerRenderer,{column:e,sortDirection:u,priority:s,onSort:_,allRowsSelected:t,onAllRowsSelectionChange:r}):e.sortable?Qe(Vo,{onSort:_,sortDirection:u,priority:s,children:e.name}):e.name})}function Jo({columns:e,rows:o,rowKeyGetter:n,onSelectedRowsChange:t,allRowsSelected:r,onColumnResize:l,sortColumns:i,onSortColumnsChange:c,lastFrozenColumnIndex:a}){const u=ue((e=>{if(!t)return;zo(n);const r=new Set(e?o.map(n):void 0);t(r)}),[t,o,n]),s=[];for(let o=0;o<e.length;o++){const n=e[o],t=go(n,a,{type:"HEADER"});void 0!==t&&(o+=t-1),s.push(Qe(qo,{column:n,colSpan:t,onResize:l,allRowsSelected:r,onAllRowsSelectionChange:u,onSortColumnsChange:c,sortColumns:i},n.key))}return Qe("div",{role:"row","aria-rowindex":1,className:"rdg-header-row h1fquj5h700-canary49",children:s})}const Xo=xe(Jo);eo(".c1bmg16t700-canary49,.ccpfvsn700-canary49{background-color:#ccf}.c1bmg16t700-canary49.ccpfvsn700-canary49{background-color:#99f}.c12t67zz700-canary49{cursor:move;position:absolute;right:0;bottom:0;width:8px;height:8px;background-color:var(--selection-color)}.c12t67zz700-canary49:hover{width:16px;height:16px;border:2px solid var(--selection-color);background-color:var(--background-color)}");function Yo({className:e,column:o,colSpan:n,isCellSelected:t,isCopied:r,isDraggedOver:l,row:i,rowIdx:c,dragHandleProps:a,onRowClick:u,onClick:s,onDoubleClick:d,onContextMenu:_,onRowChange:f,selectCell:p,...h},v){const{cellClass:g}=o;function y(e){p({idx:o.idx,rowIdx:c},e)}return e=No(o,"function"==typeof g?g(i):g,e,r&&"rdg-cell-copied ccpfvsn700-canary49",l&&"rdg-cell-dragged-over c1bmg16t700-canary49"),Qe("div",{role:"gridcell","aria-colindex":o.idx+1,"aria-selected":t,"aria-colspan":n,"aria-readonly":!Co(o,i)||void 0,ref:v,className:e,style:Po(o,n),onClick:function(e){var n;y(null==(n=o.editorOptions)?void 0:n.editOnClick),null==u||u(c,i,o),null==s||s(e)},onDoubleClick:function(e){y(!0),null==d||d(e)},onContextMenu:function(e){y(),null==_||_(e)},...h,children:!o.rowGroup&&Qe(C,{children:[Qe(o.formatter,{column:o,rowIdx:c,row:i,isCellSelected:t,onRowChange:function(e){f(c,e)}}),a&&Qe("div",{className:"rdg-cell-drag-handle c12t67zz700-canary49",...a})]})})}const Zo=xe(ke(Yo));eo(".c1tngyp1700-canary49{padding:0}");const Qo="rdg-editor-container c1tngyp1700-canary49";function en({column:e,colSpan:o,row:n,rowIdx:t,onRowChange:r,onClose:l,onKeyDown:i,editorPortalTarget:c}){const a=ce(),u=Ho((()=>{r(n,!0)}));function s(){cancelAnimationFrame(a.current)}le((()=>{function e(){a.current=requestAnimationFrame(u)}return addEventListener("mousedown",e,{capture:!0}),()=>{removeEventListener("mousedown",e,{capture:!0}),s()}}),[u]);const{cellClass:d}=e,_=No(e,Qo,"function"==typeof d?d(n):d);let f;var p;null!=e.editor&&(f=Qe(e.editor,{column:e,row:n,rowIdx:t,onRowChange:r,onClose:l,editorPortalTarget:c}),null!=(p=e.editorOptions)&&p.createPortal&&(f=Fe(f,c)));return Qe("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-selected":!0,className:_,style:Po(e,o),onKeyDown:i,onMouseDownCapture:s,children:f})}function on({cellRenderer:e,className:o,rowIdx:n,isRowSelected:t,copiedCellIdx:r,draggedOverCellIdx:l,lastFrozenColumnIndex:i,row:c,viewportColumns:a,selectedCellProps:u,onRowClick:s,rowClass:d,setDraggedOverRowIdx:_,onMouseEnter:f,top:p,height:h,onRowChange:v,selectCell:g,...y},m){o=Ye(lo,"rdg-row-"+(n%2==0?"even":"odd"),null==d?void 0:d(c),o,-1===(null==u?void 0:u.idx)&&ro);const w=null!=e?e:Zo,x=[];for(let e=0;e<a.length;e++){const o=a[e],t=go(o,i,{type:"ROW",row:c});void 0!==t&&(e+=t-1);const d=(null==u?void 0:u.idx)===o.idx;"EDIT"===(null==u?void 0:u.mode)&&d?x.push(Qe(en,{rowIdx:n,column:o,colSpan:t,onKeyDown:u.onKeyDown,...u.editorProps},o.key)):x.push(Qe(w,{rowIdx:n,column:o,colSpan:t,row:c,isCopied:r===o.idx,isDraggedOver:l===o.idx,isCellSelected:d,dragHandleProps:d?u.dragHandleProps:void 0,onFocus:d?u.onFocus:void 0,onKeyDown:d?u.onKeyDown:void 0,onRowClick:s,onRowChange:v,selectCell:g},o.key))}return Qe(Lo,{value:t,children:Qe("div",{role:"row",ref:m,className:o,onMouseEnter:function(e){null==_||_(n),null==f||f(e)},style:{top:p,"--row-height":`${h}px`},...y,children:x})})}const nn=xe(ke(on));function tn({id:e,rowIdx:o,groupKey:n,childRows:t,isExpanded:r,isCellSelected:l,column:i,groupColumnIndex:c,toggleGroup:a}){function u(){a(e)}const s=i.rowGroup&&c===i.idx;return Qe("div",{role:"gridcell","aria-colindex":i.idx+1,className:No(i),style:{...Po(i),cursor:s?"pointer":"default"},onClick:s?u:void 0,children:(!i.rowGroup||c===i.idx)&&i.groupFormatter&&Qe(i.groupFormatter,{rowIdx:o,groupKey:n,childRows:t,column:i,isExpanded:r,isCellSelected:l,toggleGroup:u})},i.key)}const rn=xe(tn);function ln({id:e,groupKey:o,viewportColumns:n,childRows:t,rowIdx:r,top:l,height:i,level:c,isExpanded:a,selectedCellIdx:u,isRowSelected:s,selectCell:d,toggleGroup:_,...f}){const p=n[0].key===To?c+1:c;return Qe(Lo,{value:s,children:Qe("div",{role:"row","aria-level":c,"aria-expanded":a,className:Ye(lo,"rdg-group-row g1cvx5us700-canary49","rdg-row-"+(r%2==0?"even":"odd"),-1===u&&ro),onClick:function(){d({rowIdx:r,idx:-1})},style:{top:l,"--row-height":`${i}px`},...f,children:n.map((n=>Qe(rn,{id:e,rowIdx:r,groupKey:o,childRows:t,isExpanded:a,isCellSelected:u===n.idx,column:n,groupColumnIndex:p,toggleGroup:_},n.key)))})})}const cn=xe(ln);function an({column:e,colSpan:o,row:n}){const{summaryFormatter:t,summaryCellClass:r}=e,l=No(e,"function"==typeof r?r(n):r);return Qe("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":o,className:l,style:Po(e,o),children:t&&Qe(t,{column:e,row:n})})}const un=xe(an);function sn({rowIdx:e,row:o,viewportColumns:n,bottom:t,lastFrozenColumnIndex:r,"aria-rowindex":l}){const i=[];for(let e=0;e<n.length;e++){const t=n[e],l=go(t,r,{type:"SUMMARY",row:o});void 0!==l&&(e+=l-1),i.push(Qe(un,{column:t,colSpan:l,row:o},t.key))}return Qe("div",{role:"row","aria-rowindex":l,className:`${lo} rdg-row-${e%2==0?"even":"odd"} rdg-summary-row sel5gk2700-canary49`,style:{bottom:t},children:i})}const dn=xe(sn);var _n;const fn=null==(_n=globalThis.document)?void 0:_n.body,pn={idx:-1,rowIdx:-1,mode:"SELECT"};function hn({columns:e,rows:o,summaryRows:n,rowKeyGetter:t,onRowsChange:r,rowHeight:l,headerRowHeight:i,summaryRowHeight:c,selectedRows:a,onSelectedRowsChange:u,sortColumns:s,onSortColumnsChange:d,defaultColumnOptions:_,groupBy:f,rowGrouper:p,expandedGroupIds:h,onExpandedGroupIdsChange:v,rowRenderer:g,emptyRowsRenderer:y,onRowClick:m,onScroll:w,onColumnResize:x,onSelectedCellChange:b,onFill:k,onPaste:R,cellNavigationMode:I,enableVirtualization:S,editorPortalTarget:E,className:z,style:P,rowClass:N,"aria-label":T,"aria-labelledby":O,"aria-describedby":D},F){var H;null!=l||(l=35);const A=null!=i?i:"number"==typeof l?l:35,L=null!=c?c:"number"==typeof l?l:35,M=null!=g?g:nn,W=null!=I?I:"NONE";null!=S||(S=!0);const G=null!=E?E:fn,[K,j]=re(0),[U,B]=re(0),[V,$]=re((()=>new Map)),[q,X]=re(pn),[Y,Z]=re(null),[Q,ee]=re(!1),[oe,ne]=re(void 0),te=ce(null),le=ce(q),se=ce(oe),de=ce(-1),_e=ce(!1),fe=Ho((function({rowIdx:e,checked:o,isShiftClick:n}){if(!u)return;zo(t);const r=new Set(a),l=He[e];if(Me(l)){for(const e of l.childRows){const n=t(e);o?r.add(n):r.delete(n)}return void u(r)}const i=t(l);if(o){r.add(i);const o=de.current;if(de.current=e,n&&-1!==o&&o!==e){const n=Eo(e-o);for(let l=o+n;l!==e;l+=n){const e=He[l];Me(e)||r.add(t(e))}}}else r.delete(i),de.current=-1;u(r)})),pe=Ho(uo),he=Ho(Je),ve=Ho(oo),[ge,ye,me]=function(){const e=ce(null),[o,n]=re(1),[t,r]=re(1);return ie((()=>{const{ResizeObserver:o}=window;if(null==o)return;const t=new o((()=>{const{clientWidth:o,clientHeight:t}=e.current;n(o-(devicePixelRatio%.5==0?0:1)),r(t)}));return t.observe(e.current),()=>{t.disconnect()}}),[]),[e,o,t]}(),we=null!=(H=null==n?void 0:n.length)?H:0,xe=me-A-we*L,be=null!=a&&null!=u,Ce=ae((()=>{const{length:e}=o;return 0!==e&&null!=a&&null!=t&&a.size>=e&&o.every((e=>a.has(t(e))))}),[o,a,t]),{columns:ke,colSpanColumns:Re,colOverscanStartIdx:Ie,colOverscanEndIdx:Se,layoutCssVars:Ee,columnMetrics:ze,totalColumnWidth:Pe,lastFrozenColumnIndex:Ne,totalFrozenColumnWidth:Te,groupBy:Oe}=function({rawColumns:e,columnWidths:o,viewportWidth:n,scrollLeft:t,defaultColumnOptions:r,rawGroupBy:l,enableVirtualization:i}){var c,a,u,s;const d=null!=(c=null==r?void 0:r.minWidth)?c:80,_=null!=(a=null==r?void 0:r.formatter)?a:fo,f=null!=(u=null==r?void 0:r.sortable)&&u,p=null!=(s=null==r?void 0:r.resizable)&&s,{columns:h,colSpanColumns:v,lastFrozenColumnIndex:g,groupBy:y}=ae((()=>{const o=[];let n=-1;const t=e.map((e=>{var o,t,r,i;const c=null!=(o=null==l?void 0:l.includes(e.key))&&o,a=c||e.frozen||!1,u={...e,idx:0,frozen:a,isLastFrozenColumn:!1,rowGroup:c,sortable:null!=(t=e.sortable)?t:f,resizable:null!=(r=e.resizable)?r:p,formatter:null!=(i=e.formatter)?i:_};return c&&(null!=u.groupFormatter||(u.groupFormatter=vo)),a&&n++,u}));t.sort((({key:e,frozen:o},{key:n,frozen:t})=>e===To?-1:n===To?1:null!=l&&l.includes(e)?l.includes(n)?l.indexOf(e)-l.indexOf(n):-1:null!=l&&l.includes(n)?1:o?t?0:-1:t?1:0));const r=[];return t.forEach(((e,n)=>{e.idx=n,e.rowGroup&&o.push(e.key),null!=e.colSpan&&r.push(e)})),-1!==n&&(t[n].isLastFrozenColumn=!0),{columns:t,colSpanColumns:r,lastFrozenColumnIndex:n,groupBy:o}}),[e,_,p,f,l]),{layoutCssVars:m,totalColumnWidth:w,totalFrozenColumnWidth:x,columnMetrics:b}=ae((()=>{const e=new Map;let t=0,r=0,l=0,i="",c=0,a=0;for(const t of h){let r=Do(t,o,n);void 0===r?a++:(r=Fo(r,t,d),c+=r,e.set(t,{width:r,left:0}))}const u=(n-c)/a;for(const o of h){let n;if(e.has(o)){const r=e.get(o);r.left=t,({width:n}=r)}else n=Fo(u,o,d),e.set(o,{width:n,left:t});r+=n,t+=n,i+=`${n}px `}if(-1!==g){const o=e.get(h[g]);l=o.left+o.width}const s={"--template-columns":i};for(let o=0;o<=g;o++){const n=h[o];s[`--frozen-left-${n.key}`]=`${e.get(n).left}px`}return{layoutCssVars:s,totalColumnWidth:r,totalFrozenColumnWidth:l,columnMetrics:e}}),[o,h,n,d,g]),[C,k]=ae((()=>{if(!i)return[0,h.length-1];const e=t+x,o=t+n,r=h.length-1,l=ko(g+1,r);if(e>=o)return[l,l];let c=l;for(;c<r;){const{left:o,width:n}=b.get(h[c]);if(o+n>e)break;c++}let a=c;for(;a<r;){const{left:e,width:n}=b.get(h[a]);if(e+n>=o)break;a++}return[Ro(l,c-1),ko(r,a+1)]}),[b,h,g,t,x,n,i]);return{columns:h,colSpanColumns:v,colOverscanStartIdx:C,colOverscanEndIdx:k,layoutCssVars:m,columnMetrics:b,totalColumnWidth:w,lastFrozenColumnIndex:g,totalFrozenColumnWidth:x,groupBy:y}}({rawColumns:e,columnWidths:V,scrollLeft:U,viewportWidth:ye,defaultColumnOptions:_,rawGroupBy:p?f:void 0,enableVirtualization:S}),{rowOverscanStartIdx:De,rowOverscanEndIdx:Fe,rows:He,rowsCount:Ae,totalRowHeight:Le,isGroupRow:Me,getRowTop:We,getRowHeight:Ge,findRowIdx:Ke}=jo({rawRows:o,groupBy:Oe,rowGrouper:p,rowHeight:l,clientHeight:xe,scrollTop:K,expandedGroupIds:h,enableVirtualization:S}),je=function({columns:e,colSpanColumns:o,rows:n,summaryRows:t,colOverscanStartIdx:r,colOverscanEndIdx:l,lastFrozenColumnIndex:i,rowOverscanStartIdx:c,rowOverscanEndIdx:a,isGroupRow:u}){const s=ae((()=>{if(0===r)return 0;let e=r;const l=(o,n)=>void 0!==n&&o+n>r&&(e=o,!0);for(const r of o){const o=r.idx;if(o>=e)break;if(l(o,go(r,i,{type:"HEADER"})))break;for(let e=c;e<=a;e++){const t=n[e];if(!u(t)&&l(o,go(r,i,{type:"ROW",row:t})))break}if(null!=t)for(const e of t)if(l(o,go(r,i,{type:"SUMMARY",row:e})))break}return e}),[c,a,n,t,r,i,o,u]);return ae((()=>{const o=[];for(let n=0;n<=l;n++){const t=e[n];n<s&&!t.frozen||o.push(t)}return o}),[s,l,e])}({columns:ke,colSpanColumns:Re,colOverscanStartIdx:Ie,colOverscanEndIdx:Se,lastFrozenColumnIndex:Ne,rowOverscanStartIdx:De,rowOverscanEndIdx:Fe,rows:He,summaryRows:n,isGroupRow:Me}),Ue=Oe.length>0&&"function"==typeof p,Be=Ue?-1:0,Ve=!Ue&&null!=k;ie((()=>{q!==le.current&&"EDIT"!==q.mode&&co(q)&&(le.current=q,_o(q),_e.current?_e.current=!1:te.current.focus({preventScroll:!0}))})),function(e,o,n){J=6,ie((function(){return"function"==typeof e?(e(o()),function(){return e(null)}):e?(e.current=o(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}(F,(()=>({element:ge.current,scrollToColumn(e){_o({idx:e})},scrollToRow(e){const{current:o}=ge;o&&o.scrollTo({top:We(e),behavior:"smooth"})},selectCell:uo})));const $e=ue(((e,o)=>{$((n=>{const t=new Map(n);return t.set(e.key,o),t})),null==x||x(e.idx,o)}),[x]),qe=ue((e=>{ne(e),se.current=e}),[]);function Je(e){if(!v)return;const o=new Set(h);o.has(e)?o.delete(e):o.add(e),v(o)}function Xe(e){const{key:n,keyCode:t}=e,l=He[q.rowIdx];if(R&&wo(e)&&co(q)&&!Me(l)&&-1!==q.idx&&"SELECT"===q.mode){const e=86;if(t===67)return void function(){const{idx:e,rowIdx:n}=q;Z({row:o[eo(n)],columnKey:ke[e].key})}();if(t===e)return void function(){const{idx:e,rowIdx:n}=q,t=o[eo(n)];if(!R||!r||null===Y||!ao(q))return;const l=R({sourceRow:Y.row,sourceColumnKey:Y.columnKey,targetRow:t,targetColumnKey:ke[e].key});oo(n,l)}()}if(co(q)&&Me(l)&&-1===q.idx&&("ArrowLeft"===n&&l.isExpanded||"ArrowRight"===n&&!l.isExpanded))return e.preventDefault(),void Je(l.id);switch(e.key){case"Escape":return Z(null),void so();case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":!function(e){if("EDIT"===q.mode){var o,n;if(!(null!=(o=null==(n=ke[q.idx].editorOptions)?void 0:n.onNavigation)?o:xo)(e))return}const{key:t,shiftKey:r}=e;let l=W;if("Tab"===t){if(function({cellNavigationMode:e,columns:o,rowsCount:n,selectedPosition:{rowIdx:t,idx:r},shiftKey:l}){if("NONE"===e||"CHANGE_ROW"===e){const e=r===o.length-1;return l?0===r&&0===t:e&&t===n-1}return!1}({shiftKey:r,cellNavigationMode:W,columns:ke,rowsCount:He.length,selectedPosition:q}))return void no();l="NONE"===W?"CHANGE_ROW":W}e.preventDefault();const i=wo(e),c=function({cellNavigationMode:e,columns:o,colSpanColumns:n,rows:t,currentPosition:r,nextPosition:l,lastFrozenColumnIndex:i,isCellWithinBounds:c,isGroupRow:a}){const u=t.length;let s=l;const d=e=>{const o=t[s.rowIdx];if(!a(o)){const t=s.idx;for(const r of n){const n=r.idx;if(n>t)break;const l=go(r,i,{type:"ROW",row:o});if(l&&t>n&&t<l+n){s.idx=n+(e?l:0);break}}}};if(c(s)&&d(s.idx-r.idx>0),"NONE"!==e){const{idx:n,rowIdx:t}=l,r=o.length,i=-1===n;n===r?("CHANGE_ROW"===e?t===u-1||(s={idx:0,rowIdx:t+1}):s={rowIdx:t,idx:0},d(!0)):i&&("CHANGE_ROW"===e?0===t||(s={rowIdx:t-1,idx:r-1}):s={rowIdx:t,idx:r-1}),d(!1)}return s}({columns:ke,colSpanColumns:Re,rows:He,lastFrozenColumnIndex:Ne,cellNavigationMode:l,currentPosition:q,nextPosition:po(t,i,r),isCellWithinBounds:co,isGroupRow:Me});uo(c)}(e);break;default:!function(e){var o;if(!co(q))return;const n=He[q.rowIdx];if(Me(n))return;const{key:t}=e,r=ke[q.idx];if("EDIT"===q.mode)return void("Enter"===t&&(no(),so()));if(null==(o=r.editorOptions)||null==o.onCellKeyDown||o.onCellKeyDown(e),e.isDefaultPrevented())return;ao(q)&&function(e){return!mo.has(e.key)}(e)&&X((({idx:e,rowIdx:o})=>({idx:e,rowIdx:o,key:t,mode:"EDIT",row:n,originalRow:n})))}(e)}}function Ze(){_e.current=!0}function eo(e){return Ue?o.indexOf(He[e]):e}function oo(e,n){if("function"!=typeof r)return;if(n===o[e])return;const t=[...o];t[e]=n,r(t,{indexes:[e],column:ke[q.idx]})}function no(){var e;if(null==(null==(e=ke[q.idx])?void 0:e.editor)||"SELECT"===q.mode||q.row===q.originalRow)return;oo(eo(q.rowIdx),q.row)}function to(e){function n(e){1!==e.buttons&&t()}function t(){window.removeEventListener("mouseover",n),window.removeEventListener("mouseup",t),ee(!1),function(){const e=se.current;if(void 0===e||!k||!r)return;const{idx:n,rowIdx:t}=q,l=o[t],i=t<e?t+1:e,c=t<e?e+1:t,a=o.slice(i,c),u=ke[n],s=k({columnKey:u.key,sourceRow:l,targetRows:a}),d=[...o],_=[];for(let e=i;e<c;e++){const o=e-i;d[e]!==s[o]&&(d[e]=s[o],_.push(e))}_.length>0&&r(d,{indexes:_,column:u}),qe(void 0)}()}1===e.buttons&&(ee(!0),window.addEventListener("mouseover",n),window.addEventListener("mouseup",t))}function ro(e){if(e.stopPropagation(),!k||!r)return;const{idx:n,rowIdx:t}=q,l=o[t],i=o.slice(t+1),c=ke[n],a=k({columnKey:c.key,sourceRow:l,targetRows:i}),u=[...o],s=[];for(let e=t+1;e<u.length;e++){const o=e-t-1;u[e]!==a[o]&&(u[e]=a[o],s.push(e))}s.length>0&&r(u,{indexes:s,column:c})}function lo(e,o){"SELECT"!==q.mode&&(o?(oo(eo(q.rowIdx),e),so()):X((o=>({...o,row:e}))))}function io(e){e&&no(),so()}function co({idx:e,rowIdx:o}){return o>=0&&o<He.length&&e>=Be&&e<ke.length}function ao(e){return co(e)&&bo({columns:ke,rows:He,selectedPosition:e,isGroupRow:Me})}function uo(e,o){if(co(e)){if(no(),o&&ao(e)){const o=He[e.rowIdx];X({...e,mode:"EDIT",key:null,row:o,originalRow:o})}else X({...e,mode:"SELECT"});null==b||b({...e})}}function so(){"SELECT"!==q.mode&&X((({idx:e,rowIdx:o})=>({idx:e,rowIdx:o,mode:"SELECT"})))}function _o({idx:e,rowIdx:o}){const{current:n}=ge;if(n){if("number"==typeof e&&e>Ne){if(null!=o||(o=q.rowIdx),!co({rowIdx:o,idx:e}))return;const{clientWidth:t}=n,r=ke[e],{left:l,width:i}=ze.get(r);let c=l+i;const a=He[o];if(!Me(a)){const e=go(r,Ne,{type:"ROW",row:a});if(void 0!==e){const{left:o,width:n}=ze.get(ke[r.idx+e-1]);c=o+n}}const u=c>t+U;l<U+Te?n.scrollLeft=l-Te:u&&(n.scrollLeft=c-t)}if("number"==typeof o){const e=We(o),t=Ge(o);e<K?n.scrollTop=e:e+t>K+xe&&(n.scrollTop=e+t-xe)}}}function po(e,o,n){const{idx:t,rowIdx:r}=q,l=He[r],i=co(q)&&-1===t;if("ArrowLeft"===e&&i&&Me(l)&&!l.isExpanded&&0!==l.level){let e=-1;for(let o=q.rowIdx-1;o>=0;o--){const n=He[o];if(Me(n)&&n.id===l.parentId){e=o;break}}if(-1!==e)return{idx:t,rowIdx:e}}switch(e){case"ArrowUp":return{idx:t,rowIdx:r-1};case"ArrowDown":return{idx:t,rowIdx:r+1};case"ArrowLeft":return{idx:t-1,rowIdx:r};case"ArrowRight":return{idx:t+1,rowIdx:r};case"Tab":return-1===q.idx&&-1===q.rowIdx?n?{idx:ke.length-1,rowIdx:He.length-1}:{idx:0,rowIdx:0}:{idx:t+(n?-1:1),rowIdx:r};case"Home":return i?{idx:t,rowIdx:0}:o?{idx:0,rowIdx:0}:{idx:0,rowIdx:r};case"End":return i?{idx:t,rowIdx:He.length-1}:o?{idx:ke.length-1,rowIdx:He.length-1}:{idx:ke.length-1,rowIdx:r};case"PageUp":{const e=We(r)+Ge(r)-xe;return{idx:t,rowIdx:e>0?Ke(e):0}}case"PageDown":{const e=We(r)+xe;return{idx:t,rowIdx:e<Le?Ke(e):He.length-1}}default:return q}}function ho(e){if(void 0===oe)return;const{rowIdx:o}=q;return(o<oe?o<e&&e<=oe:o>e&&e>=oe)?q.idx:void 0}function yo(e){if(q.rowIdx===e)return"EDIT"===q.mode?{mode:"EDIT",idx:q.idx,onKeyDown:Xe,editorProps:{editorPortalTarget:G,row:q.row,onRowChange:lo,onClose:io}}:{mode:"SELECT",idx:q.idx,onFocus:Ze,onKeyDown:Xe,dragHandleProps:Ve&&ao(q)?{onMouseDown:to,onDoubleClick:ro}:void 0}}return(q.idx>=ke.length||q.rowIdx>=He.length)&&(X(pn),qe(void 0)),"EDIT"===q.mode&&He[q.rowIdx]!==q.originalRow&&so(),Qe("div",{role:Ue?"treegrid":"grid","aria-label":T,"aria-labelledby":O,"aria-describedby":D,"aria-multiselectable":!!be||void 0,"aria-colcount":ke.length,"aria-rowcount":1+Ae+we,className:Ye("rdg r104f42s700-canary49",z,Q&&"rdg-viewport-dragging vc4f4zb700-canary49"),style:{...P,"--header-row-height":`${A}px`,"--row-width":`${Pe}px`,"--summary-row-height":`${L}px`,...Ee},ref:ge,onScroll:function(e){const{scrollTop:o,scrollLeft:n}=e.currentTarget;j(o),B(n),null==w||w(e)},children:[Qe(Xo,{rowKeyGetter:t,rows:o,columns:je,onColumnResize:$e,allRowsSelected:Ce,onSelectedRowsChange:u,sortColumns:s,onSortColumnsChange:d,lastFrozenColumnIndex:Ne}),0===He.length&&y?Qe(y,{}):Qe(C,{children:[Qe("div",{ref:te,tabIndex:0,className:"rdg-focus-sink f7ly7s700-canary49",onKeyDown:Xe,onFocus:function(){if(co(q))_o(q);else{const e={idx:0,rowIdx:0,mode:"SELECT"};co(e)&&X(e)}}}),Qe("div",{style:{height:Ro(Le,xe)}}),Qe(Wo,{value:fe,children:function(){const e=[];let o=0;for(let r=De;r<=Fe;r++){const l=He[r],i=We(r)+A;if(Me(l)){({startRowIndex:o}=l);const n=be&&l.childRows.every((e=>null==a?void 0:a.has(t(e))));e.push(Qe(cn,{"aria-level":l.level+1,"aria-setsize":l.setSize,"aria-posinset":l.posInSet+1,"aria-rowindex":1+o+1,"aria-selected":be?n:void 0,id:l.id,groupKey:l.groupKey,viewportColumns:je,childRows:l.childRows,rowIdx:r,top:i,height:Ge(r),level:l.level,isExpanded:l.isExpanded,selectedCellIdx:q.rowIdx===r?q.idx:void 0,isRowSelected:n,onFocus:q.rowIdx===r?Ze:void 0,onKeyDown:q.rowIdx===r?Xe:void 0,selectCell:pe,toggleGroup:he},l.id));continue}let c;o++;let u=!1;var n;if("function"==typeof t)c=t(l),u=null!=(n=null==a?void 0:a.has(c))&&n;else c=Ue?o:r;e.push(Qe(M,{"aria-rowindex":1+(Ue?o:r)+1,"aria-selected":be?u:void 0,rowIdx:r,row:l,viewportColumns:je,isRowSelected:u,onRowClick:m,rowClass:N,top:i,height:Ge(r),copiedCellIdx:null!==Y&&Y.row===l?ke.findIndex((e=>e.key===Y.columnKey)):void 0,draggedOverCellIdx:ho(r),setDraggedOverRowIdx:Q?qe:void 0,lastFrozenColumnIndex:Ne,selectedCellProps:yo(r),onRowChange:ve,selectCell:pe},c))}return e}()}),null==n?void 0:n.map(((e,o)=>Qe(dn,{"aria-rowindex":1+Ae+o+1,rowIdx:o,row:e,bottom:L*(n.length-1-o),viewportColumns:je,lastFrozenColumnIndex:Ne},o)))]})]})}const vn=ke(hn);eo(".t16y9g8l700-canary49{appearance:none;box-sizing:border-box;width:100%;height:100%;padding:0 6px;border:2px solid #ccc;vertical-align:top;color:var(--color);background-color:var(--background-color);font-family:inherit;font-size:var(--font-size)}.t16y9g8l700-canary49:focus{border-color:var(--selection-color);outline:none}.t16y9g8l700-canary49::placeholder{color:#999;opacity:1}");var gn=vn;function yn(e,o,n){var t=o;return i([],e,!0).sort((function(e,o){return e[t]<o[t]?n?1:-1:e[t]>o[t]?n?-1:1:0}))}var mn=function(e){return x("div",{style:{textAlign:"center",gridColumn:"1/-1"}},e.message)},wn=function(e){var n,t=e.table,r=e.sort,l=[ae((function(){return n.columns()}),[n=t,n.dataChecksum()]),ae((function(){return n.data()}),[n,n.dataChecksum()])],c=l[0],a=l[1],u=t.multiSelect(),s=t.columnTypes(),d=t.columnPatterns(),_=t.columnFormats(),f=re([]),p=f[0],h=f[1],v=re(),g=v[0],y=v[1],m=re([]),w=m[0],b=m[1],C=re(new Set),k=C[0],R=C[1];le((function(){h(i(i([],u?[Oo]:[],!0),c.map((function(e){var n,t,r,l;switch(null!==(n=s[e])&&void 0!==n?n:"string"){case"time":r=void 0!==d[e]?o.timeParse(d[e]):void 0,l=void 0!==_[e]?o.timeFormat(_[e]):void 0;break;case"number":t=function(e){return x("div",{style:{textAlign:"right"}},e.row[e.column.key])};default:l=void 0!==_[e]?o.format(_[e]):void 0}return{key:e,name:e,resizable:!0,sortable:!0,minWidth:80,renderCell:t,__hpcc_pattern:r,__hpcc_format:l}})),!0))}),[_,d,s,c,u]);var I=ue((function(e){var o=e.slice(-1)[0],n=void 0!==o,t="DESC"===(null==o?void 0:o.direction);y(o),b(yn(w,n?o.columnKey:"key",!!n&&t))}),[w]),S=ue((function(e){return e.key}),[]),E=ue((function(e){R(e)}),[]),z=ue((function(e,o){t.onRowClickCallback(e,o.key)}),[t]);return le((function(){var e=a.map((function(e,o){var n={key:o};return p.forEach((function(o,t){var r=e[t];o.__hpcc_pattern&&o.__hpcc_format?r=o.__hpcc_format(o.__hpcc_pattern(r)):o.__hpcc_pattern?r=o.__hpcc_pattern(r).toString():o.__hpcc_format&&(r=o.__hpcc_format(r)),n[o.key]=r})),n}));(null==r?void 0:r.attribute)&&(e=yn(e,r.attribute,r.descending)),b(e)}),[p,a,r]),x(gn,{columns:p,headerRowHeight:24,rows:w,rowKeyGetter:S,rowHeight:20,emptyRowsRenderer:function(){return x(mn,{message:t.noDataMessage()})},className:t.darkMode()?"rdg-dark":"rdg-light",sortColumns:g?[g]:[],onSortColumnsChange:I,selectedRows:k,onSelectedRowsChange:u?E:void 0,onRowClick:u?void 0:function(e,o,n){return z(o,n)},"aria-describedby":"","aria-label":"","aria-labelledby":"",style:{height:"100%"}})};!function(e,o){void 0===o&&(o={});var n=o.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".dgrid2_Table .rdg{font-family:monospace,Courier New,Courier}.dgrid2_Table .rdg-checkbox-label .rdg-checkbox{block-size:16px;border-width:2px;box-shadow:inset 0 0 0 3px var(--rdg-background-color);inline-size:16px}");var xn=function(e){function i(){return e.call(this)||this}return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function t(){this.constructor=e}n(e,o),e.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)}(i,e),i.prototype.columnType=function(e,o){var n;return 1===arguments.length?this.columnTypes()[e]:(this.columnTypes(t(t({},this.columnTypes()),((n={})[e]=o,n))),this)},i.prototype.columnPattern=function(e,o){var n;return 1===arguments.length?this.columnPatterns()[e]:(this.columnPatterns(t(t({},this.columnPatterns()),((n={})[e]=o,n))),this)},i.prototype.columnFormat=function(e,o){var n;return 1===arguments.length?this.columnFormats()[e]:(this.columnFormats(t(t({},this.columnFormats()),((n={})[e]=o,n))),this)},i.prototype.onRowClickCallback=function(e,o){var n;this._prevRow&&JSON.stringify(this._prevRow)!==JSON.stringify(e)&&this.click(this._prevRow,null!==(n=this._prevColumn)&&void 0!==n?n:"",!1),e&&this.click(e,o,!0),this._prevRow=e,this._prevColumn=o},i.prototype.enter=function(o,n){e.prototype.enter.call(this,o,n),this._div=n.append("div")},i.prototype.update=function(o,n){e.prototype.update.call(this,o,n),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),function(e,o,n){null==o.__k&&(o.textContent=""),j(e,o),"function"==typeof n&&n(),e&&e.__c}(x(wn,{table:this}),this._div.node())},i.prototype.exit=function(o,n){!function(e){!!e.__k&&j(null,e)}(this._div.node()),this._div.remove(),e.prototype.exit.call(this,o,n)},i.prototype.click=function(e,o,n){},r([o.publish("...empty...","string","No Data Message"),l("design:type",Function)],i.prototype,"noDataMessage",void 0),r([o.publish(!1,"boolean","Dark Mode"),l("design:type",Function)],i.prototype,"darkMode",void 0),r([o.publish(!1,"boolean","Multiple Selection"),l("design:type",Function)],i.prototype,"multiSelect",void 0),r([o.publish({},"object",'Column Types ("boolean" | "number" | "string" | "time"'),l("design:type",Function)],i.prototype,"columnTypes",void 0),r([o.publish({},"object","Column Patterns"),l("design:type",Function)],i.prototype,"columnPatterns",void 0),r([o.publish({},"object","Column Formats"),l("design:type",Function)],i.prototype,"columnFormats",void 0),i}(o.HTMLWidget);xn.prototype._class+=" dgrid2_Table",e.BUILD_VERSION="2.104.35",e.PKG_NAME="@hpcc-js/dgrid2",e.PKG_VERSION="2.3.14",e.Table=xn,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=index.min.js.map