simple-table-core 2.6.2 → 2.6.5
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/{Animate-75dcc59a.js → Animate-b61353fd.js} +2 -2
- package/dist/Animate-b61353fd.js.map +1 -0
- package/dist/{DatePicker-62e4596e.js → DatePicker-e6470cae.js} +2 -2
- package/dist/DatePicker-e6470cae.js.map +1 -0
- package/dist/cjs/{Animate-0b068c5c.js → Animate-30972772.js} +2 -2
- package/dist/cjs/Animate-30972772.js.map +1 -0
- package/dist/cjs/{DatePicker-1081d935.js → DatePicker-1cf6e858.js} +2 -2
- package/dist/cjs/DatePicker-1cf6e858.js.map +1 -0
- package/dist/cjs/components/simple-table/TableHorizontalScrollbar.d.ts +2 -2
- package/dist/cjs/context/TableContext.d.ts +5 -5
- package/dist/cjs/hooks/useAutoScaleMainSection.d.ts +2 -2
- package/dist/cjs/hooks/useDropdownPosition.d.ts +1 -1
- package/dist/cjs/hooks/useKeyboardNavigation.d.ts +3 -3
- package/dist/cjs/hooks/useScrollbarVisibility.d.ts +2 -2
- package/dist/cjs/hooks/useScrollbarWidth.d.ts +2 -2
- package/dist/cjs/hooks/useSelection.d.ts +1 -1
- package/dist/cjs/hooks/useTableDimensions.d.ts +1 -1
- package/dist/cjs/hooks/useWindowResize.d.ts +1 -1
- package/dist/cjs/index-3774ef93.js +2 -0
- package/dist/cjs/index-3774ef93.js.map +1 -0
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/types/HandleResizeStartProps.d.ts +3 -3
- package/dist/cjs/types/TableHeaderProps.d.ts +1 -1
- package/dist/cjs/types/TableHeaderSectionProps.d.ts +1 -1
- package/dist/cjs/types/TableRowProps.d.ts +1 -1
- package/dist/components/simple-table/TableHorizontalScrollbar.d.ts +2 -2
- package/dist/context/TableContext.d.ts +5 -5
- package/dist/hooks/useAutoScaleMainSection.d.ts +2 -2
- package/dist/hooks/useDropdownPosition.d.ts +1 -1
- package/dist/hooks/useKeyboardNavigation.d.ts +3 -3
- package/dist/hooks/useScrollbarVisibility.d.ts +2 -2
- package/dist/hooks/useScrollbarWidth.d.ts +2 -2
- package/dist/hooks/useSelection.d.ts +1 -1
- package/dist/hooks/useTableDimensions.d.ts +1 -1
- package/dist/hooks/useWindowResize.d.ts +1 -1
- package/dist/index-7f257ce7.js +2 -0
- package/dist/index-7f257ce7.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +1 -1
- package/dist/types/HandleResizeStartProps.d.ts +3 -3
- package/dist/types/TableHeaderProps.d.ts +1 -1
- package/dist/types/TableHeaderSectionProps.d.ts +1 -1
- package/dist/types/TableRowProps.d.ts +1 -1
- package/package.json +1 -1
- package/dist/Animate-75dcc59a.js.map +0 -1
- package/dist/DatePicker-62e4596e.js.map +0 -1
- package/dist/cjs/Animate-0b068c5c.js.map +0 -1
- package/dist/cjs/DatePicker-1081d935.js.map +0 -1
- package/dist/cjs/index-d81b5dbb.js +0 -2
- package/dist/cjs/index-d81b5dbb.js.map +0 -1
- package/dist/index-7be8c0d0.js +0 -2
- package/dist/index-7be8c0d0.js.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e,Fragment as n,jsxs as t}from"react/jsx-runtime";import r,{useEffect as o,useState as i,useRef as a,useMemo as u,useCallback as l,createContext as c,useContext as s,lazy as d,Suspense as f,Fragment as v,cloneElement as h,forwardRef as p,useImperativeHandle as w,isValidElement as m,useLayoutEffect as g,useReducer as b}from"react";var x=function(){return x=Object.assign||function(e){for(var n,t=1,r=arguments.length;r>t;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},x.apply(this,arguments)};function y(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);r.length>o;o++)0>n.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}function I(e,n,t,r){return new(t||(t=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function u(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(a,u)}l((r=r.apply(e,n||[])).next())})}function C(e,n){var t,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(u){return function(l){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(t=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&o[3]>u[1])){i.label=u[1];break}if(6===u[0]&&o[1]>i.label){i.label=o[1],o=u;break}if(o&&o[2]>i.label){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(e,i)}catch(e){u=[6,e],r=0}finally{t=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}}function R(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;i>o;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError;var S=1,M=function(e){return Math.ceil(800/(e+1))},N=29.5,H=["lineAreaChart","barChart"],E=40,k=function(e,n,t){return n&&t?480>e?.25:768>e?.3:.4:function(e){return 480>e?.4:768>e?.5:.6}(e)},T="parentExpanded",P=function(e,n){if(!e.children||0===e.children.length)return[n];var t=[],r=function(e,n){if(!e.children||0===e.children.length)return t.push(n),n+1;for(var o=n,i=0,a=e.children;a.length>i;i++)o=r(a[i],o);return o};return r(e,n),t},A=function(e){return e.flatMap(function(e){var n=[e];return e.children&&e.children.length>0&&n.push.apply(n,A(e.children)),n})},D=function(e){return void 0===e&&(e=0),e?e+1:0},F=function(e,n){for(var t=0,r=A(e);r.length>t;t++){var o=r[t];if(o.children&&o.children.length>0&&o.children.some(function(e){return e.accessor===n}))return o}return null},L=function(e){var n=e.accessor;return"".concat(e.rowId,"-").concat(n)},O=function(e){var n=e.header,t=e.headers,r=e.collapsedHeaders;return n.hide||n.excludeFromRender||e.rootPinned!==e.pinned?null:!(t&&r&&function(e,n,t){var r=F(n,e.accessor);if(r){var o=t.has(r.accessor),i=e.showWhen||T;return o?"parentExpanded"===i:"parentCollapsed"===i}return!1}(n,t,r))||null},W=function(e){var n=e.accessor;return"".concat(e.rowId,"-").concat(n)},B=function(e){var n=e.customTheme;return Math.min(e.headerHeight+n.rowSeparatorWidth+e.childRowCount*(e.rowHeight+n.rowSeparatorWidth)+n.nestedGridPaddingTop+n.nestedGridPaddingBottom+n.nestedGridBorderWidth,n.nestedGridMaxHeight+n.nestedGridPaddingTop+n.nestedGridPaddingBottom+n.nestedGridBorderWidth)},z=function(e){var n=e.calculatedHeight,t=e.customHeight,r=e.customTheme;return t?("string"==typeof t?parseFloat(t):t)+r.nestedGridPaddingTop+r.nestedGridPaddingBottom:n},q=function(e){var n=e.match(/^(.+?)\[(\d+)\]$/);return n?{key:n[1],index:parseInt(n[2],10)}:{key:e,index:null}},G=function(e,n){var t=n+"";return t.includes(".")||t.includes("[")?t.split(".").reduce(function(e,n){if(null!=e){var t=q(n),r=t.index,o=e[t.key];return null!==r&&Array.isArray(o)&&(o=o[r]),o}},e):e[n]},V=function(e,n,t){var r=n+"";if(r.includes(".")||r.includes("[")){for(var o=r.split("."),i=e,a=0;o.length-1>a;a++){var u=q(o[a]),l=u.key,c=u.index;if(null==i[l]){var s=q(o[a+1]);i[l]=null!==s.index?[]:{}}if(i=i[l],null!==c){if(!Array.isArray(i))throw Error("Expected array at ".concat(o.slice(0,a+1).join("."),", but found ").concat(typeof i));for(;c>=i.length;)i.push(null);null==i[c]&&(i[c]={}),i=i[c]}}var d=q(o[o.length-1]),f=d.key,v=d.index;if(null!==v){for(Array.isArray(i[f])||(i[f]=[]);v>=i[f].length;)i[f].push(null);i[f][v]=t}else i[f]=t}else e[n]=t},j=function(e){return Array.isArray(e)&&e.length>0&&"object"==typeof e[0]&&null!==e[0]},K=function(e){var n=e.getRowId,t=R([],e.rowPath,!0);if(n){var r=n({row:e.row,depth:e.depth,index:e.index,rowPath:e.rowPath,rowIndexPath:e.rowIndexPath,groupingKey:e.groupingKey});t.push(r)}return t},U=function(e){return e.join("-")},_=function(e,n){var t=e[n];return j(t)?t:[]},J=function(e,n,t,r,o){var i=e+"",a=r.has(i)&&r.get(i)===n,u=o.has(i)&&o.get(i)===n;return t.has(n)?!u:a},Y=function(e){var n=e.depth,t=e.expandedDepths,r=e.expandedRows,o=e.collapsedRows,i=e.rowGrouping,a=void 0===i?[]:i,u=e.getRowId,l=e.displayPositionOffset,c=void 0===l?0:l,s=e.rowStateMap,d=e.hasLoadingRenderer,f=void 0!==d&&d,v=e.hasErrorRenderer,h=void 0!==v&&v,p=e.hasEmptyRenderer,w=void 0!==p&&p,m=e.headers,g=void 0===m?[]:m,b=e.rowHeight,x=e.headerHeight,y=e.customTheme,I=[],C=function(e,n,i,l,d,v,p){void 0===i&&(i=0),void 0===l&&(l=c),void 0===d&&(d=[]),void 0===v&&(v=[]),void 0===p&&(p=[]);var m=i,S=l;return e.forEach(function(i,l){var c,M,N=a[n],H=R(R([],d,!0),[l],!1),E=R(R([],v,!0),[l],!1),k=K({row:i,getRowId:u,depth:n,index:l,rowPath:H,rowIndexPath:E,groupingKey:N}),T=I.length,P={row:i,depth:n,displayPosition:S,groupingKey:N,position:m,isLastGroupRow:0===n&&l===e.length-1,rowId:k,rowPath:H,rowIndexPath:E,absoluteRowIndex:m,parentIndices:p.length>0?R([],p,!0):void 0};I.push(P),m++,S++;var A=U(k);if(J(A,n,t,r,o)&&a.length>n){var D=null==s?void 0:s.get(A),F=_(i,N),L=g.find(function(e){return e.expandable&&e.nestedTable});if((null==L?void 0:L.nestedTable)&&F.length>0){var O=(null===(c=L.nestedTable.customTheme)||void 0===c?void 0:c.rowHeight)||b,W=(null===(M=L.nestedTable.customTheme)||void 0===M?void 0:M.headerHeight)||x,q=B({childRowCount:F.length,rowHeight:O,headerHeight:W,customTheme:y}),G=z({calculatedHeight:q,customHeight:L.nestedTable.height,customTheme:y}),V=R(R([],H,!0),[N],!1);I.push({row:{},depth:n+1,displayPosition:S,groupingKey:N,position:m,isLastGroupRow:!1,rowId:V,rowPath:V,rowIndexPath:E,nestedTable:{parentRow:i,expandableHeader:L,childAccessor:N,calculatedHeight:G},absoluteRowIndex:m}),m++,S++}else if(D&&(D.loading||D.error||D.isEmpty)){if(D.loading&&f||D.error&&h||D.isEmpty&&w){var j=R(R([],H,!0),[N],!1);I.push({row:{},depth:n+1,displayPosition:S,groupingKey:N,position:m,isLastGroupRow:!1,rowId:j,rowPath:j,rowIndexPath:E,stateIndicator:{parentRowId:A,parentRow:i,state:D},absoluteRowIndex:m,parentIndices:R(R([],p,!0),[T],!1)}),m++,S++}else if(D.loading&&!f){var Y=R(R([],H,!0),[N,"loading-skeleton"],!1);I.push({row:{},depth:n+1,displayPosition:S,groupingKey:N,position:m,isLastGroupRow:!1,rowId:Y,rowPath:Y,rowIndexPath:E,isLoadingSkeleton:!0,absoluteRowIndex:m,parentIndices:R(R([],p,!0),[T],!1)}),m++,S++}}else if(F.length>0){var X=R(R([],H,!0),[N],!1),$=R([],E,!0);m=C(F,n+1,m,S,X,$,R(R([],p,!0),[T],!1))}}}),m};return C(e.rows,void 0===n?0:n,0,c,[],[],[]),I},X=function(e,n){if(e.hide)return[];if(!e.children||0===e.children.length)return[e];if(n&&n.has(e.accessor)){var t=e.children.filter(function(e){var n=e.showWhen||T;return"parentCollapsed"===n||"always"===n}).flatMap(function(e){return X(e,n)});return e.singleRowChildren?R([e],t,!0):t}var r=e.children.filter(function(e){var n=e.showWhen||T;return"parentExpanded"===n||"always"===n}).flatMap(function(e){return X(e,n)});return e.singleRowChildren?R([e],r,!0):r},$=function(e){if(e.hide)return 0;if("number"==typeof e.width)return e.width;if("string"==typeof e.width&&e.width.endsWith("px"))return parseFloat(e.width);var n=document.getElementById(L({accessor:e.accessor,rowId:"header"}));return(null==n?void 0:n.offsetWidth)||150},Q=function(e){var n,t=e.width;"string"==typeof t&&t.includes("fr")&&(e.width=(null===(n=document.getElementById(L({accessor:e.accessor,rowId:"header"})))||void 0===n?void 0:n.offsetWidth)||150),e.children&&e.children.length>0&&e.children.forEach(function(e){Q(e)})},Z=function(e){return"number"==typeof e.minWidth?e.minWidth:E},ee=function(e,n){var t=[];return e.forEach(function(e){e.hide||t.push.apply(t,X(e,n))}),t},ne=function(e,n){var t=n.rowTopPositions;if(0===t.length)return 0;if(0>=e)return 0;if(e>=n.totalHeight)return t.length-1;for(var r=0,o=t.length-1;o>r;){var i=Math.floor((r+o+1)/2);t[i]>e?o=i-1:r=i}return r},te=function(e,n){if(!n||0===n.length)return 0;for(var t=0,r=0,o=n.length;o>r;){var i=Math.floor((r+o)/2);e>n[i][0]?r=i+1:o=i}for(var a=0;r>a;a++)t+=n[a][1];return t},re=function(e){var n=e.bufferRowCount,t=e.contentHeight,r=e.scrollTop,o=e.tableRows,i=e.scrollDirection,a=void 0===i?"none":i,u=e.heightMap,l=e.rowHeight+1;if(!u){var c=n*l,s=c,d=c;"down"===a?(s=Math.max(l,.1*c),d=.9*c):"up"===a&&(s=.9*c,d=Math.max(l,.1*c));var f=r+t+d,v=Math.max(0,Math.floor(Math.max(0,r-s)/l)),h=Math.min(o.length,Math.ceil(f/l)),p=r+t,w=Math.max(0,Math.ceil(r/l)),m=Math.min(o.length,Math.floor(p/l)),g=r+t,b=Math.max(0,Math.floor(r/l)),x=Math.min(o.length,Math.ceil(g/l));return{rendered:{startIndex:v,endIndex:h,rows:o.slice(v,h)},fullyVisible:{startIndex:w,endIndex:m,rows:o.slice(w,m)},partiallyVisible:{startIndex:b,endIndex:x,rows:o.slice(b,x)}}}var y=u.rowTopPositions,I=n*l,C=I,R=I;"down"===a?(C=Math.max(l,.1*I),R=.9*I):"up"===a&&(C=.9*I,R=Math.max(l,.1*I));var S=r+t+R,M=ne(Math.max(0,r-C),u),N=ne(S,u)+1;N=Math.min(o.length,N);var H=r,E=r+t,k=ne(H,u);H>y[k]&&(k=Math.min(k+1,o.length));var T=ne(E,u);T=Math.min(o.length,T);var P=r+t,A=ne(r,u),D=ne(P,u)+1;return D=Math.min(o.length,D),{rendered:{startIndex:M,endIndex:N,rows:o.slice(M,N)},fullyVisible:{startIndex:k,endIndex:T,rows:o.slice(k,T)},partiallyVisible:{startIndex:A,endIndex:D,rows:o.slice(A,D)}}},oe=function(e){var n=e.position;return n*(e.rowHeight+e.customTheme.rowSeparatorWidth)+te(n,e.heightOffsets)},ie=function(e,n){var t,r,o=e.position,i=n[o+1];return null!==(r=null===(t=null==i?void 0:i.parentIndices)||void 0===t?void 0:t.includes(o))&&void 0!==r&&r},ae=function(e){var n=e.allTableRows,t=e.renderedRows,r=e.fullyVisibleRows,o=e.partiallyVisibleRows,i=e.partiallyVisibleRowIndex,a=e.recursionDepth,u=e.stickyParents,l=e.rowGrouping,c=o[i];if(!c||a>10)return{stickyParents:u,regularRows:t};var s=0;if(c.parentIndices&&c.parentIndices.length>0){for(var d=function(e){var t=n[e];if(t){var o=r.some(function(e){return e.position===t.position});if(c.rowIndexPath&&c.rowIndexPath.length>0){var i=n[c.parentIndices[c.parentIndices.length-1]],a=i.row[l[i.depth]];if(u.length>=(Array.isArray(a)?a:[]).length-c.rowIndexPath[c.rowIndexPath.length-1])return"break"}o||u.some(function(e){return U(e.rowId)===U(t.rowId)})||(u.push(t),s++)}},f=0,v=c.parentIndices;v.length>f&&"break"!==d(v[f]);f++);if(u.length>0){ie(c,n)&&(u.push(c),s++);var h=o[i+=s];h&&(c=h)}}else if(ie(c,n))return u.push(c),i++,ae({allTableRows:n,renderedRows:t,fullyVisibleRows:r,partiallyVisibleRows:o,partiallyVisibleRowIndex:i,recursionDepth:a+1,stickyParents:u,rowGrouping:l});return ie(c,n)?ae({allTableRows:n,renderedRows:t,fullyVisibleRows:r,partiallyVisibleRows:o,partiallyVisibleRowIndex:i,recursionDepth:a+1,stickyParents:u,rowGrouping:l}):{stickyParents:u,regularRows:t}},ue=function(e,n,t){var r=e.getBoundingClientRect(),o=n.getBoundingClientRect(),i=10;if(o.top+i>r.top?n.scrollTop-=o.top-r.top+i:r.bottom>o.bottom-i&&(n.scrollTop+=r.bottom-o.bottom+i),t){var a=t.getBoundingClientRect();a.left+i>r.left?t.scrollLeft-=a.left-r.left+i:r.right>a.right-i&&(t.scrollLeft+=r.right-a.right+i)}},le=function(e,n,t,r){var o=document.querySelector(".st-body-container"),i=document.querySelector(".st-body-main");if(o){var a=n+t.rowSeparatorWidth,u=document.querySelector('.st-cell[data-row-index="'.concat(e.rowIndex,'"][data-col-index="').concat(e.colIndex,'"][data-row-id="').concat(e.rowId,'"]'));if(u&&r){var l=function(e,n,t,r){var o=re({bufferRowCount:0,contentHeight:n.clientHeight,rowHeight:t,scrollTop:n.scrollTop,tableRows:r,scrollDirection:"none"}).fullyVisible;return e>=o.startIndex&&o.endIndex>e}(e.rowIndex,o,n,r);if(l)return void ue(u,o,i)}if(!u)return o.scrollTop=Math.max(0,e.rowIndex*a-o.clientHeight/3),void setTimeout(function(){var n=document.querySelector('.st-cell[data-row-index="'.concat(e.rowIndex,'"][data-col-index="').concat(e.colIndex,'"][data-row-id="').concat(e.rowId,'"]'));n&&ue(n,o,i)},100);ue(u,o,i)}},ce=function(e){var n=e.colIndex,t=e.rowId;return"".concat(e.rowIndex,"-").concat(n,"-").concat(t)},se=c(void 0),de=function(n){return e(se.Provider,x({value:n.value},{children:n.children}))},fe=function(){var e=s(se);if(void 0===e)throw Error("useTableContext must be used within a TableProvider");return e},ve=function(r){var o=r.currentPage,a=r.footerRenderer,u=r.hideFooter,l=r.onPageChange,c=r.onNextPage,s=r.onUserPageChange,d=r.rowsPerPage,f=r.shouldPaginate,v=r.totalPages,h=r.totalRows,p=fe().icons,w=i(!0),m=w[0],g=w[1],b=o>1,y=v>o,R=o===v,S=Math.min((o-1)*d+1,h),M=Math.min(o*d,h),N=!b,H=!y&&!c||!m&&R,E=function(){return I(void 0,void 0,void 0,function(){var e;return C(this,function(n){switch(n.label){case 0:return 1>(e=o-1)?[3,2]:(l(e),s?[4,s(e)]:[3,2]);case 1:n.sent(),n.label=2;case 2:return[2]}})})},k=function(){return I(void 0,void 0,void 0,function(){var e,n;return C(this,function(t){switch(t.label){case 0:return e=o===v,n=o+1,c&&e?[4,c(o)]:[3,2];case 1:if(!t.sent())return g(!1),[2];t.label=2;case 2:return n>v&&!c?[3,4]:(l(n),s?[4,s(n)]:[3,4]);case 3:t.sent(),t.label=4;case 4:return[2]}})})},T=function(e){return I(void 0,void 0,void 0,function(){return C(this,function(n){switch(n.label){case 0:return 1>e||e>v?[3,2]:(l(e),s?[4,s(e)]:[3,2]);case 1:n.sent(),n.label=2;case 2:return[2]}})})};if(u||!f)return null;if(a)return e(n,{children:a({currentPage:o,totalPages:v,rowsPerPage:d,totalRows:h,startRow:S,endRow:M,onPageChange:T,onNextPage:k,onPrevPage:E,hasNextPage:!H,hasPrevPage:!N,nextIcon:p.next,prevIcon:p.prev})});var P=function(){if(15>=v)return Array.from({length:v},function(e,n){return n+1});var e,n,t=[];o>8?v-7>o?(e=o-7,n=o+7):(e=Math.max(1,v-15+1),n=v):(e=1,n=14),e>2?(t.push(1),t.push(-1)):2===e&&t.push(1);for(var r=e;n>=r;r++)t.push(r);return v-1>n?(t.push(-2),t.push(v)):n===v-1&&t.push(v),t}();return t("div",x({className:"st-footer"},{children:[e("div",x({className:"st-footer-info"},{children:t("span",x({className:"st-footer-results-text"},{children:["Showing ",S," to ",M," of ",h.toLocaleString()," results"]}))})),t("div",x({className:"st-footer-pagination"},{children:[P.map(function(n,t){return 0>n?e("span",x({className:"st-page-ellipsis"},{children:"..."}),t):e("button",x({onClick:function(){return T(n)},className:"st-page-btn ".concat(o===n?"active":""),"aria-label":"Go to page ".concat(n),"aria-current":o===n?"page":void 0},{children:n}),t)}),e("button",x({className:"st-next-prev-btn ".concat(N?"disabled":""),onClick:E,disabled:N,"aria-label":"Go to previous page"},{children:p.prev})),e("button",x({className:"st-next-prev-btn ".concat(H?"disabled":""),onClick:k,disabled:H,"aria-label":"Go to next page"},{children:p.next}))]}))]}))},he=function(n){return e("svg",x({className:n.className,viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"},{children:e("path",{d:"M5.41 7.59L10 12.17l4.59-4.58L16 9l-6 6-6-6z"})}))},pe=function(n){return e("svg",x({className:n.className,viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"},{children:e("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})}))},we=function(n){return e("svg",x({className:n.className,viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"},{children:e("path",{d:"M8.59 16.59L10 18l6-6-6-6-1.41 1.41L13.17 12z"})}))},me=function(n){return e("svg",x({className:n.className,viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"},{children:e("path",{d:"M5.41 11.41L10 6.83l4.59 4.58L16 10l-6-6-6 6z"})}))},ge=function(n){return e("svg",x({"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",className:n.className,style:{height:"1em"}},{children:e("path",{d:"M298 177.5c3.8-8.8 2-19-4.6-26l-116-144C172.9 2.7 166.6 0 160 0s-12.9 2.7-17.4 7.5l-116 144c-6.6 7-8.4 17.2-4.6 26S34.4 192 44 192l72 0 0 288c0 17.7 14.3 32 32 32l24 0c17.7 0 32-14.3 32-32l0-288 72 0c9.6 0 18.2-5.7 22-14.5z"})}))},be=function(n){return e("svg",x({"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:n.className,style:x({height:"10px"},n.style)},{children:e("path",{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"})}))},xe=function(n){return e("svg",x({"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",className:n.className,style:{height:"1em"}},{children:e("path",{d:"M22 334.5c-3.8 8.8-2 19 4.6 26l116 144c4.5 4.8 10.8 7.5 17.4 7.5s12.9-2.7 17.4-7.5l116-144c6.6-7 8.4-17.2 4.6-26s-12.5-14.5-22-14.5l-72 0 0-288c0-17.7-14.3-32-32-32L148 0C130.3 0 116 14.3 116 32l0 288-72 0c-9.6 0-18.2 5.7-22 14.5z"})}))},ye=function(n){return t("svg",x({"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 10",className:n.className,style:x({height:"10px",width:"16px"},n.style)},{children:[e("circle",{cx:"3",cy:"3",r:"1.5",fill:"currentColor"}),e("circle",{cx:"8",cy:"3",r:"1.5",fill:"currentColor"}),e("circle",{cx:"13",cy:"3",r:"1.5",fill:"currentColor"}),e("circle",{cx:"3",cy:"7",r:"1.5",fill:"currentColor"}),e("circle",{cx:"8",cy:"7",r:"1.5",fill:"currentColor"}),e("circle",{cx:"13",cy:"7",r:"1.5",fill:"currentColor"})]}))},Ie=function(n){return e("svg",x({"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:n.className,style:x({height:"1em"},n.style)},{children:e("path",{d:"M3.9 54.9C10.5 40.9 24.5 32 40 32l432 0c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9 320 448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6l0-79.1L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"})}))},Ce=function(){return e("svg",x({className:"st-custom-select-arrow",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("path",{d:"M3 4.5L6 7.5L9 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))},Re=function(e){var n=e.headerContainerRef,t=e.mainSectionRef,r=e.scrollbarWidth,a=i(!1),u=a[0],l=a[1];return o(function(){var e=null==n?void 0:n.current;if(u&&e)return e.classList.add("st-header-scroll-padding"),e.style.setProperty("--st-after-width","".concat(r,"px")),function(){e.classList.remove("st-header-scroll-padding")}},[n,u,r]),o(function(){var e=null==t?void 0:t.current;if(e&&(null==n?void 0:n.current)){var r=function(){e&&l(e.scrollHeight>e.clientHeight)};r();var o=new ResizeObserver(function(){r()});return o.observe(e),function(){e&&o.unobserve(e)}}},[n,t]),{isMainSectionScrollable:u}},Se=function(n){var t=n.children,r=n.onClose,u=n.open,l=n.overflow,c=void 0===l?"auto":l,s=n.setOpen,d=n.width,f=n.containerRef,v=n.positioning,h=void 0===v?"fixed":v,p=fe().mainBodyRef,w=a(null),m=a(null),g=i("bottom-left"),b=g[0],y=g[1],I=i({}),C=I[0],R=I[1],S=i(!1),M=S[0],N=S[1];return o(function(){u&&w.current?(N(!1),!m.current&&w.current.parentElement&&(m.current=w.current.parentElement),requestAnimationFrame(function(){if(w.current&&m.current){var e,n=w.current,t=m.current.getBoundingClientRect(),r=n.offsetHeight,o=d||n.offsetWidth,i=(e=(null==f?void 0:f.current)?f.current.getBoundingClientRect():(null==p?void 0:p.current)?p.current.getBoundingClientRect():{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0,width:window.innerWidth,height:window.innerHeight,x:0,y:0,toJSON:function(){}}).bottom-t.bottom,a=t.top-e.top,u="bottom",l={};(r>i&&a>=r||r>i&&a>i)&&(u="top");var c="left";o>e.right-t.right+t.width&&(c="right"),"fixed"===h?("bottom"===u?l.top=t.bottom+4:l.bottom=window.innerHeight-t.top+4,"left"===c?l.left=t.left:l.right=window.innerWidth-t.right):("bottom"===u?l.top=t.height+4:l.bottom=t.height+4,"left"===c?l.left=0:l.right=0),y("".concat(u,"-").concat(c)),R(l),N(!0)}})):u||N(!1)},[u,d,f,p,h]),o(function(){var e=function(e){u&&w.current&&w.current&&!w.current.contains(e.target)&&(s(!1),null==r||r())};return u&&window.addEventListener("scroll",e,!0),function(){window.removeEventListener("scroll",e,!0)}},[u,r,s]),o(function(){var e=function(e){if(w.current&&!w.current.contains(e.target)){var n=w.current.parentElement;n&&!n.contains(e.target)&&(s(!1),null==r||r())}},n=function(n){"Enter"===n.key&&e(n)};return u&&(document.addEventListener("mousedown",e,!0),document.addEventListener("keydown",n,!0)),function(){document.removeEventListener("mousedown",e,!0),document.removeEventListener("keydown",n,!0)}},[r,u,s]),o(function(){var e=function(e){"Escape"===e.key&&u&&(s(!1),null==r||r())};return u&&document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}},[r,u,s]),u?e("div",x({ref:w,className:"st-dropdown-content st-dropdown-".concat(b),onClick:function(e){return e.stopPropagation()},onMouseDown:function(e){return e.stopPropagation()},onTouchStart:function(e){return e.stopPropagation()},style:x(x({position:h,width:d?"".concat(d,"px"):"auto",visibility:M?"visible":"hidden"},C),{overflow:c})},{children:t})):null},Me=function(n){var t=n.children,r=n.onClick,o=n.isSelected,i=void 0!==o&&o,a=n.disabled,u=void 0!==a&&a,l=n.className,c=void 0===l?"":l;return e("div",x({className:"st-dropdown-item ".concat(i?"selected":""," ").concat(u?"disabled":""," ").concat(c),onClick:function(){!u&&r&&r()},role:"option","aria-selected":i,"aria-disabled":u},{children:t}))},Ne=function(n){var r=n.onBlur,o=n.onChange,a=n.open,u=n.setOpen,l=i(n.value),c=l[0],s=l[1],d=function(e){s(e),o(e),u(!1),r()};return t(Se,x({open:a,onClose:function(){r()},setOpen:u,width:120},{children:[e(Me,x({isSelected:!0===c,onClick:function(){return d(!0)}},{children:"True"})),e(Me,x({isSelected:!1===c,onClick:function(){return d(!1)}},{children:"False"}))]}))},He=function(n){var t=n.defaultValue,r=n.onBlur,o=n.onChange,i=a(null);return e("input",{className:"editable-cell-input",ref:i,autoFocus:!0,type:"text",defaultValue:null!=t?t:"",onBlur:r,onChange:function(e){o(e.target.value)},onKeyDown:function(e){e.stopPropagation(),"Enter"!==e.key&&"Escape"!==e.key||r()},onMouseDown:function(e){e.stopPropagation()}})},Ee=function(n){var t=n.defaultValue,r=n.onBlur,o=n.onChange,i=a(null);return e("input",{className:"editable-cell-input",ref:i,autoFocus:!0,defaultValue:""+t,onBlur:r,onChange:function(e){var n=e.target.value;/^\d*\.?\d*$/.test(n)&&o(n)},onKeyDown:function(e){e.stopPropagation(),"Enter"!==e.key&&"Escape"!==e.key||r()},onMouseDown:function(e){e.stopPropagation()}})},ke=d(function(){return import("./Animate-b61353fd.js")}),Te=d(function(){return import("./DatePicker-e6470cae.js")}),Pe=d(function(){return Promise.resolve().then(function(){return Vt})}),Ae=d(function(){return Promise.resolve().then(function(){return Kt})}),De=function(n){var t=y(n,["parentRef","tableRow"]);return e(f,x({fallback:e("div",x({},t))},{children:e(ke,x({},n))}))},Fe=function(n){return e(f,x({fallback:e("div",x({style:{padding:"20px",textAlign:"center"}},{children:"Loading..."}))},{children:e(Te,x({},n))}))},Le=function(n){var t=n.width,r=n.height;return e(f,x({fallback:e("div",{style:{width:void 0===t?100:t,height:void 0===r?30:r,background:"#f3f4f6"}})},{children:e(Pe,x({},n))}))},Oe=function(n){var t=n.width,r=n.height;return e(f,x({fallback:e("div",{style:{width:void 0===t?100:t,height:void 0===r?30:r,background:"#f3f4f6"}})},{children:e(Ae,x({},n))}))},We=function(e){if(!e)return new Date;if(/^\d{4}-\d{2}-\d{2}$/.test(e)){var n=e.split("-").map(Number);return new Date(n[0],n[1]-1,n[2],12,0,0)}var t=new Date(e);return isNaN(t.getTime())?new Date:new Date(t.getFullYear(),t.getMonth(),t.getDate(),12,0,0)},Be=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),12,0,0)},ze=function(e){if(!e)return new Date;if("string"==typeof e)return We(e);if("number"==typeof e){var n=new Date(e);return isNaN(n.getTime())?new Date:Be(n)}return e instanceof Date?Be(e):new Date},qe=function(e){return e?We(""+e):new Date},Ge=function(n){var t=n.onBlur,r=n.onChange,i=n.open,a=n.setOpen,u=n.value;o(function(){var e=setTimeout(function(){var e=document.querySelector(".st-dropdown-container");e instanceof HTMLElement&&e.focus()},0);return function(){return clearTimeout(e)}},[]);var l=function(){t()};return e(Se,x({open:i,onClose:l,setOpen:a,overflow:"hidden",width:240},{children:e(Fe,{value:qe(u),onChange:function(e){var n=e.toISOString().split("T")[0];r(n),a(!1),t()},onClose:l})}))},Ve=function(n){var t=n.onBlur,r=n.onChange,o=n.open,a=n.options,u=n.setOpen,l=i(n.value||""),c=l[0],s=l[1];return e(Se,x({open:o,onClose:function(){t()},setOpen:u,width:150},{children:e("div",x({className:"st-enum-dropdown-content"},{children:a.map(function(n){return e(Me,x({isSelected:c===n.value,onClick:function(){return s(e=n.value),r(e),u(!1),void t();var e}},{children:n.label}),n.value)})}))}))},je=function(n){var t=n.enumOptions,r=void 0===t?[]:t,o=n.onChange,i=n.setIsEditing,a=n.type,u=void 0===a?"string":a,l=n.value,c=function(){i(!1)};return"boolean"===u&&"boolean"==typeof l?e(Ne,{onBlur:c,onChange:function(e){return o(e)},open:!0,setOpen:i,value:l}):"date"===u?e(Ge,{onBlur:c,onChange:o,open:!0,setOpen:i,value:l}):"enum"===u?e(Ve,{onBlur:c,onChange:o,open:!0,options:r,setOpen:i,value:"string"==typeof l?l:""}):"number"===u&&"number"==typeof l?e(Ee,{defaultValue:l,onBlur:c,onChange:function(e){var n=""===e?0:parseFloat(e);o(isNaN(n)?0:n)}}):e(He,{defaultValue:null==l?"":l+"",onBlur:c,onChange:o})},Ke=0,Ue=function(){return function(e){var n=e.callback,t=e.callbackProps,r=e.limit,o=Date.now();0!==Ke&&r>o-Ke||(Ke=o,n(t))}},_e=function(e){var n=a(e);return o(function(){JSON.stringify(n.current)!==JSON.stringify(e)&&(n.current=e)},[e]),n.current},Je=function(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Je);var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=Je(e[t]));return n},Ye=function(e,n){return e.filter(function(e){return e.pinned===n}).some(function(e){return!e.hide&&!e.excludeFromRender})};function Xe(e){return{pinnedLeft:e.filter(function(e){return"left"===e.pinned}),unpinned:e.filter(function(e){return!e.pinned}),pinnedRight:e.filter(function(e){return"right"===e.pinned})}}function $e(e,n){return!0===e.isEssential||n.has(e.accessor+"")}function Qe(e,n){for(var t=!1,r=0,o=e;o.length>r;r++){var i=o[r];if(!i.isSelectionColumn&&!i.excludeFromRender){var a=$e(i,n);if(a&&t)return!1;a||(t=!0)}}return!0}function Ze(e,n){var t,r=Xe(e),o=r.unpinned,i=r.pinnedRight;if(!Qe(r.pinnedLeft,n))return!1;if(!Qe(o,n))return!1;if(!Qe(i,n))return!1;for(var a=0,u=e;u.length>a;a++){var l=u[a];if((null===(t=l.children)||void 0===t?void 0:t.length)&&!en(l.children,n))return!1}return!0}function en(e,n){var t;if(!Qe(e,n))return!1;for(var r=0,o=e;o.length>r;r++){var i=o[r];if((null===(t=i.children)||void 0===t?void 0:t.length)&&!en(i.children,n))return!1}return!0}function nn(e){var n=Xe(e),t=n.unpinned,r=n.pinnedRight;return{left:n.pinnedLeft.map(function(e){return e.accessor}),main:t.map(function(e){return e.accessor}),right:r.map(function(e){return e.accessor})}}function tn(e,n,t){var r=e.filter(function(e){return $e(n.get(e+""),t)}),o=e.filter(function(e){return!$e(n.get(e+""),t)});return R(R([],r,!0),o,!0)}function rn(e,n,t){var r=new Set(e.map(function(e){return e.accessor+""})),o=R(R(R([],n.left,!0),n.main,!0),n.right,!0);if(o.length!==r.size)return null;for(var i=0,a=o;a.length>i;i++)if(!r.has(a[i]+""))return null;var u=new Map(e.map(function(e){return[e.accessor+"",e]})),l=tn(n.left,u,t),c=tn(n.main,u,t),s=tn(n.right,u,t),d=function(e,n){var t=x({},e);return"left"===n?t.pinned="left":"right"===n?t.pinned="right":delete t.pinned,t};return R(R(R([],l.map(function(e){return d(u.get(e+""),"left")}),!0),c.map(function(e){return d(u.get(e+""),void 0)}),!0),s.map(function(e){return d(u.get(e+""),"right")}),!0)}function on(e,n,t,r){var o=n+"",i=nn(e),a=i.left.filter(function(e){return e+""!==o}),u=i.main.filter(function(e){return e+""!==o}),l=i.right.filter(function(e){return e+""!==o}),c=e.find(function(e){return e.accessor+""===o});return c&&(!$e(c,r)||"main"!==t||"left"!==c.pinned&&"right"!==c.pinned)?("left"===t?a.push(n):"right"===t?l.push(n):u.push(n),rn(e,{left:a,main:u,right:l},r)):null}var an=Date.now(),un={screenX:0,screenY:0},ln=function(e,n,t){void 0===t&&(t=[]);for(var r=0;e.length>r;r++){var o=e[r];if(o.accessor===n)return R(R([],t,!0),[r],!1);if(o.children&&o.children.length>0){var i=ln(o.children,n,R(R([],t,!0),[r],!1));if(i)return i}}return null},cn=function(e,n){for(var t=e,r=0;n.length-1>r;r++)t=t[n[r]].children;return t},sn=function(e,n,t){if(1===n.length)return t;for(var r=e,o=0;n.length-2>o;o++)r=r[n[o]].children;return r[n[n.length-2]].children=t,e},dn=function(e){return"left"===e.pinned?"left":"right"===e.pinned?"right":"main"};function fn(e,n,t){var r=Je(e),o=!1;function i(e,n){for(var t=e,r=0;n.length-1>r;r++)t=t[n[r]].children;return t[n[n.length-1]]}function a(e,n,t){for(var r=e,i=0;n.length-1>i;i++){if(!r[n[i]].children){o=!0;break}r=r[n[i]].children}r[n[n.length-1]]=t}var u=i(r,n);return a(r,n,i(r,t)),a(r,t,u),{newHeaders:r,emergencyBreak:o}}var vn=function(e){var n=e.draggedHeaderRef,t=e.essentialAccessors,r=e.headers,o=e.hoveredHeaderRef,i=e.onColumnOrderChange,a=e.onTableHeaderDragEnd,u=fe().setHeaders,l=_e(r);return{handleDragStart:function(e){n.current=e,an=Date.now()},handleDragOver:function(e){var i=e.event,u=e.hoveredHeader;if(i.preventDefault(),r&&n.current){var c=i.currentTarget.getAnimations().some(function(e){return"running"===e.playState}),s=i.screenX,d=i.screenY,f=Math.sqrt(Math.pow(s-un.screenX,2)+Math.pow(d-un.screenY,2));o.current=u;var v,h=n.current,p=!1;if(dn(h)===dn(u)){var w=r,m=ln(w,h.accessor),g=ln(w,u.accessor);if(m&&g){var b=m.length,x=g.length,y=g;if(b!==x){var I=x-b;I>0&&(y=g.slice(0,-I))}if((C=m).length===(R=y).length&&(1===C.length||C.slice(0,-1).every(function(e,n){return e===R[n]}))){var C,R,S=fn(w,m,y);v=S.newHeaders,p=S.emergencyBreak;var M=null!=t?t:new Set;if((0>=M.size||p||Ze(v,M))&&!(c||u.accessor===h.accessor||10>f||JSON.stringify(v)===JSON.stringify(r)||p)){var N=Date.now();JSON.stringify(v)===JSON.stringify(l)&&(1500>N-an||40>f)||(an=N,un={screenX:s,screenY:d},a(v))}}}}}},handleDragEnd:function(){n.current=null,o.current=null,setTimeout(function(){u(function(e){return R([],e,!0)}),null==i||i(r)},10)}}},hn=function(n){var r=n.checked,o=void 0!==r&&r,i=n.children,a=n.disabled,u=void 0!==a&&a,l=n.onChange,c=n.ariaLabel;return t("label",x({className:"st-checkbox-label".concat(u?" st-checkbox-disabled":"")},{children:[e("input",{checked:o,className:"st-checkbox-input",disabled:u,onChange:function(){!u&&l&&l(!o)},onKeyDown:function(e){" "===e.key&&e.stopPropagation()},type:"checkbox","aria-label":c,"aria-checked":o}),e("span",x({className:"st-checkbox-custom ".concat(o?"st-checked":""),"aria-hidden":"true"},{children:o&&e(be,{className:"st-checkbox-checkmark"})})),i]}))},pn=function(n){var t,r=n.content,o=n.header;return o.valueFormatter?o.valueFormatter({accessor:o.accessor,colIndex:n.colIndex,row:n.row,rowIndex:n.rowIndex,value:r}):"lineAreaChart"===o.type&&Array.isArray(r)?(t=r.filter(function(e){return"number"==typeof e})).length>0?e(Le,x({data:t},o.chartOptions)):null:"barChart"===o.type&&Array.isArray(r)?(t=r.filter(function(e){return"number"==typeof e})).length>0?e(Oe,x({data:t},o.chartOptions)):null:"boolean"==typeof r?r?"True":"False":Array.isArray(r)?0===r.length?"[]":r.map(function(e){return"object"==typeof e&&null!==e?JSON.stringify(e):e+""}).join(", "):"date"===o.type&&null!==r&&("string"==typeof r||"number"==typeof r||"object"==typeof r&&r instanceof Date)?ze(r).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):r},wn=r.memo(function(r){var c=r.borderClass,s=r.colIndex,d=r.displayRowNumber,f=r.header,v=r.isHighlighted,h=r.isInitialFocused,p=r.nestedIndex,w=r.parentHeader,m=r.rowIndex,g=r.tableRow,b=fe(),y=b.canExpandRowGroup,I=b.cellRegistry,C=b.cellUpdateFlash,R=b.collapsedRows,S=b.columnBorders,M=b.draggedHeaderRef,N=b.enableRowSelection,H=b.essentialAccessors,E=b.expandedDepths,k=b.expandedRows,T=b.handleMouseDown,P=b.handleMouseOver,A=b.handleRowSelect,D=b.headers,F=b.hoveredHeaderRef,O=b.icons,B=b.isCopyFlashing,z=b.isLoading,q=b.isRowSelected,K=b.isWarningFlashing,_=b.onCellEdit,Y=b.onCellClick,X=b.onRowGroupExpand,$=b.onTableHeaderDragEnd,Q=b.rowButtons,Z=b.rowGrouping,ee=b.setCollapsedRows,ne=b.setExpandedRows,te=b.setRowStateMap,re=b.rowsWithSelectedCells,oe=b.selectedColumns,ie=b.tableBodyContainerRef,ae=b.theme,ue=b.useOddColumnBackground,le=g.depth,ce=g.row,se=g.rowPath,de=g.rowIndexPath,ve=g.absoluteRowIndex,he=g.rowId,pe=i(G(ce,f.accessor)),we=pe[0],me=pe[1],ge=i(!1),be=ge[0],xe=ge[1],ye=i(!1),Ie=ye[0],Ce=ye[1],Re=i(!1),Se=Re[0],Me=Re[1],Ne=a(null),He=U(he),Ee=Z&&Z[le],ke=!!Ee&&function(e,n){return!!n&&j(e[n])}(ce,Ee),Te=Z&&Z.length>le,Pe=!y||y(ce),Ae=!!f.nestedTable,Fe=J(He,le,E,k,R),Le=B({rowIndex:m,colIndex:s,rowId:He}),Oe=K({rowIndex:m,colIndex:s,rowId:He}),We=u(function(){var e,n,t;if(!S)return!1;var r=D.filter(function(e){return"left"===e.pinned}),o=D.filter(function(e){return!e.pinned}),i=D.filter(function(e){return"right"===e.pinned});return"left"===f.pinned?(null===(e=r[r.length-1])||void 0===e?void 0:e.accessor)===f.accessor:"right"===f.pinned?(null===(n=i[i.length-1])||void 0===n?void 0:n.accessor)===f.accessor:(null===(t=o[o.length-1])||void 0===t?void 0:t.accessor)===f.accessor},[S,D,f.accessor,f.pinned]),Be=vn({draggedHeaderRef:M,essentialAccessors:H,headers:D,hoveredHeaderRef:F,onTableHeaderDragEnd:$}).handleDragOver,ze=Ue(),qe=L({accessor:f.accessor,rowId:He}),Ge=W({rowId:He,accessor:f.accessor}),Ve=f.isSelectionColumn&&N;o(function(){if(I){var e="".concat(He,"-").concat(f.accessor);return I.set(e,{updateContent:function(e){we!==e?(me(e),C&&(Ce(!0),Ne.current&&clearTimeout(Ne.current),Ne.current=setTimeout(function(){Ce(!1)},800))):me(e)}}),function(){I.delete(e),Ne.current&&clearTimeout(Ne.current)}}},[I,C,He,f.accessor,we]),o(function(){if(Ie){var e=setTimeout(function(){Ce(!1)},850);return function(){return clearTimeout(e)}}},[Ie]),o(function(){me(G(ce,f.accessor))},[ce,f.accessor]);var Ke="boolean"===f.type||"date"===f.type||"enum"===f.type,_e=!!(null==f?void 0:f.isEditable)||!(!Y||Ve),Je=oe.has(s),Ye=v&&!Je,Xe=u(function(){return!!Ve&&re.has(He+"")},[Ve,re,He]),$e=null==w?void 0:w.singleRowChildren,Qe="st-cell ".concat(le>0&&f.expandable?"st-cell-depth-".concat(le):""," ").concat(Ye?h?"st-cell-selected-first ".concat(c):"st-cell-selected ".concat(c):""," ").concat(Je?h?"st-cell-column-selected-first":"st-cell-column-selected":""," ").concat(_e?"clickable":""," ").concat(Ie?h?"st-cell-updating-first":"st-cell-updating":""," ").concat(Le?h?"st-cell-copy-flash-first":"st-cell-copy-flash":""," ").concat(Oe?h?"st-cell-warning-flash-first":"st-cell-warning-flash":""," ").concat(ue?p%2==0?"even-column":"odd-column":""," ").concat(Ve?"st-selection-cell":""," ").concat(Xe?"st-selection-has-highlighted-cell":""," ").concat(We?"st-last-column":""," ").concat($e?"st-sub-cell":""," ").concat(Se?"hovered":""),Ze=l(function(e){null==e&&(e="number"===f.type?0:"boolean"!==f.type&&""),me(e),V(ce,f.accessor,e),null==_||_({accessor:f.accessor,newValue:e,row:ce,rowIndex:m})},[f.accessor,f.type,_,ce,m]),en=l(function(e){e.stopPropagation();var n=J(He,le,E,k,R),t=He+"";if(n?(ee(function(e){var n=new Map(e);return n.set(t,le),n}),ne(function(e){var n=new Map(e);return n.delete(t),n})):(ne(function(e){var n=new Map(e);return n.set(t,le),n}),ee(function(e){var n=new Map(e);return n.delete(t),n})),n&&te(function(e){var n=new Map(e);return n.delete(He),n}),X){var r=f.pinned;X({depth:le,event:e,groupingKey:Ee,groupingKeys:Z||[],isExpanded:!n,row:ce,rowIndexPath:de||[],rowIdPath:se,setEmpty:function(e,n){te(function(t){var o=new Map(t),i=o.get(He)||{};return o.set(He,x(x({},i),{isEmpty:e,emptyMessage:n,loading:!1,error:null,triggerSection:r})),o})},setError:function(e){te(function(n){var t=new Map(n),o=t.get(He)||{};return t.set(He,x(x({},o),{error:e,loading:!1,isEmpty:!1,triggerSection:r})),t})},setLoading:function(e){e?te(function(e){var n=new Map(e),t=n.get(He)||{};return n.set(He,x(x({},t),{loading:!0,error:null,isEmpty:!1,triggerSection:r})),n}):setTimeout(function(){te(function(e){var n=new Map(e),t=n.get(He)||{};return n.set(He,x(x({},t),{loading:!1,error:null,isEmpty:!1,triggerSection:r})),n})},0)}})}},[R,Ee,le,E,k,f.pinned,X,ce,Z,He,de,se,ee,ne,te]);return z||g.isLoadingSkeleton?e("div",x({className:Qe},{children:e("span",x({className:"st-cell-content ".concat("right"===f.align?"right-aligned":"center"===f.align?"center-aligned":"left-aligned")},{children:e("div",{className:"st-loading-skeleton"})}))})):!be||Ke||Ve?t(De,x({className:Qe,"data-accessor":f.accessor,"data-col-index":s,"data-row-id":He,"data-row-index":m,role:"gridcell","aria-colindex":s+1,id:qe,onClick:function(){Y&&!Ve&&Y({accessor:f.accessor,colIndex:s,row:ce,rowIndex:m,value:we})},onDoubleClick:function(){return f.isEditable&&!Ve&&xe(!0)},onDragOver:function(e){Ve||ze({callback:Be,callbackProps:{event:e,hoveredHeader:f},limit:50})},onKeyDown:function(e){be||Ve||"F2"!==e.key&&"Enter"!==e.key||!f.isEditable||be||(e.preventDefault(),xe(!0))},onMouseDown:function(e){be||Ve||(e.preventDefault(),T({rowIndex:m,colIndex:s,rowId:He}))},onMouseEnter:function(){Me(!0)},onMouseLeave:function(){Me(!1)},onMouseOver:function(){be||Ve||P({rowIndex:m,colIndex:s,rowId:He})},parentRef:ie,tableRow:g},{children:[f.expandable&&Te?e("div",x({className:"st-icon-container st-expand-icon-container ".concat(Pe&&(ke||X||Ae)?Fe?"expanded":"collapsed":"placeholder"),onClick:Pe&&(ke||X||Ae)?function(e){return en(e)}:void 0,role:Pe&&(ke||X||Ae)?"button":"presentation",tabIndex:Pe&&(ke||X||Ae)?0:-1,"aria-label":Pe&&(ke||X||Ae)?"".concat(Fe?"Collapse":"Expand"," row group"):void 0,"aria-expanded":Pe&&(ke||X||Ae)?Fe:void 0,"aria-hidden":!(Pe&&(ke||X||Ae)),onKeyDown:Pe&&(ke||X||Ae)?function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),en(e))}:void 0},{children:O.expand})):null,e("span",x({className:"st-cell-content ".concat("right"===f.align?"right-aligned":"center"===f.align?"center-aligned":"left-aligned")},{children:z||g.isLoadingSkeleton?e("div",{className:"st-loading-skeleton"}):e(n,{children:Ve?t("div",x({className:"st-selection-cell-content"},{children:[e("div",x({className:"st-selection-control"},{children:Se||q&&q(He+"")?e(hn,{checked:!!q&&q(He+""),onChange:function(e){A&&A(He+"",e)},ariaLabel:"Select row ".concat(d+1)}):e("span",x({className:"st-row-number"},{children:d+1}))})),function(){if(!Q||!Ve||0===Q.length)return null;if(!(Se||q&&q(He+"")))return null;var n={row:ce,rowIndex:d};return e("div",x({className:"st-row-buttons",role:"group","aria-label":"Actions for row ".concat(d+1)},{children:Q.map(function(t,r){return e("span",x({className:"st-row-button"},{children:t(n)}),r)})}))}()]})):f.cellRenderer?function(){var e;return f.cellRenderer({accessor:f.accessor,colIndex:s,row:ce,rowIndex:ve,rowPath:se,theme:ae,value:we,formattedValue:null===(e=null==f?void 0:f.valueFormatter)||void 0===e?void 0:e.call(f,{accessor:f.accessor,colIndex:s,row:ce,rowIndex:m,value:we})})}():pn({content:we,header:f,colIndex:s,row:ce,rowIndex:m})})})),!z&&!g.isLoadingSkeleton&&be&&Ke&&!Ve&&e(je,{enumOptions:f.enumOptions,onChange:Ze,setIsEditing:xe,type:f.type,value:we})]}),Ge):e("div",x({className:"st-cell-editing",id:L({accessor:f.accessor,rowId:He}),onMouseDown:function(e){return e.stopPropagation()},onKeyDown:function(e){return e.stopPropagation()}},{children:e(je,{enumOptions:f.enumOptions,onChange:Ze,setIsEditing:xe,type:f.type,value:we})}))},function(e,n){if(e.rowIndex!==n.rowIndex||e.colIndex!==n.colIndex||e.isHighlighted!==n.isHighlighted||e.isInitialFocused!==n.isInitialFocused||e.borderClass!==n.borderClass)return!1;if(e.tableRow!==n.tableRow){if(e.tableRow.row!==n.tableRow.row)return!1;if(e.tableRow.position!==n.tableRow.position||e.tableRow.displayPosition!==n.tableRow.displayPosition)return!1}return(e.header===n.header||e.header.accessor===n.header.accessor&&e.header.isEditable===n.header.isEditable&&e.header.type===n.header.type&&e.header.cellRenderer===n.header.cellRenderer&&e.header.valueFormatter===n.header.valueFormatter)&&e.parentHeader===n.parentHeader&&e.displayRowNumber===n.displayRowNumber&&e.nestedIndex===n.nestedIndex}),mn=function(n){var r=n.columnIndices,o=n.displayRowNumber,i=n.header,a=n.headers,u=n.nestedIndex,l=n.parentHeader,c=n.pinned,s=n.rootPinned,d=n.rowIndex,f=n.rowIndices,h=n.tableRow,p=r[i.accessor],w=fe(),m=w.getBorderClass,g=w.isSelected,b=w.isInitialFocusedCell,x=w.collapsedHeaders,y=U(h.rowId);if(i.children&&i.children.length>0){var I=i.children.filter(function(e){return O({header:e,pinned:c,headers:a,collapsedHeaders:x,rootPinned:s})});if(i.singleRowChildren){var C={rowIndex:d,colIndex:p,rowId:y},R=m(C),S=g(C),M=b(C),N=L({accessor:i.accessor,rowId:y});return t(v,{children:[e(wn,{borderClass:R,colIndex:p,displayRowNumber:o,header:i,isHighlighted:S,isInitialFocused:M,nestedIndex:u,parentHeader:l,rowIndex:d,tableRow:h},N),I.map(function(n){var t=L({accessor:n.accessor,rowId:y});return e(mn,{columnIndices:r,displayRowNumber:o,rootPinned:s,header:n,headers:a,nestedIndex:u,parentHeader:i,pinned:c,rowIndex:d,rowIndices:f,tableRow:h},t)})]})}return e(v,{children:I.map(function(n){var t=L({accessor:n.accessor,rowId:y});return e(mn,{columnIndices:r,displayRowNumber:o,rootPinned:s,header:n,headers:a,nestedIndex:u,parentHeader:i,pinned:c,rowIndex:d,rowIndices:f,tableRow:h},t)})})}var H={rowIndex:d,colIndex:p,rowId:y},E=m(H),k=g(H),T=b(H),P=L({accessor:i.accessor,rowId:y});return e(wn,{borderClass:E,colIndex:p,displayRowNumber:o,header:i,isHighlighted:k,isInitialFocused:T,nestedIndex:u,parentHeader:l,rowIndex:d,tableRow:h},P)},gn=r.memo(function(t){var r=t.columnIndexStart,o=t.columnIndices,i=t.headers,a=t.pinned,u=t.rowIndex,l=t.displayRowNumber,c=t.rowIndices,s=t.tableRow,d=fe().collapsedHeaders,f=i.filter(function(e){return O({header:e,pinned:a,headers:i,collapsedHeaders:d,rootPinned:e.pinned})});return e(n,{children:f.map(function(n,t){var d=U(s.rowId),f=L({accessor:n.accessor,rowId:d});return e(mn,{columnIndices:o,displayRowNumber:l,rootPinned:n.pinned,header:n,headers:i,nestedIndex:t+(null!=r?r:0),pinned:a,rowIndex:u,rowIndices:c,tableRow:s},f)})})},function(e,n){return e.rowIndex===n.rowIndex&&e.displayRowNumber===n.displayRowNumber&&e.columnIndexStart===n.columnIndexStart&&(e.tableRow===n.tableRow||e.tableRow.row===n.tableRow.row)&&e.pinned===n.pinned&&e.headers===n.headers&&e.columnIndices===n.columnIndices&&e.rowIndices===n.rowIndices}),bn=function(n){var t=n.rowState,r=n.loadingStateRenderer,o=n.errorStateRenderer,i=n.emptyStateRenderer,a=null;return t.loading&&r?a=r:t.error&&o?a=o:t.isEmpty&&i&&(a=i),a?e("div",x({className:"st-cell st-state-row-cell",style:{gridColumn:"1 / -1",padding:0}},{children:a})):null},xn=function(n){var t=n.calculatedHeight,r=n.childAccessor,o=n.depth,i=n.expandableHeader,a=n.index,u=n.parentRow,l=n.position,c=fe(),s=c.theme,d=c.rowGrouping,f=c.rowHeight,v=c.heightOffsets,h=c.customTheme,p=c.loadingStateRenderer,w=c.errorStateRenderer,m=c.emptyStateRenderer,g=c.icons,b=i.nestedTable;if(!b)return null;var y=G(u,r),I=Array.isArray(y)?y:[],C=d&&d[o+1]?null==d?void 0:d.slice(o+1):void 0,R=b.customTheme?x(x({},h),b.customTheme):h,S=function(e){var n=e.calculatedHeight,t=e.customHeight,r=e.customTheme;return t?"string"==typeof t?t:"".concat(t,"px"):"".concat(n-r.nestedGridPaddingTop-r.nestedGridPaddingBottom,"px")}({calculatedHeight:t,customHeight:b.height,customTheme:h}),M=z({calculatedHeight:t,customHeight:b.height,customTheme:h});return e("div",x({className:"st-row st-nested-grid-row","data-index":a,style:{transform:"translate3d(0, ".concat(oe({position:l,rowHeight:f,heightOffsets:v,customTheme:h}),"px, 0)"),height:"".concat(M,"px"),paddingTop:"".concat(h.nestedGridPaddingTop,"px"),paddingBottom:"".concat(h.nestedGridPaddingBottom,"px")}},{children:e(zt,x({},b,{rows:I,theme:s,customTheme:R,height:S,rowGrouping:C,loadingStateRenderer:p,errorStateRenderer:w,emptyStateRenderer:m,icons:g}))}))},yn=r.memo(function(n){var t=n.columnIndices,r=n.columnIndexStart,o=n.gridTemplateColumns,i=n.headers,a=n.index,u=n.pinned,l=n.rowHeight,c=n.rowIndices,s=n.setHoveredIndex,d=n.tableRow,f=n.isSticky,v=void 0!==f&&f,h=n.stickyIndex,p=void 0===h?0:h,w=n.stickyOffset,m=void 0===w?0:w,g=n.stickyZIndex,b=fe(),y=b.customTheme,I=b.emptyStateRenderer,C=b.errorStateRenderer,R=b.heightOffsets,S=b.isAnimating,M=b.isRowSelected,N=b.loadingStateRenderer,H=b.maxHeaderDepth,E=b.useHoverRowBackground,k=b.useOddEvenRowBackground,T=d.position,P=d.displayPosition,A=d.stateIndicator,D=d.nestedTable;if(D)return u?e("div",{className:"st-row st-nested-grid-spacer","data-index":a,style:{gridTemplateColumns:o,transform:"translate3d(0, ".concat(oe({position:T,rowHeight:l,heightOffsets:R,customTheme:y}),"px, 0)"),height:"".concat(D.calculatedHeight,"px")}}):e(xn,{calculatedHeight:D.calculatedHeight,childAccessor:D.childAccessor,depth:d.depth-1,expandableHeader:D.expandableHeader,index:a,parentRow:D.parentRow,position:T});if(A)return e("div",A.state.triggerSection===u&&(A.state.loading&&N||A.state.error&&C||A.state.isEmpty&&I)?x({className:"st-row st-state-row","data-index":a,style:{gridTemplateColumns:o,transform:"translate3d(0, ".concat(oe({position:T,rowHeight:l,heightOffsets:R,customTheme:y}),"px, 0)"),height:"".concat(l,"px")}},{children:e(bn,{parentRow:A.parentRow,rowState:A.state,gridTemplateColumns:o,loadingStateRenderer:N,errorStateRenderer:C,emptyStateRenderer:I})}):{className:"st-row st-state-row-spacer","data-index":a,style:{gridTemplateColumns:o,transform:"translate3d(0, ".concat(oe({position:T,rowHeight:l,heightOffsets:R,customTheme:y}),"px, 0)"),height:"".concat(l,"px")}});var F=T%2==0,L=U(d.rowId),O=!!M&&M(L),W=v?{gridTemplateColumns:o,transform:"translateY(".concat(p*(l+1)+m,"px)"),height:"".concat(l,"px"),position:"absolute",top:0,left:0,zIndex:g}:{gridTemplateColumns:o,top:oe({position:T,rowHeight:l,heightOffsets:R,customTheme:y}),height:"".concat(l,"px")};return e("div",x({className:"st-row ".concat(v?"st-sticky-parent":""," ").concat(k?F?"even":"odd":""," ").concat(O?"selected":""),"data-index":T,role:"row","aria-rowindex":T+H+1,onMouseEnter:function(){!S&&E&&s(T)},style:W},{children:e(gn,{columnIndexStart:r,columnIndices:t,displayRowNumber:P,headers:i,pinned:u,rowIndex:T,rowIndices:c,tableRow:d},L)}))},function(e,n){return e.index===n.index&&e.tableRow.position===n.tableRow.position&&e.tableRow.displayPosition===n.tableRow.displayPosition&&e.tableRow.row===n.tableRow.row&&e.tableRow.stateIndicator===n.tableRow.stateIndicator&&e.rowHeight===n.rowHeight&&e.gridTemplateColumns===n.gridTemplateColumns&&e.pinned===n.pinned&&e.headers===n.headers&&e.columnIndices===n.columnIndices&&e.rowIndices===n.rowIndices&&e.columnIndexStart===n.columnIndexStart}),In=function(n){var t=n.displayStrongBorder,r=n.position,o=n.rowHeight,i=n.templateColumns,u=n.isSticky,l=void 0!==u&&u,c=fe(),s=c.heightOffsets,d=c.customTheme,f=a(null),v=l?r:function(e){var n=e.position,t=e.customTheme;return n*(e.rowHeight+t.rowSeparatorWidth)-t.rowSeparatorWidth+te(n,e.heightOffsets)}({position:r,rowHeight:o,heightOffsets:s,customTheme:d}),h=l?{position:"absolute",top:0,left:0,transform:"translateY(".concat(v,"px)")}:{transform:"translate3d(0, ".concat(v,"px, 0)")};return e("div",x({className:"st-row-separator ".concat(t?"st-last-group-row":""),onMouseDown:function(e){e.preventDefault();var n=e.currentTarget,t=n.style.pointerEvents;n.style.pointerEvents="none";var r=document.elementFromPoint(e.clientX,e.clientY);if(n.style.pointerEvents=t,r){var o=r.closest(".st-cell");if(o instanceof HTMLElement){f.current=o;var i=o.getBoundingClientRect(),a=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window,button:0,clientX:e.clientX,clientY:i.top+i.height/2});o.dispatchEvent(a)}}},onMouseUp:function(e){if(f.current){var n=f.current.getBoundingClientRect(),t=new MouseEvent("mouseup",{bubbles:!0,cancelable:!0,view:window,button:0,clientX:e.clientX,clientY:n.top+n.height/2});f.current.dispatchEvent(t),f.current=null}},style:x({gridTemplateColumns:i},h)},{children:e("div",{style:{gridColumn:"1 / -1"}})}))},Cn=c(void 0),Rn=function(e){var n=e.childRef,t=e.children,r=e.group,i=void 0===r?"default":r,a=function(){var e=s(Cn);if(!e)throw Error("useScrollSyncContext must be used within a ScrollSyncProvider");return e}(),u=a.registerPane,l=a.unregisterPane;return o(function(){var e=[i];return n.current&&u(n.current,e),function(){n.current&&l(n.current,e)}},[n,u,l,i]),h(t,{ref:function(e){n.current=e}})},Sn=p(function(n,r){var o=n.columnIndexStart,i=n.columnIndices,l=n.headers,c=n.pinned,s=n.rowHeight,d=n.rowIndices,f=n.setHoveredIndex,h=n.templateColumns,p=n.totalHeight,m=n.width,g=n.regularRows,b=c?"st-body-pinned-".concat(c):"st-body-main",y=a(null);return w(r,function(){return y.current},[]),u(function(){return Ye(l,c)},[l,c])?e(Rn,x({childRef:y,group:c?"pinned-".concat(c):"default"},{children:e("div",x({className:b,ref:y,style:x({position:"relative",height:"".concat(p,"px"),width:m},!c&&{flexGrow:1})},{children:g.map(function(n,r){var a=n.stateIndicator?"state-".concat(n.stateIndicator.parentRowId,"-").concat(n.position):U(n.rowId);return t(v,{children:[0!==r&&e(In,{displayStrongBorder:n.isLastGroupRow,position:n.position,rowHeight:s,templateColumns:h}),e(yn,{columnIndexStart:o,columnIndices:i,gridTemplateColumns:h,headers:l,index:r,pinned:c,rowHeight:s,rowIndices:d,setHoveredIndex:f,tableRow:n})]},a)})}))})):null});function Mn(e){var n=e.headers,t=e.pinnedLeftColumns,r=e.pinnedRightColumns,o=e.collapsedHeaders,i={},a=0,u=R(R(R([],t,!0),n,!0),r,!0),l=function(e,n,t){void 0===n&&(n=!1),n||a++,i[e.accessor]=a,e.children&&e.children.length>0&&e.children.filter(function(e){return O({header:e,pinned:t,headers:u,collapsedHeaders:o,rootPinned:t})}).forEach(function(n,r){l(n,!e.singleRowChildren&&0===r,t)})};return t.forEach(function(e,n){l(e,0===n,e.pinned)}),n.filter(function(e){return!e.pinned&&O({header:e,pinned:void 0,headers:u,collapsedHeaders:o,rootPinned:e.pinned})}).forEach(function(e,n){l(e,0===n&&0===t.length,e.pinned)}),r.forEach(function(e){l(e,!1,e.pinned)}),i}Sn.displayName="TableSection";var Nn=function(n){var r=n.calculatedHeaderHeight,o=n.stickyParents,i=n.mainTemplateColumns,l=n.pinnedLeftColumns,c=n.pinnedLeftTemplateColumns,s=n.pinnedLeftWidth,d=n.pinnedRightColumns,f=n.pinnedRightTemplateColumns,h=n.pinnedRightWidth,p=n.setHoveredIndex,w=n.rowIndices,m=n.scrollbarWidth,g=n.scrollTop,b=n.heightMap,y=n.partiallyVisibleRows,I=fe(),C=I.collapsedHeaders,R=I.customTheme,S=I.editColumns,M=I.headers,H=I.rowHeight,E=a(null),k=a(null),T=a(null),P=u(function(){var e,n;if(0===o.length)return{treeTransitionOffset:0,offsetStartIndex:-1};var t,r=y[0];if((null==r?void 0:r.parentIndices)&&r.parentIndices.length>0)for(var i=function(e){var n=r.parentIndices[e];if(o.some(function(e){return e.position===n}))return t=n,"break"},a=r.parentIndices.length-1;a>=0&&"break"!==i(a);a--);var u=void 0!==t?o.findIndex(function(e){return e.position===t}):-1,l=-1,c=function(e){var n=o[e],t=o[e+1];return t?t.depth===n.depth?(l=e,"break"):n.depth>t.depth?(l=o.findIndex(function(e){return e.depth===n.depth}),"break"):void 0:"break"};for(a=0;o.length>a&&"break"!==c(a);a++);if(-1===l)return{treeTransitionOffset:0,offsetStartIndex:u};var s=null===(e=o[l])||void 0===e?void 0:e.position;if(void 0===s)return{treeTransitionOffset:0,offsetStartIndex:u};for(var d=0,f=0,v=y;v.length>f&&(null===(n=v[f].parentIndices)||void 0===n?void 0:n.includes(s));f++)d++;if(0===d)return{treeTransitionOffset:0,offsetStartIndex:u};var h=y[0];return{treeTransitionOffset:-((l+1-d)*H+Math.max(0,g-(b?b.rowTopPositions[h.position]:h.position*(H+R.rowSeparatorWidth)))),offsetStartIndex:u}},[R,b,y,H,g,o]),A=P.treeTransitionOffset,D=P.offsetStartIndex,F=u(function(){return Mn({headers:M,pinnedLeftColumns:l,pinnedRightColumns:d,collapsedHeaders:C})},[M,l,d,C]),L=o.length>0?o.length*(H+1)+A:0;if(0===o.length)return null;var O=function(n,r,i,a,u,l){return void 0===u&&(u=0),e("div",x({className:i?"st-sticky-section-".concat(i):"st-sticky-section-main",ref:l,style:{position:"relative",height:"".concat(L,"px"),width:i?"".concat(a,"px"):void 0,flexGrow:i?0:1,flexShrink:i?0:void 0}},{children:o.map(function(a,l){var c=a.stateIndicator?"sticky-state-".concat(a.stateIndicator.parentRowId,"-").concat(a.position):"sticky-".concat(U(a.rowId)),s=-1!==D&&l>=D,d=s?A:0,f=(l+1)*(H+1)-1+d;return t(v,{children:[e(yn,{columnIndexStart:u,columnIndices:F,gridTemplateColumns:n,headers:r,index:a.position,pinned:i,rowHeight:H,rowIndices:w,setHoveredIndex:p,tableRow:a,isSticky:!0,stickyIndex:l,stickyOffset:d,stickyZIndex:s?l:o.length-l}),e(In,{displayStrongBorder:!1,position:f,rowHeight:H,templateColumns:n,isSticky:!0})]},c)})}))},W=M.filter(function(e){return!e.pinned}),B="calc(100% - ".concat(m,"px - ").concat(S?"".concat(N,"px"):"0px",")");return t("div",x({className:"st-sticky-top",style:{height:"".concat(L,"px"),width:B,top:"".concat(r,"px")}},{children:[l.length>0&&e(Rn,x({childRef:E,group:"pinned-left"},{children:O(c,l,"left",s,0,E)})),e(Rn,x({childRef:k,group:"default"},{children:O(i,W,void 0,void 0,l.length,k)})),d.length>0&&e(Rn,x({childRef:T,group:"pinned-right"},{children:O(f,d,"right",h,l.length+W.length,T)}))]}))},Hn=function(r){var c=r.calculatedHeaderHeight,s=r.mainTemplateColumns,d=r.pinnedLeftColumns,f=r.pinnedLeftTemplateColumns,v=r.pinnedLeftWidth,h=r.pinnedRightColumns,p=r.pinnedRightTemplateColumns,w=r.pinnedRightWidth,m=r.rowsToRender,g=r.setScrollTop,b=r.setScrollDirection,y=r.shouldShowEmptyState,I=r.tableRows,C=r.stickyParents,R=r.regularRows,S=r.partiallyVisibleRows,M=r.heightMap,N=fe(),H=N.collapsedHeaders,E=N.headerContainerRef,k=N.headers,T=N.heightOffsets,P=N.isAnimating,A=N.mainBodyRef,D=N.onLoadMore,F=N.rowHeight,L=N.scrollbarWidth,O=N.setIsScrolling,W=N.shouldPaginate,B=N.tableBodyContainerRef,z=N.tableEmptyStateRenderer,q=N.customTheme,G=i(!1),V=G[0],j=G[1],K=i(0),_=K[0],J=K[1],Y=a(new Set),X=l(function(e){if(document.querySelectorAll(".st-row.hovered").forEach(function(e){e.classList.remove("hovered")}),Y.current.clear(),null!==e&&B.current){var n=B.current,t='.st-row[data-index="'.concat(e,'"]:not(.st-nested-grid-row)');n.querySelectorAll(t).forEach(function(e){var t=e;t.closest(".st-body-container")===n&&(t.classList.add("hovered"),Y.current.add(t))});var r=n.previousElementSibling;r&&r.classList.contains("st-sticky-top")&&r.querySelectorAll(t).forEach(function(e){var n=e;n.classList.add("hovered"),Y.current.add(n)})}},[B]);o(function(){P&&X(null)},[P,X]),Re({headerContainerRef:E,mainSectionRef:B,scrollbarWidth:L}),o(function(){return function(){Q.current&&clearTimeout(Q.current)}},[]);var $=a(null),Q=a(null),Z=a(0),ee=function(e){return e.length}(I),ne=u(function(){return function(e,n,t,r){return e*(n+r.rowSeparatorWidth)-r.rowSeparatorWidth+((null==t?void 0:t.reduce(function(e,n){return e+n[1]},0))||0)}(ee,F,T,q)},[ee,F,T,q]),te=u(function(){return Mn({headers:k,pinnedLeftColumns:d,pinnedRightColumns:h,collapsedHeaders:H})},[k,d,h,H]),re=u(function(){return Ye(k,"left")||Ye(k,void 0)||Ye(k,"right")},[k]),oe=u(function(){return re?void 0:{minHeight:ne}},[re,ne]),ie=u(function(){var e={};return m.forEach(function(n,t){var r=U(n.rowId);e[r]=t}),e},[m]),ae=l(function(e,n){!D||W||V||200>=e.scrollHeight-(n+e.clientHeight)&&n>Z.current&&(j(!0),D(),setTimeout(function(){j(!1)},1e3))},[D,W,V]),ue={columnIndices:te,headerContainerRef:E,headers:k,rowHeight:F,rowIndices:ie,rowsToRender:m,setHoveredIndex:X,regularRows:R};return t(n,{children:[!y&&e(Nn,{calculatedHeaderHeight:c,heightMap:M,mainTemplateColumns:s,partiallyVisibleRows:S,pinnedLeftColumns:d,pinnedLeftTemplateColumns:f,pinnedLeftWidth:v,pinnedRightColumns:h,pinnedRightTemplateColumns:p,pinnedRightWidth:w,rowIndices:ie,scrollTop:_,scrollbarWidth:L,setHoveredIndex:X,stickyParents:C}),e("div",x({className:"st-body-container",onMouseLeave:function(){return X(null)},onScroll:function(e){var n=e.currentTarget,t=n.scrollTop;O(!0),Q.current&&clearTimeout(Q.current),Q.current=setTimeout(function(){O(!1)},150),$.current&&cancelAnimationFrame($.current),$.current=requestAnimationFrame(function(){var e=Z.current,r=t>e?"down":e>t?"up":"none";g(t),b(r),J(t),ae(n,t),Z.current=t})},ref:B,style:oe},{children:y?e("div",x({className:"st-empty-state-wrapper"},{children:z})):t(n,{children:[e(Sn,x({},ue,{pinned:"left",templateColumns:f,totalHeight:ne,width:v})),e(Sn,x({},ue,{columnIndexStart:d.length,ref:A,templateColumns:s,totalHeight:ne})),e(Sn,x({},ue,{columnIndexStart:d.length+s.length,pinned:"right",templateColumns:p,totalHeight:ne,width:w}))]})}))]})},En=function(e,n){if(e.pinned)return e.pinned;var t=F(n,e.accessor);return t?En(t,n):void 0},kn=function(e){var n=e.autoExpandColumns,t=e.collapsedHeaders,r=e.containerWidth,o=e.event,i=e.header,a=e.headers,u=e.onColumnWidthChange,l=e.reverse,c=void 0!==l&&l,s=e.setHeaders,d=e.setIsResizing,f=e.startWidth;o.preventDefault();var v="clientX"in o?o.clientX:o.touches[0].clientX,h="touches"in o;if(i&&!i.hide){d(!0);var p,w=En(i,a),m=Z(i);if(i.children&&i.children.length>0){var g=X(i,t);p=g.length>0?g:[i]}else p=[i];var b=new Map,x=0;if(n){var y=a.filter(function(e){return e.pinned===w});if(ee(y,t).forEach(function(e){var n=$(e);b.set(e.accessor,n)}),r>0){var I=Pn({headers:a,containerWidth:r,collapsedHeaders:t}),C=I.leftWidth,S=I.rightWidth;x="left"===w?C:"right"===w?S:Math.max(0,r-C-S)}}var M=function(e){var o="right"===w?v-e:e-v;if(n){var u=a.filter(function(e){return e.pinned===w});Dn({delta:o,startWidth:f,resizedHeader:p.length>0?p[p.length-1]:i,sectionHeaders:u,rootPinned:w,reverse:c,collapsedHeaders:t,initialWidthsMap:b,sectionWidth:x,isParentResize:p.length>1,childrenToResize:p,headers:a,containerWidth:r})}else{var l=function(e){var n=e.header,t=e.headers,r=e.collapsedHeaders,o=document.querySelector(".st-body-container");if(!o||0===o.clientWidth)return 1e3;var i=o.clientWidth;if(!n.pinned)return 1/0;var a=t.some(function(e){return"left"===e.pinned&&!e.hide}),u=t.some(function(e){return"right"===e.pinned&&!e.hide}),l=i*k(i,a,u)-t.filter(function(e){return e.pinned===n.pinned&&e.accessor!==n.accessor}).reduce(function(e,n){return n.hide?e:e+X(n,r).reduce(function(e,n){return e+$(n)},0)},0),c=Z(n);return c>l?(console.warn("Header ".concat(n.accessor," exceeds pinned section width limit")),c):l}({header:i,headers:a,collapsedHeaders:t});p.length>1?Tn({delta:o,leafHeaders:p,minWidth:m,startWidth:f,maxWidth:l}):p[0].width=Math.max(Math.min(f+o,l),m),a.forEach(function(e){Q(e)})}var d=R([],a,!0);s(d)};if(h){var N=function(e){M(e.touches[0].clientX)},H=function(){document.removeEventListener("touchmove",N),document.removeEventListener("touchend",H),d(!1),u&&u(R([],a,!0))};document.addEventListener("touchmove",N),document.addEventListener("touchend",H)}else{var E=function(e){M(e.clientX)},T=function(){document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",T),d(!1),u&&u(R([],a,!0))};document.addEventListener("mousemove",E),document.addEventListener("mouseup",T)}}},Tn=function(e){var n=e.delta,t=e.leafHeaders,r=e.minWidth,o=e.startWidth,i=e.maxWidth,a=t.reduce(function(e,n){return Math.min(e,Z(n))},40),u=t.reduce(function(e,n){return e+("number"==typeof n.width?n.width:150)},0),l=Math.max(Math.min(o+n,i),a)-u;t.forEach(function(e){var n="number"==typeof e.width?e.width:150;e.width=Math.max(n+l*(n/u),r)})},Pn=function(e){var n=e.containerWidth,t=e.collapsedHeaders,r=0,o=0,i=0;e.headers.forEach(function(e){if(!e.hide){var n=X(e,t).reduce(function(e,n){return e+$(n)},0);"left"===e.pinned?r+=n:"right"===e.pinned?o+=n:i+=n}});var a=r,u=o;if(n&&n>0){var l=n*k(n,r>0,o>0);r>l&&(r=l),o>l&&(o=l)}return{leftWidth:D(r),rightWidth:D(o),mainWidth:i,leftContentWidth:a,rightContentWidth:u}},An=function(e){var n=e.columnsToShrink,t=e.totalCompensation,r=e.initialWidthsMap;if(0>t){var o=Math.abs(t),i=n.reduce(function(e,n){return e+(r.get(n.accessor)||100)},0);if(0===i)return;n.forEach(function(e,t){var a=r.get(e.accessor)||100,u=o*(a/i);if(t===n.length-1){var l=n.slice(0,t).reduce(function(e,n){var t=r.get(n.accessor)||100;return e+(("number"==typeof n.width?n.width:100)-t)},0);u=o-l}e.width=a+u})}else for(var a=t,u=function(){var e=n.map(function(e){var n=r.get(e.accessor)||100;return{column:e,headroom:Math.max(0,n-40),initialWidth:n,minWidth:40}}),t=e.filter(function(e){return e.headroom>0});if(t.length>0){var o=t.reduce(function(e,n){return e+n.headroom},0),i=0,u=a;t.forEach(function(e,n){var r=u*(e.headroom/o);r=Math.min(r,e.headroom),n===t.length-1&&(r=Math.min(u-i,e.headroom)),e.column.width=e.initialWidth-r,i+=r}),a-=i}else{var l=e.filter(function(e){return e.minWidth>E});if(0>=l.length)return"break";var c=a,s=c/l.length,d=0;l.forEach(function(e,n){var t=e.minWidth-E,r=Math.min(s,t);n===l.length-1&&(r=Math.min(c-d,t));var o=e.initialWidth-r;e.column.width=o,e.column.minWidth=Math.max(o,E),d+=r}),a-=d}};a>.5&&"break"!==u(););},Dn=function(e){var n=e.childrenToResize,t=void 0===n?[]:n,r=e.collapsedHeaders,o=e.delta,i=e.initialWidthsMap,a=e.isParentResize,u=void 0!==a&&a,l=e.resizedHeader,c=e.reverse,s=e.rootPinned,d=e.sectionHeaders,f=e.sectionWidth,v=e.startWidth,h=e.headers,p=e.containerWidth,w=o;if(s&&p>0){var m=function(e,n,t){return e*k(e,n,t)}(p,h.some(function(e){return"left"===e.pinned&&!e.hide}),h.some(function(e){return"right"===e.pinned&&!e.hide})),g=Array.from(i.values()).reduce(function(e,n){return e+n},0);o>0&&g+o>m&&(w=Math.max(0,m-g))}if(o=w,u&&t.length>1){var b=ee(d,r),x=b.findIndex(function(e){return e.accessor===t[0].accessor}),y=b.findIndex(function(e){return e.accessor===t[t.length-1].accessor});if(-1===x||-1===y)return;var I,C=0===x,R=y===b.length-1;I="left"===s&&R||"right"===s&&C?[]:C?b.slice(y+1):R||c?b.slice(0,x):b.slice(y+1);var S=Array.from(i.values()).reduce(function(e,n){return e+n},0);if(o>0){var M=o,N=!1;if(I.length>0&&S+o>f){N=!0;var H=I.reduce(function(e,n){var t=i.get(n.accessor)||100;return e+Math.max(0,t-E)},0);M=Math.min(o,H)}var T=(P=v+M)/(A=t.reduce(function(e,n){return e+(i.get(n.accessor)||100)},0));t.forEach(function(e){var n=i.get(e.accessor)||100;e.width=Math.max(n*T,40)}),N&&M>0&&I.length>0&&An({columnsToShrink:I,totalCompensation:M,initialWidthsMap:i})}else{var P,A=t.reduce(function(e,n){return e+(i.get(n.accessor)||100)},0),D=(P=Math.max(v+o,E*t.length))/A;t.forEach(function(e){var n=i.get(e.accessor)||100;e.width=Math.max(n*D,40)}),(V=v-P)>0&&I.length>0&&An({columnsToShrink:I,totalCompensation:-V,initialWidthsMap:i})}}else{var F=ee(d,r),L=F.findIndex(function(e){return e.accessor===l.accessor});if(-1!==L){var O,W=0===L,B=L===F.length-1;if(0!==(O="left"===s&&B||"right"===s&&W?[]:W?F.slice(L+1):B||c?F.slice(0,L):F.slice(L+1)).length){var z=Array.from(i.values()).reduce(function(e,n){return e+n},0);if(o>0){if(f>=z+o)return void(l.width=v+o);H=O.reduce(function(e,n){var t=i.get(n.accessor)||100;return e+Math.max(0,t-E)},0);var q=Math.min(o,H);l.width=v+q,q>0&&An({columnsToShrink:O,totalCompensation:q,initialWidthsMap:i})}else{var G=Math.max(v+o,40),V=v-G;l.width=G,V>0&&An({columnsToShrink:O,totalCompensation:-V,initialWidthsMap:i})}}else l.width=Math.max(v+o,40)}}},Fn={equals:"Equals",notEquals:"Not equals",contains:"Contains",notContains:"Does not contain",startsWith:"Starts with",endsWith:"Ends with",greaterThan:"Greater than",lessThan:"Less than",greaterThanOrEqual:"Greater than or equal",lessThanOrEqual:"Less than or equal",between:"Between",notBetween:"Not between",before:"Before",after:"After",in:"Is one of",notIn:"Is not one of",isEmpty:"Is empty",isNotEmpty:"Is not empty"},Ln=function(e){switch(e){case"string":return["equals","notEquals","contains","notContains","startsWith","endsWith","isEmpty","isNotEmpty"];case"number":return["equals","notEquals","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual","between","notBetween","isEmpty","isNotEmpty"];case"boolean":return["equals","isEmpty","isNotEmpty"];case"date":return["equals","notEquals","before","after","between","notBetween","isEmpty","isNotEmpty"];case"enum":return["in","notIn","isEmpty","isNotEmpty"];default:return["equals","notEquals","isEmpty","isNotEmpty"]}},On=function(e){return!["between","notBetween","in","notIn","isEmpty","isNotEmpty"].includes(e)},Wn=function(e){return["between","notBetween","in","notIn"].includes(e)},Bn=function(e){return["isEmpty","isNotEmpty"].includes(e)},zn=function(n){return e("div",x({className:"st-filter-container"},{children:n.children}))},qn=function(n){var r=n.value,u=n.onChange,l=n.options,c=n.placeholder,s=void 0===c?"Select...":c,d=n.className,f=void 0===d?"":d,v=n.disabled,h=void 0!==v&&v,p=i(!1),w=p[0],m=p[1],g=i(-1),b=g[0],y=g[1],I=a(null),C=l.find(function(e){return e.value===r});o(function(){var e=function(e){if(w)switch(e.key){case"ArrowDown":e.preventDefault(),y(function(e){return l.length-1>e?e+1:0});break;case"ArrowUp":e.preventDefault(),y(function(e){return e>0?e-1:l.length-1});break;case"Enter":e.preventDefault(),0>b||(u(l[b].value),m(!1),y(-1));break;case"Escape":e.preventDefault(),m(!1),y(-1)}};if(w)return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[w,b,l,u]);var R=function(e){u(e),m(!1),y(-1)};return t("div",x({ref:I,className:"st-custom-select ".concat(f," ").concat(h?"st-custom-select-disabled":""," ").concat(w?"st-custom-select-open":"").trim()},{children:[t("button",x({type:"button",className:"st-custom-select-trigger",onClick:function(){if(!h)if(m(!w),w)y(-1);else{var e=l.findIndex(function(e){return e.value===r});y(0>e?0:e)}},disabled:h,"aria-haspopup":"listbox","aria-expanded":w,"aria-labelledby":"select-label"},{children:[e("span",x({className:"st-custom-select-value"},{children:C?C.label:s})),e(Ce,{})]})),e(Se,x({open:w,setOpen:m,onClose:function(){m(!1),y(-1)},positioning:"absolute",overflow:"auto"},{children:e("div",x({className:"st-custom-select-options",role:"listbox"},{children:l.map(function(n,t){return e("div",x({className:"st-custom-select-option ".concat(n.value===r?"st-custom-select-option-selected":""," ").concat(t===b?"st-custom-select-option-focused":"").trim(),role:"option","aria-selected":n.value===r,onClick:function(){return R(n.value)},tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),R(n.value))}},{children:n.label}),t)})}))}))]}))},Gn=function(n){var t=n.value,r=n.onChange,o=n.operators.map(function(e){return{value:e,label:Fn[e]}});return e("div",x({className:"st-filter-section"},{children:e(qn,{value:t,onChange:function(e){r(e)},options:o})}))},Vn=function(n){var t=n.type,r=n.onChange,o=n.autoFocus,i=n.className,a=n.onEnterPress;return e("input",{type:void 0===t?"text":t,value:n.value,onChange:function(e){return r(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&a&&a()},placeholder:n.placeholder,autoFocus:void 0!==o&&o,className:"st-filter-input ".concat(void 0===i?"":i).trim()})},jn=function(n){var t=n.children,r=n.className;return e("div",x({className:"st-filter-section ".concat(void 0===r?"":r).trim()},{children:t}))},Kn=function(n){var r=n.onClear,o=n.canApply,i=n.showClear;return t("div",x({className:"st-filter-actions"},{children:[e("button",x({onClick:n.onApply,disabled:!o,className:"st-filter-button st-filter-button-apply ".concat(o?"":"st-filter-button-disabled"),tabIndex:0},{children:"Apply"})),i&&r&&e("button",x({onClick:r,className:"st-filter-button st-filter-button-clear",tabIndex:0},{children:"Clear"}))]}))},Un=function(n){var r=n.header,a=n.currentFilter,u=n.onApplyFilter,l=n.onClearFilter,c=i((null==a?void 0:a.operator)||"contains"),s=c[0],d=c[1],f=i(((null==a?void 0:a.value)||"")+""),v=f[0],h=f[1],p=Ln("string");o(function(){a?(d(a.operator),h((a.value||"")+"")):(d("contains"),h(""))},[a]);var w=function(){var e=x({accessor:r.accessor,operator:s},On(s)&&{value:v});u(e)},m=Bn(s)||v.trim();return t(zn,{children:[e(Gn,{value:s,onChange:d,operators:p}),On(s)&&e(jn,{children:e(Vn,{type:"text",value:v,onChange:h,placeholder:"Filter...",autoFocus:!0,onEnterPress:w})}),e(Kn,{onApply:w,onClear:l,canApply:!!m,showClear:!!a})]})},_n=function(n){var r,a,u=n.header,l=n.currentFilter,c=n.onApplyFilter,s=n.onClearFilter,d=i((null==l?void 0:l.operator)||"equals"),f=d[0],v=d[1],h=i(((null==l?void 0:l.value)||"")+""),p=h[0],w=h[1],m=i(((null===(r=null==l?void 0:l.values)||void 0===r?void 0:r[0])||"")+""),g=m[0],b=m[1],x=i(((null===(a=null==l?void 0:l.values)||void 0===a?void 0:a[1])||"")+""),y=x[0],I=x[1],C=Ln("number");o(function(){var e,n;l?(v(l.operator),w((l.value||"")+""),b(((null===(e=l.values)||void 0===e?void 0:e[0])||"")+""),I(((null===(n=l.values)||void 0===n?void 0:n[1])||"")+"")):(v("equals"),w(""),b(""),I(""))},[l]);var R=function(){var e={accessor:u.accessor,operator:f};On(f)?e.value=parseFloat(p):Wn(f)&&(e.values=[parseFloat(""+g),parseFloat(""+y)]),c(e)};return t(zn,{children:[e(Gn,{value:f,onChange:v,operators:C}),On(f)&&e(jn,{children:e(Vn,{type:"number",value:p,onChange:w,placeholder:"Enter number...",autoFocus:!0,onEnterPress:R})}),Wn(f)&&t(jn,{children:[e(Vn,{type:"number",value:g,onChange:b,placeholder:"From...",autoFocus:!0,className:"st-filter-input-range-from",onEnterPress:R}),e(Vn,{type:"number",value:y,onChange:I,placeholder:"To...",onEnterPress:R})]}),e(Kn,{onApply:R,onClear:s,canApply:!!Bn(f)||(On(f)?""!==p.trim():!!Wn(f)&&""!==(g+"").trim()&&""!==(y+"").trim()),showClear:!!l})]})},Jn=function(n){var t=n.className;return e(qn,{value:n.value,onChange:n.onChange,options:n.options,className:void 0===t?"":t,placeholder:n.placeholder})},Yn=function(n){var r=n.header,a=n.currentFilter,u=n.onApplyFilter,l=n.onClearFilter,c=i((null==a?void 0:a.operator)||"equals"),s=c[0],d=c[1],f=i(void 0!==(null==a?void 0:a.value)?a.value+"":"true"),v=f[0],h=f[1],p=Ln("boolean");o(function(){a?(d(a.operator),h(void 0!==a.value?a.value+"":"true")):(d("equals"),h("true"))},[a]);var w=Bn(s)||""!==v;return t(zn,{children:[e(Gn,{value:s,onChange:d,operators:p}),On(s)&&e(jn,{children:e(Jn,{value:v,onChange:h,options:[{value:"true",label:"True"},{value:"false",label:"False"}]})}),e(Kn,{onApply:function(){var e={accessor:r.accessor,operator:s};On(s)&&(e.value="true"===v),u(e)},onClear:l,canApply:w,showClear:!!a})]})},Xn=function(n){var r,u,l=n.header,c=n.currentFilter,s=n.onApplyFilter,d=n.onClearFilter,f=i((null==c?void 0:c.operator)||"equals"),v=f[0],h=f[1],p=i((null==c?void 0:c.value)?c.value+"":""),w=p[0],m=p[1],g=i((null===(r=null==c?void 0:c.values)||void 0===r?void 0:r[0])?c.values[0]+"":""),b=g[0],y=g[1],I=i(((null===(u=null==c?void 0:c.values)||void 0===u?void 0:u[1])||"")+""),C=I[0],R=I[1],S=Ln("date");o(function(){var e,n;c?(h(c.operator),m((c.value||"")+""),y(((null===(e=c.values)||void 0===e?void 0:e[0])||"")+""),R(((null===(n=c.values)||void 0===n?void 0:n[1])||"")+"")):(h("equals"),m(""),y(""),R(""))},[c]);var M=function(n){var r=n.value,u=n.onChange,l=n.placeholder,c=n.autoFocus,s=n.className,d=i(!1),f=d[0],v=d[1],h=i(""),p=h[0],w=h[1],m=a(null);o(function(){if(r){var e=ze(r);isNaN(e.getTime())||w(e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}))}else w("")},[r]),o(function(){c&&m.current&&m.current.focus()},[c]);var g=r?ze(r):new Date;return t("div",x({className:"st-date-input-container",style:{position:"relative"}},{children:[e("input",{ref:m,type:"text",value:p,placeholder:l,onClick:function(){v(!f)},onKeyDown:function(e){"Enter"===e.key||" "===e.key?(e.preventDefault(),v(!f)):"Escape"===e.key&&v(!1)},readOnly:!0,className:"st-filter-input ".concat(s||""),style:{cursor:"pointer"}}),e(Se,x({open:f,setOpen:v,onClose:function(){v(!1)},positioning:"absolute",overflow:"hidden",width:240},{children:e(Fe,{value:g,onChange:function(e){var n=e.toISOString().split("T")[0];u(n),v(!1)},onClose:function(){return v(!1)}})}))]}))};return t(zn,{children:[e(Gn,{value:v,onChange:h,operators:S}),On(v)&&e(jn,{children:e(M,{value:w,onChange:m,placeholder:"Select date...",autoFocus:!0})}),Wn(v)&&t(jn,{children:[e(M,{value:b,onChange:y,placeholder:"From date...",autoFocus:!0,className:"st-filter-input-range-from"}),e(M,{value:C,onChange:R,placeholder:"To date..."})]}),e(Kn,{onApply:function(){var e={accessor:l.accessor,operator:v};On(v)?e.value=w:Wn(v)&&(e.values=[b,C]),s(e)},onClear:d,canApply:!!Bn(v)||(On(v)?""!==w.trim():!!Wn(v)&&""!==b.trim()&&""!==C.trim()),showClear:!!c})]})},$n=function(n){var r=n.header,a=n.currentFilter,l=n.onApplyFilter,c=n.onClearFilter,s=u(function(){return r.enumOptions||[]},[r.enumOptions]),d=u(function(){return s.map(function(e){return e.value})},[s]),f=i((null==a?void 0:a.values)?a.values.map(String):d),v=f[0],h=f[1],p=i(""),w=p[0],m=p[1],g=u(function(){if(!w)return s;var e=w.toLowerCase();return s.filter(function(n){return n.label.toLowerCase().includes(e)})},[s,w]);o(function(){h(a?a.values?a.values.map(String):[]:d)},[a,d]);var b=s.length>10;return t(zn,{children:[e(jn,{children:t("div",x({className:"st-enum-filter-options"},{children:[e("div",x({className:"st-enum-select-all"},{children:e(hn,x({checked:v.length===d.length,onChange:function(e){h(e?d:[])}},{children:e("span",x({className:"st-enum-option-label st-enum-select-all-label"},{children:"Select All"}))}))})),b&&e("div",x({className:"st-enum-search"},{children:e(Vn,{type:"text",value:w,onChange:m,placeholder:"Search..."})})),g.map(function(n,t){return e(hn,x({checked:v.includes(n.value),onChange:function(){return e=n.value,void h(function(n){return n.includes(e)?n.filter(function(n){return n!==e}):R(R([],n,!0),[e],!1)});var e}},{children:e("span",x({className:"st-enum-option-label"},{children:n.label}))}),t)}),w&&0===g.length&&e("div",x({className:"st-enum-no-results"},{children:"No matching options"}))]}))}),e(Kn,{onApply:function(){v.length!==d.length?l({accessor:r.accessor,operator:"in",values:v}):c()},onClear:c,canApply:0!==v.length&&v.length!==d.length,showClear:!!a})]})},Qn=function(t){var r=t.header,o=t.currentFilter,i=t.onApplyFilter,a=t.onClearFilter;return e(n,{children:function(){switch(r.type){case"number":return e(_n,{header:r,currentFilter:o,onApplyFilter:i,onClearFilter:a});case"boolean":return e(Yn,{header:r,currentFilter:o,onApplyFilter:i,onClearFilter:a});case"date":return e(Xn,{header:r,currentFilter:o,onApplyFilter:i,onClearFilter:a});case"enum":return e($n,{header:r,currentFilter:o,onApplyFilter:i,onClearFilter:a});default:return e(Un,{header:r,currentFilter:o,onApplyFilter:i,onClearFilter:a})}}()})},Zn=function(r){var u=r.content,l=r.children,c=r.delay,s=void 0===c?500:c,d=i(!1),f=d[0],v=d[1],p=i({top:0,left:0}),w=p[0],g=p[1],b=a(null),y=a(null);if(o(function(){return function(){b.current&&clearTimeout(b.current)}},[]),!u||!m(l))return e(n,{children:l});var I=h(l,{ref:y,onMouseEnter:function(){b.current=setTimeout(function(){if(y.current&&u.trim()){var e=y.current.getBoundingClientRect();if(e.width>0&&e.height>0){var n=e.left+e.width/2-100,t=e.bottom+8;8>n?n=8:n+200>window.innerWidth-8&&(n=window.innerWidth-200-8),t+40>window.innerHeight-8&&(t=e.top-40-8),g({top:t,left:n}),v(!0)}}},s)},onMouseLeave:function(){b.current&&(clearTimeout(b.current),b.current=null),v(!1)}});return t(n,{children:[I,f&&e("div",x({className:"st-tooltip",style:{position:"fixed",top:"".concat(w.top,"px"),left:"".concat(w.left,"px"),zIndex:1e4}},{children:u}))]})},et=function(n){var r,c,s=n.colIndex,d=n.gridColumnEnd,f=n.gridColumnStart,v=n.gridRowEnd,p=n.gridRowStart,w=n.header,m=n.parentHeader,g=n.reverse,b=n.sort,y=n.isLastHeader,I=void 0!==y&&y,C=i(!1),S=C[0],M=C[1],N=i(!1),E=N[0],k=N[1],A=i(w.label||""),D=A[0],F=A[1],O=fe(),W=O.activeHeaderDropdown,B=O.areAllRowsSelected,z=O.autoExpandColumns,q=O.collapsedHeaders,V=O.columnBorders,j=O.columnReordering,K=O.columnResizing,U=O.containerWidth,_=O.columnsWithSelectedCells,J=O.draggedHeaderRef,Y=O.enableHeaderEditing,X=O.essentialAccessors,$=O.handleApplyFilter,Q=O.handleClearFilter,Z=O.handleSelectAll,ee=O.headerDropdown,ne=O.headerRegistry,te=O.icons,re=O.headers,oe=O.hoveredHeaderRef,ie=O.onColumnOrderChange,ae=O.onColumnSelect,ue=O.onColumnWidthChange,le=O.onHeaderEdit,ce=O.onSort,se=O.onTableHeaderDragEnd,de=O.headerHeight,ve=O.rows,he=O.selectColumns,pe=O.selectableColumns,we=O.selectedColumns,me=O.setActiveHeaderDropdown,ge=O.setCollapsedHeaders,be=O.setHeaders,xe=O.setInitialFocusedCell,ye=O.setIsResizing,Ie=O.setSelectedCells,Ce=O.setSelectedColumns,Re=!!(null==w?void 0:w.isSortable),Me=!!(null==w?void 0:w.filterable),Ne=O.filters[w.accessor],Ee=(null==W?void 0:W.accessor)===w.accessor,ke=w.isSelectionColumn&&O.enableRowSelection,Te=function(e){var n;return!(!(null===(n=e.children)||void 0===n?void 0:n.length)||!e.collapsible)}(w),Pe=q.has(w.accessor),Ae=function(e){var n=e.isOpen,t=e.estimatedHeight,r=void 0===t?200:t,u=e.estimatedWidth,l=void 0===u?250:u,c=e.margin,s=void 0===c?4:c,d=a(null),f=i({}),v=f[0],h=f[1];return o(function(){if(n&&d.current){var e=function(){if(d.current){var e=d.current.getBoundingClientRect(),n=window.innerHeight-e.bottom,t=window.innerWidth-e.right,o="bottom",i={};r>n&&e.top>=r&&(o="top");var a="left";l>t+e.width&&(a="right"),"bottom"===o?i.top=e.bottom+s:i.bottom=window.innerHeight-e.top+s,"left"===a?i.left=e.left:i.right=window.innerWidth-e.right,h(i)}};requestAnimationFrame(e);var t=function(){return requestAnimationFrame(e)},o=function(){return requestAnimationFrame(e)};return window.addEventListener("resize",t),window.addEventListener("scroll",o,!0),function(){window.removeEventListener("resize",t),window.removeEventListener("scroll",o,!0)}}h({})},[n,r,l,s]),{triggerRef:d,position:v}}({isOpen:Ee,estimatedHeight:200,estimatedWidth:250,margin:4}),Fe=Ae.triggerRef,Le=Ae.position,Oe=u(function(){var e,n,t;if(!V)return!1;var r=re.filter(function(e){return"left"===e.pinned}),o=re.filter(function(e){return!e.pinned}),i=re.filter(function(e){return"right"===e.pinned});return"left"===w.pinned?(null===(e=r[r.length-1])||void 0===e?void 0:e.accessor)===w.accessor:"right"===w.pinned?(null===(n=i[i.length-1])||void 0===n?void 0:n.accessor)===w.accessor:(null===(t=o[o.length-1])||void 0===t?void 0:t.accessor)===w.accessor},[V,re,w.accessor,w.pinned]),We=u(function(){return!(!pe||ke)&&P(w,s).some(function(e){return we.has(e)})},[pe,ke,w,s,we]),Be=u(function(){return!ke&&P(w,s).some(function(e){return _.has(e)})},[ke,w,s,_]),ze=u(function(){return!(!w.children||0===w.children.length)&&(!Pe||w.children.some(function(e){var n=e.showWhen||T;return"parentCollapsed"===n||"always"===n}))},[w.children,Pe]),qe=null==m?void 0:m.singleRowChildren,Ge=ze&&!w.singleRowChildren,Ve="st-header-cell ".concat(w.accessor===(null===(r=oe.current)||void 0===r?void 0:r.accessor)?"st-hovered":""," ").concat((null===(c=J.current)||void 0===c?void 0:c.accessor)===w.accessor?"st-dragging":""," ").concat(Re?"clickable":""," ").concat(j&&!Re?"columnReordering":""," ").concat(Ge?"parent":""," ").concat(qe?"st-sub-header":""," ").concat(Oe?"st-last-column":""," ").concat(Y&&!ke?"st-header-editable":""," ").concat(We?"st-header-selected":""," ").concat(Be&&!We?"st-header-has-highlighted-cell":""," ").concat(I?"st-no-resize":""),je=vn({draggedHeaderRef:J,essentialAccessors:X,headers:re,hoveredHeaderRef:oe,onColumnOrderChange:ie,onTableHeaderDragEnd:se}),Ke=je.handleDragStart,_e=je.handleDragEnd,Je=je.handleDragOver,Ye=Ue();o(function(){if(ne&&!w.isSelectionColumn){var e=w.accessor+"";return ne.set(e,{setEditing:function(e){k(e)}}),function(){ne.delete(e)}}},[ne,w.accessor,w.isSelectionColumn]),o(function(){F(w.label||"")},[w.label]);var Xe=function(e){M(!S)},Qe=l(function(e){F(e);var n=re.map(function(n){return n.accessor===w.accessor?x(x({},n),{label:e}):n});be(n),le&&le(w,e)},[re,be,le,w]),Ze=l(function(){me&&me(null)},[me]),en=l(function(e){e.stopPropagation(),ge(function(e){var n=new Set(e);return Pe?n.delete(w.accessor):n.add(w.accessor),n})},[ge,Pe,w.accessor]),nn=function(e){var n=e.event,t=e.header;if(!t.isSelectionColumn){if(pe){var r=P(t,s),o=r.some(function(e){return we.has(e)});if(Y&&o&&!n.shiftKey)return ee&&Ee&&Ze(),void k(!0);n.shiftKey&&he?Ce(function(e){if(0===e.size)return new Set(r);var n=r[0],t=Array.from(e).sort(function(e,n){return e-n}),o=t[0],i=Math.abs(n-o);t.forEach(function(e){var t=Math.abs(n-e);i>t&&(i=t,o=e)});var a,u,l,c=R(R([],(l=Math.min(a=o,u=n),Array.from({length:Math.max(a,u)-l+1},function(e,n){return l+n})),!0),r,!0);return new Set(R(R([],Array.from(e),!0),c,!0))}):he&&he(r),Ie(new Set),xe(null)}ae&&ae(t),!pe&&t.isSortable&&ce(t.accessor)}};o(function(){var e=function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"};return document.addEventListener("dragover",e),function(){document.removeEventListener("dragover",e)}},[]);var tn=l(function(){var e=function(e,n){var t=n||{},r=t.rows,o=t.header,i=t.maxWidth,a=void 0===i?500:i,u=t.sampleSize,l=void 0===u?50:u,c=document.getElementById(L({accessor:e,rowId:"header"}));if(!c)return 150;var s=window.getComputedStyle(c),d=parseFloat(s.paddingLeft)||0,f=parseFloat(s.paddingRight)||0,v=parseFloat(s.gap)||0,h=d+f,p=c.querySelector(".st-header-label");if(p){var w=p.querySelector(".st-header-label-text");if(w){var m=document.createElement("span");m.style.visibility="hidden",m.style.position="absolute",m.style.whiteSpace="nowrap",m.style.width="auto";var g=window.getComputedStyle(w);m.style.font=g.font,m.style.fontSize=g.fontSize,m.style.fontWeight=g.fontWeight,m.style.fontFamily=g.fontFamily,m.style.letterSpacing=g.letterSpacing,m.style.padding=g.padding,m.textContent=w.textContent,document.body.appendChild(m);var b=m.offsetWidth;document.body.removeChild(m),h+=b}}for(var x=Array.from(c.children),y=1,I=0;x.length>I;I++){var C=x[I];if(!C.classList.contains("st-header-label")&&!C.classList.contains("st-sr-only")){var R=window.getComputedStyle(C);"none"!==R.display&&(h+=(C.offsetWidth||0)+(parseFloat(R.marginLeft)||0)+(parseFloat(R.marginRight)||0),y++)}}v>0&&y>1&&(h+=v*(y-1));var S=0,M=o&&o.type&&H.includes(o.type);if(r&&r.length>0&&!M){var N=Math.min(r.length,l),E=document.createElement("div");E.style.visibility="hidden",E.style.position="absolute",E.style.whiteSpace="nowrap",E.style.width="auto";var k=0,T=0,P=document.querySelector(".st-cell-content");if(P){var A=window.getComputedStyle(P);E.style.font=A.font,E.style.fontSize=A.fontSize,E.style.fontFamily=A.fontFamily,k=parseFloat(A.paddingLeft)||0,T=parseFloat(A.paddingRight)||0}for(document.body.appendChild(E),I=0;N>I;I++){var D,F=r[I],O=D=(null==o?void 0:o.valueGetter)?o.valueGetter({accessor:e,row:F,rowIndex:I}):G(F,e);(null==o?void 0:o.valueFormatter)&&null!=D&&(O=o.valueFormatter({accessor:e,colIndex:0,row:F,rowIndex:I,value:D})),E.textContent=null!=O?O+"":"";var W=E.offsetWidth+k+T;W>S&&(S=W)}document.body.removeChild(E)}var B=Math.max(h,S);return M&&(B=Math.max(B,150)),B>a&&(B=a),B+2}(w.accessor,{rows:ve,header:w,maxWidth:500,sampleSize:50}),n=ln(re,w.accessor);if(n){var t=cn(re,n),r=n[n.length-1],o=t.map(function(n,t){return t===r?x(x({},n),{width:e}):n}),i=sn(re,n,o);be(i),ue&&ue(i)}},[w,re,ve,be,ue]);if(!w)return null;var rn=K&&!ke&&!I&&e("div",x({className:"st-header-resize-handle-container",role:"separator","aria-label":"Resize ".concat(w.label," column"),"aria-orientation":"vertical",onMouseDown:function(e){var n,t=null===(n=document.getElementById(L({accessor:w.accessor,rowId:"header"})))||void 0===n?void 0:n.offsetWidth;Ye({callback:kn,callbackProps:{autoExpandColumns:z,collapsedHeaders:q,containerWidth:U,event:e.nativeEvent,header:w,headers:re,onColumnWidthChange:ue,reverse:g,setHeaders:be,setIsResizing:ye,startWidth:t},limit:10})},onTouchStart:function(e){var n,t=null===(n=document.getElementById(L({accessor:w.accessor,rowId:"header"})))||void 0===n?void 0:n.offsetWidth;Ye({callback:kn,callbackProps:{autoExpandColumns:z,collapsedHeaders:q,containerWidth:U,event:e,header:w,headers:re,onColumnWidthChange:ue,reverse:g,setHeaders:be,setIsResizing:ye,startWidth:t},limit:10})},onDoubleClick:tn},{children:e("div",{className:"st-header-resize-handle"})})),on=b&&b.key.accessor===w.accessor&&t("div",x({className:"st-icon-container",onClick:function(e){return nn({event:e,header:w})},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||ce(w.accessor)},tabIndex:0,role:"button","aria-label":"Sort ".concat(w.label," ").concat("asc"===b.direction?"descending":"ascending")},{children:["asc"===b.direction&&te.sortUp&&te.sortUp,"desc"===b.direction&&te.sortDown&&te.sortDown]})),an=Me&&te.filter&&t("div",x({className:"st-icon-container",onClick:Xe,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.target===e.currentTarget||e.currentTarget.contains(e.target))&&(e.target.closest(".st-dropdown-content")||(e.preventDefault(),Xe()))},tabIndex:0,role:"button","aria-label":"Filter ".concat(w.label),"aria-expanded":S,"aria-haspopup":"dialog"},{children:[h(te.filter,{style:{fill:Ne?"var(--st-button-active-background-color)":"var(--st-header-icon-color)"}}),e(Se,x({open:S,overflow:"visible",setOpen:M,onClose:function(){return M(!1)}},{children:e(Qn,{header:w,currentFilter:Ne,onApplyFilter:function(e){$(e),M(!1)},onClearFilter:function(){Q(w.accessor),M(!1)}})}))]})),un=Te&&!ke&&e("div",x({className:"st-icon-container st-collapse-icon-container",onClick:function(e){return en(e)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),en(e))},tabIndex:0,role:"button","aria-label":"".concat(Pe?"Expand":"Collapse"," ").concat(w.label," column"),"aria-expanded":!Pe},{children:Pe?te.headerCollapse:te.headerExpand})),dn=e(Zn,x({content:w.tooltip||""},{children:e("span",x({className:"st-header-label-text ".concat("right"===w.align?"right-aligned":"center"===w.align?"center-aligned":"left-aligned")},{children:ke?e(hn,{checked:!!B&&B(),onChange:function(e){Z&&Z(e)},ariaLabel:"Select all rows"}):E?e(He,{defaultValue:D,onBlur:function(){return k(!1)},onChange:Qe}):D||(null==w?void 0:w.label)}))})),fn="header-desc-".concat(w.accessor),pn=function(e,n){var t=[];return e.type&&"other"!==e.type&&t.push("".concat(e.type," column")),e.isSortable&&t.push("sortable"),n&&t.push("filterable"),e.tooltip&&t.push(e.tooltip),t.join(", ")}(w,Me);return t(De,x({className:Ve,id:L({accessor:w.accessor,rowId:"header"}),role:"columnheader","aria-sort":function(){if(w.isSortable)return(null==b?void 0:b.key.accessor)===w.accessor?"asc"===b.direction?"ascending":"descending":"none"}(),"aria-colindex":s+1,"aria-describedby":pn?fn:void 0,onDragOver:function(e){ke||Ye({callback:Je,callbackProps:{event:e,hoveredHeader:w},limit:50})},style:x({gridRowStart:p,gridRowEnd:v,gridColumnStart:f,gridColumnEnd:d},v-p>1?{}:{height:de})},{children:[g&&rn,!w.headerRenderer&&"right"===w.align&&un,!w.headerRenderer&&"right"===w.align&&an,!w.headerRenderer&&"right"===w.align&&on,e("div",x({ref:Fe,className:"st-header-label",draggable:j&&!w.disableReorder&&!ke&&!$e(w,X),onClick:function(e){ke||nn({event:e,header:w})},onDoubleClick:function(e){ke||function(e){var n=e.header;n.isSelectionColumn||pe&&n.isSortable&&ce(n.accessor)}({event:e,header:w})},onDragEnd:ke?void 0:function(e){e.preventDefault(),_e()},onDragStart:ke?void 0:function(e){j&&w&&function(e){Ke(e)}(w)}},{children:w.headerRenderer?w.headerRenderer({accessor:w.accessor,colIndex:s,header:w,components:{sortIcon:on||void 0,filterIcon:an||void 0,collapseIcon:un||void 0,labelContent:dn}}):dn})),!w.headerRenderer&&"right"!==w.align&&on,!w.headerRenderer&&"right"!==w.align&&an,!w.headerRenderer&&"right"!==w.align&&un,!g&&rn,ee&&!ke&&e("div",x({className:"st-header-dropdown-container"},{children:ee({accessor:w.accessor,colIndex:s,header:w,isOpen:Ee,onClose:Ze,position:Le})})),pn&&e("span",x({id:fn,className:"st-sr-only"},{children:pn}))]}))},nt=function(t){var r=t.columnIndices,o=t.gridTemplateColumns,i=t.handleScroll,a=t.headers,l=t.maxDepth,c=t.pinned,s=t.sectionRef,d=t.sort,f=t.width,v=fe(),h=v.collapsedHeaders,p=v.autoExpandColumns,w=u(function(){var e=function(n,t){return O({header:n,pinned:c,headers:a,collapsedHeaders:h,rootPinned:t})?n.children&&0!==n.children.length?n.children.flatMap(function(n){return e(n,t)}):[n]:[]},n=a.flatMap(function(n){return e(n,n.pinned)});return 0===n.length?-1:r[n[n.length-1].accessor]},[a,c,h,r]),m=u(function(){var e=[],n=1,t=function(o,i,u,s,d){var f,v;if(void 0===u&&(u=!1),!O({header:o,pinned:c,headers:a,collapsedHeaders:h,rootPinned:d}))return 0;u||n++;var p,w,m=null!==(v=null===(f=o.children)||void 0===f?void 0:f.filter(function(e){return O({header:e,pinned:c,headers:a,collapsedHeaders:h,rootPinned:d})}).length)&&void 0!==v?v:0,g=n;if(o.singleRowChildren&&m>0?(p=g+1,w=l+1):m>0?(p=g+m,w=i+1):(p=g+1,w=l+1),e.push({header:o,gridColumnStart:g,gridColumnEnd:p,gridRowStart:i,gridRowEnd:w,colIndex:r[o.accessor],parentHeader:s}),o.children&&o.children.length>0){var b=o.singleRowChildren?i:i+1,x=!o.singleRowChildren;o.children.forEach(function(e){O({header:e,pinned:c,headers:a,collapsedHeaders:h,rootPinned:d})&&(t(e,b,x,o,d),x=!1)})}return p-g},o=a.filter(function(e){return O({header:e,pinned:c,headers:a,collapsedHeaders:h,rootPinned:e.pinned})}),i=!0;return o.forEach(function(e){t(e,1,i,void 0,e.pinned),i=!1}),e},[a,l,c,r,h]);return e(Rn,x({childRef:s,group:c?"pinned-".concat(c):"default"},{children:e("div",x({className:"st-header-".concat(c?"pinned-".concat(c):"main")},i&&{onScroll:i},{ref:s,style:{gridTemplateColumns:o,width:f,position:"relative"}},{children:e(n,{children:m.map(function(n){return e(et,{colIndex:n.colIndex,gridColumnEnd:n.gridColumnEnd,gridColumnStart:n.gridColumnStart,gridRowEnd:n.gridRowEnd,gridRowStart:n.gridRowStart,header:n.header,parentHeader:n.parentHeader,reverse:"right"===c,sort:d,isLastHeader:p&&!c&&n.colIndex===w},n.header.accessor)})})}))}))},tt=function(n){var r=n.calculatedHeaderHeight,o=n.centerHeaderRef,i=n.headers,a=n.mainTemplateColumns,l=n.pinnedLeftColumns,c=n.pinnedLeftTemplateColumns,s=n.pinnedRightColumns,d=n.pinnedRightTemplateColumns,f=n.sort,v=n.pinnedLeftWidth,h=n.pinnedRightWidth,p=fe(),w=p.headerContainerRef,m=p.pinnedLeftRef,g=p.pinnedRightRef,b=p.collapsedHeaders,y=p.tableRows,I=p.maxHeaderDepth,C=u(function(){return Ye(i,"left")||Ye(i,void 0)||Ye(i,"right")},[i]),R=u(function(){return C?void 0:{minHeight:r}},[C,r]),S=u(function(){return Mn({headers:i,pinnedLeftColumns:l,pinnedRightColumns:s,collapsedHeaders:b})},[i,l,s,b]),M=u(function(){return Object.keys(S).length},[S]);return t("div",x({className:"st-header-container",ref:w,style:R,"aria-rowcount":y.length+I,"aria-colcount":M},{children:[Ye(i,"left")&&e(nt,{columnIndices:S,gridTemplateColumns:c,handleScroll:void 0,headers:i,maxDepth:I,pinned:"left",sectionRef:m,sort:f,width:v}),e(nt,{columnIndices:S,gridTemplateColumns:a,handleScroll:void 0,headers:i,maxDepth:I,sectionRef:o,sort:f}),Ye(i,"right")&&e(nt,{columnIndices:S,gridTemplateColumns:d,handleScroll:void 0,headers:i,maxDepth:I,pinned:"right",sectionRef:g,sort:f,width:h})]}))},rt=function(e){var n=e.collapsedHeaders,t=e.autoExpandColumns,r=function(e){var t=e.flattenedHeaders;return e.headers.forEach(function(e){if(!e.hide&&!e.excludeFromRender)if(e.children&&e.children.length>0)if(n&&n.has(e.accessor)){var o=e.children.filter(function(e){var n=e.showWhen||T;return"parentCollapsed"===n||"always"===n});e.singleRowChildren&&t.push(e),o.length>0?r({headers:o,flattenedHeaders:t}):e.singleRowChildren||t.push(e)}else{var i=e.children.filter(function(e){var n=e.showWhen||T;return"parentExpanded"===n||"always"===n});e.singleRowChildren&&t.push(e),r({headers:i,flattenedHeaders:t})}else t.push(e)}),t},o=r({headers:e.headers,flattenedHeaders:[]});return"".concat(o.map(function(e){return function(e,n){var t=e.minWidth,r=e.width;return"number"==typeof r&&(r="".concat(r,"px")),t&&"number"==typeof t&&(t="".concat(t,"px")),void 0===t||n?r:"string"==typeof r&&r.endsWith("fr")?"minmax(".concat(t,", ").concat(r,")"):"max(".concat(t,", ").concat(r,")")}(e,t)}).join(" "))},ot=function(n){var r=n.calculatedHeaderHeight,o=n.hideHeader,i=n.pinnedLeftWidth,l=n.pinnedRightWidth,c=n.setScrollTop,s=n.setScrollDirection,d=n.shouldShowEmptyState,f=n.sort,v=n.tableRows,h=n.rowsToRender,p=n.stickyParents,w=n.regularRows,m=n.partiallyVisibleRows,g=n.heightMap,b=fe(),y=b.columnResizing,I=b.editColumns,C=b.headers,R=b.collapsedHeaders,S=b.autoExpandColumns,M=a(null),N=C.filter(function(e){return!e.pinned}),H=C.filter(function(e){return"left"===e.pinned}),E=C.filter(function(e){return"right"===e.pinned}),k=u(function(){return rt({headers:H,collapsedHeaders:R,autoExpandColumns:S})},[H,R,S]),T=u(function(){return rt({headers:N,collapsedHeaders:R,autoExpandColumns:S})},[N,R,S]),P=u(function(){return rt({headers:E,collapsedHeaders:R,autoExpandColumns:S})},[E,R,S]),A={calculatedHeaderHeight:r,centerHeaderRef:M,headers:C,mainTemplateColumns:T,pinnedLeftColumns:H,pinnedLeftTemplateColumns:k,pinnedRightColumns:E,pinnedRightTemplateColumns:P,sort:f,pinnedLeftWidth:i,pinnedRightWidth:l},D={calculatedHeaderHeight:r,heightMap:g,mainTemplateColumns:T,partiallyVisibleRows:m,pinnedLeftColumns:H,pinnedLeftTemplateColumns:k,pinnedLeftWidth:i,pinnedRightColumns:E,pinnedRightTemplateColumns:P,pinnedRightWidth:l,regularRows:w,rowsToRender:h,setScrollDirection:s,setScrollTop:c,shouldShowEmptyState:d,stickyParents:p,tableRows:v};return t("div",x({className:"st-content ".concat(y?"st-resizeable":"st-not-resizeable"),style:{width:I?"calc(100% - 29.5px)":"100%"}},{children:[!o&&e(tt,x({},A)),e(Hn,x({},D))]}))},it=function(n){var r=n.mainBodyWidth,u=n.mainBodyRef,l=n.pinnedLeftWidth,c=n.pinnedRightWidth,s=n.pinnedLeftContentWidth,d=n.pinnedRightContentWidth,f=n.tableBodyContainerRef,v=fe().editColumns,h=i(!1),p=h[0],w=h[1],m=a(null),g=a(null),b=a(null),y=v?N:0,I=(v?c+1:c)+(f.current&&f.current&&f.current.scrollHeight>f.current.clientHeight?f.current.offsetWidth-f.current.clientWidth:0);return o(function(){setTimeout(function(){u.current&&w(u.current.scrollWidth-u.current.clientWidth>1)},1)},[u,r]),p?t("div",x({className:"st-horizontal-scrollbar-container"},{children:[l>0&&e(Rn,x({childRef:g,group:"pinned-left"},{children:e("div",x({className:"st-horizontal-scrollbar-left",ref:g,style:{width:l}},{children:e("div",{style:{width:s}})}))})),r>0&&e(Rn,x({childRef:m},{children:e("div",x({className:"st-horizontal-scrollbar-middle",ref:m},{children:e("div",{style:{width:r}})}))})),c>0&&e(Rn,x({childRef:b,group:"pinned-right"},{children:e("div",x({className:"st-horizontal-scrollbar-right",ref:b,style:{width:I}},{children:e("div",{style:{width:d}})}))})),y>0&&e("div",{style:{width:y-1.5,height:"100%",flexShrink:0}})]})):null},at={string:function(e,n,t){if(e===n)return 0;var r=e.localeCompare(n);return"asc"===t?r:-r},number:function(e,n,t){if(e===n)return 0;var r=e-n;return"asc"===t?r:-r},boolean:function(e,n,t){if(e===n)return 0;var r=e===n?0:e?-1:1;return"asc"===t?r:-r},date:function(e,n,t){var r=new Date(e),o=new Date(n);if(r.getTime()===o.getTime())return 0;var i=r.getTime()-o.getTime();return"asc"===t?i:-i},enum:function(e,n,t){return at.string(e,n,t)},default:function(e,n,t){return e===n?0:null==e?"asc"===t?-1:1:null==n?"asc"===t?1:-1:"string"==typeof e&&"string"==typeof n?at.string(e,n,t):"number"==typeof e&&"number"==typeof n?at.number(e,n,t):"boolean"==typeof e&&"boolean"==typeof n?at.boolean(e,n,t):at.string(e+"",n+"",t)}},ut=function(e){return function(e){var n=e.rows,t=e.sortColumn,r=function(e,n){for(var t=0,o=e;o.length>t;t++){var i=o[t];if(i.accessor===n)return i;if(i.children&&i.children.length>0){var a=r(i.children,n);if(a)return a}}},o=r(e.headers,t.key.accessor),i=(null==o?void 0:o.type)||"string",a=t.direction,u=t.key.accessor;return R([],n,!0).sort(function(e,t){var r,l;if(null==o?void 0:o.valueGetter){var c=n.indexOf(e),s=n.indexOf(t);r=o.valueGetter({accessor:u,row:e,rowIndex:c}),l=o.valueGetter({accessor:u,row:t,rowIndex:s})}else r=G(e,u),l=G(t,u);return(null==o?void 0:o.comparator)?o.comparator({rowA:e,rowB:t,valueA:r,valueB:l,direction:a}):function(e,n,t,r){if(void 0===t&&(t="string"),null==e||""===e)return"asc"===r?-1:1;if(null==n||""===n)return"asc"===r?1:-1;if("number"===t){var o=function(e){var n;if("number"==typeof e)return e;var t=e+"";if("string"==typeof t){var r=t.replace(/[$,]/g,"").match(/^([-+]?\d*\.?\d+)([TBMKtbmk])?/);if(r){var o=parseFloat(r[1]),i=null===(n=r[2])||void 0===n?void 0:n.toUpperCase();return"T"===i?o*=1e12:"B"===i?o*=1e9:"M"===i?o*=1e6:"K"===i&&(o*=1e3),o}}return parseFloat(t)||0},i=o(e),a=o(n);return at.number(i,a,r)}return"date"===t?at.date(e+"",n+"",r):"boolean"===t?at.boolean(!!e,!!n,r):"enum"===t?at.enum(e+"",n+"",r):at.string(e+"",n+"",r)}(r,l,i,a)})}({rows:e.rows,sortColumn:e.sortColumn,headers:e.headers})},lt=function(e){return u(function(){var n=A(e),t=new Map;return n.forEach(function(e){t.set(e.accessor,e)}),t},[e])},ct=function(e){var n=e.tableRows,t=e.sortColumn,r=e.rowGrouping,o=e.headers;return e.externalSortHandling?n:t?r&&r.length>0?(0,e.sortNestedRows)({groupingKeys:r,headers:o,rows:n,sortColumn:t}):ut({headers:o,rows:n,sortColumn:t}):n},st=function(e,n,t){void 0===t&&(t=new Set);for(var r=0,o=e;o.length>r;r++){var i=o[r];if(!t.has(i.accessor)&&(t.add(i.accessor),i.children&&i.children.length>0)){var a=i.children.some(function(e){return e.accessor===n}),u=!1;if(!a)for(var l=0,c=i.children;c.length>l;l++){var s=c[l];if(st([s],n,t),!1===s.hide){u=!0;break}}(a||u)&&(i.hide=!1)}}},dt=function(e){return e.every(function(e){return e.hide})},ft=function(e){e.forEach(function(e){e.children&&e.children.length>0&&(ft(e.children),dt(e.children)&&(e.hide=!0))})};function vt(e){var n=e.fullRootHeaders,t=e.panelSection,r=e.expandedHeaders,o=e.forceExpanded,i=[],a=function(e,n,u,l){if(!e.isSelectionColumn&&!e.excludeFromRender){i.push({header:e,visualIndex:i.length,depth:n,parent:u,indexPath:l,panelSection:t});var c=e.children&&e.children.length>0,s=o||r.has(e.accessor);c&&s&&e.children&&e.children.forEach(function(t,r){a(t,n+1,e,R(R([],l,!0),[r],!1))})}};return e.sectionRoots.forEach(function(e){var t=n.findIndex(function(n){return n.accessor===e.accessor});-1!==t&&a(e,0,null,[t])}),i}var ht=function(r){var o=r.allHeaders,i=r.clearHoverSeparator,a=r.depth,u=void 0===a?0:a,c=r.doesAnyHeaderHaveChildren,s=r.draggingRow,d=r.expandedHeaders,f=r.flattenedHeaders,v=r.forceExpanded,h=void 0!==v&&v,p=r.header,w=r.hoveredSeparatorIndex,m=r.isCheckedOverride,g=r.panelSection,b=r.rowIndex,y=r.setDraggingRow,I=r.setExpandedHeaders,C=r.setHoveredSeparatorIndex,S=fe(),M=S.columnEditorConfig,N=S.essentialAccessors,H=S.headers,E=S.icons,k=S.setHeaders,T=S.onColumnVisibilityChange,P=S.onColumnOrderChange,A=!1!==M.allowColumnPinning,D="".concat(16*u,"px"),F=p.children&&p.children.length>0,L=$e(p,N),O=!L,W=null!=m?m:!(p.hide||F&&p.children&&dt(p.children)),B=d.has(p.accessor),z=h||B,q=function(){if(!h){var e=new Set(d);B?e.delete(p.accessor):e.add(p.accessor),I(e)}},G=l(function(e){return!(N.size>0&&!Ze(e,N)||(null==P||P(e),k(e),0))},[N,P,k]),V=l(function(){var e=on(H,p.accessor,"left",N);e&&G(e)},[G,N,p.accessor,H]),j=l(function(){var e=on(H,p.accessor,"right",N);e&&G(e)},[G,N,p.accessor,H]),K=l(function(){var e=on(H,p.accessor,"main",N);e&&G(e)},[G,N,p.accessor,H]),U="left"===p.pinned||"right"===p.pinned?p.pinned:null,_=!!U&&!L,J=!U&&"main"===g,Y=!U&&"main"===g,X=function(e){if(O){p.hide=!e,e?(st(o,p.accessor),F&&p.children&&p.children.length>0&&p.children.every(function(e){return!0===e.hide})&&p.children[0]&&(p.children[0].hide=!1,st(o,p.children[0].accessor))):ft(o);var n=R([],H,!0);if(k(n),T){var t=function(e){var n={},t=function(e){n[e.accessor]=!e.hide,e.children&&e.children.length>0&&e.children.forEach(t)};return e.forEach(t),n}(n);T(t)}}},$=c&&F&&e("div",x({className:"st-header-icon-container"},{children:e("div",x({className:"st-collapsible-header-icon st-expand-icon-container ".concat(z?"expanded":"collapsed"),onClick:function(e){e.stopPropagation(),q()}},{children:E.expand}))})),Q=e(hn,{checked:W,disabled:!O,onChange:X}),Z=e("div",x({className:"st-drag-icon-container"},{children:E.drag})),ee={pinnedSide:U,canPinLeft:J,canPinRight:Y,canUnpin:_,pinLeft:V,pinRight:j,unpin:K},ne="left"===U?E.pinnedLeftIcon:"right"===U?E.pinnedRightIcon:null,te=A&&0===u?null!==U&&null!==ne?_?e("button",x({type:"button",className:"st-column-pin-btn st-column-pin-side st-column-pin-pinned-mark st-column-pin-pinned-active","aria-label":"Unpin column",title:"Unpin",onClick:function(e){e.stopPropagation(),K()}},{children:ne})):e("span",x({className:"st-column-pin-pinned-mark st-column-pin-side st-column-pin-pinned-essential st-column-pin-pinned-active","aria-hidden":!0,title:"Pinned (essential)"},{children:ne})):"main"===g&&(J||Y)?t("div",x({className:"st-column-pin-side-group"},{children:[J?e("button",x({type:"button",className:"st-column-pin-btn st-column-pin-side st-column-pin-side-option","aria-label":"Pin column to left",title:"Pin to left",onClick:function(e){e.stopPropagation(),V()}},{children:E.pinnedLeftIcon})):null,Y?e("button",x({type:"button",className:"st-column-pin-btn st-column-pin-side st-column-pin-side-option","aria-label":"Pin column to right",title:"Pin to right",onClick:function(e){e.stopPropagation(),j()}},{children:E.pinnedRightIcon})):null]})):null:null,re=e("div",x({className:"st-column-label-container"},{children:p.label})),oe=void 0!==b&&!p.disableReorder&&!$e(p,N);return t(n,{children:[0===b&&e("div",{className:"st-column-editor-drag-separator",style:{opacity:-1===w?1:0}}),e("div",x({className:"st-header-checkbox-item",style:{paddingLeft:D},draggable:oe,onDragStart:function(e){e.dataTransfer.effectAllowed="move",void 0!==b&&(null==i||i(),y(f[b]))},onDragEnter:function(e){e.preventDefault()},onDragOver:function(e){if(e.preventDefault(),void 0!==b&&s&&s.panelSection===g){var n=e.currentTarget.getBoundingClientRect(),t=function(e){var n,t,r=e.flattenedHeaders,o=e.draggingRow,i=e.hoveredRowIndex,a=e.isTopHalfOfRow,u=r[i];if(u.panelSection!==o.panelSection)return null;if(u.depth===o.depth)return(null===(n=u.parent)||void 0===n?void 0:n.accessor)!==(null===(t=o.parent)||void 0===t?void 0:t.accessor)?null:a||u.header.children?i-1:i;if(u.depth>o.depth){for(var l=u,c=i,s=function(){var e=l.parent.accessor,n=r.findIndex(function(n){return n.header.accessor===e});if(-1===n)return"break";l=r[n],c=n};l.parent&&l.depth>o.depth&&"break"!==s(););for(var d=c,f=c,v=c+1;r.length>v&&r[v].depth>l.depth;v++)f=v;var h=f-d+1,p=i-d,w=h/2>p;return h%2==1&&p===Math.floor(h/2)&&(w=a),w?c-1:f}return null}({flattenedHeaders:f,draggingRow:s,hoveredRowIndex:b,isTopHalfOfRow:n.top+n.height/2>e.clientY});C(t)}},onDragEnd:function(){var e=function(){y(null),C(null)};if(s&&null!==w&&s.panelSection===g){var n=f[w>s.visualIndex?w:w+1];if(n){if(n.depth>s.depth&&n.parent){var t=f.findIndex(function(e){return e.header.accessor===n.parent.accessor});-1!==t&&(n=f[t])}if(s.header.accessor!==n.header.accessor)if(s.indexPath.length!==n.indexPath.length||1!==s.indexPath.length&&!s.indexPath.slice(0,-1).every(function(e,t){return e===n.indexPath[t]}))e();else{var r;if(1===s.indexPath.length){var o=fn(H,s.indexPath,n.indexPath),i=o.newHeaders;if(o.emergencyBreak)return void e();r=i}else{var a=fn(cn(H,s.indexPath),[s.indexPath[s.indexPath.length-1]],[n.indexPath[n.indexPath.length-1]]);if(i=a.newHeaders,a.emergencyBreak)return void e();r=sn(Je(H),s.indexPath,i)}G(r),e()}else e()}else e()}else e()}},{children:M.rowRenderer?M.rowRenderer({accessor:p.accessor,header:p,panelSection:g,isEssential:L,canToggleVisibility:O,allowColumnPinning:A,pinControl:ee,components:{expandIcon:$||void 0,checkbox:Q,dragIcon:Z,labelContent:re,pinIcon:A&&null!=te?te:void 0}}):t(n,{children:[c&&e("div",x({className:"st-header-icon-container"},{children:F?e("div",x({className:"st-collapsible-header-icon st-expand-icon-container ".concat(z?"expanded":"collapsed"),onClick:function(e){e.stopPropagation(),q()}},{children:E.expand})):null})),e(hn,{checked:W,disabled:!O,onChange:X}),te,e("div",x({className:"st-drag-icon-container"},{children:E.drag})),e("div",x({className:"st-column-label-container"},{children:p.label}))]})})),e("div",{className:"st-column-editor-drag-separator",style:{opacity:w===b?1:0}})]})},pt=function(e,n){var t=n.toLowerCase();return!!e.label.toLowerCase().includes(t)||!(!e.children||0>=e.children.length)&&e.children.some(function(e){return pt(e,n)})};function wt(n){var r=n.panelSection,o=n.doesAnyHeaderHaveChildren,i=n.allHeaders,a=n.expandedHeaders,u=n.setExpandedHeaders,l=n.forceExpanded,c=n.draggingRow,s=n.setDraggingRow,d=n.hoverSep,f=n.setHoverSep,v=n.flattenedForSection,h=(null==d?void 0:d.section)===r?d.index:null,p=function(e){f(null===e?null:{section:r,index:e})};return t("div",x({className:"st-column-editor-section","data-panel-section":r},{children:[e("div",x({className:"st-column-editor-section-label"},{children:n.title})),e("div",x({className:"st-column-editor-list st-column-editor-list-section"},{children:v.map(function(n){return e(ht,{allHeaders:i,clearHoverSeparator:function(){return f(null)},doesAnyHeaderHaveChildren:o,depth:n.depth,draggingRow:c,expandedHeaders:a,flattenedHeaders:v,forceExpanded:l,header:n.header,hoveredSeparatorIndex:h,panelSection:r,rowIndex:n.visualIndex,setDraggingRow:s,setExpandedHeaders:u,setHoveredSeparatorIndex:p},"".concat(r,"-").concat(n.header.accessor,"-").concat(n.visualIndex))})}))]}))}var mt=function(r){var o=r.headers,a=r.open,l=r.searchEnabled,c=r.searchPlaceholder,s=r.searchFunction,d=r.customRenderer,f=fe().resetColumns,v=i(""),h=v[0],p=v[1],w=i(null),m=w[0],g=w[1],b=i(null),y=b[0],I=b[1],C=i(function(){var e=new Set,n=function(t){t.forEach(function(t){t.children&&t.children.length>0&&(e.add(t.accessor),n(t.children))})};return n(o),e}),S=C[0],M=C[1],N=u(function(){return o.some(function(e){return e.children&&e.children.length>0})},[o]),H=u(function(){return l?function(e,n,t){if(!n.trim())return e;var r=t||pt;return e.filter(function(e){return!e.isSelectionColumn&&!e.excludeFromRender&&r(e,n)})}(o,h,s):o},[o,h,l,s]),E=u(function(){return Xe(H)},[H]),k=E.pinnedLeft,T=E.unpinned,P=E.pinnedRight,A=l&&h.trim().length>0,D=u(function(){return vt({sectionRoots:k,fullRootHeaders:o,panelSection:"left",expandedHeaders:S,forceExpanded:A})},[k,o,S,A]),F=u(function(){return vt({sectionRoots:T,fullRootHeaders:o,panelSection:"main",expandedHeaders:S,forceExpanded:A})},[T,o,S,A]),L=u(function(){return vt({sectionRoots:P,fullRootHeaders:o,panelSection:"right",expandedHeaders:S,forceExpanded:A})},[P,o,S,A]),O=u(function(){return R(R(R([],D,!0),F,!0),L,!0)},[D,F,L]),W=l?e("div",x({className:"st-column-editor-search-wrapper"},{children:e("div",x({className:"st-column-editor-search"},{children:e("input",{type:"text",value:h,onChange:function(e){return p(e.target.value)},placeholder:c,className:"st-filter-input",onClick:function(e){return e.stopPropagation()}})}))})):null,B=k.length>0?wt({title:"Pinned left",panelSection:"left",doesAnyHeaderHaveChildren:N,allHeaders:o,expandedHeaders:S,setExpandedHeaders:M,forceExpanded:A,draggingRow:m,setDraggingRow:g,hoverSep:y,setHoverSep:I,flattenedForSection:D}):null,z=wt({title:"Columns",panelSection:"main",doesAnyHeaderHaveChildren:N,allHeaders:o,expandedHeaders:S,setExpandedHeaders:M,forceExpanded:A,draggingRow:m,setDraggingRow:g,hoverSep:y,setHoverSep:I,flattenedForSection:F}),q=P.length>0?wt({title:"Pinned right",panelSection:"right",doesAnyHeaderHaveChildren:N,allHeaders:o,expandedHeaders:S,setExpandedHeaders:M,forceExpanded:A,draggingRow:m,setDraggingRow:g,hoverSep:y,setHoverSep:I,flattenedForSection:L}):null,G=t("div",x({className:"st-column-editor-lists"},{children:[B,z,q]})),V=d?d({searchSection:W,listSection:G,pinnedLeftList:B,unpinnedList:z,pinnedRightList:q,flattenedHeaders:O,searchTerm:h,setSearchTerm:p,searchEnabled:l,searchPlaceholder:c,headers:o,resetColumns:f}):t(n,{children:[W,G]});return e("div",x({className:"st-column-editor-popout ".concat(a?"open":""),onClick:function(e){return e.stopPropagation()}},{children:e("div",x({className:"st-column-editor-popout-content"},{children:V}))}))},gt=function(n){var r=n.columnEditorConfig,o=n.headers,i=n.open,a=n.setOpen,u=r.text,l=r.searchEnabled,c=r.searchPlaceholder,s=r.searchFunction,d=r.customRenderer;return n.editColumns?t("div",x({className:"st-column-editor ".concat(i?"open":""),onClick:function(){a(!i)},style:{width:N}},{children:[e("div",x({className:"st-column-editor-text"},{children:u})),e(mt,{headers:o,open:i,searchEnabled:l,searchPlaceholder:c,searchFunction:s,customRenderer:d})]})):null},bt=function(n){var t=n.children,o=a({}),i=l(function(e,n){return!!o.current[n]&&o.current[n].find(function(n){return n===e})},[]),u=l(function(e,n){e.scrollWidth-e.clientWidth>0&&(n.scrollLeft=e.scrollLeft)},[]),c=l(function(e){e.onscroll=null},[]),s=l(function(e,n){e.onscroll=function(){window.requestAnimationFrame(function(){n.forEach(function(n){var t;null===(t=o.current[n])||void 0===t||t.forEach(function(n){e!==n&&(c(n),u(e,n),window.requestAnimationFrame(function(){var e=Object.keys(o.current).filter(function(e){return o.current[e].includes(n)});s(n,e)}))})})})}},[c,u]),d=l(function(e,n){n.forEach(function(n){o.current[n]||(o.current[n]=[]),i(e,n)||(o.current[n].length>0&&u(o.current[n][0],e),o.current[n].push(e))}),s(e,n)},[i,u,s]),f=l(function(e,n){n.forEach(function(n){if(i(e,n)){c(e);var t=o.current[n].indexOf(e);-1!==t&&o.current[n].splice(t,1)}})},[i,c]);return e(Cn.Provider,x({value:{registerPane:d,unregisterPane:f}},{children:r.Children.only(t)}))},xt=function(e){var n=e.tableRows,t=e.filterState;return e.externalFilterHandling?n:t&&0!==Object.keys(t).length?n.filter(function(e){return Object.values(t).every(function(n){try{return function(e,n){var t=n.operator,r=n.value,o=n.values;if(null==e)return"isEmpty"===t;if("isEmpty"===t)return!e||""===(e+"").trim();if("isNotEmpty"===t)return e&&""!==(e+"").trim();if("string"==typeof e||"contains"===t||"notContains"===t||"startsWith"===t||"endsWith"===t){var i=(e+"").toLowerCase(),a=r?(r+"").toLowerCase():"";switch(t){case"equals":return i===a;case"notEquals":return i!==a;case"contains":return i.includes(a);case"notContains":return!i.includes(a);case"startsWith":return i.startsWith(a);case"endsWith":return i.endsWith(a)}}if("number"==typeof e||!isNaN(+e)){var u=+e,l=+r;switch(t){case"equals":return u===l;case"notEquals":return u!==l;case"greaterThan":return u>l;case"lessThan":return l>u;case"greaterThanOrEqual":return u>=l;case"lessThanOrEqual":return l>=u;case"between":if(o&&2===o.length){var c=o.map(Number),s=c[1];return u>=c[0]&&s>=u}return!1;case"notBetween":if(o&&2===o.length){var d=o.map(Number);return s=d[1],d[0]>u||u>s}return!0}}if(e instanceof Date||!isNaN(Date.parse(e))){var f=ze(e),v=ze((r||"")+""),h=Be(f),p=Be(v);switch(t){case"equals":return h.getTime()===p.getTime();case"notEquals":return h.getTime()!==p.getTime();case"before":return p>h;case"after":return h>p;case"between":if(o&&2===o.length){var w=o.map(function(e){return Be(ze((e||"")+""))}),m=w[1];return h>=w[0]&&m>=h}return!1;case"notBetween":if(o&&2===o.length){var g=o.map(function(e){return Be(ze((e||"")+""))});return m=g[1],g[0]>h||h>m}return!0}}if("boolean"==typeof e&&"equals"===t)return e===!!r;if(Array.isArray(e)){var b=e.map(function(e){return"object"==typeof e&&null!==e?JSON.stringify(e):e+""}).join(", ");e=b}if("in"===t||"notIn"===t){if(o&&Array.isArray(o)){var x=o.includes(e+"");return"in"===t?x:!x}return!1}var y=(e+"").toLowerCase(),I=r?(r+"").toLowerCase():"";switch(t){case"equals":return y===I;case"notEquals":return y!==I;default:return!0}}(G(e,n.accessor),n)}catch(e){return console.warn("Filter error for accessor ".concat(n.accessor,":"),e),!0}})}):n},yt=function(e){var n,t=document.querySelector(".simple-table-root");if("string"==typeof e){if(e.endsWith("px"))return parseInt(e,10);if(e.endsWith("vh"))return window.innerHeight*parseInt(e,10)/100;if(e.endsWith("%")){var r=null===(n=null==t?void 0:t.parentElement)||void 0===n?void 0:n.clientHeight;return!r||50>r?0:r*parseInt(e,10)/100}return window.innerHeight}return e},It=function(e,n,t,r){var o=[],i=function(e){e.forEach(function(e){var t=r?e[r]:void 0;if(r&&t&&j(t))i(t);else{var a=G(e,n);null!=a&&o.push(a)}})};if(i(e),0!==o.length){if("custom"===t.type&&t.customFn)return t.customFn(o);var a,u=t.parseValue?o.map(t.parseValue).filter(function(e){return!isNaN(e)}):o.map(function(e){return"number"==typeof e?e:"string"==typeof e?parseFloat(e):NaN}).filter(function(e){return!isNaN(e)});if(0===u.length)return"count"===t.type?o.length:void 0;switch(t.type){case"sum":a=u.reduce(function(e,n){return e+n},0);break;case"average":a=u.reduce(function(e,n){return e+n},0)/u.length;break;case"count":a=o.length;break;case"min":a=Math.min.apply(Math,u);break;case"max":a=Math.max.apply(Math,u);break;default:return}return t.formatResult?t.formatResult(a):a}},Ct=function(e){if(null==e)return"";var n=e+"";if(n.includes(",")||n.includes('"')||n.includes("\n")||n.includes("\r")){var t=n.replace(/"/g,'""');return'"'.concat(t,'"')}return n},Rt=function(e){return function(){for(var n=[],t=0;arguments.length>t;t++)n[t]=arguments[t];return new Promise(function(t){e.apply(void 0,n),setTimeout(function(){return t()},0)})}},St=function(){return"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches},Mt={COLUMN_REORDER:{duration:180,easing:"cubic-bezier(0.2, 0.0, 0.2, 1)",delay:0},ROW_REORDER:{duration:200,easing:"cubic-bezier(0.2, 0.0, 0.2, 1)",delay:0},REDUCED_MOTION:{duration:150,easing:"ease-out",delay:0}},Nt=function(e){e.style.transition="",e.style.transitionDelay="",e.style.transform="",e.style.top="",e.style.willChange="",e.style.backfaceVisibility="",e.classList.remove("st-animating")},Ht=function(e,n,t,r){return void 0===t&&(t={}),new Promise(function(r){e.style.transition="transform ".concat(n.duration,"ms ").concat(n.easing),n.delay&&(e.style.transitionDelay="".concat(n.delay,"ms")),e.style.transform="translate3d(0, 0, 0)";var o=function(){Nt(e),e.removeEventListener("transitionend",o),t.onComplete&&t.onComplete(),r()};e.addEventListener("transitionend",o),setTimeout(o,n.duration+(n.delay||0)+50)})},Et=function(e){var n=e.element,t=e.finalConfig,r=e.fromBounds,o=e.toBounds;return I(void 0,void 0,void 0,function(){var e,i;return C(this,function(a){switch(a.label){case 0:return e=function(e,n){return{x:("x"in e?e.x:e.left)-n.x,y:("y"in e?e.y:e.top)-n.y}}(r,o),0===e.x&&0===e.y||St()&&!1!==t.respectReducedMotion?[2]:(u=t,l=Math.abs(e.x)>Math.abs(e.y)?"column":"row",void 0===u&&(u={}),i=St()?x(x({},Mt.REDUCED_MOTION),u):x(x({},"column"===l?Mt.COLUMN_REORDER:Mt.ROW_REORDER),u),Nt(n),function(e,n){e.style.transform="translate3d(".concat(n.x,"px, ").concat(n.y,"px, 0)"),e.style.transition="none",e.style.willChange="transform",e.style.backfaceVisibility="hidden",e.classList.add("st-animating")}(n,e),[4,Ht(n,i,t)]);case 1:return a.sent(),[2]}var u,l})})},kt=function(e){var n=e.element,t=e.options;return I(void 0,void 0,void 0,function(){var e,r,o,i,a,u,l,c,s,d,f,v,h,p,w,m;return C(this,function(g){return e=t.startY,r=t.endY,o=t.finalY,a=void 0===(i=t.duration)?300:i,l=void 0===(u=t.easing)?"cubic-bezier(0.2, 0.0, 0.2, 1)":u,s=void 0===(c=t.delay)?0:c,d=t.onComplete,v=void 0===(f=t.respectReducedMotion)||f,St()&&v?(void 0!==o&&(n.style.transform="",n.style.top="".concat(o,"px")),d&&d(),[2]):(h=n.getBoundingClientRect(),w=e-(p=h.top),m=r-p,[2,new Promise(function(e){n.style.transition="",n.style.transitionDelay="",n.style.transform="",n.style.willChange="",n.style.backfaceVisibility="",n.classList.remove("st-animating"),n.style.transform="translate3d(0, ".concat(w,"px, 0)"),n.style.transition="none",n.style.willChange="transform",n.style.backfaceVisibility="hidden",n.classList.add("st-animating"),n.style.transition="transform ".concat(a,"ms ").concat(l),s&&(n.style.transitionDelay="".concat(s,"ms")),n.style.transform="translate3d(0, ".concat(m,"px, 0)");var t=function(){n.style.transition="",n.style.transitionDelay="",n.style.transform="",n.style.willChange="",n.style.backfaceVisibility="",n.classList.remove("st-animating"),void 0!==o&&(n.style.top="".concat(o,"px")),n.removeEventListener("transitionend",t),d&&d(),e()};n.addEventListener("transitionend",t),setTimeout(t,a+(s||0)+50)})])})})},Tt=function(e){var n=e.rows,t=e.rowGrouping,r=void 0===t?[]:t,o=e.getRowId,i=e.expandedRows,a=e.collapsedRows,l=e.expandedDepths,c=e.rowStateMap,s=e.hasLoadingRenderer,d=e.hasErrorRenderer,f=e.hasEmptyRenderer,v=e.headers,h=e.rowHeight,p=e.headerHeight,w=e.customTheme;return u(function(){if(!r||0===r.length){var e=n.map(function(e,n){var t=[n],r=[n];return{row:e,depth:0,displayPosition:n,groupingKey:void 0,position:n,rowId:K({row:e,getRowId:o,depth:0,index:n,rowPath:t,rowIndexPath:r,groupingKey:void 0}),rowPath:t,rowIndexPath:r,absoluteRowIndex:n,isLastGroupRow:!1}});return{flattenedRows:e,heightOffsets:[],paginatableRows:e,parentEndPositions:n.map(function(e,n){return n+1})}}var t=[],u=[],m=[],g=[],b=0,x=function(e,n,y,I,C){void 0===y&&(y=[]),void 0===I&&(I=[]),void 0===C&&(C=[]),e.forEach(function(e,S){var M,N,H=r[n],E=t.length,k=R(R([],y,!0),[S],!1),T=R(R([],I,!0),[S],!1),P=K({row:e,getRowId:o,depth:n,index:S,rowPath:k,rowIndexPath:T,groupingKey:H}),A=t.length,D={row:e,depth:n,displayPosition:b,groupingKey:H,position:E,isLastGroupRow:0===n,rowId:P,rowPath:k,rowIndexPath:T,absoluteRowIndex:E,parentIndices:C.length>0?R([],C,!0):void 0};t.push(D),u.push(D),b++;var F=U(P);if(J(F,n,l,i,a)&&r.length>n){var L=null==c?void 0:c.get(F),O=_(e,H),W=v.find(function(e){return e.expandable&&e.nestedTable});if((null==W?void 0:W.nestedTable)&&O.length>0){var q=t.length,G=(null===(M=W.nestedTable.customTheme)||void 0===M?void 0:M.rowHeight)||h,V=(null===(N=W.nestedTable.customTheme)||void 0===N?void 0:N.headerHeight)||p,j=B({childRowCount:O.length,rowHeight:G,headerHeight:V,customTheme:w}),Y=z({calculatedHeight:j,customHeight:W.nestedTable.height,customTheme:w});m.push([q,Y-h]);var X=R(R([],k,!0),[H],!1);t.push({row:{},depth:n+1,displayPosition:b-1,groupingKey:H,position:q,isLastGroupRow:!1,rowId:X,rowPath:X,rowIndexPath:T,nestedTable:{parentRow:e,expandableHeader:W,childAccessor:H,calculatedHeight:Y},absoluteRowIndex:q})}else if(L&&(L.loading||L.error||L.isEmpty)){if(L.loading&&s||L.error&&d||L.isEmpty&&f){var $=t.length,Q=R(R([],k,!0),[H],!1);t.push({row:{},depth:n+1,displayPosition:b-1,groupingKey:H,position:$,isLastGroupRow:!1,rowId:Q,rowPath:Q,rowIndexPath:T,stateIndicator:{parentRowId:F,parentRow:e,state:L},absoluteRowIndex:$,parentIndices:R(R([],C,!0),[A],!1)})}else if(L.loading&&!s){var Z=t.length,ee=R(R([],k,!0),[H,"loading-skeleton"],!1);t.push({row:{},depth:n+1,displayPosition:b-1,groupingKey:H,position:Z,isLastGroupRow:!1,rowId:ee,rowPath:ee,rowIndexPath:T,isLoadingSkeleton:!0,absoluteRowIndex:Z,parentIndices:R(R([],C,!0),[A],!1)})}}else if(O.length>0){var ne=R(R([],k,!0),[H],!1),te=R([],T,!0);x(O,n+1,ne,te,R(R([],C,!0),[A],!1))}}0===n&&g.push(t.length)})};return x(n,0,[],[],[]),{flattenedRows:t,heightOffsets:m,paginatableRows:u,parentEndPositions:g}},[n,r,o,i,a,l,c,s,d,f,v,h,p,w])},Pt=function(){return e("div",x({className:"st-empty-state"},{children:"No rows to display"}))},At={rowHeight:32,headerHeight:32,footerHeight:49,rowSeparatorWidth:1,borderWidth:1,pinnedBorderWidth:1,nestedGridBorderWidth:2,nestedGridPaddingTop:8,nestedGridPaddingBottom:8,nestedGridPaddingLeft:8,nestedGridPaddingRight:8,nestedGridMaxHeight:400,selectionColumnWidth:42},Dt={text:"Columns",searchEnabled:!0,searchPlaceholder:"Search columns...",allowColumnPinning:!0},Ft=[{propName:"columnEditorText",replacement:"columnEditorConfig.text",message:"Use the columnEditorConfig object instead for better organization of column editor settings."},{propName:"expandIcon",replacement:"icons.expand",message:"Use the icons object instead for better organization of icon settings."},{propName:"filterIcon",replacement:"icons.filter",message:"Use the icons object instead for better organization of icon settings."},{propName:"headerCollapseIcon",replacement:"icons.headerCollapse",message:"Use the icons object instead for better organization of icon settings."},{propName:"headerExpandIcon",replacement:"icons.headerExpand",message:"Use the icons object instead for better organization of icon settings."},{propName:"nextIcon",replacement:"icons.next",message:"Use the icons object instead for better organization of icon settings."},{propName:"prevIcon",replacement:"icons.prev",message:"Use the icons object instead for better organization of icon settings."},{propName:"sortDownIcon",replacement:"icons.sortDown",message:"Use the icons object instead for better organization of icon settings."},{propName:"sortUpIcon",replacement:"icons.sortUp",message:"Use the icons object instead for better organization of icon settings."}],Lt=function(e,n){var t=[];return e.forEach(function(e){e.hide||(e.children&&e.children.length>0?t.push.apply(t,Lt(e.children,null!=n?n:e.pinned)):t.push(e))}),t},Ot=function(e,n){return n>=e.reduce(function(e,n){return e+Z(n)},0)},Wt=function(e,n){var t=new Map,r=e.reduce(function(e,n){return e+("number"==typeof n.width?n.width:"string"==typeof n.width&&n.width.endsWith("px")?parseFloat(n.width):150)},0);if(0===r)return t;var o=n/r;if(.01>Math.abs(o-1))return t;var i=0;return e.forEach(function(r,a){var u,l="number"==typeof r.width?r.width:"string"==typeof r.width&&r.width.endsWith("px")?parseFloat(r.width):150;a===e.length-1?u=n-i:i+=u=Math.round(l*o),t.set(r.accessor,u)}),t},Bt=function(e,n){var t,r=n.containerWidth,o=n.pinnedLeftWidth,i=n.pinnedRightWidth,a=n.mainBodyRef;if(!n.autoExpandColumns||0===r||n.isResizing)return e;t=a.current?a.current.clientWidth:Math.max(0,r-o-i);var u=e.filter(function(e){return"left"===e.pinned}),l=e.filter(function(e){return"right"===e.pinned}),c=e.filter(function(e){return!e.pinned}),s=Lt(u,"left"),d=Lt(l,"right"),f=Lt(c,void 0),v=s.length>0&&Ot(s,o),h=d.length>0&&Ot(d,i),p=f.length>0&&t>0&&Ot(f,t),w=new Map;if(v&&Wt(s,o).forEach(function(e,n){return w.set(n,e)}),h&&Wt(d,i).forEach(function(e,n){return w.set(n,e)}),p&&Wt(f,t).forEach(function(e,n){return w.set(n,e)}),0===w.size)return e;var m=function(e,n){var t;if(e.hide)return e;var r=null!=n?n:e.pinned,o=null===(t=e.children)||void 0===t?void 0:t.map(function(e){return m(e,r)});if(!e.children||0===e.children.length){var i=w.get(e.accessor);return x(x({},e),void 0!==i?{width:i,children:o}:{children:o})}return x(x({},e),{children:o})};return e.map(function(e){return m(e,e.pinned)})},zt=function(n){var t=i(!1),r=t[0],a=t[1];return o(function(){!function(e){"production"!==process.env.NODE_ENV&&Ft.forEach(function(n){var t=n.propName,r=n.replacement,o=n.message;if(void 0!==e[t]){var i='SimpleTable: The "'.concat(t,'" prop is deprecated and will be removed in a future version.'),a='Please use "'.concat(r,'" instead.'),u=o?"\n".concat(o):"",l=r.split("."),c=l[0],s=l[1],d="string"==typeof e[t]?JSON.stringify(e[t]):"<YourIcon />";console.error("".concat(i,"\n").concat(a).concat(u,"\n\nExample:\n<SimpleTable\n ").concat(c,"={{\n ").concat(s,": ").concat(d,"\n }}\n/>"))}})}(n)},[]),o(function(){a(!0)},[]),r?e(qt,x({},n)):null},qt=function(n){var r=n.allowAnimations,c=void 0!==r&&r,s=n.autoExpandColumns,d=void 0!==s&&s,f=n.canExpandRowGroup,v=n.cellUpdateFlash,h=void 0!==v&&v,p=n.className,w=n.columnBorders,m=void 0!==w&&w,y=n.columnEditorConfig,S=void 0===y?Dt:y,N=n.columnEditorText,H=n.columnReordering,E=void 0!==H&&H,k=n.columnResizing,T=void 0!==k&&k,P=n.copyHeadersToClipboard,D=void 0!==P&&P,F=n.customTheme,L=n.defaultHeaders,O=n.editColumns,B=void 0!==O&&O,z=n.editColumnsInitOpen,q=void 0!==z&&z,_=n.emptyStateRenderer,J=n.enableHeaderEditing,$=void 0!==J&&J,Q=n.enableRowSelection,Z=void 0!==Q&&Q,ee=n.enableStickyParents,ne=void 0!==ee&&ee,te=n.errorStateRenderer,oe=n.expandAll,ie=void 0===oe||oe,ue=n.expandIcon,se=n.externalFilterHandling,fe=void 0!==se&&se,he=n.externalSortHandling,me=void 0!==he&&he,be=n.filterIcon,Ce=n.footerRenderer,Se=n.headerCollapseIcon,Me=n.headerDropdown,Ne=n.headerExpandIcon,He=n.height,Ee=n.hideFooter,ke=void 0!==Ee&&Ee,Te=n.hideHeader,Pe=void 0!==Te&&Te,Ae=n.icons,De=n.includeHeadersInCSVExport,Fe=void 0===De||De,Le=n.initialSortColumn,Oe=n.initialSortDirection,We=void 0===Oe?"asc":Oe,Be=n.isLoading,ze=void 0!==Be&&Be,qe=n.loadingStateRenderer,Ge=n.maxHeight,Ve=n.nextIcon,je=n.onCellClick,Ke=n.onCellEdit,Ue=n.onColumnOrderChange,Ye=n.onColumnSelect,Xe=n.onColumnVisibilityChange,Qe=n.onColumnWidthChange,Ze=n.onFilterChange,en=n.onGridReady,tn=n.onHeaderEdit,on=n.onLoadMore,an=n.onNextPage,un=n.onPageChange,ln=n.onRowGroupExpand,cn=n.onRowSelectionChange,sn=n.onSortChange,dn=n.prevIcon,fn=n.quickFilter,vn=n.rowButtons,hn=n.rowGrouping,pn=n.getRowId,wn=n.rows,mn=n.rowsPerPage,gn=void 0===mn?10:mn,bn=n.selectableCells,xn=void 0!==bn&&bn,yn=n.selectableColumns,In=void 0!==yn&&yn,Cn=n.serverSidePagination,Rn=void 0!==Cn&&Cn,Sn=n.shouldPaginate,Mn=void 0!==Sn&&Sn,Nn=n.sortDownIcon,Hn=n.sortUpIcon,En=n.tableEmptyStateRenderer,kn=void 0===En?e(Pt,{}):En,Tn=n.tableRef,An=n.theme,Dn=void 0===An?"modern-light":An,Fn=n.totalRowCount,Ln=n.useHoverRowBackground,On=void 0===Ln||Ln,Wn=n.useOddColumnBackground,Bn=void 0!==Wn&&Wn,zn=n.useOddEvenRowBackground,qn=void 0!==zn&&zn,Gn=u(function(){var n,t,r,o,i,a,u,l,c,s,d,f,v,h,p,w,m,g,b,x={drag:e(ye,{className:"st-drag-icon"}),expand:e(we,{className:"st-expand-icon"}),filter:e(Ie,{className:"st-header-icon"}),headerCollapse:e(we,{className:"st-header-icon"}),headerExpand:e(pe,{className:"st-header-icon"}),next:e(we,{className:"st-next-prev-icon"}),prev:e(pe,{className:"st-next-prev-icon"}),sortDown:e(xe,{className:"st-header-icon"}),sortUp:e(ge,{className:"st-header-icon"}),pinnedLeftIcon:e("div",{children:"L"}),pinnedRightIcon:e("div",{children:"R"})};return{drag:null!==(n=null==Ae?void 0:Ae.drag)&&void 0!==n?n:x.drag,expand:null!==(r=null!==(t=null==Ae?void 0:Ae.expand)&&void 0!==t?t:ue)&&void 0!==r?r:x.expand,filter:null!==(i=null!==(o=null==Ae?void 0:Ae.filter)&&void 0!==o?o:be)&&void 0!==i?i:x.filter,headerCollapse:null!==(u=null!==(a=null==Ae?void 0:Ae.headerCollapse)&&void 0!==a?a:Se)&&void 0!==u?u:x.headerCollapse,headerExpand:null!==(c=null!==(l=null==Ae?void 0:Ae.headerExpand)&&void 0!==l?l:Ne)&&void 0!==c?c:x.headerExpand,next:null!==(d=null!==(s=null==Ae?void 0:Ae.next)&&void 0!==s?s:Ve)&&void 0!==d?d:x.next,prev:null!==(v=null!==(f=null==Ae?void 0:Ae.prev)&&void 0!==f?f:dn)&&void 0!==v?v:x.prev,sortDown:null!==(p=null!==(h=null==Ae?void 0:Ae.sortDown)&&void 0!==h?h:Nn)&&void 0!==p?p:x.sortDown,sortUp:null!==(m=null!==(w=null==Ae?void 0:Ae.sortUp)&&void 0!==w?w:Hn)&&void 0!==m?m:x.sortUp,pinnedLeftIcon:null!==(g=null==Ae?void 0:Ae.pinnedLeftIcon)&&void 0!==g?g:x.pinnedLeftIcon,pinnedRightIcon:null!==(b=null==Ae?void 0:Ae.pinnedRightIcon)&&void 0!==b?b:x.pinnedRightIcon}},[Ae,ue,be,Se,Ne,Ve,dn,Nn,Hn]),Vn=u(function(){return x(x({},At),F)},[F]),jn=u(function(){var e,n,t,r,o;return{text:null!==(n=null!==(e=null==S?void 0:S.text)&&void 0!==e?e:N)&&void 0!==n?n:Dt.text,searchEnabled:null!==(t=null==S?void 0:S.searchEnabled)&&void 0!==t?t:Dt.searchEnabled,searchPlaceholder:null!==(r=null==S?void 0:S.searchPlaceholder)&&void 0!==r?r:Dt.searchPlaceholder,allowColumnPinning:null!==(o=null==S?void 0:S.allowColumnPinning)&&void 0!==o?o:Dt.allowColumnPinning,searchFunction:null==S?void 0:S.searchFunction,rowRenderer:null==S?void 0:S.rowRenderer,customRenderer:null==S?void 0:S.customRenderer}},[S,N]),Kn=Vn.rowHeight,Un=Vn.headerHeight,_n=Vn.footerHeight,Jn=Vn.selectionColumnWidth;Bn&&(qn=!1),m&&(On=!1);var Yn=a(null),Xn=a(null),$n=a(null),Qn=a(null),Zn=a(null),et=a(null),nt=a(null),tt=b(function(e){return e+1},0)[1],rt=i(new Map),at=rt[0],st=rt[1],dt=i(wn),ft=dt[0],vt=dt[1],ht=i(ze),pt=ht[0],wt=ht[1],mt=a(ze),St=a(new Map);o(function(){vt(wn);var e=new Map;wn.forEach(function(n,t){var r=K({row:n,getRowId:pn,depth:0,index:t,rowPath:[t],rowIndexPath:[t]}),o=U(r);e.set(o,t)}),St.current=e},[wn,pn]),o(function(){var e=mt.current,n=ze;n&&!e?wt(!0):!n&&e&&setTimeout(function(){wt(!1)},0),mt.current=ze},[ze]);var Nt,Ht,Et,kt,Ft,Lt,Ot,Wt,zt,qt,Gt=function(e){var n=e.tableBodyContainerRef,t=i(0),r=t[0],o=t[1];return g(function(){n.current&&o(n.current.offsetWidth-n.current.clientWidth)},[n]),{setScrollbarWidth:o,scrollbarWidth:r,tableBodyContainerRef:n}}({tableBodyContainerRef:et}),Vt=Gt.scrollbarWidth,jt=Gt.setScrollbarWidth,Kt=Re({headerContainerRef:nt,mainSectionRef:et,scrollbarWidth:Vt}).isMainSectionScrollable,Ut=u(function(){if(pt&&0===ft.length){var e=Mn?gn:10;return Kt&&(e+=1),Array.from({length:e},function(e,n){return{}})}return ft},[pt,ft,gn,Kt,Mn]),_t=u(function(){return Je(L)},[L]),Jt=i(1),Yt=Jt[0],Xt=Jt[1],$t=i(_t),Qt=$t[0],Zt=$t[1],er=i(!1),nr=er[0],tr=er[1],rr=i(!1),or=rr[0],ir=rr[1],ar=i(null),ur=ar[0],lr=ar[1],cr=i(q),sr=cr[0],dr=cr[1],fr=l(function(){var e=new Set,n=function(t){t.forEach(function(t){t.collapseDefault&&t.collapsible&&e.add(t.accessor),t.children&&n(t.children)})};return n(_t),e},[_t]),vr=i(fr),hr=vr[0],pr=vr[1];o(function(){Zt(_t)},[_t]);var wr=u(function(){var e,n=R([],Qt,!0);return Z&&!(null===(e=null==Qt?void 0:Qt[0])||void 0===e?void 0:e.isSelectionColumn)&&(n=R([{accessor:"__row_selection__",label:"",width:Jn,isEditable:!1,type:"boolean",pinned:"left",isSelectionColumn:!0,isSortable:!1,filterable:!1,align:"center"}],n,!0)),n},[Z,Qt,Jn]),mr=u(function(){return function(e){var n=new Set,t=function(e){for(var r,o=0,i=e;i.length>o;o++){var a=i[o];a.isEssential&&n.add(a.accessor+""),(null===(r=a.children)||void 0===r?void 0:r.length)&&t(a.children)}};return t(e),n}(wr)},[wr]),gr=i(0),br=gr[0],xr=gr[1],yr=i("none"),Ir=yr[0],Cr=yr[1],Rr=function(e,n){var t=i(function(){return function(e,n){if(!n||0===n.length)return new Set;if(e){var t=Array.from({length:n.length},function(e,n){return n});return new Set(t)}return new Set}(e,n)}),r=t[0],a=t[1];return o(function(){a(n&&0!==n.length?function(e){var t=n.length,r=Array.from(e).filter(function(e){return t>e});return new Set(r)}:new Set)},[n]),{expandedDepths:r,setExpandedDepths:a}}(ie,hn),Sr=Rr.expandedDepths,Mr=Rr.setExpandedDepths,Nr=i(new Map),Hr=Nr[0],Er=Nr[1],kr=i(new Map),Tr=kr[0],Pr=kr[1],Ar=function(){var e=i(""),n=e[0],t=e[1],r=a(null);return o(function(){return n&&(r.current&&clearTimeout(r.current),r.current=setTimeout(function(){t("")},1e3)),function(){r.current&&clearTimeout(r.current)}},[n]),{announcement:n,announce:function(e){t(e)}}}(),Dr=Ar.announcement,Fr=Ar.announce,Lr=function(e){var n=e.effectiveHeaders,t=e.headerHeight,r=e.rowHeight,o=e.tableBodyContainerRef,a=i(0),c=a[0],s=a[1],d=l(function(e){var n,t;return e.singleRowChildren&&(null===(n=e.children)||void 0===n?void 0:n.length)?1:(null===(t=e.children)||void 0===t?void 0:t.length)?1+Math.max.apply(Math,e.children.map(d)):1},[]),f=u(function(){var e=0;return n.forEach(function(n){var t=d(n);e=Math.max(e,t)}),e},[n,d]),v=u(function(){var e=1;if("undefined"!=typeof window){var n=document.documentElement,o=getComputedStyle(n).getPropertyValue("--st-border-width").trim();if(o){var i=parseFloat(o);isNaN(i)||(e=i)}}return f*(null!=t?t:r)+e},[f,t,r]);return g(function(){var e=function(){o.current&&s(o.current.clientWidth)};e();var n=null;return o.current&&(n=new ResizeObserver(e)).observe(o.current),function(){n&&n.disconnect()}},[o]),{containerWidth:c,calculatedHeaderHeight:v,maxHeaderDepth:f}}({effectiveHeaders:wr,headerHeight:Un,rowHeight:Kn,tableBodyContainerRef:et}),Or=Lr.containerWidth,Wr=Lr.calculatedHeaderHeight,Br=Lr.maxHeaderDepth,zr=u(function(){var e=Pn({headers:wr,containerWidth:Or,collapsedHeaders:hr});return{mainBodyWidth:e.mainWidth,pinnedLeftWidth:e.leftWidth,pinnedRightWidth:e.rightWidth,pinnedLeftContentWidth:e.leftContentWidth,pinnedRightContentWidth:e.rightContentWidth}},[wr,Or,hr]),qr=zr.mainBodyWidth,Gr=zr.pinnedLeftWidth,Vr=zr.pinnedRightWidth,jr=zr.pinnedLeftContentWidth,Kr=zr.pinnedRightContentWidth,Ur=function(e){var n=e.autoExpandColumns,t=e.containerWidth,r=e.pinnedLeftWidth,i=e.pinnedRightWidth,u=e.mainBodyRef,c=e.isResizing,s=e.setHeaders,d=a({autoExpandColumns:n,containerWidth:t,pinnedLeftWidth:r,pinnedRightWidth:i,mainBodyRef:u,isResizing:c});d.current={autoExpandColumns:n,containerWidth:t,pinnedLeftWidth:r,pinnedRightWidth:i,mainBodyRef:u,isResizing:c};var f=l(function(e){s(function(n){var t="function"==typeof e?e(n):e;return Bt(t,d.current)})},[s]),v=a(c);o(function(){v.current&&!c&&n&&s(function(e){return Bt(e,d.current)}),v.current=c},[c,n,s]);var h=a(t);return o(function(){Math.abs(t-h.current)>10&&!c&&n&&s(function(e){return Bt(e,d.current)}),h.current=t},[t,c,n,s]),f}({autoExpandColumns:d,containerWidth:Or,pinnedLeftWidth:Gr,pinnedRightWidth:Vr,mainBodyRef:$n,isResizing:nr,setHeaders:Zt}),_r=function(e){var n=e.rows,t=e.headers,r=e.rowGrouping;return u(function(){if(!r||0===r.length)return n;var e=function(e){return A(e).filter(function(e){return e.aggregation})}(t);if(0===e.length)return n;var o=JSON.parse(JSON.stringify(n)),i=function(n,t){return void 0===t&&(t=0),n.map(function(n){var o=r[t],a=r[t+1],u=n[o];if(u&&j(u)){var l=i(u,t+1),c=x({},n);return c[o]=l,e.forEach(function(e){var n=It(l,e.accessor,e.aggregation,a);void 0!==n&&V(c,e.accessor,n)}),c}return n})};return i(o)},[n,t,r])}({rows:Ut,headers:Qt,rowGrouping:hn}),Jr=function(e){var n=e.rows,t=e.headers,r=e.quickFilter;return u(function(){if(!r||!r.text||""===r.text.trim())return n;var e=r.text,o=r.columns,i=r.caseSensitive,a=void 0!==i&&i,u=r.mode,l=void 0===u?"simple":u,c=r.useFormattedValue,s=void 0===c||c,d=t.filter(function(e){return!e.hide&&!e.excludeFromRender&&(o&&o.length>0?o.includes(e.accessor):!1!==e.quickFilterable)}),f="smart"===l?function(e){for(var n=[],t=0;e.length>t;){for(;e.length>t&&/\s/.test(e[t]);)t++;if(t>=e.length)break;if("-"!==e[t])if('"'!==e[t]){for(var r=t;e.length>t&&!/[\s:]/.test(e[t]);)t++;var o=e.substring(r,t);if(e.length>t&&":"===e[t]){for(var i=++t;e.length>t&&!/\s/.test(e[t]);)t++;(l=e.substring(i,t))&&n.push({type:"columnSpecific",value:l,column:o})}else o&&n.push({type:"word",value:o})}else{for(var a=++t;e.length>t&&'"'!==e[t];)t++;(l=e.substring(a,t))&&n.push({type:"phrase",value:l}),e.length>t&&'"'===e[t]&&t++}else{for(var u=++t;e.length>t&&!/\s/.test(e[t]);)t++;var l;(l=e.substring(u,t))&&n.push({type:"negation",value:l})}}return n}(e):null;return n.filter(function(n){if("smart"===l&&f){var t=new Set,r=new Map;f.forEach(function(e,n){"columnSpecific"===e.type&&e.column&&(r.has(e.column)||r.set(e.column,[]),r.get(e.column).push(n))});var o=[];d.forEach(function(e){try{var i;if(e.quickFilterGetter)i=e.quickFilterGetter({row:n,accessor:e.accessor});else{var u=G(n,e.accessor);if(s&&e.valueFormatter){var l=e.valueFormatter({accessor:e.accessor,colIndex:0,row:n,rowIndex:0,value:u});i=Array.isArray(l)?l.join(" "):l+""}else i=null==u?"":Array.isArray(u)?u.join(" "):u+""}o.push(i);var c=r.get(e.accessor);c&&c.forEach(function(e){var n=f[e],r=a?i:i.toLowerCase(),o=a?n.value:n.value.toLowerCase();r.includes(o)&&t.add(e)})}catch(n){console.warn("Quick filter error for column ".concat(e.accessor,":"),n)}});var i=a?o.join(" "):o.join(" ").toLowerCase();return f.forEach(function(e,n){if("columnSpecific"!==e.type){var r=a?e.value:e.value.toLowerCase();switch(e.type){case"word":case"phrase":i.includes(r)&&t.add(n);break;case"negation":i.includes(r)||t.add(n)}}}),t.size===f.length}return d.some(function(t){try{var r=void 0;if(t.quickFilterGetter)r=t.quickFilterGetter({row:n,accessor:t.accessor});else{var o=G(n,t.accessor);if(s&&t.valueFormatter){var i=t.valueFormatter({accessor:t.accessor,colIndex:0,row:n,rowIndex:0,value:o});r=Array.isArray(i)?i.join(" "):i+""}else r=null==o?"":Array.isArray(o)?o.join(" "):o+""}return function(e,n,t){if(!n)return!0;var r=t?e:e.toLowerCase(),o=t?n:n.toLowerCase();return r.includes(o)}(r,e,a)}catch(e){return console.warn("Quick filter error for column ".concat(t.accessor,":"),e),!1}})})},[n,t,r])}({rows:_r,headers:wr,quickFilter:fn}),Yr=function(e){var n=e.rows,t=e.headers,r=e.externalFilterHandling,o=e.onFilterChange,a=e.announce,c=i({}),s=c[0],d=c[1],f=lt(t),v=u(function(){return xt({externalFilterHandling:r,tableRows:n,filterState:s})},[n,s,r]),h=l(function(e){var n,t=x(x({},s),((n={})[e.accessor]=e,n));if(d(t),null==o||o(t),a){var r=f.get(e.accessor);r&&a("Filter applied to ".concat(r.label))}},[s,o,a,f]),p=l(function(e){var n=x({},s);if(delete n[e],d(n),null==o||o(n),a){var t=f.get(e);t&&a("Filter removed from ".concat(t.label))}},[s,o,a,f]),w=l(function(){d({}),null==o||o({}),a&&a("All filters cleared")},[o,a]),m=l(function(e){var t,o=x(x({},s),((t={})[e.accessor]=e,t));return xt({externalFilterHandling:r,tableRows:n,filterState:o})},[s,n,r]);return{filteredRows:v,updateFilter:h,clearFilter:p,clearAllFilters:w,filters:s,computeFilteredRowsPreview:m}}({rows:Jr,headers:wr,externalFilterHandling:fe,onFilterChange:Ze,announce:Fr}),Xr=Yr.filters,$r=Yr.updateFilter,Qr=Yr.clearFilter,Zr=Yr.clearAllFilters,eo=Yr.computeFilteredRowsPreview,no=function(e){var n=e.headers,t=e.tableRows,r=e.externalSortHandling,o=e.onSortChange,a=e.rowGrouping,c=e.initialSortColumn,s=e.initialSortDirection,d=e.announce,f=lt(n),v=l(function(){if(!c)return null;var e=f.get(c);return e?{key:e,direction:s||"asc"}:null},[f,c,s]),h=i(v),p=h[0],w=h[1],m=l(function(e){var n=e.groupingKeys,t=e.headers,r=e.sortColumn,o=ut({headers:t,rows:e.rows,sortColumn:r});return n&&0!==n.length?o.map(function(e){var o,i=n[0],a=e[i];if(j(a)){var u=m({rows:a,sortColumn:r,headers:t,groupingKeys:n.slice(1)});return x(x({},e),((o={})[i]=u,o))}return e}):o},[]),g=u(function(){return ct({externalSortHandling:r,tableRows:t,sortColumn:p,rowGrouping:a,headers:n,sortNestedRows:m})},[t,p,n,r,a,m]),b=l(function(e){if(!e)return w(null),void(null==o||o(null));var n=e.accessor,t=e.direction,r=f.get(n);if(r){var i=null;if(t)i={key:r,direction:t};else{var a=r.sortingOrder||["asc","desc",null],u=-1;p&&p.key.accessor===n&&(u=a.indexOf(p.direction));var l=a[(u+1)%a.length];i=null===l?null:{key:r,direction:l}}if(w(i),null==o||o(i),d)if(i){var c="asc"===i.direction?"ascending":"descending";d("Sorted by ".concat(r.label,", ").concat(c))}else d("Sort removed from ".concat(r.label))}},[p,f,o,d]),y=l(function(e){var o=function(n){for(var t=0,r=n;r.length>t;t++){var i=r[t];if(i.accessor===e)return i;if(i.children&&i.children.length>0){var a=o(i.children);if(a)return a}}},i=o(n);if(!i)return t;var u=i.sortingOrder||["asc","desc",null],l=-1;p&&p.key.accessor===e&&(l=u.indexOf(p.direction));var c=u[(l+1)%u.length];return ct({externalSortHandling:r,tableRows:t,sortColumn:null===c?null:{key:i,direction:c},rowGrouping:a,headers:n,sortNestedRows:m})},[p,n,t,r,a,m]);return{sort:p,sortedRows:g,updateSort:b,computeSortedRowsPreview:y}}({headers:Qt,tableRows:Yr.filteredRows,externalSortHandling:me,onSortChange:sn,rowGrouping:hn,initialSortColumn:Le,initialSortDirection:We,announce:Fr}),to=no.sort,ro=no.updateSort,oo=no.computeSortedRowsPreview,io=Tt({rows:no.sortedRows,rowGrouping:hn,getRowId:pn,expandedRows:Hr,collapsedRows:Tr,expandedDepths:Sr,rowStateMap:at,hasLoadingRenderer:!!qe,hasErrorRenderer:!!te,hasEmptyRenderer:!!_,headers:wr,rowHeight:Kn,headerHeight:Un,customTheme:Vn}),ao=io.flattenedRows,uo=io.heightOffsets,lo=io.paginatableRows,co=io.parentEndPositions,so=function(e){var n=e.tableRows,t=e.onRowSelectionChange,r=e.enableRowSelection,o=void 0!==r&&r,a=i(new Set),c=a[0],s=a[1],d=l(function(e){return!!o&&function(e,n){return n.has(e)}(e,c)},[c,o]),f=l(function(){return!!o&&function(e,n){return 0!==e.length&&e.filter(function(e){return e&&e.rowId}).every(function(e){return n.has(U(e.rowId))})}(n,c)},[n,c,o]),v=u(function(){return o?function(e){return e.size}(c):0},[c,o]),h=u(function(){return o?function(e,n){return e.filter(function(e){return!(!e||!e.rowId)&&n.has(U(e.rowId))}).map(function(e){return e.row})}(n,c):[]},[n,c,o]),p=l(function(e,r){if(o){var i=function(e,n){var t=new Set(n);return t.has(e)?t.delete(e):t.add(e),t}(e,c);if(s(i),t){var a=n.find(function(n){return U(n.rowId)===e});a&&t({row:a.row,isSelected:r,selectedRows:i})}}},[c,n,t,o]),w=l(function(e){var r;o&&(e?(r=function(e){return new Set(e.filter(function(e){return e&&e.rowId}).map(function(e){return U(e.rowId)}))}(n),t&&n.forEach(function(e){return t({row:e.row,isSelected:!0,selectedRows:r})})):(r=new Set,t&&c.forEach(function(e){var o=n.find(function(n){return U(n.rowId)===e});o&&t({row:o.row,isSelected:!1,selectedRows:r})})),s(r))},[n,t,c,o]),m=l(function(e){if(o){var n=d(e);p(e,!n)}},[d,p,o]),g=l(function(){if(o){if(t){var e=new Set;c.forEach(function(r){var o=n.find(function(e){return U(e.rowId)===r});o&&t({row:o.row,isSelected:!1,selectedRows:e})})}s(new Set)}},[c,n,t,o]);return{selectedRows:c,setSelectedRows:s,isRowSelected:d,areAllRowsSelected:f,selectedRowCount:v,selectedRowsData:h,handleRowSelect:p,handleSelectAll:w,handleToggleRow:m,clearSelection:g}}({tableRows:ao,onRowSelectionChange:cn,enableRowSelection:Z});Nt=so.selectedRows,Ht=so.setSelectedRows,Et=so.isRowSelected,kt=so.areAllRowsSelected,Ft=so.selectedRowCount,Lt=so.selectedRowsData,Ot=so.handleRowSelect,Wt=so.handleSelectAll,zt=so.handleToggleRow,qt=so.clearSelection;var fo=Tt({rows:_r,rowGrouping:hn,getRowId:pn,expandedRows:Hr,collapsedRows:Tr,expandedDepths:Sr,rowStateMap:at,hasLoadingRenderer:!!qe,hasErrorRenderer:!!te,hasEmptyRenderer:!!_,headers:wr,rowHeight:Kn,headerHeight:Un,customTheme:Vn}).flattenedRows,vo=l(function(e){var n=eo(e);return hn&&0!==hn.length?Y({rows:n,rowGrouping:hn,getRowId:pn,expandedRows:Hr,collapsedRows:Tr,expandedDepths:Sr,rowStateMap:at,hasLoadingRenderer:!!qe,hasErrorRenderer:!!te,hasEmptyRenderer:!!_,headers:wr,rowHeight:Kn,headerHeight:Un,customTheme:Vn}):n.map(function(e,n){return{row:e,depth:0,displayPosition:n,groupingKey:void 0,position:n,isLastGroupRow:!1,rowId:[n],rowPath:[n],absoluteRowIndex:n}})},[eo,hn,pn,Hr,Tr,Sr,at,qe,te,_,wr,Kn,Un,Vn]),ho=l(function(e){var n=oo(e);return hn&&0!==hn.length?Y({rows:n,rowGrouping:hn,getRowId:pn,expandedRows:Hr,collapsedRows:Tr,expandedDepths:Sr,rowStateMap:at,hasLoadingRenderer:!!qe,hasErrorRenderer:!!te,hasEmptyRenderer:!!_,headers:wr,rowHeight:Kn,headerHeight:Un,customTheme:Vn}):n.map(function(e,n){return{row:e,depth:0,displayPosition:n,groupingKey:void 0,position:n,isLastGroupRow:!1,rowId:[n],rowPath:[n],absoluteRowIndex:n}})},[oo,hn,pn,Hr,Tr,Sr,at,qe,te,_,wr,Kn,Un,Vn]),po=function(e){var n=e.height,t=e.maxHeight,r=e.rowHeight,o=e.totalRowCount,i=e.headerHeight,a=e.footerHeight;return u(function(){if(t){var e=yt(t);if(0===e)return;var u=i||r;if(e>=u+o*r+(a||0))return;return Math.max(0,e-u)}if(n){var l=yt(n);if(0!==l)return Math.max(0,l-r)}},[n,t,r,o,i,a])}({height:He,maxHeight:Ge,rowHeight:Kn,shouldPaginate:Mn,rowsPerPage:gn,totalRowCount:null!=Fn?Fn:lo.length,headerHeight:Wr,footerHeight:Mn&&!ke?_n:void 0}),wo=function(e){var n=e.allowAnimations,t=e.computeFilteredRowsPreview,r=e.computeSortedRowsPreview,o=e.contentHeight,c=e.currentPage,s=e.customTheme,d=e.enableStickyParents,f=e.flattenedRows,v=e.heightOffsets,h=e.originalFlattenedRows,p=e.parentEndPositions,w=e.rowHeight,m=e.rowsPerPage,b=e.scrollDirection,y=void 0===b?"none":b,I=e.scrollTop,C=e.serverSidePagination,S=e.shouldPaginate,N=e.rowGrouping,H=i(!1),E=H[0],k=H[1],T=i([]),P=T[0],A=T[1],D=a([]),F=a([]),L=u(function(){return M(w)},[w]),O=a(new Map),W=a(null),B=l(function(e,n){if(!S||C)return e.map(function(e,n){return x(x({},e),{position:n,absoluteRowIndex:n})});var t=(c-1)*m,r=c*m,o=0===t?0:n[t-1];return e.slice(o,r>n.length?e.length:n[r-1]).map(function(e,n){var t=e.nestedTable?e.absoluteRowIndex:S&&!C?o+n:n;return x(x({},e),{position:n,absoluteRowIndex:t})})},[c,m,C,S]);u(function(){if(0===O.current.size&&h.length>0){var e=new Map;h.forEach(function(n,t){var r=U(n.rowId);e.set(r,t)}),O.current=e}},[h]);var z=u(function(){return B(f,p)},[f,p,B]),q=u(function(){if(!v||0===v.length||!S||C)return v;var e=new Map;return z.forEach(function(n){n.nestedTable&&e.set(n.absoluteRowIndex,n.position)}),v.filter(function(n){return e.has(n[0])}).map(function(n){var t=n[1];return[e.get(n[0]),t]})},[v,z,S,C]),G=u(function(){if(q&&0!==q.length)return function(e,n,t,r){var o=n+r.rowSeparatorWidth,i=Array(e),a=new Map;t&&t.forEach(function(e){a.set(e[0],e[1])});for(var u=0,l=0;e>l;l++){i[l]=u,u+=o;var c=a.get(l);void 0!==c&&(u+=c)}return{rowTopPositions:i,totalHeight:u-r.rowSeparatorWidth}}(z.length,w,q,s)},[z.length,w,q,s]),V=u(function(){return void 0===o?z:re({bufferRowCount:L,contentHeight:o,tableRows:z,rowHeight:w,scrollTop:I,scrollDirection:y,heightMap:G}).rendered.rows},[z,o,w,I,y,L,G]),j=u(function(){if(!d||void 0===o)return{stickyParents:[],regularRows:V,partiallyVisibleRows:[]};var e=re({bufferRowCount:L,contentHeight:o,tableRows:z,rowHeight:w,scrollTop:I,scrollDirection:y,heightMap:G}),n=N?function(e,n,t,r,o){return ae({allTableRows:e,renderedRows:n,fullyVisibleRows:t,partiallyVisibleRows:r,partiallyVisibleRowIndex:0,recursionDepth:0,stickyParents:[],rowGrouping:o})}(z,e.rendered.rows,e.fullyVisible.rows,e.partiallyVisible.rows,N):{stickyParents:[],regularRows:e.rendered.rows,partiallyVisibleRows:[]};return x(x({},n),{partiallyVisibleRows:e.partiallyVisible.rows})},[L,o,z,d,G,N,w,y,I,V]),K=j.stickyParents,_=j.regularRows,J=j.partiallyVisibleRows,Y=l(function(e,n){var t=new Set(e.filter(function(e){return e&&e.rowId}).map(function(e){return U(e.rowId)})),r=new Set(n.filter(function(e){return e&&e.rowId}).map(function(e){return U(e.rowId)}));return{staying:n.filter(function(e){var n=U(e.rowId);return t.has(n)}),entering:n.filter(function(e){var n=U(e.rowId);return!t.has(n)}),leaving:e.filter(function(e){var n=U(e.rowId);return!r.has(n)})}},[]),X=u(function(){if(0===D.current.length)return!1;var e=z.filter(function(e){return e&&e.rowId}).map(function(e){return U(e.rowId)}),n=D.current.filter(function(e){return e&&e.rowId}).map(function(e){return U(e.rowId)});return e.length!==n.length||!e.every(function(e,t){return e===n[t]})},[z]);g(function(){if(!E){var e=function(){P.length>0&&A([])};if(!n||S)return e(),D.current=z,void(F.current=V);if(0===D.current.length)return e(),D.current=z,void(F.current=V);if(!X)return e(),D.current=z,void(F.current=V);W.current={tableRows:z,visibleRows:V},k(!0)}},[n,z,P.length,X,E,S,V]),g(function(){if(E&&W.current&&P.length>0){var e=setTimeout(function(){var e=W.current;k(!1),A([]),D.current=e.tableRows,F.current=e.visibleRows,W.current=null},Mt.ROW_REORDER.duration+100);return function(){return clearTimeout(e)}}},[E,P.length]);var $=u(function(){if(!n||S)return V;if(P.length>0){var e=new Map,t=new Map;return z.forEach(function(n){var r=U(n.rowId);e.set(r,n.position),t.set(r,n.displayPosition)}),P.map(function(n){var r=U(n.rowId),o=e.get(r),i=t.get(r);return void 0!==o&&void 0!==i?x(x({},n),{position:o,displayPosition:i}):n})}return V},[V,P,z,n,S]),Q=l(function(e){if(n&&!S&&void 0!==o){var r=t(e),i=B(r,[]),a=re({bufferRowCount:L,contentHeight:o,tableRows:i,rowHeight:w,scrollTop:I,scrollDirection:y,heightMap:G}),u=Y(V,a.rendered.rows).entering.map(function(e){var n=U(e.rowId)+"";return z.find(function(e){return U(e.rowId)+""===n})||e}).filter(Boolean);u.length>0&&A(R(R([],V,!0),u,!0))}},[n,S,t,B,o,w,I,y,Y,z,V,L,G]),Z=l(function(e){if(n&&!S&&void 0!==o){var t=r(e),i=B(t,[]),a=re({bufferRowCount:L,contentHeight:o,tableRows:i,rowHeight:w,scrollTop:I,scrollDirection:y,heightMap:G}),u=Y(V,a.rendered.rows).entering.map(function(e){var n=U(e.rowId)+"";return z.find(function(e){return U(e.rowId)+""===n})||e}).filter(Boolean);u.length>0&&A(R(R([],V,!0),u,!0))}},[n,S,r,B,o,w,I,y,Y,z,V,L,G]);return{currentTableRows:z,currentVisibleRows:V,isAnimating:E,prepareForFilterChange:Q,prepareForSortChange:Z,rowsToRender:$,stickyParents:K,regularRows:_,partiallyVisibleRows:J,paginatedHeightOffsets:q,heightMap:G}}({allowAnimations:c,computeFilteredRowsPreview:vo,computeSortedRowsPreview:ho,contentHeight:po,currentPage:Yt,customTheme:Vn,enableStickyParents:ne,flattenedRows:ao,heightOffsets:uo,originalFlattenedRows:fo,paginatableRows:lo,parentEndPositions:co,rowGrouping:hn,rowHeight:Kn,rowsPerPage:gn,scrollDirection:Ir,scrollTop:br,serverSidePagination:Rn,shouldPaginate:Mn}),mo=wo.currentTableRows,go=wo.rowsToRender,bo=wo.prepareForFilterChange,xo=wo.prepareForSortChange,yo=wo.isAnimating,Io=wo.stickyParents,Co=wo.regularRows,Ro=wo.partiallyVisibleRows,So=wo.paginatedHeightOffsets,Mo=wo.heightMap,No=a(new Map),Ho=a(new Map),Eo=function(e){var n=e.selectableCells,t=e.headers,r=e.tableRows,c=e.onCellEdit,s=e.cellRegistry,d=e.collapsedHeaders,f=e.rowHeight,v=e.enableRowSelection,h=void 0!==v&&v,p=e.copyHeadersToClipboard,w=void 0!==p&&p,m=e.customTheme,g=i(new Set),b=g[0],x=g[1],y=i(new Set),R=y[0],S=y[1],M=i(null),N=M[0],H=M[1],E=i(null),k=E[0],T=E[1],P=i(new Set),A=P[0],D=P[1],F=i(new Set),L=F[0],O=F[1],W=i(!1),B=W[0],z=W[1],q=a(!1),j=a(null),K=a(null),_=a(new Set);K.current=k,_.current=b;var J=u(function(){var e=new Set;return b.forEach(function(n){var t=n.split("-");if(t.length>=2){var r=parseInt(t[1],10);isNaN(r)||e.add(r)}}),R.forEach(function(n){e.add(n)}),e},[b,R]),Y=u(function(){var e=new Set;return b.forEach(function(n){var t=n.split("-");if(t.length>=3){var r=t.slice(2).join("-");e.add(r)}}),R.size>0&&r.forEach(function(n){var t=U(n.rowId);e.add(t)}),e},[b,R,r]),$=u(function(){return t.flatMap(function(e){return X(e,d)})},[t,d]),Q=l(function(){var e=_.current;if(0!==e.size){var n=function(e,n,t,r){void 0===r&&(r=!1);var o=n.filter(function(e){return!e.hide&&!e.excludeFromRender}),i=new Map,a=new Map;o.forEach(function(e,n){i.set(n,e.accessor),a.set(n,e)});var u=Array.from(e).reduce(function(e,n){var r,o=n.split("-").map(Number),u=o[0],l=o[1];e[u]||(e[u]=[]);var c=i.get(l),s=a.get(l);if(c&&(null===(r=t[u])||void 0===r?void 0:r.row)){var d=t[u].row,f=G(d,c);if(!1!==(null==s?void 0:s.useFormattedValueForClipboard)&&(null==s?void 0:s.valueFormatter)){var v=s.valueFormatter({accessor:c,colIndex:l,row:d,rowIndex:u,value:f});e[u][l]=v}else e[u][l]=!s||"lineAreaChart"!==s.type&&"barChart"!==s.type?f:Array.isArray(f)?f.join(", "):""}else e[u][l]="";return e},{}),l=new Set;r&&Array.from(e).forEach(function(e){var n=e.split("-").map(Number);l.add(n[1])});var c="";r&&l.size>0&&(c=Array.from(l).sort(function(e,n){return e-n}).map(function(e){var n,t=a.get(e);return null!==(n=null==t?void 0:t.label)&&void 0!==n?n:""}).join("\t"));var s=Object.values(u).map(function(e){return Object.values(e).join("\t")}).join("\n");return r&&c?"".concat(c,"\n").concat(s):s}(e,$,r,w);navigator.clipboard.writeText(n),D(new Set(e)),setTimeout(function(){return D(new Set)},800)}},[$,r,w]),Z=l(function(){return I(void 0,void 0,void 0,function(){var e,n,t,o,i,a;return C(this,function(u){switch(u.label){case 0:if(!(e=K.current))return[2];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,navigator.clipboard.readText()];case 2:return(n=u.sent())?(t=function(e,n,t,r,o,i){var a=new Set,u=new Set,l=e.split("\n").filter(function(e){return e.length>0});if(0===l.length)return{updatedCells:a,warningCells:u};var c=t.filter(function(e){return!e.hide&&!e.excludeFromRender}),s=n.rowIndex,d=n.colIndex;return l.forEach(function(e,n){e.split("\t").forEach(function(e,t){var l=s+n,f=d+t;if(r.length>l&&c.length>f){var v=r[l],h=c[f],p=U(v.rowId);if(null==h?void 0:h.isEditable){var w=e;if("number"===h.type){var m=+e;isNaN(m)||(w=m)}else if("boolean"===h.type)w="true"===e.toLowerCase()||"1"===e;else if("date"===h.type){var g=new Date(e);isNaN(g.getTime())||(w=g)}else"lineAreaChart"!==h.type&&"barChart"!==h.type||(w=e.split(",").map(function(e){var n=+e.trim();return isNaN(n)?0:n}));if(V(v.row,h.accessor,w),i){var b="".concat(p,"-").concat(h.accessor),x=i.get(b);x&&x.updateContent(w)}null==o||o({accessor:h.accessor,newValue:w,row:v.row,rowIndex:l});var y="".concat(l,"-").concat(f,"-").concat(p);a.add(y)}else{var I="".concat(l,"-").concat(f,"-").concat(p);u.add(I)}}})}),{updatedCells:a,warningCells:u}}(n,e,$,r,c,s),i=t.warningCells,(o=t.updatedCells).size>0&&(D(o),setTimeout(function(){return D(new Set)},800)),i.size>0&&(O(i),setTimeout(function(){return O(new Set)},800)),[3,4]):[2];case 3:return a=u.sent(),console.warn("Failed to paste from clipboard:",a),[3,4];case 4:return[2]}})})},[$,r,c,s]),ee=l(function(){var e=_.current;if(0!==e.size){var n=function(e,n,t,r,o){var i=new Set,a=new Set,u=n.filter(function(e){return!e.hide&&!e.excludeFromRender}),l=new Map;return u.forEach(function(e,n){l.set(n,e.accessor)}),Array.from(e).forEach(function(e){var n=e.split("-").map(Number),l=n[0],c=n[1];if(t.length>l&&u.length>c){var s=t[l],d=u[c],f=U(s.rowId);if(null==d?void 0:d.isEditable){var v;if(v="string"===d.type?"":"number"===d.type?null:"boolean"!==d.type&&("date"===d.type?null:"lineAreaChart"===d.type||"barChart"===d.type||Array.isArray(G(s.row,d.accessor))?[]:""),V(s.row,d.accessor,v),o){var h="".concat(f,"-").concat(d.accessor),p=o.get(h);p&&p.updateContent(v)}null==r||r({accessor:d.accessor,newValue:v,row:s.row,rowIndex:l}),i.add(e)}else a.add(e)}}),{deletedCells:i,warningCells:a}}(e,$,r,c,s),t=n.deletedCells,o=n.warningCells;t.size>0&&(D(t),setTimeout(function(){return D(new Set)},800)),o.size>0&&(O(o),setTimeout(function(){return O(new Set)},800))}},[$,r,c,s]),ne=l(function(e,n){for(var t=new Set,o=Math.min(e.rowIndex,n.rowIndex),i=Math.max(e.rowIndex,n.rowIndex),a=Math.min(e.colIndex,n.colIndex),u=Math.max(e.colIndex,n.colIndex),l=o;i>=l;l++)for(var c=a;u>=c;c++)if(l>=0&&r.length>l){if(h&&0===c)continue;var s=U(r[l].rowId);t.add(ce({colIndex:c,rowIndex:l,rowId:s}))}S(new Set),H(null),_.current=t,K.current=n,x(t),T(n),setTimeout(function(){return le(n,f,m)},0)},[r,f,h,m]),te=l(function(e){if(e.rowIndex>=0&&r.length>e.rowIndex&&e.colIndex>=0&&(h?$.length:$.length-1)>=e.colIndex){var n=ce(e);S(new Set),H(null);var t=new Set([n]);_.current=t,K.current=e,x(t),T(e),setTimeout(function(){return le(e,f,m)},0)}},[$.length,r.length,f,h,m]),re=l(function(e,n){void 0===n&&(n=!1),_.current=new Set,K.current=null,x(new Set),T(null),S(function(t){var r=new Set(n?t:[]);return e.forEach(function(e){return r.add(e)}),r}),e.length>0&&H(e[e.length-1])},[]);!function(e){var n=e.copyToClipboard,t=e.deleteSelectedCells,r=e.enableRowSelection,i=void 0!==r&&r,a=e.initialFocusedCellRef,u=e.leafHeaders,l=e.pasteFromClipboard,c=e.selectCellRange,s=e.selectSingleCell,d=e.selectableCells,f=e.selectedCellsRef,v=e.setLastSelectedColumnIndex,h=e.setSelectedCells,p=e.setSelectedColumns,w=e.startCell,m=e.tableRows;o(function(){var e=function(e){if(d){var c=a.current;if(c&&0!==f.current.size){var s=document.activeElement;if(!(s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement||s instanceof HTMLSelectElement||"true"===(null==s?void 0:s.getAttribute("contenteditable")))){var R=c.rowIndex,S=c.colIndex,M=c.rowId;if(!e.ctrlKey&&!e.metaKey||"c"!==e.key){if((e.ctrlKey||e.metaKey)&&"v"===e.key)return e.preventDefault(),void l();if((e.ctrlKey||e.metaKey)&&"a"===e.key){e.preventDefault();for(var N=new Set,H=0;m.length>H;H++)for(var E=0;u.length>E;E++){var k=i?E+1:E,T=U(m[H].rowId);N.add("".concat(H,"-").concat(k,"-").concat(T))}return f.current=N,h(N),p(new Set),void v(null)}if("Delete"===e.key||"Backspace"===e.key)return e.preventDefault(),void t();var P=m[R];if((P?U(P.rowId):null)!==M){var A=m.findIndex(function(e){return U(e.rowId)===M});if(-1===A)return;R=A}var D=function(e,n,t){var r=e,o=n;return"up"===t?r=0:"down"===t?r=m.length-1:"left"===t?o=i?1:0:"right"===t&&(o=i?u.length:u.length-1),{rowIndex:r,colIndex:o}};if("ArrowUp"===e.key)e.preventDefault(),r(e,R,S,D);else if("ArrowDown"===e.key)e.preventDefault(),o(e,R,S,D);else if("ArrowLeft"===e.key||"Tab"===e.key&&e.shiftKey)e.preventDefault(),g(e,R,S,D);else if("ArrowRight"===e.key||"Tab"===e.key)e.preventDefault(),b(e,R,S,D);else if("Home"===e.key)e.preventDefault(),x(e,R);else if("End"===e.key)e.preventDefault(),y(e,R);else if("PageUp"===e.key)e.preventDefault(),I(e,R,S);else if("PageDown"===e.key)e.preventDefault(),C(e,R,S);else if("Escape"===e.key){var F=new Set;f.current=F,h(F),p(new Set),v(null),w.current=null}}else n()}}}},r=function(e,n,t,r){if(e.shiftKey){w.current||(w.current=a.current);var o=n-1;if((e.ctrlKey||e.metaKey)&&(o=r(n,t,"up").rowIndex),o>=0){var i=U(m[o].rowId);c(w.current,{rowIndex:o,colIndex:t,rowId:i})}}else n>0&&(o=n-1,(e.ctrlKey||e.metaKey)&&(o=r(n,t,"up").rowIndex),i=U(m[o].rowId),s({rowIndex:o,colIndex:t,rowId:i}),w.current=null)},o=function(e,n,t,r){if(e.shiftKey){w.current||(w.current=a.current);var o=n+1;if((e.ctrlKey||e.metaKey)&&(o=r(n,t,"down").rowIndex),m.length>o){var i=U(m[o].rowId);c(w.current,{rowIndex:o,colIndex:t,rowId:i})}}else m.length-1>n&&(o=n+1,(e.ctrlKey||e.metaKey)&&(o=r(n,t,"down").rowIndex),i=U(m[o].rowId),s({rowIndex:o,colIndex:t,rowId:i}),w.current=null)},g=function(e,n,t,r){if(e.shiftKey&&"ArrowLeft"===e.key){w.current||(w.current=a.current);var o=t-1;if(e.ctrlKey||e.metaKey)o=r(n,t,"left").colIndex;else if(i&&0===o)return;if(o>=0){var u=U(m[n].rowId);c(w.current,{rowIndex:n,colIndex:o,rowId:u})}}else if(t>0){if(o=t-1,(e.ctrlKey||e.metaKey)&&"ArrowLeft"===e.key)o=r(n,t,"left").colIndex;else if(i&&0===o)return;0>o||(u=U(m[n].rowId),s({rowIndex:n,colIndex:o,rowId:u}),w.current=null)}},b=function(e,n,t,r){var o=i?u.length:u.length-1;if(e.shiftKey&&"ArrowRight"===e.key){w.current||(w.current=a.current);var l=t+1;if((e.ctrlKey||e.metaKey)&&(l=r(n,t,"right").colIndex),o>=l){var d=U(m[n].rowId);c(w.current,{rowIndex:n,colIndex:l,rowId:d})}}else o>t&&(l=t+1,(e.ctrlKey||e.metaKey)&&"ArrowRight"===e.key&&(l=r(n,t,"right").colIndex),l>o||(d=U(m[n].rowId),s({rowIndex:n,colIndex:l,rowId:d}),w.current=null))},x=function(e,n,t){if(e.shiftKey){w.current||(w.current=a.current);var r=n,o=i?1:0;(e.ctrlKey||e.metaKey)&&(r=0);var u=U(m[r].rowId);c(w.current,{rowIndex:r,colIndex:o,rowId:u})}else r=n,o=i?1:0,(e.ctrlKey||e.metaKey)&&(r=0),u=U(m[r].rowId),s({rowIndex:r,colIndex:o,rowId:u}),w.current=null},y=function(e,n,t){if(e.shiftKey){w.current||(w.current=a.current);var r=n,o=i?u.length:u.length-1;(e.ctrlKey||e.metaKey)&&(r=m.length-1);var l=U(m[r].rowId);c(w.current,{rowIndex:r,colIndex:o,rowId:l})}else r=n,o=i?u.length:u.length-1,(e.ctrlKey||e.metaKey)&&(r=m.length-1),l=U(m[r].rowId),s({rowIndex:r,colIndex:o,rowId:l}),w.current=null},I=function(e,n,t){var r=Math.max(0,n-10);if(e.shiftKey){w.current||(w.current=a.current);var o=U(m[r].rowId);c(w.current,{rowIndex:r,colIndex:t,rowId:o})}else o=U(m[r].rowId),s({rowIndex:r,colIndex:t,rowId:o}),w.current=null},C=function(e,n,t){var r=Math.min(m.length-1,n+10);if(e.shiftKey){w.current||(w.current=a.current);var o=U(m[r].rowId);c(w.current,{rowIndex:r,colIndex:t,rowId:o})}else o=U(m[r].rowId),s({rowIndex:r,colIndex:t,rowId:o}),w.current=null};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}},[d,a,f,m,u,s,c,h,p,v,n,l,t,w,i])}({selectableCells:n,initialFocusedCellRef:K,selectedCellsRef:_,tableRows:r,leafHeaders:$,selectSingleCell:te,selectCellRange:ne,setSelectedCells:x,setSelectedColumns:S,setLastSelectedColumnIndex:H,copyToClipboard:Q,pasteFromClipboard:Z,deleteSelectedCells:ee,startCell:j,enableRowSelection:h});var oe=l(function(e,n){var t=new Set,o=new Map;r.forEach(function(e,n){var t=U(e.rowId);o.set(t,n)});for(var i=o.get(e.rowId+""),a=o.get(n.rowId+""),u=void 0!==i?i:e.rowIndex,l=void 0!==a?a:n.rowIndex,c=Math.min(u,l),s=Math.max(u,l),d=Math.min(e.colIndex,n.colIndex),f=Math.max(e.colIndex,n.colIndex),v=c;s>=v;v++)for(var p=d;f>=p;p++)if(v>=0&&r.length>v){if(h&&0===p)continue;var w=U(r[v].rowId);t.add(ce({colIndex:p,rowIndex:v,rowId:w}))}_.current=t,x(t)},[r,h]),ie=l(function(e,n){var t=document.querySelector(".st-body-container");if(!t)return null;var r=t.getBoundingClientRect(),o=Array.from(document.querySelectorAll(".st-cell[data-row-index][data-col-index]:not(.st-selection-cell)"));if(0===o.length)return null;var i=Math.max(r.left,Math.min(r.right,e)),a=Math.max(r.top,Math.min(r.bottom,n)),u=null,l=1/0;if(o.forEach(function(e){if(e instanceof HTMLElement){var n=e,t=n.getBoundingClientRect(),r=t.top+t.height/2,o=Math.sqrt(Math.pow(t.left+t.width/2-i,2)+Math.pow(r-a,2));l>o&&(l=o,u=n)}}),null!==u){var c=u,s=parseInt(c.getAttribute("data-row-index")||"-1",10),d=parseInt(c.getAttribute("data-col-index")||"-1",10),f=c.getAttribute("data-row-id");if(s>=0&&d>=0&&null!==f)return{rowIndex:s,colIndex:d,rowId:f}}return null},[]),ae=l(function(e,n){var t=document.elementFromPoint(e,n);if(!t)return null;var r=t.closest(".st-cell");if(r instanceof HTMLElement){var o=parseInt(r.getAttribute("data-row-index")||"-1",10),i=parseInt(r.getAttribute("data-col-index")||"-1",10),a=r.getAttribute("data-row-id");if(o>=0&&i>=0&&null!==a)return{rowIndex:o,colIndex:i,rowId:a}}return ie(e,n)},[ie]),ue=l(function(e,n){var t=document.querySelector(".st-body-container");if(t){var r=t.getBoundingClientRect();r.top+50>n?t.scrollTop-=10*Math.min(3,1+Math.max(0,r.top-n)/100):n>r.bottom-50&&(t.scrollTop+=10*Math.min(3,1+Math.max(0,n-r.bottom)/100));var o=document.querySelector(".st-body-main");o&&(r.left+50>e?o.scrollLeft-=10*Math.min(3,1+Math.max(0,r.left-e)/100):e>r.right-50&&(o.scrollLeft+=10*Math.min(3,1+Math.max(0,e-r.right)/100)))}},[]),se=l(function(e){var n=e.colIndex,t=ce({colIndex:n,rowIndex:e.rowIndex,rowId:e.rowId}),r=b.has(t),o=R.has(n);return r||o},[b,R]),de=l(function(e){var n=e.colIndex,t=e.rowIndex,o=e.rowId;if(B)return"";var i=[],a=r[t-1],u=a?U(a.rowId):null,l=r[t+1],c=l?U(l.rowId):null,s=null!==u?{colIndex:n,rowIndex:t-1,rowId:u}:null,d=null!==c?{colIndex:n,rowIndex:t+1,rowId:c}:null,f={colIndex:n-1,rowIndex:t,rowId:o},v={colIndex:n+1,rowIndex:t,rowId:o};return(!s||!se(s)||R.has(n)&&0===t)&&i.push("st-selected-top-border"),(!d||!se(d)||R.has(n)&&t===r.length-1)&&i.push("st-selected-bottom-border"),se(f)||i.push("st-selected-left-border"),se(v)||i.push("st-selected-right-border"),i.join(" ")},[B,se,r,R]),fe=u(function(){return k?function(e){return e.rowIndex===k.rowIndex&&e.colIndex===k.colIndex&&e.rowId===k.rowId}:function(){return!1}},[k]),ve=l(function(e){var n=ce({colIndex:e.colIndex,rowIndex:e.rowIndex,rowId:e.rowId});return A.has(n)},[A]),he=l(function(e){var n=ce({colIndex:e.colIndex,rowIndex:e.rowIndex,rowId:e.rowId});return L.has(n)},[L]);return{getBorderClass:de,handleMouseDown:function(e){var t=e.colIndex,r=e.rowIndex,o=e.rowId;if(n){q.current=!0,z(!0),j.current={rowIndex:r,colIndex:t,rowId:o};var i=ce({colIndex:t,rowIndex:r,rowId:o}),a=new Set([i]),u={rowIndex:r,colIndex:t,rowId:o};_.current=a,K.current=u,setTimeout(function(){S(new Set),H(null),x(a),T(u)},0);var l=null,c=null,s=null,d=0,f=function(){if(q.current&&j.current){if(null!==l&&null!==c){ue(l,c);var e=Date.now();if(e-d>=16){var n=ae(l,c);n&&oe(j.current,n),d=e}}s=requestAnimationFrame(f)}else null!==s&&(cancelAnimationFrame(s),s=null)},v=function(e){q.current&&j.current&&(l=e.clientX,c=e.clientY)},h=function(){q.current=!1,z(!1),null!==s&&(cancelAnimationFrame(s),s=null),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",h)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",h),s=requestAnimationFrame(f)}},handleMouseOver:function(e){n&&q.current&&j.current&&oe(j.current,{colIndex:e.colIndex,rowIndex:e.rowIndex,rowId:e.rowId})},isCopyFlashing:ve,isWarningFlashing:he,isInitialFocusedCell:fe,isSelected:se,lastSelectedColumnIndex:N,pasteFromClipboard:Z,selectColumns:re,selectedCells:b,selectedColumns:R,setInitialFocusedCell:T,setSelectedCells:x,setSelectedColumns:S,deleteSelectedCells:ee,columnsWithSelectedCells:J,rowsWithSelectedCells:Y,startCell:j}}({selectableCells:xn,headers:wr,tableRows:mo,onCellEdit:Ke,cellRegistry:No.current,collapsedHeaders:hr,rowHeight:Kn,enableRowSelection:Z,copyHeadersToClipboard:D,customTheme:Vn}),ko=Eo.getBorderClass,To=Eo.handleMouseDown,Po=Eo.handleMouseOver,Ao=Eo.isCopyFlashing,Do=Eo.isInitialFocusedCell,Fo=Eo.isSelected,Lo=Eo.isWarningFlashing,Oo=Eo.selectColumns,Wo=Eo.selectedCells,Bo=Eo.selectedColumns,zo=Eo.setInitialFocusedCell,qo=Eo.setSelectedCells,Go=Eo.setSelectedColumns,Vo=Eo.columnsWithSelectedCells,jo=Eo.rowsWithSelectedCells,Ko=Eo.startCell,Uo=l(function(e){xo(e),setTimeout(function(){ro({accessor:e})},0)},[xo,ro]),_o=l(function(e){Ur(e)},[Ur]),Jo=l(function(){Ur(L)},[L,Ur]);!function(e){var n=e.selectableColumns,t=e.selectedCells,r=e.selectedColumns,i=e.setSelectedCells,a=e.setSelectedColumns,u=e.activeHeaderDropdown,l=e.setActiveHeaderDropdown,c=e.startCell;o(function(){var e=function(e){var o=e.target;o.closest(".editable-cell-input")&&o.closest(".st-header-cell")||(u&&l&&(o.closest(".st-header-cell")||o.closest(".dropdown-content")||l(null)),o.closest(".st-cell")||n&&(o.classList.contains("st-header-cell")||o.classList.contains("st-header-label")||o.classList.contains("st-header-label-text"))||(t.size>0&&i(new Set),r.size>0&&a(new Set),c&&(c.current=null)))};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[n,t,r,i,a,u,l,c])}({selectableColumns:In,selectedCells:Wo,selectedColumns:Bo,setSelectedCells:qo,setSelectedColumns:Go,activeHeaderDropdown:ur,setActiveHeaderDropdown:lr,startCell:Ko}),function(e){var n=e.forceUpdate,t=e.tableBodyContainerRef,r=e.setScrollbarWidth;g(function(){var e=function(){n(),t.current&&r(t.current.offsetWidth-t.current.clientWidth)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[n,t,r])}({forceUpdate:tt,tableBodyContainerRef:et,setScrollbarWidth:jt}),function(e){var n=e.onGridReady;o(function(){null==n||n()},[n])}({onGridReady:en}),function(e){var n=e.cellRegistryRef,t=e.clearAllFilters,r=e.clearFilter,i=e.currentPage,a=e.resetColumns,u=e.editColumns,l=e.essentialAccessors,c=e.expandedDepths,s=e.filters,d=e.flattenedRows,f=e.headerRegistryRef,v=e.headers,h=e.includeHeadersInCSVExport,p=e.onColumnOrderChange,w=e.onColumnVisibilityChange,m=e.onPageChange,g=e.paginatableRows,b=e.quickFilter,y=e.rowGrouping,S=e.rows,M=e.rowsPerPage,N=e.setCollapsedRows,H=e.setColumnEditorOpen,E=e.setCurrentPage,k=e.setExpandedDepths,T=e.setExpandedRows,P=e.setHeaders,A=e.sort,D=e.tableRef,F=e.totalRowCount,L=e.updateFilter,O=e.updateSort,B=e.visibleRows;o(function(){D&&(D.current={updateData:function(e){var t=e.accessor,r=e.rowIndex,o=e.newValue,i=null==S?void 0:S[r];if(i){var a=d.find(function(e){return e.absoluteRowIndex===r});if(a){var u=U(a.rowId),l=W({rowId:u,accessor:t}),c=n.current.get(l);c&&c.updateContent(o)}void 0!==G(i,t)&&V(i,t,o)}},setHeaderRename:function(e){var n=f.current.get(e.accessor+"");n&&n.setEditing(!0)},getVisibleRows:function(){return B},getAllRows:function(){return d},getHeaders:function(){return v},exportToCSV:function(e){!function(e,n,t,r){void 0===r&&(r=!0);var o=function(e,n,t){void 0===t&&(t=!0);var r=function(e){var n=[],t=function(e){for(var r=0,o=e;o.length>r;r++){var i=o[r];i.hide||i.isSelectionColumn||i.excludeFromCsv||(i.children&&i.children.length>0?(i.singleRowChildren&&n.push(i),t(i.children)):n.push(i))}};return t(e),n}(n),o=r.map(function(e){return Ct(e.label)}).join(","),i=e.map(function(e,n){var t=e.row;return r.map(function(e,r){var o=G(t,e.accessor);if(e.exportValueGetter){var i=e.valueFormatter?e.valueFormatter({accessor:e.accessor,colIndex:r,row:t,rowIndex:n,value:o}):void 0,a=e.exportValueGetter({accessor:e.accessor,colIndex:r,row:t,rowIndex:n,value:o,formattedValue:i});return Ct(a)}return!1!==e.useFormattedValueForCSV&&e.valueFormatter?(i=e.valueFormatter({accessor:e.accessor,colIndex:r,row:t,rowIndex:n,value:o}),Ct(i)):Ct(o)}).join(",")});return(t?R([o],i,!0):i).join("\n")}(e,n,r);!function(e,n){void 0===n&&(n="table-export.csv");var t=new Blob([e],{type:"text/csv;charset=utf-8;"}),r=document.createElement("a"),o=URL.createObjectURL(t);r.setAttribute("href",o),r.setAttribute("download",n),r.style.visibility="hidden",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(o)}(o,t)}(d,v,(void 0===e?{}:e).filename,h)},getSortState:function(){return A},applySortState:Rt(O),getPinnedState:function(){return nn(v)},applyPinnedState:Rt(function(e){P(function(n){var t=rn(n,e,l);return t?(null==p||p(t),t):(console.warn("applyPinnedState: left, main, and right accessor lists must include each root column exactly once."),n)})}),getFilterState:function(){return s},applyFilter:Rt(L),clearFilter:Rt(r),clearAllFilters:Rt(t),getCurrentPage:function(){return i},getTotalPages:function(){return Math.ceil((null!=F?F:g.length)/M)},setPage:function(e){return I(void 0,void 0,void 0,function(){var n;return C(this,function(t){switch(t.label){case 0:return n=Math.ceil((null!=F?F:g.length)/M),1>e||e>n?[3,2]:(E(e),m?[4,m(e)]:[3,2]);case 1:t.sent(),t.label=2;case 2:return[2]}})})},expandAll:function(){var e=Array.from({length:(null==y?void 0:y.length)||0},function(e,n){return n});k(new Set(e)),T(new Map),N(new Map)},collapseAll:function(){k(new Set),T(new Map),N(new Map)},expandDepth:function(e){k(function(n){for(var t=new Set(n),r=0;e>=r;r++)t.add(r);return t}),T(function(n){var t=new Map(n);return Array.from(t.entries()).forEach(function(n){n[1]===e&&t.delete(n[0])}),t}),N(function(n){var t=new Map(n);return Array.from(t.entries()).forEach(function(n){n[1]===e&&t.delete(n[0])}),t})},collapseDepth:function(e){k(function(n){var t=new Set(n);return t.delete(e),t}),T(function(n){var t=new Map(n);return Array.from(t.entries()).forEach(function(n){n[1]===e&&t.delete(n[0])}),t}),N(function(n){var t=new Map(n);return Array.from(t.entries()).forEach(function(n){n[1]===e&&t.delete(n[0])}),t})},toggleDepth:function(e){k(function(n){var t=new Set(n);return t.has(e)?t.delete(e):t.add(e),t}),T(function(n){var t=new Map(n);return Array.from(t.entries()).forEach(function(n){n[1]===e&&t.delete(n[0])}),t}),N(function(n){var t=new Map(n);return Array.from(t.entries()).forEach(function(n){n[1]===e&&t.delete(n[0])}),t})},setExpandedDepths:function(e){k(e)},getExpandedDepths:function(){return c},getGroupingProperty:function(e){return null==y?void 0:y[e]},getGroupingDepth:function(e){var n;return null!==(n=null==y?void 0:y.indexOf(e))&&void 0!==n?n:-1},toggleColumnEditor:function(e){u&&H(void 0!==e?e:function(e){return!e})},applyColumnVisibility:Rt(function(e){var n=function(t){return t.map(function(t){var r=t.accessor+"",o=r in e?!e[r]:t.hide;return $e(t,l)&&(o=!1),x(x({},t),{hide:o,children:t.children?n(t.children):t.children})})};P(function(e){return n(e)}),w&&w(e)}),resetColumns:a,setQuickFilter:function(e){(null==b?void 0:b.onChange)&&b.onChange(e)}})},[n,t,r,i,a,u,l,c,s,d,f,v,h,p,w,m,g,b,y,e.rowIndexMap,S,M,e.serverSidePagination,N,H,E,k,T,P,e.setRows,e.shouldPaginate,A,D,F,L,O,B])}({cellRegistryRef:No,clearAllFilters:Zr,clearFilter:Qr,currentPage:Yt,resetColumns:Jo,editColumns:B,essentialAccessors:mr,expandedDepths:Sr,filters:Xr,flattenedRows:ao,headerRegistryRef:Ho,headers:wr,includeHeadersInCSVExport:Fe,onColumnOrderChange:Ue,onColumnVisibilityChange:Xe,onPageChange:un,paginatableRows:lo,quickFilter:fn,rowGrouping:hn,rowIndexMap:St,rows:Ut,rowsPerPage:gn,serverSidePagination:Rn,setCollapsedRows:Pr,setColumnEditorOpen:dr,setCurrentPage:Xt,setExpandedDepths:Mr,setExpandedRows:Er,setHeaders:Ur,setRows:vt,shouldPaginate:Mn,sort:to,tableRef:Tn,totalRowCount:Fn,updateFilter:$r,updateSort:ro,visibleRows:go}),function(e){var n=e.filters,t=e.onFilterChange;o(function(){null==t||t(n)},[n,t])}({filters:Xr,onFilterChange:Ze}),function(e){var n=e.sort,t=e.onSortChange,r=_e(n);o(function(){!n||(null==r?void 0:r.key.accessor)===n.key.accessor&&(null==r?void 0:r.direction)===n.direction?!n&&r&&(null==t||t(null)):null==t||t(n)},[n,r,t])}({sort:to,onSortChange:sn});var Yo=l(function(e){bo(e),setTimeout(function(){$r(e)},0)},[bo,$r]),Xo=!pt&&0===mo.length;return e(de,x({value:{activeHeaderDropdown:ur,allowAnimations:c,areAllRowsSelected:kt,autoExpandColumns:d,canExpandRowGroup:f,cellRegistry:No.current,cellUpdateFlash:h,clearSelection:qt,collapsedHeaders:hr,columnBorders:m,columnEditorConfig:jn,columnReordering:E,columnResizing:T,containerWidth:Or,columnsWithSelectedCells:Vo,copyHeadersToClipboard:D,draggedHeaderRef:Yn,editColumns:B,emptyStateRenderer:_,essentialAccessors:mr,enableHeaderEditing:$,enableRowSelection:Z,errorStateRenderer:te,expandedDepths:Sr,filters:Xr,icons:Gn,forceUpdate:tt,getBorderClass:ko,handleApplyFilter:Yo,handleClearAllFilters:Zr,handleClearFilter:Qr,handleMouseDown:To,handleMouseOver:Po,handleRowSelect:Ot,handleSelectAll:Wt,handleToggleRow:zt,headerContainerRef:nt,headerDropdown:Me,headerHeight:Un,headerRegistry:Ho.current,headers:wr,heightOffsets:So,hoveredHeaderRef:Xn,includeHeadersInCSVExport:Fe,isAnimating:yo,isCopyFlashing:Ao,isInitialFocusedCell:Do,isLoading:pt,isResizing:nr,isRowSelected:Et,isScrolling:or,isSelected:Fo,isWarningFlashing:Lo,loadingStateRenderer:qe,mainBodyRef:$n,maxHeaderDepth:Br,onCellClick:je,onCellEdit:Ke,onColumnOrderChange:Ue,onColumnSelect:Ye,onColumnVisibilityChange:Xe,onColumnWidthChange:Qe,onHeaderEdit:tn,onLoadMore:on,onRowGroupExpand:ln,onSort:Uo,onTableHeaderDragEnd:_o,resetColumns:Jo,pinnedLeftRef:Qn,pinnedRightRef:Zn,rowButtons:vn,rowGrouping:hn,rowHeight:Kn,rowStateMap:at,rows:ft,rowsWithSelectedCells:jo,scrollbarWidth:Vt,selectColumns:Oo,selectableColumns:In,selectedColumns:Bo,selectedRowCount:Ft,selectedRows:Nt,selectedRowsData:Lt,setActiveHeaderDropdown:lr,setCollapsedHeaders:pr,setHeaders:Ur,setInitialFocusedCell:zo,setIsResizing:tr,setIsScrolling:ir,setRowStateMap:st,setSelectedCells:qo,setSelectedColumns:Go,setSelectedRows:Ht,setExpandedDepths:Mr,setExpandedRows:Er,setCollapsedRows:Pr,shouldPaginate:Mn,tableBodyContainerRef:et,tableEmptyStateRenderer:kn,tableRows:mo,theme:Dn,customTheme:Vn,expandedRows:Hr,collapsedRows:Tr,useHoverRowBackground:On,useOddColumnBackground:Bn,useOddEvenRowBackground:qn}},{children:t("div",x({className:"simple-table-root st-wrapper theme-".concat(Dn," ").concat(null!=p?p:""," ").concat(m?"st-column-borders":""),role:"grid",style:Ge?{maxHeight:Ge,height:void 0===po?"auto":Ge}:He?{height:He}:{}},{children:[e(bt,{children:t("div",x({className:"st-wrapper-container"},{children:[t("div",x({className:"st-content-wrapper"},{children:[e(ot,{calculatedHeaderHeight:Wr,hideHeader:Pe,pinnedLeftWidth:Gr,pinnedRightWidth:Vr,setScrollTop:xr,setScrollDirection:Cr,shouldShowEmptyState:Xo,sort:to,tableRows:mo,rowsToRender:go,stickyParents:Io,regularRows:Co,partiallyVisibleRows:Ro,heightMap:Mo}),e(gt,{columnEditorConfig:jn,editColumns:B,headers:Qt,open:sr,setOpen:dr})]})),!Xo&&e(it,{mainBodyRef:$n,mainBodyWidth:qr,pinnedLeftWidth:Gr,pinnedRightWidth:Vr,pinnedLeftContentWidth:jr,pinnedRightContentWidth:Kr,tableBodyContainerRef:et}),!Xo&&e(ve,{currentPage:Yt,footerRenderer:Ce,hideFooter:ke,onPageChange:Xt,onNextPage:an,onUserPageChange:un,rowsPerPage:gn,shouldPaginate:Mn,totalPages:Math.ceil((null!=Fn?Fn:lo.length)/gn),totalRows:null!=Fn?Fn:lo.length})]}))}),e("div",x({"aria-live":"polite","aria-atomic":"true",className:"st-sr-only"},{children:Dr}))]}))}))},Gt=function(n){var r=n.data,o=n.width,i=void 0===o?"100%":o,a=n.height,u=void 0===a?30:a,l=n.color,c=n.fillColor,s=n.fillOpacity,d=void 0===s?.25:s,f=n.strokeWidth,v=void 0===f?1.5:f,h=n.className,p=void 0===h?"":h,w=n.min,m=n.max;if(!r||0===r.length)return null;var g=void 0!==w?w:Math.min.apply(Math,r),b=(void 0!==m?m:Math.max.apply(Math,r))-g||1,y=u,I=r.map(function(e,n){return{x:n/(r.length-1)*100,y:y-(e-g)/b*y}}).map(function(e,n){return"".concat(0===n?"M":"L"," ").concat(e.x,",").concat(e.y)}).join(" "),C="\n ".concat(I,"\n L ").concat(100,",").concat(y,"\n L 0,").concat(y,"\n Z\n ");return t("svg",x({width:i,height:u,viewBox:"0 0 100 ".concat(y),preserveAspectRatio:"none",className:"st-line-area-chart ".concat(p),style:{display:"block"},shapeRendering:"geometricPrecision"},{children:[e("path",{d:C,fill:c||"var(--st-chart-fill-color)",fillOpacity:d,stroke:"none"}),e("path",{d:I,fill:"none",stroke:l||"var(--st-chart-color)",strokeWidth:v,strokeLinecap:"round",strokeLinejoin:"round"})]}))},Vt=Object.freeze({__proto__:null,default:Gt}),jt=function(n){var t=n.data,r=n.width,o=void 0===r?"100%":r,i=n.height,a=void 0===i?30:i,u=n.color,l=n.gap,c=void 0===l?2:l,s=n.className,d=void 0===s?"":s,f=n.min,v=n.max;if(!t||0===t.length)return null;var h=void 0!==f?f:Math.min.apply(Math,t),p=void 0!==v?v:Math.max.apply(Math,t),w=p-h||1,m=a,g=(100-c*(t.length-1))/t.length,b=0>h,y=b?m*(p/w):m;return e("svg",x({width:o,height:a,viewBox:"0 0 100 ".concat(m),preserveAspectRatio:"none",className:"st-bar-chart ".concat(d),style:{display:"block"},shapeRendering:"crispEdges"},{children:t.map(function(n,t){var r=t*(g+c),o=(n-h)/w*m,i=m-o,a=o;return b&&(0>n?(a=Math.abs(n)/w*m,i=y):i=y-(a=n/w*m)),e("rect",{x:r,y:i,width:g,height:a,fill:u||"var(--st-chart-color)",rx:.5},t)})}))},Kt=Object.freeze({__proto__:null,default:jt});export{Mt as A,jt as B,be as C,xe as D,Ie as F,Gt as L,S as R,zt as S,y as _,_e as a,x as b,M as c,kt as d,he as e,Et as f,pe as g,we as h,me as i,ge as j,ye as k,Ce as l,fe as u};
|
|
2
|
+
//# sourceMappingURL=index-7f257ce7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-7f257ce7.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ import { CustomTheme } from "./types/CustomTheme";
|
|
|
37
37
|
import { ColumnEditorConfig, ColumnEditorCustomRenderer, ColumnEditorCustomRendererProps, ColumnEditorSearchFunction } from "./types/ColumnEditorConfig";
|
|
38
38
|
import { IconsConfig } from "./types/IconsConfig";
|
|
39
39
|
import { GetRowId, GetRowIdParams } from "./types/GetRowId";
|
|
40
|
-
import
|
|
40
|
+
import { PinnedSectionsState } from "./utils/pinnedColumnUtils";
|
|
41
41
|
export { SimpleTable, LineAreaChart, BarChart };
|
|
42
42
|
export * from "./icons";
|
|
43
43
|
export type { Accessor, AggregationConfig, AggregationType, BoundingBox, Cell, CellChangeProps, CellClickProps, CellRenderer, CellRendererProps, CellValue, ChartOptions, ColumnEditorConfig, ColumnEditorCustomRenderer, ColumnEditorCustomRendererProps, ColumnEditorPinControl, ColumnEditorRowRenderer, ColumnEditorRowRendererComponents, ColumnEditorRowRendererProps, ColumnEditorSearchFunction, ColumnType, ColumnVisibilityState, Comparator, ComparatorProps, CustomTheme, DragHandlerProps, EmptyStateRenderer, EmptyStateRendererProps, EnumOption, ErrorStateRenderer, ErrorStateRendererProps, ExportToCSVProps, ExportValueGetter, ExportValueProps, FilterCondition, FooterRendererProps, GetRowId, GetRowIdParams, IconsConfig, LoadingStateRenderer, LoadingStateRendererProps, HeaderDropdown, HeaderDropdownProps, HeaderObject, HeaderRenderer, HeaderRendererProps, HeaderRendererComponents, OnRowGroupExpandProps, OnSortProps, PanelSection, PinnedSectionsState, QuickFilterConfig, QuickFilterGetter, QuickFilterGetterProps, QuickFilterMode, Row, RowButtonProps, RowSelectionChangeProps, RowState, SetHeaderRenameProps, SharedTableProps, ShowWhen, SortColumn, TableCellProps, TableFilterState, TableHeaderProps, TableRefType, TableRowProps, Theme, UpdateDataProps, ValueFormatter, ValueFormatterProps, ValueGetter, ValueGetterProps, };
|
package/dist/index.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{e as AngleDownIcon,g as AngleLeftIcon,h as AngleRightIcon,i as AngleUpIcon,j as AscIcon,B as BarChart,C as CheckIcon,D as DescIcon,k as DragIcon,F as FilterIcon,L as LineAreaChart,l as SelectIcon,S as SimpleTable}from"./index-
|
|
1
|
+
export{e as AngleDownIcon,g as AngleLeftIcon,h as AngleRightIcon,i as AngleUpIcon,j as AscIcon,B as BarChart,C as CheckIcon,D as DescIcon,k as DragIcon,F as FilterIcon,L as LineAreaChart,l as SelectIcon,S as SimpleTable}from"./index-7f257ce7.js";import"react/jsx-runtime";import"react";
|
|
2
2
|
//# sourceMappingURL=index.es.js.map
|
|
@@ -8,10 +8,10 @@ export type HandleResizeStartProps = {
|
|
|
8
8
|
forceUpdate: () => void;
|
|
9
9
|
header: HeaderObject;
|
|
10
10
|
headers: HeaderObject[];
|
|
11
|
-
mainBodyRef: RefObject<HTMLDivElement>;
|
|
11
|
+
mainBodyRef: RefObject<HTMLDivElement | null>;
|
|
12
12
|
onColumnWidthChange?: (headers: HeaderObject[]) => void;
|
|
13
|
-
pinnedLeftRef: RefObject<HTMLDivElement>;
|
|
14
|
-
pinnedRightRef: RefObject<HTMLDivElement>;
|
|
13
|
+
pinnedLeftRef: RefObject<HTMLDivElement | null>;
|
|
14
|
+
pinnedRightRef: RefObject<HTMLDivElement | null>;
|
|
15
15
|
reverse: boolean;
|
|
16
16
|
setHeaders: Dispatch<SetStateAction<HeaderObject[]>>;
|
|
17
17
|
setIsResizing: Dispatch<SetStateAction<boolean>>;
|
|
@@ -3,7 +3,7 @@ import SortColumn from "./SortColumn";
|
|
|
3
3
|
import HeaderObject from "./HeaderObject";
|
|
4
4
|
type TableHeaderProps = {
|
|
5
5
|
calculatedHeaderHeight: number;
|
|
6
|
-
centerHeaderRef: RefObject<HTMLDivElement>;
|
|
6
|
+
centerHeaderRef: RefObject<HTMLDivElement | null>;
|
|
7
7
|
headers: HeaderObject[];
|
|
8
8
|
mainTemplateColumns: string;
|
|
9
9
|
pinnedLeftColumns: HeaderObject[];
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Animate-75dcc59a.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker-62e4596e.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Animate-0b068c5c.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker-1081d935.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|