@hpcc-js/dgrid2 2.1.0 → 2.1.1
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 +863 -1232
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +863 -1232
- 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 +5 -5
- package/src/__package__.ts +2 -2
- package/src/table.md +1 -1
- package/src/table.tsx +4 -3
- package/types/__package__.d.ts +2 -2
- package/types/table.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self)["@hpcc-js/dgrid2"]={},e["@hpcc-js/common"])}(this,(function(e,o){"use strict";var n=function(e,o){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])},n(e,o)};function t(e,o,n,t){var r,l=arguments.length,i=l<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,n):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,o,n,t);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(i=(l<3?r(i):l>3?r(o,n,i):r(o,n))||i);return l>3&&i&&Object.defineProperty(o,n,i),i}function r(e,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,o)}function l(e,o,n){if(n||2===arguments.length)for(var t,r=0,l=o.length;r<l;r++)!t&&r in o||(t||(t=Array.prototype.slice.call(o,0,r)),t[r]=o[r]);return e.concat(t||Array.prototype.slice.call(o))}var i,c,d,s,a,u,f,p={},_=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function g(e,o){for(var n in o)e[n]=o[n];return e}function v(e){var o=e.parentNode;o&&o.removeChild(e)}function w(e,o,n){var t,r,l,c={};for(l in o)"key"==l?t=o[l]:"ref"==l?r=o[l]:c[l]=o[l];if(arguments.length>2&&(c.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===c[l]&&(c[l]=e.defaultProps[l]);return b(e,c,t,r,null)}function b(e,o,n,t,r){var l={type:e,props:o,key:n,ref:t,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++d:r};return null==r&&null!=c.vnode&&c.vnode(l),l}function m(e){return e.children}function x(e,o){this.props=e,this.context=o}function y(e,o){if(null==o)return e.__?y(e.__,e.__.__k.indexOf(e)+1):null;for(var n;o<e.__k.length;o++)if(null!=(n=e.__k[o])&&null!=n.__e)return n.__e;return"function"==typeof e.type?y(e):null}function C(e){var o,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,o=0;o<e.__k.length;o++)if(null!=(n=e.__k[o])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return C(e)}}function k(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!R.__r++||u!==c.debounceRendering)&&((u=c.debounceRendering)||a)(R)}function R(){for(var e;R.__r=s.length;)e=s.sort((function(e,o){return e.__v.__b-o.__v.__b})),s=[],e.some((function(e){var o,n,t,r,l,i;e.__d&&(l=(r=(o=e).__v).__e,(i=o.__P)&&(n=[],(t=g({},r)).__v=r.__v+1,D(i,r,t,o.__n,void 0!==i.ownerSVGElement,null!=r.__h?[l]:null,n,null==l?y(r):l,r.__h),P(n,r),r.__e!=l&&C(r)))}))}function I(e,o,n,t,r,l,i,c,d,s){var a,u,f,h,g,v,w,x=t&&t.__k||_,C=x.length;for(n.__k=[],a=0;a<o.length;a++)if(null!=(h=n.__k[a]=null==(h=o[a])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?b(null,h,null,null,h):Array.isArray(h)?b(m,{children:h},null,null,null):h.__b>0?b(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(f=x[a])||f&&h.key==f.key&&h.type===f.type)x[a]=void 0;else for(u=0;u<C;u++){if((f=x[u])&&h.key==f.key&&h.type===f.type){x[u]=void 0;break}f=null}D(e,h,f=f||p,r,l,i,c,d,s),g=h.__e,(u=h.ref)&&f.ref!=u&&(w||(w=[]),f.ref&&w.push(f.ref,null,h),w.push(u,h.__c||g,h)),null!=g?(null==v&&(v=g),"function"==typeof h.type&&h.__k===f.__k?h.__d=d=S(h,d,e):d=z(e,h,f,x,g,d),"function"==typeof n.type&&(n.__d=d)):d&&f.__e==d&&d.parentNode!=e&&(d=y(f))}for(n.__e=v,a=C;a--;)null!=x[a]&&("function"==typeof n.type&&null!=x[a].__e&&x[a].__e==n.__d&&(n.__d=y(t,a+1)),M(x[a],x[a]));if(w)for(a=0;a<w.length;a++)H(w[a],w[++a],w[++a])}function S(e,o,n){for(var t,r=e.__k,l=0;r&&l<r.length;l++)(t=r[l])&&(t.__=e,o="function"==typeof t.type?S(t,o,n):z(n,t,t,r,t.__e,o));return o}function E(e,o){return o=o||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){E(e,o)})):o.push(e)),o}function z(e,o,n,t,r,l){var i,c,d;if(void 0!==o.__d)i=o.__d,o.__d=void 0;else if(null==n||r!=l||null==r.parentNode)e:if(null==l||l.parentNode!==e)e.appendChild(r),i=null;else{for(c=l,d=0;(c=c.nextSibling)&&d<t.length;d+=2)if(c==r)break e;e.insertBefore(r,l),i=l}return void 0!==i?i:r.nextSibling}function A(e,o,n){"-"===o[0]?e.setProperty(o,n):e[o]=null==n?"":"number"!=typeof n||h.test(o)?n:n+"px"}function O(e,o,n,t,r){var l;e:if("style"===o)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof t&&(e.style.cssText=t=""),t)for(o in t)n&&o in n||A(e.style,o,"");if(n)for(o in n)t&&n[o]===t[o]||A(e.style,o,n[o])}else if("o"===o[0]&&"n"===o[1])l=o!==(o=o.replace(/Capture$/,"")),o=o.toLowerCase()in e?o.toLowerCase().slice(2):o.slice(2),e.l||(e.l={}),e.l[o+l]=n,n?t||e.addEventListener(o,l?T:F,l):e.removeEventListener(o,l?T:F,l);else if("dangerouslySetInnerHTML"!==o){if(r)o=o.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==o&&"list"!==o&&"form"!==o&&"tabIndex"!==o&&"download"!==o&&o in e)try{e[o]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===o[0]&&"r"===o[1])?e.setAttribute(o,n):e.removeAttribute(o))}}function F(e){this.l[e.type+!1](c.event?c.event(e):e)}function T(e){this.l[e.type+!0](c.event?c.event(e):e)}function D(e,o,n,t,r,l,i,d,s){var a,u,f,p,_,h,v,w,b,y,C,k=o.type;if(void 0!==o.constructor)return null;null!=n.__h&&(s=n.__h,d=o.__e=n.__e,o.__h=null,l=[d]),(a=c.__b)&&a(o);try{e:if("function"==typeof k){if(w=o.props,b=(a=k.contextType)&&t[a.__c],y=a?b?b.props.value:a.__:t,n.__c?v=(u=o.__c=n.__c).__=u.__E:("prototype"in k&&k.prototype.render?o.__c=u=new k(w,y):(o.__c=u=new x(w,y),u.constructor=k,u.render=G),b&&b.sub(u),u.props=w,u.state||(u.state={}),u.context=y,u.__n=t,f=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=k.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=g({},u.__s)),g(u.__s,k.getDerivedStateFromProps(w,u.__s))),p=u.props,_=u.state,f)null==k.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==k.getDerivedStateFromProps&&w!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(w,y),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(w,u.__s,y)||o.__v===n.__v){u.props=w,u.state=u.__s,o.__v!==n.__v&&(u.__d=!1),u.__v=o,o.__e=n.__e,o.__k=n.__k,o.__k.forEach((function(e){e&&(e.__=o)})),u.__h.length&&i.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(w,u.__s,y),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(p,_,h)}))}u.context=y,u.props=w,u.state=u.__s,(a=c.__r)&&a(o),u.__d=!1,u.__v=o,u.__P=e,a=u.render(u.props,u.state,u.context),u.state=u.__s,null!=u.getChildContext&&(t=g(g({},t),u.getChildContext())),f||null==u.getSnapshotBeforeUpdate||(h=u.getSnapshotBeforeUpdate(p,_)),C=null!=a&&a.type===m&&null==a.key?a.props.children:a,I(e,Array.isArray(C)?C:[C],o,n,t,r,l,i,d,s),u.base=o.__e,o.__h=null,u.__h.length&&i.push(u),v&&(u.__E=u.__=null),u.__e=!1}else null==l&&o.__v===n.__v?(o.__k=n.__k,o.__e=n.__e):o.__e=N(n.__e,o,n,t,r,l,i,s);(a=c.diffed)&&a(o)}catch(e){o.__v=null,(s||null!=l)&&(o.__e=d,o.__h=!!s,l[l.indexOf(d)]=null),c.__e(e,o,n)}}function P(e,o){c.__c&&c.__c(o,e),e.some((function(o){try{e=o.__h,o.__h=[],e.some((function(e){e.call(o)}))}catch(e){c.__e(e,o.__v)}}))}function N(e,o,n,t,r,l,c,d){var s,a,u,f=n.props,_=o.props,h=o.type,g=0;if("svg"===h&&(r=!0),null!=l)for(;g<l.length;g++)if((s=l[g])&&"setAttribute"in s==!!h&&(h?s.localName===h:3===s.nodeType)){e=s,l[g]=null;break}if(null==e){if(null===h)return document.createTextNode(_);e=r?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,_.is&&_),l=null,d=!1}if(null===h)f===_||d&&e.data===_||(e.data=_);else{if(l=l&&i.call(e.childNodes),a=(f=n.props||p).dangerouslySetInnerHTML,u=_.dangerouslySetInnerHTML,!d){if(null!=l)for(f={},g=0;g<e.attributes.length;g++)f[e.attributes[g].name]=e.attributes[g].value;(u||a)&&(u&&(a&&u.__html==a.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,o,n,t,r){var l;for(l in n)"children"===l||"key"===l||l in o||O(e,l,null,n[l],t);for(l in o)r&&"function"!=typeof o[l]||"children"===l||"key"===l||"value"===l||"checked"===l||n[l]===o[l]||O(e,l,o[l],n[l],t)}(e,_,f,r,d),u)o.__k=[];else if(g=o.props.children,I(e,Array.isArray(g)?g:[g],o,n,t,r&&"foreignObject"!==h,l,c,l?l[0]:n.__k&&y(n,0),d),null!=l)for(g=l.length;g--;)null!=l[g]&&v(l[g]);d||("value"in _&&void 0!==(g=_.value)&&(g!==e.value||"progress"===h&&!g||"option"===h&&g!==f.value)&&O(e,"value",g,f.value,!1),"checked"in _&&void 0!==(g=_.checked)&&g!==e.checked&&O(e,"checked",g,f.checked,!1))}return e}function H(e,o,n){try{"function"==typeof e?e(o):e.current=o}catch(e){c.__e(e,n)}}function M(e,o,n){var t,r;if(c.unmount&&c.unmount(e),(t=e.ref)&&(t.current&&t.current!==e.__e||H(t,null,o)),null!=(t=e.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount()}catch(e){c.__e(e,o)}t.base=t.__P=null}if(t=e.__k)for(r=0;r<t.length;r++)t[r]&&M(t[r],o,"function"!=typeof e.type);n||null==e.__e||v(e.__e),e.__e=e.__d=void 0}function G(e,o,n){return this.constructor(e,n)}function L(e,o,n){var t,r,l;c.__&&c.__(e,o),r=(t="function"==typeof n)?null:n&&n.__k||o.__k,l=[],D(o,e=(!t&&n||o).__k=w(m,null,[e]),r||p,p,void 0!==o.ownerSVGElement,!t&&n?[n]:r?null:o.firstChild?i.call(o.childNodes):null,l,!t&&n?n:r?r.__e:o.firstChild,t),P(l,e)}function W(e,o){var n={__c:o="__cC"+f++,__:e,Consumer:function(e,o){return e.children(o)},Provider:function(e){var n,t;return this.getChildContext||(n=[],(t={})[o]=this,this.getChildContext=function(){return t},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(k)},this.sub=function(e){n.push(e);var o=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),o&&o.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}i=_.slice,c={__e:function(e,o,n,t){for(var r,l,i;o=o.__;)if((r=o.__c)&&!r.__)try{if((l=r.constructor)&&null!=l.getDerivedStateFromError&&(r.setState(l.getDerivedStateFromError(e)),i=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,t||{}),i=r.__d),i)return r.__E=r}catch(o){e=o}throw e}},d=0,x.prototype.setState=function(e,o){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},n),this.props)),e&&g(n,e),null!=e&&this.__v&&(o&&this.__h.push(o),k(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},x.prototype.render=m,s=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,R.__r=0,f=0;var K=0;function j(e,o,n,t,r){var l,i,d={};for(i in o)"ref"==i?l=o[i]:d[i]=o[i];var s={type:e,props:d,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--K,__source:r,__self:t};if("function"==typeof e&&(l=e.defaultProps))for(i in l)void 0===d[i]&&(d[i]=l[i]);return c.vnode&&c.vnode(s),s}var U,$,B,V=0,q=[],X=c.__b,Y=c.__r,J=c.diffed,Z=c.__c,Q=c.unmount;function ee(e,o){c.__h&&c.__h($,e,V||o),V=0;var n=$.__H||($.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function oe(e){return V=1,function(e,o,n){var t=ee(U++,2);return t.t=e,t.__c||(t.__=[n?n(o):pe(void 0,o),function(e){var o=t.t(t.__[0],e);t.__[0]!==o&&(t.__=[o,t.__[1]],t.__c.setState({}))}],t.__c=$),t.__}(pe,e)}function ne(e,o){var n=ee(U++,3);!c.__s&&fe(n.__H,o)&&(n.__=e,n.__H=o,$.__H.__h.push(n))}function te(e,o){var n=ee(U++,4);!c.__s&&fe(n.__H,o)&&(n.__=e,n.__H=o,$.__h.push(n))}function re(e){return V=5,le((function(){return{current:e}}),[])}function le(e,o){var n=ee(U++,7);return fe(n.__H,o)&&(n.__=e(),n.__H=o,n.__h=e),n.__}function ie(e,o){return V=8,le((function(){return e}),o)}function ce(e){var o=$.context[e.__c],n=ee(U++,9);return n.c=e,o?(null==n.__&&(n.__=!0,o.sub($)),o.props.value):e.__}function de(){for(var e;e=q.shift();)if(e.__P)try{e.__H.__h.forEach(ae),e.__H.__h.forEach(ue),e.__H.__h=[]}catch(o){e.__H.__h=[],c.__e(o,e.__v)}}c.__b=function(e){$=null,X&&X(e)},c.__r=function(e){Y&&Y(e),U=0;var o=($=e.__c).__H;o&&(o.__h.forEach(ae),o.__h.forEach(ue),o.__h=[])},c.diffed=function(e){J&&J(e);var o=e.__c;o&&o.__H&&o.__H.__h.length&&(1!==q.push(o)&&B===c.requestAnimationFrame||((B=c.requestAnimationFrame)||function(e){var o,n=function(){clearTimeout(t),se&&cancelAnimationFrame(o),setTimeout(e)},t=setTimeout(n,100);se&&(o=requestAnimationFrame(n))})(de)),$=null},c.__c=function(e,o){o.some((function(e){try{e.__h.forEach(ae),e.__h=e.__h.filter((function(e){return!e.__||ue(e)}))}catch(n){o.some((function(e){e.__h&&(e.__h=[])})),o=[],c.__e(n,e.__v)}})),Z&&Z(e,o)},c.unmount=function(e){Q&&Q(e);var o,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ae(e)}catch(e){o=e}})),o&&c.__e(o,n.__v))};var se="function"==typeof requestAnimationFrame;function ae(e){var o=$,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),$=o}function ue(e){var o=$;e.__c=e.__(),$=o}function fe(e,o){return!e||e.length!==o.length||o.some((function(o,n){return o!==e[n]}))}function pe(e,o){return"function"==typeof o?o(e):o}function _e(e,o){for(var n in o)e[n]=o[n];return e}function he(e,o){for(var n in e)if("__source"!==n&&!(n in o))return!0;for(var t in o)if("__source"!==t&&e[t]!==o[t])return!0;return!1}function ge(e){this.props=e}function ve(e,o){function n(e){var n=this.props.ref,t=n==e.ref;return!t&&n&&(n.call?n(null):n.current=null),o?!o(this.props,e)||!t:he(this.props,e)}function t(o){return this.shouldComponentUpdate=n,w(e,o)}return t.displayName="Memo("+(e.displayName||e.name)+")",t.prototype.isReactComponent=!0,t.__f=!0,t}(ge.prototype=new x).isPureReactComponent=!0,ge.prototype.shouldComponentUpdate=function(e,o){return he(this.props,e)||he(this.state,o)};var we=c.__b;c.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),we&&we(e)};var be="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function me(e){function o(o){var n=_e({},o);return delete n.ref,e(n,o.ref||null)}return o.$$typeof=be,o.render=o,o.prototype.isReactComponent=o.__f=!0,o.displayName="ForwardRef("+(e.displayName||e.name)+")",o}var xe=c.__e;c.__e=function(e,o,n,t){if(e.then)for(var r,l=o;l=l.__;)if((r=l.__c)&&r.__c)return null==o.__e&&(o.__e=n.__e,o.__k=n.__k),r.__c(e,o);xe(e,o,n,t)};var ye=c.unmount;function Ce(){this.__u=0,this.t=null,this.__b=null}function ke(e){var o=e.__.__c;return o&&o.__e&&o.__e(e)}function Re(){this.u=null,this.o=null}c.unmount=function(e){var o=e.__c;o&&o.__R&&o.__R(),o&&!0===e.__h&&(e.type=null),ye&&ye(e)},(Ce.prototype=new x).__c=function(e,o){var n=o.__c,t=this;null==t.t&&(t.t=[]),t.t.push(n);var r=ke(t.__v),l=!1,i=function(){l||(l=!0,n.__R=null,r?r(c):c())};n.__R=i;var c=function(){if(!--t.__u){if(t.state.__e){var e=t.state.__e;t.__v.__k[0]=function e(o,n,t){return o&&(o.__v=null,o.__k=o.__k&&o.__k.map((function(o){return e(o,n,t)})),o.__c&&o.__c.__P===n&&(o.__e&&t.insertBefore(o.__e,o.__d),o.__c.__e=!0,o.__c.__P=t)),o}(e,e.__c.__P,e.__c.__O)}var o;for(t.setState({__e:t.__b=null});o=t.t.pop();)o.forceUpdate()}},d=!0===o.__h;t.__u++||d||t.setState({__e:t.__b=t.__v.__k[0]}),e.then(i,i)},Ce.prototype.componentWillUnmount=function(){this.t=[]},Ce.prototype.render=function(e,o){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),t=this.__v.__k[0].__c;this.__v.__k[0]=function e(o,n,t){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),o.__c.__H=null),null!=(o=_e({},o)).__c&&(o.__c.__P===t&&(o.__c.__P=n),o.__c=null),o.__k=o.__k&&o.__k.map((function(o){return e(o,n,t)}))),o}(this.__b,n,t.__O=t.__P)}this.__b=null}var r=o.__e&&w(m,null,e.fallback);return r&&(r.__h=null),[w(m,null,o.__e?null:e.children),r]};var Ie=function(e,o,n){if(++n[1]===n[0]&&e.o.delete(o),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(Re.prototype=new x).__e=function(e){var o=this,n=ke(o.__v),t=o.o.get(e);return t[0]++,function(r){var l=function(){o.props.revealOrder?(t.push(r),Ie(o,e,t)):r()};n?n(l):l()}},Re.prototype.render=function(e){this.u=null,this.o=new Map;var o=E(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&o.reverse();for(var n=o.length;n--;)this.o.set(o[n],this.u=[1,0,this.u]);return e.children},Re.prototype.componentDidUpdate=Re.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(o,n){Ie(e,n,o)}))};var Se="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ee=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ze="undefined"!=typeof document,Ae=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(o){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:o})}})}));var Oe=c.event;function Fe(){}function Te(){return this.cancelBubble}function De(){return this.defaultPrevented}c.event=function(e){return Oe&&(e=Oe(e)),e.persist=Fe,e.isPropagationStopped=Te,e.isDefaultPrevented=De,e.nativeEvent=e};var Pe={configurable:!0,get:function(){return this.class}},Ne=c.vnode;c.vnode=function(e){var o=e.type,n=e.props,t=n;if("string"==typeof o){var r=-1===o.indexOf("-");for(var l in t={},n){var i=n[l];ze&&"children"===l&&"noscript"===o||"value"===l&&"defaultValue"in n&&null==i||("defaultValue"===l&&"value"in n&&null==n.value?l="value":"download"===l&&!0===i?i="":/ondoubleclick/i.test(l)?l="ondblclick":/^onchange(textarea|input)/i.test(l+o)&&!Ae(n.type)?l="oninput":/^onfocus$/i.test(l)?l="onfocusin":/^onblur$/i.test(l)?l="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(l)?l=l.toLowerCase():r&&Ee.test(l)?l=l.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),t[l]=i)}"select"==o&&t.multiple&&Array.isArray(t.value)&&(t.value=E(n.children).forEach((function(e){e.props.selected=-1!=t.value.indexOf(e.props.value)}))),"select"==o&&null!=t.defaultValue&&(t.value=E(n.children).forEach((function(e){e.props.selected=t.multiple?-1!=t.defaultValue.indexOf(e.props.value):t.defaultValue==e.props.value}))),e.props=t,n.class!=n.className&&(Pe.enumerable="className"in n,null!=n.className&&(t.class=n.className),Object.defineProperty(t,"className",Pe))}e.$$typeof=Se,Ne&&Ne(e)};var He=c.__r;function Me(e){var o,n,t="";if("string"==typeof e||"number"==typeof e)t+=e;else if("object"==typeof e)if(Array.isArray(e))for(o=0;o<e.length;o++)e[o]&&(n=Me(e[o]))&&(t&&(t+=" "),t+=n);else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function Ge(){for(var e,o,n=0,t="";n<arguments.length;)(e=arguments[n++])&&(o=Me(e))&&(t&&(t+=" "),t+=o);return t}function Le(e,o){void 0===o&&(o={});var n=o.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}c.__r=function(e){He&&He(e)};Le(".c1wupbe700-beta11{background-color:inherit;border-block-end:1px solid var(--rdg-border-color);border-inline-end:1px solid var(--rdg-border-color);contain:strict;contain:size layout style paint;grid-row-start:var(--rdg-grid-row-start);outline:none;overflow:hidden;overflow:clip;padding-block:0;padding-inline:8px;text-overflow:ellipsis;white-space:nowrap}.c1wupbe700-beta11[aria-selected=true]{box-shadow:inset 0 0 0 2px var(--rdg-selection-color)}.cd0kgiy700-beta11 .c1wupbe700-beta11{contain:content}.c1730fa4700-beta11{position:sticky;z-index:1}.c9dpaye700-beta11{box-shadow:var(--rdg-frozen-cell-box-shadow)}",{insertAt:"top"});Le('.r104f42s700-beta11{--rdg-color:#000;--rdg-border-color:#ddd;--rdg-summary-border-color:#aaa;--rdg-background-color:#fff;--rdg-header-background-color:#f9f9f9;--rdg-row-hover-background-color:#f5f5f5;--rdg-row-selected-background-color:#dbecfa;--row-selected-hover-background-color:#c9e3f8;--rdg-checkbox-color:#005194;--rdg-checkbox-focus-color:#61b8ff;--rdg-checkbox-disabled-border-color:#ccc;--rdg-checkbox-disabled-background-color:#ddd;--rdg-selection-color:#66afe9;--rdg-frozen-cell-box-shadow:calc(2px*var(--rdg-sign)) 0 5px -2px hsla(0,0%,53%,.3);--rdg-font-size:14px;content-visibility:auto;background-color:var(--rdg-background-color);block-size:350px;border:1px solid var(--rdg-border-color);box-sizing:border-box;color:var(--rdg-color);color-scheme:var(--rdg-color-scheme,light dark);contain:strict;contain:size layout style paint;display:grid;font-size:var(--rdg-font-size);overflow:auto;user-select:none}@supports not (contain:strict){.r104f42s700-beta11{position:relative;z-index:0}}.r104f42s700-beta11 *,.r104f42s700-beta11 :after,.r104f42s700-beta11 :before{box-sizing:inherit}.r104f42s700-beta11:before{block-size:var(--rdg-grid-block-size);content:"";inline-size:var(--rdg-grid-inline-size);inset-block-start:0;inset-inline-start:0;position:absolute}.r104f42s700-beta11.rdg-dark{--rdg-color-scheme:dark;--rdg-color:#ddd;--rdg-border-color:#444;--rdg-summary-border-color:#555;--rdg-background-color:#212121;--rdg-header-background-color:#1b1b1b;--rdg-row-hover-background-color:#171717;--rdg-row-selected-background-color:#1a73bc;--row-selected-hover-background-color:#1768ab;--rdg-checkbox-color:#94cfff;--rdg-checkbox-focus-color:#c7e6ff;--rdg-checkbox-disabled-border-color:#000;--rdg-checkbox-disabled-background-color:#333}.r104f42s700-beta11.rdg-light{--rdg-color-scheme:light}@media (prefers-color-scheme:dark){.r104f42s700-beta11:not(.rdg-light){--rdg-color:#ddd;--rdg-border-color:#444;--rdg-summary-border-color:#555;--rdg-background-color:#212121;--rdg-header-background-color:#1b1b1b;--rdg-row-hover-background-color:#171717;--rdg-row-selected-background-color:#1a73bc;--row-selected-hover-background-color:#1768ab;--rdg-checkbox-color:#94cfff;--rdg-checkbox-focus-color:#c7e6ff;--rdg-checkbox-disabled-border-color:#000;--rdg-checkbox-disabled-background-color:#333}}.v7ly7s700-beta11.r1otpg64700-beta11{cursor:move}.fc4f4zb700-beta11{grid-column-start:1;inset-inline-start:0;position:sticky}',{insertAt:"top"});Le(".r1otpg64700-beta11{background-color:var(--rdg-background-color);display:contents;line-height:var(--rdg-row-height)}.r1otpg64700-beta11:hover{background-color:var(--rdg-row-hover-background-color)}.r1otpg64700-beta11[aria-selected=true]{background-color:var(--rdg-row-selected-background-color)}.r1otpg64700-beta11[aria-selected=true]:hover{background-color:var(--row-selected-hover-background-color)}.rel5gk2700-beta11{outline:none}.rel5gk2700-beta11>.c1wupbe700-beta11{box-shadow:inset 0 2px 0 0 var(--rdg-selection-color),inset 0 -2px 0 0 var(--rdg-selection-color)}.rel5gk2700-beta11>.c1wupbe700-beta11:first-child{box-shadow:inset 0 2px 0 0 var(--rdg-selection-color),inset 0 -2px 0 0 var(--rdg-selection-color),inset calc(2px*var(--rdg-sign)) 0 0 0 var(--rdg-selection-color)}.rel5gk2700-beta11>.c1wupbe700-beta11:last-child{box-shadow:inset 0 2px 0 0 var(--rdg-selection-color),inset 0 -2px 0 0 var(--rdg-selection-color),inset calc(-2px*var(--rdg-sign)) 0 0 0 var(--rdg-selection-color)}.rel5gk2700-beta11>.c9dpaye700-beta11{box-shadow:inset 0 2px 0 0 var(--rdg-selection-color),inset 0 -2px 0 0 var(--rdg-selection-color),var(--rdg-frozen-cell-box-shadow)}",{insertAt:"top"});const We="rdg-row r1otpg64700-beta11",Ke="rdg-row-selected rel5gk2700-beta11";Le('.cd9l4jz700-beta11{align-items:center;cursor:pointer;display:flex;inset:0;justify-content:center;margin-inline-end:1px;position:absolute}.c1noyk41700-beta11{all:unset}.cdwjxv8700-beta11{background-color:var(--rdg-background-color);block-size:20px;border:2px solid var(--rdg-border-color);content:"";inline-size:20px}.c1noyk41700-beta11:checked+.cdwjxv8700-beta11{background-color:var(--rdg-checkbox-color);box-shadow:inset 0 0 0 4px var(--rdg-background-color)}.c1noyk41700-beta11:focus+.cdwjxv8700-beta11{border-color:var(--rdg-checkbox-focus-color)}.cca4mwn700-beta11{cursor:default}.cca4mwn700-beta11 .cdwjxv8700-beta11{background-color:var(--rdg-checkbox-disabled-background-color);border-color:var(--rdg-checkbox-disabled-border-color)}',{insertAt:"top"});const je=me((function({onChange:e,...o},n){return j("label",{className:Ge("rdg-checkbox-label cd9l4jz700-beta11",o.disabled&&"rdg-checkbox-label-disabled cca4mwn700-beta11"),children:[j("input",{type:"checkbox",ref:n,...o,className:"rdg-checkbox-input c1noyk41700-beta11",onChange:function(o){e(o.target.checked,o.nativeEvent.shiftKey)}}),j("div",{className:"rdg-checkbox cdwjxv8700-beta11"})]})})),Ue="undefined"==typeof window?ne:te;function $e(e){const o=re(null);return Ue((()=>{var n;e&&(null==(n=o.current)||n.focus({preventScroll:!0}))}),[e]),{ref:o,tabIndex:e?0:-1}}const Be=W(void 0),Ve=Be.Provider;function qe(){return ce(Be)}function Xe({value:e,isCellSelected:o,disabled:n,onChange:t,"aria-label":r,"aria-labelledby":l}){const{ref:i,tabIndex:c}=$e(o);return j(qe().checkboxFormatter,{"aria-label":r,"aria-labelledby":l,ref:i,tabIndex:c,disabled:n,checked:e,onChange:t})}function Ye(e){try{return j(m,{children:e.row[e.column.key]})}catch{return null}}Le(".gch972y700-beta11{outline:none}.cz2qf0d700-beta11{stroke:currentColor;stroke-width:1.5px;fill:transparent;margin-inline-start:4px;vertical-align:middle}.cz2qf0d700-beta11>path{transition:d .1s}",{insertAt:"top"});function Je({groupKey:e,isExpanded:o,isCellSelected:n,toggleGroup:t}){const{ref:r,tabIndex:l}=$e(n);return j("span",{ref:r,className:"rdg-group-cell-content gch972y700-beta11",tabIndex:l,onKeyDown:function({key:e}){"Enter"===e&&t()},children:[e,j("svg",{viewBox:"0 0 14 8",width:"14",height:"8",className:"rdg-caret cz2qf0d700-beta11","aria-hidden":!0,children:j("path",{d:o?"M1 1 L 7 7 L 13 1":"M1 7 L 7 1 L 13 7"})})]})}const Ze=W(void 0),Qe=Ze.Provider,eo=W(void 0),oo=eo.Provider;function no(){const e=ce(Ze),o=ce(eo);if(void 0===e||void 0===o)throw new Error("useRowSelection must be used within DataGrid cells");return[e,o]}const to="select-row";const ro={key:to,name:"",width:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,headerRenderer:e=>j(Xe,{"aria-label":"Select All",isCellSelected:e.isCellSelected,value:e.allRowsSelected,onChange:e.onAllRowsSelectionChange}),formatter:function(e){const[o,n]=no();return j(Xe,{"aria-label":"Select",isCellSelected:e.isCellSelected,value:o,onChange:(o,t)=>{n({row:e.row,checked:o,isShiftClick:t})}})},groupFormatter:function(e){const[o,n]=no();return j(Xe,{"aria-label":"Select Group",isCellSelected:e.isCellSelected,value:o,onChange:o=>{n({row:e.row,checked:o,isShiftClick:!1})}})}};function lo(e,o,n){const t="function"==typeof e.colSpan?e.colSpan(n):1;if(Number.isInteger(t)&&t>1&&(!e.frozen||e.idx+t-1<=o))return t}const io=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 co(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}function so({key:e,target:o}){return"Tab"===e&&(o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement)&&o.matches(".rdg-editor-container > :only-child, .rdg-editor-container > label:only-child > :only-child")}function ao({selectedPosition:e,columns:o,rows:n,isGroupRow:t}){const r=o[e.idx],l=n[e.rowIdx];return!t(l)&&uo(r,l)}function uo(e,o){return null!=e.editor&&!e.rowGroup&&!1!==("function"==typeof e.editable?e.editable(o):e.editable)}function fo({rows:e,summaryRows:o,rowIdx:n,lastFrozenColumnIndex:t,column:r,isGroupRow:l}){if(-1===n)return lo(r,t,{type:"HEADER"});if(n>=0&&n<e.length){const o=e[n];return l(o)?void 0:lo(r,t,{type:"ROW",row:o})}return o?lo(r,t,{type:"SUMMARY",row:o[n-e.length]}):void 0}const{min:po,max:_o,round:ho,floor:go,sign:vo,abs:wo}=Math;function bo(e){if("function"!=typeof e)throw new Error("Please specify the rowKeyGetter prop to use selection")}function mo(e,o){return void 0!==o?{"--rdg-grid-row-start":e,"--rdg-row-height":`${o}px`}:{"--rdg-grid-row-start":e}}function xo(e,o){return{gridColumnStart:e.idx+1,gridColumnEnd:void 0!==o?`span ${o}`:void 0,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function yo(e,...o){return Ge("rdg-cell c1wupbe700-beta11",...o,e.frozen&&"rdg-cell-frozen c1730fa4700-beta11",e.isLastFrozenColumn&&"rdg-cell-frozen-last c9dpaye700-beta11")}function Co({key:e,width:o},n,t){return n.has(e)?n.get(e):"number"==typeof o?o:"string"==typeof o&&/^\d+%$/.test(o)?go(t*parseInt(o,10)/100):void 0}function ko(e,{minWidth:o,maxWidth:n},t){return e=_o(e,null!=o?o:t),"number"==typeof n?po(e,n):e}function Ro(e){const o=re(e);return ne((()=>{o.current=e})),ie(((...e)=>{o.current(...e)}),[])}function Io(e){const o=re(null),n=re(!1),[,t]=oe({});Ue((()=>{var r;e?n.current?t({}):null==(r=o.current)||r.focus({preventScroll:!0}):n.current=!1}),[e]);const r=e&&!n.current;return{ref:o,tabIndex:r?0:-1,onFocus:function(e){e.target!==o.current&&(n.current=!0)}}}function So({rawRows:e,rowHeight:o,clientHeight:n,scrollTop:t,groupBy:r,rowGrouper:l,expandedGroupIds:i,enableVirtualization:c}){const[d,s]=le((()=>{if(0===r.length||null==l)return[void 0,e.length];const o=(e,[n,...t],r)=>{let i=0;const c={};for(const[d,s]of Object.entries(l(e,n))){const[e,n]=0===t.length?[s,s.length]:o(s,t,r+i+1);c[d]={childRows:s,childGroups:e,startRowIndex:r+i},i+=n+1}return[c,i]};return o(e,r,0)}),[r,l,e]),[a,u]=le((()=>{const o=new Set;if(!d)return[e,r];const n=[],t=(e,r,l)=>{var c;(c=e,Array.isArray(c))?n.push(...e):Object.keys(e).forEach(((c,d,s)=>{var a;const u=void 0!==r?`${r}__${c}`:c,f=null!=(a=null==i?void 0:i.has(u))&&a,{childRows:p,childGroups:_,startRowIndex:h}=e[c],g={id:u,parentId:r,groupKey:c,isExpanded:f,childRows:p,level:l,posInSet:d,startRowIndex:h,setSize:s.length};n.push(g),o.add(g),f&&t(_,u,l+1)}))};return t(d,void 0,0),[n,r];function r(e){return o.has(e)}}),[i,d,e]),{totalRowHeight:f,gridTemplateRows:p,getRowTop:_,getRowHeight:h,findRowIdx:g}=le((()=>{if("number"==typeof o)return{totalRowHeight:o*a.length,gridTemplateRows:` repeat(${a.length}, ${o}px)`,getRowTop:e=>e*o,getRowHeight:()=>o,findRowIdx:e=>go(e/o)};let e=0,n=" ";const t=a.map((t=>{const r=u(t)?o({type:"GROUP",row:t}):o({type:"ROW",row:t}),l={top:e,height:r};return n+=`${r}px `,e+=r,l})),r=e=>_o(0,po(a.length-1,e));return{totalRowHeight:e,gridTemplateRows:n,getRowTop:e=>t[r(e)].top,getRowHeight:e=>t[r(e)].height,findRowIdx(e){let o=0,n=t.length-1;for(;o<=n;){const r=o+go((n-o)/2),l=t[r].top;if(l===e)return r;if(l<e?o=r+1:l>e&&(n=r-1),o>n)return n}return 0}}}),[u,o,a]);let v=0,w=a.length-1;if(c){const e=4,o=g(t),r=g(t+n);v=_o(0,o-e),w=po(a.length-1,r+e)}return{rowOverscanStartIdx:v,rowOverscanEndIdx:w,rows:a,rowsCount:s,totalRowHeight:f,gridTemplateRows:p,isGroupRow:u,getRowTop:_,getRowHeight:h,findRowIdx:g}}Le(".h1tr5c9i700-beta11{cursor:pointer;display:flex}.h1tr5c9i700-beta11:focus{outline:none}.h19r0msv700-beta11{flex-grow:1;overflow:hidden;overflow:clip;text-overflow:ellipsis}",{insertAt:"top"});function Eo({column:e,sortDirection:o,priority:n,onSort:t,isCellSelected:r}){return e.sortable?j(zo,{onSort:t,sortDirection:o,priority:n,isCellSelected:r,children:e.name}):j(m,{children:e.name})}function zo({onSort:e,sortDirection:o,priority:n,children:t,isCellSelected:r}){const l=qe().sortIcon,{ref:i,tabIndex:c}=$e(r);return j("span",{ref:i,tabIndex:c,className:"rdg-header-sort-cell h1tr5c9i700-beta11",onClick:function(o){e(o.ctrlKey||o.metaKey)},onKeyDown:function(o){" "!==o.key&&"Enter"!==o.key||(o.preventDefault(),e(o.ctrlKey||o.metaKey))},children:[j("span",{className:"rdg-header-sort-name h19r0msv700-beta11",children:t}),j("span",{children:[j(l,{sortDirection:o}),n]})]})}Le('.celq7o9700-beta11{touch-action:none}.celq7o9700-beta11:after{content:"";cursor:col-resize;inline-size:10px;inset-block-end:0;inset-block-start:0;inset-inline-end:0;position:absolute}',{insertAt:"top"});function Ao({column:e,colSpan:o,isCellSelected:n,onColumnResize:t,allRowsSelected:r,onAllRowsSelectionChange:l,sortColumns:i,onSortColumnsChange:c,selectCell:d,shouldFocusGrid:s,direction:a}){var u,f,p;const _="rtl"===a,{ref:h,tabIndex:g,onFocus:v}=Io(n),w=null==i?void 0:i.findIndex((o=>o.columnKey===e.key)),b=void 0!==w&&w>-1?i[w]:void 0,m=null==b?void 0:b.direction,x=void 0!==b&&i.length>1?w+1:void 0,y=m&&!x?"ASC"===m?"ascending":"descending":void 0,C=yo(e,e.headerCellClass,e.resizable&&"rdg-cell-resizable celq7o9700-beta11"),k=null!=(u=e.headerRenderer)?u:Eo;return j("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-selected":n,"aria-sort":y,"aria-colspan":o,ref:h,tabIndex:s?0:g,className:C,style:{...xo(e,o),minWidth:null!=(f=e.minWidth)?f:void 0,maxWidth:null!=(p=e.maxWidth)?p:void 0},onFocus:function(e){v(e),s&&d(0)},onClick:function(){d(e.idx)},onDoubleClick:e.resizable?function(o){const{right:n,left:r}=o.currentTarget.getBoundingClientRect();(_?o.clientX-r:n-o.clientX)>11||t(e,"auto")}:void 0,onPointerDown:e.resizable?function(o){if("mouse"===o.pointerType&&1!==o.buttons)return;const{currentTarget:n,pointerId:r}=o,{right:l,left:i}=n.getBoundingClientRect(),c=_?o.clientX-i:l-o.clientX;function d(o){const{right:r,left:l}=n.getBoundingClientRect(),i=_?r+c-o.clientX:o.clientX+c-l;i>0&&t(e,i)}c>11||(n.setPointerCapture(r),n.addEventListener("pointermove",d),n.addEventListener("lostpointercapture",(function e(){n.removeEventListener("pointermove",d),n.removeEventListener("lostpointercapture",e)})))}:void 0,children:j(k,{column:e,sortDirection:m,priority:x,onSort:function(o){if(null==c)return;const{sortDescendingFirst:n}=e;if(void 0===b){const t={columnKey:e.key,direction:n?"DESC":"ASC"};c(i&&o?[...i,t]:[t])}else{let t;if((n&&"DESC"===m||!n&&"ASC"===m)&&(t={columnKey:e.key,direction:"ASC"===m?"DESC":"ASC"}),o){const e=[...i];t?e[w]=t:e.splice(w,1),c(e)}else c(t?[t]:[])}},allRowsSelected:r,onAllRowsSelectionChange:l,isCellSelected:n})})}Le(".h197vzie700-beta11{background-color:var(--rdg-header-background-color);display:contents;font-weight:700;line-height:var(--rdg-header-row-height)}.h197vzie700-beta11>.c1wupbe700-beta11{inset-block-start:0;position:sticky;z-index:2}.h197vzie700-beta11>.c1730fa4700-beta11{z-index:3}",{insertAt:"top"});function Oo({columns:e,allRowsSelected:o,onAllRowsSelectionChange:n,onColumnResize:t,sortColumns:r,onSortColumnsChange:l,lastFrozenColumnIndex:i,selectedCellIdx:c,selectCell:d,shouldFocusGrid:s,direction:a}){const u=[];for(let f=0;f<e.length;f++){const p=e[f],_=lo(p,i,{type:"HEADER"});void 0!==_&&(f+=_-1),u.push(j(Ao,{column:p,colSpan:_,isCellSelected:c===p.idx,onColumnResize:t,allRowsSelected:o,onAllRowsSelectionChange:n,onSortColumnsChange:l,sortColumns:r,selectCell:d,shouldFocusGrid:s&&0===f,direction:a},p.key))}return j("div",{role:"row","aria-rowindex":1,className:Ge("rdg-header-row h197vzie700-beta11",-1===c&&Ke),style:mo(1),children:u})}const Fo=ve(Oo);Le(".c1bmg16t700-beta11,.ccpfvsn700-beta11{background-color:#ccf}.c1bmg16t700-beta11.ccpfvsn700-beta11{background-color:#99f}",{insertAt:"top"});function To({column:e,colSpan:o,isCellSelected:n,isCopied:t,isDraggedOver:r,row:l,dragHandle:i,onRowClick:c,onRowDoubleClick:d,onRowChange:s,selectCell:a,...u}){const{ref:f,tabIndex:p,onFocus:_}=Io(n),{cellClass:h}=e,g=yo(e,"function"==typeof h?h(l):h,t&&"rdg-cell-copied ccpfvsn700-beta11",r&&"rdg-cell-dragged-over c1bmg16t700-beta11");function v(o){a(l,e,o)}return j("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-selected":n,"aria-colspan":o,"aria-readonly":!uo(e,l)||void 0,ref:f,tabIndex:p,className:g,style:xo(e,o),onClick:function(){var o;v(null==(o=e.editorOptions)?void 0:o.editOnClick),null==c||c(l,e)},onDoubleClick:function(){v(!0),null==d||d(l,e)},onContextMenu:function(){v()},onFocus:_,...u,children:!e.rowGroup&&j(m,{children:[j(e.formatter,{column:e,row:l,isCellSelected:n,onRowChange:s}),i]})})}const Do=ve(To);function Po({className:e,rowIdx:o,gridRowStart:n,height:t,selectedCellIdx:r,isRowSelected:l,copiedCellIdx:i,draggedOverCellIdx:c,lastFrozenColumnIndex:d,row:s,viewportColumns:a,selectedCellEditor:u,selectedCellDragHandle:f,onRowClick:p,onRowDoubleClick:_,rowClass:h,setDraggedOverRowIdx:g,onMouseEnter:v,onRowChange:w,selectCell:b,...m},x){const y=Ro((e=>{w(o,e)}));e=Ge(We,"rdg-row-"+(o%2==0?"even":"odd"),null==h?void 0:h(s),e,-1===r&&Ke);const C=[];for(let e=0;e<a.length;e++){const o=a[e],{idx:n}=o,t=lo(o,d,{type:"ROW",row:s});void 0!==t&&(e+=t-1);const l=r===n;l&&u?C.push(u):C.push(j(Do,{column:o,colSpan:t,row:s,isCopied:i===n,isDraggedOver:c===n,isCellSelected:l,dragHandle:l?f:void 0,onRowClick:p,onRowDoubleClick:_,onRowChange:y,selectCell:b},o.key))}return j(Qe,{value:l,children:j("div",{role:"row",ref:x,className:e,onMouseEnter:function(e){null==g||g(o),null==v||v(e)},style:mo(n,t),...m,children:C})})}const No=ve(me(Po));function Ho({id:e,groupKey:o,childRows:n,isExpanded:t,isCellSelected:r,column:l,row:i,groupColumnIndex:c,toggleGroup:d}){const{ref:s,tabIndex:a,onFocus:u}=Io(r);function f(){d(e)}const p=l.rowGroup&&c===l.idx;return j("div",{role:"gridcell","aria-colindex":l.idx+1,"aria-selected":r,ref:s,tabIndex:a,className:yo(l),style:{...xo(l),cursor:p?"pointer":"default"},onClick:p?f:void 0,onFocus:u,children:(!l.rowGroup||c===l.idx)&&l.groupFormatter&&j(l.groupFormatter,{groupKey:o,childRows:n,column:l,row:i,isExpanded:t,isCellSelected:r,toggleGroup:f})},l.key)}const Mo=ve(Ho);Le(".gyxx7e9700-beta11:not([aria-selected=true]){background-color:var(--rdg-header-background-color)}.gyxx7e9700-beta11>.c1wupbe700-beta11:not(:last-child):not(.c9dpaye700-beta11){border-inline-end:none}",{insertAt:"top"});function Go({id:e,groupKey:o,viewportColumns:n,childRows:t,rowIdx:r,row:l,gridRowStart:i,height:c,level:d,isExpanded:s,selectedCellIdx:a,isRowSelected:u,selectGroup:f,toggleGroup:p,..._}){const h=n[0].key===to?d+1:d;return j(Qe,{value:u,children:j("div",{role:"row","aria-level":d,"aria-expanded":s,className:Ge(We,"rdg-group-row gyxx7e9700-beta11","rdg-row-"+(r%2==0?"even":"odd"),-1===a&&Ke),onClick:function(){f(r)},style:mo(i,c),..._,children:n.map((n=>j(Mo,{id:e,groupKey:o,childRows:t,isExpanded:s,isCellSelected:a===n.idx,column:n,row:l,groupColumnIndex:h,toggleGroup:p},n.key)))})})}const Lo=ve(Go);Le(".s1n3hxke700-beta11{inset-block-end:var(--rdg-summary-row-bottom);inset-block-start:var(--rdg-summary-row-top)}",{insertAt:"top"});function Wo({column:e,colSpan:o,row:n,isCellSelected:t,selectCell:r}){const{ref:l,tabIndex:i,onFocus:c}=Io(t),{summaryFormatter:d,summaryCellClass:s}=e,a=yo(e,"s1n3hxke700-beta11","function"==typeof s?s(n):s);return j("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":o,"aria-selected":t,ref:l,tabIndex:i,className:a,style:xo(e,o),onClick:function(){r(n,e)},onFocus:c,children:d&&j(d,{column:e,row:n,isCellSelected:t})})}const Ko=ve(Wo);Le(".snfqesz700-beta11.r1otpg64700-beta11{line-height:var(--rdg-summary-row-height)}.snfqesz700-beta11.r1otpg64700-beta11>.c1wupbe700-beta11{position:sticky}.s1jijrjz700-beta11>.c1wupbe700-beta11{border-block-start:2px solid var(--rdg-summary-border-color)}",{insertAt:"top"});function jo({rowIdx:e,gridRowStart:o,row:n,viewportColumns:t,top:r,bottom:l,lastFrozenColumnIndex:i,selectedCellIdx:c,selectCell:d,"aria-rowindex":s}){const a=[];for(let e=0;e<t.length;e++){const o=t[e],r=lo(o,i,{type:"SUMMARY",row:n});void 0!==r&&(e+=r-1);const l=c===o.idx;a.push(j(Ko,{column:o,colSpan:r,row:n,isCellSelected:l,selectCell:d},o.key))}return j("div",{role:"row","aria-rowindex":s,className:Ge(We,"rdg-row-"+(e%2==0?"even":"odd"),"rdg-summary-row snfqesz700-beta11",0===e&&"s1jijrjz700-beta11",-1===c&&Ke),style:{...mo(o),"--rdg-summary-row-top":void 0!==r?`${r}px`:void 0,"--rdg-summary-row-bottom":void 0!==l?`${l}px`:void 0},children:a})}const Uo=ve(jo);Le(".c1tngyp1700-beta11.rdg-cell{padding:0}",{insertAt:"top"});function $o({column:e,colSpan:o,row:n,onRowChange:t,closeEditor:r,scrollToCell:l}){var i,c,d;const s=re(),a=!1!==(null==(i=e.editorOptions)?void 0:i.commitOnOutsideClick),u=Ro((()=>{p(!0)}));function f(){cancelAnimationFrame(s.current)}function p(e){e?t(n,!0):r()}ne((()=>{if(a)return addEventListener("mousedown",e,{capture:!0}),()=>{removeEventListener("mousedown",e,{capture:!0}),f()};function e(){s.current=requestAnimationFrame(u)}}),[a,u]);const{cellClass:_}=e,h=yo(e,"rdg-editor-container","function"==typeof _?_(n):_,!(null!=(c=e.editorOptions)&&c.renderFormatter)&&"c1tngyp1700-beta11");return j("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":o,"aria-selected":!0,className:h,style:xo(e,o),onKeyDown:function(o){if("Escape"===o.key)o.stopPropagation(),p();else if("Enter"===o.key)o.stopPropagation(),p(!0),l();else{var n,t;(null!=(n=null==(t=e.editorOptions)?void 0:t.onNavigation)?n:so)(o)||o.stopPropagation()}},onMouseDownCapture:a?f:void 0,children:null!=e.editor&&j(m,{children:[j(e.editor,{column:e,row:n,onRowChange:t,onClose:p}),(null==(d=e.editorOptions)?void 0:d.renderFormatter)&&j(e.formatter,{column:e,row:n,isCellSelected:!0,onRowChange:t})]})})}Le(".cadd3bp700-beta11{background-color:var(--rdg-selection-color);block-size:8px;cursor:move;inline-size:8px;inset-block-end:0;inset-inline-end:0;position:absolute}.cadd3bp700-beta11:hover{background-color:var(--rdg-background-color);block-size:16px;border:2px solid var(--rdg-selection-color);inline-size:16px}",{insertAt:"top"});function Bo({rows:e,columns:o,selectedPosition:n,latestDraggedOverRowIdx:t,isCellEditable:r,onRowsChange:l,onFill:i,setDragging:c,setDraggedOverRowIdx:d}){function s(t,c){const{idx:d,rowIdx:s}=n,a=o[d],u=e[s],f=[...e],p=[];for(let o=t;o<c;o++)if(r({rowIdx:o,idx:d})){const n=i({columnKey:a.key,sourceRow:u,targetRow:e[o]});n!==e[o]&&(f[o]=n,p.push(o))}p.length>0&&(null==l||l(f,{indexes:p,column:a}))}return j("div",{className:"rdg-cell-drag-handle cadd3bp700-beta11",onMouseDown:function(e){function o(e){1!==e.buttons&&r()}function r(){window.removeEventListener("mouseover",o),window.removeEventListener("mouseup",r),c(!1),function(){const e=t.current;if(void 0===e)return;const{rowIdx:o}=n;s(o<e?o+1:e,o<e?e+1:o),d(void 0)}()}1===e.buttons&&(c(!0),window.addEventListener("mouseover",o),window.addEventListener("mouseup",r))},onDoubleClick:function(o){o.stopPropagation(),s(n.rowIdx+1,e.length)}})}Le(".a888944700-beta11{fill:currentColor}.a888944700-beta11>path{transition:d .1s}",{insertAt:"top"});function Vo({sortDirection:e}){return void 0!==e?j("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:"rdg-sort-arrow a888944700-beta11","aria-hidden":!0,children:j("path",{d:"ASC"===e?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})}):null}const qo={idx:-1,rowIdx:-2,mode:"SELECT"};function Xo({columns:e,rows:o,summaryRows:n,rowKeyGetter:t,onRowsChange:r,rowHeight:l,headerRowHeight:i,summaryRowHeight:c,selectedRows:d,onSelectedRowsChange:s,sortColumns:a,onSortColumnsChange:u,defaultColumnOptions:f,groupBy:p,rowGrouper:_,expandedGroupIds:h,onExpandedGroupIdsChange:g,onRowClick:v,onRowDoubleClick:w,onScroll:b,onColumnResize:x,onFill:y,onCopy:C,onPaste:k,cellNavigationMode:R,enableVirtualization:I,components:S,className:E,style:z,rowClass:A,direction:O,"aria-label":F,"aria-labelledby":T,"aria-describedby":D,"data-testid":P},N){var H,M,G,L,W,K,U,$;const B=qe();null!=l||(l=35);const q=null!=i?i:"number"==typeof l?l:35,X=null!=c?c:"number"==typeof l?l:35,Y=null!=(H=null!=(M=null==S?void 0:S.rowRenderer)?M:null==B?void 0:B.rowRenderer)?H:No,J=null!=(G=null!=(L=null==S?void 0:S.sortIcon)?L:null==B?void 0:B.sortIcon)?G:Vo,Z=null!=(W=null!=(K=null==S?void 0:S.checkboxFormatter)?K:null==B?void 0:B.checkboxFormatter)?W:je,Q=null!=(U=null==S?void 0:S.noRowsFallback)?U:null==B?void 0:B.noRowsFallback,ee=null!=R?R:"NONE";null!=I||(I=!0),null!=O||(O="ltr");const[ne,ce]=oe(0),[de,se]=oe(0),[ae,ue]=oe((()=>new Map)),[fe,pe]=oe(qo),[_e,he]=oe(null),[ge,ve]=oe(!1),[we,be]=oe(void 0),[me,xe]=oe(null),ye=re(fe),Ce=re(we),ke=re(-1),Re=re(null),[Ie,Se,Ee]=function(){const e=re(null),[o,n]=oe(1),[t,r]=oe(1);return Ue((()=>{const{ResizeObserver:o}=window;if(null==o)return;const t=new o((()=>{const{clientWidth:o,clientHeight:t}=e.current;n(o-(devicePixelRatio%1==0?0:1)),r(t)}));return t.observe(e.current),()=>{t.disconnect()}}),[]),[e,o,t]}(),ze=null!=($=null==n?void 0:n.length)?$:0,Ae=Ee-q-ze*X,Oe=null!=d&&null!=s,Fe=-1===fe.rowIdx,Te="rtl"===O,De=Te?"ArrowRight":"ArrowLeft",Pe=Te?"ArrowLeft":"ArrowRight",Ne=le((()=>({sortIcon:J,checkboxFormatter:Z})),[J,Z]),He=le((()=>{const{length:e}=o;return 0!==e&&null!=d&&null!=t&&d.size>=e&&o.every((e=>d.has(t(e))))}),[o,d,t]),{columns:Me,colSpanColumns:Le,colOverscanStartIdx:We,colOverscanEndIdx:Ke,layoutCssVars:$e,columnMetrics:Be,totalColumnWidth:Xe,lastFrozenColumnIndex:Ze,totalFrozenColumnWidth:Qe,groupBy:eo}=function({rawColumns:e,columnWidths:o,viewportWidth:n,scrollLeft:t,defaultColumnOptions:r,rawGroupBy:l,enableVirtualization:i}){var c,d,s,a;const u=null!=(c=null==r?void 0:r.minWidth)?c:80,f=null!=(d=null==r?void 0:r.formatter)?d:Ye,p=null!=(s=null==r?void 0:r.sortable)&&s,_=null!=(a=null==r?void 0:r.resizable)&&a,{columns:h,colSpanColumns:g,lastFrozenColumnIndex:v,groupBy:w}=le((()=>{const o=[];let n=-1;const t=e.map((e=>{var o,t,r,i;const c=null!=(o=null==l?void 0:l.includes(e.key))&&o,d=c||e.frozen||!1,s={...e,idx:0,frozen:d,isLastFrozenColumn:!1,rowGroup:c,sortable:null!=(t=e.sortable)?t:p,resizable:null!=(r=e.resizable)?r:_,formatter:null!=(i=e.formatter)?i:f};return c&&(null!=s.groupFormatter||(s.groupFormatter=Je)),d&&n++,s}));t.sort((({key:e,frozen:o},{key:n,frozen:t})=>e===to?-1:n===to?1:null!=l&&l.includes(e)?l.includes(n)?l.indexOf(e)-l.indexOf(n):-1:null!=l&&l.includes(n)?1:o?t?0:-1:t?1:0));const r=[];return t.forEach(((e,n)=>{e.idx=n,e.rowGroup&&o.push(e.key),null!=e.colSpan&&r.push(e)})),-1!==n&&(t[n].isLastFrozenColumn=!0),{columns:t,colSpanColumns:r,lastFrozenColumnIndex:n,groupBy:o}}),[e,f,_,p,l]),{layoutCssVars:b,totalColumnWidth:m,totalFrozenColumnWidth:x,columnMetrics:y}=le((()=>{const e=new Map;let t=0,r=0,l=0,i="",c=0,d=0;for(const t of h){let r=Co(t,o,n);void 0===r?d++:(r=ko(r,t,u),c+=r,e.set(t,{width:r,left:0}))}for(const o of h){let l;if(e.has(o)){const n=e.get(o);n.left=t,({width:l}=n)}else l=ko(ho((n-c)/d),o,u),c+=l,d--,e.set(o,{width:l,left:t});r+=l,t+=l,i+=`${l}px `}if(-1!==v){const o=e.get(h[v]);l=o.left+o.width}const s={gridTemplateColumns:i};for(let o=0;o<=v;o++){const n=h[o];s[`--rdg-frozen-left-${n.idx}`]=`${e.get(n).left}px`}return{layoutCssVars:s,totalColumnWidth:r,totalFrozenColumnWidth:l,columnMetrics:e}}),[o,h,n,u,v]),[C,k]=le((()=>{if(!i)return[0,h.length-1];const e=t+x,o=t+n,r=h.length-1,l=po(v+1,r);if(e>=o)return[l,l];let c=l;for(;c<r;){const{left:o,width:n}=y.get(h[c]);if(o+n>e)break;c++}let d=c;for(;d<r;){const{left:e,width:n}=y.get(h[d]);if(e+n>=o)break;d++}return[_o(l,c-1),po(r,d+1)]}),[y,h,v,t,x,n,i]);return{columns:h,colSpanColumns:g,colOverscanStartIdx:C,colOverscanEndIdx:k,layoutCssVars:b,columnMetrics:y,totalColumnWidth:m,lastFrozenColumnIndex:v,totalFrozenColumnWidth:x,groupBy:w}}({rawColumns:e,columnWidths:ae,scrollLeft:de,viewportWidth:Se,defaultColumnOptions:f,rawGroupBy:_?p:void 0,enableVirtualization:I}),{rowOverscanStartIdx:no,rowOverscanEndIdx:ro,rows:so,rowsCount:uo,totalRowHeight:go,gridTemplateRows:mo,isGroupRow:xo,getRowTop:yo,getRowHeight:Io,findRowIdx:Eo}=So({rawRows:o,groupBy:eo,rowGrouper:_,rowHeight:l,clientHeight:Ae,scrollTop:ne,expandedGroupIds:h,enableVirtualization:I}),zo=function({columns:e,colSpanColumns:o,rows:n,summaryRows:t,colOverscanStartIdx:r,colOverscanEndIdx:l,lastFrozenColumnIndex:i,rowOverscanStartIdx:c,rowOverscanEndIdx:d,isGroupRow:s}){const a=le((()=>{if(0===r)return 0;let e=r;const l=(o,n)=>void 0!==n&&o+n>r&&(e=o,!0);for(const r of o){const o=r.idx;if(o>=e)break;if(l(o,lo(r,i,{type:"HEADER"})))break;for(let e=c;e<=d;e++){const t=n[e];if(!s(t)&&l(o,lo(r,i,{type:"ROW",row:t})))break}if(null!=t)for(const e of t)if(l(o,lo(r,i,{type:"SUMMARY",row:e})))break}return e}),[c,d,n,t,r,i,o,s]);return le((()=>{const o=[];for(let n=0;n<=l;n++){const t=e[n];n<a&&!t.frozen||o.push(t)}return o}),[a,l,e])}({columns:Me,colSpanColumns:Le,colOverscanStartIdx:We,colOverscanEndIdx:Ke,lastFrozenColumnIndex:Ze,rowOverscanStartIdx:no,rowOverscanEndIdx:ro,rows:so,summaryRows:n,isGroupRow:xo}),Ao=eo.length>0&&"function"==typeof _,Oo=Ao?-1:0,To=Me.length-1,Do=-1,Po=1+so.length+ze-2,Ho=un(fe),Mo=fn(fe),Go=Ro(nn),Wo=Ro((function(e){if(!s)return;bo(t);const n=new Set(d);for(const r of o){const o=t(r);e?n.add(o):n.delete(o)}s(n)})),Ko=Ro(cn),jo=Ro(((e,o,n)=>{_n({rowIdx:so.indexOf(e),idx:o.idx},n)})),Xo=Ro((e=>{_n({rowIdx:e,idx:-1})})),Jo=Ro((e=>{_n({rowIdx:-1,idx:e})})),Zo=Ro(((e,o)=>{_n({rowIdx:n.indexOf(e)+1+so.length-1,idx:o.idx})})),Qo=Ro(tn);Ue((()=>{Ho&&!Yo(fe,ye.current)?(ye.current=fe,hn(fe),-1===fe.idx&&Re.current.focus({preventScroll:!0})):ye.current=fe})),Ue((()=>{if(null===me)return;const e=Ie.current.querySelector(`[aria-colindex="${me.idx+1}"]`).clientWidth+2;ue((o=>{const n=new Map(o);return n.set(me.key,e),n})),xe(null),null==x||x(me.idx,e)}),[me,Ie,x]),function(e,o,n){V=6,te((function(){return"function"==typeof e?(e(o()),function(){return e(null)}):e?(e.current=o(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}(N,(()=>({element:Ie.current,scrollToColumn(e){hn({idx:e})},scrollToRow(e){const{current:o}=Ie;o&&o.scrollTo({top:yo(e),behavior:"smooth"})},selectCell:_n})));const en=ie(((e,o)=>{"auto"!==o?(ue((n=>{const t=new Map(n);return t.set(e.key,o),t})),null==x||x(e.idx,o)):xe(e)}),[x]),on=ie((e=>{be(e),Ce.current=e}),[]);function nn({row:e,checked:o,isShiftClick:n}){if(!s)return;bo(t);const r=new Set(d);if(xo(e)){for(const n of e.childRows){const e=t(n);o?r.add(e):r.delete(e)}return void s(r)}const l=t(e);if(o){r.add(l);const o=ke.current,i=so.indexOf(e);if(ke.current=i,n&&-1!==o&&o!==i){const e=vo(i-o);for(let n=o+e;n!==i;n+=e){const e=so[n];xo(e)||r.add(t(e))}}}else r.delete(l),ke.current=-1;s(r)}function tn(e){if(!g)return;const o=new Set(h);o.has(e)?o.delete(e):o.add(e),g(o)}function rn(e){if(!(e.target instanceof Element))return;const l=null!==e.target.closest(".rdg-cell"),i=Ao&&e.target===Re.current;if(!l&&!i)return;const{key:c,keyCode:s}=e,{rowIdx:a}=fe;if(Mo&&(null!=k||null!=C)&&co(e)&&!xo(so[a])&&"SELECT"===fe.mode){const e=86;if(s===67)return void function(){const{idx:e,rowIdx:n}=fe,t=o[ln(n)],r=Me[e].key;he({row:t,columnKey:r}),null==C||C({sourceRow:t,sourceColumnKey:r})}();if(s===e)return void function(){if(!k||!r||null===_e||!pn(fe))return;const{idx:e,rowIdx:n}=fe,t=o[ln(n)],l=k({sourceRow:_e.row,sourceColumnKey:_e.columnKey,targetRow:t,targetColumnKey:Me[e].key});cn(n,l)}()}if(an(a)){const o=so[a];if(xo(o)&&-1===fe.idx&&(c===De&&o.isExpanded||c===Pe&&!o.isExpanded))return e.preventDefault(),void tn(o.id)}switch(e.key){case"Escape":return void he(null);case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":!function(e){const{key:o,shiftKey:t}=e;let r=ee;if("Tab"===o){if(function({cellNavigationMode:e,maxColIdx:o,minRowIdx:n,maxRowIdx:t,selectedPosition:{rowIdx:r,idx:l},shiftKey:i}){if("NONE"===e||"CHANGE_ROW"===e){const e=l===o,c=0===l,d=r===t,s=r===n;return i?c&&s:e&&d}return!1}({shiftKey:t,cellNavigationMode:ee,maxColIdx:To,minRowIdx:Do,maxRowIdx:Po,selectedPosition:fe}))return void dn();r="NONE"===ee?"CHANGE_ROW":ee}e.preventDefault();const l=co(e),i=function(e,o,n){const{idx:t,rowIdx:r}=fe,l=so[r],i=Ho&&-1===t;if(e===De&&i&&xo(l)&&!l.isExpanded&&0!==l.level){let e=-1;for(let o=fe.rowIdx-1;o>=0;o--){const n=so[o];if(xo(n)&&n.id===l.parentId){e=o;break}}if(-1!==e)return{idx:t,rowIdx:e}}switch(e){case"ArrowUp":return{idx:t,rowIdx:r-1};case"ArrowDown":return{idx:t,rowIdx:r+1};case"ArrowLeft":return Te?{idx:t+1,rowIdx:r}:{idx:t-1,rowIdx:r};case"ArrowRight":return Te?{idx:t-1,rowIdx:r}:{idx:t+1,rowIdx:r};case"Tab":return{idx:t+(n?-1:1),rowIdx:r};case"Home":return i?{idx:t,rowIdx:0}:{idx:0,rowIdx:o?Do:r};case"End":return i?{idx:t,rowIdx:so.length-1}:{idx:To,rowIdx:o?Po:r};case"PageUp":{if(fe.rowIdx===Do)return fe;const e=yo(r)+Io(r)-Ae;return{idx:t,rowIdx:e>0?Eo(e):0}}case"PageDown":{if(fe.rowIdx>=so.length)return fe;const e=yo(r)+Ae;return{idx:t,rowIdx:e<go?Eo(e):so.length-1}}default:return fe}}(o,l,t);if(Yo(fe,i))return;_n(function({cellNavigationMode:e,columns:o,colSpanColumns:n,rows:t,summaryRows:r,minRowIdx:l,maxRowIdx:i,currentPosition:{idx:c},nextPosition:d,lastFrozenColumnIndex:s,isCellWithinBounds:a,isGroupRow:u}){let{idx:f,rowIdx:p}=d;const _=e=>{if(p>=0&&p<t.length){const e=t[p];if(u(e))return}for(const o of n){const n=o.idx;if(n>f)break;const l=fo({rows:t,summaryRows:r,rowIdx:p,lastFrozenColumnIndex:s,column:o,isGroupRow:u});if(l&&f>n&&f<l+n){f=n+(e?l:0);break}}};if(a(d)&&_(f-c>0),"NONE"!==e){const n=o.length,t=-1===f;f===n?"CHANGE_ROW"===e?p===i||(f=0,p+=1):f=0:t&&("CHANGE_ROW"===e?p===l||(p-=1,f=n-1):f=n-1,_(!1))}return{idx:f,rowIdx:p}}({columns:Me,colSpanColumns:Le,rows:so,summaryRows:n,minRowIdx:Do,maxRowIdx:Po,lastFrozenColumnIndex:Ze,cellNavigationMode:r,currentPosition:fe,nextPosition:i,isCellWithinBounds:un,isGroupRow:xo}))}(e);break;default:!function(e){var o;if(!Mo)return;const n=so[fe.rowIdx];if(xo(n))return;const{key:r,shiftKey:l}=e;if(Oe&&l&&" "===r){bo(t);const o=t(n);return nn({row:n,checked:!d.has(o),isShiftClick:!1}),void e.preventDefault()}const i=Me[fe.idx];if(null==(o=i.editorOptions)||null==o.onCellKeyDown||o.onCellKeyDown(e),e.isDefaultPrevented())return;pn(fe)&&function(e){return!io.has(e.key)}(e)&&pe((({idx:e,rowIdx:o})=>({idx:e,rowIdx:o,mode:"EDIT",row:n,originalRow:n})))}(e)}}function ln(e){return Ao?o.indexOf(so[e]):e}function cn(e,n){if("function"!=typeof r)return;const t=ln(e);if(n===o[t])return;const l=[...o];l[t]=n,r(l,{indexes:[t],column:Me[fe.idx]})}function dn(){"EDIT"===fe.mode&&cn(fe.rowIdx,fe.row)}function sn(e){return e>=Oo&&e<=To}function an(e){return e>=0&&e<so.length}function un({idx:e,rowIdx:o}){return o>=Do&&o<=Po&&sn(e)}function fn({idx:e,rowIdx:o}){return an(o)&&sn(e)}function pn(e){return fn(e)&&ao({columns:Me,rows:so,selectedPosition:e,isGroupRow:xo})}function _n(e,o){if(un(e))if(dn(),o&&pn(e)){const o=so[e.rowIdx];pe({...e,mode:"EDIT",row:o,originalRow:o})}else Yo(fe,e)?hn(e):pe({...e,mode:"SELECT"})}function hn({idx:e,rowIdx:o}){const{current:t}=Ie;if(t){if("number"==typeof e&&e>Ze){if(null!=o||(o=fe.rowIdx),!un({rowIdx:o,idx:e}))return;const{clientWidth:r}=t,l=Me[e],{left:i,width:c}=Be.get(l);let d=i+c;const s=fo({rows:so,summaryRows:n,rowIdx:o,lastFrozenColumnIndex:Ze,column:l,isGroupRow:xo});if(void 0!==s){const{left:e,width:o}=Be.get(Me[l.idx+s-1]);d=e+o}const a=d>r+de,u=Te?-1:1;i<de+Qe?t.scrollLeft=(i-Qe)*u:a&&(t.scrollLeft=(d-r)*u)}if("number"==typeof o&&an(o)){const e=yo(o),n=Io(o);e<ne?t.scrollTop=e:e+n>ne+Ae&&(t.scrollTop=e+n-Ae)}}}function gn(e){if(void 0===we)return;const{rowIdx:o}=fe;return(o<we?o<e&&e<=we:o>e&&e>=we)?fe.idx:void 0}function vn(e){if(fe.rowIdx===e&&"EDIT"!==fe.mode&&!Ao&&null!=y)return j(Bo,{rows:o,columns:Me,selectedPosition:fe,isCellEditable:pn,latestDraggedOverRowIdx:Ce,onRowsChange:r,onFill:y,setDragging:ve,setDraggedOverRowIdx:on})}function wn(e){if(fe.rowIdx!==e||"SELECT"===fe.mode)return;const{idx:o,row:n}=fe,t=Me[o],r=lo(t,Ze,{type:"ROW",row:n}),l=()=>{pe((({idx:e,rowIdx:o})=>({idx:e,rowIdx:o,mode:"SELECT"})))};return so[fe.rowIdx]!==fe.originalRow&&l(),j($o,{column:t,colSpan:r,row:n,onRowChange:(e,o)=>{o?(cn(fe.rowIdx,e),l()):pe((o=>({...o,row:e})))},closeEditor:l,scrollToCell:()=>{hn(fe)}},t.key)}(fe.idx>To||fe.rowIdx>Po)&&(pe(qo),on(void 0));let bn=`${q}px`;return so.length>0&&(bn+=mo),ze>0&&(bn+=` repeat(${ze}, ${X}px)`),j("div",{role:Ao?"treegrid":"grid","aria-label":F,"aria-labelledby":T,"aria-describedby":D,"aria-multiselectable":!!Oe||void 0,"aria-colcount":Me.length,"aria-rowcount":1+uo+ze,className:Ge("rdg r104f42s700-beta11",E,ge&&"rdg-viewport-dragging v7ly7s700-beta11",null!==me&&"cd0kgiy700-beta11"),style:{...z,gridTemplateRows:bn,"--rdg-header-row-height":`${q}px`,"--rdg-grid-inline-size":`${Xe}px`,"--rdg-summary-row-height":`${X}px`,"--rdg-grid-block-size":`${_o(go,Ae)+q+ze*X}px`,"--rdg-sign":Te?-1:1,...function(){if(null===me)return $e;const{gridTemplateColumns:e}=$e,o=e.split(" ");return o[me.idx]="max-content",{...$e,gridTemplateColumns:o.join(" ")}}()},dir:O,ref:Ie,onScroll:function(e){const{scrollTop:o,scrollLeft:n}=e.currentTarget;ce(o),se(wo(n)),null==b||b(e)},onKeyDown:rn,"data-testid":P,children:[Ao&&j("div",{ref:Re,tabIndex:-1===fe.idx&&-2!==fe.rowIdx?0:-1,className:"fc4f4zb700-beta11",style:{gridRowStart:fe.rowIdx+2},onKeyDown:rn}),j(Ve,{value:Ne,children:[j(Fo,{columns:zo,onColumnResize:en,allRowsSelected:He,onAllRowsSelectionChange:Wo,sortColumns:a,onSortColumnsChange:u,lastFrozenColumnIndex:Ze,selectedCellIdx:Fe?fe.idx:void 0,selectCell:Jo,shouldFocusGrid:!Ho,direction:O}),0===so.length&&Q?Q:j(m,{children:[j(oo,{value:Go,children:function(){const e=[];let o=0;const{idx:n,rowIdx:r}=fe,l=Mo&&r>ro?ro+1:ro;for(let c=Mo&&r<no?no-1:no;c<=l;c++){const l=c===no-1||c===ro+1,s=l?r:c;let a=zo;const u=Me[n];void 0!==u&&(l?a=[u]:r!==s||zo.includes(u)||(a=n>zo[zo.length-1].idx?[...zo,u]:[...zo.slice(0,Ze+1),u,...zo.slice(Ze+1)]));const f=so[s],p=1+s+1;if(xo(f)){({startRowIndex:o}=f);const l=Oe&&f.childRows.every((e=>d.has(t(e))));e.push(j(Lo,{"aria-level":f.level+1,"aria-setsize":f.setSize,"aria-posinset":f.posInSet+1,"aria-rowindex":1+o+1,"aria-selected":Oe?l:void 0,id:f.id,groupKey:f.groupKey,viewportColumns:a,childRows:f.childRows,rowIdx:s,row:f,gridRowStart:p,height:Io(s),level:f.level,isExpanded:f.isExpanded,selectedCellIdx:r===s?n:void 0,isRowSelected:l,selectGroup:Xo,toggleGroup:Qo},f.id));continue}let _;o++;let h=!1;var i;if("function"==typeof t)_=t(f),h=null!=(i=null==d?void 0:d.has(_))&&i;else _=Ao?o:s;e.push(j(Y,{"aria-rowindex":1+(Ao?o:s)+1,"aria-selected":Oe?h:void 0,rowIdx:s,row:f,viewportColumns:a,isRowSelected:h,onRowClick:v,onRowDoubleClick:w,rowClass:A,gridRowStart:p,height:Io(s),copiedCellIdx:null!==_e&&_e.row===f?Me.findIndex((e=>e.key===_e.columnKey)):void 0,selectedCellIdx:r===s?n:void 0,draggedOverCellIdx:gn(s),setDraggedOverRowIdx:ge?on:void 0,lastFrozenColumnIndex:Ze,onRowChange:Ko,selectCell:jo,selectedCellDragHandle:vn(s),selectedCellEditor:wn(s)},_))}return e}()}),null==n?void 0:n.map(((e,o)=>{const t=1+so.length+o+1,r=fe.rowIdx===1+so.length+o-1,l=Ae>go?Ee-X*(n.length-o):void 0,i=void 0===l?X*(n.length-1-o):void 0;return j(Uo,{"aria-rowindex":1+uo+o+1,rowIdx:o,gridRowStart:t,row:e,top:l,bottom:i,viewportColumns:zo,lastFrozenColumnIndex:Ze,selectedCellIdx:r?fe.idx:void 0,selectCell:Zo},o)}))]})]})]})}function Yo(e,o){return e.idx===o.idx&&e.rowIdx===o.rowIdx}const Jo=me(Xo);Le(".t16y9g8l700-beta11{appearance:none;background-color:var(--rdg-background-color);block-size:100%;border:2px solid #ccc;box-sizing:border-box;color:var(--rdg-color);font-family:inherit;font-size:var(--rdg-font-size);inline-size:100%;padding-block:0;padding-inline:6px;vertical-align:top}.t16y9g8l700-beta11:focus{border-color:var(--rdg-selection-color);outline:none}.t16y9g8l700-beta11::placeholder{color:#999;opacity:1}",{insertAt:"top"});function Zo(e,o,n){var t=o;return l([],e,!0).sort((function(e,o){return e[t]<o[t]?n?1:-1:e[t]>o[t]?n?-1:1:0}))}!function(e,o){void 0===o&&(o={});var n=o.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".dgrid2_Table .rdg{font-family:monospace,Courier New,Courier}.dgrid2_Table .rdg-checkbox-label .rdg-checkbox{block-size:16px;border-width:2px;box-shadow:inset 0 0 0 3px var(--rdg-background-color);inline-size:16px}");var Qo=function(e){var o=e.columns,n=e.data,t=e.onRowClickCallback,r=e.sort,i=e.darkMode,c=void 0!==i&&i,d=e.multiSelect,s=void 0!==d&&d,a=oe([]),u=a[0],f=a[1],p=oe(),_=p[0],h=p[1],g=oe([]),v=g[0],w=g[1],b=oe((function(){return new Set})),m=b[0],x=b[1];ne((function(){f(l(l([],s?[ro]:[],!0),o.map((function(e){return{key:e,name:e,resizable:!0,sortable:!0,minWidth:80}})),!0))}),[o,s]);var y=ie((function(e){var o=e.slice(-1)[0],n=void 0!==o,t="DESC"===(null==o?void 0:o.direction);h(o),w(Zo(v,n?o.columnKey:"key",!!n&&t))}),[v]),C=ie((function(e){return e.key}),[]),k=ie((function(e){x(e),t(v.filter((function(o){return e.has(C(o))})))}),[v,t,C]),R=ie((function(e,o){t(v.filter((function(o){return C(o)===C(e)})))}),[v,t,C]);return ne((function(){var e=n.map((function(e,n){var t={key:n};return o.forEach((function(o,n){t[o]=e[n]})),t}));(null==r?void 0:r.attribute)&&(e=Zo(e,r.attribute,r.descending)),w(e)}),[o,n,r]),j(Jo,{columns:u,headerRowHeight:24,rows:v,rowKeyGetter:C,rowHeight:20,className:c?"rdg-dark":"rdg-light",sortColumns:_?[_]:[],onSortColumnsChange:y,selectedRows:m,onSelectedRowsChange:s?k:void 0,onRowClick:s?void 0:R,"aria-describedby":"","aria-label":"","aria-labelledby":"",style:{height:"100%"}})},en=function(e){function l(){return e.call(this)||this}return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function t(){this.constructor=e}n(e,o),e.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)}(l,e),l.prototype.renderTable=function(){var e=this;return j(Qo,{columns:this.columns(),data:this.data(),darkMode:this.darkMode(),onRowClickCallback:function(o,n){var t;void 0===n&&(n=""),e._prevRow&&JSON.stringify(e._prevRow)!==JSON.stringify(o)&&e.click(e._prevRow,null!==(t=e._prevColumn)&&void 0!==t?t:"",!1),o&&e.click(o,n,!0),e._prevRow=o,e._prevColumn=n}})},l.prototype.enter=function(o,n){e.prototype.enter.call(this,o,n),this._div=n.append("div")},l.prototype.update=function(o,n){e.prototype.update.call(this,o,n),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),function(e,o,n){null==o.__k&&(o.textContent=""),L(e,o),"function"==typeof n&&n(),e&&e.__c}(this.renderTable(),this._div.node())},l.prototype.exit=function(o,n){!function(e){!!e.__k&&L(null,e)}(this._div.node()),this._div.remove(),e.prototype.exit.call(this,o,n)},l.prototype.click=function(e,o,n){},t([o.publish(!1,"boolean","Dark Mode"),r("design:type",Function)],l.prototype,"darkMode",void 0),t([o.publish(!1,"boolean","Multiple Selection"),r("design:type",Function)],l.prototype,"multiSelect",void 0),l}(o.HTMLWidget);en.prototype._class+=" dgrid2_Table",e.BUILD_VERSION="2.103.0",e.PKG_NAME="@hpcc-js/dgrid2",e.PKG_VERSION="2.1.0",e.Table=en,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self)["@hpcc-js/dgrid2"]={},e["@hpcc-js/common"])}(this,(function(e,o){"use strict";var n=function(e,o){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])},n(e,o)};function t(e,o,n,t){var r,l=arguments.length,i=l<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,n):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,o,n,t);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(i=(l<3?r(i):l>3?r(o,n,i):r(o,n))||i);return l>3&&i&&Object.defineProperty(o,n,i),i}function r(e,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,o)}function l(e,o,n){if(n||2===arguments.length)for(var t,r=0,l=o.length;r<l;r++)!t&&r in o||(t||(t=Array.prototype.slice.call(o,0,r)),t[r]=o[r]);return e.concat(t||Array.prototype.slice.call(o))}var i,c,a,u,s,d,f,_={},p=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function v(e,o){for(var n in o)e[n]=o[n];return e}function g(e){var o=e.parentNode;o&&o.removeChild(e)}function w(e,o,n){var t,r,l,c={};for(l in o)"key"==l?t=o[l]:"ref"==l?r=o[l]:c[l]=o[l];if(arguments.length>2&&(c.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===c[l]&&(c[l]=e.defaultProps[l]);return y(e,c,t,r,null)}function y(e,o,n,t,r){var l={type:e,props:o,key:n,ref:t,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++a:r};return null==r&&null!=c.vnode&&c.vnode(l),l}function m(e){return e.children}function x(e,o){this.props=e,this.context=o}function b(e,o){if(null==o)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;o<e.__k.length;o++)if(null!=(n=e.__k[o])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function C(e){var o,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,o=0;o<e.__k.length;o++)if(null!=(n=e.__k[o])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return C(e)}}function k(e){(!e.__d&&(e.__d=!0)&&u.push(e)&&!R.__r++||d!==c.debounceRendering)&&((d=c.debounceRendering)||s)(R)}function R(){for(var e;R.__r=u.length;)e=u.sort((function(e,o){return e.__v.__b-o.__v.__b})),u=[],e.some((function(e){var o,n,t,r,l,i;e.__d&&(l=(r=(o=e).__v).__e,(i=o.__P)&&(n=[],(t=v({},r)).__v=r.__v+1,D(i,r,t,o.__n,void 0!==i.ownerSVGElement,null!=r.__h?[l]:null,n,null==l?b(r):l,r.__h),A(n,r),r.__e!=l&&C(r)))}))}function I(e,o,n,t,r,l,i,c,a,u){var s,d,f,h,v,g,w,x=t&&t.__k||p,C=x.length;for(n.__k=[],s=0;s<o.length;s++)if(null!=(h=n.__k[s]=null==(h=o[s])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?y(null,h,null,null,h):Array.isArray(h)?y(m,{children:h},null,null,null):h.__b>0?y(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(f=x[s])||f&&h.key==f.key&&h.type===f.type)x[s]=void 0;else for(d=0;d<C;d++){if((f=x[d])&&h.key==f.key&&h.type===f.type){x[d]=void 0;break}f=null}D(e,h,f=f||_,r,l,i,c,a,u),v=h.__e,(d=h.ref)&&f.ref!=d&&(w||(w=[]),f.ref&&w.push(f.ref,null,h),w.push(d,h.__c||v,h)),null!=v?(null==g&&(g=v),"function"==typeof h.type&&h.__k===f.__k?h.__d=a=S(h,a,e):a=z(e,h,f,x,v,a),"function"==typeof n.type&&(n.__d=a)):a&&f.__e==a&&a.parentNode!=e&&(a=b(f))}for(n.__e=g,s=C;s--;)null!=x[s]&&("function"==typeof n.type&&null!=x[s].__e&&x[s].__e==n.__d&&(n.__d=b(t,s+1)),L(x[s],x[s]));if(w)for(s=0;s<w.length;s++)F(w[s],w[++s],w[++s])}function S(e,o,n){for(var t,r=e.__k,l=0;r&&l<r.length;l++)(t=r[l])&&(t.__=e,o="function"==typeof t.type?S(t,o,n):z(n,t,t,r,t.__e,o));return o}function E(e,o){return o=o||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){E(e,o)})):o.push(e)),o}function z(e,o,n,t,r,l){var i,c,a;if(void 0!==o.__d)i=o.__d,o.__d=void 0;else if(null==n||r!=l||null==r.parentNode)e:if(null==l||l.parentNode!==e)e.appendChild(r),i=null;else{for(c=l,a=0;(c=c.nextSibling)&&a<t.length;a+=2)if(c==r)break e;e.insertBefore(r,l),i=l}return void 0!==i?i:r.nextSibling}function T(e,o,n){"-"===o[0]?e.setProperty(o,n):e[o]=null==n?"":"number"!=typeof n||h.test(o)?n:n+"px"}function O(e,o,n,t,r){var l;e:if("style"===o)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof t&&(e.style.cssText=t=""),t)for(o in t)n&&o in n||T(e.style,o,"");if(n)for(o in n)t&&n[o]===t[o]||T(e.style,o,n[o])}else if("o"===o[0]&&"n"===o[1])l=o!==(o=o.replace(/Capture$/,"")),o=o.toLowerCase()in e?o.toLowerCase().slice(2):o.slice(2),e.l||(e.l={}),e.l[o+l]=n,n?t||e.addEventListener(o,l?N:P,l):e.removeEventListener(o,l?N:P,l);else if("dangerouslySetInnerHTML"!==o){if(r)o=o.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==o&&"list"!==o&&"form"!==o&&"tabIndex"!==o&&"download"!==o&&o in e)try{e[o]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===o[0]&&"r"===o[1])?e.setAttribute(o,n):e.removeAttribute(o))}}function P(e){this.l[e.type+!1](c.event?c.event(e):e)}function N(e){this.l[e.type+!0](c.event?c.event(e):e)}function D(e,o,n,t,r,l,i,a,u){var s,d,f,_,p,h,g,w,y,b,C,k=o.type;if(void 0!==o.constructor)return null;null!=n.__h&&(u=n.__h,a=o.__e=n.__e,o.__h=null,l=[a]),(s=c.__b)&&s(o);try{e:if("function"==typeof k){if(w=o.props,y=(s=k.contextType)&&t[s.__c],b=s?y?y.props.value:s.__:t,n.__c?g=(d=o.__c=n.__c).__=d.__E:("prototype"in k&&k.prototype.render?o.__c=d=new k(w,b):(o.__c=d=new x(w,b),d.constructor=k,d.render=M),y&&y.sub(d),d.props=w,d.state||(d.state={}),d.context=b,d.__n=t,f=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=k.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=v({},d.__s)),v(d.__s,k.getDerivedStateFromProps(w,d.__s))),_=d.props,p=d.state,f)null==k.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==k.getDerivedStateFromProps&&w!==_&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(w,b),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(w,d.__s,b)||o.__v===n.__v){d.props=w,d.state=d.__s,o.__v!==n.__v&&(d.__d=!1),d.__v=o,o.__e=n.__e,o.__k=n.__k,o.__k.forEach((function(e){e&&(e.__=o)})),d.__h.length&&i.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(w,d.__s,b),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(_,p,h)}))}d.context=b,d.props=w,d.state=d.__s,(s=c.__r)&&s(o),d.__d=!1,d.__v=o,d.__P=e,s=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(t=v(v({},t),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(h=d.getSnapshotBeforeUpdate(_,p)),C=null!=s&&s.type===m&&null==s.key?s.props.children:s,I(e,Array.isArray(C)?C:[C],o,n,t,r,l,i,a,u),d.base=o.__e,o.__h=null,d.__h.length&&i.push(d),g&&(d.__E=d.__=null),d.__e=!1}else null==l&&o.__v===n.__v?(o.__k=n.__k,o.__e=n.__e):o.__e=H(n.__e,o,n,t,r,l,i,u);(s=c.diffed)&&s(o)}catch(e){o.__v=null,(u||null!=l)&&(o.__e=a,o.__h=!!u,l[l.indexOf(a)]=null),c.__e(e,o,n)}}function A(e,o){c.__c&&c.__c(o,e),e.some((function(o){try{e=o.__h,o.__h=[],e.some((function(e){e.call(o)}))}catch(e){c.__e(e,o.__v)}}))}function H(e,o,n,t,r,l,c,a){var u,s,d,f=n.props,p=o.props,h=o.type,v=0;if("svg"===h&&(r=!0),null!=l)for(;v<l.length;v++)if((u=l[v])&&"setAttribute"in u==!!h&&(h?u.localName===h:3===u.nodeType)){e=u,l[v]=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),l=null,a=!1}if(null===h)f===p||a&&e.data===p||(e.data=p);else{if(l=l&&i.call(e.childNodes),s=(f=n.props||_).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!a){if(null!=l)for(f={},v=0;v<e.attributes.length;v++)f[e.attributes[v].name]=e.attributes[v].value;(d||s)&&(d&&(s&&d.__html==s.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,o,n,t,r){var l;for(l in n)"children"===l||"key"===l||l in o||O(e,l,null,n[l],t);for(l in o)r&&"function"!=typeof o[l]||"children"===l||"key"===l||"value"===l||"checked"===l||n[l]===o[l]||O(e,l,o[l],n[l],t)}(e,p,f,r,a),d)o.__k=[];else if(v=o.props.children,I(e,Array.isArray(v)?v:[v],o,n,t,r&&"foreignObject"!==h,l,c,l?l[0]:n.__k&&b(n,0),a),null!=l)for(v=l.length;v--;)null!=l[v]&&g(l[v]);a||("value"in p&&void 0!==(v=p.value)&&(v!==e.value||"progress"===h&&!v||"option"===h&&v!==f.value)&&O(e,"value",v,f.value,!1),"checked"in p&&void 0!==(v=p.checked)&&v!==e.checked&&O(e,"checked",v,f.checked,!1))}return e}function F(e,o,n){try{"function"==typeof e?e(o):e.current=o}catch(e){c.__e(e,n)}}function L(e,o,n){var t,r;if(c.unmount&&c.unmount(e),(t=e.ref)&&(t.current&&t.current!==e.__e||F(t,null,o)),null!=(t=e.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount()}catch(e){c.__e(e,o)}t.base=t.__P=null}if(t=e.__k)for(r=0;r<t.length;r++)t[r]&&L(t[r],o,"function"!=typeof e.type);n||null==e.__e||g(e.__e),e.__e=e.__d=void 0}function M(e,o,n){return this.constructor(e,n)}function G(e,o,n){var t,r,l;c.__&&c.__(e,o),r=(t="function"==typeof n)?null:n&&n.__k||o.__k,l=[],D(o,e=(!t&&n||o).__k=w(m,null,[e]),r||_,_,void 0!==o.ownerSVGElement,!t&&n?[n]:r?null:o.firstChild?i.call(o.childNodes):null,l,!t&&n?n:r?r.__e:o.firstChild,t),A(l,e)}function W(e,o){var n={__c:o="__cC"+f++,__:e,Consumer:function(e,o){return e.children(o)},Provider:function(e){var n,t;return this.getChildContext||(n=[],(t={})[o]=this,this.getChildContext=function(){return t},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(k)},this.sub=function(e){n.push(e);var o=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),o&&o.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}i=p.slice,c={__e:function(e,o,n,t){for(var r,l,i;o=o.__;)if((r=o.__c)&&!r.__)try{if((l=r.constructor)&&null!=l.getDerivedStateFromError&&(r.setState(l.getDerivedStateFromError(e)),i=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,t||{}),i=r.__d),i)return r.__E=r}catch(o){e=o}throw e}},a=0,x.prototype.setState=function(e,o){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof e&&(e=e(v({},n),this.props)),e&&v(n,e),null!=e&&this.__v&&(o&&this.__h.push(o),k(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},x.prototype.render=m,u=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,R.__r=0,f=0;var K,U,j,B=0,$=[],V=c.__b,q=c.__r,J=c.diffed,X=c.__c,Y=c.unmount;function Z(e,o){c.__h&&c.__h(U,e,B||o),B=0;var n=U.__H||(U.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Q(e){return B=1,function(e,o,n){var t=Z(K++,2);return t.t=e,t.__c||(t.__=[n?n(o):de(void 0,o),function(e){var o=t.t(t.__[0],e);t.__[0]!==o&&(t.__=[o,t.__[1]],t.__c.setState({}))}],t.__c=U),t.__}(de,e)}function ee(e,o){var n=Z(K++,3);!c.__s&&se(n.__H,o)&&(n.__=e,n.__H=o,U.__H.__h.push(n))}function oe(e,o){var n=Z(K++,4);!c.__s&&se(n.__H,o)&&(n.__=e,n.__H=o,U.__h.push(n))}function ne(e){return B=5,te((function(){return{current:e}}),[])}function te(e,o){var n=Z(K++,7);return se(n.__H,o)&&(n.__=e(),n.__H=o,n.__h=e),n.__}function re(e,o){return B=8,te((function(){return e}),o)}function le(e){var o=U.context[e.__c],n=Z(K++,9);return n.c=e,o?(null==n.__&&(n.__=!0,o.sub(U)),o.props.value):e.__}function ie(){for(var e;e=$.shift();)if(e.__P)try{e.__H.__h.forEach(ae),e.__H.__h.forEach(ue),e.__H.__h=[]}catch(o){e.__H.__h=[],c.__e(o,e.__v)}}c.__b=function(e){U=null,V&&V(e)},c.__r=function(e){q&&q(e),K=0;var o=(U=e.__c).__H;o&&(o.__h.forEach(ae),o.__h.forEach(ue),o.__h=[])},c.diffed=function(e){J&&J(e);var o=e.__c;o&&o.__H&&o.__H.__h.length&&(1!==$.push(o)&&j===c.requestAnimationFrame||((j=c.requestAnimationFrame)||function(e){var o,n=function(){clearTimeout(t),ce&&cancelAnimationFrame(o),setTimeout(e)},t=setTimeout(n,100);ce&&(o=requestAnimationFrame(n))})(ie)),U=null},c.__c=function(e,o){o.some((function(e){try{e.__h.forEach(ae),e.__h=e.__h.filter((function(e){return!e.__||ue(e)}))}catch(n){o.some((function(e){e.__h&&(e.__h=[])})),o=[],c.__e(n,e.__v)}})),X&&X(e,o)},c.unmount=function(e){Y&&Y(e);var o,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ae(e)}catch(e){o=e}})),o&&c.__e(o,n.__v))};var ce="function"==typeof requestAnimationFrame;function ae(e){var o=U,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),U=o}function ue(e){var o=U;e.__c=e.__(),U=o}function se(e,o){return!e||e.length!==o.length||o.some((function(o,n){return o!==e[n]}))}function de(e,o){return"function"==typeof o?o(e):o}function fe(e,o){for(var n in o)e[n]=o[n];return e}function _e(e,o){for(var n in e)if("__source"!==n&&!(n in o))return!0;for(var t in o)if("__source"!==t&&e[t]!==o[t])return!0;return!1}function pe(e){this.props=e}function he(e,o){function n(e){var n=this.props.ref,t=n==e.ref;return!t&&n&&(n.call?n(null):n.current=null),o?!o(this.props,e)||!t:_e(this.props,e)}function t(o){return this.shouldComponentUpdate=n,w(e,o)}return t.displayName="Memo("+(e.displayName||e.name)+")",t.prototype.isReactComponent=!0,t.__f=!0,t}(pe.prototype=new x).isPureReactComponent=!0,pe.prototype.shouldComponentUpdate=function(e,o){return _e(this.props,e)||_e(this.state,o)};var ve=c.__b;c.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ve&&ve(e)};var ge="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function we(e){function o(o){var n=fe({},o);return delete n.ref,e(n,o.ref||null)}return o.$$typeof=ge,o.render=o,o.prototype.isReactComponent=o.__f=!0,o.displayName="ForwardRef("+(e.displayName||e.name)+")",o}var ye=c.__e;c.__e=function(e,o,n,t){if(e.then)for(var r,l=o;l=l.__;)if((r=l.__c)&&r.__c)return null==o.__e&&(o.__e=n.__e,o.__k=n.__k),r.__c(e,o);ye(e,o,n,t)};var me=c.unmount;function xe(){this.__u=0,this.t=null,this.__b=null}function be(e){var o=e.__.__c;return o&&o.__e&&o.__e(e)}function Ce(){this.u=null,this.o=null}c.unmount=function(e){var o=e.__c;o&&o.__R&&o.__R(),o&&!0===e.__h&&(e.type=null),me&&me(e)},(xe.prototype=new x).__c=function(e,o){var n=o.__c,t=this;null==t.t&&(t.t=[]),t.t.push(n);var r=be(t.__v),l=!1,i=function(){l||(l=!0,n.__R=null,r?r(c):c())};n.__R=i;var c=function(){if(!--t.__u){if(t.state.__e){var e=t.state.__e;t.__v.__k[0]=function e(o,n,t){return o&&(o.__v=null,o.__k=o.__k&&o.__k.map((function(o){return e(o,n,t)})),o.__c&&o.__c.__P===n&&(o.__e&&t.insertBefore(o.__e,o.__d),o.__c.__e=!0,o.__c.__P=t)),o}(e,e.__c.__P,e.__c.__O)}var o;for(t.setState({__e:t.__b=null});o=t.t.pop();)o.forceUpdate()}},a=!0===o.__h;t.__u++||a||t.setState({__e:t.__b=t.__v.__k[0]}),e.then(i,i)},xe.prototype.componentWillUnmount=function(){this.t=[]},xe.prototype.render=function(e,o){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),t=this.__v.__k[0].__c;this.__v.__k[0]=function e(o,n,t){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),o.__c.__H=null),null!=(o=fe({},o)).__c&&(o.__c.__P===t&&(o.__c.__P=n),o.__c=null),o.__k=o.__k&&o.__k.map((function(o){return e(o,n,t)}))),o}(this.__b,n,t.__O=t.__P)}this.__b=null}var r=o.__e&&w(m,null,e.fallback);return r&&(r.__h=null),[w(m,null,o.__e?null:e.children),r]};var ke=function(e,o,n){if(++n[1]===n[0]&&e.o.delete(o),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Re(e){return this.getChildContext=function(){return e.context},e.children}function Ie(e){var o=this,n=e.i;o.componentWillUnmount=function(){G(null,o.l),o.l=null,o.i=null},o.i&&o.i!==n&&o.componentWillUnmount(),e.__v?(o.l||(o.i=n,o.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),o.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),o.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),o.i.removeChild(e)}}),G(w(Re,{context:o.context},e.__v),o.l)):o.l&&o.componentWillUnmount()}function Se(e,o){return w(Ie,{__v:e,i:o})}(Ce.prototype=new x).__e=function(e){var o=this,n=be(o.__v),t=o.o.get(e);return t[0]++,function(r){var l=function(){o.props.revealOrder?(t.push(r),ke(o,e,t)):r()};n?n(l):l()}},Ce.prototype.render=function(e){this.u=null,this.o=new Map;var o=E(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&o.reverse();for(var n=o.length;n--;)this.o.set(o[n],this.u=[1,0,this.u]);return e.children},Ce.prototype.componentDidUpdate=Ce.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(o,n){ke(e,n,o)}))};var Ee="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ze=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Te="undefined"!=typeof document,Oe=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(o){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:o})}})}));var Pe=c.event;function Ne(){}function De(){return this.cancelBubble}function Ae(){return this.defaultPrevented}c.event=function(e){return Pe&&(e=Pe(e)),e.persist=Ne,e.isPropagationStopped=De,e.isDefaultPrevented=Ae,e.nativeEvent=e};var He={configurable:!0,get:function(){return this.class}},Fe=c.vnode;c.vnode=function(e){var o=e.type,n=e.props,t=n;if("string"==typeof o){var r=-1===o.indexOf("-");for(var l in t={},n){var i=n[l];Te&&"children"===l&&"noscript"===o||"value"===l&&"defaultValue"in n&&null==i||("defaultValue"===l&&"value"in n&&null==n.value?l="value":"download"===l&&!0===i?i="":/ondoubleclick/i.test(l)?l="ondblclick":/^onchange(textarea|input)/i.test(l+o)&&!Oe(n.type)?l="oninput":/^onfocus$/i.test(l)?l="onfocusin":/^onblur$/i.test(l)?l="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(l)?l=l.toLowerCase():r&&ze.test(l)?l=l.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),t[l]=i)}"select"==o&&t.multiple&&Array.isArray(t.value)&&(t.value=E(n.children).forEach((function(e){e.props.selected=-1!=t.value.indexOf(e.props.value)}))),"select"==o&&null!=t.defaultValue&&(t.value=E(n.children).forEach((function(e){e.props.selected=t.multiple?-1!=t.defaultValue.indexOf(e.props.value):t.defaultValue==e.props.value}))),e.props=t,n.class!=n.className&&(He.enumerable="className"in n,null!=n.className&&(t.class=n.className),Object.defineProperty(t,"className",He))}e.$$typeof=Ee,Fe&&Fe(e)};var Le=c.__r;function Me(e){var o,n,t="";if("string"==typeof e||"number"==typeof e)t+=e;else if("object"==typeof e)if(Array.isArray(e))for(o=0;o<e.length;o++)e[o]&&(n=Me(e[o]))&&(t&&(t+=" "),t+=n);else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function Ge(){for(var e,o,n=0,t="";n<arguments.length;)(e=arguments[n++])&&(o=Me(e))&&(t&&(t+=" "),t+=o);return t}c.__r=function(e){Le&&Le(e)};var We=0;function Ke(e,o,n,t,r){var l,i,a={};for(i in o)"ref"==i?l=o[i]:a[i]=o[i];var u={type:e,props:a,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--We,__source:r,__self:t};if("function"==typeof e&&(l=e.defaultProps))for(i in l)void 0===a[i]&&(a[i]=l[i]);return c.vnode&&c.vnode(u),u}function Ue(e,o){void 0===o&&(o={});var n=o.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}Ue(".c1wupbe700-canary49{contain:strict;contain:size layout style paint;padding:0 8px;border-right:1px solid var(--border-color);border-bottom:1px solid var(--border-color);background-color:inherit;white-space:nowrap;overflow:hidden;overflow:clip;text-overflow:ellipsis}.c1wupbe700-canary49[aria-selected=true]{box-shadow:inset 0 0 0 2px var(--selection-color)}.cd0kgiy700-canary49{position:sticky;z-index:1}.c1730fa4700-canary49{box-shadow:2px 0 5px -2px hsla(0,0%,53.3%,.3)}");Ue(".r104f42s700-canary49{--color:#000;--border-color:#ddd;--summary-border-color:#aaa;--background-color:hsl(0deg 0% 100%);--header-background-color:hsl(0deg 0% 97.5%);--row-hover-background-color:hsl(0deg 0% 96%);--row-selected-background-color:hsl(207deg 76% 92%);--row-selected-hover-background-color:hsl(207deg 76% 88%);--checkbox-color:hsl(207deg 100% 29%);--checkbox-focus-color:hsl(207deg 100% 69%);--checkbox-disabled-border-color:#ccc;--checkbox-disabled-background-color:#ddd;--selection-color:#66afe9;--font-size:14px;contain:strict;contain:size layout style paint;content-visibility:auto;height:350px;border:1px solid var(--border-color);box-sizing:border-box;overflow:auto;user-select:none;background-color:var(--background-color);color:var(--color);font-size:var(--font-size)}@supports not (contain:strict){.r104f42s700-canary49{position:relative;z-index:0}}.r104f42s700-canary49 *,.r104f42s700-canary49 :after,.r104f42s700-canary49 :before{box-sizing:inherit}.r104f42s700-canary49.rdg-dark{--color:#ddd;--border-color:#444;--summary-border-color:#555;--background-color:hsl(0deg 0% 13%);--header-background-color:hsl(0deg 0% 10.5%);--row-hover-background-color:hsl(0deg 0% 9%);--row-selected-background-color:hsl(207deg 76% 42%);--row-selected-hover-background-color:hsl(207deg 76% 38%);--checkbox-color:hsl(207deg 100% 79%);--checkbox-focus-color:hsl(207deg 100% 89%);--checkbox-disabled-border-color:#000;--checkbox-disabled-background-color:#333}@media (prefers-color-scheme:dark){.r104f42s700-canary49:not(.rdg-light){--color:#ddd;--border-color:#444;--summary-border-color:#555;--background-color:hsl(0deg 0% 13%);--header-background-color:hsl(0deg 0% 10.5%);--row-hover-background-color:hsl(0deg 0% 9%);--row-selected-background-color:hsl(207deg 76% 42%);--row-selected-hover-background-color:hsl(207deg 76% 38%);--checkbox-color:hsl(207deg 100% 79%);--checkbox-focus-color:hsl(207deg 100% 89%);--checkbox-disabled-border-color:#000;--checkbox-disabled-background-color:#333}}.f7ly7s700-canary49{position:sticky;top:0;left:0;height:0;width:0;outline:0}.vc4f4zb700-canary49.r1otpg64700-canary49{cursor:move}");Ue('.g1cvx5us700-canary49:not([aria-selected=true]){background-color:var(--header-background-color)}.g1cvx5us700-canary49>.c1wupbe700-canary49:not(:last-child):not(.c1730fa4700-canary49){border-right:none}.g1j2w62i700-canary49:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;box-shadow:inset 0 0 0 2px var(--selection-color);pointer-events:none;z-index:2}.g1j2w62i700-canary49>.c1wupbe700-canary49:first-child{box-shadow:inset 2px 0 0 0 var(--selection-color)}');const je="rdg-group-row-selected g1j2w62i700-canary49";Ue(".h1fquj5h700-canary49{contain:strict;contain:size layout style paint;display:grid;grid-template-columns:var(--template-columns);grid-template-rows:var(--header-row-height);height:var(--header-row-height);line-height:var(--header-row-height);width:var(--row-width);position:sticky;top:0;background-color:var(--header-background-color);font-weight:700;z-index:3;touch-action:none}");Ue(".r1otpg64700-canary49{contain:strict;contain:size layout style paint;display:grid;grid-template-rows:var(--row-height);grid-template-columns:var(--template-columns);position:absolute;left:0;width:var(--row-width);height:var(--row-height);line-height:var(--row-height);background-color:var(--background-color)}.r1otpg64700-canary49:hover{background-color:var(--row-hover-background-color)}.r1otpg64700-canary49[aria-selected=true]{background-color:var(--row-selected-background-color)}.r1otpg64700-canary49[aria-selected=true]:hover{background-color:var(--row-selected-hover-background-color)}.sel5gk2700-canary49{position:sticky;z-index:3;grid-template-rows:var(--summary-row-height);height:var(--summary-row-height);line-height:var(--summary-row-height)}.sel5gk2700-canary49>.c1wupbe700-canary49{border-top:2px solid var(--summary-border-color)}");const Be="rdg-row r1otpg64700-canary49";function $e(e){const o=ne(null);return oe((()=>{var n;e&&(null==(n=o.current)||n.focus({preventScroll:!0}))}),[e]),o}Ue('.c1w6d5eo700-canary49{cursor:pointer;display:flex;align-items:center;justify-content:center;position:absolute;top:0;right:0;bottom:0;left:0;margin-right:1px}.c1h7iz8d700-canary49{all:unset;width:0;margin:0}.cc79ydj700-canary49{content:"";width:20px;height:20px;border:2px solid var(--border-color);background-color:var(--background-color)}.c1h7iz8d700-canary49:checked+.cc79ydj700-canary49{background-color:var(--checkbox-color);box-shadow:inset 0 0 0 4px var(--background-color)}.c1h7iz8d700-canary49:focus+.cc79ydj700-canary49{border-color:var(--checkbox-focus-color)}.c1e5jt0b700-canary49{cursor:default}.c1e5jt0b700-canary49 .cc79ydj700-canary49{border-color:var(--checkbox-disabled-border-color);background-color:var(--checkbox-disabled-background-color)}');function Ve({value:e,tabIndex:o,isCellSelected:n,disabled:t,onClick:r,onChange:l,"aria-label":i,"aria-labelledby":c}){const a=$e(n);return Ke("label",{className:Ge("rdg-checkbox-label c1w6d5eo700-canary49",t&&"rdg-checkbox-label-disabled c1e5jt0b700-canary49"),children:[Ke("input",{"aria-label":i,"aria-labelledby":c,tabIndex:o,ref:a,type:"checkbox",className:"rdg-checkbox-input c1h7iz8d700-canary49",disabled:t,checked:e,onChange:function(e){l(e.target.checked,e.nativeEvent.shiftKey)},onClick:r}),Ke("div",{className:"rdg-checkbox cc79ydj700-canary49"})]})}function qe(e){try{return Ke(m,{children:e.row[e.column.key]})}catch{return null}}Ue(".gch972y700-canary49{outline:none}.cz2qf0d700-canary49{margin-left:4px;stroke:currentColor;stroke-width:1.5px;fill:transparent;vertical-align:middle}.cz2qf0d700-canary49>path{transition:d .1s}");function Je({groupKey:e,isExpanded:o,isCellSelected:n,toggleGroup:t}){return Ke("span",{ref:$e(n),className:"rdg-group-cell-content gch972y700-canary49",tabIndex:-1,onKeyDown:function({key:e}){"Enter"===e&&t()},children:[e,Ke("svg",{viewBox:"0 0 14 8",width:"14",height:"8",className:"rdg-caret cz2qf0d700-canary49",children:Ke("path",{d:o?"M1 1 L 7 7 L 13 1":"M1 7 L 7 1 L 13 7"})})]})}function Xe(e,o,n){const t="function"==typeof e.colSpan?e.colSpan(n):1;if(Number.isInteger(t)&&t>1&&(!e.frozen||e.idx+t-1<=o))return t}function Ye(e){e.stopPropagation()}const Ze=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 Qe(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}function eo({key:e,target:o}){return"Tab"===e&&(o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement)&&o.matches(".rdg-editor-container > :only-child, .rdg-editor-container > label:only-child > :only-child")}function oo({selectedPosition:e,columns:o,rows:n,isGroupRow:t}){const r=o[e.idx],l=n[e.rowIdx];return!t(l)&&no(r,l)}function no(e,o){return null!=e.editor&&!e.rowGroup&&!1!==("function"==typeof e.editable?e.editable(o):e.editable)}const{min:to,max:ro,floor:lo,ceil:io,sign:co}=Math;function ao(e){if("function"!=typeof e)throw new Error("Please specify the rowKeyGetter prop to use selection")}function uo(e,o){return{gridColumnStart:e.idx+1,gridColumnEnd:void 0!==o?`span ${o}`:void 0,left:e.frozen?`var(--frozen-left-${e.key})`:void 0}}function so(e,...o){return Ge("rdg-cell c1wupbe700-canary49",...o,e.frozen&&"rdg-cell-frozen cd0kgiy700-canary49",e.isLastFrozenColumn&&"rdg-cell-frozen-last c1730fa4700-canary49")}const fo="select-row";const _o={key:fo,name:"",width:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,headerRenderer:e=>Ke(Ve,{"aria-label":"Select All",isCellSelected:!1,value:e.allRowsSelected,onChange:e.onAllRowsSelectionChange}),formatter:function(e){const[o,n]=xo();return Ke(Ve,{"aria-label":"Select",tabIndex:-1,isCellSelected:e.isCellSelected,value:o,onClick:Ye,onChange:(o,t)=>{n({rowIdx:e.rowIdx,checked:o,isShiftClick:t})}})},groupFormatter:function(e){const[o,n]=xo();return Ke(Ve,{"aria-label":"Select Group",tabIndex:-1,isCellSelected:e.isCellSelected,value:o,onChange:o=>{n({checked:o,isShiftClick:!1,rowIdx:e.rowIdx})},onClick:Ye})}};function po({key:e,width:o},n,t){return n.has(e)?n.get(e):"number"==typeof o?o:"string"==typeof o&&/^\d+%$/.test(o)?lo(t*parseInt(o,10)/100):void 0}function ho(e,{minWidth:o,maxWidth:n},t){return e=ro(e,null!=o?o:t),"number"==typeof n?to(e,n):e}function vo(e){const o=ne(e);return ee((()=>{o.current=e})),re(((...e)=>{o.current(...e)}),[])}const go=W(void 0),wo=go.Provider,yo=W(void 0),mo=yo.Provider;function xo(){const e=le(go),o=le(yo);if(void 0===e||void 0===o)throw new Error("useRowSelection must be used within DataGrid cells");return[e,o]}function bo({rawRows:e,rowHeight:o,clientHeight:n,scrollTop:t,groupBy:r,rowGrouper:l,expandedGroupIds:i,enableVirtualization:c}){const[a,u]=te((()=>{if(0===r.length||null==l)return[void 0,e.length];const o=(e,[n,...t],r)=>{let i=0;const c={};for(const[a,u]of Object.entries(l(e,n))){const[e,n]=0===t.length?[u,u.length]:o(u,t,r+i+1);c[a]={childRows:u,childGroups:e,startRowIndex:r+i},i+=n+1}return[c,i]};return o(e,r,0)}),[r,l,e]),[s,d]=te((()=>{const o=new Set;if(!a)return[e,r];const n=[],t=(e,r,l)=>{var c;(c=e,Array.isArray(c))?n.push(...e):Object.keys(e).forEach(((c,a,u)=>{var s;const d=void 0!==r?`${r}__${c}`:c,f=null!=(s=null==i?void 0:i.has(d))&&s,{childRows:_,childGroups:p,startRowIndex:h}=e[c],v={id:d,parentId:r,groupKey:c,isExpanded:f,childRows:_,level:l,posInSet:a,startRowIndex:h,setSize:u.length};n.push(v),o.add(v),f&&t(p,d,l+1)}))};return t(a,void 0,0),[n,r];function r(e){return o.has(e)}}),[i,a,e]),{totalRowHeight:f,getRowTop:_,getRowHeight:p,findRowIdx:h}=te((()=>{if("number"==typeof o)return{totalRowHeight:o*s.length,getRowTop:e=>e*o,getRowHeight:()=>o,findRowIdx:e=>lo(e/o)};let e=0;const n=s.map((n=>{const t=d(n)?o({type:"GROUP",row:n}):o({type:"ROW",row:n}),r={top:e,height:t};return e+=t,r})),t=e=>ro(0,to(s.length-1,e));return{totalRowHeight:e,getRowTop:e=>n[t(e)].top,getRowHeight:e=>n[t(e)].height,findRowIdx(e){let o=0,t=n.length-1;for(;o<=t;){const r=o+lo((t-o)/2),l=n[r].top;if(l===e)return r;if(l<e?o=r+1:l>e&&(t=r-1),o>t)return t}return 0}}}),[d,o,s]);if(!c)return{rowOverscanStartIdx:0,rowOverscanEndIdx:s.length-1,rows:s,rowsCount:u,totalRowHeight:f,isGroupRow:d,getRowTop:_,getRowHeight:p,findRowIdx:h};const v=h(t),g=to(s.length-1,h(t+n));return{rowOverscanStartIdx:ro(0,8*lo((v-4)/8)),rowOverscanEndIdx:to(s.length-1,8*io((g+4)/8)),rows:s,rowsCount:u,totalRowHeight:f,isGroupRow:d,getRowTop:_,getRowHeight:p,findRowIdx:h}}Ue(".h13yq3r8700-canary49{cursor:pointer;display:flex}.ht6rdyl700-canary49{flex-grow:1;overflow:hidden;overflow:clip;text-overflow:ellipsis}");function Co({onSort:e,sortDirection:o,priority:n,children:t}){let r="";return"ASC"===o?r="▲":"DESC"===o&&(r="▼"),Ke("span",{className:"rdg-header-sort-cell h13yq3r8700-canary49",onClick:o=>e(o.ctrlKey),children:[Ke("span",{className:"rdg-header-sort-name ht6rdyl700-canary49",children:t}),Ke("span",{children:[r,n]})]})}Ue('.celq7o9700-canary49:after{content:"";cursor:col-resize;position:absolute;top:0;right:0;bottom:0;width:10px}');function ko({column:e,colSpan:o,onResize:n,allRowsSelected:t,onAllRowsSelectionChange:r,sortColumns:l,onSortColumnsChange:i}){const c=null==l?void 0:l.findIndex((o=>o.columnKey===e.key)),a=void 0!==c&&c>-1?l[c]:void 0,u=null==a?void 0:a.direction,s=void 0!==a&&l.length>1?c+1:void 0,d=u&&!s?"ASC"===u?"ascending":"descending":void 0,f=o=>{if(null==i)return;const{sortDescendingFirst:n}=e;if(void 0===a){const t={columnKey:e.key,direction:n?"DESC":"ASC"};i(l&&o?[...l,t]:[t])}else{let t;if((n&&"DESC"===u||!n&&"ASC"===u)&&(t={columnKey:e.key,direction:"ASC"===u?"DESC":"ASC"}),o){const e=[...l];t?e[c]=t:e.splice(c,1),i(e)}else i(t?[t]:[])}};const _=so(e,e.headerCellClass,e.resizable&&"rdg-cell-resizable celq7o9700-canary49");return Ke("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-sort":d,"aria-colspan":o,className:_,style:uo(e,o),onPointerDown:e.resizable?function(o){if("mouse"===o.pointerType&&1!==o.buttons)return;const{currentTarget:t,pointerId:r}=o,{right:l}=t.getBoundingClientRect(),i=l-o.clientX;function c(o){if(o.pointerId!==r)return;if("mouse"===o.pointerType&&1!==o.buttons)return void a(o);const l=o.clientX+i-t.getBoundingClientRect().left;l>0&&n(e,l)}function a(e){e.pointerId===r&&(window.removeEventListener("pointermove",c),window.removeEventListener("pointerup",a))}i>11||(o.preventDefault(),window.addEventListener("pointermove",c),window.addEventListener("pointerup",a))}:void 0,children:e.headerRenderer?Ke(e.headerRenderer,{column:e,sortDirection:u,priority:s,onSort:f,allRowsSelected:t,onAllRowsSelectionChange:r}):e.sortable?Ke(Co,{onSort:f,sortDirection:u,priority:s,children:e.name}):e.name})}function Ro({columns:e,rows:o,rowKeyGetter:n,onSelectedRowsChange:t,allRowsSelected:r,onColumnResize:l,sortColumns:i,onSortColumnsChange:c,lastFrozenColumnIndex:a}){const u=re((e=>{if(!t)return;ao(n);const r=new Set(e?o.map(n):void 0);t(r)}),[t,o,n]),s=[];for(let o=0;o<e.length;o++){const n=e[o],t=Xe(n,a,{type:"HEADER"});void 0!==t&&(o+=t-1),s.push(Ke(ko,{column:n,colSpan:t,onResize:l,allRowsSelected:r,onAllRowsSelectionChange:u,onSortColumnsChange:c,sortColumns:i},n.key))}return Ke("div",{role:"row","aria-rowindex":1,className:"rdg-header-row h1fquj5h700-canary49",children:s})}const Io=he(Ro);Ue(".c1bmg16t700-canary49,.ccpfvsn700-canary49{background-color:#ccf}.c1bmg16t700-canary49.ccpfvsn700-canary49{background-color:#99f}.c12t67zz700-canary49{cursor:move;position:absolute;right:0;bottom:0;width:8px;height:8px;background-color:var(--selection-color)}.c12t67zz700-canary49:hover{width:16px;height:16px;border:2px solid var(--selection-color);background-color:var(--background-color)}");function So({className:e,column:o,colSpan:n,isCellSelected:t,isCopied:r,isDraggedOver:l,row:i,rowIdx:c,dragHandleProps:a,onRowClick:u,onClick:s,onDoubleClick:d,onContextMenu:f,onRowChange:_,selectCell:p,...h},v){const{cellClass:g}=o;function w(e){p({idx:o.idx,rowIdx:c},e)}return e=so(o,"function"==typeof g?g(i):g,e,r&&"rdg-cell-copied ccpfvsn700-canary49",l&&"rdg-cell-dragged-over c1bmg16t700-canary49"),Ke("div",{role:"gridcell","aria-colindex":o.idx+1,"aria-selected":t,"aria-colspan":n,"aria-readonly":!no(o,i)||void 0,ref:v,className:e,style:uo(o,n),onClick:function(e){var n;w(null==(n=o.editorOptions)?void 0:n.editOnClick),null==u||u(c,i,o),null==s||s(e)},onDoubleClick:function(e){w(!0),null==d||d(e)},onContextMenu:function(e){w(),null==f||f(e)},...h,children:!o.rowGroup&&Ke(m,{children:[Ke(o.formatter,{column:o,rowIdx:c,row:i,isCellSelected:t,onRowChange:function(e){_(c,e)}}),a&&Ke("div",{className:"rdg-cell-drag-handle c12t67zz700-canary49",...a})]})})}const Eo=he(we(So));Ue(".c1tngyp1700-canary49{padding:0}");function zo({column:e,colSpan:o,row:n,rowIdx:t,onRowChange:r,onClose:l,onKeyDown:i,editorPortalTarget:c}){const a=ne(),u=vo((()=>{r(n,!0)}));function s(){cancelAnimationFrame(a.current)}ee((()=>{function e(){a.current=requestAnimationFrame(u)}return addEventListener("mousedown",e,{capture:!0}),()=>{removeEventListener("mousedown",e,{capture:!0}),s()}}),[u]);const{cellClass:d}=e,f=so(e,"rdg-editor-container c1tngyp1700-canary49","function"==typeof d?d(n):d);let _;var p;null!=e.editor&&(_=Ke(e.editor,{column:e,row:n,rowIdx:t,onRowChange:r,onClose:l,editorPortalTarget:c}),null!=(p=e.editorOptions)&&p.createPortal&&(_=Se(_,c)));return Ke("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-selected":!0,className:f,style:uo(e,o),onKeyDown:i,onMouseDownCapture:s,children:_})}function To({cellRenderer:e,className:o,rowIdx:n,isRowSelected:t,copiedCellIdx:r,draggedOverCellIdx:l,lastFrozenColumnIndex:i,row:c,viewportColumns:a,selectedCellProps:u,onRowClick:s,rowClass:d,setDraggedOverRowIdx:f,onMouseEnter:_,top:p,height:h,onRowChange:v,selectCell:g,...w},y){o=Ge(Be,"rdg-row-"+(n%2==0?"even":"odd"),null==d?void 0:d(c),o,-1===(null==u?void 0:u.idx)&&je);const m=null!=e?e:Eo,x=[];for(let e=0;e<a.length;e++){const o=a[e],t=Xe(o,i,{type:"ROW",row:c});void 0!==t&&(e+=t-1);const d=(null==u?void 0:u.idx)===o.idx;"EDIT"===(null==u?void 0:u.mode)&&d?x.push(Ke(zo,{rowIdx:n,column:o,colSpan:t,onKeyDown:u.onKeyDown,...u.editorProps},o.key)):x.push(Ke(m,{rowIdx:n,column:o,colSpan:t,row:c,isCopied:r===o.idx,isDraggedOver:l===o.idx,isCellSelected:d,dragHandleProps:d?u.dragHandleProps:void 0,onFocus:d?u.onFocus:void 0,onKeyDown:d?u.onKeyDown:void 0,onRowClick:s,onRowChange:v,selectCell:g},o.key))}return Ke(wo,{value:t,children:Ke("div",{role:"row",ref:y,className:o,onMouseEnter:function(e){null==f||f(n),null==_||_(e)},style:{top:p,"--row-height":`${h}px`},...w,children:x})})}const Oo=he(we(To));function Po({id:e,rowIdx:o,groupKey:n,childRows:t,isExpanded:r,isCellSelected:l,column:i,groupColumnIndex:c,toggleGroup:a}){function u(){a(e)}const s=i.rowGroup&&c===i.idx;return Ke("div",{role:"gridcell","aria-colindex":i.idx+1,className:so(i),style:{...uo(i),cursor:s?"pointer":"default"},onClick:s?u:void 0,children:(!i.rowGroup||c===i.idx)&&i.groupFormatter&&Ke(i.groupFormatter,{rowIdx:o,groupKey:n,childRows:t,column:i,isExpanded:r,isCellSelected:l,toggleGroup:u})},i.key)}const No=he(Po);function Do({id:e,groupKey:o,viewportColumns:n,childRows:t,rowIdx:r,top:l,height:i,level:c,isExpanded:a,selectedCellIdx:u,isRowSelected:s,selectCell:d,toggleGroup:f,..._}){const p=n[0].key===fo?c+1:c;return Ke(wo,{value:s,children:Ke("div",{role:"row","aria-level":c,"aria-expanded":a,className:Ge(Be,"rdg-group-row g1cvx5us700-canary49","rdg-row-"+(r%2==0?"even":"odd"),-1===u&&je),onClick:function(){d({rowIdx:r,idx:-1})},style:{top:l,"--row-height":`${i}px`},..._,children:n.map((n=>Ke(No,{id:e,rowIdx:r,groupKey:o,childRows:t,isExpanded:a,isCellSelected:u===n.idx,column:n,groupColumnIndex:p,toggleGroup:f},n.key)))})})}const Ao=he(Do);function Ho({column:e,colSpan:o,row:n}){const{summaryFormatter:t,summaryCellClass:r}=e,l=so(e,"function"==typeof r?r(n):r);return Ke("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":o,className:l,style:uo(e,o),children:t&&Ke(t,{column:e,row:n})})}const Fo=he(Ho);function Lo({rowIdx:e,row:o,viewportColumns:n,bottom:t,lastFrozenColumnIndex:r,"aria-rowindex":l}){const i=[];for(let e=0;e<n.length;e++){const t=n[e],l=Xe(t,r,{type:"SUMMARY",row:o});void 0!==l&&(e+=l-1),i.push(Ke(Fo,{column:t,colSpan:l,row:o},t.key))}return Ke("div",{role:"row","aria-rowindex":l,className:`${Be} rdg-row-${e%2==0?"even":"odd"} rdg-summary-row sel5gk2700-canary49`,style:{bottom:t},children:i})}const Mo=he(Lo);var Go;const Wo=null==(Go=globalThis.document)?void 0:Go.body,Ko={idx:-1,rowIdx:-1,mode:"SELECT"};function Uo({columns:e,rows:o,summaryRows:n,rowKeyGetter:t,onRowsChange:r,rowHeight:l,headerRowHeight:i,summaryRowHeight:c,selectedRows:a,onSelectedRowsChange:u,sortColumns:s,onSortColumnsChange:d,defaultColumnOptions:f,groupBy:_,rowGrouper:p,expandedGroupIds:h,onExpandedGroupIdsChange:v,rowRenderer:g,emptyRowsRenderer:w,onRowClick:y,onScroll:x,onColumnResize:b,onSelectedCellChange:C,onFill:k,onPaste:R,cellNavigationMode:I,enableVirtualization:S,editorPortalTarget:E,className:z,style:T,rowClass:O,"aria-label":P,"aria-labelledby":N,"aria-describedby":D},A){var H;null!=l||(l=35);const F=null!=i?i:"number"==typeof l?l:35,L=null!=c?c:"number"==typeof l?l:35,M=null!=g?g:Oo,G=null!=I?I:"NONE";null!=S||(S=!0);const W=null!=E?E:Wo,[K,U]=Q(0),[j,$]=Q(0),[V,q]=Q((()=>new Map)),[J,X]=Q(Ko),[Y,Z]=Q(null),[ee,le]=Q(!1),[ie,ce]=Q(void 0),ae=ne(null),ue=ne(J),se=ne(ie),de=ne(-1),fe=ne(!1),_e=vo((function({rowIdx:e,checked:o,isShiftClick:n}){if(!u)return;ao(t);const r=new Set(a),l=He[e];if(Me(l)){for(const e of l.childRows){const n=t(e);o?r.add(n):r.delete(n)}return void u(r)}const i=t(l);if(o){r.add(i);const o=de.current;if(de.current=e,n&&-1!==o&&o!==e){const n=co(e-o);for(let l=o+n;l!==e;l+=n){const e=He[l];Me(e)||r.add(t(e))}}}else r.delete(i),de.current=-1;u(r)})),pe=vo(Eo),he=vo(io),ve=vo(go),[ge,we,ye]=function(){const e=ne(null),[o,n]=Q(1),[t,r]=Q(1);return oe((()=>{const{ResizeObserver:o}=window;if(null==o)return;const t=new o((()=>{const{clientWidth:o,clientHeight:t}=e.current;n(o-(devicePixelRatio%.5==0?0:1)),r(t)}));return t.observe(e.current),()=>{t.disconnect()}}),[]),[e,o,t]}(),me=null!=(H=null==n?void 0:n.length)?H:0,xe=ye-F-me*L,be=null!=a&&null!=u,Ce=te((()=>{const{length:e}=o;return 0!==e&&null!=a&&null!=t&&a.size>=e&&o.every((e=>a.has(t(e))))}),[o,a,t]),{columns:ke,colSpanColumns:Re,colOverscanStartIdx:Ie,colOverscanEndIdx:Se,layoutCssVars:Ee,columnMetrics:ze,totalColumnWidth:Te,lastFrozenColumnIndex:Oe,totalFrozenColumnWidth:Pe,groupBy:Ne}=function({rawColumns:e,columnWidths:o,viewportWidth:n,scrollLeft:t,defaultColumnOptions:r,rawGroupBy:l,enableVirtualization:i}){var c,a,u,s;const d=null!=(c=null==r?void 0:r.minWidth)?c:80,f=null!=(a=null==r?void 0:r.formatter)?a:qe,_=null!=(u=null==r?void 0:r.sortable)&&u,p=null!=(s=null==r?void 0:r.resizable)&&s,{columns:h,colSpanColumns:v,lastFrozenColumnIndex:g,groupBy:w}=te((()=>{const o=[];let n=-1;const t=e.map((e=>{var o,t,r,i;const c=null!=(o=null==l?void 0:l.includes(e.key))&&o,a=c||e.frozen||!1,u={...e,idx:0,frozen:a,isLastFrozenColumn:!1,rowGroup:c,sortable:null!=(t=e.sortable)?t:_,resizable:null!=(r=e.resizable)?r:p,formatter:null!=(i=e.formatter)?i:f};return c&&(null!=u.groupFormatter||(u.groupFormatter=Je)),a&&n++,u}));t.sort((({key:e,frozen:o},{key:n,frozen:t})=>e===fo?-1:n===fo?1:null!=l&&l.includes(e)?l.includes(n)?l.indexOf(e)-l.indexOf(n):-1:null!=l&&l.includes(n)?1:o?t?0:-1:t?1:0));const r=[];return t.forEach(((e,n)=>{e.idx=n,e.rowGroup&&o.push(e.key),null!=e.colSpan&&r.push(e)})),-1!==n&&(t[n].isLastFrozenColumn=!0),{columns:t,colSpanColumns:r,lastFrozenColumnIndex:n,groupBy:o}}),[e,f,p,_,l]),{layoutCssVars:y,totalColumnWidth:m,totalFrozenColumnWidth:x,columnMetrics:b}=te((()=>{const e=new Map;let t=0,r=0,l=0,i="",c=0,a=0;for(const t of h){let r=po(t,o,n);void 0===r?a++:(r=ho(r,t,d),c+=r,e.set(t,{width:r,left:0}))}const u=(n-c)/a;for(const o of h){let n;if(e.has(o)){const r=e.get(o);r.left=t,({width:n}=r)}else n=ho(u,o,d),e.set(o,{width:n,left:t});r+=n,t+=n,i+=`${n}px `}if(-1!==g){const o=e.get(h[g]);l=o.left+o.width}const s={"--template-columns":i};for(let o=0;o<=g;o++){const n=h[o];s[`--frozen-left-${n.key}`]=`${e.get(n).left}px`}return{layoutCssVars:s,totalColumnWidth:r,totalFrozenColumnWidth:l,columnMetrics:e}}),[o,h,n,d,g]),[C,k]=te((()=>{if(!i)return[0,h.length-1];const e=t+x,o=t+n,r=h.length-1,l=to(g+1,r);if(e>=o)return[l,l];let c=l;for(;c<r;){const{left:o,width:n}=b.get(h[c]);if(o+n>e)break;c++}let a=c;for(;a<r;){const{left:e,width:n}=b.get(h[a]);if(e+n>=o)break;a++}return[ro(l,c-1),to(r,a+1)]}),[b,h,g,t,x,n,i]);return{columns:h,colSpanColumns:v,colOverscanStartIdx:C,colOverscanEndIdx:k,layoutCssVars:y,columnMetrics:b,totalColumnWidth:m,lastFrozenColumnIndex:g,totalFrozenColumnWidth:x,groupBy:w}}({rawColumns:e,columnWidths:V,scrollLeft:j,viewportWidth:we,defaultColumnOptions:f,rawGroupBy:p?_:void 0,enableVirtualization:S}),{rowOverscanStartIdx:De,rowOverscanEndIdx:Ae,rows:He,rowsCount:Fe,totalRowHeight:Le,isGroupRow:Me,getRowTop:We,getRowHeight:Ue,findRowIdx:je}=bo({rawRows:o,groupBy:Ne,rowGrouper:p,rowHeight:l,clientHeight:xe,scrollTop:K,expandedGroupIds:h,enableVirtualization:S}),Be=function({columns:e,colSpanColumns:o,rows:n,summaryRows:t,colOverscanStartIdx:r,colOverscanEndIdx:l,lastFrozenColumnIndex:i,rowOverscanStartIdx:c,rowOverscanEndIdx:a,isGroupRow:u}){const s=te((()=>{if(0===r)return 0;let e=r;const l=(o,n)=>void 0!==n&&o+n>r&&(e=o,!0);for(const r of o){const o=r.idx;if(o>=e)break;if(l(o,Xe(r,i,{type:"HEADER"})))break;for(let e=c;e<=a;e++){const t=n[e];if(!u(t)&&l(o,Xe(r,i,{type:"ROW",row:t})))break}if(null!=t)for(const e of t)if(l(o,Xe(r,i,{type:"SUMMARY",row:e})))break}return e}),[c,a,n,t,r,i,o,u]);return te((()=>{const o=[];for(let n=0;n<=l;n++){const t=e[n];n<s&&!t.frozen||o.push(t)}return o}),[s,l,e])}({columns:ke,colSpanColumns:Re,colOverscanStartIdx:Ie,colOverscanEndIdx:Se,lastFrozenColumnIndex:Oe,rowOverscanStartIdx:De,rowOverscanEndIdx:Ae,rows:He,summaryRows:n,isGroupRow:Me}),$e=Ne.length>0&&"function"==typeof p,Ve=$e?-1:0,Ye=!$e&&null!=k;oe((()=>{J!==ue.current&&"EDIT"!==J.mode&&Ro(J)&&(ue.current=J,To(J),fe.current?fe.current=!1:ae.current.focus({preventScroll:!0}))})),function(e,o,n){B=6,oe((function(){return"function"==typeof e?(e(o()),function(){return e(null)}):e?(e.current=o(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}(A,(()=>({element:ge.current,scrollToColumn(e){To({idx:e})},scrollToRow(e){const{current:o}=ge;o&&o.scrollTo({top:We(e),behavior:"smooth"})},selectCell:Eo})));const no=re(((e,o)=>{q((n=>{const t=new Map(n);return t.set(e.key,o),t})),null==b||b(e.idx,o)}),[b]),lo=re((e=>{ce(e),se.current=e}),[]);function io(e){if(!v)return;const o=new Set(h);o.has(e)?o.delete(e):o.add(e),v(o)}function uo(e){const{key:n,keyCode:t}=e,l=He[J.rowIdx];if(R&&Qe(e)&&Ro(J)&&!Me(l)&&-1!==J.idx&&"SELECT"===J.mode){const e=86;if(t===67)return void function(){const{idx:e,rowIdx:n}=J;Z({row:o[_o(n)],columnKey:ke[e].key})}();if(t===e)return void function(){const{idx:e,rowIdx:n}=J,t=o[_o(n)];if(!R||!r||null===Y||!So(J))return;const l=R({sourceRow:Y.row,sourceColumnKey:Y.columnKey,targetRow:t,targetColumnKey:ke[e].key});go(n,l)}()}if(Ro(J)&&Me(l)&&-1===J.idx&&("ArrowLeft"===n&&l.isExpanded||"ArrowRight"===n&&!l.isExpanded))return e.preventDefault(),void io(l.id);switch(e.key){case"Escape":return Z(null),void zo();case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":!function(e){if("EDIT"===J.mode){var o,n;if(!(null!=(o=null==(n=ke[J.idx].editorOptions)?void 0:n.onNavigation)?o:eo)(e))return}const{key:t,shiftKey:r}=e;let l=G;if("Tab"===t){if(function({cellNavigationMode:e,columns:o,rowsCount:n,selectedPosition:{rowIdx:t,idx:r},shiftKey:l}){if("NONE"===e||"CHANGE_ROW"===e){const e=r===o.length-1,i=0===r,c=t===n-1,a=0===t;return l?i&&a:e&&c}return!1}({shiftKey:r,cellNavigationMode:G,columns:ke,rowsCount:He.length,selectedPosition:J}))return void wo();l="NONE"===G?"CHANGE_ROW":G}e.preventDefault();const i=Qe(e);Eo(function({cellNavigationMode:e,columns:o,colSpanColumns:n,rows:t,currentPosition:r,nextPosition:l,lastFrozenColumnIndex:i,isCellWithinBounds:c,isGroupRow:a}){const u=t.length;let s=l;const d=e=>{const o=t[s.rowIdx];if(!a(o)){const t=s.idx;for(const r of n){const n=r.idx;if(n>t)break;const l=Xe(r,i,{type:"ROW",row:o});if(l&&t>n&&t<l+n){s.idx=n+(e?l:0);break}}}};if(c(s)&&d(s.idx-r.idx>0),"NONE"!==e){const{idx:n,rowIdx:t}=l,r=o.length,i=-1===n;n===r?("CHANGE_ROW"===e?t===u-1||(s={idx:0,rowIdx:t+1}):s={rowIdx:t,idx:0},d(!0)):i&&("CHANGE_ROW"===e?0===t||(s={rowIdx:t-1,idx:r-1}):s={rowIdx:t,idx:r-1}),d(!1)}return s}({columns:ke,colSpanColumns:Re,rows:He,lastFrozenColumnIndex:Oe,cellNavigationMode:l,currentPosition:J,nextPosition:Po(t,i,r),isCellWithinBounds:Ro,isGroupRow:Me}))}(e);break;default:!function(e){var o;if(!Ro(J))return;const n=He[J.rowIdx];if(Me(n))return;const{key:t}=e,r=ke[J.idx];if("EDIT"===J.mode)return void("Enter"===t&&(wo(),zo()));if(null==(o=r.editorOptions)||null==o.onCellKeyDown||o.onCellKeyDown(e),e.isDefaultPrevented())return;So(J)&&function(e){return!Ze.has(e.key)}(e)&&X((({idx:e,rowIdx:o})=>({idx:e,rowIdx:o,key:t,mode:"EDIT",row:n,originalRow:n})))}(e)}}function so(){fe.current=!0}function _o(e){return $e?o.indexOf(He[e]):e}function go(e,n){if("function"!=typeof r)return;if(n===o[e])return;const t=[...o];t[e]=n,r(t,{indexes:[e],column:ke[J.idx]})}function wo(){var e;if(null==(null==(e=ke[J.idx])?void 0:e.editor)||"SELECT"===J.mode||J.row===J.originalRow)return;go(_o(J.rowIdx),J.row)}function yo(e){function n(e){1!==e.buttons&&t()}function t(){window.removeEventListener("mouseover",n),window.removeEventListener("mouseup",t),le(!1),function(){const e=se.current;if(void 0===e||!k||!r)return;const{idx:n,rowIdx:t}=J,l=o[t],i=t<e?t+1:e,c=t<e?e+1:t,a=o.slice(i,c),u=ke[n],s=k({columnKey:u.key,sourceRow:l,targetRows:a}),d=[...o],f=[];for(let e=i;e<c;e++){const o=e-i;d[e]!==s[o]&&(d[e]=s[o],f.push(e))}f.length>0&&r(d,{indexes:f,column:u}),lo(void 0)}()}1===e.buttons&&(le(!0),window.addEventListener("mouseover",n),window.addEventListener("mouseup",t))}function xo(e){if(e.stopPropagation(),!k||!r)return;const{idx:n,rowIdx:t}=J,l=o[t],i=o.slice(t+1),c=ke[n],a=k({columnKey:c.key,sourceRow:l,targetRows:i}),u=[...o],s=[];for(let e=t+1;e<u.length;e++){const o=e-t-1;u[e]!==a[o]&&(u[e]=a[o],s.push(e))}s.length>0&&r(u,{indexes:s,column:c})}function Co(e,o){"SELECT"!==J.mode&&(o?(go(_o(J.rowIdx),e),zo()):X((o=>({...o,row:e}))))}function ko(e){e&&wo(),zo()}function Ro({idx:e,rowIdx:o}){return o>=0&&o<He.length&&e>=Ve&&e<ke.length}function So(e){return Ro(e)&&oo({columns:ke,rows:He,selectedPosition:e,isGroupRow:Me})}function Eo(e,o){if(Ro(e)){if(wo(),o&&So(e)){const o=He[e.rowIdx];X({...e,mode:"EDIT",key:null,row:o,originalRow:o})}else X({...e,mode:"SELECT"});null==C||C({...e})}}function zo(){"SELECT"!==J.mode&&X((({idx:e,rowIdx:o})=>({idx:e,rowIdx:o,mode:"SELECT"})))}function To({idx:e,rowIdx:o}){const{current:n}=ge;if(n){if("number"==typeof e&&e>Oe){if(null!=o||(o=J.rowIdx),!Ro({rowIdx:o,idx:e}))return;const{clientWidth:t}=n,r=ke[e],{left:l,width:i}=ze.get(r);let c=l+i;const a=He[o];if(!Me(a)){const e=Xe(r,Oe,{type:"ROW",row:a});if(void 0!==e){const{left:o,width:n}=ze.get(ke[r.idx+e-1]);c=o+n}}const u=c>t+j;l<j+Pe?n.scrollLeft=l-Pe:u&&(n.scrollLeft=c-t)}if("number"==typeof o){const e=We(o),t=Ue(o);e<K?n.scrollTop=e:e+t>K+xe&&(n.scrollTop=e+t-xe)}}}function Po(e,o,n){const{idx:t,rowIdx:r}=J,l=He[r],i=Ro(J)&&-1===t;if("ArrowLeft"===e&&i&&Me(l)&&!l.isExpanded&&0!==l.level){let e=-1;for(let o=J.rowIdx-1;o>=0;o--){const n=He[o];if(Me(n)&&n.id===l.parentId){e=o;break}}if(-1!==e)return{idx:t,rowIdx:e}}switch(e){case"ArrowUp":return{idx:t,rowIdx:r-1};case"ArrowDown":return{idx:t,rowIdx:r+1};case"ArrowLeft":return{idx:t-1,rowIdx:r};case"ArrowRight":return{idx:t+1,rowIdx:r};case"Tab":return-1===J.idx&&-1===J.rowIdx?n?{idx:ke.length-1,rowIdx:He.length-1}:{idx:0,rowIdx:0}:{idx:t+(n?-1:1),rowIdx:r};case"Home":return i?{idx:t,rowIdx:0}:o?{idx:0,rowIdx:0}:{idx:0,rowIdx:r};case"End":return i?{idx:t,rowIdx:He.length-1}:o?{idx:ke.length-1,rowIdx:He.length-1}:{idx:ke.length-1,rowIdx:r};case"PageUp":{const e=We(r)+Ue(r)-xe;return{idx:t,rowIdx:e>0?je(e):0}}case"PageDown":{const e=We(r)+xe;return{idx:t,rowIdx:e<Le?je(e):He.length-1}}default:return J}}function No(e){if(void 0===ie)return;const{rowIdx:o}=J;return(o<ie?o<e&&e<=ie:o>e&&e>=ie)?J.idx:void 0}function Do(e){if(J.rowIdx===e)return"EDIT"===J.mode?{mode:"EDIT",idx:J.idx,onKeyDown:uo,editorProps:{editorPortalTarget:W,row:J.row,onRowChange:Co,onClose:ko}}:{mode:"SELECT",idx:J.idx,onFocus:so,onKeyDown:uo,dragHandleProps:Ye&&So(J)?{onMouseDown:yo,onDoubleClick:xo}:void 0}}return(J.idx>=ke.length||J.rowIdx>=He.length)&&(X(Ko),lo(void 0)),"EDIT"===J.mode&&He[J.rowIdx]!==J.originalRow&&zo(),Ke("div",{role:$e?"treegrid":"grid","aria-label":P,"aria-labelledby":N,"aria-describedby":D,"aria-multiselectable":!!be||void 0,"aria-colcount":ke.length,"aria-rowcount":1+Fe+me,className:Ge("rdg r104f42s700-canary49",z,ee&&"rdg-viewport-dragging vc4f4zb700-canary49"),style:{...T,"--header-row-height":`${F}px`,"--row-width":`${Te}px`,"--summary-row-height":`${L}px`,...Ee},ref:ge,onScroll:function(e){const{scrollTop:o,scrollLeft:n}=e.currentTarget;U(o),$(n),null==x||x(e)},children:[Ke(Io,{rowKeyGetter:t,rows:o,columns:Be,onColumnResize:no,allRowsSelected:Ce,onSelectedRowsChange:u,sortColumns:s,onSortColumnsChange:d,lastFrozenColumnIndex:Oe}),0===He.length&&w?Ke(w,{}):Ke(m,{children:[Ke("div",{ref:ae,tabIndex:0,className:"rdg-focus-sink f7ly7s700-canary49",onKeyDown:uo,onFocus:function(){if(Ro(J))To(J);else{const e={idx:0,rowIdx:0,mode:"SELECT"};Ro(e)&&X(e)}}}),Ke("div",{style:{height:ro(Le,xe)}}),Ke(mo,{value:_e,children:function(){const e=[];let o=0;for(let r=De;r<=Ae;r++){const l=He[r],i=We(r)+F;if(Me(l)){({startRowIndex:o}=l);const n=be&&l.childRows.every((e=>null==a?void 0:a.has(t(e))));e.push(Ke(Ao,{"aria-level":l.level+1,"aria-setsize":l.setSize,"aria-posinset":l.posInSet+1,"aria-rowindex":1+o+1,"aria-selected":be?n:void 0,id:l.id,groupKey:l.groupKey,viewportColumns:Be,childRows:l.childRows,rowIdx:r,top:i,height:Ue(r),level:l.level,isExpanded:l.isExpanded,selectedCellIdx:J.rowIdx===r?J.idx:void 0,isRowSelected:n,onFocus:J.rowIdx===r?so:void 0,onKeyDown:J.rowIdx===r?uo:void 0,selectCell:pe,toggleGroup:he},l.id));continue}let c;o++;let u=!1;var n;if("function"==typeof t)c=t(l),u=null!=(n=null==a?void 0:a.has(c))&&n;else c=$e?o:r;e.push(Ke(M,{"aria-rowindex":1+($e?o:r)+1,"aria-selected":be?u:void 0,rowIdx:r,row:l,viewportColumns:Be,isRowSelected:u,onRowClick:y,rowClass:O,top:i,height:Ue(r),copiedCellIdx:null!==Y&&Y.row===l?ke.findIndex((e=>e.key===Y.columnKey)):void 0,draggedOverCellIdx:No(r),setDraggedOverRowIdx:ee?lo:void 0,lastFrozenColumnIndex:Oe,selectedCellProps:Do(r),onRowChange:ve,selectCell:pe},c))}return e}()}),null==n?void 0:n.map(((e,o)=>Ke(Mo,{"aria-rowindex":1+Fe+o+1,rowIdx:o,row:e,bottom:L*(n.length-1-o),viewportColumns:Be,lastFrozenColumnIndex:Oe},o)))]})]})}const jo=we(Uo);Ue(".t16y9g8l700-canary49{appearance:none;box-sizing:border-box;width:100%;height:100%;padding:0 6px;border:2px solid #ccc;vertical-align:top;color:var(--color);background-color:var(--background-color);font-family:inherit;font-size:var(--font-size)}.t16y9g8l700-canary49:focus{border-color:var(--selection-color);outline:none}.t16y9g8l700-canary49::placeholder{color:#999;opacity:1}");var Bo=jo;function $o(e,o,n){var t=o;return l([],e,!0).sort((function(e,o){return e[t]<o[t]?n?1:-1:e[t]>o[t]?n?-1:1:0}))}!function(e,o){void 0===o&&(o={});var n=o.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".dgrid2_Table .rdg{font-family:monospace,Courier New,Courier}.dgrid2_Table .rdg-checkbox-label .rdg-checkbox{block-size:16px;border-width:2px;box-shadow:inset 0 0 0 3px var(--rdg-background-color);inline-size:16px}");var Vo=function(e){var o=e.columns,n=e.data,t=e.onRowClickCallback,r=e.sort,i=e.darkMode,c=void 0!==i&&i,a=e.multiSelect,u=void 0!==a&&a,s=Q([]),d=s[0],f=s[1],_=Q(),p=_[0],h=_[1],v=Q([]),g=v[0],y=v[1],m=Q((function(){return new Set})),x=m[0],b=m[1];ee((function(){f(l(l([],u?[_o]:[],!0),o.map((function(e){return{key:e,name:e,resizable:!0,sortable:!0,minWidth:80}})),!0))}),[o,u]);var C=re((function(e){var o=e.slice(-1)[0],n=void 0!==o,t="DESC"===(null==o?void 0:o.direction);h(o),y($o(g,n?o.columnKey:"key",!!n&&t))}),[g]),k=re((function(e){return e.key}),[]),R=re((function(e){b(e),t(g.filter((function(o){return e.has(k(o))})))}),[g,t,k]),I=re((function(e,o){t(g.filter((function(o){return k(o)===k(e)})))}),[g,t,k]);return ee((function(){var e=n.map((function(e,n){var t={key:n};return o.forEach((function(o,n){t[o]=e[n]})),t}));(null==r?void 0:r.attribute)&&(e=$o(e,r.attribute,r.descending)),y(e)}),[o,n,r]),w(Bo,{columns:d,headerRowHeight:24,rows:g,rowKeyGetter:k,rowHeight:20,className:c?"rdg-dark":"rdg-light",sortColumns:p?[p]:[],onSortColumnsChange:C,selectedRows:x,onSelectedRowsChange:u?R:void 0,onRowClick:u?void 0:I,"aria-describedby":"","aria-label":"","aria-labelledby":"",style:{height:"100%"}})},qo=function(e){function l(){return e.call(this)||this}return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function t(){this.constructor=e}n(e,o),e.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)}(l,e),l.prototype.renderTable=function(){var e=this;return w(Vo,{columns:this.columns(),data:this.data(),darkMode:this.darkMode(),onRowClickCallback:function(o,n){var t;void 0===n&&(n=""),e._prevRow&&JSON.stringify(e._prevRow)!==JSON.stringify(o)&&e.click(e._prevRow,null!==(t=e._prevColumn)&&void 0!==t?t:"",!1),o&&e.click(o,n,!0),e._prevRow=o,e._prevColumn=n}})},l.prototype.enter=function(o,n){e.prototype.enter.call(this,o,n),this._div=n.append("div")},l.prototype.update=function(o,n){e.prototype.update.call(this,o,n),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),function(e,o,n){null==o.__k&&(o.textContent=""),G(e,o),"function"==typeof n&&n(),e&&e.__c}(this.renderTable(),this._div.node())},l.prototype.exit=function(o,n){!function(e){!!e.__k&&G(null,e)}(this._div.node()),this._div.remove(),e.prototype.exit.call(this,o,n)},l.prototype.click=function(e,o,n){},t([o.publish(!1,"boolean","Dark Mode"),r("design:type",Function)],l.prototype,"darkMode",void 0),t([o.publish(!1,"boolean","Multiple Selection"),r("design:type",Function)],l.prototype,"multiSelect",void 0),l}(o.HTMLWidget);qo.prototype._class+=" dgrid2_Table",e.BUILD_VERSION="2.103.1",e.PKG_NAME="@hpcc-js/dgrid2",e.PKG_VERSION="2.1.1",e.Table=qo,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=index.min.js.map
|