Socket
Socket
Sign inDemoInstall

ag-grid-react

Package Overview
Dependencies
9
Maintainers
4
Versions
128
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 29.3.2 to 29.3.3

2

bundles/ag-grid-react.amd.min.js

@@ -1,1 +0,1 @@

define(["exports","prop-types","react-dom/server","react-dom","react","agGrid"],function(e,t,w,r,oe,ae){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var n="default"in r?r.default:r,se="default"in oe?oe.default:oe,M=function(e,t){return(M=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}))(e,t)};function o(e,t){function n(){this.constructor=e}M(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ie=function(){return(ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function D(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],s=0,i=a.length;s<i;s++,o++)r[o]=a[s];return r}o(s,O=function(){}),s.prototype.getGui=function(){return this.eParentElement},s.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},s.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),t=document.createElement(t||"div");return t.classList.add("ag-react-container"),e.reactContainer=t},s.prototype.addParentContainerStyleAndClasses=function(){var t=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses)&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach(function(e){return t.eParentElement.classList.add(e)})},s.prototype.statelessComponentRendered=function(){return 0<this.eParentElement.childElementCount||0<this.eParentElement.childNodes.length},s.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},s.prototype.isStatelessComponent=function(){return this.statelessComponent},s.prototype.getReactComponentName=function(){return this.reactComponent.name},s.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},s.prototype.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},s.prototype.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===this.getMemoType()},s.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},s.prototype.callMethod=function(e,t){var n,r=this,o=this.getFrameworkComponentInstance();return this.isStatelessComponent()?this.fallbackMethod(e,t&&t[0]?t[0]:{}):o?(n=o[e])?n.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0:void setTimeout(function(){return r.callMethod(e,t)})},s.prototype.addMethod=function(e,t){this[e]=t};var O,a=s;function s(e,t,n){var r=O.call(this)||this;return r.portal=null,r.reactComponent=e,r.portalManager=t,r.componentType=n,r.statelessComponent=r.isStateless(r.reactComponent),r}var T=0;function i(){return"agPortalKey_"+ ++T}o(u,I=a),u.prototype.init=function(t){var n=this;return this.eParentElement=this.createParentElement(t),this.renderStaticMarkup(t),new ae.AgPromise(function(e){return n.createReactComponent(t,e)})},u.prototype.createReactComponent=function(e,t){var n=this,e=(this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()}),oe.createElement(this.reactComponent,e)),e=r.createPortal(e,this.eParentElement,i());this.portal=e,this.portalManager.mountReactPortal(e,this,function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout(function(){n.removeStaticMarkup()}))})},u.prototype.fallbackMethodAvailable=function(e){return!1},u.prototype.fallbackMethod=function(e,t){},u.prototype.isSlowRenderer=function(){return this.staticRenderTime>=u.SLOW_RENDERING_THRESHOLD},u.prototype.isNullValue=function(){return""===this.staticMarkup},u.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,e=oe.createElement(this.reactComponent,e);try{console.error=function(){};var n=Date.now(),r=w.renderToStaticMarkup(e);this.staticRenderTime=Date.now()-n,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}finally{console.error=t}}},u.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},u.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},u.SLOW_RENDERING_THRESHOLD=3;var I,A=u;function u(e,t,n,r){e=I.call(this,e,n,r)||this;return e.staticMarkup=null,e.staticRenderTime=0,e.parentComponent=t,e}o(c,N=a),c.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new ae.AgPromise(function(e){return t.createReactComponent(e)})},c.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=oe.createElement(this.reactComponent,ie(ie({},e),{key:this.key})),this.portal=r.createPortal(this.reactElement,this.eParentElement,this.portalKey)},c.prototype.createReactComponent=function(t){this.portalManager.mountReactPortal(this.portal,this,function(e){t(e)})},c.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},c.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},c.prototype.valueRenderedIsNull=function(e){if(this.componentType.cellRenderer){var t=console.error;try{return console.error=function(){},""===w.renderToStaticMarkup(oe.createElement(this.reactComponent,e))}catch(e){}finally{console.error=t}}return!1},c.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},c.prototype.fallbackMethod=function(e,t){e=this[e+"Component"];if(e)return e.bind(this)(t)},c.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]};var N,k=c;function c(e,t,n){e=N.call(this,e,t,n)||this;return e.oldPortal=null,e.key=i(),e.portalKey=i(),e}l.prototype.getPortals=function(){return this.portals},l.prototype.destroy=function(){this.destroyed=!0},l.prototype.destroyPortal=function(t){this.portals=this.portals.filter(function(e){return e!==t}),this.batchUpdate()},l.prototype.getComponentWrappingElement=function(){return this.wrappingElement},l.prototype.mountReactPortal=function(e,t,n){this.portals=D(this.portals,[e]),this.waitForInstance(t,n),this.batchUpdate()},l.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},l.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout(function(){e.destroyed||e.parent.forceUpdate(function(){e.hasPendingPortalUpdate=!1})}),this.hasPendingPortalUpdate=!0)},l.prototype.waitForInstance=function(e,t,n){var r=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout(function(){r.waitForInstance(e,t,n)})}},l.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3;var G=l;function l(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.parent=e,this.maxComponentCreationTimeMs=n||l.MAX_COMPONENT_CREATION_TIME_IN_MS}function _(e,t,n,r){var o=!e||e.componentFromFramework;if(!o){var a,s,i,o=e.newAgStackInstance();if(o)return i=!1,o.then(function(e){i?t.destroyBean(e):(s=(a=e).getGui(),n.appendChild(s),F(r,a))}),function(){i=!0,a&&(s&&s.parentElement&&s.parentElement.removeChild(s),t.destroyBean(a),r)&&F(r,void 0)}}}function F(e,t){e&&(e instanceof Function?e(t):e.current=t)}function ue(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useLayoutEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])}function Y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")}var ce=se.createContext({}),pe=function(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])},b=(p.prototype.setClass=function(e,t){var n;return!!this.classesMap[e]==t?this:((n=new p).classesMap=ie({},this.classesMap),n.classesMap[e]=t,n)},p.prototype.toString=function(){var t=this;return Object.keys(this.classesMap).filter(function(e){return t.classesMap[e]}).join(" ")},p);function p(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.classesMap={},e.forEach(function(e){t.classesMap[e]=!0})}function le(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===("function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)}function B(e){x?n.flushSync(e):e()}function z(r,o){pe(function(){var e,t=o.current,n=t.parentElement;if(n)return e=document.createComment(r),n.insertBefore(e,t),function(){n.removeChild(e)}})}var x=null!=n.createRoot&&null!=n.flushSync,P=oe.forwardRef(function(n,e){var r=oe.useContext(ce).context,o=oe.useRef(null),t=oe.useRef(null),a=oe.useRef(null),s=oe.useRef(null),i=oe.useRef(null),u=oe.useState(),c=u[0],l=u[1],u=oe.useState(),p=u[0],f=u[1],u=oe.useState(),m=u[0],d=u[1],u=oe.useState(new b),h=u[0],C=u[1],u=oe.useState(new b("ag-hidden")),g=u[0],y=u[1],u=oe.useState(new b("ag-hidden")),R=u[0],E=u[1],u=oe.useState(new b("ag-invisible")),v=u[0],S=u[1],u=(oe.useImperativeHandle(e,function(){return{refresh:function(){return!1}}}),oe.useLayoutEffect(function(){return _(c,r,t.current)},[c]),ue(function(){var e={setInnerRenderer:function(e,t){l(e),d(t)},setChildCount:function(e){return f(e)},addOrRemoveCssClass:function(t,n){return C(function(e){return e.setClass(t,n)})},setContractedDisplayed:function(t){return E(function(e){return e.setClass("ag-hidden",!t)})},setExpandedDisplayed:function(t){return y(function(e){return e.setClass("ag-hidden",!t)})},setCheckboxVisible:function(t){return S(function(e){return e.setClass("ag-invisible",!t)})}},t=r.createBean(new ae.GroupCellRendererCtrl);return t.init(e,o.current,a.current,s.current,i.current,P,n),function(){r.destroyBean(t)}}),oe.useMemo(function(){return"ag-cell-wrapper "+h.toString()},[h])),e=oe.useMemo(function(){return"ag-group-expanded "+g.toString()},[g]),w=oe.useMemo(function(){return"ag-group-contracted "+R.toString()},[R]),M=oe.useMemo(function(){return"ag-group-checkbox "+v.toString()},[v]),O=c&&c.componentFromFramework,T=O?c.componentClass:void 0,I=null==c&&null!=m,m=ae._.escapeString(m,!0);return se.createElement("span",ie({className:u,ref:o},n.colDef?{}:{role:"gridcell"}),se.createElement("span",{className:e,ref:s}),se.createElement("span",{className:w,ref:i}),se.createElement("span",{className:M,ref:a}),se.createElement("span",{className:"ag-group-value",ref:t},I&&se.createElement(se.Fragment,null,m),O&&se.createElement(T,ie({},c.params))),se.createElement("span",{className:"ag-group-child-count"},p))}),L=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(),r=n[0],o=n[1],n=oe.useState(),a=n[0],s=n[1],n=oe.useState(),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],m=oe.useRef(null),d=oe.useRef(null),h=oe.useRef(null),C=oe.useRef(),g=e.ctrl,y=oe.useMemo(function(){return new ae.CssClassManager(function(){return m.current})},[]),n=(ue(function(){g.setComp({setWidth:function(e){return m.current.style.width=e},addOrRemoveCssClass:function(e,t){return y.addOrRemoveCssClass(e,t)},setColId:function(e){return s(e)},setTitle:function(e){return o(e)},setAriaDescription:function(e){return l(e)},setAriaSort:function(e){return u(e)},setUserCompDetails:function(e){return f(e)},getUserCompInstance:function(){return C.current||void 0}},m.current,d.current,h.current);var e=g.getSelectAllGui();d.current.insertAdjacentElement("afterend",e)}),oe.useLayoutEffect(function(){return _(p,t,h.current,C)},[p]),oe.useEffect(function(){g.setDragSource(m.current)},[p]),oe.useMemo(function(){return!!((null==p?void 0:p.componentFromFramework)&&le(p.componentClass))},[p])),e=p&&p.componentFromFramework,R=p&&p.componentClass;return se.createElement("div",{ref:m,className:"ag-header-cell",title:r,"col-id":a,"aria-sort":i,role:"columnheader",tabIndex:-1,"aria-description":c},se.createElement("div",{ref:d,className:"ag-header-cell-resize",role:"presentation"}),se.createElement("div",{ref:h,className:"ag-header-cell-comp-wrapper",role:"presentation"},e&&n&&se.createElement(R,ie({},p.params)),e&&!n&&se.createElement(R,ie({},p.params,{ref:C}))))}),U=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(new b),r=n[0],o=n[1],n=oe.useState(new b),a=n[0],s=n[1],n=oe.useState("false"),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],n=oe.useState(),m=n[0],d=n[1],n=oe.useState(),h=n[0],C=n[1],g=oe.useRef(null),y=oe.useRef(null),R=e.ctrl,n=(ue(function(){R.setComp({setWidth:function(e){return g.current.style.width=e},addOrRemoveCssClass:function(t,n){return o(function(e){return e.setClass(t,n)})},setColId:function(e){return f(e)},setTitle:function(e){return l(e)},setUserCompDetails:function(e){return C(e)},setResizableDisplayed:function(t){s(function(e){return e.setClass("ag-hidden",!t)}),u(t?"false":"true")},setAriaExpanded:function(e){return d(e)}},g.current,y.current)}),oe.useLayoutEffect(function(){return _(h,t,g.current)},[h]),oe.useEffect(function(){var t=void 0;g.current.childNodes.forEach(function(e){null!=e&&e!==y.current&&(t=e)}),t&&R.setDragSource(t)},[h]),oe.useMemo(function(){return"ag-header-group-cell "+r.toString()},[r])),e=oe.useMemo(function(){return"ag-header-cell-resize "+a.toString()},[a]),E=h&&h.componentFromFramework,v=h&&h.componentClass;return se.createElement("div",{ref:g,className:n,title:c,"col-id":p,role:"columnheader",tabIndex:-1,"aria-expanded":m},E&&se.createElement(v,ie({},h.params)),se.createElement("div",{ref:y,"aria-hidden":i,className:e}))}),H=oe.memo(function(e){function t(e){g.current||null!=e&&(y.current&&y.current(e),g.current=!0)}var n=oe.useContext(ce).context,r=oe.useState(new b("ag-header-cell","ag-floating-filter")),o=r[0],a=r[1],r=oe.useState(new b),s=r[0],i=r[1],r=oe.useState(new b("ag-floating-filter-button","ag-hidden")),u=r[0],c=r[1],r=oe.useState("false"),l=r[0],p=r[1],r=oe.useState(),f=r[0],m=r[1],d=oe.useRef(null),h=oe.useRef(null),r=oe.useRef(null),C=oe.useRef(null),g=oe.useRef(!1),y=oe.useRef(),R=oe.useRef(),E=(ue(function(){R.current=new ae.AgPromise(function(e){y.current=e})}),e.ctrl),e=(ue(function(){E.setComp({addOrRemoveCssClass:function(t,n){return a(function(e){return e.setClass(t,n)})},addOrRemoveBodyCssClass:function(t,n){return i(function(e){return e.setClass(t,n)})},setButtonWrapperDisplayed:function(t){c(function(e){return e.setClass("ag-hidden",!t)}),p(t?"false":"true")},setWidth:function(e){return d.current.style.width=e},setCompDetails:function(e){return m(e)},getFloatingFilterComp:function(){return R.current||null},setMenuIcon:function(e){return C.current.appendChild(e)}},d.current,C.current,h.current)}),oe.useLayoutEffect(function(){return _(f,n,h.current,t)},[f]),oe.useMemo(function(){return o.toString()},[o])),v=oe.useMemo(function(){return s.toString()},[s]),S=oe.useMemo(function(){return u.toString()},[u]),w=oe.useMemo(function(){return!!(f&&f.componentFromFramework&&le(f.componentClass))},[f]),M=f&&f.componentFromFramework,O=f&&f.componentClass;return se.createElement("div",{ref:d,className:e,role:"gridcell",tabIndex:-1},se.createElement("div",{ref:h,className:v,role:"presentation"},M&&w&&se.createElement(O,ie({},f.params)),M&&!w&&se.createElement(O,ie({},f.params,{ref:t}))),se.createElement("div",{ref:r,"aria-hidden":l,className:S,role:"presentation"},se.createElement("button",{ref:C,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}),W=oe.memo(function(e){var s=oe.useContext(ce).gridOptionsService,t=oe.useState(),n=t[0],r=t[1],t=oe.useState(),o=t[0],a=t[1],t=oe.useState(),i=t[0],u=t[1],t=oe.useState(),c=t[0],l=t[1],t=oe.useState([]),p=t[0],f=t[1],m=oe.useRef(null),d=e.ctrl,h=d.getType()===ae.HeaderRowType.COLUMN,C=d.getType()===ae.HeaderRowType.COLUMN_GROUP,g=d.getType()===ae.HeaderRowType.FLOATING_FILTER,y=oe.useCallback(function(e,t){var n,r,o=s.is("ensureDomOrder"),a=s.isDomLayout("print");return o||a?t:(n=ae._.mapById(e,function(e){return e.getInstanceId()}),r=ae._.mapById(t,function(e){return e.getInstanceId()}),D(e.filter(function(e){return r.has(e.getInstanceId())}),t.filter(function(e){return!n.has(e.getInstanceId())})))},[]),t=(ue(function(){d.setComp({setTransform:function(e){return r(e)},setHeight:function(e){return a(e)},setTop:function(e){return u(e)},setHeaderCtrls:function(t){return f(function(e){return y(e,t)})},setWidth:function(e){return m.current.style.width=e},setAriaRowIndex:function(e){return l(e)}})}),oe.useMemo(function(){return{transform:n,height:o,top:i}},[n,o,i])),e=oe.useMemo(function(){var e=["ag-header-row"];return h&&e.push("ag-header-row-column"),C&&e.push("ag-header-row-column-group"),g&&e.push("ag-header-row-column-filter"),e.join(" ")},[]),R=oe.useCallback(function(e){switch(d.getType()){case ae.HeaderRowType.COLUMN_GROUP:return se.createElement(U,{ctrl:e,key:e.getInstanceId()});case ae.HeaderRowType.FLOATING_FILTER:return se.createElement(H,{ctrl:e,key:e.getInstanceId()});default:return se.createElement(L,{ctrl:e,key:e.getInstanceId()})}},[]);return se.createElement("div",{ref:m,className:e,role:"row",style:t,"aria-rowindex":c},p.map(R))}),f=oe.memo(function(n){function e(){return i.map(function(e){return se.createElement(W,{ctrl:e,key:e.getInstanceId()})})}var t=oe.useState(new b),r=t[0],o=t[1],t=oe.useState(!1),a=t[0],s=t[1],t=oe.useState([]),i=t[0],u=t[1],c=oe.useContext(ce).context,l=oe.useRef(null),p=oe.useRef(null),t="left"===n.pinned,f="right"===n.pinned,m=!t&&!f,d=(ue(function(){var e={setDisplayed:function(t){o(function(e){return e.setClass("ag-hidden",!t)}),s(!t)},setCtrls:function(e){return u(e)},setCenterWidth:function(e){p.current&&(p.current.style.width=e)},setViewportScrollLeft:function(e){l.current&&(l.current.scrollLeft=e)},setPinnedContainerWidth:function(e){l.current.style.width=e,l.current.style.minWidth=e,l.current.style.maxWidth=e}},t=c.createBean(new ae.HeaderRowContainerCtrl(n.pinned));return t.setComp(e,l.current),function(){c.destroyBean(t)}}),oe.useMemo(function(){return r.toString()},[r]));return se.createElement(se.Fragment,null,t&&se.createElement("div",{ref:l,className:"ag-pinned-left-header "+d,"aria-hidden":a,role:"presentation"},e()),f&&se.createElement("div",{ref:l,className:"ag-pinned-right-header "+d,"aria-hidden":a,role:"presentation"},e()),m&&se.createElement("div",{ref:l,className:"ag-header-viewport "+d,role:"presentation"},se.createElement("div",{ref:p,className:"ag-header-container",role:"rowgroup"},e())))}),q=oe.memo(function(){var e=oe.useState(new b),t=e[0],r=e[1],e=oe.useState(),n=e[0],o=e[1],a=oe.useContext(ce).context,s=oe.useRef(null),e=(ue(function(){var e={addOrRemoveCssClass:function(t,n){return r(function(e){return e.setClass(t,n)})},setHeightAndMinHeight:function(e){return o(e)}},t=a.createBean(new ae.GridHeaderCtrl);return t.setComp(e,s.current,s.current),function(){a.destroyBean(t)}}),oe.useMemo(function(){return"ag-header "+t.toString()},[t])),i=oe.useMemo(function(){return{height:n,minHeight:n}},[n]);return se.createElement("div",{ref:s,className:e,style:i,role:"presentation"},se.createElement(f,{pinned:"left"}),se.createElement(f,{pinned:null}),se.createElement(f,{pinned:"right"}))}),fe=oe.memo(function(u){var e=oe.useState(),t=e[0],c=e[1],e=oe.useContext(ce),l=e.context,p=e.popupService,f=e.localeService,m=e.gridOptionsService;return ue(function(){var e=u.editDetails,t=u.cellCtrl,n=u.eParentCell,r=e.compDetails,o=m.is("stopEditingWhenCellsLoseFocus"),a=l.createBean(new ae.PopupEditorWrapper(r.params)),r=a.getGui(),s=(u.jsChildComp&&(s=u.jsChildComp.getGui())&&r.appendChild(s),{column:t.getColumn(),rowNode:t.getRowNode(),type:"popupCellEditor",eventSource:n,ePopup:r,position:e.popupPosition,keepWithinBounds:!0}),e=p.positionPopupByComponent.bind(p,s),s=f.getLocaleTextFunc(),o=p.addPopup({modal:o,eChild:r,closeOnEsc:!0,closedCallback:function(){t.onPopupEditorClosed()},anchorToElement:n,positionCallback:e,ariaLabel:s("ariaLabelCellEditor","Cell Editor")}),i=o?o.hideFunc:void 0;return c(a),u.jsChildComp&&u.jsChildComp.afterGuiAttached&&u.jsChildComp.afterGuiAttached(),function(){null!=i&&i(),l.destroyBean(a)}}),se.createElement(se.Fragment,null,t&&u.wrappedContent&&r.createPortal(u.wrappedContent,t.getGui()))}),j=oe.memo(function(e){function t(){return se.createElement(se.Fragment,null,null!=E&&(i=S,u=re,c=O,l=k,p=ne,f=Q,m=(s=E).compDetails,s=s.value,d=!m,h=m&&m.componentFromFramework,C=m&&m.componentClass,g=null!=s&&s.toString?s.toString():s,se.createElement(se.Fragment,null,l?se.createElement("span",{role:"presentation",id:"cell-"+u,className:"ag-cell-value",ref:f},y()):y())),null!=v&&(s=v,l=te,u=ee,f=M.current,e=R,t=$,n=s.compDetails,r=n.componentClass,o=n.componentFromFramework&&!s.popup,a=n.componentFromFramework&&s.popup,n=!n.componentFromFramework&&s.popup,se.createElement(se.Fragment,null,o&&se.createElement(r,ie({},s.compDetails.params,{ref:l})),a&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,wrappedContent:se.createElement(r,ie({},s.compDetails.params,{ref:u}))}),n&&t&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,jsChildComp:t}))));var e,t,n,r,o,a,s,i,u,c,l,p,f,m,d,h,C,g;function y(){return se.createElement(se.Fragment,null,d&&se.createElement(se.Fragment,null,g),h&&!p&&se.createElement(C,ie({},m.params,{key:i,ref:c})),h&&p&&se.createElement(C,ie({},m.params,{key:i})))}}var n,r,o,a,s,i,u,c=oe.useContext(ce).context,R=e.cellCtrl,l=e.printLayout,p=e.editingRow,e=oe.useState(),E=e[0],f=e[1],e=oe.useState(),v=e[0],m=e[1],e=oe.useState(1),S=e[0],d=e[1],e=oe.useState(),_=e[0],B=e[1],e=oe.useState(),x=e[0],L=e[1],e=oe.useState(),U=e[0],H=e[1],e=oe.useState(),W=e[0],j=e[1],e=oe.useState(),V=e[0],K=e[1],e=oe.useState(!1),h=e[0],Y=e[1],e=oe.useState(!1),C=e[0],z=e[1],e=oe.useState(!1),g=e[0],q=e[1],e=oe.useState(),$=e[0],y=e[1],w=oe.useMemo(function(){return R.isForceWrapper()},[]),M=oe.useRef(null),O=oe.useRef(null),T=oe.useRef(),I=oe.useRef(),b=oe.useRef(),e=oe.useState(0),X=e[0],Z=e[1],e=oe.useCallback(function(e){b.current=e,Z(function(e){return e+1})},[]),P=oe.useRef(),A=oe.useState(0),N=A[0],J=A[1],Q=oe.useCallback(function(e){P.current=e,J(function(e){return e+1})},[]),k=w||null!=E&&(h||g||C),G=oe.useCallback(function(e,t){var n,r,o,a,s;(I.current=t)&&(e=e,n=t,s=(r=R).getColumn(),!e&&n.isPopup&&n.isPopup()&&(o="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(o)},"jsEditorComp-isPopup-"+r.getColumn().getColId())),e&&n.getPopupPosition&&null!=n.getPopupPosition()&&(a="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(a)},"jsEditorComp-getPopupPosition-"+r.getColumn().getColId())),t.isCancelBeforeStart)&&t.isCancelBeforeStart()&&setTimeout(function(){R.stopEditing(!0),R.focusCell(!0)})},[]),ee=oe.useCallback(function(e){return G(!0,e)},[]),te=oe.useCallback(function(e){return G(!1,e)},[]),F=oe.useMemo(function(){return new ae.CssClassManager(function(){return M.current})},[]),D=(n=E,r=k,o=P.current,A=N,a=T,s=M,N=oe.useContext(ce),i=N.context,N.userComponentFactory,u=oe.useCallback(function(){var e,t=a.current;t&&((e=t.getGui())&&e.parentElement&&e.parentElement.removeChild(e),i.destroyBean(t),a.current=void 0)},[]),oe.useEffect(function(){var e=n&&n.compDetails&&!n.compDetails.componentFromFramework;if(null!=n&&e&&!(r&&null==o)){e=n.compDetails;if(a.current){var t=a.current,t=null!=t.refresh&&0==n.force&&t.refresh(e.params);if(!0===t||void 0===t)return;u()}t=e.newAgStackInstance();t&&(e=t.resolveNow(null,function(e){return e}))&&(t=e.getGui())&&((r?o:s.current).appendChild(t),a.current=e)}else u()},[n,r,A]),pe(function(){return u}),oe.useRef()),ne=(oe.useLayoutEffect(function(){var e=D.current,t=E;D.current=E,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails&&(e=e.compDetails,t=t.compDetails,e.componentClass==t.componentClass)&&null!=O.current&&null!=O.current.refresh&&1!=O.current.refresh(t.params)&&d(function(e){return e+1})},[E]),oe.useLayoutEffect(function(){if(v&&!v.compDetails.componentFromFramework){var e,t=v.compDetails,n=!0===v.popup,r=function(e){e=e.newAgStackInstance();if(e)return e.resolveNow(null,function(e){return e})}(t);if(r)return e=r.getGui(),G(n,r),n||(null!=(t=(w?b:M).current)&&t.appendChild(e),r.afterGuiAttached&&r.afterGuiAttached()),y(r),function(){c.destroyBean(r),G(n,void 0),y(void 0),e&&e.parentElement&&e.parentElement.removeChild(e)}}},[v]),oe.useLayoutEffect(function(){var n,e;if(R&&c&&(b.current&&k))return n=[],e=function(e){var t;return e&&(t=e.getGui(),b.current.insertAdjacentElement("afterbegin",t),n.push(function(){c.destroyBean(e),ae._.removeFromParent(t)})),e},h&&e(R.createSelectionCheckbox()),g&&e(R.createDndSource()),C&&e(R.createRowDragComp()),function(){return n.forEach(function(e){return e()})}},[k,g,C,h,X]),ue(function(){var e;R&&(e=b.current||void 0,R.setComp({addOrRemoveCssClass:function(e,t){return F.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return B(e)},getFocusableElement:function(){return M.current},setTabIndex:function(e){return L(e)},setRole:function(e){return H(e)},setColId:function(e){return j(e)},setTitle:function(e){return K(e)},setIncludeSelection:function(e){return Y(e)},setIncludeRowDrag:function(e){return z(e)},setIncludeDndSource:function(e){return q(e)},getCellEditor:function(){return I.current||null},getCellRenderer:function(){return O.current||T.current},getParentOfValue:function(){return P.current||b.current||M.current},setRenderDetails:function(e,t,n){f({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(m({compDetails:e,popup:t,popupPosition:n}),t||f(void 0)):m(void 0)}},M.current,e,l,p))}),oe.useMemo(function(){return!!(E&&E.compDetails&&E.compDetails.componentFromFramework&&le(E.compDetails.componentClass))},[E])),re=(oe.useEffect(function(){var e;M.current&&(F.addOrRemoveCssClass("ag-cell-value",!k),F.addOrRemoveCssClass("ag-cell-inline-editing",!!v&&!v.popup),F.addOrRemoveCssClass("ag-cell-popup-editing",!!v&&!!v.popup),F.addOrRemoveCssClass("ag-cell-not-inline-editing",!v||!!v.popup),null!=(e=R.getRowCtrl()))&&e.setInlineEditingCss(!!v)}),oe.useMemo(function(){return R.getInstanceId()},[]));return se.createElement("div",{ref:M,style:_,tabIndex:x,role:U,"col-id":W,title:V},k?se.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:e},t()):t())}),V=oe.memo(function(e){var t=oe.useContext(ce).context,n=e.rowCtrl,r=e.containerType,e=oe.useState(),o=e[0],a=e[1],e=oe.useState(),s=e[0],i=e[1],e=oe.useState(),u=e[0],c=e[1],e=oe.useState(),l=e[0],p=e[1],e=oe.useState(),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],e=oe.useState({list:[],instanceIdMap:new Map}),C=e[0],g=e[1],e=oe.useState(),y=e[0],R=e[1],e=oe.useState(!1),E=e[0],v=e[1],e=oe.useState(n.getInitialRowTop(r)),S=e[0],w=e[1],e=oe.useState(n.getInitialTransform(r)),M=e[0],O=e[1],T=oe.useRef(null),I=oe.useRef(),b=oe.useRef(!1),e=oe.useState(0),P=e[0],A=e[1],N=(oe.useEffect(function(){var e;b.current||!y||10<P||((e=null==(e=T.current)?void 0:e.firstChild)?(n.setupDetailRowAutoHeight(e),b.current=!0):A(function(e){return e+1}))},[y,P]),oe.useMemo(function(){return new ae.CssClassManager(function(){return T.current})},[])),e=(ue(function(){if(n.isAlive())return n.setComp({setTop:function(e){return w(e)},setTransform:function(e){return O(e)},addOrRemoveCssClass:function(e,t){return N.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return v(e)},setRowIndex:function(e){return a(e)},setRowId:function(e){return i(e)},setRowBusinessKey:function(e){return p(e)},setTabIndex:function(e){return m(e)},setUserStyles:function(e){return h(e)},setRole:function(e){return c(e)},setCellCtrls:function(i){B(function(){g(function(e){return n=e,e=i,E?(t={list:e,instanceIdMap:new Map},e.forEach(function(e){return t.instanceIdMap.set(e.getInstanceId(),e)}),t):(r=[],o=[],a=new Map,s=new Map,e.forEach(function(e){return s.set(e.getInstanceId(),e)}),n.list.forEach(function(e){var t=e.getInstanceId();s.has(t)&&(r.push(e),a.set(t,e))}),e.forEach(function(e){var t=e.getInstanceId();n.instanceIdMap.has(t)||(o.push(e),a.set(t,e))}),{list:D(r,o),instanceIdMap:a});var n,t,r,o,a,s})})},showFullWidth:function(e){return R(e)},getFullWidthCellRenderer:function(){return I.current}},T.current,r),function(){n.unsetComp(r)}}),oe.useLayoutEffect(function(){return _(y,t,T.current,I)},[y]),oe.useMemo(function(){var e={top:S,transform:M};return Object.assign(e,d),e},[S,M,d])),k=y&&y.componentFromFramework,G=null!=C,F=oe.useMemo(function(){return!!((null==y?void 0:y.componentFromFramework)&&le(y.componentClass))},[y]);return se.createElement("div",{ref:T,role:u,style:e,"row-index":o,"row-id":s,"row-business-key":l,tabIndex:f},G&&C.list.map(function(e){return se.createElement(j,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})}),k&&(u=y.componentClass,se.createElement(se.Fragment,null,F&&se.createElement(u,ie({},y.params)),!F&&se.createElement(u,ie({},y.params,{ref:I})))))}),$=oe.memo(function(e){var r=oe.useContext(ce).context,t=oe.useState([]),n=t[0],o=t[1],a=e.name,s=oe.useMemo(function(){return ae.getRowContainerTypeForName(a)},[a]),i=oe.useRef(null),u=oe.useRef(null),c=oe.useRef(null),l=oe.useRef([]),p=oe.useRef(!1),f=oe.useMemo(function(){return ae.RowContainerCtrl.getRowContainerCssClasses(a)},[a]),t=oe.useMemo(function(){return Y(f.wrapper)},[]),e=oe.useMemo(function(){return Y(f.viewport)},[]),m=oe.useMemo(function(){return Y(f.container)},[]),d=a===ae.RowContainerName.CENTER,h=a===ae.RowContainerName.TOP_CENTER||a===ae.RowContainerName.BOTTOM_CENTER||a===ae.RowContainerName.STICKY_TOP_CENTER,C=!d&&!h;function g(){B(function(){o(function(e){var t,n=l.current;return p.current?n:(t=e.filter(function(e){return 0<=n.indexOf(e)}),e=n.filter(function(e){return t.indexOf(e)<0}),D(t,e))})})}z(" AG Row Container "+a+" ",d?i:h?u:c),ue(function(){var e=[],t={setViewportHeight:function(e){return u.current.style.height=e},setRowCtrls:function(e){l.current!==e&&(l.current=e,g())},setDomOrder:function(e){p.current!=e&&(p.current=e,g())},setContainerWidth:function(e){return c.current.style.width=e}},n=r.createBean(new ae.RowContainerCtrl(a));return e.push(n),n.setComp(t,c.current,u.current,i.current),function(){r.destroyBeans(e)}});function y(){return se.createElement("div",{className:m,ref:c,role:n.length?"rowgroup":"presentation"},n.map(function(e){return se.createElement(V,{rowCtrl:e,containerType:s,key:e.getInstanceId()})}))}return se.createElement(se.Fragment,null,d&&se.createElement("div",{className:t,ref:i,role:"presentation"},se.createElement("div",{className:e,ref:u,role:"presentation"},y())),h&&se.createElement("div",{className:e,ref:u,role:"presentation"},y()),C&&y())}),K=oe.memo(function(){function o(e){return se.createElement($,{name:e,key:e+"-container"})}function e(e){var t=e.section,n=e.children,r=e.className,e=e.style;return se.createElement("div",{ref:t,className:r,role:"presentation",style:e},n.map(o))}var t=oe.useContext(ce),a=t.context,s=t.agStackComponentsRegistry,i=t.resizeObserverService,t=oe.useState(""),n=t[0],u=t[1],t=oe.useState(0),r=t[0],c=t[1],t=oe.useState(0),l=t[0],p=t[1],t=oe.useState("0px"),f=t[0],m=t[1],t=oe.useState("0px"),d=t[0],h=t[1],t=oe.useState("100%"),C=t[0],g=t[1],t=oe.useState(""),y=t[0],R=t[1],t=oe.useState(""),E=t[0],v=t[1],t=oe.useState(null),S=t[0],w=t[1],t=oe.useState(""),M=t[0],O=t[1],t=oe.useState(null),T=t[0],I=t[1],t=oe.useState("ag-layout-normal"),b=t[0],P=t[1],_=oe.useMemo(function(){return new ae.CssClassManager(function(){return A.current})},[]),A=oe.useRef(null),N=oe.useRef(null),k=oe.useRef(null),G=oe.useRef(null),F=oe.useRef(null),D=oe.useRef(null),t=(z(" AG Grid Body ",A),z(" AG Pinned Top ",N),z(" AG Sticky Top ",k),z(" AG Middle ",F),z(" AG Pinned Bottom ",D),ue(function(){var e,t,n=[],r=[];if(a)return e=function(e){e=s.getComponentClass(e),e=a.createBean(new e);return n.push(e),e},A.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),A.current.appendChild(e("AG-FAKE-HORIZONTAL-SCROLL").getGui()),A.current.appendChild(document.createComment(" AG Overlay Wrapper ")),A.current.appendChild(e("AG-OVERLAY-WRAPPER").getGui()),G.current.appendChild(document.createComment(" AG Fake Vertical Scroll ")),G.current.appendChild(e("AG-FAKE-VERTICAL-SCROLL").getGui()),e={setRowAnimationCssOnBodyViewport:u,setColumnCount:function(e){return ae._.setAriaColCount(A.current,e)},setRowCount:function(e){return ae._.setAriaRowCount(A.current,e)},setTopHeight:c,setBottomHeight:p,setStickyTopHeight:m,setStickyTopTop:h,setStickyTopWidth:g,setTopDisplay:R,setBottomDisplay:v,setColumnMovingCss:function(e,t){return _.addOrRemoveCssClass(e,t)},updateLayoutClasses:P,setAlwaysVerticalScrollClass:w,setPinnedTopBottomOverflowY:O,setCellSelectableCss:I,setBodyViewportWidth:function(e){return F.current.style.width=e},registerBodyViewportResizeListener:function(e){var t=i.observeResize(F.current,e);r.push(function(){return t()})}},t=a.createBean(new ae.GridBodyCtrl),n.push(t),t.setComp(e,A.current,F.current,N.current,D.current,k.current),function(){a.destroyBeans(n),r.forEach(function(e){return e()})}}),oe.useMemo(function(){return Y("ag-root","ag-unselectable",b)},[b])),B=oe.useMemo(function(){return Y("ag-body-viewport",n,b,S,T)},[n,b,S,T]),x=oe.useMemo(function(){return Y("ag-body",b)},[b]),L=oe.useMemo(function(){return Y("ag-body-clipper",b)},[b]),U=oe.useMemo(function(){return Y("ag-floating-top",T)},[T]),H=oe.useMemo(function(){return Y("ag-sticky-top",T)},[T]),W=oe.useMemo(function(){return Y("ag-floating-bottom",T)},[T]),j=oe.useMemo(function(){return{height:r,minHeight:r,display:y,overflowY:M}},[r,y,M]),V=oe.useMemo(function(){return{height:f,top:d,width:C}},[f,d,C]),K=oe.useMemo(function(){return{height:l,minHeight:l,display:E,overflowY:M}},[l,E,M]);return se.createElement("div",{ref:A,className:t,role:"treegrid"},se.createElement(q,null),e({section:N,className:U,style:j,children:[ae.RowContainerName.TOP_LEFT,ae.RowContainerName.TOP_CENTER,ae.RowContainerName.TOP_RIGHT,ae.RowContainerName.TOP_FULL_WIDTH]}),se.createElement("div",{className:x,ref:G,role:"presentation"},se.createElement("div",{className:L,role:"presentation"},e({section:F,className:B,children:[ae.RowContainerName.LEFT,ae.RowContainerName.CENTER,ae.RowContainerName.RIGHT,ae.RowContainerName.FULL_WIDTH]}))),e({section:k,className:H,style:V,children:[ae.RowContainerName.STICKY_TOP_LEFT,ae.RowContainerName.STICKY_TOP_CENTER,ae.RowContainerName.STICKY_TOP_RIGHT,ae.RowContainerName.STICKY_TOP_FULL_WIDTH]}),e({section:D,className:W,style:K,children:[ae.RowContainerName.BOTTOM_LEFT,ae.RowContainerName.BOTTOM_CENTER,ae.RowContainerName.BOTTOM_RIGHT,ae.RowContainerName.BOTTOM_FULL_WIDTH]}))}),a=oe.forwardRef(function(e,t){function n(e){var t="top"===e?ae.TabGuardClassNames.TAB_GUARD_TOP:ae.TabGuardClassNames.TAB_GUARD_BOTTOM;return se.createElement("div",{className:ae.TabGuardClassNames.TAB_GUARD+" "+t,role:"presentation",tabIndex:p,ref:"top"===e?u:c})}var r=e.children,o=e.eFocusableElement,a=e.onTabKeyDown,s=e.gridCtrl,i=oe.useContext(ce).context,u=oe.useRef(null),c=oe.useRef(null),l=oe.useRef(),e=oe.useState(),p=e[0],f=e[1];oe.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){l.current.forceFocusOutOfContainer()}}}),ue(function(){var e=u.current,t=c.current,n=l.current=i.createBean(new ae.TabGuardCtrl({comp:{setTabIndex:function(e){return f(null==e?void 0:parseInt(e,10))}},eTopGuard:e,eBottomGuard:t,eFocusableElement:o,onTabKeyDown:a,focusInnerElement:function(e){return s.focusInnerElement(e)}}));return function(){i.destroyBean(n)}});return se.createElement(se.Fragment,null,n("top"),r,n("bottom"))}),X=oe.memo(a),Z=oe.memo(function(e){var p=e.context,e=oe.useState(""),t=e[0],n=e[1],e=oe.useState(""),r=e[0],o=e[1],e=oe.useState(""),a=e[0],s=e[1],e=oe.useState(null),i=e[0],u=e[1],e=oe.useState(null),c=e[0],l=e[1],e=oe.useState(!1),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],C=oe.useRef(null),g=oe.useRef(null),y=oe.useRef(),R=oe.useRef(null),E=oe.useRef(function(){}),e=oe.useCallback(function(){},[]),v=oe.useMemo(function(){return p.getBean("beans")},[]),S=(z(" AG Grid ",g),ue(function(){var e=C.current=p.createBean(new ae.GridCtrl);return function(){p.destroyBean(e),C.current=null}}),ue(function(){var e=C.current,t=(E.current=e.focusInnerElement.bind(e),{destroyGridUi:function(){},setRtlClass:n,addOrRemoveKeyboardFocusClass:function(e){return o(e?ae.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){y.current.forceFocusOutOfContainer()},updateLayoutClasses:s,getFocusableContainers:function(){var e=[],t=g.current.querySelector(".ag-root"),n=g.current.querySelector(".ag-side-bar:not(.ag-hidden)");return t&&e.push(t),n&&e.push(n),e},setCursor:u,setUserSelect:l});e.setComp(t,g.current,g.current),m(!0)}),oe.useEffect(function(){var e,t,n,r,o,a,s,i,u,c,l;if(d)return e=C.current,t=[],c=(o=v.agStackComponentsRegistry).getComponentClass("AG-GRID-HEADER-DROP-ZONES"),u=o.getComponentClass("AG-SIDE-BAR"),n=o.getComponentClass("AG-STATUS-BAR"),r=o.getComponentClass("AG-WATERMARK"),o=o.getComponentClass("AG-PAGINATION"),a=[],s=g.current,i=R.current,e.showDropZones()&&c&&(l=(c=p.createBean(new c)).getGui(),s.insertAdjacentElement("afterbegin",l),a.push(l),t.push(c)),e.showSideBar()&&u&&(l=(c=p.createBean(new u)).getGui(),(u=i.querySelector(".ag-tab-guard-bottom"))&&(u.insertAdjacentElement("beforebegin",l),a.push(l)),t.push(c)),e.showStatusBar()&&n&&(l=(i=p.createBean(new n)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(i)),o&&(l=(u=p.createBean(new o)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(u)),e.showWatermark()&&r&&(l=(c=p.createBean(new r)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(c)),function(){p.destroyBeans(t),a.forEach(function(e){e.parentElement&&e.parentElement.removeChild(e)})}},[d]),oe.useMemo(function(){return Y("ag-root-wrapper",t,r,a)},[t,r,a])),w=oe.useMemo(function(){return Y("ag-root-wrapper-body","ag-focus-managed",a)},[a]),M=oe.useMemo(function(){return{userSelect:null!=c?c:"",WebkitUserSelect:null!=c?c:"",cursor:null!=i?i:""}},[c,i]),O=R.current,T=oe.useCallback(function(e){y.current=e,h(!0)},[]);return se.createElement("div",{ref:g,className:S,style:M,role:"presentation"},se.createElement("div",{className:w,ref:R,role:"presentation"},f&&O&&se.createElement(ce.Provider,{value:v},se.createElement(X,{ref:T,eFocusableElement:O,onTabKeyDown:e,gridCtrl:C.current},se.createElement(K,null)))))});o(m,J=oe.Component),m.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&se.createElement(Z,{context:this.state.context}),this.portalManager.getPortals())},m.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},m.prototype.componentDidMount=function(){var e,t=this;this.mounted||(this.mounted=!0,e=this.props.modules||[],e={providedBeanInstances:{frameworkComponentWrapper:new ee(this.portalManager)},modules:e,frameworkOverrides:new re(!0)},this.gridOptions=this.props.gridOptions||{},this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props),this.checkForDeprecations(this.props),(new ae.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(e){t.setState({context:e}),e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.api=t.gridOptions.api,t.columnApi=t.gridOptions.columnApi,t.props.setGridApi(t.api,t.columnApi),t.destroyFuncs.push(function(){return t.api.destroy()})})},function(e){e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.whenReadyFuncs.forEach(function(e){return e()}),t.whenReadyFuncs.length=0,t.ready=!0})},e))},m.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},m.prototype.componentWillUnmount=function(){this.renderedAfterMount&&(this.destroyFuncs.forEach(function(e){return e()}),this.destroyFuncs.length=0)},m.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},m.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processChanges(n)},m.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},m.prototype.processChanges=function(e){var t=this;this.processWhenReady(function(){return ae.ComponentUtil.processOnChange(e,t.api)})},m.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)};var J,E=m;function m(e){var t=J.call(this,e)||this;return t.props=e,t.destroyFuncs=[],t.eGui=se.createRef(),t.whenReadyFuncs=[],t.ready=!1,t.renderedAfterMount=!1,t.mounted=!1,t.state={context:void 0},t.portalManager=new G(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t.destroyFuncs.push(function(){return t.portalManager.destroy()}),t}o(d,Q=ae.BaseComponentWrapper),d.prototype.createWrapper=function(e,t){return new k(e,this.parent,t)};var Q,ee=d;function d(e){var t=Q.call(this)||this;return t.parent=e,t}var te,ne=oe.forwardRef(function(r,e){var t=oe.useContext(ce),o=t.ctrlsFactory,a=t.context,s=t.gridOptionsService,i=t.resizeObserverService,u=t.clientSideRowModel,c=t.serverSideRowModel,t=oe.useState(new b),n=t[0],l=t[1],t=oe.useState(new b),p=t[0],f=t[1],t=oe.useState(),m=t[0],d=t[1],t=oe.useState(),h=t[0],C=t[1],g=oe.useRef(),y=oe.useRef(null),t=oe.useMemo(function(){return n.toString()+" ag-details-row"},[n]),R=oe.useMemo(function(){return p.toString()+" ag-details-grid"},[p]),e=(e&&oe.useImperativeHandle(e,function(){return{refresh:function(){return g.current.refresh()}}}),ue(function(){r.template&&"string"==typeof r.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")}),ue(function(){var e,t={addOrRemoveCssClass:function(t,n){return l(function(e){return e.setClass(t,n)})},addOrRemoveDetailGridCssClass:function(t,n){return f(function(e){return e.setClass(t,n)})},setDetailGrid:function(e){return d(e)},setRowData:function(e){return C(e)},getGui:function(){return y.current}},n=o.getInstance("detailCellRenderer");if(n)return a.createBean(n),n.init(t,r),g.current=n,s.is("detailRowAutoHeight")&&(e=i.observeResize(y.current,t=function(){var e;null!=y.current&&null!=(e=y.current.clientHeight)&&0<e&&setTimeout(function(){r.node.setRowHeight(e),u?u.onRowHeightChanged():c&&c.onRowHeightChanged()},0)}),t()),function(){a.destroyBean(n),e&&e()}}),oe.useCallback(function(e,t){g.current.registerDetailWithMaster(e,t)},[]));return se.createElement("div",{className:t,ref:y},m&&se.createElement(E,ie({className:R},m,{rowData:h,setGridApi:e})))}),re=(o(h,te=ae.VanillaFrameworkOverrides),h.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},h.prototype.isFrameworkComponent=function(e){return!(!e||(e=e.prototype)&&"getGui"in e)},h);function h(e){var t=te.call(this)||this;return t.frameworkComponents={agGroupCellRenderer:P,agGroupRowRenderer:P,agDetailCellRenderer:ne},t.reactUi=e,t}o(g,me=oe.Component),g.prototype.render=function(){var t=this;return se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(e){t.eGridDiv=e}},this.portalManager.getPortals())},g.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},g.prototype.componentDidMount=function(){var e=this.props.modules||[],e={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new he(this,this.portalManager)},modules:e,frameworkOverrides:new re(!1)},t=this.props.gridOptions||{};this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(t,this.props),this.checkForDeprecations(this.props),new ae.Grid(this.eGridDiv,this.gridOptions,e),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},g.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},g.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},g.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},g.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},g.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},g.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},g.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},g.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},g.prototype.processSynchronousChanges=function(e){var t,n=ie({},e);return 0<Object.keys(n).length&&(t={},this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach(function(e){n[e]&&(t[e]=n[e],delete n[e])}),0<Object.keys(t).length)&&this.api&&ae.ComponentUtil.processOnChange(t,this.api),n},g.prototype.processAsynchronousChanges=function(e){var t=this;0<Object.keys(e).length&&window.setTimeout(function(){t.api&&ae.ComponentUtil.processOnChange(e,t.api)})},g.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:g.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3};var me,C=g;function g(e){var t=me.call(this,e)||this;return t.props=e,t.api=null,t.destroyed=!1,t.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],t.portalManager=new G(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}function y(e,t){e.forEach(function(e){C[e]=t})}C.propTypes={gridOptions:t.object},y(ae.ComponentUtil.EVENT_CALLBACKS,t.func),y(ae.ComponentUtil.BOOLEAN_PROPERTIES,t.bool),y(ae.ComponentUtil.STRING_PROPERTIES,t.string),y(ae.ComponentUtil.OBJECT_PROPERTIES,t.object),y(ae.ComponentUtil.ARRAY_PROPERTIES,t.array),y(ae.ComponentUtil.NUMBER_PROPERTIES,t.number),y(ae.ComponentUtil.FUNCTION_PROPERTIES,t.func);o(R,de=ae.BaseComponentWrapper),R.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new A(e,this.agGridReact,this.portalManager,t):new k(e,this.portalManager,t)};var de,he=R;function R(e,t){var n=de.call(this)||this;return n.agGridReact=e,n.portalManager=t,n}o(S,v=oe.Component),S.prototype.render=function(){return this.props.suppressReactUi?se.createElement(C,ie({},this.props,{setGridApi:this.setGridApi})):se.createElement(E,ie({},this.props,{setGridApi:this.setGridApi}))};var v,a=S;function S(){var n=null!==v&&v.apply(this,arguments)||this;return n.setGridApi=function(e,t){n.api=e,n.columnApi=t},n}e.AgGridReact=a,e.AgGridReactLegacy=C,e.AgGridReactFire=E,Object.defineProperty(e,"__esModule",{value:!0})});
define(["exports","prop-types","react-dom/server","react-dom","react","agGrid"],function(e,t,w,r,oe,ae){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var n="default"in r?r.default:r,se="default"in oe?oe.default:oe,M=function(e,t){return(M=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}))(e,t)};function o(e,t){function n(){this.constructor=e}M(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ie=function(){return(ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function D(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],s=0,i=a.length;s<i;s++,o++)r[o]=a[s];return r}o(s,T=function(){}),s.prototype.getGui=function(){return this.eParentElement},s.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},s.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),t=document.createElement(t||"div");return t.classList.add("ag-react-container"),e.reactContainer=t},s.prototype.addParentContainerStyleAndClasses=function(){var t=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses)&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach(function(e){return t.eParentElement.classList.add(e)})},s.prototype.statelessComponentRendered=function(){return 0<this.eParentElement.childElementCount||0<this.eParentElement.childNodes.length},s.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},s.prototype.isStatelessComponent=function(){return this.statelessComponent},s.prototype.getReactComponentName=function(){return this.reactComponent.name},s.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},s.prototype.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},s.prototype.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===this.getMemoType()},s.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},s.prototype.callMethod=function(e,t){var n,r=this,o=this.getFrameworkComponentInstance();return this.isStatelessComponent()?this.fallbackMethod(e,t&&t[0]?t[0]:{}):o?(n=o[e])?n.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0:void setTimeout(function(){return r.callMethod(e,t)})},s.prototype.addMethod=function(e,t){this[e]=t};var T,a=s;function s(e,t,n){var r=T.call(this)||this;return r.portal=null,r.reactComponent=e,r.portalManager=t,r.componentType=n,r.statelessComponent=r.isStateless(r.reactComponent),r}var O=0;function i(){return"agPortalKey_"+ ++O}o(u,I=a),u.prototype.init=function(t){var n=this;return this.eParentElement=this.createParentElement(t),this.renderStaticMarkup(t),new ae.AgPromise(function(e){return n.createReactComponent(t,e)})},u.prototype.createReactComponent=function(e,t){var n=this,e=(this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()}),oe.createElement(this.reactComponent,e)),e=r.createPortal(e,this.eParentElement,i());this.portal=e,this.portalManager.mountReactPortal(e,this,function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout(function(){n.removeStaticMarkup()}))})},u.prototype.fallbackMethodAvailable=function(e){return!1},u.prototype.fallbackMethod=function(e,t){},u.prototype.isSlowRenderer=function(){return this.staticRenderTime>=u.SLOW_RENDERING_THRESHOLD},u.prototype.isNullValue=function(){return""===this.staticMarkup},u.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,e=oe.createElement(this.reactComponent,e);try{console.error=function(){};var n=Date.now(),r=w.renderToStaticMarkup(e);this.staticRenderTime=Date.now()-n,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}finally{console.error=t}}},u.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},u.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},u.SLOW_RENDERING_THRESHOLD=3;var I,A=u;function u(e,t,n,r){e=I.call(this,e,n,r)||this;return e.staticMarkup=null,e.staticRenderTime=0,e.parentComponent=t,e}o(c,N=a),c.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new ae.AgPromise(function(e){return t.createReactComponent(e)})},c.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=oe.createElement(this.reactComponent,ie(ie({},e),{key:this.key})),this.portal=r.createPortal(this.reactElement,this.eParentElement,this.portalKey)},c.prototype.createReactComponent=function(t){this.portalManager.mountReactPortal(this.portal,this,function(e){t(e)})},c.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},c.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},c.prototype.valueRenderedIsNull=function(e){if(this.componentType.cellRenderer){var t=console.error;try{return console.error=function(){},""===w.renderToStaticMarkup(oe.createElement(this.reactComponent,e))}catch(e){}finally{console.error=t}}return!1},c.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},c.prototype.fallbackMethod=function(e,t){e=this[e+"Component"];if(e)return e.bind(this)(t)},c.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]};var N,k=c;function c(e,t,n){e=N.call(this,e,t,n)||this;return e.oldPortal=null,e.key=i(),e.portalKey=i(),e}l.prototype.getPortals=function(){return this.portals},l.prototype.destroy=function(){this.destroyed=!0},l.prototype.destroyPortal=function(t){this.portals=this.portals.filter(function(e){return e!==t}),this.batchUpdate()},l.prototype.getComponentWrappingElement=function(){return this.wrappingElement},l.prototype.mountReactPortal=function(e,t,n){this.portals=D(this.portals,[e]),this.waitForInstance(t,n),this.batchUpdate()},l.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},l.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout(function(){e.destroyed||e.parent.forceUpdate(function(){e.hasPendingPortalUpdate=!1})}),this.hasPendingPortalUpdate=!0)},l.prototype.waitForInstance=function(e,t,n){var r=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout(function(){r.waitForInstance(e,t,n)})}},l.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3;var G=l;function l(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.parent=e,this.maxComponentCreationTimeMs=n||l.MAX_COMPONENT_CREATION_TIME_IN_MS}function _(e,t,n,r){var o=!e||e.componentFromFramework;if(!o){var a,s,i,o=e.newAgStackInstance();if(o)return i=!1,o.then(function(e){i?t.destroyBean(e):(s=(a=e).getGui(),n.appendChild(s),F(r,a))}),function(){i=!0,a&&(s&&s.parentElement&&s.parentElement.removeChild(s),t.destroyBean(a),r)&&F(r,void 0)}}}function F(e,t){e&&(e instanceof Function?e(t):e.current=t)}function ue(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useLayoutEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])}function Y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")}var ce=se.createContext({}),pe=function(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])},b=(p.prototype.setClass=function(e,t){var n;return!!this.classesMap[e]==t?this:((n=new p).classesMap=ie({},this.classesMap),n.classesMap[e]=t,n)},p.prototype.toString=function(){var t=this;return Object.keys(this.classesMap).filter(function(e){return t.classesMap[e]}).join(" ")},p);function p(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.classesMap={},e.forEach(function(e){t.classesMap[e]=!0})}function le(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===("function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)}function B(e){x&&f&&0===m?(m++,n.flushSync(e),m--):e()}function z(r,o){pe(function(){var e,t=o.current,n=t.parentElement;if(n)return e=document.createComment(r),n.insertBefore(e,t),function(){n.removeChild(e)}})}var x=null!=n.createRoot&&null!=n.flushSync,f=!0,L=function(){return f=!0},U=function(){return f=!1},m=0,P=oe.forwardRef(function(n,e){var r=oe.useContext(ce).context,o=oe.useRef(null),t=oe.useRef(null),a=oe.useRef(null),s=oe.useRef(null),i=oe.useRef(null),u=oe.useState(),c=u[0],l=u[1],u=oe.useState(),p=u[0],f=u[1],u=oe.useState(),m=u[0],d=u[1],u=oe.useState(new b),h=u[0],C=u[1],u=oe.useState(new b("ag-hidden")),g=u[0],y=u[1],u=oe.useState(new b("ag-hidden")),R=u[0],E=u[1],u=oe.useState(new b("ag-invisible")),v=u[0],S=u[1],u=(oe.useImperativeHandle(e,function(){return{refresh:function(){return!1}}}),oe.useLayoutEffect(function(){return _(c,r,t.current)},[c]),ue(function(){var e={setInnerRenderer:function(e,t){l(e),d(t)},setChildCount:function(e){return f(e)},addOrRemoveCssClass:function(t,n){return C(function(e){return e.setClass(t,n)})},setContractedDisplayed:function(t){return E(function(e){return e.setClass("ag-hidden",!t)})},setExpandedDisplayed:function(t){return y(function(e){return e.setClass("ag-hidden",!t)})},setCheckboxVisible:function(t){return S(function(e){return e.setClass("ag-invisible",!t)})}},t=r.createBean(new ae.GroupCellRendererCtrl);return t.init(e,o.current,a.current,s.current,i.current,P,n),function(){r.destroyBean(t)}}),oe.useMemo(function(){return"ag-cell-wrapper "+h.toString()},[h])),e=oe.useMemo(function(){return"ag-group-expanded "+g.toString()},[g]),w=oe.useMemo(function(){return"ag-group-contracted "+R.toString()},[R]),M=oe.useMemo(function(){return"ag-group-checkbox "+v.toString()},[v]),T=c&&c.componentFromFramework,O=T?c.componentClass:void 0,I=null==c&&null!=m,m=ae._.escapeString(m,!0);return se.createElement("span",ie({className:u,ref:o},n.colDef?{}:{role:"gridcell"}),se.createElement("span",{className:e,ref:s}),se.createElement("span",{className:w,ref:i}),se.createElement("span",{className:M,ref:a}),se.createElement("span",{className:"ag-group-value",ref:t},I&&se.createElement(se.Fragment,null,m),T&&se.createElement(O,ie({},c.params))),se.createElement("span",{className:"ag-group-child-count"},p))}),H=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(),r=n[0],o=n[1],n=oe.useState(),a=n[0],s=n[1],n=oe.useState(),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],m=oe.useRef(null),d=oe.useRef(null),h=oe.useRef(null),C=oe.useRef(),g=e.ctrl,y=oe.useMemo(function(){return new ae.CssClassManager(function(){return m.current})},[]),n=(ue(function(){g.setComp({setWidth:function(e){return m.current.style.width=e},addOrRemoveCssClass:function(e,t){return y.addOrRemoveCssClass(e,t)},setColId:function(e){return s(e)},setTitle:function(e){return o(e)},setAriaDescription:function(e){return l(e)},setAriaSort:function(e){return u(e)},setUserCompDetails:function(e){return f(e)},getUserCompInstance:function(){return C.current||void 0}},m.current,d.current,h.current);var e=g.getSelectAllGui();d.current.insertAdjacentElement("afterend",e)}),oe.useLayoutEffect(function(){return _(p,t,h.current,C)},[p]),oe.useEffect(function(){g.setDragSource(m.current)},[p]),oe.useMemo(function(){return!!((null==p?void 0:p.componentFromFramework)&&le(p.componentClass))},[p])),e=p&&p.componentFromFramework,R=p&&p.componentClass;return se.createElement("div",{ref:m,className:"ag-header-cell",title:r,"col-id":a,"aria-sort":i,role:"columnheader",tabIndex:-1,"aria-description":c},se.createElement("div",{ref:d,className:"ag-header-cell-resize",role:"presentation"}),se.createElement("div",{ref:h,className:"ag-header-cell-comp-wrapper",role:"presentation"},e&&n&&se.createElement(R,ie({},p.params)),e&&!n&&se.createElement(R,ie({},p.params,{ref:C}))))}),W=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(new b),r=n[0],o=n[1],n=oe.useState(new b),a=n[0],s=n[1],n=oe.useState("false"),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],n=oe.useState(),m=n[0],d=n[1],n=oe.useState(),h=n[0],C=n[1],g=oe.useRef(null),y=oe.useRef(null),R=e.ctrl,n=(ue(function(){R.setComp({setWidth:function(e){return g.current.style.width=e},addOrRemoveCssClass:function(t,n){return o(function(e){return e.setClass(t,n)})},setColId:function(e){return f(e)},setTitle:function(e){return l(e)},setUserCompDetails:function(e){return C(e)},setResizableDisplayed:function(t){s(function(e){return e.setClass("ag-hidden",!t)}),u(t?"false":"true")},setAriaExpanded:function(e){return d(e)}},g.current,y.current)}),oe.useLayoutEffect(function(){return _(h,t,g.current)},[h]),oe.useEffect(function(){var t=void 0;g.current.childNodes.forEach(function(e){null!=e&&e!==y.current&&(t=e)}),t&&R.setDragSource(t)},[h]),oe.useMemo(function(){return"ag-header-group-cell "+r.toString()},[r])),e=oe.useMemo(function(){return"ag-header-cell-resize "+a.toString()},[a]),E=h&&h.componentFromFramework,v=h&&h.componentClass;return se.createElement("div",{ref:g,className:n,title:c,"col-id":p,role:"columnheader",tabIndex:-1,"aria-expanded":m},E&&se.createElement(v,ie({},h.params)),se.createElement("div",{ref:y,"aria-hidden":i,className:e}))}),j=oe.memo(function(e){function t(e){g.current||null!=e&&(y.current&&y.current(e),g.current=!0)}var n=oe.useContext(ce).context,r=oe.useState(new b("ag-header-cell","ag-floating-filter")),o=r[0],a=r[1],r=oe.useState(new b),s=r[0],i=r[1],r=oe.useState(new b("ag-floating-filter-button","ag-hidden")),u=r[0],c=r[1],r=oe.useState("false"),l=r[0],p=r[1],r=oe.useState(),f=r[0],m=r[1],d=oe.useRef(null),h=oe.useRef(null),r=oe.useRef(null),C=oe.useRef(null),g=oe.useRef(!1),y=oe.useRef(),R=oe.useRef(),E=(ue(function(){R.current=new ae.AgPromise(function(e){y.current=e})}),e.ctrl),e=(ue(function(){E.setComp({addOrRemoveCssClass:function(t,n){return a(function(e){return e.setClass(t,n)})},addOrRemoveBodyCssClass:function(t,n){return i(function(e){return e.setClass(t,n)})},setButtonWrapperDisplayed:function(t){c(function(e){return e.setClass("ag-hidden",!t)}),p(t?"false":"true")},setWidth:function(e){return d.current.style.width=e},setCompDetails:function(e){return m(e)},getFloatingFilterComp:function(){return R.current||null},setMenuIcon:function(e){return C.current.appendChild(e)}},d.current,C.current,h.current)}),oe.useLayoutEffect(function(){return _(f,n,h.current,t)},[f]),oe.useMemo(function(){return o.toString()},[o])),v=oe.useMemo(function(){return s.toString()},[s]),S=oe.useMemo(function(){return u.toString()},[u]),w=oe.useMemo(function(){return!!(f&&f.componentFromFramework&&le(f.componentClass))},[f]),M=f&&f.componentFromFramework,T=f&&f.componentClass;return se.createElement("div",{ref:d,className:e,role:"gridcell",tabIndex:-1},se.createElement("div",{ref:h,className:v,role:"presentation"},M&&w&&se.createElement(T,ie({},f.params)),M&&!w&&se.createElement(T,ie({},f.params,{ref:t}))),se.createElement("div",{ref:r,"aria-hidden":l,className:S,role:"presentation"},se.createElement("button",{ref:C,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}),V=oe.memo(function(e){var s=oe.useContext(ce).gridOptionsService,t=oe.useState(),n=t[0],r=t[1],t=oe.useState(),o=t[0],a=t[1],t=oe.useState(),i=t[0],u=t[1],t=oe.useState(),c=t[0],l=t[1],t=oe.useState([]),p=t[0],f=t[1],m=oe.useRef(null),d=e.ctrl,h=d.getType()===ae.HeaderRowType.COLUMN,C=d.getType()===ae.HeaderRowType.COLUMN_GROUP,g=d.getType()===ae.HeaderRowType.FLOATING_FILTER,y=oe.useCallback(function(e,t){var n,r,o=s.is("ensureDomOrder"),a=s.isDomLayout("print");return o||a?t:(n=ae._.mapById(e,function(e){return e.getInstanceId()}),r=ae._.mapById(t,function(e){return e.getInstanceId()}),D(e.filter(function(e){return r.has(e.getInstanceId())}),t.filter(function(e){return!n.has(e.getInstanceId())})))},[]),t=(ue(function(){d.setComp({setTransform:function(e){return r(e)},setHeight:function(e){return a(e)},setTop:function(e){return u(e)},setHeaderCtrls:function(t){return f(function(e){return y(e,t)})},setWidth:function(e){return m.current.style.width=e},setAriaRowIndex:function(e){return l(e)}})}),oe.useMemo(function(){return{transform:n,height:o,top:i}},[n,o,i])),e=oe.useMemo(function(){var e=["ag-header-row"];return h&&e.push("ag-header-row-column"),C&&e.push("ag-header-row-column-group"),g&&e.push("ag-header-row-column-filter"),e.join(" ")},[]),R=oe.useCallback(function(e){switch(d.getType()){case ae.HeaderRowType.COLUMN_GROUP:return se.createElement(W,{ctrl:e,key:e.getInstanceId()});case ae.HeaderRowType.FLOATING_FILTER:return se.createElement(j,{ctrl:e,key:e.getInstanceId()});default:return se.createElement(H,{ctrl:e,key:e.getInstanceId()})}},[]);return se.createElement("div",{ref:m,className:e,role:"row",style:t,"aria-rowindex":c},p.map(R))}),d=oe.memo(function(n){function e(){return i.map(function(e){return se.createElement(V,{ctrl:e,key:e.getInstanceId()})})}var t=oe.useState(new b),r=t[0],o=t[1],t=oe.useState(!1),a=t[0],s=t[1],t=oe.useState([]),i=t[0],u=t[1],c=oe.useContext(ce).context,l=oe.useRef(null),p=oe.useRef(null),t="left"===n.pinned,f="right"===n.pinned,m=!t&&!f,d=(ue(function(){var e={setDisplayed:function(t){o(function(e){return e.setClass("ag-hidden",!t)}),s(!t)},setCtrls:function(e){return u(e)},setCenterWidth:function(e){p.current&&(p.current.style.width=e)},setViewportScrollLeft:function(e){l.current&&(l.current.scrollLeft=e)},setPinnedContainerWidth:function(e){l.current.style.width=e,l.current.style.minWidth=e,l.current.style.maxWidth=e}},t=c.createBean(new ae.HeaderRowContainerCtrl(n.pinned));return t.setComp(e,l.current),function(){c.destroyBean(t)}}),oe.useMemo(function(){return r.toString()},[r]));return se.createElement(se.Fragment,null,t&&se.createElement("div",{ref:l,className:"ag-pinned-left-header "+d,"aria-hidden":a,role:"presentation"},e()),f&&se.createElement("div",{ref:l,className:"ag-pinned-right-header "+d,"aria-hidden":a,role:"presentation"},e()),m&&se.createElement("div",{ref:l,className:"ag-header-viewport "+d,role:"presentation"},se.createElement("div",{ref:p,className:"ag-header-container",role:"rowgroup"},e())))}),q=oe.memo(function(){var e=oe.useState(new b),t=e[0],r=e[1],e=oe.useState(),n=e[0],o=e[1],a=oe.useContext(ce).context,s=oe.useRef(null),e=(ue(function(){var e={addOrRemoveCssClass:function(t,n){return r(function(e){return e.setClass(t,n)})},setHeightAndMinHeight:function(e){return o(e)}},t=a.createBean(new ae.GridHeaderCtrl);return t.setComp(e,s.current,s.current),function(){a.destroyBean(t)}}),oe.useMemo(function(){return"ag-header "+t.toString()},[t])),i=oe.useMemo(function(){return{height:n,minHeight:n}},[n]);return se.createElement("div",{ref:s,className:e,style:i,role:"presentation"},se.createElement(d,{pinned:"left"}),se.createElement(d,{pinned:null}),se.createElement(d,{pinned:"right"}))}),fe=oe.memo(function(u){var e=oe.useState(),t=e[0],c=e[1],e=oe.useContext(ce),l=e.context,p=e.popupService,f=e.localeService,m=e.gridOptionsService;return ue(function(){var e=u.editDetails,t=u.cellCtrl,n=u.eParentCell,r=e.compDetails,o=m.is("stopEditingWhenCellsLoseFocus"),a=l.createBean(new ae.PopupEditorWrapper(r.params)),r=a.getGui(),s=(u.jsChildComp&&(s=u.jsChildComp.getGui())&&r.appendChild(s),{column:t.getColumn(),rowNode:t.getRowNode(),type:"popupCellEditor",eventSource:n,ePopup:r,position:e.popupPosition,keepWithinBounds:!0}),e=p.positionPopupByComponent.bind(p,s),s=f.getLocaleTextFunc(),o=p.addPopup({modal:o,eChild:r,closeOnEsc:!0,closedCallback:function(){t.onPopupEditorClosed()},anchorToElement:n,positionCallback:e,ariaLabel:s("ariaLabelCellEditor","Cell Editor")}),i=o?o.hideFunc:void 0;return c(a),u.jsChildComp&&u.jsChildComp.afterGuiAttached&&u.jsChildComp.afterGuiAttached(),function(){null!=i&&i(),l.destroyBean(a)}}),se.createElement(se.Fragment,null,t&&u.wrappedContent&&r.createPortal(u.wrappedContent,t.getGui()))}),K=oe.memo(function(e){function t(){return se.createElement(se.Fragment,null,null!=E&&(i=S,u=re,c=T,l=k,p=ne,f=Q,m=(s=E).compDetails,s=s.value,d=!m,h=m&&m.componentFromFramework,C=m&&m.componentClass,g=null!=s&&s.toString?s.toString():s,se.createElement(se.Fragment,null,l?se.createElement("span",{role:"presentation",id:"cell-"+u,className:"ag-cell-value",ref:f},y()):y())),null!=v&&(s=v,l=te,u=ee,f=M.current,e=R,t=$,n=s.compDetails,r=n.componentClass,o=n.componentFromFramework&&!s.popup,a=n.componentFromFramework&&s.popup,n=!n.componentFromFramework&&s.popup,se.createElement(se.Fragment,null,o&&se.createElement(r,ie({},s.compDetails.params,{ref:l})),a&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,wrappedContent:se.createElement(r,ie({},s.compDetails.params,{ref:u}))}),n&&t&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,jsChildComp:t}))));var e,t,n,r,o,a,s,i,u,c,l,p,f,m,d,h,C,g;function y(){return se.createElement(se.Fragment,null,d&&se.createElement(se.Fragment,null,g),h&&!p&&se.createElement(C,ie({},m.params,{key:i,ref:c})),h&&p&&se.createElement(C,ie({},m.params,{key:i})))}}var n,r,o,a,s,i,u,c=oe.useContext(ce).context,R=e.cellCtrl,l=e.printLayout,p=e.editingRow,e=oe.useState(),E=e[0],f=e[1],e=oe.useState(),v=e[0],m=e[1],e=oe.useState(1),S=e[0],d=e[1],e=oe.useState(),_=e[0],B=e[1],e=oe.useState(),x=e[0],L=e[1],e=oe.useState(),U=e[0],H=e[1],e=oe.useState(),W=e[0],j=e[1],e=oe.useState(),V=e[0],K=e[1],e=oe.useState(!1),h=e[0],Y=e[1],e=oe.useState(!1),C=e[0],z=e[1],e=oe.useState(!1),g=e[0],q=e[1],e=oe.useState(),$=e[0],y=e[1],w=oe.useMemo(function(){return R.isForceWrapper()},[]),M=oe.useRef(null),T=oe.useRef(null),O=oe.useRef(),I=oe.useRef(),b=oe.useRef(),e=oe.useState(0),X=e[0],Z=e[1],e=oe.useCallback(function(e){b.current=e,Z(function(e){return e+1})},[]),P=oe.useRef(),A=oe.useState(0),N=A[0],J=A[1],Q=oe.useCallback(function(e){P.current=e,J(function(e){return e+1})},[]),k=w||null!=E&&(h||g||C),G=oe.useCallback(function(e,t){var n,r,o,a,s;(I.current=t)&&(e=e,n=t,s=(r=R).getColumn(),!e&&n.isPopup&&n.isPopup()&&(o="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(o)},"jsEditorComp-isPopup-"+r.getColumn().getColId())),e&&n.getPopupPosition&&null!=n.getPopupPosition()&&(a="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(a)},"jsEditorComp-getPopupPosition-"+r.getColumn().getColId())),t.isCancelBeforeStart)&&t.isCancelBeforeStart()&&setTimeout(function(){R.stopEditing(!0),R.focusCell(!0)})},[]),ee=oe.useCallback(function(e){return G(!0,e)},[]),te=oe.useCallback(function(e){return G(!1,e)},[]),F=oe.useMemo(function(){return new ae.CssClassManager(function(){return M.current})},[]),D=(n=E,r=k,o=P.current,A=N,a=O,s=M,N=oe.useContext(ce),i=N.context,N.userComponentFactory,u=oe.useCallback(function(){var e,t=a.current;t&&((e=t.getGui())&&e.parentElement&&e.parentElement.removeChild(e),i.destroyBean(t),a.current=void 0)},[]),oe.useEffect(function(){var e=n&&n.compDetails&&!n.compDetails.componentFromFramework;if(null!=n&&e&&!(r&&null==o)){e=n.compDetails;if(a.current){var t=a.current,t=null!=t.refresh&&0==n.force&&t.refresh(e.params);if(!0===t||void 0===t)return;u()}t=e.newAgStackInstance();t&&(e=t.resolveNow(null,function(e){return e}))&&(t=e.getGui())&&((r?o:s.current).appendChild(t),a.current=e)}else u()},[n,r,A]),pe(function(){return u}),oe.useRef()),ne=(oe.useLayoutEffect(function(){var e=D.current,t=E;D.current=E,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails&&(e=e.compDetails,t=t.compDetails,e.componentClass==t.componentClass)&&null!=T.current&&null!=T.current.refresh&&1!=T.current.refresh(t.params)&&d(function(e){return e+1})},[E]),oe.useLayoutEffect(function(){if(v&&!v.compDetails.componentFromFramework){var e,t=v.compDetails,n=!0===v.popup,r=function(e){e=e.newAgStackInstance();if(e)return e.resolveNow(null,function(e){return e})}(t);if(r)return e=r.getGui(),G(n,r),n||(null!=(t=(w?b:M).current)&&t.appendChild(e),r.afterGuiAttached&&r.afterGuiAttached()),y(r),function(){c.destroyBean(r),G(n,void 0),y(void 0),e&&e.parentElement&&e.parentElement.removeChild(e)}}},[v]),oe.useLayoutEffect(function(){var n,e;if(R&&c&&(b.current&&k))return n=[],e=function(e){var t;return e&&(t=e.getGui(),b.current.insertAdjacentElement("afterbegin",t),n.push(function(){c.destroyBean(e),ae._.removeFromParent(t)})),e},h&&e(R.createSelectionCheckbox()),g&&e(R.createDndSource()),C&&e(R.createRowDragComp()),function(){return n.forEach(function(e){return e()})}},[k,g,C,h,X]),ue(function(){var e;R&&(e=b.current||void 0,R.setComp({addOrRemoveCssClass:function(e,t){return F.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return B(e)},getFocusableElement:function(){return M.current},setTabIndex:function(e){return L(e)},setRole:function(e){return H(e)},setColId:function(e){return j(e)},setTitle:function(e){return K(e)},setIncludeSelection:function(e){return Y(e)},setIncludeRowDrag:function(e){return z(e)},setIncludeDndSource:function(e){return q(e)},getCellEditor:function(){return I.current||null},getCellRenderer:function(){return T.current||O.current},getParentOfValue:function(){return P.current||b.current||M.current},setRenderDetails:function(e,t,n){f({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(m({compDetails:e,popup:t,popupPosition:n}),t||f(void 0)):m(void 0)}},M.current,e,l,p))}),oe.useMemo(function(){return!!(E&&E.compDetails&&E.compDetails.componentFromFramework&&le(E.compDetails.componentClass))},[E])),re=(oe.useEffect(function(){var e;M.current&&(F.addOrRemoveCssClass("ag-cell-value",!k),F.addOrRemoveCssClass("ag-cell-inline-editing",!!v&&!v.popup),F.addOrRemoveCssClass("ag-cell-popup-editing",!!v&&!!v.popup),F.addOrRemoveCssClass("ag-cell-not-inline-editing",!v||!!v.popup),null!=(e=R.getRowCtrl()))&&e.setInlineEditingCss(!!v)}),oe.useMemo(function(){return R.getInstanceId()},[]));return se.createElement("div",{ref:M,style:_,tabIndex:x,role:U,"col-id":W,title:V},k?se.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:e},t()):t())}),$=oe.memo(function(e){var t=oe.useContext(ce).context,n=e.rowCtrl,r=e.containerType,e=oe.useState(),o=e[0],a=e[1],e=oe.useState(),s=e[0],i=e[1],e=oe.useState(),u=e[0],c=e[1],e=oe.useState(),l=e[0],p=e[1],e=oe.useState(),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],e=oe.useState({list:[],instanceIdMap:new Map}),C=e[0],g=e[1],e=oe.useState(),y=e[0],R=e[1],e=oe.useState(!1),E=e[0],v=e[1],e=oe.useState(n.getInitialRowTop(r)),S=e[0],w=e[1],e=oe.useState(n.getInitialTransform(r)),M=e[0],T=e[1],O=oe.useRef(null),I=oe.useRef(),b=oe.useRef(!1),e=oe.useState(0),P=e[0],A=e[1],N=(oe.useEffect(function(){var e;b.current||!y||10<P||((e=null==(e=O.current)?void 0:e.firstChild)?(n.setupDetailRowAutoHeight(e),b.current=!0):A(function(e){return e+1}))},[y,P]),oe.useMemo(function(){return new ae.CssClassManager(function(){return O.current})},[])),e=(ue(function(){if(n.isAlive())return n.setComp({setTop:function(e){return w(e)},setTransform:function(e){return T(e)},addOrRemoveCssClass:function(e,t){return N.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return v(e)},setRowIndex:function(e){return a(e)},setRowId:function(e){return i(e)},setRowBusinessKey:function(e){return p(e)},setTabIndex:function(e){return m(e)},setUserStyles:function(e){return h(e)},setRole:function(e){return c(e)},setCellCtrls:function(i){B(function(){g(function(e){return n=e,e=i,E?(t={list:e,instanceIdMap:new Map},e.forEach(function(e){return t.instanceIdMap.set(e.getInstanceId(),e)}),t):(r=[],o=[],a=new Map,s=new Map,e.forEach(function(e){return s.set(e.getInstanceId(),e)}),n.list.forEach(function(e){var t=e.getInstanceId();s.has(t)&&(r.push(e),a.set(t,e))}),e.forEach(function(e){var t=e.getInstanceId();n.instanceIdMap.has(t)||(o.push(e),a.set(t,e))}),{list:D(r,o),instanceIdMap:a});var n,t,r,o,a,s})})},showFullWidth:function(e){return R(e)},getFullWidthCellRenderer:function(){return I.current}},O.current,r),function(){n.unsetComp(r)}}),oe.useLayoutEffect(function(){return _(y,t,O.current,I)},[y]),oe.useMemo(function(){var e={top:S,transform:M};return Object.assign(e,d),e},[S,M,d])),k=y&&y.componentFromFramework,G=null!=C,F=oe.useMemo(function(){return!!((null==y?void 0:y.componentFromFramework)&&le(y.componentClass))},[y]);return se.createElement("div",{ref:O,role:u,style:e,"row-index":o,"row-id":s,"row-business-key":l,tabIndex:f},G&&C.list.map(function(e){return se.createElement(K,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})}),k&&(u=y.componentClass,se.createElement(se.Fragment,null,F&&se.createElement(u,ie({},y.params)),!F&&se.createElement(u,ie({},y.params,{ref:I})))))}),X=oe.memo(function(e){var r=oe.useContext(ce).context,t=oe.useState([]),n=t[0],o=t[1],a=e.name,s=oe.useMemo(function(){return ae.getRowContainerTypeForName(a)},[a]),i=oe.useRef(null),u=oe.useRef(null),c=oe.useRef(null),l=oe.useRef([]),p=oe.useRef(!1),f=oe.useMemo(function(){return ae.RowContainerCtrl.getRowContainerCssClasses(a)},[a]),t=oe.useMemo(function(){return Y(f.wrapper)},[]),e=oe.useMemo(function(){return Y(f.viewport)},[]),m=oe.useMemo(function(){return Y(f.container)},[]),d=a===ae.RowContainerName.CENTER,h=a===ae.RowContainerName.TOP_CENTER||a===ae.RowContainerName.BOTTOM_CENTER||a===ae.RowContainerName.STICKY_TOP_CENTER,C=!d&&!h;function g(){B(function(){o(function(e){var t,n=l.current;return p.current?n:(t=e.filter(function(e){return 0<=n.indexOf(e)}),e=n.filter(function(e){return t.indexOf(e)<0}),D(t,e))})})}z(" AG Row Container "+a+" ",d?i:h?u:c),ue(function(){var e=[],t={setViewportHeight:function(e){return u.current.style.height=e},setRowCtrls:function(e){l.current!==e&&(l.current=e,g())},setDomOrder:function(e){p.current!=e&&(p.current=e,g())},setContainerWidth:function(e){return c.current.style.width=e}},n=r.createBean(new ae.RowContainerCtrl(a));return e.push(n),n.setComp(t,c.current,u.current,i.current),function(){r.destroyBeans(e)}});function y(){return se.createElement("div",{className:m,ref:c,role:n.length?"rowgroup":"presentation"},n.map(function(e){return se.createElement($,{rowCtrl:e,containerType:s,key:e.getInstanceId()})}))}return se.createElement(se.Fragment,null,d&&se.createElement("div",{className:t,ref:i,role:"presentation"},se.createElement("div",{className:e,ref:u,role:"presentation"},y())),h&&se.createElement("div",{className:e,ref:u,role:"presentation"},y()),C&&y())}),Z=oe.memo(function(){function o(e){return se.createElement(X,{name:e,key:e+"-container"})}function e(e){var t=e.section,n=e.children,r=e.className,e=e.style;return se.createElement("div",{ref:t,className:r,role:"presentation",style:e},n.map(o))}var t=oe.useContext(ce),a=t.context,s=t.agStackComponentsRegistry,i=t.resizeObserverService,t=oe.useState(""),n=t[0],u=t[1],t=oe.useState(0),r=t[0],c=t[1],t=oe.useState(0),l=t[0],p=t[1],t=oe.useState("0px"),f=t[0],m=t[1],t=oe.useState("0px"),d=t[0],h=t[1],t=oe.useState("100%"),C=t[0],g=t[1],t=oe.useState(""),y=t[0],R=t[1],t=oe.useState(""),E=t[0],v=t[1],t=oe.useState(null),S=t[0],w=t[1],t=oe.useState(""),M=t[0],T=t[1],t=oe.useState(null),O=t[0],I=t[1],t=oe.useState("ag-layout-normal"),b=t[0],P=t[1],_=oe.useMemo(function(){return new ae.CssClassManager(function(){return A.current})},[]),A=oe.useRef(null),N=oe.useRef(null),k=oe.useRef(null),G=oe.useRef(null),F=oe.useRef(null),D=oe.useRef(null),t=(z(" AG Grid Body ",A),z(" AG Pinned Top ",N),z(" AG Sticky Top ",k),z(" AG Middle ",F),z(" AG Pinned Bottom ",D),ue(function(){var e,t,n=[],r=[];if(a)return e=function(e){e=s.getComponentClass(e),e=a.createBean(new e);return n.push(e),e},A.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),A.current.appendChild(e("AG-FAKE-HORIZONTAL-SCROLL").getGui()),A.current.appendChild(document.createComment(" AG Overlay Wrapper ")),A.current.appendChild(e("AG-OVERLAY-WRAPPER").getGui()),G.current.appendChild(document.createComment(" AG Fake Vertical Scroll ")),G.current.appendChild(e("AG-FAKE-VERTICAL-SCROLL").getGui()),e={setRowAnimationCssOnBodyViewport:u,setColumnCount:function(e){return ae._.setAriaColCount(A.current,e)},setRowCount:function(e){return ae._.setAriaRowCount(A.current,e)},setTopHeight:c,setBottomHeight:p,setStickyTopHeight:m,setStickyTopTop:h,setStickyTopWidth:g,setTopDisplay:R,setBottomDisplay:v,setColumnMovingCss:function(e,t){return _.addOrRemoveCssClass(e,t)},updateLayoutClasses:P,setAlwaysVerticalScrollClass:w,setPinnedTopBottomOverflowY:T,setCellSelectableCss:I,setBodyViewportWidth:function(e){return F.current.style.width=e},registerBodyViewportResizeListener:function(e){var t=i.observeResize(F.current,e);r.push(function(){return t()})}},t=a.createBean(new ae.GridBodyCtrl),n.push(t),t.setComp(e,A.current,F.current,N.current,D.current,k.current),function(){a.destroyBeans(n),r.forEach(function(e){return e()})}}),oe.useMemo(function(){return Y("ag-root","ag-unselectable",b)},[b])),B=oe.useMemo(function(){return Y("ag-body-viewport",n,b,S,O)},[n,b,S,O]),x=oe.useMemo(function(){return Y("ag-body",b)},[b]),L=oe.useMemo(function(){return Y("ag-body-clipper",b)},[b]),U=oe.useMemo(function(){return Y("ag-floating-top",O)},[O]),H=oe.useMemo(function(){return Y("ag-sticky-top",O)},[O]),W=oe.useMemo(function(){return Y("ag-floating-bottom",O)},[O]),j=oe.useMemo(function(){return{height:r,minHeight:r,display:y,overflowY:M}},[r,y,M]),V=oe.useMemo(function(){return{height:f,top:d,width:C}},[f,d,C]),K=oe.useMemo(function(){return{height:l,minHeight:l,display:E,overflowY:M}},[l,E,M]);return se.createElement("div",{ref:A,className:t,role:"treegrid"},se.createElement(q,null),e({section:N,className:U,style:j,children:[ae.RowContainerName.TOP_LEFT,ae.RowContainerName.TOP_CENTER,ae.RowContainerName.TOP_RIGHT,ae.RowContainerName.TOP_FULL_WIDTH]}),se.createElement("div",{className:x,ref:G,role:"presentation"},se.createElement("div",{className:L,role:"presentation"},e({section:F,className:B,children:[ae.RowContainerName.LEFT,ae.RowContainerName.CENTER,ae.RowContainerName.RIGHT,ae.RowContainerName.FULL_WIDTH]}))),e({section:k,className:H,style:V,children:[ae.RowContainerName.STICKY_TOP_LEFT,ae.RowContainerName.STICKY_TOP_CENTER,ae.RowContainerName.STICKY_TOP_RIGHT,ae.RowContainerName.STICKY_TOP_FULL_WIDTH]}),e({section:D,className:W,style:K,children:[ae.RowContainerName.BOTTOM_LEFT,ae.RowContainerName.BOTTOM_CENTER,ae.RowContainerName.BOTTOM_RIGHT,ae.RowContainerName.BOTTOM_FULL_WIDTH]}))}),a=oe.forwardRef(function(e,t){function n(e){var t="top"===e?ae.TabGuardClassNames.TAB_GUARD_TOP:ae.TabGuardClassNames.TAB_GUARD_BOTTOM;return se.createElement("div",{className:ae.TabGuardClassNames.TAB_GUARD+" "+t,role:"presentation",tabIndex:p,ref:"top"===e?u:c})}var r=e.children,o=e.eFocusableElement,a=e.onTabKeyDown,s=e.gridCtrl,i=oe.useContext(ce).context,u=oe.useRef(null),c=oe.useRef(null),l=oe.useRef(),e=oe.useState(),p=e[0],f=e[1];oe.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){l.current.forceFocusOutOfContainer()}}}),ue(function(){var e=u.current,t=c.current,n=l.current=i.createBean(new ae.TabGuardCtrl({comp:{setTabIndex:function(e){return f(null==e?void 0:parseInt(e,10))}},eTopGuard:e,eBottomGuard:t,eFocusableElement:o,onTabKeyDown:a,focusInnerElement:function(e){return s.focusInnerElement(e)}}));return function(){i.destroyBean(n)}});return se.createElement(se.Fragment,null,n("top"),r,n("bottom"))}),J=oe.memo(a),Q=oe.memo(function(e){var p=e.context,e=oe.useState(""),t=e[0],n=e[1],e=oe.useState(""),r=e[0],o=e[1],e=oe.useState(""),a=e[0],s=e[1],e=oe.useState(null),i=e[0],u=e[1],e=oe.useState(null),c=e[0],l=e[1],e=oe.useState(!1),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],C=oe.useRef(null),g=oe.useRef(null),y=oe.useRef(),R=oe.useRef(null),E=oe.useRef(function(){}),e=oe.useCallback(function(){},[]),v=oe.useMemo(function(){return p.getBean("beans")},[]),S=(z(" AG Grid ",g),ue(function(){var e=C.current=p.createBean(new ae.GridCtrl);return function(){p.destroyBean(e),C.current=null}}),ue(function(){var e=C.current,t=(E.current=e.focusInnerElement.bind(e),{destroyGridUi:function(){},setRtlClass:n,addOrRemoveKeyboardFocusClass:function(e){return o(e?ae.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){y.current.forceFocusOutOfContainer()},updateLayoutClasses:s,getFocusableContainers:function(){var e=[],t=g.current.querySelector(".ag-root"),n=g.current.querySelector(".ag-side-bar:not(.ag-hidden)");return t&&e.push(t),n&&e.push(n),e},setCursor:u,setUserSelect:l});e.setComp(t,g.current,g.current),m(!0)}),oe.useEffect(function(){var e,t,n,r,o,a,s,i,u,c,l;if(d)return e=C.current,t=[],c=(o=v.agStackComponentsRegistry).getComponentClass("AG-GRID-HEADER-DROP-ZONES"),u=o.getComponentClass("AG-SIDE-BAR"),n=o.getComponentClass("AG-STATUS-BAR"),r=o.getComponentClass("AG-WATERMARK"),o=o.getComponentClass("AG-PAGINATION"),a=[],s=g.current,i=R.current,e.showDropZones()&&c&&(l=(c=p.createBean(new c)).getGui(),s.insertAdjacentElement("afterbegin",l),a.push(l),t.push(c)),e.showSideBar()&&u&&(l=(c=p.createBean(new u)).getGui(),(u=i.querySelector(".ag-tab-guard-bottom"))&&(u.insertAdjacentElement("beforebegin",l),a.push(l)),t.push(c)),e.showStatusBar()&&n&&(l=(i=p.createBean(new n)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(i)),o&&(l=(u=p.createBean(new o)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(u)),e.showWatermark()&&r&&(l=(c=p.createBean(new r)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(c)),function(){p.destroyBeans(t),a.forEach(function(e){e.parentElement&&e.parentElement.removeChild(e)})}},[d]),oe.useMemo(function(){return Y("ag-root-wrapper",t,r,a)},[t,r,a])),w=oe.useMemo(function(){return Y("ag-root-wrapper-body","ag-focus-managed",a)},[a]),M=oe.useMemo(function(){return{userSelect:null!=c?c:"",WebkitUserSelect:null!=c?c:"",cursor:null!=i?i:""}},[c,i]),T=R.current,O=oe.useCallback(function(e){y.current=e,h(!0)},[]);return se.createElement("div",{ref:g,className:S,style:M,role:"presentation"},se.createElement("div",{className:w,ref:R,role:"presentation"},f&&T&&se.createElement(ce.Provider,{value:v},se.createElement(J,{ref:O,eFocusableElement:T,onTabKeyDown:e,gridCtrl:C.current},se.createElement(Z,null)))))});o(h,ee=oe.Component),h.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),U(),setTimeout(function(){return L()},0),se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&se.createElement(Q,{context:this.state.context}),this.portalManager.getPortals())},h.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},h.prototype.componentDidMount=function(){var e,t=this;this.mounted||(this.mounted=!0,e=this.props.modules||[],e={providedBeanInstances:{frameworkComponentWrapper:new ne(this.portalManager)},modules:e,frameworkOverrides:new de(!0)},this.gridOptions=this.props.gridOptions||{},this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props),this.checkForDeprecations(this.props),(new ae.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(e){t.setState({context:e}),e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.api=t.gridOptions.api,t.columnApi=t.gridOptions.columnApi,t.props.setGridApi(t.api,t.columnApi),t.destroyFuncs.push(function(){return t.api.destroy()})})},function(e){e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.whenReadyFuncs.forEach(function(e){return e()}),t.whenReadyFuncs.length=0,t.ready=!0})},e))},h.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},h.prototype.componentWillUnmount=function(){this.renderedAfterMount&&(this.destroyFuncs.forEach(function(e){return e()}),this.destroyFuncs.length=0)},h.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},h.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processChanges(n)},h.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},h.prototype.processChanges=function(e){var t=this;this.processWhenReady(function(){return ae.ComponentUtil.processOnChange(e,t.api)})},h.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)};var ee,E=h;function h(e){var t=ee.call(this,e)||this;return t.props=e,t.destroyFuncs=[],t.eGui=se.createRef(),t.whenReadyFuncs=[],t.ready=!1,t.renderedAfterMount=!1,t.mounted=!1,t.state={context:void 0},t.portalManager=new G(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t.destroyFuncs.push(function(){return t.portalManager.destroy()}),t}o(C,te=ae.BaseComponentWrapper),C.prototype.createWrapper=function(e,t){return new k(e,this.parent,t)};var te,ne=C;function C(e){var t=te.call(this)||this;return t.parent=e,t}var re,me=oe.forwardRef(function(r,e){var t=oe.useContext(ce),o=t.ctrlsFactory,a=t.context,s=t.gridOptionsService,i=t.resizeObserverService,u=t.clientSideRowModel,c=t.serverSideRowModel,t=oe.useState(new b),n=t[0],l=t[1],t=oe.useState(new b),p=t[0],f=t[1],t=oe.useState(),m=t[0],d=t[1],t=oe.useState(),h=t[0],C=t[1],g=oe.useRef(),y=oe.useRef(null),t=oe.useMemo(function(){return n.toString()+" ag-details-row"},[n]),R=oe.useMemo(function(){return p.toString()+" ag-details-grid"},[p]),e=(e&&oe.useImperativeHandle(e,function(){return{refresh:function(){return g.current.refresh()}}}),ue(function(){r.template&&"string"==typeof r.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")}),ue(function(){var e,t={addOrRemoveCssClass:function(t,n){return l(function(e){return e.setClass(t,n)})},addOrRemoveDetailGridCssClass:function(t,n){return f(function(e){return e.setClass(t,n)})},setDetailGrid:function(e){return d(e)},setRowData:function(e){return C(e)},getGui:function(){return y.current}},n=o.getInstance("detailCellRenderer");if(n)return a.createBean(n),n.init(t,r),g.current=n,s.is("detailRowAutoHeight")&&(e=i.observeResize(y.current,t=function(){var e;null!=y.current&&null!=(e=y.current.clientHeight)&&0<e&&setTimeout(function(){r.node.setRowHeight(e),u?u.onRowHeightChanged():c&&c.onRowHeightChanged()},0)}),t()),function(){a.destroyBean(n),e&&e()}}),oe.useCallback(function(e,t){g.current.registerDetailWithMaster(e,t)},[]));return se.createElement("div",{className:t,ref:y},m&&se.createElement(E,ie({className:R},m,{rowData:h,setGridApi:e})))}),de=(o(g,re=ae.VanillaFrameworkOverrides),g.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},g.prototype.isFrameworkComponent=function(e){return!(!e||(e=e.prototype)&&"getGui"in e)},g);function g(e){var t=re.call(this)||this;return t.frameworkComponents={agGroupCellRenderer:P,agGroupRowRenderer:P,agDetailCellRenderer:me},t.reactUi=e,t}o(R,he=oe.Component),R.prototype.render=function(){var t=this;return se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(e){t.eGridDiv=e}},this.portalManager.getPortals())},R.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},R.prototype.componentDidMount=function(){var e=this.props.modules||[],e={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new ge(this,this.portalManager)},modules:e,frameworkOverrides:new de(!1)},t=this.props.gridOptions||{};this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(t,this.props),this.checkForDeprecations(this.props),new ae.Grid(this.eGridDiv,this.gridOptions,e),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},R.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},R.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},R.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},R.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},R.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},R.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},R.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},R.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},R.prototype.processSynchronousChanges=function(e){var t,n=ie({},e);return 0<Object.keys(n).length&&(t={},this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach(function(e){n[e]&&(t[e]=n[e],delete n[e])}),0<Object.keys(t).length)&&this.api&&ae.ComponentUtil.processOnChange(t,this.api),n},R.prototype.processAsynchronousChanges=function(e){var t=this;0<Object.keys(e).length&&window.setTimeout(function(){t.api&&ae.ComponentUtil.processOnChange(e,t.api)})},R.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:R.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3};var he,y=R;function R(e){var t=he.call(this,e)||this;return t.props=e,t.api=null,t.destroyed=!1,t.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],t.portalManager=new G(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}function v(e,t){e.forEach(function(e){y[e]=t})}y.propTypes={gridOptions:t.object},v(ae.ComponentUtil.EVENT_CALLBACKS,t.func),v(ae.ComponentUtil.BOOLEAN_PROPERTIES,t.bool),v(ae.ComponentUtil.STRING_PROPERTIES,t.string),v(ae.ComponentUtil.OBJECT_PROPERTIES,t.object),v(ae.ComponentUtil.ARRAY_PROPERTIES,t.array),v(ae.ComponentUtil.NUMBER_PROPERTIES,t.number),v(ae.ComponentUtil.FUNCTION_PROPERTIES,t.func);o(S,Ce=ae.BaseComponentWrapper),S.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new A(e,this.agGridReact,this.portalManager,t):new k(e,this.portalManager,t)};var Ce,ge=S;function S(e,t){var n=Ce.call(this)||this;return n.agGridReact=e,n.portalManager=t,n}o(Re,ye=oe.Component),Re.prototype.render=function(){return this.props.suppressReactUi?se.createElement(y,ie({},this.props,{setGridApi:this.setGridApi})):se.createElement(E,ie({},this.props,{setGridApi:this.setGridApi}))};var ye,a=Re;function Re(){var n=null!==ye&&ye.apply(this,arguments)||this;return n.setGridApi=function(e,t){n.api=e,n.columnApi=t},n}e.AgGridReact=a,e.AgGridReactLegacy=y,e.AgGridReactFire=E,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("prop-types"),require("react-dom/server"),require("react-dom"),require("react"),require("ag-grid-community")):"function"==typeof define&&define.amd?define(["exports","prop-types","react-dom/server","react-dom","react","ag-grid-community"],t):t(e.AgGridReact={},e.PropTypes,e.ReactDOMServer,e.ReactDOM,e.React,e.agGrid)}(this,function(e,t,w,r,oe,ae){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var n="default"in r?r.default:r,se="default"in oe?oe.default:oe,M=function(e,t){return(M=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}))(e,t)};function o(e,t){function n(){this.constructor=e}M(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ie=function(){return(ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function D(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],s=0,i=a.length;s<i;s++,o++)r[o]=a[s];return r}o(s,O=function(){}),s.prototype.getGui=function(){return this.eParentElement},s.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},s.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),t=document.createElement(t||"div");return t.classList.add("ag-react-container"),e.reactContainer=t},s.prototype.addParentContainerStyleAndClasses=function(){var t=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses)&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach(function(e){return t.eParentElement.classList.add(e)})},s.prototype.statelessComponentRendered=function(){return 0<this.eParentElement.childElementCount||0<this.eParentElement.childNodes.length},s.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},s.prototype.isStatelessComponent=function(){return this.statelessComponent},s.prototype.getReactComponentName=function(){return this.reactComponent.name},s.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},s.prototype.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},s.prototype.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===this.getMemoType()},s.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},s.prototype.callMethod=function(e,t){var n,r=this,o=this.getFrameworkComponentInstance();return this.isStatelessComponent()?this.fallbackMethod(e,t&&t[0]?t[0]:{}):o?(n=o[e])?n.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0:void setTimeout(function(){return r.callMethod(e,t)})},s.prototype.addMethod=function(e,t){this[e]=t};var O,a=s;function s(e,t,n){var r=O.call(this)||this;return r.portal=null,r.reactComponent=e,r.portalManager=t,r.componentType=n,r.statelessComponent=r.isStateless(r.reactComponent),r}var T=0;function i(){return"agPortalKey_"+ ++T}o(u,I=a),u.prototype.init=function(t){var n=this;return this.eParentElement=this.createParentElement(t),this.renderStaticMarkup(t),new ae.AgPromise(function(e){return n.createReactComponent(t,e)})},u.prototype.createReactComponent=function(e,t){var n=this,e=(this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()}),oe.createElement(this.reactComponent,e)),e=r.createPortal(e,this.eParentElement,i());this.portal=e,this.portalManager.mountReactPortal(e,this,function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout(function(){n.removeStaticMarkup()}))})},u.prototype.fallbackMethodAvailable=function(e){return!1},u.prototype.fallbackMethod=function(e,t){},u.prototype.isSlowRenderer=function(){return this.staticRenderTime>=u.SLOW_RENDERING_THRESHOLD},u.prototype.isNullValue=function(){return""===this.staticMarkup},u.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,e=oe.createElement(this.reactComponent,e);try{console.error=function(){};var n=Date.now(),r=w.renderToStaticMarkup(e);this.staticRenderTime=Date.now()-n,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}finally{console.error=t}}},u.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},u.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},u.SLOW_RENDERING_THRESHOLD=3;var I,A=u;function u(e,t,n,r){e=I.call(this,e,n,r)||this;return e.staticMarkup=null,e.staticRenderTime=0,e.parentComponent=t,e}o(c,N=a),c.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new ae.AgPromise(function(e){return t.createReactComponent(e)})},c.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=oe.createElement(this.reactComponent,ie(ie({},e),{key:this.key})),this.portal=r.createPortal(this.reactElement,this.eParentElement,this.portalKey)},c.prototype.createReactComponent=function(t){this.portalManager.mountReactPortal(this.portal,this,function(e){t(e)})},c.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},c.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},c.prototype.valueRenderedIsNull=function(e){if(this.componentType.cellRenderer){var t=console.error;try{return console.error=function(){},""===w.renderToStaticMarkup(oe.createElement(this.reactComponent,e))}catch(e){}finally{console.error=t}}return!1},c.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},c.prototype.fallbackMethod=function(e,t){e=this[e+"Component"];if(e)return e.bind(this)(t)},c.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]};var N,G=c;function c(e,t,n){e=N.call(this,e,t,n)||this;return e.oldPortal=null,e.key=i(),e.portalKey=i(),e}l.prototype.getPortals=function(){return this.portals},l.prototype.destroy=function(){this.destroyed=!0},l.prototype.destroyPortal=function(t){this.portals=this.portals.filter(function(e){return e!==t}),this.batchUpdate()},l.prototype.getComponentWrappingElement=function(){return this.wrappingElement},l.prototype.mountReactPortal=function(e,t,n){this.portals=D(this.portals,[e]),this.waitForInstance(t,n),this.batchUpdate()},l.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},l.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout(function(){e.destroyed||e.parent.forceUpdate(function(){e.hasPendingPortalUpdate=!1})}),this.hasPendingPortalUpdate=!0)},l.prototype.waitForInstance=function(e,t,n){var r=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout(function(){r.waitForInstance(e,t,n)})}},l.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3;var k=l;function l(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.parent=e,this.maxComponentCreationTimeMs=n||l.MAX_COMPONENT_CREATION_TIME_IN_MS}function _(e,t,n,r){var o=!e||e.componentFromFramework;if(!o){var a,s,i,o=e.newAgStackInstance();if(o)return i=!1,o.then(function(e){i?t.destroyBean(e):(s=(a=e).getGui(),n.appendChild(s),F(r,a))}),function(){i=!0,a&&(s&&s.parentElement&&s.parentElement.removeChild(s),t.destroyBean(a),r)&&F(r,void 0)}}}function F(e,t){e&&(e instanceof Function?e(t):e.current=t)}function ue(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useLayoutEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])}function Y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")}var ce=se.createContext({}),pe=function(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])},b=(p.prototype.setClass=function(e,t){var n;return!!this.classesMap[e]==t?this:((n=new p).classesMap=ie({},this.classesMap),n.classesMap[e]=t,n)},p.prototype.toString=function(){var t=this;return Object.keys(this.classesMap).filter(function(e){return t.classesMap[e]}).join(" ")},p);function p(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.classesMap={},e.forEach(function(e){t.classesMap[e]=!0})}function le(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===("function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)}function x(e){B?n.flushSync(e):e()}function q(r,o){pe(function(){var e,t=o.current,n=t.parentElement;if(n)return e=document.createComment(r),n.insertBefore(e,t),function(){n.removeChild(e)}})}var B=null!=n.createRoot&&null!=n.flushSync,P=oe.forwardRef(function(n,e){var r=oe.useContext(ce).context,o=oe.useRef(null),t=oe.useRef(null),a=oe.useRef(null),s=oe.useRef(null),i=oe.useRef(null),u=oe.useState(),c=u[0],l=u[1],u=oe.useState(),p=u[0],f=u[1],u=oe.useState(),m=u[0],d=u[1],u=oe.useState(new b),h=u[0],C=u[1],u=oe.useState(new b("ag-hidden")),g=u[0],y=u[1],u=oe.useState(new b("ag-hidden")),R=u[0],E=u[1],u=oe.useState(new b("ag-invisible")),v=u[0],S=u[1],u=(oe.useImperativeHandle(e,function(){return{refresh:function(){return!1}}}),oe.useLayoutEffect(function(){return _(c,r,t.current)},[c]),ue(function(){var e={setInnerRenderer:function(e,t){l(e),d(t)},setChildCount:function(e){return f(e)},addOrRemoveCssClass:function(t,n){return C(function(e){return e.setClass(t,n)})},setContractedDisplayed:function(t){return E(function(e){return e.setClass("ag-hidden",!t)})},setExpandedDisplayed:function(t){return y(function(e){return e.setClass("ag-hidden",!t)})},setCheckboxVisible:function(t){return S(function(e){return e.setClass("ag-invisible",!t)})}},t=r.createBean(new ae.GroupCellRendererCtrl);return t.init(e,o.current,a.current,s.current,i.current,P,n),function(){r.destroyBean(t)}}),oe.useMemo(function(){return"ag-cell-wrapper "+h.toString()},[h])),e=oe.useMemo(function(){return"ag-group-expanded "+g.toString()},[g]),w=oe.useMemo(function(){return"ag-group-contracted "+R.toString()},[R]),M=oe.useMemo(function(){return"ag-group-checkbox "+v.toString()},[v]),O=c&&c.componentFromFramework,T=O?c.componentClass:void 0,I=null==c&&null!=m,m=ae._.escapeString(m,!0);return se.createElement("span",ie({className:u,ref:o},n.colDef?{}:{role:"gridcell"}),se.createElement("span",{className:e,ref:s}),se.createElement("span",{className:w,ref:i}),se.createElement("span",{className:M,ref:a}),se.createElement("span",{className:"ag-group-value",ref:t},I&&se.createElement(se.Fragment,null,m),O&&se.createElement(T,ie({},c.params))),se.createElement("span",{className:"ag-group-child-count"},p))}),L=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(),r=n[0],o=n[1],n=oe.useState(),a=n[0],s=n[1],n=oe.useState(),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],m=oe.useRef(null),d=oe.useRef(null),h=oe.useRef(null),C=oe.useRef(),g=e.ctrl,y=oe.useMemo(function(){return new ae.CssClassManager(function(){return m.current})},[]),n=(ue(function(){g.setComp({setWidth:function(e){return m.current.style.width=e},addOrRemoveCssClass:function(e,t){return y.addOrRemoveCssClass(e,t)},setColId:function(e){return s(e)},setTitle:function(e){return o(e)},setAriaDescription:function(e){return l(e)},setAriaSort:function(e){return u(e)},setUserCompDetails:function(e){return f(e)},getUserCompInstance:function(){return C.current||void 0}},m.current,d.current,h.current);var e=g.getSelectAllGui();d.current.insertAdjacentElement("afterend",e)}),oe.useLayoutEffect(function(){return _(p,t,h.current,C)},[p]),oe.useEffect(function(){g.setDragSource(m.current)},[p]),oe.useMemo(function(){return!!((null==p?void 0:p.componentFromFramework)&&le(p.componentClass))},[p])),e=p&&p.componentFromFramework,R=p&&p.componentClass;return se.createElement("div",{ref:m,className:"ag-header-cell",title:r,"col-id":a,"aria-sort":i,role:"columnheader",tabIndex:-1,"aria-description":c},se.createElement("div",{ref:d,className:"ag-header-cell-resize",role:"presentation"}),se.createElement("div",{ref:h,className:"ag-header-cell-comp-wrapper",role:"presentation"},e&&n&&se.createElement(R,ie({},p.params)),e&&!n&&se.createElement(R,ie({},p.params,{ref:C}))))}),U=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(new b),r=n[0],o=n[1],n=oe.useState(new b),a=n[0],s=n[1],n=oe.useState("false"),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],n=oe.useState(),m=n[0],d=n[1],n=oe.useState(),h=n[0],C=n[1],g=oe.useRef(null),y=oe.useRef(null),R=e.ctrl,n=(ue(function(){R.setComp({setWidth:function(e){return g.current.style.width=e},addOrRemoveCssClass:function(t,n){return o(function(e){return e.setClass(t,n)})},setColId:function(e){return f(e)},setTitle:function(e){return l(e)},setUserCompDetails:function(e){return C(e)},setResizableDisplayed:function(t){s(function(e){return e.setClass("ag-hidden",!t)}),u(t?"false":"true")},setAriaExpanded:function(e){return d(e)}},g.current,y.current)}),oe.useLayoutEffect(function(){return _(h,t,g.current)},[h]),oe.useEffect(function(){var t=void 0;g.current.childNodes.forEach(function(e){null!=e&&e!==y.current&&(t=e)}),t&&R.setDragSource(t)},[h]),oe.useMemo(function(){return"ag-header-group-cell "+r.toString()},[r])),e=oe.useMemo(function(){return"ag-header-cell-resize "+a.toString()},[a]),E=h&&h.componentFromFramework,v=h&&h.componentClass;return se.createElement("div",{ref:g,className:n,title:c,"col-id":p,role:"columnheader",tabIndex:-1,"aria-expanded":m},E&&se.createElement(v,ie({},h.params)),se.createElement("div",{ref:y,"aria-hidden":i,className:e}))}),H=oe.memo(function(e){function t(e){g.current||null!=e&&(y.current&&y.current(e),g.current=!0)}var n=oe.useContext(ce).context,r=oe.useState(new b("ag-header-cell","ag-floating-filter")),o=r[0],a=r[1],r=oe.useState(new b),s=r[0],i=r[1],r=oe.useState(new b("ag-floating-filter-button","ag-hidden")),u=r[0],c=r[1],r=oe.useState("false"),l=r[0],p=r[1],r=oe.useState(),f=r[0],m=r[1],d=oe.useRef(null),h=oe.useRef(null),r=oe.useRef(null),C=oe.useRef(null),g=oe.useRef(!1),y=oe.useRef(),R=oe.useRef(),E=(ue(function(){R.current=new ae.AgPromise(function(e){y.current=e})}),e.ctrl),e=(ue(function(){E.setComp({addOrRemoveCssClass:function(t,n){return a(function(e){return e.setClass(t,n)})},addOrRemoveBodyCssClass:function(t,n){return i(function(e){return e.setClass(t,n)})},setButtonWrapperDisplayed:function(t){c(function(e){return e.setClass("ag-hidden",!t)}),p(t?"false":"true")},setWidth:function(e){return d.current.style.width=e},setCompDetails:function(e){return m(e)},getFloatingFilterComp:function(){return R.current||null},setMenuIcon:function(e){return C.current.appendChild(e)}},d.current,C.current,h.current)}),oe.useLayoutEffect(function(){return _(f,n,h.current,t)},[f]),oe.useMemo(function(){return o.toString()},[o])),v=oe.useMemo(function(){return s.toString()},[s]),S=oe.useMemo(function(){return u.toString()},[u]),w=oe.useMemo(function(){return!!(f&&f.componentFromFramework&&le(f.componentClass))},[f]),M=f&&f.componentFromFramework,O=f&&f.componentClass;return se.createElement("div",{ref:d,className:e,role:"gridcell",tabIndex:-1},se.createElement("div",{ref:h,className:v,role:"presentation"},M&&w&&se.createElement(O,ie({},f.params)),M&&!w&&se.createElement(O,ie({},f.params,{ref:t}))),se.createElement("div",{ref:r,"aria-hidden":l,className:S,role:"presentation"},se.createElement("button",{ref:C,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}),W=oe.memo(function(e){var s=oe.useContext(ce).gridOptionsService,t=oe.useState(),n=t[0],r=t[1],t=oe.useState(),o=t[0],a=t[1],t=oe.useState(),i=t[0],u=t[1],t=oe.useState(),c=t[0],l=t[1],t=oe.useState([]),p=t[0],f=t[1],m=oe.useRef(null),d=e.ctrl,h=d.getType()===ae.HeaderRowType.COLUMN,C=d.getType()===ae.HeaderRowType.COLUMN_GROUP,g=d.getType()===ae.HeaderRowType.FLOATING_FILTER,y=oe.useCallback(function(e,t){var n,r,o=s.is("ensureDomOrder"),a=s.isDomLayout("print");return o||a?t:(n=ae._.mapById(e,function(e){return e.getInstanceId()}),r=ae._.mapById(t,function(e){return e.getInstanceId()}),D(e.filter(function(e){return r.has(e.getInstanceId())}),t.filter(function(e){return!n.has(e.getInstanceId())})))},[]),t=(ue(function(){d.setComp({setTransform:function(e){return r(e)},setHeight:function(e){return a(e)},setTop:function(e){return u(e)},setHeaderCtrls:function(t){return f(function(e){return y(e,t)})},setWidth:function(e){return m.current.style.width=e},setAriaRowIndex:function(e){return l(e)}})}),oe.useMemo(function(){return{transform:n,height:o,top:i}},[n,o,i])),e=oe.useMemo(function(){var e=["ag-header-row"];return h&&e.push("ag-header-row-column"),C&&e.push("ag-header-row-column-group"),g&&e.push("ag-header-row-column-filter"),e.join(" ")},[]),R=oe.useCallback(function(e){switch(d.getType()){case ae.HeaderRowType.COLUMN_GROUP:return se.createElement(U,{ctrl:e,key:e.getInstanceId()});case ae.HeaderRowType.FLOATING_FILTER:return se.createElement(H,{ctrl:e,key:e.getInstanceId()});default:return se.createElement(L,{ctrl:e,key:e.getInstanceId()})}},[]);return se.createElement("div",{ref:m,className:e,role:"row",style:t,"aria-rowindex":c},p.map(R))}),f=oe.memo(function(n){function e(){return i.map(function(e){return se.createElement(W,{ctrl:e,key:e.getInstanceId()})})}var t=oe.useState(new b),r=t[0],o=t[1],t=oe.useState(!1),a=t[0],s=t[1],t=oe.useState([]),i=t[0],u=t[1],c=oe.useContext(ce).context,l=oe.useRef(null),p=oe.useRef(null),t="left"===n.pinned,f="right"===n.pinned,m=!t&&!f,d=(ue(function(){var e={setDisplayed:function(t){o(function(e){return e.setClass("ag-hidden",!t)}),s(!t)},setCtrls:function(e){return u(e)},setCenterWidth:function(e){p.current&&(p.current.style.width=e)},setViewportScrollLeft:function(e){l.current&&(l.current.scrollLeft=e)},setPinnedContainerWidth:function(e){l.current.style.width=e,l.current.style.minWidth=e,l.current.style.maxWidth=e}},t=c.createBean(new ae.HeaderRowContainerCtrl(n.pinned));return t.setComp(e,l.current),function(){c.destroyBean(t)}}),oe.useMemo(function(){return r.toString()},[r]));return se.createElement(se.Fragment,null,t&&se.createElement("div",{ref:l,className:"ag-pinned-left-header "+d,"aria-hidden":a,role:"presentation"},e()),f&&se.createElement("div",{ref:l,className:"ag-pinned-right-header "+d,"aria-hidden":a,role:"presentation"},e()),m&&se.createElement("div",{ref:l,className:"ag-header-viewport "+d,role:"presentation"},se.createElement("div",{ref:p,className:"ag-header-container",role:"rowgroup"},e())))}),z=oe.memo(function(){var e=oe.useState(new b),t=e[0],r=e[1],e=oe.useState(),n=e[0],o=e[1],a=oe.useContext(ce).context,s=oe.useRef(null),e=(ue(function(){var e={addOrRemoveCssClass:function(t,n){return r(function(e){return e.setClass(t,n)})},setHeightAndMinHeight:function(e){return o(e)}},t=a.createBean(new ae.GridHeaderCtrl);return t.setComp(e,s.current,s.current),function(){a.destroyBean(t)}}),oe.useMemo(function(){return"ag-header "+t.toString()},[t])),i=oe.useMemo(function(){return{height:n,minHeight:n}},[n]);return se.createElement("div",{ref:s,className:e,style:i,role:"presentation"},se.createElement(f,{pinned:"left"}),se.createElement(f,{pinned:null}),se.createElement(f,{pinned:"right"}))}),fe=oe.memo(function(u){var e=oe.useState(),t=e[0],c=e[1],e=oe.useContext(ce),l=e.context,p=e.popupService,f=e.localeService,m=e.gridOptionsService;return ue(function(){var e=u.editDetails,t=u.cellCtrl,n=u.eParentCell,r=e.compDetails,o=m.is("stopEditingWhenCellsLoseFocus"),a=l.createBean(new ae.PopupEditorWrapper(r.params)),r=a.getGui(),s=(u.jsChildComp&&(s=u.jsChildComp.getGui())&&r.appendChild(s),{column:t.getColumn(),rowNode:t.getRowNode(),type:"popupCellEditor",eventSource:n,ePopup:r,position:e.popupPosition,keepWithinBounds:!0}),e=p.positionPopupByComponent.bind(p,s),s=f.getLocaleTextFunc(),o=p.addPopup({modal:o,eChild:r,closeOnEsc:!0,closedCallback:function(){t.onPopupEditorClosed()},anchorToElement:n,positionCallback:e,ariaLabel:s("ariaLabelCellEditor","Cell Editor")}),i=o?o.hideFunc:void 0;return c(a),u.jsChildComp&&u.jsChildComp.afterGuiAttached&&u.jsChildComp.afterGuiAttached(),function(){null!=i&&i(),l.destroyBean(a)}}),se.createElement(se.Fragment,null,t&&u.wrappedContent&&r.createPortal(u.wrappedContent,t.getGui()))}),j=oe.memo(function(e){function t(){return se.createElement(se.Fragment,null,null!=E&&(i=S,u=re,c=O,l=G,p=ne,f=Q,m=(s=E).compDetails,s=s.value,d=!m,h=m&&m.componentFromFramework,C=m&&m.componentClass,g=null!=s&&s.toString?s.toString():s,se.createElement(se.Fragment,null,l?se.createElement("span",{role:"presentation",id:"cell-"+u,className:"ag-cell-value",ref:f},y()):y())),null!=v&&(s=v,l=te,u=ee,f=M.current,e=R,t=$,n=s.compDetails,r=n.componentClass,o=n.componentFromFramework&&!s.popup,a=n.componentFromFramework&&s.popup,n=!n.componentFromFramework&&s.popup,se.createElement(se.Fragment,null,o&&se.createElement(r,ie({},s.compDetails.params,{ref:l})),a&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,wrappedContent:se.createElement(r,ie({},s.compDetails.params,{ref:u}))}),n&&t&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,jsChildComp:t}))));var e,t,n,r,o,a,s,i,u,c,l,p,f,m,d,h,C,g;function y(){return se.createElement(se.Fragment,null,d&&se.createElement(se.Fragment,null,g),h&&!p&&se.createElement(C,ie({},m.params,{key:i,ref:c})),h&&p&&se.createElement(C,ie({},m.params,{key:i})))}}var n,r,o,a,s,i,u,c=oe.useContext(ce).context,R=e.cellCtrl,l=e.printLayout,p=e.editingRow,e=oe.useState(),E=e[0],f=e[1],e=oe.useState(),v=e[0],m=e[1],e=oe.useState(1),S=e[0],d=e[1],e=oe.useState(),_=e[0],x=e[1],e=oe.useState(),B=e[0],L=e[1],e=oe.useState(),U=e[0],H=e[1],e=oe.useState(),W=e[0],j=e[1],e=oe.useState(),V=e[0],K=e[1],e=oe.useState(!1),h=e[0],Y=e[1],e=oe.useState(!1),C=e[0],q=e[1],e=oe.useState(!1),g=e[0],z=e[1],e=oe.useState(),$=e[0],y=e[1],w=oe.useMemo(function(){return R.isForceWrapper()},[]),M=oe.useRef(null),O=oe.useRef(null),T=oe.useRef(),I=oe.useRef(),b=oe.useRef(),e=oe.useState(0),X=e[0],Z=e[1],e=oe.useCallback(function(e){b.current=e,Z(function(e){return e+1})},[]),P=oe.useRef(),A=oe.useState(0),N=A[0],J=A[1],Q=oe.useCallback(function(e){P.current=e,J(function(e){return e+1})},[]),G=w||null!=E&&(h||g||C),k=oe.useCallback(function(e,t){var n,r,o,a,s;(I.current=t)&&(e=e,n=t,s=(r=R).getColumn(),!e&&n.isPopup&&n.isPopup()&&(o="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(o)},"jsEditorComp-isPopup-"+r.getColumn().getColId())),e&&n.getPopupPosition&&null!=n.getPopupPosition()&&(a="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(a)},"jsEditorComp-getPopupPosition-"+r.getColumn().getColId())),t.isCancelBeforeStart)&&t.isCancelBeforeStart()&&setTimeout(function(){R.stopEditing(!0),R.focusCell(!0)})},[]),ee=oe.useCallback(function(e){return k(!0,e)},[]),te=oe.useCallback(function(e){return k(!1,e)},[]),F=oe.useMemo(function(){return new ae.CssClassManager(function(){return M.current})},[]),D=(n=E,r=G,o=P.current,A=N,a=T,s=M,N=oe.useContext(ce),i=N.context,N.userComponentFactory,u=oe.useCallback(function(){var e,t=a.current;t&&((e=t.getGui())&&e.parentElement&&e.parentElement.removeChild(e),i.destroyBean(t),a.current=void 0)},[]),oe.useEffect(function(){var e=n&&n.compDetails&&!n.compDetails.componentFromFramework;if(null!=n&&e&&!(r&&null==o)){e=n.compDetails;if(a.current){var t=a.current,t=null!=t.refresh&&0==n.force&&t.refresh(e.params);if(!0===t||void 0===t)return;u()}t=e.newAgStackInstance();t&&(e=t.resolveNow(null,function(e){return e}))&&(t=e.getGui())&&((r?o:s.current).appendChild(t),a.current=e)}else u()},[n,r,A]),pe(function(){return u}),oe.useRef()),ne=(oe.useLayoutEffect(function(){var e=D.current,t=E;D.current=E,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails&&(e=e.compDetails,t=t.compDetails,e.componentClass==t.componentClass)&&null!=O.current&&null!=O.current.refresh&&1!=O.current.refresh(t.params)&&d(function(e){return e+1})},[E]),oe.useLayoutEffect(function(){if(v&&!v.compDetails.componentFromFramework){var e,t=v.compDetails,n=!0===v.popup,r=function(e){e=e.newAgStackInstance();if(e)return e.resolveNow(null,function(e){return e})}(t);if(r)return e=r.getGui(),k(n,r),n||(null!=(t=(w?b:M).current)&&t.appendChild(e),r.afterGuiAttached&&r.afterGuiAttached()),y(r),function(){c.destroyBean(r),k(n,void 0),y(void 0),e&&e.parentElement&&e.parentElement.removeChild(e)}}},[v]),oe.useLayoutEffect(function(){var n,e;if(R&&c&&(b.current&&G))return n=[],e=function(e){var t;return e&&(t=e.getGui(),b.current.insertAdjacentElement("afterbegin",t),n.push(function(){c.destroyBean(e),ae._.removeFromParent(t)})),e},h&&e(R.createSelectionCheckbox()),g&&e(R.createDndSource()),C&&e(R.createRowDragComp()),function(){return n.forEach(function(e){return e()})}},[G,g,C,h,X]),ue(function(){var e;R&&(e=b.current||void 0,R.setComp({addOrRemoveCssClass:function(e,t){return F.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return x(e)},getFocusableElement:function(){return M.current},setTabIndex:function(e){return L(e)},setRole:function(e){return H(e)},setColId:function(e){return j(e)},setTitle:function(e){return K(e)},setIncludeSelection:function(e){return Y(e)},setIncludeRowDrag:function(e){return q(e)},setIncludeDndSource:function(e){return z(e)},getCellEditor:function(){return I.current||null},getCellRenderer:function(){return O.current||T.current},getParentOfValue:function(){return P.current||b.current||M.current},setRenderDetails:function(e,t,n){f({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(m({compDetails:e,popup:t,popupPosition:n}),t||f(void 0)):m(void 0)}},M.current,e,l,p))}),oe.useMemo(function(){return!!(E&&E.compDetails&&E.compDetails.componentFromFramework&&le(E.compDetails.componentClass))},[E])),re=(oe.useEffect(function(){var e;M.current&&(F.addOrRemoveCssClass("ag-cell-value",!G),F.addOrRemoveCssClass("ag-cell-inline-editing",!!v&&!v.popup),F.addOrRemoveCssClass("ag-cell-popup-editing",!!v&&!!v.popup),F.addOrRemoveCssClass("ag-cell-not-inline-editing",!v||!!v.popup),null!=(e=R.getRowCtrl()))&&e.setInlineEditingCss(!!v)}),oe.useMemo(function(){return R.getInstanceId()},[]));return se.createElement("div",{ref:M,style:_,tabIndex:B,role:U,"col-id":W,title:V},G?se.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:e},t()):t())}),V=oe.memo(function(e){var t=oe.useContext(ce).context,n=e.rowCtrl,r=e.containerType,e=oe.useState(),o=e[0],a=e[1],e=oe.useState(),s=e[0],i=e[1],e=oe.useState(),u=e[0],c=e[1],e=oe.useState(),l=e[0],p=e[1],e=oe.useState(),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],e=oe.useState({list:[],instanceIdMap:new Map}),C=e[0],g=e[1],e=oe.useState(),y=e[0],R=e[1],e=oe.useState(!1),E=e[0],v=e[1],e=oe.useState(n.getInitialRowTop(r)),S=e[0],w=e[1],e=oe.useState(n.getInitialTransform(r)),M=e[0],O=e[1],T=oe.useRef(null),I=oe.useRef(),b=oe.useRef(!1),e=oe.useState(0),P=e[0],A=e[1],N=(oe.useEffect(function(){var e;b.current||!y||10<P||((e=null==(e=T.current)?void 0:e.firstChild)?(n.setupDetailRowAutoHeight(e),b.current=!0):A(function(e){return e+1}))},[y,P]),oe.useMemo(function(){return new ae.CssClassManager(function(){return T.current})},[])),e=(ue(function(){if(n.isAlive())return n.setComp({setTop:function(e){return w(e)},setTransform:function(e){return O(e)},addOrRemoveCssClass:function(e,t){return N.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return v(e)},setRowIndex:function(e){return a(e)},setRowId:function(e){return i(e)},setRowBusinessKey:function(e){return p(e)},setTabIndex:function(e){return m(e)},setUserStyles:function(e){return h(e)},setRole:function(e){return c(e)},setCellCtrls:function(i){x(function(){g(function(e){return n=e,e=i,E?(t={list:e,instanceIdMap:new Map},e.forEach(function(e){return t.instanceIdMap.set(e.getInstanceId(),e)}),t):(r=[],o=[],a=new Map,s=new Map,e.forEach(function(e){return s.set(e.getInstanceId(),e)}),n.list.forEach(function(e){var t=e.getInstanceId();s.has(t)&&(r.push(e),a.set(t,e))}),e.forEach(function(e){var t=e.getInstanceId();n.instanceIdMap.has(t)||(o.push(e),a.set(t,e))}),{list:D(r,o),instanceIdMap:a});var n,t,r,o,a,s})})},showFullWidth:function(e){return R(e)},getFullWidthCellRenderer:function(){return I.current}},T.current,r),function(){n.unsetComp(r)}}),oe.useLayoutEffect(function(){return _(y,t,T.current,I)},[y]),oe.useMemo(function(){var e={top:S,transform:M};return Object.assign(e,d),e},[S,M,d])),G=y&&y.componentFromFramework,k=null!=C,F=oe.useMemo(function(){return!!((null==y?void 0:y.componentFromFramework)&&le(y.componentClass))},[y]);return se.createElement("div",{ref:T,role:u,style:e,"row-index":o,"row-id":s,"row-business-key":l,tabIndex:f},k&&C.list.map(function(e){return se.createElement(j,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})}),G&&(u=y.componentClass,se.createElement(se.Fragment,null,F&&se.createElement(u,ie({},y.params)),!F&&se.createElement(u,ie({},y.params,{ref:I})))))}),$=oe.memo(function(e){var r=oe.useContext(ce).context,t=oe.useState([]),n=t[0],o=t[1],a=e.name,s=oe.useMemo(function(){return ae.getRowContainerTypeForName(a)},[a]),i=oe.useRef(null),u=oe.useRef(null),c=oe.useRef(null),l=oe.useRef([]),p=oe.useRef(!1),f=oe.useMemo(function(){return ae.RowContainerCtrl.getRowContainerCssClasses(a)},[a]),t=oe.useMemo(function(){return Y(f.wrapper)},[]),e=oe.useMemo(function(){return Y(f.viewport)},[]),m=oe.useMemo(function(){return Y(f.container)},[]),d=a===ae.RowContainerName.CENTER,h=a===ae.RowContainerName.TOP_CENTER||a===ae.RowContainerName.BOTTOM_CENTER||a===ae.RowContainerName.STICKY_TOP_CENTER,C=!d&&!h;function g(){x(function(){o(function(e){var t,n=l.current;return p.current?n:(t=e.filter(function(e){return 0<=n.indexOf(e)}),e=n.filter(function(e){return t.indexOf(e)<0}),D(t,e))})})}q(" AG Row Container "+a+" ",d?i:h?u:c),ue(function(){var e=[],t={setViewportHeight:function(e){return u.current.style.height=e},setRowCtrls:function(e){l.current!==e&&(l.current=e,g())},setDomOrder:function(e){p.current!=e&&(p.current=e,g())},setContainerWidth:function(e){return c.current.style.width=e}},n=r.createBean(new ae.RowContainerCtrl(a));return e.push(n),n.setComp(t,c.current,u.current,i.current),function(){r.destroyBeans(e)}});function y(){return se.createElement("div",{className:m,ref:c,role:n.length?"rowgroup":"presentation"},n.map(function(e){return se.createElement(V,{rowCtrl:e,containerType:s,key:e.getInstanceId()})}))}return se.createElement(se.Fragment,null,d&&se.createElement("div",{className:t,ref:i,role:"presentation"},se.createElement("div",{className:e,ref:u,role:"presentation"},y())),h&&se.createElement("div",{className:e,ref:u,role:"presentation"},y()),C&&y())}),K=oe.memo(function(){function o(e){return se.createElement($,{name:e,key:e+"-container"})}function e(e){var t=e.section,n=e.children,r=e.className,e=e.style;return se.createElement("div",{ref:t,className:r,role:"presentation",style:e},n.map(o))}var t=oe.useContext(ce),a=t.context,s=t.agStackComponentsRegistry,i=t.resizeObserverService,t=oe.useState(""),n=t[0],u=t[1],t=oe.useState(0),r=t[0],c=t[1],t=oe.useState(0),l=t[0],p=t[1],t=oe.useState("0px"),f=t[0],m=t[1],t=oe.useState("0px"),d=t[0],h=t[1],t=oe.useState("100%"),C=t[0],g=t[1],t=oe.useState(""),y=t[0],R=t[1],t=oe.useState(""),E=t[0],v=t[1],t=oe.useState(null),S=t[0],w=t[1],t=oe.useState(""),M=t[0],O=t[1],t=oe.useState(null),T=t[0],I=t[1],t=oe.useState("ag-layout-normal"),b=t[0],P=t[1],_=oe.useMemo(function(){return new ae.CssClassManager(function(){return A.current})},[]),A=oe.useRef(null),N=oe.useRef(null),G=oe.useRef(null),k=oe.useRef(null),F=oe.useRef(null),D=oe.useRef(null),t=(q(" AG Grid Body ",A),q(" AG Pinned Top ",N),q(" AG Sticky Top ",G),q(" AG Middle ",F),q(" AG Pinned Bottom ",D),ue(function(){var e,t,n=[],r=[];if(a)return e=function(e){e=s.getComponentClass(e),e=a.createBean(new e);return n.push(e),e},A.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),A.current.appendChild(e("AG-FAKE-HORIZONTAL-SCROLL").getGui()),A.current.appendChild(document.createComment(" AG Overlay Wrapper ")),A.current.appendChild(e("AG-OVERLAY-WRAPPER").getGui()),k.current.appendChild(document.createComment(" AG Fake Vertical Scroll ")),k.current.appendChild(e("AG-FAKE-VERTICAL-SCROLL").getGui()),e={setRowAnimationCssOnBodyViewport:u,setColumnCount:function(e){return ae._.setAriaColCount(A.current,e)},setRowCount:function(e){return ae._.setAriaRowCount(A.current,e)},setTopHeight:c,setBottomHeight:p,setStickyTopHeight:m,setStickyTopTop:h,setStickyTopWidth:g,setTopDisplay:R,setBottomDisplay:v,setColumnMovingCss:function(e,t){return _.addOrRemoveCssClass(e,t)},updateLayoutClasses:P,setAlwaysVerticalScrollClass:w,setPinnedTopBottomOverflowY:O,setCellSelectableCss:I,setBodyViewportWidth:function(e){return F.current.style.width=e},registerBodyViewportResizeListener:function(e){var t=i.observeResize(F.current,e);r.push(function(){return t()})}},t=a.createBean(new ae.GridBodyCtrl),n.push(t),t.setComp(e,A.current,F.current,N.current,D.current,G.current),function(){a.destroyBeans(n),r.forEach(function(e){return e()})}}),oe.useMemo(function(){return Y("ag-root","ag-unselectable",b)},[b])),x=oe.useMemo(function(){return Y("ag-body-viewport",n,b,S,T)},[n,b,S,T]),B=oe.useMemo(function(){return Y("ag-body",b)},[b]),L=oe.useMemo(function(){return Y("ag-body-clipper",b)},[b]),U=oe.useMemo(function(){return Y("ag-floating-top",T)},[T]),H=oe.useMemo(function(){return Y("ag-sticky-top",T)},[T]),W=oe.useMemo(function(){return Y("ag-floating-bottom",T)},[T]),j=oe.useMemo(function(){return{height:r,minHeight:r,display:y,overflowY:M}},[r,y,M]),V=oe.useMemo(function(){return{height:f,top:d,width:C}},[f,d,C]),K=oe.useMemo(function(){return{height:l,minHeight:l,display:E,overflowY:M}},[l,E,M]);return se.createElement("div",{ref:A,className:t,role:"treegrid"},se.createElement(z,null),e({section:N,className:U,style:j,children:[ae.RowContainerName.TOP_LEFT,ae.RowContainerName.TOP_CENTER,ae.RowContainerName.TOP_RIGHT,ae.RowContainerName.TOP_FULL_WIDTH]}),se.createElement("div",{className:B,ref:k,role:"presentation"},se.createElement("div",{className:L,role:"presentation"},e({section:F,className:x,children:[ae.RowContainerName.LEFT,ae.RowContainerName.CENTER,ae.RowContainerName.RIGHT,ae.RowContainerName.FULL_WIDTH]}))),e({section:G,className:H,style:V,children:[ae.RowContainerName.STICKY_TOP_LEFT,ae.RowContainerName.STICKY_TOP_CENTER,ae.RowContainerName.STICKY_TOP_RIGHT,ae.RowContainerName.STICKY_TOP_FULL_WIDTH]}),e({section:D,className:W,style:K,children:[ae.RowContainerName.BOTTOM_LEFT,ae.RowContainerName.BOTTOM_CENTER,ae.RowContainerName.BOTTOM_RIGHT,ae.RowContainerName.BOTTOM_FULL_WIDTH]}))}),a=oe.forwardRef(function(e,t){function n(e){var t="top"===e?ae.TabGuardClassNames.TAB_GUARD_TOP:ae.TabGuardClassNames.TAB_GUARD_BOTTOM;return se.createElement("div",{className:ae.TabGuardClassNames.TAB_GUARD+" "+t,role:"presentation",tabIndex:p,ref:"top"===e?u:c})}var r=e.children,o=e.eFocusableElement,a=e.onTabKeyDown,s=e.gridCtrl,i=oe.useContext(ce).context,u=oe.useRef(null),c=oe.useRef(null),l=oe.useRef(),e=oe.useState(),p=e[0],f=e[1];oe.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){l.current.forceFocusOutOfContainer()}}}),ue(function(){var e=u.current,t=c.current,n=l.current=i.createBean(new ae.TabGuardCtrl({comp:{setTabIndex:function(e){return f(null==e?void 0:parseInt(e,10))}},eTopGuard:e,eBottomGuard:t,eFocusableElement:o,onTabKeyDown:a,focusInnerElement:function(e){return s.focusInnerElement(e)}}));return function(){i.destroyBean(n)}});return se.createElement(se.Fragment,null,n("top"),r,n("bottom"))}),X=oe.memo(a),Z=oe.memo(function(e){var p=e.context,e=oe.useState(""),t=e[0],n=e[1],e=oe.useState(""),r=e[0],o=e[1],e=oe.useState(""),a=e[0],s=e[1],e=oe.useState(null),i=e[0],u=e[1],e=oe.useState(null),c=e[0],l=e[1],e=oe.useState(!1),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],C=oe.useRef(null),g=oe.useRef(null),y=oe.useRef(),R=oe.useRef(null),E=oe.useRef(function(){}),e=oe.useCallback(function(){},[]),v=oe.useMemo(function(){return p.getBean("beans")},[]),S=(q(" AG Grid ",g),ue(function(){var e=C.current=p.createBean(new ae.GridCtrl);return function(){p.destroyBean(e),C.current=null}}),ue(function(){var e=C.current,t=(E.current=e.focusInnerElement.bind(e),{destroyGridUi:function(){},setRtlClass:n,addOrRemoveKeyboardFocusClass:function(e){return o(e?ae.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){y.current.forceFocusOutOfContainer()},updateLayoutClasses:s,getFocusableContainers:function(){var e=[],t=g.current.querySelector(".ag-root"),n=g.current.querySelector(".ag-side-bar:not(.ag-hidden)");return t&&e.push(t),n&&e.push(n),e},setCursor:u,setUserSelect:l});e.setComp(t,g.current,g.current),m(!0)}),oe.useEffect(function(){var e,t,n,r,o,a,s,i,u,c,l;if(d)return e=C.current,t=[],c=(o=v.agStackComponentsRegistry).getComponentClass("AG-GRID-HEADER-DROP-ZONES"),u=o.getComponentClass("AG-SIDE-BAR"),n=o.getComponentClass("AG-STATUS-BAR"),r=o.getComponentClass("AG-WATERMARK"),o=o.getComponentClass("AG-PAGINATION"),a=[],s=g.current,i=R.current,e.showDropZones()&&c&&(l=(c=p.createBean(new c)).getGui(),s.insertAdjacentElement("afterbegin",l),a.push(l),t.push(c)),e.showSideBar()&&u&&(l=(c=p.createBean(new u)).getGui(),(u=i.querySelector(".ag-tab-guard-bottom"))&&(u.insertAdjacentElement("beforebegin",l),a.push(l)),t.push(c)),e.showStatusBar()&&n&&(l=(i=p.createBean(new n)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(i)),o&&(l=(u=p.createBean(new o)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(u)),e.showWatermark()&&r&&(l=(c=p.createBean(new r)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(c)),function(){p.destroyBeans(t),a.forEach(function(e){e.parentElement&&e.parentElement.removeChild(e)})}},[d]),oe.useMemo(function(){return Y("ag-root-wrapper",t,r,a)},[t,r,a])),w=oe.useMemo(function(){return Y("ag-root-wrapper-body","ag-focus-managed",a)},[a]),M=oe.useMemo(function(){return{userSelect:null!=c?c:"",WebkitUserSelect:null!=c?c:"",cursor:null!=i?i:""}},[c,i]),O=R.current,T=oe.useCallback(function(e){y.current=e,h(!0)},[]);return se.createElement("div",{ref:g,className:S,style:M,role:"presentation"},se.createElement("div",{className:w,ref:R,role:"presentation"},f&&O&&se.createElement(ce.Provider,{value:v},se.createElement(X,{ref:T,eFocusableElement:O,onTabKeyDown:e,gridCtrl:C.current},se.createElement(K,null)))))});o(m,J=oe.Component),m.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&se.createElement(Z,{context:this.state.context}),this.portalManager.getPortals())},m.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},m.prototype.componentDidMount=function(){var e,t=this;this.mounted||(this.mounted=!0,e=this.props.modules||[],e={providedBeanInstances:{frameworkComponentWrapper:new ee(this.portalManager)},modules:e,frameworkOverrides:new re(!0)},this.gridOptions=this.props.gridOptions||{},this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props),this.checkForDeprecations(this.props),(new ae.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(e){t.setState({context:e}),e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.api=t.gridOptions.api,t.columnApi=t.gridOptions.columnApi,t.props.setGridApi(t.api,t.columnApi),t.destroyFuncs.push(function(){return t.api.destroy()})})},function(e){e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.whenReadyFuncs.forEach(function(e){return e()}),t.whenReadyFuncs.length=0,t.ready=!0})},e))},m.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},m.prototype.componentWillUnmount=function(){this.renderedAfterMount&&(this.destroyFuncs.forEach(function(e){return e()}),this.destroyFuncs.length=0)},m.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},m.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processChanges(n)},m.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},m.prototype.processChanges=function(e){var t=this;this.processWhenReady(function(){return ae.ComponentUtil.processOnChange(e,t.api)})},m.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)};var J,E=m;function m(e){var t=J.call(this,e)||this;return t.props=e,t.destroyFuncs=[],t.eGui=se.createRef(),t.whenReadyFuncs=[],t.ready=!1,t.renderedAfterMount=!1,t.mounted=!1,t.state={context:void 0},t.portalManager=new k(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t.destroyFuncs.push(function(){return t.portalManager.destroy()}),t}o(d,Q=ae.BaseComponentWrapper),d.prototype.createWrapper=function(e,t){return new G(e,this.parent,t)};var Q,ee=d;function d(e){var t=Q.call(this)||this;return t.parent=e,t}var te,ne=oe.forwardRef(function(r,e){var t=oe.useContext(ce),o=t.ctrlsFactory,a=t.context,s=t.gridOptionsService,i=t.resizeObserverService,u=t.clientSideRowModel,c=t.serverSideRowModel,t=oe.useState(new b),n=t[0],l=t[1],t=oe.useState(new b),p=t[0],f=t[1],t=oe.useState(),m=t[0],d=t[1],t=oe.useState(),h=t[0],C=t[1],g=oe.useRef(),y=oe.useRef(null),t=oe.useMemo(function(){return n.toString()+" ag-details-row"},[n]),R=oe.useMemo(function(){return p.toString()+" ag-details-grid"},[p]),e=(e&&oe.useImperativeHandle(e,function(){return{refresh:function(){return g.current.refresh()}}}),ue(function(){r.template&&"string"==typeof r.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")}),ue(function(){var e,t={addOrRemoveCssClass:function(t,n){return l(function(e){return e.setClass(t,n)})},addOrRemoveDetailGridCssClass:function(t,n){return f(function(e){return e.setClass(t,n)})},setDetailGrid:function(e){return d(e)},setRowData:function(e){return C(e)},getGui:function(){return y.current}},n=o.getInstance("detailCellRenderer");if(n)return a.createBean(n),n.init(t,r),g.current=n,s.is("detailRowAutoHeight")&&(e=i.observeResize(y.current,t=function(){var e;null!=y.current&&null!=(e=y.current.clientHeight)&&0<e&&setTimeout(function(){r.node.setRowHeight(e),u?u.onRowHeightChanged():c&&c.onRowHeightChanged()},0)}),t()),function(){a.destroyBean(n),e&&e()}}),oe.useCallback(function(e,t){g.current.registerDetailWithMaster(e,t)},[]));return se.createElement("div",{className:t,ref:y},m&&se.createElement(E,ie({className:R},m,{rowData:h,setGridApi:e})))}),re=(o(h,te=ae.VanillaFrameworkOverrides),h.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},h.prototype.isFrameworkComponent=function(e){return!(!e||(e=e.prototype)&&"getGui"in e)},h);function h(e){var t=te.call(this)||this;return t.frameworkComponents={agGroupCellRenderer:P,agGroupRowRenderer:P,agDetailCellRenderer:ne},t.reactUi=e,t}o(g,me=oe.Component),g.prototype.render=function(){var t=this;return se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(e){t.eGridDiv=e}},this.portalManager.getPortals())},g.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},g.prototype.componentDidMount=function(){var e=this.props.modules||[],e={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new he(this,this.portalManager)},modules:e,frameworkOverrides:new re(!1)},t=this.props.gridOptions||{};this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(t,this.props),this.checkForDeprecations(this.props),new ae.Grid(this.eGridDiv,this.gridOptions,e),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},g.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},g.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},g.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},g.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},g.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},g.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},g.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},g.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},g.prototype.processSynchronousChanges=function(e){var t,n=ie({},e);return 0<Object.keys(n).length&&(t={},this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach(function(e){n[e]&&(t[e]=n[e],delete n[e])}),0<Object.keys(t).length)&&this.api&&ae.ComponentUtil.processOnChange(t,this.api),n},g.prototype.processAsynchronousChanges=function(e){var t=this;0<Object.keys(e).length&&window.setTimeout(function(){t.api&&ae.ComponentUtil.processOnChange(e,t.api)})},g.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:g.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3};var me,C=g;function g(e){var t=me.call(this,e)||this;return t.props=e,t.api=null,t.destroyed=!1,t.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],t.portalManager=new k(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}function y(e,t){e.forEach(function(e){C[e]=t})}C.propTypes={gridOptions:t.object},y(ae.ComponentUtil.EVENT_CALLBACKS,t.func),y(ae.ComponentUtil.BOOLEAN_PROPERTIES,t.bool),y(ae.ComponentUtil.STRING_PROPERTIES,t.string),y(ae.ComponentUtil.OBJECT_PROPERTIES,t.object),y(ae.ComponentUtil.ARRAY_PROPERTIES,t.array),y(ae.ComponentUtil.NUMBER_PROPERTIES,t.number),y(ae.ComponentUtil.FUNCTION_PROPERTIES,t.func);o(R,de=ae.BaseComponentWrapper),R.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new A(e,this.agGridReact,this.portalManager,t):new G(e,this.portalManager,t)};var de,he=R;function R(e,t){var n=de.call(this)||this;return n.agGridReact=e,n.portalManager=t,n}o(S,v=oe.Component),S.prototype.render=function(){return this.props.suppressReactUi?se.createElement(C,ie({},this.props,{setGridApi:this.setGridApi})):se.createElement(E,ie({},this.props,{setGridApi:this.setGridApi}))};var v,a=S;function S(){var n=null!==v&&v.apply(this,arguments)||this;return n.setGridApi=function(e,t){n.api=e,n.columnApi=t},n}e.AgGridReact=a,e.AgGridReactLegacy=C,e.AgGridReactFire=E,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("prop-types"),require("react-dom/server"),require("react-dom"),require("react"),require("ag-grid-community")):"function"==typeof define&&define.amd?define(["exports","prop-types","react-dom/server","react-dom","react","ag-grid-community"],t):t(e.AgGridReact={},e.PropTypes,e.ReactDOMServer,e.ReactDOM,e.React,e.agGrid)}(this,function(e,t,w,r,oe,ae){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var n="default"in r?r.default:r,se="default"in oe?oe.default:oe,M=function(e,t){return(M=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}))(e,t)};function o(e,t){function n(){this.constructor=e}M(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ie=function(){return(ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function D(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],s=0,i=a.length;s<i;s++,o++)r[o]=a[s];return r}o(s,O=function(){}),s.prototype.getGui=function(){return this.eParentElement},s.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},s.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),t=document.createElement(t||"div");return t.classList.add("ag-react-container"),e.reactContainer=t},s.prototype.addParentContainerStyleAndClasses=function(){var t=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses)&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach(function(e){return t.eParentElement.classList.add(e)})},s.prototype.statelessComponentRendered=function(){return 0<this.eParentElement.childElementCount||0<this.eParentElement.childNodes.length},s.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},s.prototype.isStatelessComponent=function(){return this.statelessComponent},s.prototype.getReactComponentName=function(){return this.reactComponent.name},s.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},s.prototype.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},s.prototype.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===this.getMemoType()},s.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},s.prototype.callMethod=function(e,t){var n,r=this,o=this.getFrameworkComponentInstance();return this.isStatelessComponent()?this.fallbackMethod(e,t&&t[0]?t[0]:{}):o?(n=o[e])?n.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0:void setTimeout(function(){return r.callMethod(e,t)})},s.prototype.addMethod=function(e,t){this[e]=t};var O,a=s;function s(e,t,n){var r=O.call(this)||this;return r.portal=null,r.reactComponent=e,r.portalManager=t,r.componentType=n,r.statelessComponent=r.isStateless(r.reactComponent),r}var T=0;function i(){return"agPortalKey_"+ ++T}o(u,I=a),u.prototype.init=function(t){var n=this;return this.eParentElement=this.createParentElement(t),this.renderStaticMarkup(t),new ae.AgPromise(function(e){return n.createReactComponent(t,e)})},u.prototype.createReactComponent=function(e,t){var n=this,e=(this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()}),oe.createElement(this.reactComponent,e)),e=r.createPortal(e,this.eParentElement,i());this.portal=e,this.portalManager.mountReactPortal(e,this,function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout(function(){n.removeStaticMarkup()}))})},u.prototype.fallbackMethodAvailable=function(e){return!1},u.prototype.fallbackMethod=function(e,t){},u.prototype.isSlowRenderer=function(){return this.staticRenderTime>=u.SLOW_RENDERING_THRESHOLD},u.prototype.isNullValue=function(){return""===this.staticMarkup},u.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,e=oe.createElement(this.reactComponent,e);try{console.error=function(){};var n=Date.now(),r=w.renderToStaticMarkup(e);this.staticRenderTime=Date.now()-n,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}finally{console.error=t}}},u.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},u.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},u.SLOW_RENDERING_THRESHOLD=3;var I,A=u;function u(e,t,n,r){e=I.call(this,e,n,r)||this;return e.staticMarkup=null,e.staticRenderTime=0,e.parentComponent=t,e}o(c,N=a),c.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new ae.AgPromise(function(e){return t.createReactComponent(e)})},c.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=oe.createElement(this.reactComponent,ie(ie({},e),{key:this.key})),this.portal=r.createPortal(this.reactElement,this.eParentElement,this.portalKey)},c.prototype.createReactComponent=function(t){this.portalManager.mountReactPortal(this.portal,this,function(e){t(e)})},c.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},c.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},c.prototype.valueRenderedIsNull=function(e){if(this.componentType.cellRenderer){var t=console.error;try{return console.error=function(){},""===w.renderToStaticMarkup(oe.createElement(this.reactComponent,e))}catch(e){}finally{console.error=t}}return!1},c.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},c.prototype.fallbackMethod=function(e,t){e=this[e+"Component"];if(e)return e.bind(this)(t)},c.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]};var N,G=c;function c(e,t,n){e=N.call(this,e,t,n)||this;return e.oldPortal=null,e.key=i(),e.portalKey=i(),e}l.prototype.getPortals=function(){return this.portals},l.prototype.destroy=function(){this.destroyed=!0},l.prototype.destroyPortal=function(t){this.portals=this.portals.filter(function(e){return e!==t}),this.batchUpdate()},l.prototype.getComponentWrappingElement=function(){return this.wrappingElement},l.prototype.mountReactPortal=function(e,t,n){this.portals=D(this.portals,[e]),this.waitForInstance(t,n),this.batchUpdate()},l.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},l.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout(function(){e.destroyed||e.parent.forceUpdate(function(){e.hasPendingPortalUpdate=!1})}),this.hasPendingPortalUpdate=!0)},l.prototype.waitForInstance=function(e,t,n){var r=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout(function(){r.waitForInstance(e,t,n)})}},l.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3;var k=l;function l(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.parent=e,this.maxComponentCreationTimeMs=n||l.MAX_COMPONENT_CREATION_TIME_IN_MS}function _(e,t,n,r){var o=!e||e.componentFromFramework;if(!o){var a,s,i,o=e.newAgStackInstance();if(o)return i=!1,o.then(function(e){i?t.destroyBean(e):(s=(a=e).getGui(),n.appendChild(s),F(r,a))}),function(){i=!0,a&&(s&&s.parentElement&&s.parentElement.removeChild(s),t.destroyBean(a),r)&&F(r,void 0)}}}function F(e,t){e&&(e instanceof Function?e(t):e.current=t)}function ue(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useLayoutEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])}function Y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")}var ce=se.createContext({}),pe=function(e){var t=oe.useRef(e),n=oe.useRef(),r=oe.useRef(!1),o=oe.useRef(!1),a=oe.useState(0)[1];r.current&&(o.current=!0),oe.useEffect(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])},b=(p.prototype.setClass=function(e,t){var n;return!!this.classesMap[e]==t?this:((n=new p).classesMap=ie({},this.classesMap),n.classesMap[e]=t,n)},p.prototype.toString=function(){var t=this;return Object.keys(this.classesMap).filter(function(e){return t.classesMap[e]}).join(" ")},p);function p(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.classesMap={},e.forEach(function(e){t.classesMap[e]=!0})}function le(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===("function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)}function x(e){B&&f&&0===m?(m++,n.flushSync(e),m--):e()}function q(r,o){pe(function(){var e,t=o.current,n=t.parentElement;if(n)return e=document.createComment(r),n.insertBefore(e,t),function(){n.removeChild(e)}})}var B=null!=n.createRoot&&null!=n.flushSync,f=!0,L=function(){return f=!0},U=function(){return f=!1},m=0,P=oe.forwardRef(function(n,e){var r=oe.useContext(ce).context,o=oe.useRef(null),t=oe.useRef(null),a=oe.useRef(null),s=oe.useRef(null),i=oe.useRef(null),u=oe.useState(),c=u[0],l=u[1],u=oe.useState(),p=u[0],f=u[1],u=oe.useState(),m=u[0],d=u[1],u=oe.useState(new b),h=u[0],C=u[1],u=oe.useState(new b("ag-hidden")),g=u[0],y=u[1],u=oe.useState(new b("ag-hidden")),R=u[0],E=u[1],u=oe.useState(new b("ag-invisible")),v=u[0],S=u[1],u=(oe.useImperativeHandle(e,function(){return{refresh:function(){return!1}}}),oe.useLayoutEffect(function(){return _(c,r,t.current)},[c]),ue(function(){var e={setInnerRenderer:function(e,t){l(e),d(t)},setChildCount:function(e){return f(e)},addOrRemoveCssClass:function(t,n){return C(function(e){return e.setClass(t,n)})},setContractedDisplayed:function(t){return E(function(e){return e.setClass("ag-hidden",!t)})},setExpandedDisplayed:function(t){return y(function(e){return e.setClass("ag-hidden",!t)})},setCheckboxVisible:function(t){return S(function(e){return e.setClass("ag-invisible",!t)})}},t=r.createBean(new ae.GroupCellRendererCtrl);return t.init(e,o.current,a.current,s.current,i.current,P,n),function(){r.destroyBean(t)}}),oe.useMemo(function(){return"ag-cell-wrapper "+h.toString()},[h])),e=oe.useMemo(function(){return"ag-group-expanded "+g.toString()},[g]),w=oe.useMemo(function(){return"ag-group-contracted "+R.toString()},[R]),M=oe.useMemo(function(){return"ag-group-checkbox "+v.toString()},[v]),O=c&&c.componentFromFramework,T=O?c.componentClass:void 0,I=null==c&&null!=m,m=ae._.escapeString(m,!0);return se.createElement("span",ie({className:u,ref:o},n.colDef?{}:{role:"gridcell"}),se.createElement("span",{className:e,ref:s}),se.createElement("span",{className:w,ref:i}),se.createElement("span",{className:M,ref:a}),se.createElement("span",{className:"ag-group-value",ref:t},I&&se.createElement(se.Fragment,null,m),O&&se.createElement(T,ie({},c.params))),se.createElement("span",{className:"ag-group-child-count"},p))}),H=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(),r=n[0],o=n[1],n=oe.useState(),a=n[0],s=n[1],n=oe.useState(),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],m=oe.useRef(null),d=oe.useRef(null),h=oe.useRef(null),C=oe.useRef(),g=e.ctrl,y=oe.useMemo(function(){return new ae.CssClassManager(function(){return m.current})},[]),n=(ue(function(){g.setComp({setWidth:function(e){return m.current.style.width=e},addOrRemoveCssClass:function(e,t){return y.addOrRemoveCssClass(e,t)},setColId:function(e){return s(e)},setTitle:function(e){return o(e)},setAriaDescription:function(e){return l(e)},setAriaSort:function(e){return u(e)},setUserCompDetails:function(e){return f(e)},getUserCompInstance:function(){return C.current||void 0}},m.current,d.current,h.current);var e=g.getSelectAllGui();d.current.insertAdjacentElement("afterend",e)}),oe.useLayoutEffect(function(){return _(p,t,h.current,C)},[p]),oe.useEffect(function(){g.setDragSource(m.current)},[p]),oe.useMemo(function(){return!!((null==p?void 0:p.componentFromFramework)&&le(p.componentClass))},[p])),e=p&&p.componentFromFramework,R=p&&p.componentClass;return se.createElement("div",{ref:m,className:"ag-header-cell",title:r,"col-id":a,"aria-sort":i,role:"columnheader",tabIndex:-1,"aria-description":c},se.createElement("div",{ref:d,className:"ag-header-cell-resize",role:"presentation"}),se.createElement("div",{ref:h,className:"ag-header-cell-comp-wrapper",role:"presentation"},e&&n&&se.createElement(R,ie({},p.params)),e&&!n&&se.createElement(R,ie({},p.params,{ref:C}))))}),W=oe.memo(function(e){var t=oe.useContext(ce).context,n=oe.useState(new b),r=n[0],o=n[1],n=oe.useState(new b),a=n[0],s=n[1],n=oe.useState("false"),i=n[0],u=n[1],n=oe.useState(),c=n[0],l=n[1],n=oe.useState(),p=n[0],f=n[1],n=oe.useState(),m=n[0],d=n[1],n=oe.useState(),h=n[0],C=n[1],g=oe.useRef(null),y=oe.useRef(null),R=e.ctrl,n=(ue(function(){R.setComp({setWidth:function(e){return g.current.style.width=e},addOrRemoveCssClass:function(t,n){return o(function(e){return e.setClass(t,n)})},setColId:function(e){return f(e)},setTitle:function(e){return l(e)},setUserCompDetails:function(e){return C(e)},setResizableDisplayed:function(t){s(function(e){return e.setClass("ag-hidden",!t)}),u(t?"false":"true")},setAriaExpanded:function(e){return d(e)}},g.current,y.current)}),oe.useLayoutEffect(function(){return _(h,t,g.current)},[h]),oe.useEffect(function(){var t=void 0;g.current.childNodes.forEach(function(e){null!=e&&e!==y.current&&(t=e)}),t&&R.setDragSource(t)},[h]),oe.useMemo(function(){return"ag-header-group-cell "+r.toString()},[r])),e=oe.useMemo(function(){return"ag-header-cell-resize "+a.toString()},[a]),E=h&&h.componentFromFramework,v=h&&h.componentClass;return se.createElement("div",{ref:g,className:n,title:c,"col-id":p,role:"columnheader",tabIndex:-1,"aria-expanded":m},E&&se.createElement(v,ie({},h.params)),se.createElement("div",{ref:y,"aria-hidden":i,className:e}))}),j=oe.memo(function(e){function t(e){g.current||null!=e&&(y.current&&y.current(e),g.current=!0)}var n=oe.useContext(ce).context,r=oe.useState(new b("ag-header-cell","ag-floating-filter")),o=r[0],a=r[1],r=oe.useState(new b),s=r[0],i=r[1],r=oe.useState(new b("ag-floating-filter-button","ag-hidden")),u=r[0],c=r[1],r=oe.useState("false"),l=r[0],p=r[1],r=oe.useState(),f=r[0],m=r[1],d=oe.useRef(null),h=oe.useRef(null),r=oe.useRef(null),C=oe.useRef(null),g=oe.useRef(!1),y=oe.useRef(),R=oe.useRef(),E=(ue(function(){R.current=new ae.AgPromise(function(e){y.current=e})}),e.ctrl),e=(ue(function(){E.setComp({addOrRemoveCssClass:function(t,n){return a(function(e){return e.setClass(t,n)})},addOrRemoveBodyCssClass:function(t,n){return i(function(e){return e.setClass(t,n)})},setButtonWrapperDisplayed:function(t){c(function(e){return e.setClass("ag-hidden",!t)}),p(t?"false":"true")},setWidth:function(e){return d.current.style.width=e},setCompDetails:function(e){return m(e)},getFloatingFilterComp:function(){return R.current||null},setMenuIcon:function(e){return C.current.appendChild(e)}},d.current,C.current,h.current)}),oe.useLayoutEffect(function(){return _(f,n,h.current,t)},[f]),oe.useMemo(function(){return o.toString()},[o])),v=oe.useMemo(function(){return s.toString()},[s]),S=oe.useMemo(function(){return u.toString()},[u]),w=oe.useMemo(function(){return!!(f&&f.componentFromFramework&&le(f.componentClass))},[f]),M=f&&f.componentFromFramework,O=f&&f.componentClass;return se.createElement("div",{ref:d,className:e,role:"gridcell",tabIndex:-1},se.createElement("div",{ref:h,className:v,role:"presentation"},M&&w&&se.createElement(O,ie({},f.params)),M&&!w&&se.createElement(O,ie({},f.params,{ref:t}))),se.createElement("div",{ref:r,"aria-hidden":l,className:S,role:"presentation"},se.createElement("button",{ref:C,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}),V=oe.memo(function(e){var s=oe.useContext(ce).gridOptionsService,t=oe.useState(),n=t[0],r=t[1],t=oe.useState(),o=t[0],a=t[1],t=oe.useState(),i=t[0],u=t[1],t=oe.useState(),c=t[0],l=t[1],t=oe.useState([]),p=t[0],f=t[1],m=oe.useRef(null),d=e.ctrl,h=d.getType()===ae.HeaderRowType.COLUMN,C=d.getType()===ae.HeaderRowType.COLUMN_GROUP,g=d.getType()===ae.HeaderRowType.FLOATING_FILTER,y=oe.useCallback(function(e,t){var n,r,o=s.is("ensureDomOrder"),a=s.isDomLayout("print");return o||a?t:(n=ae._.mapById(e,function(e){return e.getInstanceId()}),r=ae._.mapById(t,function(e){return e.getInstanceId()}),D(e.filter(function(e){return r.has(e.getInstanceId())}),t.filter(function(e){return!n.has(e.getInstanceId())})))},[]),t=(ue(function(){d.setComp({setTransform:function(e){return r(e)},setHeight:function(e){return a(e)},setTop:function(e){return u(e)},setHeaderCtrls:function(t){return f(function(e){return y(e,t)})},setWidth:function(e){return m.current.style.width=e},setAriaRowIndex:function(e){return l(e)}})}),oe.useMemo(function(){return{transform:n,height:o,top:i}},[n,o,i])),e=oe.useMemo(function(){var e=["ag-header-row"];return h&&e.push("ag-header-row-column"),C&&e.push("ag-header-row-column-group"),g&&e.push("ag-header-row-column-filter"),e.join(" ")},[]),R=oe.useCallback(function(e){switch(d.getType()){case ae.HeaderRowType.COLUMN_GROUP:return se.createElement(W,{ctrl:e,key:e.getInstanceId()});case ae.HeaderRowType.FLOATING_FILTER:return se.createElement(j,{ctrl:e,key:e.getInstanceId()});default:return se.createElement(H,{ctrl:e,key:e.getInstanceId()})}},[]);return se.createElement("div",{ref:m,className:e,role:"row",style:t,"aria-rowindex":c},p.map(R))}),d=oe.memo(function(n){function e(){return i.map(function(e){return se.createElement(V,{ctrl:e,key:e.getInstanceId()})})}var t=oe.useState(new b),r=t[0],o=t[1],t=oe.useState(!1),a=t[0],s=t[1],t=oe.useState([]),i=t[0],u=t[1],c=oe.useContext(ce).context,l=oe.useRef(null),p=oe.useRef(null),t="left"===n.pinned,f="right"===n.pinned,m=!t&&!f,d=(ue(function(){var e={setDisplayed:function(t){o(function(e){return e.setClass("ag-hidden",!t)}),s(!t)},setCtrls:function(e){return u(e)},setCenterWidth:function(e){p.current&&(p.current.style.width=e)},setViewportScrollLeft:function(e){l.current&&(l.current.scrollLeft=e)},setPinnedContainerWidth:function(e){l.current.style.width=e,l.current.style.minWidth=e,l.current.style.maxWidth=e}},t=c.createBean(new ae.HeaderRowContainerCtrl(n.pinned));return t.setComp(e,l.current),function(){c.destroyBean(t)}}),oe.useMemo(function(){return r.toString()},[r]));return se.createElement(se.Fragment,null,t&&se.createElement("div",{ref:l,className:"ag-pinned-left-header "+d,"aria-hidden":a,role:"presentation"},e()),f&&se.createElement("div",{ref:l,className:"ag-pinned-right-header "+d,"aria-hidden":a,role:"presentation"},e()),m&&se.createElement("div",{ref:l,className:"ag-header-viewport "+d,role:"presentation"},se.createElement("div",{ref:p,className:"ag-header-container",role:"rowgroup"},e())))}),z=oe.memo(function(){var e=oe.useState(new b),t=e[0],r=e[1],e=oe.useState(),n=e[0],o=e[1],a=oe.useContext(ce).context,s=oe.useRef(null),e=(ue(function(){var e={addOrRemoveCssClass:function(t,n){return r(function(e){return e.setClass(t,n)})},setHeightAndMinHeight:function(e){return o(e)}},t=a.createBean(new ae.GridHeaderCtrl);return t.setComp(e,s.current,s.current),function(){a.destroyBean(t)}}),oe.useMemo(function(){return"ag-header "+t.toString()},[t])),i=oe.useMemo(function(){return{height:n,minHeight:n}},[n]);return se.createElement("div",{ref:s,className:e,style:i,role:"presentation"},se.createElement(d,{pinned:"left"}),se.createElement(d,{pinned:null}),se.createElement(d,{pinned:"right"}))}),fe=oe.memo(function(u){var e=oe.useState(),t=e[0],c=e[1],e=oe.useContext(ce),l=e.context,p=e.popupService,f=e.localeService,m=e.gridOptionsService;return ue(function(){var e=u.editDetails,t=u.cellCtrl,n=u.eParentCell,r=e.compDetails,o=m.is("stopEditingWhenCellsLoseFocus"),a=l.createBean(new ae.PopupEditorWrapper(r.params)),r=a.getGui(),s=(u.jsChildComp&&(s=u.jsChildComp.getGui())&&r.appendChild(s),{column:t.getColumn(),rowNode:t.getRowNode(),type:"popupCellEditor",eventSource:n,ePopup:r,position:e.popupPosition,keepWithinBounds:!0}),e=p.positionPopupByComponent.bind(p,s),s=f.getLocaleTextFunc(),o=p.addPopup({modal:o,eChild:r,closeOnEsc:!0,closedCallback:function(){t.onPopupEditorClosed()},anchorToElement:n,positionCallback:e,ariaLabel:s("ariaLabelCellEditor","Cell Editor")}),i=o?o.hideFunc:void 0;return c(a),u.jsChildComp&&u.jsChildComp.afterGuiAttached&&u.jsChildComp.afterGuiAttached(),function(){null!=i&&i(),l.destroyBean(a)}}),se.createElement(se.Fragment,null,t&&u.wrappedContent&&r.createPortal(u.wrappedContent,t.getGui()))}),K=oe.memo(function(e){function t(){return se.createElement(se.Fragment,null,null!=E&&(i=S,u=re,c=O,l=G,p=ne,f=Q,m=(s=E).compDetails,s=s.value,d=!m,h=m&&m.componentFromFramework,C=m&&m.componentClass,g=null!=s&&s.toString?s.toString():s,se.createElement(se.Fragment,null,l?se.createElement("span",{role:"presentation",id:"cell-"+u,className:"ag-cell-value",ref:f},y()):y())),null!=v&&(s=v,l=te,u=ee,f=M.current,e=R,t=$,n=s.compDetails,r=n.componentClass,o=n.componentFromFramework&&!s.popup,a=n.componentFromFramework&&s.popup,n=!n.componentFromFramework&&s.popup,se.createElement(se.Fragment,null,o&&se.createElement(r,ie({},s.compDetails.params,{ref:l})),a&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,wrappedContent:se.createElement(r,ie({},s.compDetails.params,{ref:u}))}),n&&t&&se.createElement(fe,{editDetails:s,cellCtrl:e,eParentCell:f,jsChildComp:t}))));var e,t,n,r,o,a,s,i,u,c,l,p,f,m,d,h,C,g;function y(){return se.createElement(se.Fragment,null,d&&se.createElement(se.Fragment,null,g),h&&!p&&se.createElement(C,ie({},m.params,{key:i,ref:c})),h&&p&&se.createElement(C,ie({},m.params,{key:i})))}}var n,r,o,a,s,i,u,c=oe.useContext(ce).context,R=e.cellCtrl,l=e.printLayout,p=e.editingRow,e=oe.useState(),E=e[0],f=e[1],e=oe.useState(),v=e[0],m=e[1],e=oe.useState(1),S=e[0],d=e[1],e=oe.useState(),_=e[0],x=e[1],e=oe.useState(),B=e[0],L=e[1],e=oe.useState(),U=e[0],H=e[1],e=oe.useState(),W=e[0],j=e[1],e=oe.useState(),V=e[0],K=e[1],e=oe.useState(!1),h=e[0],Y=e[1],e=oe.useState(!1),C=e[0],q=e[1],e=oe.useState(!1),g=e[0],z=e[1],e=oe.useState(),$=e[0],y=e[1],w=oe.useMemo(function(){return R.isForceWrapper()},[]),M=oe.useRef(null),O=oe.useRef(null),T=oe.useRef(),I=oe.useRef(),b=oe.useRef(),e=oe.useState(0),X=e[0],Z=e[1],e=oe.useCallback(function(e){b.current=e,Z(function(e){return e+1})},[]),P=oe.useRef(),A=oe.useState(0),N=A[0],J=A[1],Q=oe.useCallback(function(e){P.current=e,J(function(e){return e+1})},[]),G=w||null!=E&&(h||g||C),k=oe.useCallback(function(e,t){var n,r,o,a,s;(I.current=t)&&(e=e,n=t,s=(r=R).getColumn(),!e&&n.isPopup&&n.isPopup()&&(o="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(o)},"jsEditorComp-isPopup-"+r.getColumn().getColId())),e&&n.getPopupPosition&&null!=n.getPopupPosition()&&(a="AG Grid: Found an issue in column "+s.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.",ae._.doOnce(function(){return console.warn(a)},"jsEditorComp-getPopupPosition-"+r.getColumn().getColId())),t.isCancelBeforeStart)&&t.isCancelBeforeStart()&&setTimeout(function(){R.stopEditing(!0),R.focusCell(!0)})},[]),ee=oe.useCallback(function(e){return k(!0,e)},[]),te=oe.useCallback(function(e){return k(!1,e)},[]),F=oe.useMemo(function(){return new ae.CssClassManager(function(){return M.current})},[]),D=(n=E,r=G,o=P.current,A=N,a=T,s=M,N=oe.useContext(ce),i=N.context,N.userComponentFactory,u=oe.useCallback(function(){var e,t=a.current;t&&((e=t.getGui())&&e.parentElement&&e.parentElement.removeChild(e),i.destroyBean(t),a.current=void 0)},[]),oe.useEffect(function(){var e=n&&n.compDetails&&!n.compDetails.componentFromFramework;if(null!=n&&e&&!(r&&null==o)){e=n.compDetails;if(a.current){var t=a.current,t=null!=t.refresh&&0==n.force&&t.refresh(e.params);if(!0===t||void 0===t)return;u()}t=e.newAgStackInstance();t&&(e=t.resolveNow(null,function(e){return e}))&&(t=e.getGui())&&((r?o:s.current).appendChild(t),a.current=e)}else u()},[n,r,A]),pe(function(){return u}),oe.useRef()),ne=(oe.useLayoutEffect(function(){var e=D.current,t=E;D.current=E,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails&&(e=e.compDetails,t=t.compDetails,e.componentClass==t.componentClass)&&null!=O.current&&null!=O.current.refresh&&1!=O.current.refresh(t.params)&&d(function(e){return e+1})},[E]),oe.useLayoutEffect(function(){if(v&&!v.compDetails.componentFromFramework){var e,t=v.compDetails,n=!0===v.popup,r=function(e){e=e.newAgStackInstance();if(e)return e.resolveNow(null,function(e){return e})}(t);if(r)return e=r.getGui(),k(n,r),n||(null!=(t=(w?b:M).current)&&t.appendChild(e),r.afterGuiAttached&&r.afterGuiAttached()),y(r),function(){c.destroyBean(r),k(n,void 0),y(void 0),e&&e.parentElement&&e.parentElement.removeChild(e)}}},[v]),oe.useLayoutEffect(function(){var n,e;if(R&&c&&(b.current&&G))return n=[],e=function(e){var t;return e&&(t=e.getGui(),b.current.insertAdjacentElement("afterbegin",t),n.push(function(){c.destroyBean(e),ae._.removeFromParent(t)})),e},h&&e(R.createSelectionCheckbox()),g&&e(R.createDndSource()),C&&e(R.createRowDragComp()),function(){return n.forEach(function(e){return e()})}},[G,g,C,h,X]),ue(function(){var e;R&&(e=b.current||void 0,R.setComp({addOrRemoveCssClass:function(e,t){return F.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return x(e)},getFocusableElement:function(){return M.current},setTabIndex:function(e){return L(e)},setRole:function(e){return H(e)},setColId:function(e){return j(e)},setTitle:function(e){return K(e)},setIncludeSelection:function(e){return Y(e)},setIncludeRowDrag:function(e){return q(e)},setIncludeDndSource:function(e){return z(e)},getCellEditor:function(){return I.current||null},getCellRenderer:function(){return O.current||T.current},getParentOfValue:function(){return P.current||b.current||M.current},setRenderDetails:function(e,t,n){f({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(m({compDetails:e,popup:t,popupPosition:n}),t||f(void 0)):m(void 0)}},M.current,e,l,p))}),oe.useMemo(function(){return!!(E&&E.compDetails&&E.compDetails.componentFromFramework&&le(E.compDetails.componentClass))},[E])),re=(oe.useEffect(function(){var e;M.current&&(F.addOrRemoveCssClass("ag-cell-value",!G),F.addOrRemoveCssClass("ag-cell-inline-editing",!!v&&!v.popup),F.addOrRemoveCssClass("ag-cell-popup-editing",!!v&&!!v.popup),F.addOrRemoveCssClass("ag-cell-not-inline-editing",!v||!!v.popup),null!=(e=R.getRowCtrl()))&&e.setInlineEditingCss(!!v)}),oe.useMemo(function(){return R.getInstanceId()},[]));return se.createElement("div",{ref:M,style:_,tabIndex:B,role:U,"col-id":W,title:V},G?se.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:e},t()):t())}),$=oe.memo(function(e){var t=oe.useContext(ce).context,n=e.rowCtrl,r=e.containerType,e=oe.useState(),o=e[0],a=e[1],e=oe.useState(),s=e[0],i=e[1],e=oe.useState(),u=e[0],c=e[1],e=oe.useState(),l=e[0],p=e[1],e=oe.useState(),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],e=oe.useState({list:[],instanceIdMap:new Map}),C=e[0],g=e[1],e=oe.useState(),y=e[0],R=e[1],e=oe.useState(!1),E=e[0],v=e[1],e=oe.useState(n.getInitialRowTop(r)),S=e[0],w=e[1],e=oe.useState(n.getInitialTransform(r)),M=e[0],O=e[1],T=oe.useRef(null),I=oe.useRef(),b=oe.useRef(!1),e=oe.useState(0),P=e[0],A=e[1],N=(oe.useEffect(function(){var e;b.current||!y||10<P||((e=null==(e=T.current)?void 0:e.firstChild)?(n.setupDetailRowAutoHeight(e),b.current=!0):A(function(e){return e+1}))},[y,P]),oe.useMemo(function(){return new ae.CssClassManager(function(){return T.current})},[])),e=(ue(function(){if(n.isAlive())return n.setComp({setTop:function(e){return w(e)},setTransform:function(e){return O(e)},addOrRemoveCssClass:function(e,t){return N.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return v(e)},setRowIndex:function(e){return a(e)},setRowId:function(e){return i(e)},setRowBusinessKey:function(e){return p(e)},setTabIndex:function(e){return m(e)},setUserStyles:function(e){return h(e)},setRole:function(e){return c(e)},setCellCtrls:function(i){x(function(){g(function(e){return n=e,e=i,E?(t={list:e,instanceIdMap:new Map},e.forEach(function(e){return t.instanceIdMap.set(e.getInstanceId(),e)}),t):(r=[],o=[],a=new Map,s=new Map,e.forEach(function(e){return s.set(e.getInstanceId(),e)}),n.list.forEach(function(e){var t=e.getInstanceId();s.has(t)&&(r.push(e),a.set(t,e))}),e.forEach(function(e){var t=e.getInstanceId();n.instanceIdMap.has(t)||(o.push(e),a.set(t,e))}),{list:D(r,o),instanceIdMap:a});var n,t,r,o,a,s})})},showFullWidth:function(e){return R(e)},getFullWidthCellRenderer:function(){return I.current}},T.current,r),function(){n.unsetComp(r)}}),oe.useLayoutEffect(function(){return _(y,t,T.current,I)},[y]),oe.useMemo(function(){var e={top:S,transform:M};return Object.assign(e,d),e},[S,M,d])),G=y&&y.componentFromFramework,k=null!=C,F=oe.useMemo(function(){return!!((null==y?void 0:y.componentFromFramework)&&le(y.componentClass))},[y]);return se.createElement("div",{ref:T,role:u,style:e,"row-index":o,"row-id":s,"row-business-key":l,tabIndex:f},k&&C.list.map(function(e){return se.createElement(K,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})}),G&&(u=y.componentClass,se.createElement(se.Fragment,null,F&&se.createElement(u,ie({},y.params)),!F&&se.createElement(u,ie({},y.params,{ref:I})))))}),X=oe.memo(function(e){var r=oe.useContext(ce).context,t=oe.useState([]),n=t[0],o=t[1],a=e.name,s=oe.useMemo(function(){return ae.getRowContainerTypeForName(a)},[a]),i=oe.useRef(null),u=oe.useRef(null),c=oe.useRef(null),l=oe.useRef([]),p=oe.useRef(!1),f=oe.useMemo(function(){return ae.RowContainerCtrl.getRowContainerCssClasses(a)},[a]),t=oe.useMemo(function(){return Y(f.wrapper)},[]),e=oe.useMemo(function(){return Y(f.viewport)},[]),m=oe.useMemo(function(){return Y(f.container)},[]),d=a===ae.RowContainerName.CENTER,h=a===ae.RowContainerName.TOP_CENTER||a===ae.RowContainerName.BOTTOM_CENTER||a===ae.RowContainerName.STICKY_TOP_CENTER,C=!d&&!h;function g(){x(function(){o(function(e){var t,n=l.current;return p.current?n:(t=e.filter(function(e){return 0<=n.indexOf(e)}),e=n.filter(function(e){return t.indexOf(e)<0}),D(t,e))})})}q(" AG Row Container "+a+" ",d?i:h?u:c),ue(function(){var e=[],t={setViewportHeight:function(e){return u.current.style.height=e},setRowCtrls:function(e){l.current!==e&&(l.current=e,g())},setDomOrder:function(e){p.current!=e&&(p.current=e,g())},setContainerWidth:function(e){return c.current.style.width=e}},n=r.createBean(new ae.RowContainerCtrl(a));return e.push(n),n.setComp(t,c.current,u.current,i.current),function(){r.destroyBeans(e)}});function y(){return se.createElement("div",{className:m,ref:c,role:n.length?"rowgroup":"presentation"},n.map(function(e){return se.createElement($,{rowCtrl:e,containerType:s,key:e.getInstanceId()})}))}return se.createElement(se.Fragment,null,d&&se.createElement("div",{className:t,ref:i,role:"presentation"},se.createElement("div",{className:e,ref:u,role:"presentation"},y())),h&&se.createElement("div",{className:e,ref:u,role:"presentation"},y()),C&&y())}),Z=oe.memo(function(){function o(e){return se.createElement(X,{name:e,key:e+"-container"})}function e(e){var t=e.section,n=e.children,r=e.className,e=e.style;return se.createElement("div",{ref:t,className:r,role:"presentation",style:e},n.map(o))}var t=oe.useContext(ce),a=t.context,s=t.agStackComponentsRegistry,i=t.resizeObserverService,t=oe.useState(""),n=t[0],u=t[1],t=oe.useState(0),r=t[0],c=t[1],t=oe.useState(0),l=t[0],p=t[1],t=oe.useState("0px"),f=t[0],m=t[1],t=oe.useState("0px"),d=t[0],h=t[1],t=oe.useState("100%"),C=t[0],g=t[1],t=oe.useState(""),y=t[0],R=t[1],t=oe.useState(""),E=t[0],v=t[1],t=oe.useState(null),S=t[0],w=t[1],t=oe.useState(""),M=t[0],O=t[1],t=oe.useState(null),T=t[0],I=t[1],t=oe.useState("ag-layout-normal"),b=t[0],P=t[1],_=oe.useMemo(function(){return new ae.CssClassManager(function(){return A.current})},[]),A=oe.useRef(null),N=oe.useRef(null),G=oe.useRef(null),k=oe.useRef(null),F=oe.useRef(null),D=oe.useRef(null),t=(q(" AG Grid Body ",A),q(" AG Pinned Top ",N),q(" AG Sticky Top ",G),q(" AG Middle ",F),q(" AG Pinned Bottom ",D),ue(function(){var e,t,n=[],r=[];if(a)return e=function(e){e=s.getComponentClass(e),e=a.createBean(new e);return n.push(e),e},A.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),A.current.appendChild(e("AG-FAKE-HORIZONTAL-SCROLL").getGui()),A.current.appendChild(document.createComment(" AG Overlay Wrapper ")),A.current.appendChild(e("AG-OVERLAY-WRAPPER").getGui()),k.current.appendChild(document.createComment(" AG Fake Vertical Scroll ")),k.current.appendChild(e("AG-FAKE-VERTICAL-SCROLL").getGui()),e={setRowAnimationCssOnBodyViewport:u,setColumnCount:function(e){return ae._.setAriaColCount(A.current,e)},setRowCount:function(e){return ae._.setAriaRowCount(A.current,e)},setTopHeight:c,setBottomHeight:p,setStickyTopHeight:m,setStickyTopTop:h,setStickyTopWidth:g,setTopDisplay:R,setBottomDisplay:v,setColumnMovingCss:function(e,t){return _.addOrRemoveCssClass(e,t)},updateLayoutClasses:P,setAlwaysVerticalScrollClass:w,setPinnedTopBottomOverflowY:O,setCellSelectableCss:I,setBodyViewportWidth:function(e){return F.current.style.width=e},registerBodyViewportResizeListener:function(e){var t=i.observeResize(F.current,e);r.push(function(){return t()})}},t=a.createBean(new ae.GridBodyCtrl),n.push(t),t.setComp(e,A.current,F.current,N.current,D.current,G.current),function(){a.destroyBeans(n),r.forEach(function(e){return e()})}}),oe.useMemo(function(){return Y("ag-root","ag-unselectable",b)},[b])),x=oe.useMemo(function(){return Y("ag-body-viewport",n,b,S,T)},[n,b,S,T]),B=oe.useMemo(function(){return Y("ag-body",b)},[b]),L=oe.useMemo(function(){return Y("ag-body-clipper",b)},[b]),U=oe.useMemo(function(){return Y("ag-floating-top",T)},[T]),H=oe.useMemo(function(){return Y("ag-sticky-top",T)},[T]),W=oe.useMemo(function(){return Y("ag-floating-bottom",T)},[T]),j=oe.useMemo(function(){return{height:r,minHeight:r,display:y,overflowY:M}},[r,y,M]),V=oe.useMemo(function(){return{height:f,top:d,width:C}},[f,d,C]),K=oe.useMemo(function(){return{height:l,minHeight:l,display:E,overflowY:M}},[l,E,M]);return se.createElement("div",{ref:A,className:t,role:"treegrid"},se.createElement(z,null),e({section:N,className:U,style:j,children:[ae.RowContainerName.TOP_LEFT,ae.RowContainerName.TOP_CENTER,ae.RowContainerName.TOP_RIGHT,ae.RowContainerName.TOP_FULL_WIDTH]}),se.createElement("div",{className:B,ref:k,role:"presentation"},se.createElement("div",{className:L,role:"presentation"},e({section:F,className:x,children:[ae.RowContainerName.LEFT,ae.RowContainerName.CENTER,ae.RowContainerName.RIGHT,ae.RowContainerName.FULL_WIDTH]}))),e({section:G,className:H,style:V,children:[ae.RowContainerName.STICKY_TOP_LEFT,ae.RowContainerName.STICKY_TOP_CENTER,ae.RowContainerName.STICKY_TOP_RIGHT,ae.RowContainerName.STICKY_TOP_FULL_WIDTH]}),e({section:D,className:W,style:K,children:[ae.RowContainerName.BOTTOM_LEFT,ae.RowContainerName.BOTTOM_CENTER,ae.RowContainerName.BOTTOM_RIGHT,ae.RowContainerName.BOTTOM_FULL_WIDTH]}))}),a=oe.forwardRef(function(e,t){function n(e){var t="top"===e?ae.TabGuardClassNames.TAB_GUARD_TOP:ae.TabGuardClassNames.TAB_GUARD_BOTTOM;return se.createElement("div",{className:ae.TabGuardClassNames.TAB_GUARD+" "+t,role:"presentation",tabIndex:p,ref:"top"===e?u:c})}var r=e.children,o=e.eFocusableElement,a=e.onTabKeyDown,s=e.gridCtrl,i=oe.useContext(ce).context,u=oe.useRef(null),c=oe.useRef(null),l=oe.useRef(),e=oe.useState(),p=e[0],f=e[1];oe.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){l.current.forceFocusOutOfContainer()}}}),ue(function(){var e=u.current,t=c.current,n=l.current=i.createBean(new ae.TabGuardCtrl({comp:{setTabIndex:function(e){return f(null==e?void 0:parseInt(e,10))}},eTopGuard:e,eBottomGuard:t,eFocusableElement:o,onTabKeyDown:a,focusInnerElement:function(e){return s.focusInnerElement(e)}}));return function(){i.destroyBean(n)}});return se.createElement(se.Fragment,null,n("top"),r,n("bottom"))}),J=oe.memo(a),Q=oe.memo(function(e){var p=e.context,e=oe.useState(""),t=e[0],n=e[1],e=oe.useState(""),r=e[0],o=e[1],e=oe.useState(""),a=e[0],s=e[1],e=oe.useState(null),i=e[0],u=e[1],e=oe.useState(null),c=e[0],l=e[1],e=oe.useState(!1),f=e[0],m=e[1],e=oe.useState(),d=e[0],h=e[1],C=oe.useRef(null),g=oe.useRef(null),y=oe.useRef(),R=oe.useRef(null),E=oe.useRef(function(){}),e=oe.useCallback(function(){},[]),v=oe.useMemo(function(){return p.getBean("beans")},[]),S=(q(" AG Grid ",g),ue(function(){var e=C.current=p.createBean(new ae.GridCtrl);return function(){p.destroyBean(e),C.current=null}}),ue(function(){var e=C.current,t=(E.current=e.focusInnerElement.bind(e),{destroyGridUi:function(){},setRtlClass:n,addOrRemoveKeyboardFocusClass:function(e){return o(e?ae.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){y.current.forceFocusOutOfContainer()},updateLayoutClasses:s,getFocusableContainers:function(){var e=[],t=g.current.querySelector(".ag-root"),n=g.current.querySelector(".ag-side-bar:not(.ag-hidden)");return t&&e.push(t),n&&e.push(n),e},setCursor:u,setUserSelect:l});e.setComp(t,g.current,g.current),m(!0)}),oe.useEffect(function(){var e,t,n,r,o,a,s,i,u,c,l;if(d)return e=C.current,t=[],c=(o=v.agStackComponentsRegistry).getComponentClass("AG-GRID-HEADER-DROP-ZONES"),u=o.getComponentClass("AG-SIDE-BAR"),n=o.getComponentClass("AG-STATUS-BAR"),r=o.getComponentClass("AG-WATERMARK"),o=o.getComponentClass("AG-PAGINATION"),a=[],s=g.current,i=R.current,e.showDropZones()&&c&&(l=(c=p.createBean(new c)).getGui(),s.insertAdjacentElement("afterbegin",l),a.push(l),t.push(c)),e.showSideBar()&&u&&(l=(c=p.createBean(new u)).getGui(),(u=i.querySelector(".ag-tab-guard-bottom"))&&(u.insertAdjacentElement("beforebegin",l),a.push(l)),t.push(c)),e.showStatusBar()&&n&&(l=(i=p.createBean(new n)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(i)),o&&(l=(u=p.createBean(new o)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(u)),e.showWatermark()&&r&&(l=(c=p.createBean(new r)).getGui(),s.insertAdjacentElement("beforeend",l),a.push(l),t.push(c)),function(){p.destroyBeans(t),a.forEach(function(e){e.parentElement&&e.parentElement.removeChild(e)})}},[d]),oe.useMemo(function(){return Y("ag-root-wrapper",t,r,a)},[t,r,a])),w=oe.useMemo(function(){return Y("ag-root-wrapper-body","ag-focus-managed",a)},[a]),M=oe.useMemo(function(){return{userSelect:null!=c?c:"",WebkitUserSelect:null!=c?c:"",cursor:null!=i?i:""}},[c,i]),O=R.current,T=oe.useCallback(function(e){y.current=e,h(!0)},[]);return se.createElement("div",{ref:g,className:S,style:M,role:"presentation"},se.createElement("div",{className:w,ref:R,role:"presentation"},f&&O&&se.createElement(ce.Provider,{value:v},se.createElement(J,{ref:T,eFocusableElement:O,onTabKeyDown:e,gridCtrl:C.current},se.createElement(Z,null)))))});o(h,ee=oe.Component),h.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),U(),setTimeout(function(){return L()},0),se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&se.createElement(Q,{context:this.state.context}),this.portalManager.getPortals())},h.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},h.prototype.componentDidMount=function(){var e,t=this;this.mounted||(this.mounted=!0,e=this.props.modules||[],e={providedBeanInstances:{frameworkComponentWrapper:new ne(this.portalManager)},modules:e,frameworkOverrides:new de(!0)},this.gridOptions=this.props.gridOptions||{},this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props),this.checkForDeprecations(this.props),(new ae.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(e){t.setState({context:e}),e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.api=t.gridOptions.api,t.columnApi=t.gridOptions.columnApi,t.props.setGridApi(t.api,t.columnApi),t.destroyFuncs.push(function(){return t.api.destroy()})})},function(e){e.getBean(ae.CtrlsService.NAME).whenReady(function(){t.whenReadyFuncs.forEach(function(e){return e()}),t.whenReadyFuncs.length=0,t.ready=!0})},e))},h.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},h.prototype.componentWillUnmount=function(){this.renderedAfterMount&&(this.destroyFuncs.forEach(function(e){return e()}),this.destroyFuncs.length=0)},h.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},h.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processChanges(n)},h.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},h.prototype.processChanges=function(e){var t=this;this.processWhenReady(function(){return ae.ComponentUtil.processOnChange(e,t.api)})},h.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)};var ee,E=h;function h(e){var t=ee.call(this,e)||this;return t.props=e,t.destroyFuncs=[],t.eGui=se.createRef(),t.whenReadyFuncs=[],t.ready=!1,t.renderedAfterMount=!1,t.mounted=!1,t.state={context:void 0},t.portalManager=new k(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t.destroyFuncs.push(function(){return t.portalManager.destroy()}),t}o(C,te=ae.BaseComponentWrapper),C.prototype.createWrapper=function(e,t){return new G(e,this.parent,t)};var te,ne=C;function C(e){var t=te.call(this)||this;return t.parent=e,t}var re,me=oe.forwardRef(function(r,e){var t=oe.useContext(ce),o=t.ctrlsFactory,a=t.context,s=t.gridOptionsService,i=t.resizeObserverService,u=t.clientSideRowModel,c=t.serverSideRowModel,t=oe.useState(new b),n=t[0],l=t[1],t=oe.useState(new b),p=t[0],f=t[1],t=oe.useState(),m=t[0],d=t[1],t=oe.useState(),h=t[0],C=t[1],g=oe.useRef(),y=oe.useRef(null),t=oe.useMemo(function(){return n.toString()+" ag-details-row"},[n]),R=oe.useMemo(function(){return p.toString()+" ag-details-grid"},[p]),e=(e&&oe.useImperativeHandle(e,function(){return{refresh:function(){return g.current.refresh()}}}),ue(function(){r.template&&"string"==typeof r.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")}),ue(function(){var e,t={addOrRemoveCssClass:function(t,n){return l(function(e){return e.setClass(t,n)})},addOrRemoveDetailGridCssClass:function(t,n){return f(function(e){return e.setClass(t,n)})},setDetailGrid:function(e){return d(e)},setRowData:function(e){return C(e)},getGui:function(){return y.current}},n=o.getInstance("detailCellRenderer");if(n)return a.createBean(n),n.init(t,r),g.current=n,s.is("detailRowAutoHeight")&&(e=i.observeResize(y.current,t=function(){var e;null!=y.current&&null!=(e=y.current.clientHeight)&&0<e&&setTimeout(function(){r.node.setRowHeight(e),u?u.onRowHeightChanged():c&&c.onRowHeightChanged()},0)}),t()),function(){a.destroyBean(n),e&&e()}}),oe.useCallback(function(e,t){g.current.registerDetailWithMaster(e,t)},[]));return se.createElement("div",{className:t,ref:y},m&&se.createElement(E,ie({className:R},m,{rowData:h,setGridApi:e})))}),de=(o(g,re=ae.VanillaFrameworkOverrides),g.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},g.prototype.isFrameworkComponent=function(e){return!(!e||(e=e.prototype)&&"getGui"in e)},g);function g(e){var t=re.call(this)||this;return t.frameworkComponents={agGroupCellRenderer:P,agGroupRowRenderer:P,agDetailCellRenderer:me},t.reactUi=e,t}o(R,he=oe.Component),R.prototype.render=function(){var t=this;return se.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(e){t.eGridDiv=e}},this.portalManager.getPortals())},R.prototype.createStyleForDiv=function(){return ie({height:"100%"},this.props.containerStyle||{})},R.prototype.componentDidMount=function(){var e=this.props.modules||[],e={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new ge(this,this.portalManager)},modules:e,frameworkOverrides:new de(!1)},t=this.props.gridOptions||{};this.gridOptions=ae.ComponentUtil.copyAttributesToGridOptions(t,this.props),this.checkForDeprecations(this.props),new ae.Grid(this.eGridDiv,this.gridOptions,e),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},R.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&ae._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},R.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},R.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},R.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},R.prototype.extractGridPropertyChanges=function(t,n,r){var o=!!n.debug;Object.keys(n).forEach(function(e){ae.ComponentUtil.ALL_PROPERTIES_SET.has(e)&&t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] property changed"),r[e]={previousValue:t[e],currentValue:n[e]})}),ae.ComponentUtil.EVENT_CALLBACKS.forEach(function(e){t[e]!==n[e]&&(o&&console.log("agGridReact: ["+e+"] event callback changed"),r[e]={previousValue:t[e],currentValue:n[e]})})},R.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},R.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},R.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},R.prototype.processSynchronousChanges=function(e){var t,n=ie({},e);return 0<Object.keys(n).length&&(t={},this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach(function(e){n[e]&&(t[e]=n[e],delete n[e])}),0<Object.keys(t).length)&&this.api&&ae.ComponentUtil.processOnChange(t,this.api),n},R.prototype.processAsynchronousChanges=function(e){var t=this;0<Object.keys(e).length&&window.setTimeout(function(){t.api&&ae.ComponentUtil.processOnChange(e,t.api)})},R.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:R.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3};var he,y=R;function R(e){var t=he.call(this,e)||this;return t.props=e,t.api=null,t.destroyed=!1,t.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],t.portalManager=new k(t,e.componentWrappingElement,e.maxComponentCreationTimeMs),t}function v(e,t){e.forEach(function(e){y[e]=t})}y.propTypes={gridOptions:t.object},v(ae.ComponentUtil.EVENT_CALLBACKS,t.func),v(ae.ComponentUtil.BOOLEAN_PROPERTIES,t.bool),v(ae.ComponentUtil.STRING_PROPERTIES,t.string),v(ae.ComponentUtil.OBJECT_PROPERTIES,t.object),v(ae.ComponentUtil.ARRAY_PROPERTIES,t.array),v(ae.ComponentUtil.NUMBER_PROPERTIES,t.number),v(ae.ComponentUtil.FUNCTION_PROPERTIES,t.func);o(S,Ce=ae.BaseComponentWrapper),S.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new A(e,this.agGridReact,this.portalManager,t):new G(e,this.portalManager,t)};var Ce,ge=S;function S(e,t){var n=Ce.call(this)||this;return n.agGridReact=e,n.portalManager=t,n}o(Re,ye=oe.Component),Re.prototype.render=function(){return this.props.suppressReactUi?se.createElement(y,ie({},this.props,{setGridApi:this.setGridApi})):se.createElement(E,ie({},this.props,{setGridApi:this.setGridApi}))};var ye,a=Re;function Re(){var n=null!==ye&&ye.apply(this,arguments)||this;return n.setGridApi=function(e,t){n.api=e,n.columnApi=t},n}e.AgGridReact=a,e.AgGridReactLegacy=y,e.AgGridReactFire=E,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { Component } from 'react';

@@ -3,0 +3,0 @@ import { AgGridReactProps, AgReactUiProps } from './shared/interfaces';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () {

@@ -1,3 +0,3 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import '@ag-grid-community/styles/ag-grid.css';
import '@ag-grid-community/styles/ag-theme-alpine.css';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { ColumnApi, GridApi, GridOptions } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import React, { Component } from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { AgPromise, ComponentType } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import { ReactComponent } from '../shared/reactComponent';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () {

@@ -1,4 +0,4 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
export { AgGridReact } from './agGridReact';
export { AgGridReactLegacy } from './legacy/agGridReactLegacy';
export { AgGridReactUi as AgGridReactFire } from './reactUi/agGridReactUi';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { ColumnApi, Context, GridApi } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import { Component } from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -57,2 +57,3 @@ var __extends = (this && this.__extends) || (function () {

var reactFrameworkOverrides_1 = require("../shared/reactFrameworkOverrides");
var utils_1 = require("./utils");
function debug(msg, obj) {

@@ -84,2 +85,4 @@ // console.log(msg, obj);

}
utils_1.FlushSyncToggle.off();
setTimeout(function () { return utils_1.FlushSyncToggle.on(); }, 0);
return (react_1.default.createElement("div", { style: this.createStyleForDiv(), className: this.props.className, ref: this.eGui },

@@ -86,0 +89,0 @@ this.state.context && react_1.default.createElement(gridComp_1.default, { context: this.state.context }),

@@ -1,4 +0,4 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import React from 'react';
import { Beans } from 'ag-grid-community';
export declare const BeansContext: React.Context<Beans>;

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import React from "react";

@@ -3,0 +3,0 @@ import { IDetailCellRendererParams } from "ag-grid-community";

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __assign = (this && this.__assign) || function () {

@@ -1,4 +0,4 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import React from 'react';
declare const GroupCellRenderer: React.ForwardRefExoticComponent<import("ag-grid-community").IGroupCellRendererParams<any, any> & import("ag-grid-community").ICellRendererParams<any, any, any> & import("ag-grid-community").IGroupCellRendererFullRowParams & React.RefAttributes<unknown>>;
export default GroupCellRenderer;

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __assign = (this && this.__assign) || function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { CellCtrl, UserCompDetails } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import React from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __assign = (this && this.__assign) || function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { CellCtrl } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import React from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { ICellRendererComp } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import { MutableRefObject } from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,4 +0,4 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import React from 'react';
declare const _default: React.MemoExoticComponent<() => JSX.Element>;
export default _default;

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { Context } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import React from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

@@ -1,4 +0,4 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import React from 'react';
declare const _default: React.MemoExoticComponent<() => JSX.Element>;
export default _default;

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import React from 'react';

@@ -3,0 +3,0 @@ import { HeaderCellCtrl } from 'ag-grid-community';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __assign = (this && this.__assign) || function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import React from 'react';

@@ -3,0 +3,0 @@ import { HeaderFilterCellCtrl } from 'ag-grid-community';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __assign = (this && this.__assign) || function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { HeaderGroupCellCtrl } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import React from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __assign = (this && this.__assign) || function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { HeaderRowCtrl } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import React from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import React from 'react';

@@ -3,0 +3,0 @@ import { ColumnPinnedType } from 'ag-grid-community';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { Context, UserCompDetails } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import { MutableRefObject } from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,4 +0,4 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { RefObject } from 'react';
declare const useReactCommentEffect: (comment: string, eForCommentRef: RefObject<HTMLElement>) => void;
export default useReactCommentEffect;

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { VanillaFrameworkOverrides } from "ag-grid-community";

@@ -3,0 +3,0 @@ export declare class ReactFrameworkOverrides extends VanillaFrameworkOverrides {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import React from 'react';

@@ -3,0 +3,0 @@ import { RowContainerType, RowCtrl } from 'ag-grid-community';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __assign = (this && this.__assign) || function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { RowContainerName } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import React from 'react';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import React from 'react';

@@ -3,0 +3,0 @@ import { GridCtrl } from 'ag-grid-community';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

@@ -1,3 +0,3 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
export declare const useEffectOnce: (effect: () => void | (() => void)) => void;
export declare const useLayoutEffectOnce: (effect: () => void | (() => void)) => void;

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
export declare const classesList: (...list: (string | null | undefined)[]) => string;

@@ -10,2 +10,6 @@ export declare class CssClasses {

export declare const isComponentStateless: (Component: any) => boolean;
export declare const FlushSyncToggle: {
on: () => boolean;
off: () => boolean;
};
/**

@@ -12,0 +16,0 @@ * Wrapper around flushSync to provide backwards compatibility with React 16-17

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -18,3 +18,3 @@ var __assign = (this && this.__assign) || function () {

Object.defineProperty(exports, "__esModule", { value: true });
exports.agFlushSync = exports.isComponentStateless = exports.CssClasses = exports.classesList = void 0;
exports.agFlushSync = exports.FlushSyncToggle = exports.isComponentStateless = exports.CssClasses = exports.classesList = void 0;
var react_dom_1 = __importDefault(require("react-dom"));

@@ -68,2 +68,9 @@ exports.classesList = function () {

var createRootAndFlushSyncAvailable = react_dom_1.default.createRoot != null && react_dom_1.default.flushSync != null;
var agFlushSyncActive = true;
exports.FlushSyncToggle = {
on: function () { return agFlushSyncActive = true; },
off: function () { return agFlushSyncActive = false; }
};
// Avoid using nested flushSync calls, as this causes error messages in the console.
var activeFlushSyncs = 0;
/**

@@ -74,4 +81,6 @@ * Wrapper around flushSync to provide backwards compatibility with React 16-17

exports.agFlushSync = function (fn) {
if (createRootAndFlushSyncAvailable) {
if (createRootAndFlushSyncAvailable && agFlushSyncActive && activeFlushSyncs === 0) {
activeFlushSyncs++;
react_dom_1.default.flushSync(fn);
activeFlushSyncs--;
}

@@ -78,0 +87,0 @@ else {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { ColumnApi, GridApi, GridOptions, ICellEditor, ICellRenderer, IDate, IFilter, IFloatingFilter, IHeader, IHeaderGroup, IStatusPanel, IToolPanel, Module } from 'ag-grid-community';

@@ -3,0 +3,0 @@ /** @deprecated v29 ChangeDetectionStrategyType has been deprecated. IdentityCheck will always be used now for a more consistent approach. */

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
export default function generateNewKey(): string;

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { ComponentType, AgPromise } from 'ag-grid-community';

@@ -3,0 +3,0 @@ import { ReactComponent } from './reactComponent';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { Component, ReactPortal } from "react";

@@ -3,0 +3,0 @@ import { ReactComponent } from "./reactComponent";

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __spreadArrays = (this && this.__spreadArrays) || function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { ReactPortal } from 'react';

@@ -3,0 +3,0 @@ import { ComponentType, IComponent, WrappableInterface } from 'ag-grid-community';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { VanillaFrameworkOverrides } from "ag-grid-community";

@@ -3,0 +3,0 @@ export declare class ReactFrameworkOverrides extends VanillaFrameworkOverrides {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ var __extends = (this && this.__extends) || (function () {

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
import { RefObject } from 'react';

@@ -3,0 +3,0 @@ import { ColumnApi, GridApi } from 'ag-grid-community';

@@ -1,2 +0,2 @@

// ag-grid-react v29.3.2
// ag-grid-react v29.3.3
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

{
"name": "ag-grid-react",
"version": "29.3.2",
"version": "29.3.3",
"description": "AG Grid React Component",

@@ -41,6 +41,6 @@ "main": "main.js",

"prop-types": "^15.6.2",
"ag-grid-community": "~29.3.2",
"@ag-grid-community/react": "~29.3.2",
"@ag-grid-community/client-side-row-model": "~29.3.2",
"@ag-grid-community/core": "~29.3.2",
"ag-grid-community": "~29.3.3",
"@ag-grid-community/react": "~29.3.3",
"@ag-grid-community/client-side-row-model": "~29.3.3",
"@ag-grid-community/core": "~29.3.3",
"gulp": "^4.0.0",

@@ -83,3 +83,3 @@ "gulp-clean": "^0.4.0",

"peerDependencies": {
"ag-grid-community": "~29.3.2",
"ag-grid-community": "~29.3.3",
"react": "^16.3.0 || ^17.0.0 || ^18.0.0",

@@ -86,0 +86,0 @@ "react-dom": "^16.3.0 || ^17.0.0 || ^18.0.0"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc