@hpcc-js/dgrid2 2.3.8 → 2.3.10
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.es6.js +1188 -1418
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +1188 -1418
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +7 -7
- package/src/__package__.ts +2 -2
- package/src/reactTable.tsx +3 -3
- package/types/__package__.d.ts +2 -2
- package/types/__package__.d.ts.map +1 -1
- package/types/reactTable.d.ts +1 -1
- package/types/reactTable.d.ts.map +1 -1
- package/types/table.d.ts +1 -1
- package/types/table.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/reactTable.d.ts +1 -1
- package/types-3.4/table.d.ts +1 -1
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))}var c,s,u,a,d,_,f={},p=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function m(e,t){for(var n in t)e[n]=t[n];return e}function w(e){var t=e.parentNode;t&&t.removeChild(e)}function g(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 v(e,l,o,r,null)}function v(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?++u:r};return null==r&&null!=s.vnode&&s.vnode(i),i}function y(e){return e.children}function x(e,t){this.props=e,this.context=t}function C(e,t){if(null==t)return e.__?C(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.__e;return"function"==typeof e.type?C(e):null}function b(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 b(e)}}function R(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!k.__r++||d!==s.debounceRendering)&&((d=s.debounceRendering)||setTimeout)(k)}function k(){for(var e;k.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,o,r,i,l;e.__d&&(i=(r=(t=e).__v).__e,(l=t.__P)&&(n=[],(o=m({},r)).__v=r.__v+1,T(l,r,o,t.__n,void 0!==l.ownerSVGElement,null!=r.__h?[i]:null,n,null==i?C(r):i,r.__h),A(n,r),r.__e!=i&&b(r)))}))}function S(e,t,n,o,r,i,l,c,s,u){var a,d,_,h,m,w,g,x=o&&o.__k||p,b=x.length;for(n.__k=[],a=0;a<t.length;a++)if(null!=(h=n.__k[a]=null==(h=t[a])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?v(null,h,null,null,h):Array.isArray(h)?v(y,{children:h},null,null,null):h.__b>0?v(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(_=x[a])||_&&h.key==_.key&&h.type===_.type)x[a]=void 0;else for(d=0;d<b;d++){if((_=x[d])&&h.key==_.key&&h.type===_.type){x[d]=void 0;break}_=null}T(e,h,_=_||f,r,i,l,c,s,u),m=h.__e,(d=h.ref)&&_.ref!=d&&(g||(g=[]),_.ref&&g.push(_.ref,null,h),g.push(d,h.__c||m,h)),null!=m?(null==w&&(w=m),"function"==typeof h.type&&h.__k===_.__k?h.__d=s=I(h,s,e):s=F(e,h,_,x,m,s),"function"==typeof n.type&&(n.__d=s)):s&&_.__e==s&&s.parentNode!=e&&(s=C(_))}for(n.__e=w,a=b;a--;)null!=x[a]&&M(x[a],x[a]);if(g)for(a=0;a<g.length;a++)H(g[a],g[++a],g[++a])}function I(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?I(o,t,n):F(n,o,o,r,o.__e,t));return t}function E(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){E(e,t)})):t.push(e)),t}function F(e,t,n,o,r,i){var l,c,s;if(void 0!==t.__d)l=t.__d,t.__d=void 0;else if(null==n||r!=i||null==r.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(r),l=null;else{for(c=i,s=0;(c=c.nextSibling)&&s<o.length;s+=2)if(c==r)break e;e.insertBefore(r,i),l=i}return void 0!==l?l:r.nextSibling}function O(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function N(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||O(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||O(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?o||e.addEventListener(t,i?P:D,i):e.removeEventListener(t,i?P:D,i);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function D(e){this.l[e.type+!1](s.event?s.event(e):e)}function P(e){this.l[e.type+!0](s.event?s.event(e):e)}function T(e,t,n,o,r,i,l,c,u){var a,d,_,f,p,h,w,g,v,C,b,R,k,I,E,F=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(u=n.__h,c=t.__e=n.__e,t.__h=null,i=[c]),(a=s.__b)&&a(t);try{e:if("function"==typeof F){if(g=t.props,v=(a=F.contextType)&&o[a.__c],C=a?v?v.props.value:a.__:o,n.__c?w=(d=t.__c=n.__c).__=d.__E:("prototype"in F&&F.prototype.render?t.__c=d=new F(g,C):(t.__c=d=new x(g,C),d.constructor=F,d.render=W),v&&v.sub(d),d.props=g,d.state||(d.state={}),d.context=C,d.__n=o,_=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=F.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=m({},d.__s)),m(d.__s,F.getDerivedStateFromProps(g,d.__s))),f=d.props,p=d.state,_)null==F.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==F.getDerivedStateFromProps&&g!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,C),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,C)||t.__v===n.__v){for(d.props=g,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&l.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,C),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(f,p,h)}))}if(d.context=C,d.props=g,d.__v=t,d.__P=e,R=s.__r,k=0,"prototype"in F&&F.prototype.render){for(d.state=d.__s,d.__d=!1,R&&R(t),a=d.render(d.props,d.state,d.context),I=0;I<d._sb.length;I++)d.__h.push(d._sb[I]);d._sb=[]}else do{d.__d=!1,R&&R(t),a=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(o=m(m({},o),d.getChildContext())),_||null==d.getSnapshotBeforeUpdate||(h=d.getSnapshotBeforeUpdate(f,p)),E=null!=a&&a.type===y&&null==a.key?a.props.children:a,S(e,Array.isArray(E)?E:[E],t,n,o,r,i,l,c,u),d.base=t.__e,t.__h=null,d.__h.length&&l.push(d),w&&(d.__E=d.__=null),d.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=z(n.__e,t,n,o,r,i,l,u);(a=s.diffed)&&a(t)}catch(e){t.__v=null,(u||null!=i)&&(t.__e=c,t.__h=!!u,i[i.indexOf(c)]=null),s.__e(e,t,n)}}function A(e,t){s.__c&&s.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){s.__e(e,t.__v)}}))}function z(e,t,n,o,r,i,l,s){var u,a,d,_=n.props,p=t.props,h=t.type,m=0;if("svg"===h&&(r=!0),null!=i)for(;m<i.length;m++)if((u=i[m])&&"setAttribute"in u==!!h&&(h?u.localName===h:3===u.nodeType)){e=u,i[m]=null;break}if(null==e){if(null===h)return document.createTextNode(p);e=r?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),i=null,s=!1}if(null===h)_===p||s&&e.data===p||(e.data=p);else{if(i=i&&c.call(e.childNodes),a=(_=n.props||f).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!s){if(null!=i)for(_={},m=0;m<e.attributes.length;m++)_[e.attributes[m].name]=e.attributes[m].value;(d||a)&&(d&&(a&&d.__html==a.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,o,r){var i;for(i in n)"children"===i||"key"===i||i in t||N(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]||N(e,i,t[i],n[i],o)}(e,p,_,r,s),d)t.__k=[];else if(m=t.props.children,S(e,Array.isArray(m)?m:[m],t,n,o,r&&"foreignObject"!==h,i,l,i?i[0]:n.__k&&C(n,0),s),null!=i)for(m=i.length;m--;)null!=i[m]&&w(i[m]);s||("value"in p&&void 0!==(m=p.value)&&(m!==e.value||"progress"===h&&!m||"option"===h&&m!==_.value)&&N(e,"value",m,_.value,!1),"checked"in p&&void 0!==(m=p.checked)&&m!==e.checked&&N(e,"checked",m,_.checked,!1))}return e}function H(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){s.__e(e,n)}}function M(e,t,n){var o,r;if(s.unmount&&s.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||H(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){s.__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]&&M(o[r],t,n||"function"!=typeof e.type);n||null==e.__e||w(e.__e),e.__=e.__e=e.__d=void 0}function W(e,t,n){return this.constructor(e,n)}function G(e,t,n){var o,r,i;s.__&&s.__(e,t),r=(o="function"==typeof n)?null:n&&n.__k||t.__k,i=[],T(t,e=(!o&&n||t).__k=g(y,null,[e]),r||f,f,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),A(i,e)}function L(e,t){var n={__c:t="__cC"+_++,__: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(R)},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=p.slice,s={__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}},u=0,x.prototype.setState=function(e,t){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&&(t&&this._sb.push(t),R(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),R(this))},x.prototype.render=y,a=[],k.__r=0,_=0;var K,U,$,j,B=0,V=[],q=[],X=s.__b,Y=s.__r,J=s.diffed,Z=s.__c,Q=s.unmount;function ee(e,t){s.__h&&s.__h(U,e,B||t),B=0;var n=U.__H||(U.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:q}),n.__[e]}function te(e){return B=1,function(e,t,n){var o=ee(K++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):pe(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=U,!U.u)){U.u=!0;var r=U.shouldComponentUpdate;U.shouldComponentUpdate=function(e,t,n){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter((function(e){return e.__c}));if(i.every((function(e){return!e.__N})))return!r||r.call(this,e,t,n);var l=!1;return i.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)&&(!r||r.call(this,e,t,n))}}return o.__N||o.__}(pe,e)}function ne(e,t){var n=ee(K++,3);!s.__s&&fe(n.__H,t)&&(n.__=e,n.i=t,U.__H.__h.push(n))}function oe(e,t){var n=ee(K++,4);!s.__s&&fe(n.__H,t)&&(n.__=e,n.i=t,U.__h.push(n))}function re(e){return B=5,ie((function(){return{current:e}}),[])}function ie(e,t){var n=ee(K++,7);return fe(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function le(e,t){return B=8,ie((function(){return e}),t)}function ce(e){var t=U.context[e.__c],n=ee(K++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(U)),t.props.value):e.__}function se(){for(var e;e=V.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(de),e.__H.__h.forEach(_e),e.__H.__h=[]}catch(t){e.__H.__h=[],s.__e(t,e.__v)}}s.__b=function(e){"function"!=typeof e.type||e.__m||null===e.__?e.__m||(e.__m=e.__&&e.__.__m?e.__.__m:""):e.__m=(e.__&&e.__.__m?e.__.__m:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),U=null,X&&X(e)},s.__r=function(e){Y&&Y(e),K=0;var t=(U=e.__c).__H;t&&($===U?(t.__h=[],U.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=q,e.__N=e.i=void 0}))):(t.__h.forEach(de),t.__h.forEach(_e),t.__h=[])),$=U},s.diffed=function(e){J&&J(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==V.push(t)&&j===s.requestAnimationFrame||((j=s.requestAnimationFrame)||ae)(se)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==q&&(e.__=e.__V),e.i=void 0,e.__V=q}))),$=U=null},s.__c=function(e,t){t.some((function(e){try{e.__h.forEach(de),e.__h=e.__h.filter((function(e){return!e.__||_e(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],s.__e(n,e.__v)}})),Z&&Z(e,t)},s.unmount=function(e){Q&&Q(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{de(e)}catch(e){t=e}})),n.__H=void 0,t&&s.__e(t,n.__v))};var ue="function"==typeof requestAnimationFrame;function ae(e){var t,n=function(){clearTimeout(o),ue&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);ue&&(t=requestAnimationFrame(n))}function de(e){var t=U,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),U=t}function _e(e){var t=U;e.__c=e.__(),U=t}function fe(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function pe(e,t){return"function"==typeof t?t(e):t}function he(e,t){for(var n in t)e[n]=t[n];return e}function me(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 we(e){this.props=e}function ge(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:me(this.props,e)}function o(t){return this.shouldComponentUpdate=n,g(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(we.prototype=new x).isPureReactComponent=!0,we.prototype.shouldComponentUpdate=function(e,t){return me(this.props,e)||me(this.state,t)};var ve=s.__b;s.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ve&&ve(e)};var ye="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function xe(e){function t(t){var n=he({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=ye,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ce=s.__e;s.__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);Ce(e,t,n,o)};var be=s.unmount;function Re(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=he({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Re(e,t,n)}))),e}function ke(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return ke(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 Se(){this.__u=0,this.t=null,this.__b=null}function Ie(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ee(){this.u=null,this.o=null}s.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),be&&be(e)},(Se.prototype=new x).__c=function(e,t){var n=t.__c,o=this;null==o.t&&(o.t=[]),o.t.push(n);var r=Ie(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]=ke(e,e.__c.__P,e.__c.__O)}var t;for(o.setState({__a:o.__b=null});t=o.t.pop();)t.forceUpdate()}},s=!0===t.__h;o.__u++||s||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(l,l)},Se.prototype.componentWillUnmount=function(){this.t=[]},Se.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]=Re(this.__b,n,o.__O=o.__P)}this.__b=null}var r=t.__a&&g(y,null,e.fallback);return r&&(r.__h=null),[g(y,null,t.__a?null:e.children),r]};var Fe=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]}};(Ee.prototype=new x).__a=function(e){var t=this,n=Ie(t.__v),o=t.o.get(e);return o[0]++,function(r){var i=function(){t.props.revealOrder?(o.push(r),Fe(t,e,o)):r()};n?n(i):i()}},Ee.prototype.render=function(e){this.u=null,this.o=new Map;var t=E(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},Ee.prototype.componentDidUpdate=Ee.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Fe(e,n,t)}))};var Oe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ne=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|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]/,De="undefined"!=typeof document,Pe=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};x.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(x.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Te=s.event;function Ae(){}function ze(){return this.cancelBubble}function He(){return this.defaultPrevented}s.event=function(e){return Te&&(e=Te(e)),e.persist=Ae,e.isPropagationStopped=ze,e.isDefaultPrevented=He,e.nativeEvent=e};var Me={configurable:!0,get:function(){return this.class}},We=s.vnode;s.vnode=function(e){var t=e.type,n=e.props,o=n;if("string"==typeof t){var r=-1===t.indexOf("-");for(var i in o={},n){var l=n[i];De&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==l||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===l?l="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Pe(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():r&&Ne.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===l&&(l=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),o[i]&&(i="oninputCapture")),o[i]=l)}"select"==t&&o.multiple&&Array.isArray(o.value)&&(o.value=E(n.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==t&&null!=o.defaultValue&&(o.value=E(n.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),e.props=o,n.class!=n.className&&(Me.enumerable="className"in n,null!=n.className&&(o.class=n.className),Object.defineProperty(o,"className",Me))}e.$$typeof=Oe,We&&We(e)};var Ge=s.__r;s.__r=function(e){Ge&&Ge(e),e.__c};function Le(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=Le(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Ke(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=Le(e))&&(o&&(o+=" "),o+=t);return o}var Ue=0;function $e(e,t,n,o,r){var i,l,c={};for(l in t)"ref"==l?i=t[l]:c[l]=t[l];var u={type:e,props:c,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Ue,__source:r,__self:o};if("function"==typeof e&&(i=e.defaultProps))for(l in i)void 0===c[l]&&(c[l]=i[l]);return s.vnode&&s.vnode(u),u}const je="rdg-row r1otpg647-0-0-beta-19",Be="rdg-row-selected";function Ve({onChange:e,...t},n){return $e("label",{className:Ke("rdg-checkbox-label c8rwwhf7-0-0-beta-19",t.disabled&&"rdg-checkbox-label-disabled c1yg790j7-0-0-beta-19"),children:[$e("input",{type:"checkbox",ref:n,...t,className:"rdg-checkbox-input c1rb4brs7-0-0-beta-19",onChange:function(t){e(t.target.checked,t.nativeEvent.shiftKey)}}),$e("div",{className:"rdg-checkbox c1bvvwcc7-0-0-beta-19"})]})}const qe="undefined"==typeof window?ne:oe;function Xe(e){const t=re(null);return qe((()=>{e&&t.current?.focus({preventScroll:!0})}),[e]),{ref:t,tabIndex:e?0:-1}}const Ye=L(void 0),Je=Ye.Provider;function Ze(){return ce(Ye)}function Qe({value:e,isCellSelected:t,disabled:n,onChange:o,"aria-label":r,"aria-labelledby":i}){const{ref:l,tabIndex:c}=Xe(t);return $e(y,{children:(0,Ze().checkboxFormatter)({"aria-label":r,"aria-labelledby":i,tabIndex:c,disabled:n,checked:e,onChange:o},l)})}function et(e){try{return $e(y,{children:e.row[e.column.key]})}catch{return null}}function tt(e){return $e(nt,{...e})}function nt({groupKey:e,isExpanded:t,isCellSelected:n,toggleGroup:o}){const{ref:r,tabIndex:i}=Xe(n);return $e("span",{ref:r,className:"rdg-group-cell-content gb8l2vs7-0-0-beta-19",tabIndex:i,onKeyDown:function({key:e}){"Enter"===e&&o()},children:[e,$e("svg",{viewBox:"0 0 14 8",width:"14",height:"8",className:"rdg-caret c1ggynjl7-0-0-beta-19","aria-hidden":!0,children:$e("path",{d:t?"M1 1 L 7 7 L 13 1":"M1 7 L 7 1 L 13 7"})})]})}const ot=L(void 0),rt=ot.Provider,it=L(void 0),lt=it.Provider;function ct(){const e=ce(ot),t=ce(it);if(void 0===e||void 0===t)throw new Error("useRowSelection must be used within DataGrid cells");return[e,t]}const st="select-row";function ut(e){const[t,n]=ct();return $e(Qe,{"aria-label":"Select",isCellSelected:e.isCellSelected,value:t,onChange:(t,o)=>{n({row:e.row,checked:t,isShiftClick:o})}})}function at(e){const[t,n]=ct();return $e(Qe,{"aria-label":"Select Group",isCellSelected:e.isCellSelected,value:t,onChange:t=>{n({row:e.row,checked:t,isShiftClick:!1})}})}const dt={key:st,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,headerRenderer:e=>$e(Qe,{"aria-label":"Select All",isCellSelected:e.isCellSelected,value:e.allRowsSelected,onChange:e.onAllRowsSelectionChange}),formatter:e=>$e(ut,{...e}),groupFormatter:e=>$e(at,{...e})};function _t(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 ft(e){e?.scrollIntoView({inline:"nearest",block:"nearest"})}const pt=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 ht(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}function mt({key:e,target:t}){return"Tab"===e&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)&&t.matches(".rdg-editor-container > :only-child, .rdg-editor-container > label:only-child > :only-child")}function wt(e){return $e(y,{children:e.map((({key:e,idx:t,minWidth:n,maxWidth:o})=>$e("div",{className:"m1l09lto7-0-0-beta-19",style:{gridColumnStart:t+1,minWidth:n,maxWidth:o},"data-measuring-cell-key":e},e)))})}function gt({selectedPosition:e,columns:t,rows:n,isGroupRow:o}){const r=t[e.idx],i=n[e.rowIdx];return!o(i)&&vt(r,i)}function vt(e,t){return null!=e.editor&&!e.rowGroup&&!1!==("function"==typeof e.editable?e.editable(t):e.editable)}function yt({rows:e,topSummaryRows:t,bottomSummaryRows:n,rowIdx:o,lastFrozenColumnIndex:r,column:i,isGroupRow:l}){const c=t?.length??0,s=-1-c;if(o===s)return _t(i,r,{type:"HEADER"});if(t&&o>s&&o<=c+s)return _t(i,r,{type:"SUMMARY",row:t[o+c]});if(o>=0&&o<e.length){const t=e[o];return l(t)?void 0:_t(i,r,{type:"ROW",row:t})}return n?_t(i,r,{type:"SUMMARY",row:n[o-e.length]}):void 0}function xt(e,t){return void 0!==t?{"--rdg-grid-row-start":e,"--rdg-row-height":`${t}px`}:{"--rdg-grid-row-start":e}}function Ct(e,t){return{gridColumnStart:e.idx+1,gridColumnEnd:void 0!==t?`span ${t}`:void 0,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function bt(e,...t){return Ke("rdg-cell c1wupbe7-0-0-beta-19",...t,e.frozen&&"rdg-cell-frozen cd0kgiy7-0-0-beta-19",e.isLastFrozenColumn&&"rdg-cell-frozen-last c1730fa47-0-0-beta-19")}const{min:Rt,max:kt,round:St,floor:It,sign:Et,abs:Ft}=Math;function Ot(e){if("function"!=typeof e)throw new Error("Please specify the rowKeyGetter prop to use selection")}function Nt(e,{minWidth:t,maxWidth:n}){return e=kt(e,t),"number"==typeof n&&n>=t?Rt(e,n):e}function Dt(e){const t=re(e);ne((()=>{t.current=e}));const n=le(((...e)=>{t.current(...e)}),[]);return e?n:e}function Pt(e){const[t,n]=te(!1);t&&!e&&n(!1);const o=le((e=>{null!==e&&(ft(e),e.contains(document.activeElement)||e.focus({preventScroll:!0}))}),[]);return{ref:e?o:void 0,tabIndex:e&&!t?0:-1,onFocus:e?function(e){e.target!==e.currentTarget&&n(!0)}:void 0}}function Tt({rawRows:e,rowHeight:t,clientHeight:n,scrollTop:o,groupBy:r,rowGrouper:i,expandedGroupIds:l,enableVirtualization:c}){const[s,u]=ie((()=>{if(0===r.length||null==i)return[void 0,e.length];const t=(e,[n,...o],r)=>{let l=0;const c={};for(const[s,u]of Object.entries(i(e,n))){const[e,n]=0===o.length?[u,u.length]:t(u,o,r+l+1);c[s]={childRows:u,childGroups:e,startRowIndex:r+l},l+=n+1}return[c,l]};return t(e,r,0)}),[r,i,e]),[a,d]=ie((()=>{const t=new Set;if(!s)return[e,r];const n=[],o=(e,r,i)=>{var c;(c=e,Array.isArray(c))?n.push(...e):Object.keys(e).forEach(((c,s,u)=>{const a=void 0!==r?`${r}__${c}`:c,d=l?.has(a)??!1,{childRows:_,childGroups:f,startRowIndex:p}=e[c],h={id:a,parentId:r,groupKey:c,isExpanded:d,childRows:_,level:i,posInSet:s,startRowIndex:p,setSize:u.length};n.push(h),t.add(h),d&&o(f,a,i+1)}))};return o(s,void 0,0),[n,r];function r(e){return t.has(e)}}),[l,s,e]),{totalRowHeight:_,gridTemplateRows:f,getRowTop:p,getRowHeight:h,findRowIdx:m}=ie((()=>{if("number"==typeof t)return{totalRowHeight:t*a.length,gridTemplateRows:` repeat(${a.length}, ${t}px)`,getRowTop:e=>e*t,getRowHeight:()=>t,findRowIdx:e=>It(e/t)};let e=0,n=" ";const o=a.map((o=>{const r=d(o)?t({type:"GROUP",row:o}):t({type:"ROW",row:o}),i={top:e,height:r};return n+=`${r}px `,e+=r,i})),r=e=>kt(0,Rt(a.length-1,e));return{totalRowHeight:e,gridTemplateRows:n,getRowTop:e=>o[r(e)].top,getRowHeight:e=>o[r(e)].height,findRowIdx(e){let t=0,n=o.length-1;for(;t<=n;){const r=t+It((n-t)/2),i=o[r].top;if(i===e)return r;if(i<e?t=r+1:i>e&&(n=r-1),t>n)return n}return 0}}}),[d,t,a]);let w=0,g=a.length-1;if(c){const e=4,t=m(o),r=m(o+n);w=kt(0,t-e),g=Rt(a.length-1,r+e)}return{rowOverscanStartIdx:w,rowOverscanEndIdx:g,rows:a,rowsCount:u,totalRowHeight:_,gridTemplateRows:f,isGroupRow:d,getRowTop:p,getRowHeight:h,findRowIdx:m}}function At({column:e,sortDirection:t,priority:n,onSort:o,isCellSelected:r}){return e.sortable?$e(zt,{onSort:o,sortDirection:t,priority:n,isCellSelected:r,children:e.name}):$e(y,{children:e.name})}function zt({onSort:e,sortDirection:t,priority:n,children:o,isCellSelected:r}){const i=Ze().sortStatus,{ref:l,tabIndex:c}=Xe(r);return $e("span",{ref:l,tabIndex:c,className:"rdg-header-sort-cell h1e8ezgp7-0-0-beta-19",onClick:function(t){e(t.ctrlKey||t.metaKey)},onKeyDown:function(t){" "!==t.key&&"Enter"!==t.key||(t.preventDefault(),e(t.ctrlKey||t.metaKey))},children:[$e("span",{className:"rdg-header-sort-name h1rrblhe7-0-0-beta-19",children:o}),$e("span",{children:i({sortDirection:t,priority:n})})]})}function Ht({column:e,colSpan:t,isCellSelected:n,onColumnResize:o,allRowsSelected:r,onAllRowsSelectionChange:i,sortColumns:l,onSortColumnsChange:c,selectCell:s,shouldFocusGrid:u,direction:a}){const d="rtl"===a,{ref:_,tabIndex:f,onFocus:p}=Pt(n),h=l?.findIndex((t=>t.columnKey===e.key)),m=void 0!==h&&h>-1?l[h]:void 0,w=m?.direction,g=void 0!==m&&l.length>1?h+1:void 0,v=w&&!g?"ASC"===w?"ascending":"descending":void 0,y=bt(e,e.headerCellClass,e.resizable&&"rdg-cell-resizable celq7o97-0-0-beta-19"),x=e.headerRenderer??At;return $e("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-selected":n,"aria-sort":v,"aria-colspan":t,ref:_,tabIndex:u?0:f,className:y,style:Ct(e,t),onFocus:function(e){p?.(e),u&&s(0)},onClick:function(){s(e.idx)},onDoubleClick:e.resizable?function(t){const{right:n,left:r}=t.currentTarget.getBoundingClientRect();(d?t.clientX-r:n-t.clientX)>11||o(e,"max-content")}:void 0,onPointerDown:e.resizable?function(t){if("mouse"===t.pointerType&&1!==t.buttons)return;const{currentTarget:n,pointerId:r}=t,{right:i,left:l}=n.getBoundingClientRect(),c=d?t.clientX-l:i-t.clientX;function s(t){t.preventDefault();const{right:r,left:i}=n.getBoundingClientRect(),l=d?r+c-t.clientX:t.clientX+c-i;l>0&&o(e,l)}c>11||(n.setPointerCapture(r),n.addEventListener("pointermove",s),n.addEventListener("lostpointercapture",(function e(){n.removeEventListener("pointermove",s),n.removeEventListener("lostpointercapture",e)})))}:void 0,children:x({column:e,sortDirection:w,priority:g,onSort:function(t){if(null==c)return;const{sortDescendingFirst:n}=e;if(void 0===m){const o={columnKey:e.key,direction:n?"DESC":"ASC"};c(l&&t?[...l,o]:[o])}else{let o;if((n&&"DESC"===w||!n&&"ASC"===w)&&(o={columnKey:e.key,direction:"ASC"===w?"DESC":"ASC"}),t){const e=[...l];o?e[h]=o:e.splice(h,1),c(e)}else c(o?[o]:[])}},allRowsSelected:r,onAllRowsSelectionChange:i,isCellSelected:n})})}function Mt({columns:e,allRowsSelected:t,onAllRowsSelectionChange:n,onColumnResize:o,sortColumns:r,onSortColumnsChange:i,lastFrozenColumnIndex:l,selectedCellIdx:c,selectCell:s,shouldFocusGrid:u,direction:a}){const d=[];for(let _=0;_<e.length;_++){const f=e[_],p=_t(f,l,{type:"HEADER"});void 0!==p&&(_+=p-1),d.push($e(Ht,{column:f,colSpan:p,isCellSelected:c===f.idx,onColumnResize:o,allRowsSelected:t,onAllRowsSelectionChange:n,onSortColumnsChange:i,sortColumns:r,selectCell:s,shouldFocusGrid:u&&0===_,direction:a},f.key))}return $e("div",{role:"row","aria-rowindex":1,className:Ke("rdg-header-row h197vzie7-0-0-beta-19",-1===c&&Be),style:xt(1),children:d})}const Wt=ge(Mt);function Gt({column:e,colSpan:t,isCellSelected:n,isCopied:o,isDraggedOver:r,row:i,dragHandle:l,onRowClick:c,onRowDoubleClick:s,onRowChange:u,selectCell:a,...d}){const{ref:_,tabIndex:f,onFocus:p}=Pt(n),{cellClass:h}=e,m=bt(e,"function"==typeof h?h(i):h,o&&"rdg-cell-copied ccpfvsn7-0-0-beta-19",r&&"rdg-cell-dragged-over c1bmg16t7-0-0-beta-19");function w(t){a(i,e,t)}return $e("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-selected":n,"aria-colspan":t,"aria-readonly":!vt(e,i)||void 0,ref:_,tabIndex:f,className:m,style:Ct(e,t),onClick:function(){w(e.editorOptions?.editOnClick),c?.(i,e)},onDoubleClick:function(){w(!0),s?.(i,e)},onContextMenu:function(){w()},onFocus:p,...d,children:!e.rowGroup&&$e(y,{children:[e.formatter({column:e,row:i,isCellSelected:n,onRowChange:function(t){u(e,t)}}),l]})})}const Lt=ge(Gt);function Kt({className:e,rowIdx:t,gridRowStart:n,height:o,selectedCellIdx:r,isRowSelected:i,copiedCellIdx:l,draggedOverCellIdx:c,lastFrozenColumnIndex:s,row:u,viewportColumns:a,selectedCellEditor:d,selectedCellDragHandle:_,onRowClick:f,onRowDoubleClick:p,rowClass:h,setDraggedOverRowIdx:m,onMouseEnter:w,onRowChange:g,selectCell:v,...y},x){const C=Dt(((e,n)=>{g(e,t,n)}));e=Ke(je,"rdg-row-"+(t%2==0?"even":"odd"),h?.(u),e,-1===r&&Be);const b=[];for(let e=0;e<a.length;e++){const t=a[e],{idx:n}=t,o=_t(t,s,{type:"ROW",row:u});void 0!==o&&(e+=o-1);const i=r===n;i&&d?b.push(d):b.push($e(Lt,{column:t,colSpan:o,row:u,isCopied:l===n,isDraggedOver:c===n,isCellSelected:i,dragHandle:i?_:void 0,onRowClick:f,onRowDoubleClick:p,onRowChange:C,selectCell:v},t.key))}return $e(rt,{value:i,children:$e("div",{role:"row",ref:x,className:e,onMouseEnter:function(e){m?.(t),w?.(e)},style:xt(n,o),...y,children:b})})}const Ut=ge(xe(Kt));function $t(e,t){return $e(Ut,{...t},e)}function jt({id:e,groupKey:t,childRows:n,isExpanded:o,isCellSelected:r,column:i,row:l,groupColumnIndex:c,toggleGroup:s}){const{ref:u,tabIndex:a,onFocus:d}=Pt(r);function _(){s(e)}const f=i.rowGroup&&c===i.idx;return $e("div",{role:"gridcell","aria-colindex":i.idx+1,"aria-selected":r,ref:u,tabIndex:a,className:bt(i),style:{...Ct(i),cursor:f?"pointer":"default"},onClick:f?_:void 0,onFocus:d,children:(!i.rowGroup||c===i.idx)&&i.groupFormatter?.({groupKey:t,childRows:n,column:i,row:l,isExpanded:o,isCellSelected:r,toggleGroup:_})},i.key)}const Bt=ge(jt);function Vt({id:e,groupKey:t,viewportColumns:n,childRows:o,rowIdx:r,row:i,gridRowStart:l,height:c,level:s,isExpanded:u,selectedCellIdx:a,isRowSelected:d,selectGroup:_,toggleGroup:f,...p}){const h=n[0].key===st?s+1:s;return $e(rt,{value:d,children:$e("div",{role:"row","aria-level":s,"aria-expanded":u,className:Ke(je,"rdg-group-row gyxx7e97-0-0-beta-19","rdg-row-"+(r%2==0?"even":"odd"),-1===a&&Be),onClick:function(){_(r)},style:xt(l,c),...p,children:n.map((n=>$e(Bt,{id:e,groupKey:t,childRows:o,isExpanded:u,isCellSelected:a===n.idx,column:n,row:i,groupColumnIndex:h,toggleGroup:f},n.key)))})})}const qt=ge(Vt);function Xt({column:e,colSpan:t,row:n,isCellSelected:o,selectCell:r}){const{ref:i,tabIndex:l,onFocus:c}=Pt(o),{summaryCellClass:s}=e,u=bt(e,"s1n3hxke7-0-0-beta-19","function"==typeof s?s(n):s);return $e("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":o,ref:i,tabIndex:l,className:u,style:Ct(e,t),onClick:function(){r(n,e)},onFocus:c,children:e.summaryFormatter?.({column:e,row:n,isCellSelected:o})})}const Yt=ge(Xt);function Jt({rowIdx:e,gridRowStart:t,row:n,viewportColumns:o,top:r,bottom:i,lastFrozenColumnIndex:l,selectedCellIdx:c,lastTopRowIdx:s,selectCell:u,"aria-rowindex":a}){const d=[];for(let e=0;e<o.length;e++){const t=o[e],r=_t(t,l,{type:"SUMMARY",row:n});void 0!==r&&(e+=r-1);const i=c===t.idx;d.push($e(Yt,{column:t,colSpan:r,row:n,isCellSelected:i,selectCell:u},t.key))}return $e("div",{role:"row","aria-rowindex":a,className:Ke(je,"rdg-row-"+(e%2==0?"even":"odd"),"rdg-summary-row snfqesz7-0-0-beta-19",void 0!==s?["rdg-top-summary-row t1jijrjz7-0-0-beta-19",s===e&&"t14bmecc7-0-0-beta-19"]:["rdg-bottom-summary-row",0===e&&"b1odhhml7-0-0-beta-19"],-1===c&&Be),style:{...xt(t),"--rdg-summary-row-top":void 0!==r?`${r}px`:void 0,"--rdg-summary-row-bottom":void 0!==i?`${i}px`:void 0},children:d})}const Zt=ge(Jt);function Qt({column:e,colSpan:t,row:n,onRowChange:o,closeEditor:r}){const i=re(),l=!1!==e.editorOptions?.commitOnOutsideClick,c=Dt((()=>{u(!0)}));function s(){cancelAnimationFrame(i.current)}function u(e){e?o(n,!0):r()}ne((()=>{if(l)return addEventListener("mousedown",e,{capture:!0}),()=>{removeEventListener("mousedown",e,{capture:!0}),s()};function e(){i.current=requestAnimationFrame(c)}}),[l,c]);const{cellClass:a}=e,d=bt(e,"rdg-editor-container","function"==typeof a?a(n):a,!e.editorOptions?.renderFormatter&&"c1tngyp17-0-0-beta-19");return $e("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:d,style:Ct(e,t),onKeyDown:function(t){if("Escape"===t.key)t.stopPropagation(),u();else if("Enter"===t.key)t.stopPropagation(),u(!0);else{(e.editorOptions?.onNavigation??mt)(t)||t.stopPropagation()}},onMouseDownCapture:l?s:void 0,children:null!=e.editor&&$e(y,{children:[e.editor({column:e,row:n,onRowChange:o,onClose:u}),e.editorOptions?.renderFormatter&&e.formatter({column:e,row:n,isCellSelected:!0,onRowChange:o})]})})}function en({rows:e,columns:t,selectedPosition:n,latestDraggedOverRowIdx:o,isCellEditable:r,onRowsChange:i,onFill:l,setDragging:c,setDraggedOverRowIdx:s}){function u(o,c){const{idx:s,rowIdx:u}=n,a=t[s],d=e[u],_=[...e],f=[];for(let t=o;t<c;t++)if(r({rowIdx:t,idx:s})){const n=l({columnKey:a.key,sourceRow:d,targetRow:e[t]});n!==e[t]&&(_[t]=n,f.push(t))}f.length>0&&i?.(_,{indexes:f,column:a})}return $e("div",{className:"rdg-cell-drag-handle cadd3bp7-0-0-beta-19",onMouseDown:function(e){function t(e){1!==e.buttons&&r()}function r(){window.removeEventListener("mouseover",t),window.removeEventListener("mouseup",r),c(!1),function(){const e=o.current;if(void 0===e)return;const{rowIdx:t}=n;u(t<e?t+1:e,t<e?e+1:t),s(void 0)}()}1===e.buttons&&(c(!0),window.addEventListener("mouseover",t),window.addEventListener("mouseup",r))},onDoubleClick:function(t){t.stopPropagation(),u(n.rowIdx+1,e.length)}})}function tn({sortDirection:e,priority:t}){return $e(y,{children:[nn({sortDirection:e}),on({priority:t})]})}function nn({sortDirection:e}){return void 0===e?null:$e("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:"rdg-sort-arrow a1mygwml7-0-0-beta-19","aria-hidden":!0,children:$e("path",{d:"ASC"===e?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function on({priority:e}){return e}const rn={idx:-1,rowIdx:-2,mode:"SELECT"};function ln(e,t){const{columns:n,rows:o,topSummaryRows:r,bottomSummaryRows:i,rowKeyGetter:l,onRowsChange:c,rowHeight:s,headerRowHeight:u,summaryRowHeight:a,selectedRows:d,onSelectedRowsChange:_,sortColumns:f,onSortColumnsChange:p,defaultColumnOptions:h,groupBy:m,rowGrouper:w,expandedGroupIds:g,onExpandedGroupIdsChange:v,onRowClick:x,onRowDoubleClick:C,onScroll:b,onColumnResize:R,onFill:k,onCopy:S,onPaste:I,cellNavigationMode:E,enableVirtualization:F,renderers:O,className:N,style:D,rowClass:P,direction:T,"aria-label":A,"aria-labelledby":z,"aria-describedby":H,"data-testid":M}=e,W=Ze(),G=s??35,L=u??("number"==typeof G?G:35),K=a??("number"==typeof G?G:35),U=O?.rowRenderer??W?.rowRenderer??$t,$=O?.sortStatus??W?.sortStatus??tn,j=O?.checkboxFormatter??W?.checkboxFormatter??Ve,V=O?.noRowsFallback??W?.noRowsFallback,q=E??"NONE",X=F??!0,Y=T??"ltr",[J,Z]=te(0),[Q,ee]=te(0),[ne,ce]=te((()=>new Map)),[se,ue]=te(rn),[ae,de]=te(null),[_e,fe]=te(!1),[pe,he]=te(void 0),me=re(se),we=re(pe),ge=re(-1),ve=re(null),[ye,xe,Ce,be]=function(){const e=re(null),[t,n]=te(1),[o,r]=te(1),[i,l]=te(!1);return qe((()=>{const{ResizeObserver:t}=window;if(null==t)return;const{clientWidth:o,clientHeight:i,offsetWidth:c,offsetHeight:s}=e.current,{width:u,height:a}=e.current.getBoundingClientRect(),d=a-s+i;n(u-c+o),r(d),l(!0);const _=new t((e=>{const t=e[0].contentBoxSize[0];n(t.inlineSize),r(t.blockSize)}));return _.observe(e.current),()=>{_.disconnect()}}),[]),[e,t,o,i]}(),Re=r?.length??0,ke=i?.length??0,Se=Re+ke,Ie=Ce-L-Se*K,Ee=null!=d&&null!=_,Fe="rtl"===Y,Oe=Fe?"ArrowRight":"ArrowLeft",Ne=Fe?"ArrowLeft":"ArrowRight",De=ie((()=>({sortStatus:$,checkboxFormatter:j})),[$,j]),Pe=ie((()=>{const{length:e}=o;return 0!==e&&null!=d&&null!=l&&d.size>=e&&o.every((e=>d.has(l(e))))}),[o,d,l]),{columns:Te,colSpanColumns:Ae,colOverscanStartIdx:ze,colOverscanEndIdx:He,templateColumns:Me,layoutCssVars:We,columnMetrics:Ge,lastFrozenColumnIndex:Le,totalFrozenColumnWidth:Ue,groupBy:je}=function({rawColumns:e,columnWidths:t,viewportWidth:n,scrollLeft:o,defaultColumnOptions:r,rawGroupBy:i,enableVirtualization:l}){const c=r?.width??"auto",s=r?.minWidth??80,u=r?.maxWidth??void 0,a=r?.formatter??et,d=r?.sortable??!1,_=r?.resizable??!1,{columns:f,colSpanColumns:p,lastFrozenColumnIndex:h,groupBy:m}=ie((()=>{const t=[];let n=-1;const o=e.map((e=>{const t=i?.includes(e.key)??!1,o=t||e.frozen||!1,r={...e,idx:0,frozen:o,isLastFrozenColumn:!1,rowGroup:t,width:e.width??c,minWidth:e.minWidth??s,maxWidth:e.maxWidth??u,sortable:e.sortable??d,resizable:e.resizable??_,formatter:e.formatter??a};return t&&(r.groupFormatter??(r.groupFormatter=tt)),o&&n++,r}));o.sort((({key:e,frozen:t},{key:n,frozen:o})=>e===st?-1:n===st?1:i?.includes(e)?i.includes(n)?i.indexOf(e)-i.indexOf(n):-1:i?.includes(n)?1:t?o?0:-1:o?1:0));const r=[];return o.forEach(((e,n)=>{e.idx=n,e.rowGroup&&t.push(e.key),null!=e.colSpan&&r.push(e)})),-1!==n&&(o[n].isLastFrozenColumn=!0),{columns:o,colSpanColumns:r,lastFrozenColumnIndex:n,groupBy:t}}),[e,c,s,u,a,_,d,i]),{templateColumns:w,layoutCssVars:g,totalFrozenColumnWidth:v,columnMetrics:y}=ie((()=>{const e=new Map;let n=0,o=0;const r=[];for(const o of f){let i=t.get(o.key)??o.width;i="number"==typeof i?Nt(i,o):o.minWidth,r.push(`${i}px`),e.set(o,{width:i,left:n}),n+=i}if(-1!==h){const t=e.get(f[h]);o=t.left+t.width}const i={gridTemplateColumns:r.join(" ")};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}}),[t,f,h]),[x,C]=ie((()=>{if(!l)return[0,f.length-1];const e=o+v,t=o+n,r=f.length-1,i=Rt(h+1,r);if(e>=t)return[i,i];let c=i;for(;c<r;){const{left:t,width:n}=y.get(f[c]);if(t+n>e)break;c++}let s=c;for(;s<r;){const{left:e,width:n}=y.get(f[s]);if(e+n>=t)break;s++}return[kt(i,c-1),Rt(r,s+1)]}),[y,f,h,o,v,n,l]);return{columns:f,colSpanColumns:p,colOverscanStartIdx:x,colOverscanEndIdx:C,templateColumns:w,layoutCssVars:g,columnMetrics:y,lastFrozenColumnIndex:h,totalFrozenColumnWidth:v,groupBy:m}}({rawColumns:n,columnWidths:ne,scrollLeft:Q,viewportWidth:xe,defaultColumnOptions:h,rawGroupBy:w?m:void 0,enableVirtualization:X}),{rowOverscanStartIdx:Be,rowOverscanEndIdx:Xe,rows:Ye,rowsCount:Qe,totalRowHeight:nt,gridTemplateRows:ot,isGroupRow:rt,getRowTop:it,getRowHeight:ct,findRowIdx:ut}=Tt({rawRows:o,groupBy:je,rowGrouper:w,rowHeight:G,clientHeight:Ie,scrollTop:J,expandedGroupIds:g,enableVirtualization:X}),{viewportColumns:at,flexWidthViewportColumns:dt}=function({columns:e,colSpanColumns:t,rows:n,topSummaryRows:o,bottomSummaryRows:r,colOverscanStartIdx:i,colOverscanEndIdx:l,lastFrozenColumnIndex:c,rowOverscanStartIdx:s,rowOverscanEndIdx:u,columnWidths:a,isGroupRow:d}){const _=ie((()=>{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,_t(i,c,{type:"HEADER"})))break;for(let e=s;e<=u;e++){const o=n[e];if(!d(o)&&l(t,_t(i,c,{type:"ROW",row:o})))break}if(null!=o)for(const e of o)if(l(t,_t(i,c,{type:"SUMMARY",row:e})))break;if(null!=r)for(const e of r)if(l(t,_t(i,c,{type:"SUMMARY",row:e})))break}return e}),[s,u,n,o,r,i,c,t,d]),{viewportColumns:f,flexWidthViewportColumns:p}=ie((()=>{const t=[],n=[];for(let o=0;o<=l;o++){const r=e[o];o<_&&!r.frozen||(t.push(r),"string"==typeof r.width&&n.push(r))}return{viewportColumns:t,flexWidthViewportColumns:n}}),[_,l,e]);return{viewportColumns:f,flexWidthViewportColumns:ie((()=>p.filter((e=>!a.has(e.key)))),[p,a])}}({columns:Te,colSpanColumns:Ae,colOverscanStartIdx:ze,colOverscanEndIdx:He,lastFrozenColumnIndex:Le,rowOverscanStartIdx:Be,rowOverscanEndIdx:Xe,rows:Ye,topSummaryRows:r,bottomSummaryRows:i,columnWidths:ne,isGroupRow:rt}),mt=je.length>0&&"function"==typeof w,vt=mt?-1:0,xt=Te.length-1,Ct=-1-Re,bt=Ye.length+ke-1,St=_n(se),It=fn(se),Pt=Dt((function(e,t){const{style:n}=ye.current,o=[...Me];o[e.idx]="max-content"===t?t:`${t}px`,n.gridTemplateColumns=o.join(" ");const r=ye.current.querySelector(`[data-measuring-cell-key="${e.key}"]`).getBoundingClientRect().width,i=`${r}px`;o[e.idx]!==i&&(o[e.idx]=i,n.gridTemplateColumns=o.join(" "));if(ne.get(e.key)===r)return;const l=new Map(ne);l.set(e.key,r),ce(l),R?.(e.idx,r)})),At=Dt(p),zt=Dt(x),Ht=Dt(C),Mt=Dt(Jt),Gt=Dt((function(e){if(!_)return;Ot(l);const t=new Set(d);for(const n of o){const o=l(n);e?t.add(o):t.delete(o)}_(t)})),Lt=Dt(sn),Kt=Dt(((e,t,n)=>{hn({rowIdx:Ye.indexOf(e),idx:t.idx},n)})),Ut=Dt((e=>{hn({rowIdx:e,idx:-1})})),jt=Dt((e=>{hn({rowIdx:Ct,idx:e})})),Bt=Dt(((e,t)=>{hn({rowIdx:r.indexOf(e)+Ct+1,idx:t.idx})})),Vt=Dt(((e,t)=>{hn({rowIdx:i.indexOf(e)+Ye.length,idx:t.idx})})),Xt=Dt(nn);qe((()=>{St&&!cn(se,me.current)?(me.current=se,-1===se.idx&&(ve.current.focus({preventScroll:!0}),ft(ve.current))):me.current=se})),qe((()=>{be&&0!==dt.length&&ce((e=>{const t=new Map(e),n=ye.current;for(const e of dt){const o=n.querySelector(`[data-measuring-cell-key="${e.key}"]`),{width:r}=o.getBoundingClientRect();t.set(e.key,r)}return t}))}),[be,dt,ye]),function(e,t,n){B=6,oe((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,scrollToColumn:mn,scrollToRow(e){const{current:t}=ye;t&&t.scrollTo({top:it(e),behavior:"smooth"})},selectCell:hn})));const Yt=le((e=>{he(e),we.current=e}),[]);function Jt({row:e,checked:t,isShiftClick:n}){if(!_)return;Ot(l);const o=new Set(d);if(rt(e)){for(const n of e.childRows){const e=l(n);t?o.add(e):o.delete(e)}return void _(o)}const r=l(e);if(t){o.add(r);const t=ge.current,i=Ye.indexOf(e);if(ge.current=i,n&&-1!==t&&t!==i){const e=Et(i-t);for(let n=t+e;n!==i;n+=e){const e=Ye[n];rt(e)||o.add(l(e))}}}else o.delete(r),ge.current=-1;_(o)}function nn(e){if(!v)return;const t=new Set(g);t.has(e)?t.delete(e):t.add(e),v(t)}function on(e){if(!(e.target instanceof Element))return;const t=null!==e.target.closest(".rdg-cell"),n=mt&&e.target===ve.current;if(!t&&!n)return;const{key:s,keyCode:u}=e,{rowIdx:a}=se;if(It&&(null!=I||null!=S)&&ht(e)&&!rt(Ye[a])&&"SELECT"===se.mode){const e=86;if(u===67)return void function(){const{idx:e,rowIdx:t}=se,n=o[ln(t)],r=Te[e].key;de({row:n,columnKey:r}),S?.({sourceRow:n,sourceColumnKey:r})}();if(u===e)return void function(){if(!I||!c||null===ae||!pn(se))return;const{idx:e,rowIdx:t}=se,n=Te[e],r=o[ln(t)],i=I({sourceRow:ae.row,sourceColumnKey:ae.columnKey,targetRow:r,targetColumnKey:n.key});sn(n,t,i)}()}if(dn(a)){const t=Ye[a];if(rt(t)&&-1===se.idx&&(s===Oe&&t.isExpanded||s===Ne&&!t.isExpanded))return e.preventDefault(),void nn(t.id)}switch(e.key){case"Escape":return void de(null);case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":!function(e){const{key:t,shiftKey:n}=e;let o=q;if("Tab"===t){if(function({cellNavigationMode:e,maxColIdx:t,minRowIdx:n,maxRowIdx:o,selectedPosition:{rowIdx:r,idx:i},shiftKey:l}){if("NONE"===e||"CHANGE_ROW"===e){const e=i===t,c=0===i,s=r===o,u=r===n;return l?c&&u:e&&s}return!1}({shiftKey:n,cellNavigationMode:q,maxColIdx:xt,minRowIdx:Ct,maxRowIdx:bt,selectedPosition:se}))return void un();o="NONE"===q?"CHANGE_ROW":q}e.preventDefault();const l=ht(e),c=function(e,t,n){const{idx:o,rowIdx:r}=se,i=Ye[r],l=St&&-1===o;if(e===Oe&&l&&rt(i)&&!i.isExpanded&&0!==i.level){let e=-1;for(let t=se.rowIdx-1;t>=0;t--){const n=Ye[t];if(rt(n)&&n.id===i.parentId){e=t;break}}if(-1!==e)return{idx:o,rowIdx:e}}switch(e){case"ArrowUp":return{idx:o,rowIdx:r-1};case"ArrowDown":return{idx:o,rowIdx:r+1};case Oe:return{idx:o-1,rowIdx:r};case Ne:return{idx:o+1,rowIdx:r};case"Tab":return{idx:o+(n?-1:1),rowIdx:r};case"Home":return l?{idx:o,rowIdx:0}:{idx:0,rowIdx:t?Ct:r};case"End":return l?{idx:o,rowIdx:Ye.length-1}:{idx:xt,rowIdx:t?bt:r};case"PageUp":{if(se.rowIdx===Ct)return se;const e=it(r)+ct(r)-Ie;return{idx:o,rowIdx:e>0?ut(e):0}}case"PageDown":{if(se.rowIdx>=Ye.length)return se;const e=it(r)+Ie;return{idx:o,rowIdx:e<nt?ut(e):Ye.length-1}}default:return se}}(t,l,n);if(cn(se,c))return;hn(function({cellNavigationMode:e,columns:t,colSpanColumns:n,rows:o,topSummaryRows:r,bottomSummaryRows:i,minRowIdx:l,maxRowIdx:c,currentPosition:{idx:s},nextPosition:u,lastFrozenColumnIndex:a,isCellWithinBounds:d,isGroupRow:_}){let{idx:f,rowIdx:p}=u;const h=e=>{if(p>=0&&p<o.length){const e=o[p];if(_(e))return}for(const t of n){const n=t.idx;if(n>f)break;const l=yt({rows:o,topSummaryRows:r,bottomSummaryRows:i,rowIdx:p,lastFrozenColumnIndex:a,column:t,isGroupRow:_});if(l&&f>n&&f<l+n){f=n+(e?l:0);break}}};if(d(u)&&h(f-s>0),"NONE"!==e){const n=t.length,o=-1===f;f===n?"CHANGE_ROW"===e?p===c||(f=0,p+=1):f=0:o&&("CHANGE_ROW"===e?p===l||(p-=1,f=n-1):f=n-1,h(!1))}return{idx:f,rowIdx:p}}({columns:Te,colSpanColumns:Ae,rows:Ye,topSummaryRows:r,bottomSummaryRows:i,minRowIdx:Ct,maxRowIdx:bt,lastFrozenColumnIndex:Le,cellNavigationMode:o,currentPosition:se,nextPosition:c,isCellWithinBounds:_n,isGroupRow:rt}))}(e);break;default:!function(e){if(!It)return;const t=Ye[se.rowIdx];if(rt(t))return;const{key:n,shiftKey:o}=e;if(Ee&&o&&" "===n){Ot(l);const n=l(t);return Jt({row:t,checked:!d.has(n),isShiftClick:!1}),void e.preventDefault()}if(Te[se.idx].editorOptions?.onCellKeyDown?.(e),e.isDefaultPrevented())return;pn(se)&&function(e){return!pt.has(e.key)}(e)&&ue((({idx:e,rowIdx:n})=>({idx:e,rowIdx:n,mode:"EDIT",row:t,originalRow:t})))}(e)}}function ln(e){return mt?o.indexOf(Ye[e]):e}function sn(e,t,n){if("function"!=typeof c)return;const r=ln(t);if(n===o[r])return;const i=[...o];i[r]=n,c(i,{indexes:[r],column:e})}function un(){"EDIT"===se.mode&&sn(Te[se.idx],se.rowIdx,se.row)}function an(e){return e>=vt&&e<=xt}function dn(e){return e>=0&&e<Ye.length}function _n({idx:e,rowIdx:t}){return t>=Ct&&t<=bt&&an(e)}function fn({idx:e,rowIdx:t}){return dn(t)&&an(e)}function pn(e){return fn(e)&>({columns:Te,rows:Ye,selectedPosition:e,isGroupRow:rt})}function hn(e,t){if(_n(e))if(un(),t&&pn(e)){const t=Ye[e.rowIdx];ue({...e,mode:"EDIT",row:t,originalRow:t})}else cn(se,e)?ft(ye.current?.querySelector('[tabindex="0"]')):ue({...e,mode:"SELECT"})}function mn(e){const{current:t}=ye;if(t&&e>Le){const{rowIdx:n}=se;if(!_n({rowIdx:n,idx:e}))return;const{clientWidth:o}=t,l=Te[e],{left:c,width:s}=Ge.get(l);let u=c+s;const a=yt({rows:Ye,topSummaryRows:r,bottomSummaryRows:i,rowIdx:n,lastFrozenColumnIndex:Le,column:l,isGroupRow:rt});if(void 0!==a){const{left:e,width:t}=Ge.get(Te[l.idx+a-1]);u=e+t}const d=u>o+Q,_=Fe?-1:1;c<Q+Ue?t.scrollLeft=(c-Ue)*_:d&&(t.scrollLeft=(u-o)*_)}}function wn(e){if(void 0===pe)return;const{rowIdx:t}=se;return(t<pe?t<e&&e<=pe:t>e&&e>=pe)?se.idx:void 0}function gn(e){if(se.rowIdx===e&&"EDIT"!==se.mode&&!mt&&null!=k)return $e(en,{rows:o,columns:Te,selectedPosition:se,isCellEditable:pn,latestDraggedOverRowIdx:we,onRowsChange:c,onFill:k,setDragging:fe,setDraggedOverRowIdx:Yt})}function vn(e){if(se.rowIdx!==e||"SELECT"===se.mode)return;const{idx:t,row:n}=se,o=Te[t],r=_t(o,Le,{type:"ROW",row:n}),i=()=>{ue((({idx:e,rowIdx:t})=>({idx:e,rowIdx:t,mode:"SELECT"})))};return Ye[se.rowIdx]!==se.originalRow&&i(),$e(Qt,{column:o,colSpan:r,row:n,onRowChange:(e,t)=>{t?(sn(o,se.rowIdx,e),i()):ue((t=>({...t,row:e})))},closeEditor:i},o.key)}function yn(e){const t=Te[se.idx];return void 0===t||se.rowIdx!==e||at.includes(t)?at:se.idx>He?[...at,t]:[...at.slice(0,Le+1),t,...at.slice(Le+1)]}(se.idx>xt||se.rowIdx>bt)&&(ue(rn),Yt(void 0));let xn=`${L}px`;Re>0&&(xn+=` repeat(${Re}, ${K}px)`),Ye.length>0&&(xn+=ot),ke>0&&(xn+=` repeat(${ke}, ${K}px)`);const Cn=-1===se.idx&&-2!==se.rowIdx;return $e("div",{role:mt?"treegrid":"grid","aria-label":A,"aria-labelledby":z,"aria-describedby":H,"aria-multiselectable":!!Ee||void 0,"aria-colcount":Te.length,"aria-rowcount":1+Qe+Se,className:Ke("rdg r104f42s7-0-0-beta-19",N,_e&&"rdg-viewport-dragging v7ly7s7-0-0-beta-19"),style:{...D,scrollPaddingInlineStart:se.idx>Le?`${Ue}px`:void 0,scrollPaddingBlock:se.rowIdx>=0&&se.rowIdx<Ye.length?`${L+Re*K}px ${ke*K}px`:void 0,gridTemplateRows:xn,"--rdg-header-row-height":`${L}px`,"--rdg-summary-row-height":`${K}px`,"--rdg-sign":Fe?-1:1,...function(){if(0===dt.length)return We;const e=[...Me];for(const t of dt)e[t.idx]=t.width;return{...We,gridTemplateColumns:e.join(" ")}}()},dir:Y,ref:ye,onScroll:function(e){const{scrollTop:t,scrollLeft:n}=e.currentTarget;!function(e,t){e(t)}((()=>{Z(t),ee(Ft(n))})),b?.(e)},onKeyDown:on,"data-testid":M,children:[mt&&$e("div",{ref:ve,tabIndex:Cn?0:-1,className:Ke("fc4f4zb7-0-0-beta-19",Cn&&["rel5gk27-0-0-beta-19",-1!==Le&&"r1qymf1z7-0-0-beta-19"]),style:{gridRowStart:se.rowIdx+2},onKeyDown:on}),$e(Je,{value:De,children:[$e(Wt,{columns:yn(-1),onColumnResize:Pt,allRowsSelected:Pe,onAllRowsSelectionChange:Gt,sortColumns:f,onSortColumnsChange:At,lastFrozenColumnIndex:Le,selectedCellIdx:se.rowIdx===Ct?se.idx:void 0,selectCell:jt,shouldFocusGrid:!St,direction:Y}),0===Ye.length&&V?V:$e(y,{children:[r?.map(((e,t)=>{const n=1+t+1,o=t+Ct+1,r=se.rowIdx===o;return $e(Zt,{"aria-rowindex":n,rowIdx:t,gridRowStart:n,row:e,top:L+K*t,bottom:void 0,lastTopRowIdx:Re-1,viewportColumns:yn(o),lastFrozenColumnIndex:Le,selectedCellIdx:r?se.idx:void 0,selectCell:Bt},t)})),$e(lt,{value:Mt,children:function(){const e=[];let t=0;const{idx:n,rowIdx:o}=se,r=It&&o>Xe?Xe+1:Xe;for(let i=It&&o<Be?Be-1:Be;i<=r;i++){const r=i===Be-1||i===Xe+1,c=r?o:i;let s=at;const u=Te[n];void 0!==u&&(s=r?[u]:yn(c));const a=Ye[c],_=1+Re+c+1;if(rt(a)){({startRowIndex:t}=a);const r=Ee&&a.childRows.every((e=>d.has(l(e))));e.push($e(qt,{"aria-level":a.level+1,"aria-setsize":a.setSize,"aria-posinset":a.posInSet+1,"aria-rowindex":1+Re+t+1,"aria-selected":Ee?r:void 0,id:a.id,groupKey:a.groupKey,viewportColumns:s,childRows:a.childRows,rowIdx:c,row:a,gridRowStart:_,height:ct(c),level:a.level,isExpanded:a.isExpanded,selectedCellIdx:o===c?n:void 0,isRowSelected:r,selectGroup:Ut,toggleGroup:Xt},a.id));continue}let f;t++;let p=!1;"function"==typeof l?(f=l(a),p=d?.has(f)??!1):f=mt?t:c,e.push(U(f,{"aria-rowindex":1+Re+(mt?t:c)+1,"aria-selected":Ee?p:void 0,rowIdx:c,row:a,viewportColumns:s,isRowSelected:p,onRowClick:zt,onRowDoubleClick:Ht,rowClass:P,gridRowStart:_,height:ct(c),copiedCellIdx:null!==ae&&ae.row===a?Te.findIndex((e=>e.key===ae.columnKey)):void 0,selectedCellIdx:o===c?n:void 0,draggedOverCellIdx:wn(c),setDraggedOverRowIdx:_e?Yt:void 0,lastFrozenColumnIndex:Le,onRowChange:Lt,selectCell:Kt,selectedCellDragHandle:gn(c),selectedCellEditor:vn(c)}))}return e}()}),i?.map(((e,t)=>{const n=1+Re+Ye.length+t+1,o=Ye.length+t,r=se.rowIdx===o,l=Ie>nt?Ce-K*(i.length-t):void 0,c=void 0===l?K*(i.length-1-t):void 0;return $e(Zt,{"aria-rowindex":1+Re+Qe+t+1,rowIdx:t,gridRowStart:n,row:e,top:l,bottom:c,lastTopRowIdx:void 0,viewportColumns:yn(o),lastFrozenColumnIndex:Le,selectedCellIdx:r?se.idx:void 0,selectCell:Vt},t)}))]}),wt(at)]})]})}function cn(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}const sn=xe(ln);function un(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 an=function(e){return g("div",{style:{textAlign:"center",gridColumn:"1/-1"}},e.message,g("span",null,"--- * --- * ---"))},dn=function(e){var n,o=e.table,r=e.sort,i=[ie((function(){return n.columns()}),[n=o,n.dataChecksum()]),ie((function(){return n.data()}),[n,n.dataChecksum()])],c=i[0],s=i[1],u=o.multiSelect(),a=o.columnTypes(),d=o.columnPatterns(),_=o.columnFormats(),f=te([]),p=f[0],h=f[1],m=te(),w=m[0],v=m[1],y=te([]),x=y[0],C=y[1],b=te(new Set),R=b[0],k=b[1];ne((function(){h(l(l([],u?[dt]:[],!0),c.map((function(e){var n,o,r,i;switch(null!==(n=a[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 g("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,formatter:o,__hpcc_pattern:r,__hpcc_format:i}})),!0))}),[_,d,a,c,u]);var S=le((function(e){var t=e.slice(-1)[0],n=void 0!==t,o="DESC"===(null==t?void 0:t.direction);v(t),C(un(x,n?t.columnKey:"key",!!n&&o))}),[x]),I=le((function(e){return e.key}),[]),E=le((function(e){k(e)}),[]),F=le((function(e,t){o.onRowClickCallback(e,t.key)}),[o]);return ne((function(){var e=s.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=un(e,r.attribute,r.descending)),C(e)}),[p,s,r]),g(sn,{columns:p,headerRowHeight:24,rows:x,rowKeyGetter:I,rowHeight:20,renderers:{noRowsFallback:g(an,{message:o.noDataMessage()})},className:o.darkMode()?"rdg-dark":"rdg-light",sortColumns:w?[w]:[],onSortColumnsChange:S,selectedRows:R,onSelectedRowsChange:u?E:void 0,onRowClick:u?void 0:F,"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 _n=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=""),G(e,t),"function"==typeof n&&n(),e&&e.__c}(g(dn,{table:this}),this._div.node())},l.prototype.exit=function(t,n){!function(e){!!e.__k&&G(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);_n.prototype._class+=" dgrid2_Table",e.BUILD_VERSION="2.104.18",e.PKG_NAME="@hpcc-js/dgrid2",e.PKG_VERSION="2.3.8",e.Table=_n,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self)["@hpcc-js/dgrid2"]={},e["@hpcc-js/common"])}(this,(function(e,n){"use strict";var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},t(e,n)};var o=function(){return o=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o.apply(this,arguments)};function r(e,n,t,o){var r,i=arguments.length,l=i<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,n,t,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(l=(i<3?r(l):i>3?r(n,t,l):r(n,t))||l);return i>3&&l&&Object.defineProperty(n,t,l),l}function i(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)}function l(e,n,t){if(t||2===arguments.length)for(var o,r=0,i=n.length;r<i;r++)!o&&r in n||(o||(o=Array.prototype.slice.call(n,0,r)),o[r]=n[r]);return e.concat(o||Array.prototype.slice.call(n))}var c,u,s,d,a,_,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,n){for(var t in n)e[t]=n[t];return e}function y(e){var n=e.parentNode;n&&n.removeChild(e)}function x(e,n,t){var o,r,i,l={};for(i in n)"key"==i?o=n[i]:"ref"==i?r=n[i]:l[i]=n[i];if(arguments.length>2&&(l.children=arguments.length>3?c.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===l[i]&&(l[i]=e.defaultProps[i]);return b(e,l,o,r,null)}function b(e,n,t,o,r){var i={type:e,props:n,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++s:r};return null==r&&null!=u.vnode&&u.vnode(i),i}function C(e){return e.children}function I(e,n){this.props=e,this.context=n}function k(e,n){if(null==n)return e.__?k(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?k(e):null}function R(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return R(e)}}function S(e){(!e.__d&&(e.__d=!0)&&d.push(e)&&!E.__r++||a!==u.debounceRendering)&&((a=u.debounceRendering)||_)(E)}function E(){var e,n,t,o,r,i,l,c;for(d.sort(f);e=d.shift();)e.__d&&(n=d.length,o=void 0,r=void 0,l=(i=(t=e).__v).__e,(c=t.__P)&&(o=[],(r=g({},i)).__v=i.__v+1,G(c,i,r,t.__n,void 0!==c.ownerSVGElement,null!=i.__h?[l]:null,o,null==l?k(i):l,i.__h),M(o,i),i.__e!=l&&R(i)),d.length>n&&d.sort(f));E.__r=0}function D(e,n,t,o,r,i,l,c,u,s){var d,a,_,f,p,v,g,y=o&&o.__k||m,x=y.length;for(t.__k=[],d=0;d<n.length;d++)if(null!=(f=t.__k[d]=null==(f=n[d])||"boolean"==typeof f||"function"==typeof f?null:"string"==typeof f||"number"==typeof f||"bigint"==typeof f?b(null,f,null,null,f):w(f)?b(C,{children:f},null,null,null):f.__b>0?b(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)){if(f.__=t,f.__b=t.__b+1,null===(_=y[d])||_&&f.key==_.key&&f.type===_.type)y[d]=void 0;else for(a=0;a<x;a++){if((_=y[a])&&f.key==_.key&&f.type===_.type){y[a]=void 0;break}_=null}G(e,f,_=_||h,r,i,l,c,u,s),p=f.__e,(a=f.ref)&&_.ref!=a&&(g||(g=[]),_.ref&&g.push(_.ref,null,f),g.push(a,f.__c||p,f)),null!=p?(null==v&&(v=p),"function"==typeof f.type&&f.__k===_.__k?f.__d=u=P(f,u,e):u=O(e,f,_,y,p,u),"function"==typeof t.type&&(t.__d=u)):u&&_.__e==u&&u.parentNode!=e&&(u=k(_))}for(t.__e=v,d=x;d--;)null!=y[d]&&("function"==typeof t.type&&null!=y[d].__e&&y[d].__e==t.__d&&(t.__d=F(o).nextSibling),K(y[d],y[d]));if(g)for(d=0;d<g.length;d++)L(g[d],g[++d],g[++d])}function P(e,n,t){for(var o,r=e.__k,i=0;r&&i<r.length;i++)(o=r[i])&&(o.__=e,n="function"==typeof o.type?P(o,n,t):O(t,o,o,r,o.__e,n));return n}function T(e,n){return n=n||[],null==e||"boolean"==typeof e||(w(e)?e.some((function(e){T(e,n)})):n.push(e)),n}function O(e,n,t,o,r,i){var l,c,u;if(void 0!==n.__d)l=n.__d,n.__d=void 0;else if(null==t||r!=i||null==r.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(r),l=null;else{for(c=i,u=0;(c=c.nextSibling)&&u<o.length;u+=1)if(c==r)break e;e.insertBefore(r,i),l=i}return void 0!==l?l:r.nextSibling}function F(e){var n,t,o;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(n=e.__k.length-1;n>=0;n--)if((t=e.__k[n])&&(o=F(t)))return o;return null}function z(e,n,t){"-"===n[0]?e.setProperty(n,null==t?"":t):e[n]=null==t?"":"number"!=typeof t||v.test(n)?t:t+"px"}function N(e,n,t,o,r){var i;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof o&&(e.style.cssText=o=""),o)for(n in o)t&&n in t||z(e.style,n,"");if(t)for(n in t)o&&t[n]===o[n]||z(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])i=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+i]=t,t?o||e.addEventListener(n,i?A:H,i):e.removeEventListener(n,i?A:H,i);else if("dangerouslySetInnerHTML"!==n){if(r)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==n&&"height"!==n&&"href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&"rowSpan"!==n&&"colSpan"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null==t||!1===t&&"-"!==n[4]?e.removeAttribute(n):e.setAttribute(n,t))}}function H(e){return this.l[e.type+!1](u.event?u.event(e):e)}function A(e){return this.l[e.type+!0](u.event?u.event(e):e)}function G(e,n,t,o,r,i,l,c,s){var d,a,_,f,p,h,m,v,y,x,b,k,R,S,E,P=n.type;if(void 0!==n.constructor)return null;null!=t.__h&&(s=t.__h,c=n.__e=t.__e,n.__h=null,i=[c]),(d=u.__b)&&d(n);try{e:if("function"==typeof P){if(v=n.props,y=(d=P.contextType)&&o[d.__c],x=d?y?y.props.value:d.__:o,t.__c?m=(a=n.__c=t.__c).__=a.__E:("prototype"in P&&P.prototype.render?n.__c=a=new P(v,x):(n.__c=a=new I(v,x),a.constructor=P,a.render=U),y&&y.sub(a),a.props=v,a.state||(a.state={}),a.context=x,a.__n=o,_=a.__d=!0,a.__h=[],a._sb=[]),null==a.__s&&(a.__s=a.state),null!=P.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=g({},a.__s)),g(a.__s,P.getDerivedStateFromProps(v,a.__s))),f=a.props,p=a.state,a.__v=n,_)null==P.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==P.getDerivedStateFromProps&&v!==f&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(v,x),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(v,a.__s,x)||n.__v===t.__v){for(n.__v!==t.__v&&(a.props=v,a.state=a.__s,a.__d=!1),a.__e=!1,n.__e=t.__e,n.__k=t.__k,n.__k.forEach((function(e){e&&(e.__=n)})),b=0;b<a._sb.length;b++)a.__h.push(a._sb[b]);a._sb=[],a.__h.length&&l.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(v,a.__s,x),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(f,p,h)}))}if(a.context=x,a.props=v,a.__P=e,k=u.__r,R=0,"prototype"in P&&P.prototype.render){for(a.state=a.__s,a.__d=!1,k&&k(n),d=a.render(a.props,a.state,a.context),S=0;S<a._sb.length;S++)a.__h.push(a._sb[S]);a._sb=[]}else do{a.__d=!1,k&&k(n),d=a.render(a.props,a.state,a.context),a.state=a.__s}while(a.__d&&++R<25);a.state=a.__s,null!=a.getChildContext&&(o=g(g({},o),a.getChildContext())),_||null==a.getSnapshotBeforeUpdate||(h=a.getSnapshotBeforeUpdate(f,p)),D(e,w(E=null!=d&&d.type===C&&null==d.key?d.props.children:d)?E:[E],n,t,o,r,i,l,c,s),a.base=n.__e,n.__h=null,a.__h.length&&l.push(a),m&&(a.__E=a.__=null),a.__e=!1}else null==i&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=W(t.__e,n,t,o,r,i,l,s);(d=u.diffed)&&d(n)}catch(e){n.__v=null,(s||null!=i)&&(n.__e=c,n.__h=!!s,i[i.indexOf(c)]=null),u.__e(e,n,t)}}function M(e,n){u.__c&&u.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){u.__e(e,n.__v)}}))}function W(e,n,t,o,r,i,l,u){var s,d,a,_=t.props,f=n.props,p=n.type,m=0;if("svg"===p&&(r=!0),null!=i)for(;m<i.length;m++)if((s=i[m])&&"setAttribute"in s==!!p&&(p?s.localName===p:3===s.nodeType)){e=s,i[m]=null;break}if(null==e){if(null===p)return document.createTextNode(f);e=r?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,f.is&&f),i=null,u=!1}if(null===p)_===f||u&&e.data===f||(e.data=f);else{if(i=i&&c.call(e.childNodes),d=(_=t.props||h).dangerouslySetInnerHTML,a=f.dangerouslySetInnerHTML,!u){if(null!=i)for(_={},m=0;m<e.attributes.length;m++)_[e.attributes[m].name]=e.attributes[m].value;(a||d)&&(a&&(d&&a.__html==d.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(function(e,n,t,o,r){var i;for(i in t)"children"===i||"key"===i||i in n||N(e,i,null,t[i],o);for(i in n)r&&"function"!=typeof n[i]||"children"===i||"key"===i||"value"===i||"checked"===i||t[i]===n[i]||N(e,i,n[i],t[i],o)}(e,f,_,r,u),a)n.__k=[];else if(D(e,w(m=n.props.children)?m:[m],n,t,o,r&&"foreignObject"!==p,i,l,i?i[0]:t.__k&&k(t,0),u),null!=i)for(m=i.length;m--;)null!=i[m]&&y(i[m]);u||("value"in f&&void 0!==(m=f.value)&&(m!==e.value||"progress"===p&&!m||"option"===p&&m!==_.value)&&N(e,"value",m,_.value,!1),"checked"in f&&void 0!==(m=f.checked)&&m!==e.checked&&N(e,"checked",m,_.checked,!1))}return e}function L(e,n,t){try{"function"==typeof e?e(n):e.current=n}catch(e){u.__e(e,t)}}function K(e,n,t){var o,r;if(u.unmount&&u.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||L(o,null,n)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){u.__e(e,n)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(r=0;r<o.length;r++)o[r]&&K(o[r],n,t||"function"!=typeof e.type);t||null==e.__e||y(e.__e),e.__=e.__e=e.__d=void 0}function U(e,n,t){return this.constructor(e,t)}function j(e,n,t){var o,r,i;u.__&&u.__(e,n),r=(o="function"==typeof t)?null:t&&t.__k||n.__k,i=[],G(n,e=(!o&&t||n).__k=x(C,null,[e]),r||h,h,void 0!==n.ownerSVGElement,!o&&t?[t]:r?null:n.firstChild?c.call(n.childNodes):null,i,!o&&t?t:r?r.__e:n.firstChild,o),M(i,e)}function $(e,n){var t={__c:n="__cC"+p++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var t,o;return this.getChildContext||(t=[],(o={})[n]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some((function(e){e.__e=!0,S(e)}))},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t}c=m.slice,u={__e:function(e,n,t,o){for(var r,i,l;n=n.__;)if((r=n.__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(n){e=n}throw e}},s=0,I.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},t),this.props)),e&&g(t,e),null!=e&&this.__v&&(n&&this._sb.push(n),S(this))},I.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),S(this))},I.prototype.render=C,d=[],_="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(e,n){return e.__v.__b-n.__v.__b},E.__r=0,p=0;var B,V,q,X,Y=0,J=[],Z=[],Q=u.__b,ee=u.__r,ne=u.diffed,te=u.__c,oe=u.unmount;function re(e,n){u.__h&&u.__h(V,e,Y||n),Y=0;var t=V.__H||(V.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({__V:Z}),t.__[e]}function ie(e){return Y=1,function(e,n,t){var o=re(B++,2);if(o.t=e,!o.__c&&(o.__=[t?t(n):we(void 0,n),function(e){var n=o.__N?o.__N[0]:o.__[0],t=o.t(n,e);n!==t&&(o.__N=[t,o.__[1]],o.__c.setState({}))}],o.__c=V,!V.u)){var r=function(e,n,t){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,n,t);var l=!1;return r.forEach((function(e){if(e.__N){var n=e.__[0];e.__=e.__N,e.__N=void 0,n!==e.__[0]&&(l=!0)}})),!(!l&&o.__c.props===e)&&(!i||i.call(this,e,n,t))};V.u=!0;var i=V.shouldComponentUpdate,l=V.componentWillUpdate;V.componentWillUpdate=function(e,n,t){if(this.__e){var o=i;i=void 0,r(e,n,t),i=o}l&&l.call(this,e,n,t)},V.shouldComponentUpdate=r}return o.__N||o.__}(we,e)}function le(e,n){var t=re(B++,3);!u.__s&&ve(t.__H,n)&&(t.__=e,t.i=n,V.__H.__h.push(t))}function ce(e,n){var t=re(B++,4);!u.__s&&ve(t.__H,n)&&(t.__=e,t.i=n,V.__h.push(t))}function ue(e){return Y=5,se((function(){return{current:e}}),[])}function se(e,n){var t=re(B++,7);return ve(t.__H,n)?(t.__V=e(),t.i=n,t.__h=e,t.__V):t.__}function de(e,n){return Y=8,se((function(){return e}),n)}function ae(e){var n=V.context[e.__c],t=re(B++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(V)),n.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(n){e.__H.__h=[],u.__e(n,e.__v)}}u.__b=function(e){V=null,Q&&Q(e)},u.__r=function(e){ee&&ee(e),B=0;var n=(V=e.__c).__H;n&&(q===V?(n.__h=[],V.__h=[],n.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Z,e.__N=e.i=void 0}))):(n.__h.forEach(he),n.__h.forEach(me),n.__h=[],B=0)),q=V},u.diffed=function(e){ne&&ne(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==J.push(n)&&X===u.requestAnimationFrame||((X=u.requestAnimationFrame)||pe)(_e)),n.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Z&&(e.__=e.__V),e.i=void 0,e.__V=Z}))),q=V=null},u.__c=function(e,n){n.some((function(e){try{e.__h.forEach(he),e.__h=e.__h.filter((function(e){return!e.__||me(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],u.__e(t,e.__v)}})),te&&te(e,n)},u.unmount=function(e){oe&&oe(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{he(e)}catch(e){n=e}})),t.__H=void 0,n&&u.__e(n,t.__v))};var fe="function"==typeof requestAnimationFrame;function pe(e){var n,t=function(){clearTimeout(o),fe&&cancelAnimationFrame(n),setTimeout(e)},o=setTimeout(t,100);fe&&(n=requestAnimationFrame(t))}function he(e){var n=V,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),V=n}function me(e){var n=V;e.__c=e.__(),V=n}function ve(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function we(e,n){return"function"==typeof n?n(e):n}function ge(e,n){for(var t in n)e[t]=n[t];return e}function ye(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var o in n)if("__source"!==o&&e[o]!==n[o])return!0;return!1}function xe(e){this.props=e}function be(e,n){function t(e){var t=this.props.ref,o=t==e.ref;return!o&&t&&(t.call?t(null):t.current=null),n?!n(this.props,e)||!o:ye(this.props,e)}function o(n){return this.shouldComponentUpdate=t,x(e,n)}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,n){return ye(this.props,e)||ye(this.state,n)};var Ce=u.__b;u.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ce&&Ce(e)};var Ie="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ke(e){function n(n){var t=ge({},n);return delete t.ref,e(t,n.ref||null)}return n.$$typeof=Ie,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n}var Re=u.__e;u.__e=function(e,n,t,o){if(e.then)for(var r,i=n;i=i.__;)if((r=i.__c)&&r.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),r.__c(e,n);Re(e,n,t,o)};var Se=u.unmount;function Ee(e,n,t){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===t&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Ee(e,n,t)}))),e}function De(e,n,t){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return De(e,n,t)})),e.__c&&e.__c.__P===n&&(e.__e&&t.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=t)),e}function Pe(){this.__u=0,this.t=null,this.__b=null}function Te(e){var n=e.__.__c;return n&&n.__a&&n.__a(e)}function Oe(){this.u=null,this.o=null}u.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),Se&&Se(e)},(Pe.prototype=new I).__c=function(e,n){var t=n.__c,o=this;null==o.t&&(o.t=[]),o.t.push(t);var r=Te(o.__v),i=!1,l=function(){i||(i=!0,t.__R=null,r?r(c):c())};t.__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 n;for(o.setState({__a:o.__b=null});n=o.t.pop();)n.forceUpdate()}},u=!0===n.__h;o.__u++||u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(l,l)},Pe.prototype.componentWillUnmount=function(){this.t=[]},Pe.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=Ee(this.__b,t,o.__O=o.__P)}this.__b=null}var r=n.__a&&x(C,null,e.fallback);return r&&(r.__h=null),[x(C,null,n.__a?null:e.children),r]};var Fe=function(e,n,t){if(++t[1]===t[0]&&e.o.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};(Oe.prototype=new I).__a=function(e){var n=this,t=Te(n.__v),o=n.o.get(e);return o[0]++,function(r){var i=function(){n.props.revealOrder?(o.push(r),Fe(n,e,o)):r()};t?t(i):i()}},Oe.prototype.render=function(e){this.u=null,this.o=new Map;var n=T(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.o.set(n[t],this.u=[1,0,this.u]);return e.children},Oe.prototype.componentDidUpdate=Oe.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){Fe(e,t,n)}))};var ze="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ne=/^(?: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,Ge="undefined"!=typeof document,Me=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(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var We=u.event;function Le(){}function Ke(){return this.cancelBubble}function Ue(){return this.defaultPrevented}u.event=function(e){return We&&(e=We(e)),e.persist=Le,e.isPropagationStopped=Ke,e.isDefaultPrevented=Ue,e.nativeEvent=e};var je={enumerable:!1,configurable:!0,get:function(){return this.class}},$e=u.vnode;u.vnode=function(e){"string"==typeof e.type&&function(e){var n=e.props,t=e.type,o={};for(var r in n){var i=n[r];if(!("value"===r&&"defaultValue"in n&&null==i||Ge&&"children"===r&&"noscript"===t||"class"===r||"className"===r)){var l=r.toLowerCase();"defaultValue"===r&&"value"in n&&null==n.value?r="value":"download"===r&&!0===i?i="":"ondoubleclick"===l?r="ondblclick":"onchange"!==l||"input"!==t&&"textarea"!==t||Me(n.type)?"onfocus"===l?r="onfocusin":"onblur"===l?r="onfocusout":He.test(r)?r=l:-1===t.indexOf("-")&&Ne.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"==t&&o.multiple&&Array.isArray(o.value)&&(o.value=T(n.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==t&&null!=o.defaultValue&&(o.value=T(n.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",je)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),e.props=o}(e),e.$$typeof=ze,$e&&$e(e)};var Be=u.__r;u.__r=function(e){Be&&Be(e),e.__c};var Ve=u.diffed;u.diffed=function(e){Ve&&Ve(e);var n=e.props,t=e.__e;null!=t&&"textarea"===e.type&&"value"in n&&n.value!==t.value&&(t.value=null==n.value?"":n.value)};var qe=function(e,n){return e(n)};function Xe(e){var n,t,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(n=0;n<e.length;n++)e[n]&&(t=Xe(e[n]))&&(o&&(o+=" "),o+=t);else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Ye(){for(var e,n,t=0,o="";t<arguments.length;)(e=arguments[t++])&&(n=Xe(e))&&(o&&(o+=" "),o+=n);return o}var Je=0;function Ze(e,n,t,o,r,i){var l,c,s={};for(c in n)"ref"==c?l=n[c]:s[c]=n[c];var d={type:e,props:s,key:t,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===s[c]&&(s[c]=l[c]);return u.vnode&&u.vnode(d),d}function Qe(e,n,t){const o="function"==typeof e.colSpan?e.colSpan(t):1;if(Number.isInteger(o)&&o>1&&(!e.frozen||e.idx+o-1<=n))return o}function en(e){e?.scrollIntoView({inline:"nearest",block:"nearest"})}function nn(e){let n=!1;const t={...e,preventGridDefault(){n=!0},isGridDefaultPrevented:()=>n};return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),t}const tn=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 on(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}const rn="m1l09lto7-0-0-beta-33";function ln(e){return e.map((({key:e,idx:n,minWidth:t,maxWidth:o})=>Ze("div",{className:rn,style:{gridColumnStart:n+1,minWidth:t,maxWidth:o},"data-measuring-cell-key":e},e)))}function cn({selectedPosition:e,columns:n,rows:t,isGroupRow:o}){const r=n[e.idx],i=t[e.rowIdx];return!o(i)&&un(r,i)}function un(e,n){return null!=e.renderEditCell&&!e.rowGroup&&!1!==("function"==typeof e.editable?e.editable(n):e.editable)}function sn({rows:e,topSummaryRows:n,bottomSummaryRows:t,rowIdx:o,lastFrozenColumnIndex:r,column:i,isGroupRow:l}){const c=n?.length??0,u=-1-c;if(o===u)return Qe(i,r,{type:"HEADER"});if(n&&o>u&&o<=c+u)return Qe(i,r,{type:"SUMMARY",row:n[o+c]});if(o>=0&&o<e.length){const n=e[o];return l(n)?void 0:Qe(i,r,{type:"ROW",row:n})}return t?Qe(i,r,{type:"SUMMARY",row:t[o-e.length]}):void 0}const dn="rdg-cell c1wupbe7-0-0-beta-33",an="rdg-cell-frozen cd0kgiy7-0-0-beta-33",_n="rdg-cell-frozen-last c1730fa47-0-0-beta-33";function fn(e,n){return void 0!==n?{"--rdg-grid-row-start":e,"--rdg-row-height":`${n}px`}:{"--rdg-grid-row-start":e}}function pn(e,n){return{gridColumnStart:e.idx+1,gridColumnEnd:void 0!==n?`span ${n}`:void 0,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function hn(e,...n){return Ye(dn,...n,e.frozen&&an,e.isLastFrozenColumn&&_n)}const{min:mn,max:vn,round:wn,floor:gn,sign:yn,abs:xn}=Math;function bn(e){if("function"!=typeof e)throw new Error("Please specify the rowKeyGetter prop to use selection")}function Cn(e,{minWidth:n,maxWidth:t}){return e=vn(e,n),"number"==typeof t&&t>=n?mn(e,t):e}const In="rdg-checkbox-label c1hs68w07-0-0-beta-33",kn="rdg-checkbox-input cojpd0n7-0-0-beta-33",Rn="rdg-checkbox cwsfieb7-0-0-beta-33",Sn="rdg-checkbox-label-disabled c1fgadbl7-0-0-beta-33";function En({onChange:e,...n}){return Ze("label",{className:Ye(In,n.disabled&&Sn),children:[Ze("input",{type:"checkbox",...n,className:kn,onChange:function(n){e(n.target.checked,n.nativeEvent.shiftKey)}}),Ze("div",{className:Rn})]})}const Dn="rdg-group-cell-content g1w3c5217-0-0-beta-33",Pn="rdg-caret cm5tyhw7-0-0-beta-33";function Tn(e){return Ze(On,{...e})}function On({groupKey:e,isExpanded:n,tabIndex:t,toggleGroup:o}){return Ze("span",{className:Dn,tabIndex:t,onKeyDown:function({key:e}){"Enter"===e&&o()},children:[e,Ze("svg",{viewBox:"0 0 14 8",width:"14",height:"8",className:Pn,"aria-hidden":!0,children:Ze("path",{d:n?"M1 1 L 7 7 L 13 1":"M1 7 L 7 1 L 13 7"})})]})}function Fn(e){try{return e.row[e.column.key]}catch{return null}}const zn=$(void 0),Nn=zn.Provider;function Hn(){return ae(zn)}function An({value:e,tabIndex:n,disabled:t,onChange:o,"aria-label":r,"aria-labelledby":i}){return(0,Hn().renderCheckbox)({"aria-label":r,"aria-labelledby":i,tabIndex:n,disabled:t,checked:e,onChange:o})}const Gn=$(void 0),Mn=Gn.Provider,Wn=$(void 0),Ln=Wn.Provider;function Kn(){const e=ae(Gn),n=ae(Wn);if(void 0===e||void 0===n)throw new Error("useRowSelection must be used within DataGrid cells");return[e,n]}const Un="select-row";function jn(e){const[n,t]=Kn();return Ze(An,{"aria-label":"Select All",tabIndex:e.tabIndex,value:n,onChange:e=>{t({type:"HEADER",checked:e})}})}function $n(e){const[n,t]=Kn();return Ze(An,{"aria-label":"Select",tabIndex:e.tabIndex,value:n,onChange:(n,o)=>{t({type:"ROW",row:e.row,checked:n,isShiftClick:o})}})}function Bn(e){const[n,t]=Kn();return Ze(An,{"aria-label":"Select Group",tabIndex:e.tabIndex,value:n,onChange:n=>{t({type:"ROW",row:e.row,checked:n,isShiftClick:!1})}})}const Vn={key:Un,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell:e=>Ze(jn,{...e}),renderCell:e=>Ze($n,{...e}),renderGroupCell:e=>Ze(Bn,{...e})},qn="auto",Xn=50;const Yn="undefined"==typeof window?le:ce;function Jn(e,n){const t=`[data-measuring-cell-key="${CSS.escape(n)}"]`,o=e.current.querySelector(t);return o?.getBoundingClientRect().width}function Zn(e){const n=ue(e);le((()=>{n.current=e}));const t=de(((...e)=>{n.current(...e)}),[]);return e?t:e}function Qn(e){const[n,t]=ie(!1);n&&!e&&t(!1);return{tabIndex:e&&!n?0:-1,childTabIndex:e?0:-1,onFocus:e?function(e){e.target!==e.currentTarget&&t(!0)}:void 0}}function et({rawRows:e,rowHeight:n,clientHeight:t,scrollTop:o,groupBy:r,rowGrouper:i,expandedGroupIds:l,enableVirtualization:c}){const[u,s]=se((()=>{if(0===r.length||null==i)return[void 0,e.length];const n=(e,[t,...o],r)=>{let l=0;const c={};for(const[u,s]of Object.entries(i(e,t))){const[e,t]=0===o.length?[s,s.length]:n(s,o,r+l+1);c[u]={childRows:s,childGroups:e,startRowIndex:r+l},l+=t+1}return[c,l]};return n(e,r,0)}),[r,i,e]),[d,a]=se((()=>{const n=new Set;if(!u)return[e,r];const t=[],o=(e,r,i)=>{var c;(c=e,Array.isArray(c))?t.push(...e):Object.keys(e).forEach(((c,u,s)=>{const d=void 0!==r?`${r}__${c}`:c,a=l?.has(d)??!1,{childRows:_,childGroups:f,startRowIndex:p}=e[c],h={id:d,parentId:r,groupKey:c,isExpanded:a,childRows:_,level:i,posInSet:u,startRowIndex:p,setSize:s.length};t.push(h),n.add(h),a&&o(f,d,i+1)}))};return o(u,void 0,0),[t,r];function r(e){return n.has(e)}}),[l,u,e]),{totalRowHeight:_,gridTemplateRows:f,getRowTop:p,getRowHeight:h,findRowIdx:m}=se((()=>{if("number"==typeof n)return{totalRowHeight:n*d.length,gridTemplateRows:` repeat(${d.length}, ${n}px)`,getRowTop:e=>e*n,getRowHeight:()=>n,findRowIdx:e=>gn(e/n)};let e=0,t=" ";const o=d.map((o=>{const r=a(o)?n({type:"GROUP",row:o}):n({type:"ROW",row:o}),i={top:e,height:r};return t+=`${r}px `,e+=r,i})),r=e=>vn(0,mn(d.length-1,e));return{totalRowHeight:e,gridTemplateRows:t,getRowTop:e=>o[r(e)].top,getRowHeight:e=>o[r(e)].height,findRowIdx(e){let n=0,t=o.length-1;for(;n<=t;){const r=n+gn((t-n)/2),i=o[r].top;if(i===e)return r;if(i<e?n=r+1:i>e&&(t=r-1),n>t)return t}return 0}}}),[a,n,d]);let v=0,w=d.length-1;if(c){const e=4,n=m(o),r=m(o+t);v=vn(0,n-e),w=mn(d.length-1,r+e)}return{rowOverscanStartIdx:v,rowOverscanEndIdx:w,rows:d,rowsCount:s,totalRowHeight:_,gridTemplateRows:f,isGroupRow:a,getRowTop:p,getRowHeight:h,findRowIdx:m}}const nt="rdg-cell-drag-handle cadd3bp7-0-0-beta-33";function tt({rows:e,columns:n,selectedPosition:t,latestDraggedOverRowIdx:o,isCellEditable:r,onRowsChange:i,onFill:l,setDragging:c,setDraggedOverRowIdx:u}){function s(o,c){const{idx:u,rowIdx:s}=t,d=n[u],a=e[s],_=[...e],f=[];for(let n=o;n<c;n++)if(r({rowIdx:n,idx:u})){const t=l({columnKey:d.key,sourceRow:a,targetRow:e[n]});t!==e[n]&&(_[n]=t,f.push(n))}f.length>0&&i?.(_,{indexes:f,column:d})}return Ze("div",{className:nt,onMouseDown:function(e){function n(e){1!==e.buttons&&r()}function r(){window.removeEventListener("mouseover",n),window.removeEventListener("mouseup",r),c(!1),function(){const e=o.current;if(void 0===e)return;const{rowIdx:n}=t;s(n<e?n+1:e,n<e?e+1:n),u(void 0)}()}1===e.buttons&&(c(!0),window.addEventListener("mouseover",n),window.addEventListener("mouseup",r))},onDoubleClick:function(n){n.stopPropagation(),s(t.rowIdx+1,e.length)}})}const ot="c1tngyp17-0-0-beta-33";function rt({column:e,colSpan:n,row:t,rowIdx:o,onRowChange:r,closeEditor:i,onKeyDown:l,navigate:c}){const u=ue(),s=!1!==e.editorOptions?.commitOnOutsideClick,d=Zn((()=>{_(!0,!1)}));function a(){cancelAnimationFrame(u.current)}function _(e=!1,n=!0){e?r(t,!0,n):i(n)}function f(e,n=!1){r(e,n,n)}le((()=>{if(s)return addEventListener("mousedown",e,{capture:!0}),()=>{removeEventListener("mousedown",e,{capture:!0}),a()};function e(){u.current=requestAnimationFrame(d)}}),[s,d]);const{cellClass:p}=e,h=hn(e,"rdg-editor-container","function"==typeof p?p(t):p,!e.editorOptions?.displayCellContent&&ot);return Ze("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":n,"aria-selected":!0,className:h,style:pn(e,n),onKeyDown:function(n){if(l){const r=nn(n);if(l({mode:"EDIT",row:t,column:e,rowIdx:o,navigate(){c(n)},onClose:_},r),r.isGridDefaultPrevented())return}"Escape"===n.key?_():"Enter"===n.key?_(!0):function({key:e,target:n}){return"Tab"===e&&(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement)&&n.matches(".rdg-editor-container > :only-child, .rdg-editor-container > label:only-child > :only-child, .rdg-editor-container > div:only-child > label:only-child > :only-child")}(n)&&c(n)},onMouseDownCapture:a,children:null!=e.renderEditCell&&Ze(C,{children:[e.renderEditCell({column:e,row:t,onRowChange:f,onClose:_}),e.editorOptions?.displayCellContent&&e.renderCell({column:e,row:t,isCellEditable:!0,tabIndex:-1,onRowChange:f})]})})}function it({id:e,groupKey:n,childRows:t,isExpanded:o,isCellSelected:r,column:i,row:l,groupColumnIndex:c,toggleGroup:u}){const{tabIndex:s,childTabIndex:d,onFocus:a}=Qn(r);function _(){u(e)}const f=i.rowGroup&&c===i.idx;return Ze("div",{role:"gridcell","aria-colindex":i.idx+1,"aria-selected":r,tabIndex:s,className:hn(i),style:{...pn(i),cursor:f?"pointer":"default"},onClick:f?_:void 0,onFocus:a,children:(!i.rowGroup||c===i.idx)&&i.renderGroupCell?.({groupKey:n,childRows:t,column:i,row:l,isExpanded:o,tabIndex:d,toggleGroup:_})},i.key)}const lt=be(it),ct="rdg-row r1otpg647-0-0-beta-33",ut="rdg-row-selected";function st({id:e,groupKey:n,viewportColumns:t,childRows:o,rowIdx:r,row:i,gridRowStart:l,height:c,level:u,isExpanded:s,selectedCellIdx:d,isRowSelected:a,selectGroup:_,toggleGroup:f,...p}){const h=t[0].key===Un?u+1:u;return Ze(Mn,{value:a,children:Ze("div",{role:"row","aria-level":u,"aria-expanded":s,className:Ye(ct,"rdg-group-row gyxx7e97-0-0-beta-33","rdg-row-"+(r%2==0?"even":"odd"),-1===d&&ut),onClick:function(){_(r)},style:fn(l,c),...p,children:t.map((t=>Ze(lt,{id:e,groupKey:n,childRows:o,isExpanded:s,isCellSelected:d===t.idx,column:t,row:i,groupColumnIndex:h,toggleGroup:f},t.key)))})})}const dt=be(st),at="rdg-header-sort-cell hizp7y17-0-0-beta-33",_t="rdg-header-sort-name h14cojrm7-0-0-beta-33";function ft({column:e,sortDirection:n,priority:t,onSort:o,tabIndex:r}){return e.sortable?Ze(pt,{onSort:o,sortDirection:n,priority:t,tabIndex:r,children:e.name}):e.name}function pt({onSort:e,sortDirection:n,priority:t,children:o,tabIndex:r}){const i=Hn().renderSortStatus;return Ze("span",{tabIndex:r,className:at,onClick:function(n){e(n.ctrlKey||n.metaKey)},onKeyDown:function(n){" "!==n.key&&"Enter"!==n.key||(n.preventDefault(),e(n.ctrlKey||n.metaKey))},children:[Ze("span",{className:_t,children:o}),Ze("span",{children:i({sortDirection:n,priority:t})})]})}const ht="rdg-cell-resizable celq7o97-0-0-beta-33";function mt({column:e,colSpan:n,isCellSelected:t,onColumnResize:o,sortColumns:r,onSortColumnsChange:i,selectCell:l,shouldFocusGrid:c,direction:u}){const s="rtl"===u,{tabIndex:d,childTabIndex:a,onFocus:_}=Qn(t),f=r?.findIndex((n=>n.columnKey===e.key)),p=void 0!==f&&f>-1?r[f]:void 0,h=p?.direction,m=void 0!==p&&r.length>1?f+1:void 0,v=h&&!m?"ASC"===h?"ascending":"descending":void 0,w=hn(e,e.headerCellClass,e.resizable&&ht),g=e.renderHeaderCell??ft;return Ze("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-selected":t,"aria-sort":v,"aria-colspan":n,tabIndex:c?0:d,className:w,style:pn(e,n),onFocus:function(e){_?.(e),c&&l(0)},onClick:function(){l(e.idx)},onDoubleClick:e.resizable?function(n){const{right:t,left:r}=n.currentTarget.getBoundingClientRect();(s?n.clientX-r:t-n.clientX)>11||o(e,"max-content")}:void 0,onPointerDown:e.resizable?function(n){if("mouse"===n.pointerType&&1!==n.buttons)return;const{currentTarget:t,pointerId:r}=n,{right:i,left:l}=t.getBoundingClientRect(),c=s?n.clientX-l:i-n.clientX;function u(n){n.preventDefault();const{right:r,left:i}=t.getBoundingClientRect(),l=s?r+c-n.clientX:n.clientX+c-i;l>0&&o(e,Cn(l,e))}c>11||(t.setPointerCapture(r),t.addEventListener("pointermove",u),t.addEventListener("lostpointercapture",(function e(){t.removeEventListener("pointermove",u),t.removeEventListener("lostpointercapture",e)})))}:void 0,children:g({column:e,sortDirection:h,priority:m,onSort:function(n){if(null==i)return;const{sortDescendingFirst:t}=e;if(void 0===p){const o={columnKey:e.key,direction:t?"DESC":"ASC"};i(r&&n?[...r,o]:[o])}else{let o;if((!0===t&&"DESC"===h||!0!==t&&"ASC"===h)&&(o={columnKey:e.key,direction:"ASC"===h?"DESC":"ASC"}),n){const e=[...r];o?e[f]=o:e.splice(f,1),i(e)}else i(o?[o]:[])}},tabIndex:a})})}function vt({columns:e,onColumnResize:n,sortColumns:t,onSortColumnsChange:o,lastFrozenColumnIndex:r,selectedCellIdx:i,selectCell:l,shouldFocusGrid:c,direction:u}){const s=[];for(let d=0;d<e.length;d++){const a=e[d],_=Qe(a,r,{type:"HEADER"});void 0!==_&&(d+=_-1),s.push(Ze(mt,{column:a,colSpan:_,isCellSelected:i===a.idx,onColumnResize:n,onSortColumnsChange:o,sortColumns:t,selectCell:l,shouldFocusGrid:c&&0===d,direction:u},a.key))}return Ze("div",{role:"row","aria-rowindex":1,className:Ye("rdg-header-row h197vzie7-0-0-beta-33",-1===i&&ut),style:fn(1),children:s})}const wt=be(vt);function gt({column:e,colSpan:n,isCellSelected:t,isCopied:o,isDraggedOver:r,row:i,rowIdx:l,dragHandle:c,onClick:u,onDoubleClick:s,onContextMenu:d,onRowChange:a,selectCell:_,...f}){const{tabIndex:p,childTabIndex:h,onFocus:m}=Qn(t),{cellClass:v}=e,w=hn(e,"function"==typeof v?v(i):v,o&&"rdg-cell-copied ccpfvsn7-0-0-beta-33",r&&"rdg-cell-dragged-over c1bmg16t7-0-0-beta-33"),g=un(e,i);function y(n){_({rowIdx:l,idx:e.idx},n)}return Ze("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-selected":t,"aria-colspan":n,"aria-readonly":!g||void 0,tabIndex:p,className:w,style:pn(e,n),onClick:function(n){if(u){const t=nn(n);if(u({row:i,column:e,selectCell:y},t),t.isGridDefaultPrevented())return}y()},onDoubleClick:function(n){if(s){const t=nn(n);if(s({row:i,column:e,selectCell:y},t),t.isGridDefaultPrevented())return}y(!0)},onContextMenu:function(n){if(d){const t=nn(n);if(d({row:i,column:e,selectCell:y},t),t.isGridDefaultPrevented())return}y()},onFocus:m,...f,children:!e.rowGroup&&Ze(C,{children:[e.renderCell({column:e,row:i,isCellEditable:g,tabIndex:h,onRowChange:function(n){a(e,n)}}),c]})})}const yt=be(gt);function xt({className:e,rowIdx:n,gridRowStart:t,height:o,selectedCellIdx:r,isRowSelected:i,copiedCellIdx:l,draggedOverCellIdx:c,lastFrozenColumnIndex:u,row:s,viewportColumns:d,selectedCellEditor:a,selectedCellDragHandle:_,onCellClick:f,onCellDoubleClick:p,onCellContextMenu:h,rowClass:m,setDraggedOverRowIdx:v,onMouseEnter:w,onRowChange:g,selectCell:y,...x},b){const C=Zn(((e,t)=>{g(e,n,t)}));e=Ye(ct,"rdg-row-"+(n%2==0?"even":"odd"),m?.(s,n),e,-1===r&&ut);const I=[];for(let e=0;e<d.length;e++){const t=d[e],{idx:o}=t,i=Qe(t,u,{type:"ROW",row:s});void 0!==i&&(e+=i-1);const m=r===o;m&&a?I.push(a):I.push(Ze(yt,{column:t,colSpan:i,row:s,rowIdx:n,isCopied:l===o,isDraggedOver:c===o,isCellSelected:m,dragHandle:m?_:void 0,onClick:f,onDoubleClick:p,onContextMenu:h,onRowChange:C,selectCell:y},t.key))}return Ze(Mn,{value:i,children:Ze("div",{role:"row",ref:b,className:e,onMouseEnter:function(e){v?.(n),w?.(e)},style:fn(t,o),...x,children:I})})}const bt=be(ke(xt));function Ct(e,n){return Ze(bt,{...n},e)}function It({scrollToPosition:{idx:e,rowIdx:n},gridElement:t,setScrollToCellPosition:o}){const r=ue(null);return Yn((()=>{en(r.current)})),Yn((()=>{const e=new IntersectionObserver((function(){o(null)}),{root:t,threshold:1});return e.observe(r.current),()=>{e.disconnect()}}),[t,o]),Ze("div",{ref:r,style:{gridColumn:void 0===e?"1/-1":e+1,gridRow:void 0===n?"1/-1":n+2}})}const kt="rdg-sort-arrow a1mygwml7-0-0-beta-33";function Rt({sortDirection:e,priority:n}){return Ze(C,{children:[St({sortDirection:e}),Et({priority:n})]})}function St({sortDirection:e}){return void 0===e?null:Ze("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:kt,"aria-hidden":!0,children:Ze("path",{d:"ASC"===e?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function Et({priority:e}){return e}function Dt({column:e,colSpan:n,row:t,rowIdx:o,isCellSelected:r,selectCell:i}){const{tabIndex:l,childTabIndex:c,onFocus:u}=Qn(r),{summaryCellClass:s}=e,d=hn(e,"s1n3hxke7-0-0-beta-33","function"==typeof s?s(t):s);return Ze("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":n,"aria-selected":r,tabIndex:l,className:d,style:pn(e,n),onClick:function(){i({rowIdx:o,idx:e.idx})},onFocus:u,children:e.renderSummaryCell?.({column:e,row:t,tabIndex:c})})}const Pt=be(Dt);function Tt({rowIdx:e,gridRowStart:n,row:t,viewportColumns:o,top:r,bottom:i,lastFrozenColumnIndex:l,selectedCellIdx:c,isTop:u,showBorder:s,selectCell:d,"aria-rowindex":a}){const _=[];for(let n=0;n<o.length;n++){const r=o[n],i=Qe(r,l,{type:"SUMMARY",row:t});void 0!==i&&(n+=i-1);const u=c===r.idx;_.push(Ze(Pt,{column:r,colSpan:i,row:t,rowIdx:e,isCellSelected:u,selectCell:d},r.key))}return Ze("div",{role:"row","aria-rowindex":a,className:Ye(ct,"rdg-row-"+(e%2==0?"even":"odd"),"rdg-summary-row snfqesz7-0-0-beta-33",u?["rdg-top-summary-row t1jijrjz7-0-0-beta-33",s&&"t14bmecc7-0-0-beta-33"]:["rdg-bottom-summary-row",s&&"b1odhhml7-0-0-beta-33"],-1===c&&ut),style:{...fn(n),"--rdg-summary-row-top":void 0!==r?`${r}px`:void 0,"--rdg-summary-row-bottom":void 0!==i?`${i}px`:void 0},children:_})}const Ot=be(Tt);function Ft(e,n){const{columns:t,rows:o,topSummaryRows:r,bottomSummaryRows:i,rowKeyGetter:l,onRowsChange:c,rowHeight:u,headerRowHeight:s,summaryRowHeight:d,selectedRows:a,onSelectedRowsChange:_,sortColumns:f,onSortColumnsChange:p,defaultColumnOptions:h,groupBy:m,rowGrouper:v,expandedGroupIds:w,onExpandedGroupIdsChange:g,onCellClick:y,onCellDoubleClick:x,onCellContextMenu:b,onCellKeyDown:I,onScroll:k,onColumnResize:R,onFill:S,onCopy:E,onPaste:D,enableVirtualization:P,renderers:T,className:O,style:F,rowClass:z,direction:N,"aria-label":H,"aria-labelledby":A,"aria-describedby":G,"data-testid":M}=e,W=Hn(),L=u??35,K=s??("number"==typeof L?L:35),U=d??("number"==typeof L?L:35),j=T?.renderRow??W?.renderRow??Ct,$=T?.renderSortStatus??W?.renderSortStatus??Rt,B=T?.renderCheckbox??W?.renderCheckbox??En,V=T?.noRowsFallback??W?.noRowsFallback,q=P??!0,X=N??"ltr",J=r?.length??0,Z=i?.length??0,Q=J+Z,ee=1+J,ne=-ee,[te,oe]=ie(0),[re,le]=ie(0),[ae,_e]=ie((()=>new Map)),[fe,pe]=ie((()=>new Map)),[he,me]=ie((()=>({idx:-1,rowIdx:ne-1,mode:"SELECT"}))),[ve,we]=ie(null),[ge,ye]=ie(!1),[xe,be]=ie(void 0),[Ce,Ie]=ie(null),ke=ue(he),Re=ue(xe),Se=ue(-1),Ee=ue(null),De=ue(!1),[Pe,Te,Oe]=function(){const e=ue(null),[n,t]=ie(1),[o,r]=ie(1);return Yn((()=>{const{ResizeObserver:n}=window;if(null==n)return;const{clientWidth:o,clientHeight:i,offsetWidth:l,offsetHeight:c}=e.current,{width:u,height:s}=e.current.getBoundingClientRect(),d=s-c+i;t(u-l+o),r(d);const a=new n((e=>{const n=e[0].contentBoxSize[0];qe((()=>{t(n.inlineSize),r(n.blockSize)}))}));return a.observe(e.current),()=>{a.disconnect()}}),[]),[e,n,o]}(),Fe=Oe-K-Q*U,ze=null!=a&&null!=_,Ne="rtl"===X,He=Ne?"ArrowRight":"ArrowLeft",Ae=Ne?"ArrowLeft":"ArrowRight",Ge=se((()=>({renderCheckbox:B,renderSortStatus:$})),[B,$]),Me=se((()=>{const{length:e}=o;return 0!==e&&null!=a&&null!=l&&a.size>=e&&o.every((e=>a.has(l(e))))}),[o,a,l]),{columns:We,colSpanColumns:Le,colOverscanStartIdx:Ke,colOverscanEndIdx:Ue,templateColumns:je,layoutCssVars:$e,lastFrozenColumnIndex:Be,totalFrozenColumnWidth:Ve,groupBy:Xe}=function({rawColumns:e,measuredColumnWidths:n,resizedColumnWidths:t,viewportWidth:o,scrollLeft:r,defaultColumnOptions:i,rawGroupBy:l,enableVirtualization:c}){const u=i?.width??qn,s=i?.minWidth??Xn,d=i?.maxWidth??void 0,a=i?.renderCell??Fn,_=i?.sortable??!1,f=i?.resizable??!1,{columns:p,colSpanColumns:h,lastFrozenColumnIndex:m,groupBy:v}=se((()=>{const n=[];let t=-1;const o=e.map((e=>{const n=l?.includes(e.key)??!1,o=n||e.frozen||!1,r={...e,idx:0,frozen:o,isLastFrozenColumn:!1,rowGroup:n,width:e.width??u,minWidth:e.minWidth??s,maxWidth:e.maxWidth??d,sortable:e.sortable??_,resizable:e.resizable??f,renderCell:e.renderCell??a};return n&&(r.renderGroupCell??=Tn),o&&t++,r}));o.sort((({key:e,frozen:n},{key:t,frozen:o})=>e===Un?-1:t===Un?1:l?.includes(e)?l.includes(t)?l.indexOf(e)-l.indexOf(t):-1:l?.includes(t)?1:n?o?0:-1:o?1:0));const r=[];return o.forEach(((e,t)=>{e.idx=t,e.rowGroup&&n.push(e.key),null!=e.colSpan&&r.push(e)})),-1!==t&&(o[t].isLastFrozenColumn=!0),{columns:o,colSpanColumns:r,lastFrozenColumnIndex:t,groupBy:n}}),[e,u,s,d,a,f,_,l]),{templateColumns:w,layoutCssVars:g,totalFrozenColumnWidth:y,columnMetrics:x}=se((()=>{const e=new Map;let o=0,r=0;const i=[];for(const r of p){let l=t.get(r.key)??n.get(r.key)??r.width;l="number"==typeof l?Cn(l,r):r.minWidth,i.push(`${l}px`),e.set(r,{width:l,left:o}),o+=l}if(-1!==m){const n=e.get(p[m]);r=n.left+n.width}const l={};for(let n=0;n<=m;n++){const t=p[n];l[`--rdg-frozen-left-${t.idx}`]=`${e.get(t).left}px`}return{templateColumns:i,layoutCssVars:l,totalFrozenColumnWidth:r,columnMetrics:e}}),[n,t,p,m]),[b,C]=se((()=>{if(!c)return[0,p.length-1];const e=r+y,n=r+o,t=p.length-1,i=mn(m+1,t);if(e>=n)return[i,i];let l=i;for(;l<t;){const{left:n,width:t}=x.get(p[l]);if(n+t>e)break;l++}let u=l;for(;u<t;){const{left:e,width:t}=x.get(p[u]);if(e+t>=n)break;u++}return[vn(i,l-1),mn(t,u+1)]}),[x,p,m,r,y,o,c]);return{columns:p,colSpanColumns:h,colOverscanStartIdx:b,colOverscanEndIdx:C,templateColumns:w,layoutCssVars:g,lastFrozenColumnIndex:m,totalFrozenColumnWidth:y,groupBy:v}}({rawColumns:t,measuredColumnWidths:fe,resizedColumnWidths:ae,scrollLeft:re,viewportWidth:Te,defaultColumnOptions:h,rawGroupBy:v?m:void 0,enableVirtualization:q}),{rowOverscanStartIdx:Je,rowOverscanEndIdx:rn,rows:un,rowsCount:dn,totalRowHeight:an,gridTemplateRows:_n,isGroupRow:fn,getRowTop:pn,getRowHeight:hn,findRowIdx:wn}=et({rawRows:o,groupBy:Xe,rowGrouper:v,rowHeight:L,clientHeight:Fe,scrollTop:te,expandedGroupIds:w,enableVirtualization:q}),gn=function({columns:e,colSpanColumns:n,rows:t,topSummaryRows:o,bottomSummaryRows:r,colOverscanStartIdx:i,colOverscanEndIdx:l,lastFrozenColumnIndex:c,rowOverscanStartIdx:u,rowOverscanEndIdx:s,isGroupRow:d}){const a=se((()=>{if(0===i)return 0;let e=i;const l=(n,t)=>void 0!==t&&n+t>i&&(e=n,!0);for(const i of n){const n=i.idx;if(n>=e)break;if(l(n,Qe(i,c,{type:"HEADER"})))break;for(let e=u;e<=s;e++){const o=t[e];if(!d(o)&&l(n,Qe(i,c,{type:"ROW",row:o})))break}if(null!=o)for(const e of o)if(l(n,Qe(i,c,{type:"SUMMARY",row:e})))break;if(null!=r)for(const e of r)if(l(n,Qe(i,c,{type:"SUMMARY",row:e})))break}return e}),[u,s,t,o,r,i,c,n,d]);return se((()=>{const n=[];for(let t=0;t<=l;t++){const o=e[t];t<a&&!o.frozen||n.push(o)}return n}),[a,l,e])}({columns:We,colSpanColumns:Le,colOverscanStartIdx:Ke,colOverscanEndIdx:Ue,lastFrozenColumnIndex:Be,rowOverscanStartIdx:Je,rowOverscanEndIdx:rn,rows:un,topSummaryRows:r,bottomSummaryRows:i,isGroupRow:fn}),{gridTemplateColumns:In,handleColumnResize:kn}=function(e,n,t,o,r,i,l,c,u,s){const d=ue(r),a=e.length===n.length,_=a&&r!==d.current,f=[...t],p=[];for(const{key:e,idx:t,width:o}of n)"string"!=typeof o||!_&&l.has(e)||i.has(e)||(f[t]=o,p.push(e));const h=f.join(" ");function m(e){0!==e.length&&u((n=>{const t=new Map(n);let r=!1;for(const i of e){const e=Jn(o,i);r||=e!==n.get(i),void 0===e?t.delete(i):t.set(i,e)}return r?t:n}))}return Yn((()=>{d.current=r,m(p)})),{gridTemplateColumns:h,handleColumnResize:function(e,r){const{key:l}=e,u=[...t],d=[];for(const{key:e,idx:t,width:o}of n)if(l===e){const e="number"==typeof r?`${r}px`:r;u[t]=e}else a&&"string"==typeof o&&!i.has(e)&&(u[t]=o,d.push(e));o.current.style.gridTemplateColumns=u.join(" ");const _="number"==typeof r?r:Jn(o,l);qe((()=>{c((e=>{const n=new Map(e);return n.set(l,_),n})),m(d)})),s?.(e.idx,_)}}}(We,gn,je,Pe,Te,ae,fe,_e,pe,R),Rn=Xe.length>0&&"function"==typeof v,Sn=Rn?-1:0,Dn=We.length-1,Pn=un.length+Z-1,On=pt(he),zn=ht(he),An=Zn(kn),Gn=Zn(p),Wn=Zn(y),Kn=Zn(x),jn=Zn(b),$n=Zn(lt),Bn=Zn(st),Vn=Zn(vt),Qn=Zn((e=>{vt({rowIdx:e,idx:-1})})),nt=Zn((e=>{vt({rowIdx:ne,idx:e})})),ot=Zn(ct);Yn((()=>{On&&!Ht(he,ke.current)?(ke.current=he,-1===he.idx&&(Ee.current.focus({preventScroll:!0}),en(Ee.current))):ke.current=he})),Yn((()=>{if(!De.current)return;De.current=!1;const e=Nt(Pe.current);if(null===e)return;en(e);(e.querySelector('[tabindex="0"]')??e).focus({preventScroll:!0})})),function(e,n,t){Y=6,ce((function(){return"function"==typeof e?(e(n()),function(){return e(null)}):e?(e.current=n(),function(){return e.current=null}):void 0}),null==t?t:t.concat(e))}(n,(()=>({element:Pe.current,scrollToCell({idx:e,rowIdx:n}){const t=void 0!==e&&e>Be&&e<We.length?e:void 0,o=void 0!==n&&ft(n)?n:void 0;void 0===t&&void 0===o||Ie({idx:t,rowIdx:o})},selectCell:vt})));const it=de((e=>{be(e),Re.current=e}),[]);function lt(e){if(!_)return;if(bn(l),"HEADER"===e.type){const n=new Set(a);for(const t of o){const o=l(t);e.checked?n.add(o):n.delete(o)}return void _(n)}const{row:n,checked:t,isShiftClick:r}=e,i=new Set(a);if(fn(n)){for(const e of n.childRows){const n=l(e);t?i.add(n):i.delete(n)}return void _(i)}const c=l(n);if(t){i.add(c);const e=Se.current,t=un.indexOf(n);if(Se.current=t,r&&-1!==e&&e!==t){const n=yn(t-e);for(let o=e+n;o!==t;o+=n){const e=un[o];fn(e)||i.add(l(e))}}}else i.delete(c),Se.current=-1;_(i)}function ct(e){if(!g)return;const n=new Set(w);n.has(e)?n.delete(e):n.add(e),g(n)}function ut(e){return Rn?o.indexOf(un[e]):e}function st(e,n,t){if("function"!=typeof c)return;const r=ut(n);if(t===o[r])return;const i=[...o];i[r]=t,c(i,{indexes:[r],column:e})}function at(){"EDIT"===he.mode&&st(We[he.idx],he.rowIdx,he.row)}function _t(e){return e>=Sn&&e<=Dn}function ft(e){return e>=0&&e<un.length}function pt({idx:e,rowIdx:n}){return n>=ne&&n<=Pn&&_t(e)}function ht({idx:e,rowIdx:n}){return ft(n)&&_t(e)}function mt(e){return ht(e)&&cn({columns:We,rows:un,selectedPosition:e,isGroupRow:fn})}function vt(e,n){if(pt(e))if(at(),n&&mt(e)){const n=un[e.rowIdx];me({...e,mode:"EDIT",row:n,originalRow:n})}else Ht(he,e)?en(Nt(Pe.current)):(De.current=!0,me({...e,mode:"SELECT"}))}function gt(e){const{key:n,shiftKey:t}=e;let o="NONE";if("Tab"===n){if(function({maxColIdx:e,minRowIdx:n,maxRowIdx:t,selectedPosition:{rowIdx:o,idx:r},shiftKey:i}){return i?0===r&&o===n:r===e&&o===t}({shiftKey:t,maxColIdx:Dn,minRowIdx:ne,maxRowIdx:Pn,selectedPosition:he}))return void at();o="CHANGE_ROW"}e.preventDefault();const l=function(e,n,t){const{idx:o,rowIdx:r}=he,i=un[r],l=On&&-1===o;if(e===He&&l&&fn(i)&&!i.isExpanded&&0!==i.level){let e=-1;for(let n=he.rowIdx-1;n>=0;n--){const t=un[n];if(fn(t)&&t.id===i.parentId){e=n;break}}if(-1!==e)return{idx:o,rowIdx:e}}switch(e){case"ArrowUp":return{idx:o,rowIdx:r-1};case"ArrowDown":return{idx:o,rowIdx:r+1};case He:return{idx:o-1,rowIdx:r};case Ae:return{idx:o+1,rowIdx:r};case"Tab":return{idx:o+(t?-1:1),rowIdx:r};case"Home":return l?{idx:o,rowIdx:0}:{idx:0,rowIdx:n?ne:r};case"End":return l?{idx:o,rowIdx:un.length-1}:{idx:Dn,rowIdx:n?Pn:r};case"PageUp":{if(he.rowIdx===ne)return he;const e=pn(r)+hn(r)-Fe;return{idx:o,rowIdx:e>0?wn(e):0}}case"PageDown":{if(he.rowIdx>=un.length)return he;const e=pn(r)+Fe;return{idx:o,rowIdx:e<an?wn(e):un.length-1}}default:return he}}(n,on(e),t);if(Ht(he,l))return;const c=function({cellNavigationMode:e,columns:n,colSpanColumns:t,rows:o,topSummaryRows:r,bottomSummaryRows:i,minRowIdx:l,maxRowIdx:c,currentPosition:{idx:u},nextPosition:s,lastFrozenColumnIndex:d,isCellWithinBounds:a,isGroupRow:_}){let{idx:f,rowIdx:p}=s;const h=e=>{if(p>=0&&p<o.length){const e=o[p];if(_(e))return}for(const n of t){const t=n.idx;if(t>f)break;const l=sn({rows:o,topSummaryRows:r,bottomSummaryRows:i,rowIdx:p,lastFrozenColumnIndex:d,column:n,isGroupRow:_});if(l&&f>t&&f<l+t){f=t+(e?l:0);break}}};if(a(s)&&h(f-u>0),"CHANGE_ROW"===e){const e=n.length,t=-1===f;f===e?p===c||(f=0,p+=1):t&&(p===l||(p-=1,f=e-1),h(!1))}return{idx:f,rowIdx:p}}({columns:We,colSpanColumns:Le,rows:un,topSummaryRows:r,bottomSummaryRows:i,minRowIdx:ne,maxRowIdx:Pn,lastFrozenColumnIndex:Be,cellNavigationMode:o,currentPosition:he,nextPosition:l,isCellWithinBounds:pt,isGroupRow:fn});vt(c)}function yt(e){if(void 0===xe)return;const{rowIdx:n}=he;return(n<xe?n<e&&e<=xe:n>e&&e>=xe)?he.idx:void 0}function xt(e){if(he.rowIdx===e&&"EDIT"!==he.mode&&!Rn&&null!=S)return Ze(tt,{rows:o,columns:We,selectedPosition:he,isCellEditable:mt,latestDraggedOverRowIdx:Re,onRowsChange:c,onFill:S,setDragging:ye,setDraggedOverRowIdx:it})}function bt(e){if(he.rowIdx!==e||"SELECT"===he.mode)return;const{idx:n,row:t}=he,o=We[n],r=Qe(o,Be,{type:"ROW",row:t}),i=e=>{De.current=e,me((({idx:e,rowIdx:n})=>({idx:e,rowIdx:n,mode:"SELECT"})))};return un[he.rowIdx]!==he.originalRow&&i(!1),Ze(rt,{column:o,colSpan:r,row:t,rowIdx:e,onRowChange:(e,n,t)=>{n?qe((()=>{st(o,he.rowIdx,e),i(t)})):me((n=>({...n,row:e})))},closeEditor:i,onKeyDown:I,navigate:gt},o.key)}function kt(e){const n=We[he.idx];return void 0===n||he.rowIdx!==e||gn.includes(n)?gn:he.idx>Ue?[...gn,n]:[...gn.slice(0,Be+1),n,...gn.slice(Be+1)]}(he.idx>Dn||he.rowIdx>Pn)&&(me({idx:-1,rowIdx:ne-1,mode:"SELECT"}),it(void 0));let St=`${K}px`;J>0&&(St+=` repeat(${J}, ${U}px)`),un.length>0&&(St+=_n),Z>0&&(St+=` repeat(${Z}, ${U}px)`);const Et=-1===he.idx&&he.rowIdx!==ne-1;return Ze("div",{role:Rn?"treegrid":"grid","aria-label":H,"aria-labelledby":A,"aria-describedby":G,"aria-multiselectable":!!ze||void 0,"aria-colcount":We.length,"aria-rowcount":1+dn+Q,className:Ye("rdg r104f42s7-0-0-beta-33",O,ge&&"rdg-viewport-dragging v7ly7s7-0-0-beta-33"),style:{...F,scrollPaddingInlineStart:he.idx>Be||void 0!==Ce?.idx?`${Ve}px`:void 0,scrollPaddingBlock:ft(he.rowIdx)||void 0!==Ce?.rowIdx?`${K+J*U}px ${Z*U}px`:void 0,gridTemplateColumns:In,gridTemplateRows:St,"--rdg-header-row-height":`${K}px`,"--rdg-summary-row-height":`${U}px`,"--rdg-sign":Ne?-1:1,...$e},dir:X,ref:Pe,onScroll:function(e){const{scrollTop:n,scrollLeft:t}=e.currentTarget;qe((()=>{oe(n),le(xn(t))})),k?.(e)},onKeyDown:function(e){const{idx:n,rowIdx:t,mode:r}=he;if("EDIT"===r)return;const i=un[t];if(!fn(i)&&I){const o=nn(e);if(I({mode:"SELECT",row:i,column:We[n],rowIdx:t,selectCell:vt},o),o.isGridDefaultPrevented())return}if(!(e.target instanceof Element))return;const u=null!==e.target.closest(".rdg-cell"),s=Rn&&e.target===Ee.current;if(!u&&!s)return;const{key:d,keyCode:_}=e;if(zn&&(null!=D||null!=E)&&on(e)&&!fn(un[t])){const e=86;if(_===67)return void function(){const{idx:e,rowIdx:n}=he,t=o[ut(n)],r=We[e].key;we({row:t,columnKey:r}),E?.({sourceRow:t,sourceColumnKey:r})}();if(_===e)return void function(){if(!D||!c||null===ve||!mt(he))return;const{idx:e,rowIdx:n}=he,t=We[e],r=o[ut(n)],i=D({sourceRow:ve.row,sourceColumnKey:ve.columnKey,targetRow:r,targetColumnKey:t.key});st(t,n,i)}()}if(ft(t)&&fn(i)&&-1===he.idx&&(d===He&&i.isExpanded||d===Ae&&!i.isExpanded))return e.preventDefault(),void ct(i.id);switch(e.key){case"Escape":return void we(null);case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":gt(e);break;default:!function(e){if(!zn)return;const n=un[he.rowIdx];if(fn(n))return;const{key:t,shiftKey:o}=e;if(ze&&o&&" "===t){bn(l);const t=l(n);return lt({type:"ROW",row:n,checked:!a.has(t),isShiftClick:!1}),void e.preventDefault()}mt(he)&&function(e){return!tn.has(e.key)}(e)&&me((({idx:e,rowIdx:t})=>({idx:e,rowIdx:t,mode:"EDIT",row:n,originalRow:n})))}(e)}},"data-testid":M,children:[Rn&&Ze("div",{ref:Ee,tabIndex:Et?0:-1,className:Ye("fc4f4zb7-0-0-beta-33",Et&&["rel5gk27-0-0-beta-33",-1!==Be&&"r1qymf1z7-0-0-beta-33"]),style:{gridRowStart:he.rowIdx+ee+1}}),null!==Ce&&Ze(It,{scrollToPosition:Ce,setScrollToCellPosition:Ie,gridElement:Pe.current}),Ze(Nn,{value:Ge,children:[Ze(Ln,{value:$n,children:[Ze(Mn,{value:Me,children:Ze(wt,{columns:kt(-1),onColumnResize:An,sortColumns:f,onSortColumnsChange:Gn,lastFrozenColumnIndex:Be,selectedCellIdx:he.rowIdx===ne?he.idx:void 0,selectCell:nt,shouldFocusGrid:!On,direction:X})}),0===un.length&&V?V:Ze(C,{children:[r?.map(((e,n)=>{const t=1+n+1,o=n+ne+1,r=he.rowIdx===o;return Ze(Ot,{"aria-rowindex":t,rowIdx:o,gridRowStart:t,row:e,top:K+U*n,bottom:void 0,viewportColumns:kt(o),lastFrozenColumnIndex:Be,selectedCellIdx:r?he.idx:void 0,isTop:!0,showBorder:n===J-1,selectCell:Vn},n)})),function(){const e=[];let n=0;const{idx:t,rowIdx:o}=he,r=zn&&o>rn?rn+1:rn;for(let i=zn&&o<Je?Je-1:Je;i<=r;i++){const r=i===Je-1||i===rn+1,c=r?o:i;let u=gn;const s=We[t];void 0!==s&&(u=r?[s]:kt(c));const d=un[c],_=ee+c+1;if(fn(d)){({startRowIndex:n}=d);let r=!1;ze&&(bn(l),r=d.childRows.every((e=>a.has(l(e))))),e.push(Ze(dt,{"aria-level":d.level+1,"aria-setsize":d.setSize,"aria-posinset":d.posInSet+1,"aria-rowindex":ee+n+1,"aria-selected":ze?r:void 0,id:d.id,groupKey:d.groupKey,viewportColumns:u,childRows:d.childRows,rowIdx:c,row:d,gridRowStart:_,height:hn(c),level:d.level,isExpanded:d.isExpanded,selectedCellIdx:o===c?t:void 0,isRowSelected:r,selectGroup:Qn,toggleGroup:ot},d.id));continue}let f;n++;let p=!1;"function"==typeof l?(f=l(d),p=a?.has(f)??!1):f=Rn?n:c,e.push(j(f,{"aria-rowindex":ee+(Rn?n:c)+1,"aria-selected":ze?p:void 0,rowIdx:c,row:d,viewportColumns:u,isRowSelected:p,onCellClick:Wn,onCellDoubleClick:Kn,onCellContextMenu:jn,rowClass:z,gridRowStart:_,height:hn(c),copiedCellIdx:null!==ve&&ve.row===d?We.findIndex((e=>e.key===ve.columnKey)):void 0,selectedCellIdx:o===c?t:void 0,draggedOverCellIdx:yt(c),setDraggedOverRowIdx:ge?it:void 0,lastFrozenColumnIndex:Be,onRowChange:Bn,selectCell:Vn,selectedCellDragHandle:xt(c),selectedCellEditor:bt(c)}))}return e}(),i?.map(((e,n)=>{const t=ee+un.length+n+1,o=un.length+n,r=he.rowIdx===o,l=Fe>an?Oe-U*(i.length-n):void 0,c=void 0===l?U*(i.length-1-n):void 0;return Ze(Ot,{"aria-rowindex":ee+dn+n+1,rowIdx:o,gridRowStart:t,row:e,top:l,bottom:c,viewportColumns:kt(o),lastFrozenColumnIndex:Be,selectedCellIdx:r?he.idx:void 0,isTop:!1,showBorder:0===n,selectCell:Vn},n)}))]})]}),ln(gn)]})]})}let zt;function Nt(e){return zt??=document.createExpression('div[@role="row"]/div[@tabindex="0"]'),zt.evaluate(e,8).singleNodeValue}function Ht(e,n){return e.idx===n.idx&&e.rowIdx===n.rowIdx}const At=ke(Ft);function Gt(e,n,t){var o=n;return l([],e,!0).sort((function(e,n){return e[o]<n[o]?t?1:-1:e[o]>n[o]?t?-1:1:0}))}var Mt=function(e){return x("div",{style:{textAlign:"center",gridColumn:"1/-1"}},e.message,x("span",null,"--- * --- * ---"))},Wt=function(e){var t,o=e.table,r=e.sort,i=[se((function(){return t.columns()}),[t=o,t.dataChecksum()]),se((function(){return t.data()}),[t,t.dataChecksum()])],c=i[0],u=i[1],s=o.multiSelect(),d=o.columnTypes(),a=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],b=g[1],C=ie(new Set),I=C[0],k=C[1];le((function(){h(l(l([],s?[Vn]:[],!0),c.map((function(e){var t,o,r,i;switch(null!==(t=d[e])&&void 0!==t?t:"string"){case"time":r=void 0!==a[e]?n.timeParse(a[e]):void 0,i=void 0!==_[e]?n.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]?n.format(_[e]):void 0}return{key:e,name:e,resizable:!0,sortable:!0,minWidth:80,renderCell:o,__hpcc_pattern:r,__hpcc_format:i}})),!0))}),[_,a,d,c,s]);var R=de((function(e){var n=e.slice(-1)[0],t=void 0!==n,o="DESC"===(null==n?void 0:n.direction);w(n),b(Gt(y,t?n.columnKey:"key",!!t&&o))}),[y]),S=de((function(e){return e.key}),[]),E=de((function(e){k(e)}),[]),D=de((function(e,n){o.onRowClickCallback(e,n.key)}),[o]);return le((function(){var e=u.map((function(e,n){var t={key:n};return p.forEach((function(n,o){var r=e[o];n.__hpcc_pattern&&n.__hpcc_format?r=n.__hpcc_format(n.__hpcc_pattern(r)):n.__hpcc_pattern?r=n.__hpcc_pattern(r).toString():n.__hpcc_format&&(r=n.__hpcc_format(r)),t[n.key]=r})),t}));(null==r?void 0:r.attribute)&&(e=Gt(e,r.attribute,r.descending)),b(e)}),[p,u,r]),x(At,{columns:p,headerRowHeight:24,rows:y,rowKeyGetter:S,rowHeight:20,renderers:{noRowsFallback:x(Mt,{message:o.noDataMessage()})},className:o.darkMode()?"rdg-dark":"rdg-light",sortColumns:v?[v]:[],onSortColumnsChange:R,selectedRows:I,onSelectedRowsChange:s?E:void 0,onCellClick:s?void 0:D,"aria-describedby":"","aria-label":"","aria-labelledby":"",style:{height:"100%"}})};!function(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&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 Lt=function(e){function l(){return e.call(this)||this}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}(l,e),l.prototype.columnType=function(e,n){var t;return 1===arguments.length?this.columnTypes()[e]:(this.columnTypes(o(o({},this.columnTypes()),((t={})[e]=n,t))),this)},l.prototype.columnPattern=function(e,n){var t;return 1===arguments.length?this.columnPatterns()[e]:(this.columnPatterns(o(o({},this.columnPatterns()),((t={})[e]=n,t))),this)},l.prototype.columnFormat=function(e,n){var t;return 1===arguments.length?this.columnFormats()[e]:(this.columnFormats(o(o({},this.columnFormats()),((t={})[e]=n,t))),this)},l.prototype.onRowClickCallback=function(e,n){var t;this._prevRow&&JSON.stringify(this._prevRow)!==JSON.stringify(e)&&this.click(this._prevRow,null!==(t=this._prevColumn)&&void 0!==t?t:"",!1),e&&this.click(e,n,!0),this._prevRow=e,this._prevColumn=n},l.prototype.enter=function(n,t){e.prototype.enter.call(this,n,t),this._div=t.append("div")},l.prototype.update=function(n,t){e.prototype.update.call(this,n,t),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),function(e,n,t){null==n.__k&&(n.textContent=""),j(e,n),"function"==typeof t&&t(),e&&e.__c}(x(Wt,{table:this}),this._div.node())},l.prototype.exit=function(n,t){!function(e){!!e.__k&&j(null,e)}(this._div.node()),this._div.remove(),e.prototype.exit.call(this,n,t)},l.prototype.click=function(e,n,t){},r([n.publish("...empty...","string","No Data Message"),i("design:type",Function)],l.prototype,"noDataMessage",void 0),r([n.publish(!1,"boolean","Dark Mode"),i("design:type",Function)],l.prototype,"darkMode",void 0),r([n.publish(!1,"boolean","Multiple Selection"),i("design:type",Function)],l.prototype,"multiSelect",void 0),r([n.publish({},"object",'Column Types ("boolean" | "number" | "string" | "time"'),i("design:type",Function)],l.prototype,"columnTypes",void 0),r([n.publish({},"object","Column Patterns"),i("design:type",Function)],l.prototype,"columnPatterns",void 0),r([n.publish({},"object","Column Formats"),i("design:type",Function)],l.prototype,"columnFormats",void 0),l}(n.HTMLWidget);Lt.prototype._class+=" dgrid2_Table",e.BUILD_VERSION="2.104.27",e.PKG_NAME="@hpcc-js/dgrid2",e.PKG_VERSION="2.3.10",e.Table=Lt,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=index.min.js.map
|