PageSourceSearch

https://existants.fr/observatoire-static/_next/static/chunks/d99de76b.04f99eb30d46324b.js

js existants.fr collected 2026-09-24 12:35:10 UTC 1,213,552 bytes, 50 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fdf72eec-2668-41ed-af9a-9070bc0cc21a",e._sentryDebugIdIdentifier="sentry-dbid-fdf72eec-2668-41ed-af9a-9070bc0cc21a")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5905],{52220:(e,t,i)=>{i.r(t),i.d(t,{ALWAYS_SYNC_GLOBAL_EVENTS:()=>ux,AgAbstractCellEditor:()=>s4,AgAbstractInputField:()=>nl,AgAbstractLabel:()=>ns,AgCheckbox:()=>na,AgCheckboxSelector:()=>nd,AgColumn:()=>i1,AgColumnGroup:()=>oq,AgContentEditableField:()=>vE,AgContentEditableFieldSelector:()=>vx,AgFilterButtonSelector:()=>rA,AgInputDateField:()=>px,AgInputNumberField:()=>pH,AgInputNumberFieldSelector:()=>pV,AgInputTextArea:()=>pA,AgInputTextField:()=>pR,AgInputTextFieldSelector:()=>pE,AgPickerField:()=>pU,AgPopupComponent:()=>s6,AgPromise:()=>oQ,AgProvidedColumnGroup:()=>ot,AgRadioButton:()=>mJ,AgRadioButtonSelector:()=>mX,AgSelect:()=>p_,AgSelectSelector:()=>p$,AgToggleButton:()=>vF,AgToggleButtonSelector:()=>vP,AlignedGridsModule:()=>gM,AllCommunityModule:()=>vh,AutoScrollService:()=>af,BaseColsService:()=>vw,BaseComponentWrapper:()=>vb,BaseCreator:()=>pe,BaseGridSerializingSession:()=>pi,BaseSelectionService:()=>CJ,BeanStub:()=>tc,BigIntFilterModule:()=>Cg,CellApiModule:()=>gt,CellRangeType:()=>nW,CellSpanModule:()=>C$,CellStyleModule:()=>C4,ChangedPath:()=>aS,CheckboxEditorModule:()=>mf,ClientSideRowModelApiModule:()=>g0,ClientSideRowModelModule:()=>gX,ColumnApiModule:()=>dy,ColumnAutoSizeModule:()=>g5,ColumnHoverModule:()=>g7,ColumnKeyCreator:()=>or,Component:()=>o5,CssClassManager:()=>o3,CsvExportModule:()=>pr,CustomEditorModule:()=>mw,CustomFilterModule:()=>Ch,DateEditorModule:()=>mm,DateFilterModule:()=>Cp,Direction:()=>lt,DragAndDropModule:()=>aA,DragSourceType:()=>rM,EventApiModule:()=>Cb,ExternalFilterModule:()=>Cf,FakeHScrollComp:()=>n4,FakeVScrollComp:()=>n9,FilterButtonComp:()=>rT,FilterComp:()=>rN,FilterWrapperComp:()=>rG,GROUP_AUTO_COLUMN_ID:()=>os,GROUP_HIERARCHY_COLUMN_ID_PREFIX:()=>oa,GridBodyCtrl:()=>lU,GridCoreCreator:()=>gy,GridCtrl:()=>l0,GridHeaderCtrl:()=>sI,GridStateModule:()=>CE,GroupInstanceIdCreator:()=>aJ,HeaderRowContainerCtrl:()=>s2,HighlightChangesModule:()=>CV,InfiniteRowModelModule:()=>Cw,KeyCode:()=>oK,LargeTextEditorModule:()=>mv,LocalEventService:()=>T,LocaleModule:()=>CS,LocaleService:()=>Cy,ManagedFocusFeature:()=>ss,ModuleRegistry:()=>tW,NumberEditorModule:()=>mp,NumberFilterModule:()=>Cc,PaginationModule:()=>CT,PinnedRowModel:()=>nO,PinnedRowModule:()=>CA,PositionableFeature:()=>rq,ProvidedFilter:()=>sn,QuickFilterModule:()=>Cm,ROW_NUMBERS_COLUMN_ID:()=>ol,RefPlaceholder:()=>oZ,RenderApiModule:()=>CG,RowApiModule:()=>gA,RowAutoHeightModule:()=>CO,RowContainerCtrl:()=>lz,RowDragModule:()=>aL,RowNode:()=>nb,RowSelectionModule:()=>C2,RowStyleModule:()=>C5,SELECTION_COLUMN_ID:()=>on,STRUCTURED_SCHEMA_FEATURES:()=>sl,ScrollApiModule:()=>gI,SelectEditorModule:()=>mC,ServerSideTransactionResultStatus:()=>nN,TabGuardClassNames:()=>lY,TabGuardComp:()=>lX,TabGuardCtrl:()=>vy,TabGuardFeature:()=>vS,TextEditorModule:()=>mg,TextFilterModule:()=>Cu,TooltipModule:()=>pf,TouchListener:()=>nz,UndoRedoEditModule:()=>mc,ValidationModule:()=>vd,ValueCacheModule:()=>ge,VanillaFrameworkOverrides:()=>gf,_AgBeanStub:()=>tu,_AgComponentStub:()=>o6,_AgContext:()=>n_,_AgPositionableFeature:()=>r$,_AgTabGuardComp:()=>lJ,_AgTabGuardFeature:()=>lZ,_AgTooltipComponent:()=>pd,_AgTooltipFeature:()=>ps,_BOOLEAN_MIXED_GRID_OPTIONS:()=>uH,_BaseDragAndDropService:()=>o9,_BaseDragService:()=>al,_BaseEnvironment:()=>hl,_BaseEventService:()=>um,_BasePopupService:()=>pu,_BaseRegistry:()=>dx,_BaseTooltipStateManager:()=>pl,_ChangedRowNodes:()=>aC,_ColumnFilterModule:()=>Cd,_ColumnGroupModule:()=>a3,_ColumnMoveModule:()=>a$,_CsrmSsrmSharedApiModule:()=>gH,_DragModule:()=>aT,_EditCoreModule:()=>mu,_EmptyArray:()=>C,_EmptyBean:()=>sU,_FOCUS_MANAGED_CLASS:()=>r9,_FilterCoreModule:()=>Cl,_FilterValueModule:()=>Ca,_GET_ALL_EVENTS:()=>uE,_GET_ALL_GRID_OPTIONS:()=>uO,_HeaderComp:()=>uK,_HorizontalResizeModule:()=>aB,_KeyboardNavigationModule:()=>cM,_MONTHS:()=>dl,_PUBLIC_EVENTS:()=>uS,_PUBLIC_EVENT_HANDLERS_MAP:()=>uF,_PopupModule:()=>pc,_ROW_ID_PREFIX_BOTTOM_PINNED:()=>nv,_ROW_ID_PREFIX_ROW_GROUP:()=>nf,_ROW_ID_PREFIX_TOP_PINNED:()=>nC,_RowModelSharedApiModule:()=>gV,_STOP_PROPAGATION_CALLBACKS:()=>sr,_SharedDragAndDropModule:()=>aI,_SharedExportModule:()=>g9,_SharedMenuModule:()=>mT,_SharedRowSelectionModule:()=>C3,_SortModule:()=>c5,_SsrmInfiniteSharedApiModule:()=>gG,_addAdditionalCss:()=>ug,_addColumnDefaultAndTypes:()=>ok,_addFocusableContainerListener:()=>sb,_addGridCommonParams:()=>iK,_anchorElementToMouseMoveEvent:()=>ti,_applyColumnState:()=>oO,_areCellsEqual:()=>sd,_areColIdsEqual:()=>oC,_areEqual:()=>w,_areSortDefsEqual:()=>i5,_asThemeImpl:()=>d8,_attemptToRestoreCellFocus:()=>sx,_batchCall:()=>tC,_camelCaseToHumanText:()=>V,_canSkipShowingRowGroup:()=>ib,_clearElement:()=>eH,_columnsMatch:()=>ob,_combineAttributesAndGridOptions:()=>i$,_convertColumnEventSourceType:()=>ow,_coreThemeDefaults:()=>hh,_createAgElement:()=>
1e2,_createCellId:()=>sa,_createColumnTree:()=>ox,_createColumnTreeWithIds:()=>oE,_createElement:()=>oX,_createGlobalRowEvent:()=>ny,_createIcon:()=>o0,_createIconNoSpan:()=>o1,_createRowNodeSibling:()=>nR,_createSharedTheme:()=>d7,_csrmFirstLeaf:()=>av,_csrmReorderAllLeafs:()=>aw,_debounce:()=>tv,_defaultComparator:()=>k,_destroyColumnTree:()=>ou,_doOnce:()=>tp,_downloadFile:()=>pt,_errMsg:()=>t6,_error:()=>t0,_escapeString:()=>B,_exists:()=>F,_findEnterpriseCoreModule:()=>function e(t){for(let i of t){if("setLicenseKey"in i)return i;if(i.dependsOn){let t=e(i.dependsOn);if(t)return t}}},_findFocusableElements:()=>r4,_findNextFocusableElement:()=>r8,_findTabbableParent:()=>r7,_flatten:()=>E,_focusGridInnerElement:()=>sy,_focusInto:()=>r5,_focusNextGridCoreContainer:()=>sE,_formatNumberCommas:()=>CF,_fuzzySuggestions:()=>go,_getAbsoluteHeight:()=>eT,_getAbsoluteRowIndex:()=>sC,_getAbsoluteWidth:()=>eA,_getActiveDomElement:()=>O,_getAriaPosInSet:()=>j,_getCallbackForEvent:()=>i_,_getCellByPosition:()=>sm,_getCellCtrlForEventTarget:()=>lp,_getCellPositionForEvent:()=>ab,_getCellRendererDetails:()=>rS,_getCheckboxLocation:()=>ix,_getCheckboxes:()=>iR,_getClientSideRowModel:()=>nc,_getColumnState:()=>oW,_getColumnStateFromColDef:()=>oy,_getColumnsFromTree:()=>od,_getDateParts:()=>ds,_getDefaultFloatingFilterType:()=>mU,_getDefaultSimpleFilter:()=>mW,_getDisplaySortForColumn:()=>i9,_getDocument:()=>N,_getEditorRendererDetails:()=>rR,_getEnableColumnSelection:()=>iA,_getFillHandle:()=>iT,_getFilterDetails:()=>rF,_getFilterModel:()=>mP,_getFilterParamsForDataType:()=>mO,_getFirstRow:()=>sc,_getFloatingFilterCompDetails:()=>rP,_getFloatingFiltersHeight:()=>sT,_getGlobalGridOption:()=>tF,_getGrandTotalRow:()=>ig,_getGridOption:()=>ij,_getGridRegisteredModules:()=>tN,_getGroupAggFiltering:()=>ic,_getGroupSelection:()=>iV,_getGroupSelectsDescendants:()=>iO,_getGroupTotalRowCallback:()=>ip,_getHeaderCheckbox:()=>iE,_getHeaderClassesFromColDef:()=>sq,_getHeaderRowCount:()=>sF,_getInnerCellRendererDetails:()=>ry,_getInnerHeight:()=>eM,_getInnerWidth:()=>ek,_getIsRowSelectable:()=>iL,_getLastRow:()=>sg,_getLocaleTextFromFunc:()=>td,_getLocaleTextFromMap:()=>th,_getLocaleTextFunc:()=>tl,_getMaxConcurrentDatasourceRequests:()=>iy,_getNormalisedMousePosition:()=>ay,_getPageBody:()=>U,_getParamType:()=>dj,_getRootNode:()=>G,_getRowAbove:()=>sf,_getRowBelow:()=>sv,_getRowContainerClass:()=>lk,_getRowContainerOptions:()=>lA,_getRowCtrlForEventTarget:()=>lf,_getRowHeightAsNumber:()=>ir,_getRowHeightForNode:()=>io,_getRowIdCallback:()=>iw,_getRowNode:()=>sp,_getRowSelectionMode:()=>iB,_getRowSpanContainerClass:()=>lT,_getRowViewportClass:()=>lM,_getServerSideRowModel:()=>np,_getShouldDisplayTooltip:()=>pp,_getSortDefFromColDef:()=>oS,_getSortDefFromInput:()=>i3,_getSuppressMultiRanges:()=>iM,_getToolPanelClassesFromColDef:()=>sK,_getViewportRowModel:()=>nm,_getWindow:()=>W,_gridThemeLogger:()=>hR,_interpretAsRightClick:()=>iY,_isAnimateRows:()=>id,_isBrowserFirefox:()=>rj,_isBrowserSafari:()=>rK,_isCellSelectionEnabled:()=>ik,_isClientSideRowModel:()=>t8,_isColumnMenuAnchoringEnabled:()=>iU,_isColumnsSortingCoupledToGroup:()=>iu,_isComponent:()=>oJ,_isDomLayout:()=>t9,_isElementInEventPath:()=>e7,_isElementOverflowingCallback:()=>e_,_isEventFromPrintableCharacter:()=>ld,_isExpressionString:()=>H,_isFocusableFormField:()=>eR,_isFullWidthGroupRow:()=>iv,_isGetRowHeightFunction:()=>it,_isGroupMultiAutoColumn:()=>im,_isGroupRowsSticky:()=>ih,_isGroupUseEntireRow:()=>iC,_isIOSUserAgent:()=>rQ,_isKeyboardMode:()=>r6,_isLegacyMenuEnabled:()=>iW,_isMultiRowSelection:()=>iH,_isNodeOrElement:()=>eQ,_isNothingFocused:()=>z,_isPromise:()=>oY,_isRowBefore:()=>sh,_isRowNumbers:()=>ii,_isRowSelection:()=>ie,_isSameRow:()=>su,_isServerSideRowModel:()=>t7,_isSetFilterByDefault:()=>iz,_isShowTooltipWhenTruncated:()=>pg,_isSortDirectionValid:()=>i2,_isSortTypeValid:()=>i6,_isStopPropagationForAgGrid:()=>so,_isUseApplyButton:()=>rH,_isUsingNewCellSelectionAPI:()=>iD,_isUsingNewRowSelectionAPI:()=>iP,_isVisible:()=>eO,_jsonEquals:()=>M,_last:()=>v,_loadTemplate:()=>eN,_logPreInitWarn:()=>t3,_makeNull:()=>x,_mergeDeep:()=>tS,_missing:()=>P,_normalizeSortDirection:()=>i8,_normalizeSortType:()=>i7,_observeResize:()=>eX,_paramToVariableName:()=>dV,_paramValueToCss:()=>d4,_parseBigIntOrNull:()=>a9,_parseDateTimeFromString:()=>dh,_placeCaretAtEnd:()=>eJ,_preInitErrMsg:()=>t4,_prevOrNextDisplayedRow:()=>nE,_processOnChange:()=>iq,_radioCssClass:()=>ey,_refreshFilterUi:()=>mE,_refreshHandlerAndUi:()=>mR,_registerModule:()=>tG,_removeAllFromArray:()=>S,_removeAriaExpanded:()=>er,_removeAriaSort:()=>eg,_removeFromArray:()=>y,_removeFromParent:()=>eV,_requestAnimationFrame:()=>e0,_resetColumnState:()=>oN,_selectAllCells:()=>lv,_serialiseDate:()=>dr,_setAriaActiveDescendant:()=>ei,_setAriaChecked:()=>em,_setAriaColCount:()=>ed,_setAriaColIndex:()=>eh,_setAriaColSpan:()=>
1eu,_setAriaControls:()=>ef,_setAriaControlsAndLabel:()=>eC,_setAriaDescribedBy:()=>Z,_setAriaDisabled:()=>ee,_setAriaExpanded:()=>eo,_setAriaHasPopup:()=>ev,_setAriaHidden:()=>et,_setAriaInvalid:()=>J,_setAriaLabel:()=>Y,_setAriaLabelledBy:()=>Q,_setAriaLevel:()=>X,_setAriaOrientation:()=>eb,_setAriaPosInSet:()=>en,_setAriaRole:()=>K,_setAriaRowCount:()=>el,_setAriaRowIndex:()=>ea,_setAriaSelected:()=>ep,_setAriaSetSize:()=>es,_setAriaSort:()=>ec,_setColMenuVisible:()=>mM,_setDisabled:()=>eF,_setDisplayed:()=>eE,_setFixedWidth:()=>eK,_setUmd:()=>tz,_setVisible:()=>ex,_sharedThemeDefaults:()=>dq,_shouldUpdateColVisibilityAfterGroup:()=>iS,_stopPropagationForAgGrid:()=>si,_suppressCellMouseEvent:()=>lh,_themeAlpineParams:()=>h8,_themeBalhamParams:()=>h9,_themeMaterialParams:()=>ui,_themeQuartzParams:()=>h4,_toString:()=>L,_toStringOrNull:()=>D,_translate:()=>ta,_translateForFilter:()=>rL,_unwrapUserComp:()=>u1,_updateColsMap:()=>ov,_updateColumnState:()=>oM,_updateFilterModel:()=>mF,_waitUntil:()=>tb,_warn:()=>tX,_warnOnce:()=>tk,agTestIdFor:()=>vc,buttonStyleAlpine:()=>hv,buttonStyleBalham:()=>hw,buttonStyleBase:()=>hf,buttonStyleQuartz:()=>hC,checkboxStyleDefault:()=>hx,colorSchemeDark:()=>hk,colorSchemeDarkBlue:()=>hI,colorSchemeDarkWarm:()=>hA,colorSchemeLight:()=>hF,colorSchemeLightCold:()=>hD,colorSchemeLightWarm:()=>hP,colorSchemeVariable:()=>hL,columnDropStyleBordered:()=>hb,columnDropStylePlain:()=>hy,convertColumnGroupState:()=>gD,convertColumnState:()=>gx,createGrid:()=>gw,createPart:()=>dI,createTheme:()=>hE,getGridApi:()=>gR,getGridElement:()=>gE,iconOverrides:()=>hG,iconSetAlpine:()=>hH,iconSetBalham:()=>hB,iconSetMaterial:()=>hV,iconSetQuartz:()=>hU,iconSetQuartzBold:()=>hq,iconSetQuartzLight:()=>h_,iconSetQuartzRegular:()=>h$,inputStyleBase:()=>hY,inputStyleBordered:()=>hQ,inputStyleUnderlined:()=>hZ,isColumn:()=>iJ,isColumnGroup:()=>o$,isColumnGroupAutoCol:()=>oc,isColumnSelectionCol:()=>og,isCombinedFilterModel:()=>rz,isProvidedColumnGroup:()=>oe,isRowNumberCol:()=>op,isSpecialCol:()=>om,onRowHeightChanged:()=>gL,provideGlobalGridOptions:()=>tx,resetRowHeights:()=>gB,setupAgTestIds:()=>vv,styleMaterial:()=>ut,tabStyleAlpine:()=>h2,tabStyleBase:()=>h0,tabStyleMaterial:()=>h3,tabStyleQuartz:()=>h1,tabStyleRolodex:()=>h6,themeAlpine:()=>h7,themeBalham:()=>ue,themeMaterial:()=>uo,themeQuartz:()=>h5,wrapAgTestIdFor:()=>vg});var o,r,s,n,l,a,d,h,u,c,g,p,m,f,C=Object.freeze([]);function v(e){if(e?.length)return e[e.length-1]}function w(e,t,i){if(e===t)return!0;if(!e||!t)return null==e&&null==t;let o=e.length;if(o!==t.length)return!1;for(let r=0;r<o;r++)if(e[r]!==t[r]&&!i?.(e[r],t[r]))return!1;return!0}function b(e,t){if(e){for(let i of e)if(t(i))return!0}}function y(e,t){let i=e.indexOf(t);i>=0&&e.splice(i,1)}function S(e,t){let i=0,o=0;for(;i<e.length;i++)!t.includes(e[i])&&(e[o]=e[i],o++);for(;o<e.length;)e.pop()}function R(e,t,i){for(let i=0;i<t.length;i++)y(e,t[i]);for(let o=t.length-1;o>=0;o--)e.splice(i,0,t[o])}function E(e){return[].concat.apply([],e)}var x=e=>null==e||""===e?null:e;function F(e){return null!=e&&""!==e}function P(e){return!F(e)}var D=e=>null!=e&&"function"==typeof e.toString?e.toString():null,M=(e,t)=>(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null),k=(e,t,i=!1)=>null==e?null==t?0:-1:null==t?1:("object"==typeof e&&e.toNumber&&(e=e.toNumber()),"object"==typeof t&&t.toNumber&&(t=t.toNumber()),i&&"string"==typeof e)?e.localeCompare(t):e>t?1:e<t?-1:0,T=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}
1setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,i){let o=t?this.allAsyncListeners:this.allSyncListeners,r=o.get(e);return!r&&i&&(r=new Set,o.set(e,r)),r}noRegisteredListenersExist(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size}addEventListener(e,t,i=!1){this.getListeners(e,i,!0).add(t)}removeEventListener(e,t,i=!1){let o=this.getListeners(e,i,!1);o&&(o.delete(t),0===o.size&&(i?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){this.getGlobalListeners(t).add(e)}removeGlobalListener(e,t=!1){this.getGlobalListeners(t).delete(e)}dispatchEvent(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){let i=e.type;if(t&&"event"in e){let t=e.event;t instanceof Event&&(e.eventPath=t.composedPath())}let{frameworkOverrides:o}=this,r=e=>{let i=o?()=>o.wrapIncoming(e):e;t?this.dispatchAsync(i):i()},s=this.getListeners(i,t,!1);if((s?.size??0)>0)for(let t of new Set(s))s?.has(t)&&r(()=>t(e));let n=this.getGlobalListeners(t);if(n.size>0)for(let t of new Set(n))r(()=>t(i,e))}getGlobalListeners(e){return e?this.globalAsyncListeners:this.globalSyncListeners}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){let e=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)},t=this.frameworkOverrides;t?t.wrapIncoming(e):e(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;let e=this.asyncFunctionsQueue.slice();for(let t of(this.asyncFunctionsQueue=[],e))t()}},A=/[&<>"']/g,I={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function L(e){return e?.toString().toString()??null}function B(e){return L(e)?.replace(A,e=>I[e])??null}function H(e){return"string"==typeof e&&e.startsWith("=")&&e.length>1}function V(e){return e&&null!=e?e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z])([a-z])/g,"$1 $2$3").replace(/\./g," ").split(" ").map(e=>e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")).join(" "):null}function G(e){return e.eRootDiv.getRootNode()}function O(e){return G(e).activeElement}function N(e){let{gos:t,eRootDiv:i}=e,o=null,r=t.get("getDocument");return(r&&F(r)?o=r():i&&(o=i.ownerDocument),o&&F(o))?o:document}function z(e){let t=O(e);return null===t||t===N(e).body}function W(e){return N(e).defaultView||window}function U(e){let t=null,i=null;try{t=N(e).fullscreenElement}catch(e){}finally{t||(t=G(e));let o=t.querySelector("body");i=o||(t instanceof ShadowRoot?t:t instanceof Document?t?.documentElement:t)}return i}function _(e,t,i){null==i||"string"==typeof i&&""==i?q(e,t):$(e,t,i)}function $(e,t,i){var o;e.setAttribute((o=t,`aria-${o}`),i.toString())}function q(e,t){var i;e.removeAttribute((i=t,`aria-${i}`))}function K(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function j(e){return Number.parseInt(e.getAttribute("aria-posinset"),10)}function Y(e,t){_(e,"label",t)}function Q(e,t){_(e,"labelledby",t)}function Z(e,t){_(e,"describedby",t)}function J(e,t){_(e,"invalid",t)}function X(e,t){_(e,"level",t)}function ee(e,t){_(e,"disabled",t)}function et(e,t){_(e,"hidden",t)}function ei(e,t){_(e,"activedescendant",t)}function eo(e,t){$(e,"expanded",t)}function er(e){q(e,"expanded")}function es(e,t){$(e,"setsize",t)}function en(e,t){$(e,"posinset",t)}function el(e,t){$(e,"rowcount",t)}function ea(e,t){$(e,"rowindex",t)}function ed(e,t){$(e,"colcount",t)}function eh(e,t){$(e,"colindex",t)}function eu(e,t){$(e,"colspan",t)}function ec(e,t){$(e,"sort",t)}function eg(e){q(e,"sort")}function ep(e,t){_(e,"selected",t)}function em(e,t){$(e,"checked",void 0===t?"mixed":t)}function ef(e,t){_(e,"controls",t)}function eC(e,t){ef(e,t.id),Q(t,e.id)}function ev(e,t){_(e,"haspopup",!1===t?null:t)}function ew(e,t){return void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}function eb(e,t){t?$(e,"orientation",t):q(e,"orientation")}function ey(e,t,i){let o=e.parentElement,r=o&&o.firstChild;for(;r;)t&&r.classList.toggle(t,r===e),i&&r.classList.toggle(i,r!==e),r=r.nextSibling}var eS="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function eR(e){return!!e&&!!e.matches("input, select, button, textarea")&&!!e.matches(eS)&&eO(e)}function eE(e,t,i={}){let{skipAriaHidden:o}=i;e.classList.toggle("ag-hidden",!t),o||et(e,!t)}function ex(e,t,i={}){let{skipAriaHidden:o}=i;e.classList.toggle("ag-invisible",!t),o||et(e,!t)}function eF(e,t){let i="disabled",o=t?e=>
1e.setAttribute(i,""):e=>e.removeAttribute(i);for(let t of(o(e),e.querySelectorAll("input")??[]))o(t)}function eP(e,t,i){let o=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,"number"==typeof i){if(++o>i)break}else if(e===i)break}return!1}function eD(e){let{height:t,width:i,borderTopWidth:o,borderRightWidth:r,borderBottomWidth:s,borderLeftWidth:n,paddingTop:l,paddingRight:a,paddingBottom:d,paddingLeft:h,marginTop:u,marginRight:c,marginBottom:g,marginLeft:p,boxSizing:m}=window.getComputedStyle(e),f=Number.parseFloat;return{height:f(t||"0"),width:f(i||"0"),borderTopWidth:f(o||"0"),borderRightWidth:f(r||"0"),borderBottomWidth:f(s||"0"),borderLeftWidth:f(n||"0"),paddingTop:f(l||"0"),paddingRight:f(a||"0"),paddingBottom:f(d||"0"),paddingLeft:f(h||"0"),marginTop:f(u||"0"),marginRight:f(c||"0"),marginBottom:f(g||"0"),marginLeft:f(p||"0"),boxSizing:m}}function eM(e){let t=eD(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom-t.borderTopWidth-t.borderBottomWidth:t.height}function ek(e){let t=eD(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight-t.borderLeftWidth-t.borderRightWidth:t.width}function eT(e){let{height:t,marginBottom:i,marginTop:o}=eD(e);return Math.floor(t+i+o)}function eA(e){let{width:t,marginLeft:i,marginRight:o}=eD(e);return Math.floor(t+i+o)}function eI(e){let t=e.getBoundingClientRect(),{borderTopWidth:i,borderLeftWidth:o,borderRightWidth:r,borderBottomWidth:s}=eD(e);return{top:t.top+(i||0),left:t.left+(o||0),right:t.right+(r||0),bottom:t.bottom+(s||0)}}function eL(e,t){let i=e.scrollLeft;return t&&(i=Math.abs(i)),i}function eB(e,t,i){i&&(t*=-1),e.scrollLeft=t}function eH(e){for(;e?.firstChild;)e.firstChild.remove()}function eV(e){e?.parentNode&&e.remove()}function eG(e){return!!e.offsetParent}function eO(e){return e.checkVisibility?e.checkVisibility({checkVisibilityCSS:!0}):!(!eG(e)||"visible"!==window.getComputedStyle(e).visibility)}function eN(e){let t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function ez(e,t,i){(!i||i.nextSibling!==t)&&(e.firstChild?i?i.nextSibling?e.insertBefore(t,i.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.prepend(t):e.appendChild(t))}function eW(e,t){for(let i=0;i<t.length;i++){let o=t[i],r=e.children[i];r!==o&&e.insertBefore(o,r)}}function eU(e,t){if(t)for(let i of Object.keys(t)){let o=t[i];if(!i?.length||null==o)continue;let r=i.replace(/[A-Z]/g,e=>`-${e.toLocaleLowerCase()}`),s=o.toString(),n=s.replace(/\s*!important/g,""),l=n.length!=s.length?"important":void 0;e.style.setProperty(r,n,l)}}function e_(e){return()=>{var t;let i=e();return!i||e$(i)||(t=i).clientHeight<t.scrollHeight}}function e$(e){return e.clientWidth<e.scrollWidth}function eq(e,t){"flex"===t?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):eK(e,t)}function eK(e,t){t=eY(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function ej(e,t){t=eY(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function eY(e){return"number"==typeof e?`${e}px`:e}function eQ(e){return e instanceof Node||e instanceof HTMLElement}function eZ(e,t,i){null==i||""===i?e.removeAttribute(t):e.setAttribute(t,i.toString())}function eJ(e,t){if(!t.isContentEditable)return;let i=W(e).getSelection();if(!i)return;let o=N(e).createRange();o.selectNodeContents(t),o.collapse(!1),i.removeAllRanges(),i.addRange(o)}function eX(e,t,i){let o=W(e).ResizeObserver,r=o?new o(i):null;return r?.observe(t),()=>r?.disconnect()}function e0(e,t){let i=W(e);i.requestAnimationFrame?i.requestAnimationFrame(t):i.webkitRequestAnimationFrame?i.webkitRequestAnimationFrame(t):i.setTimeout(t,0)}var e1="data-ref";function e3(){return o??(o=document.createTextNode(" ")),o.cloneNode()}function e2(e){let{attrs:t,children:i,cls:o,ref:r,role:s,tag:n}=e,l=document.createElement(n);if(o&&(l.className=o),r&&l.setAttribute(e1,r),s&&l.setAttribute("role",s),t)for(let e of Object.keys(t))l.setAttribute(e,t[e]);if(i)if("string"==typeof i)l.textContent=i;else{let e=!0;for(let t of i)t&&("string"==typeof t?(l.appendChild(document.createTextNode(t)),e=!1):"function"==typeof t?l.appendChild(t()):(e&&(l.appendChild(e3()),e=!1),l.append(e2(t)),l.appendChild(e3())))}return l}var e6=["touchstart","touchend","touchmove","touchcancel","scroll"],e4=["wheel"],e5={},e8=(()=>{let e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return t=>{if("boolean"==typeof e5[t])return e5[t];let i=document.createElement(e[t]||"div");return e5[t="on"+t]=t in i}})();function e7(e,t){return!!t&&!!e&&(function(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();let t=[],i=e.target;for(;i;)t.push(i),i=i.parentElement;return t})(t).indexOf(e)>=0}function e9(e,t,i){return 0!==i&&Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))<=i}var te=(e,t)=>
1{let i=e.identifier;for(let e=0,o=t.length;e<o;++e){let o=t[e];if(o.identifier===i)return o}return null};function tt(e,t){return e.gos.isElementInThisInstance(t.target)}function ti(e,t,i){let o=e.getBoundingClientRect().height,r=function(e){let t=U(e);return t?.clientWidth??(window.innerWidth||-1)}(i)-2,s=function(e){let t=U(e);return t?.clientHeight??(window.innerHeight||-1)}(i)-2;if(!e.offsetParent)return;let n=eI(e.offsetParent),{clientY:l,clientX:a}=t,d=l-n.top-o/2,h=a-n.left-10,u=N(i),c=u.defaultView||window,g=c.pageYOffset||u.documentElement.scrollTop,p=c.pageXOffset||u.documentElement.scrollLeft;r>0&&h+e.clientWidth>r+p&&(h=r+p-e.clientWidth),h<0&&(h=0),s>0&&d+e.clientHeight>s+g&&(d=s+g-e.clientHeight),d<0&&(d=0),e.style.left=`${h}px`,e.style.top=`${d}px`}var to=(e,...t)=>{for(let i of t){let[t,o,r,s]=i;t.addEventListener(o,r,s),e.push(i)}},tr=e=>{if(e){for(let[t,i,o,r]of e)t.removeEventListener(i,o,r);e.length=0}},ts=e=>{e.cancelable&&e.preventDefault()};function tn(e,t){return t}function tl(e){return e?.getLocaleTextFunc()??tn}function ta(e,t,i,o){let r=t[i];return e.getLocaleTextFunc()(i,"function"==typeof r?r(o):r,o)}function td(e){return(t,i,o)=>e({key:t,defaultValue:i,variableValues:o})}function th(e){return(t,i,o)=>{let r=e?.[t];if(r&&o?.length){let e=0;for(;!(e>=o.length)&&-1!==r.indexOf("${variable}");)r=r.replace("${variable}",o[e++])}return r??i}}var tu=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){let{destroyFunctions:e}=this;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,i){this.localEventService||(this.localEventService=new T),this.localEventService.addEventListener(e,t,i)}removeEventListener(e,t,i){this.localEventService?.removeEventListener(e,t,i)}dispatchLocalEvent(e){this.localEventService?.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventSvc,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){let i=[];for(let o of Object.keys(t)){let r=t[o];r&&i.push(this._setupListener(e,o,r))}return i}_setupListener(e,t,i){let o;if(this.destroyed)return()=>null;if(void 0!==e.__addEventListener)e.__addEventListener(t,i),o=()=>(e.__removeEventListener(t,i),null);else{let r="global"===e.eventServiceType;if(e instanceof HTMLElement){let o,r=(e=>{let t=e6.includes(e),i=e4.includes(e);return!!t||!i&&void 0})(t);null!=r&&(o={passive:r}),e.addEventListener(t,i,o)}else r?e.addListener(t,i):e.addEventListener(t,i);o=r?()=>(e.removeListener(t,i),null):()=>(e.removeEventListener(t,i),null)}return this.destroyFunctions.push(o),()=>(o(),this.destroyFunctions=this.destroyFunctions.filter(e=>e!==o),null)}setupPropertyListener(e,t){let{gos:i}=this;i.addPropertyEventListener(e,t);let o=()=>(i.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(o),()=>(o(),this.destroyFunctions=this.destroyFunctions.filter(e=>e!==o),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupPropertyListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;let i=e.join("-")+this.propertyListenerId++,o=e=>{if(e.changeSet){if(e.changeSet&&e.changeSet.id===this.lastChangeSetIdLookup[i])return;this.lastChangeSetIdLookup[i]=e.changeSet.id}t({type:"propertyChanged",changeSet:e.changeSet,source:e.source})};for(let t of e)this.setupPropertyListener(t,o)}getLocaleTextFunc(){return tl(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){let i=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),i}createBean(e,t,i){return(t||this.stubContext).createBean(e,i)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}},tc=class extends tu{},tg=new Set,tp=(e,t)=>{tg.has(t)||(tg.add(t),e())};tp._set=tg;var tm={pending:!1,funcs:[]},tf={pending:!1,funcs:[]};function tC(e,t="setTimeout",i){let o="raf"===t?tf:tm;if(o.funcs.push(e),o.pending)return;o.pending=!0;let r=()=>{let e=o.funcs.slice();for(let t of(o.funcs.length=0,o.pending=!1,e))t()};"raf"===t?e0(i,r):window.setTimeout(r,0)}function tv(e,t,i){let o;return function(...r){let s=this;return window.clearTimeout(o),o=window.setTimeout(function(){e.isAlive()&&t.apply(s,r)},i)}}function tw(e,t){let i=0;return function(...o){let r=Date.now();r-i<t||(i=r,e.apply(this,o))}}function tb(e,t,i,o=100){let r=Date.now(),s=null,n=!1,l=()=>{null!=s&&(window.clearInterval(s),s=null)};e.addDestroyFunc(l);let a=()=>{let e=Date.now()-r>o;(t()||e)&&(i(),n=!0,l())};a(),n||(s=window.setInterval(a,10))}var ty=new Set(["__proto__","constructor","prototype"]);function tS(e,t,i=!0,o=!1){F(t)&&function(e,t){if(null!=e){if(Array.isArray(e)){for(let i=0;i<e.length;i++)t(i.toString(),e[i]);return}for(let i of Object.keys(e).filter(e=>!ty.has(e)))t(i,e[i])}}(t,(t,r)=>{let s=e[t];s!==r&&(o&&null==s&&null!=r&&"object"==typeof r&&r.constructor===Object&&(s={},e[t]=s),tR(r)&&tR(s)&&!Array.isArray(s)?tS(s,r,i,o):(i||void 0!==r)&&(e[t]=r))})}function tR(e){return"object"==typeof e&&null!==e}var tE=class e{static applyGlobalGridOptions(t){if(!e.gridOptions)return{...t};let i={};return tS(i,e.gridOptions,!0,!0),"deep"===e.mergeStrategy?tS(i,t,!0,!0):i={...i,...t},e.gridOptions.context&&(i.context=e.gridOptions.context),t.context&&("deep"===e.mergeStrategy&&i.context&&tS(t.context,i.context,!0,!0),i.context=t.context),i}static applyGlobalGridOption(t,i){if("deep"===e.mergeStrategy){let o=tF(t);if(o&&"object"==typeof o&&"object"==typeof i)return e.applyGlobalGridOptions({[t]:i})[t]}return i}};function tx(e,t="shallow"){tE.gridOptions=e,tE.mergeStrategy=t}function tF(e){return tE.gridOptions?.[e]}tE.gridOptions=void 0,tE.mergeStrategy="shallow";
1var tP={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipSwitchShowDelay:200,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:"	",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,cellFlashDuration:500,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,refreshAfterGroupEdit:!1,rowDragInsertDelay:500,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:"clientSide",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSidePivotResultFieldSeparator:"_",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:"xy",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:"new",reactiveCustomComponents:!0,suppressSetFilterByDefault:!1,enableFilterHandlers:!1},tD="https://www.ag-grid.com";function tM(e,t,...i){e.get("debug")&&console.log("AG Grid: "+t,...i)}function tk(e,...t){tp(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function tT(e,...t){tp(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var tA=new Set,tI={},tL={},tB=!1,tH=!1,tV=!1;function tG(e,t,i=!1){let o;i||(tB=!0);r||(r=e.version);let s=e=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${e} Please update all modules to the same version.`;
1e.version?!function(e){let[t,i]=e.version.split(".")||[],[o,s]=r.split(".")||[];return t===o&&i===s}(e)&&tT(s(`'${e.moduleName}' is version ${e.version} but the other modules are version ${r}.`)):tT(s(`'${e.moduleName}' is incompatible.`));let n=e.validate?.();n&&!n.isValid&&tT(`${n.message}`);let l=e.rowModels??["all"];for(let i of(tA.add(e),void 0!==t?(tH=!0,void 0===tL[t]&&(tL[t]={}),o=tL[t]):o=tI,l))void 0===o[i]&&(o[i]={}),o[i][e.moduleName]=e;if(e.dependsOn)for(let o of e.dependsOn)tG(o,t,i)}function tO(e,t,i){let o=i=>!!tI[i]?.[e]||!!tL[t]?.[i]?.[e];return o(i)||o("all")}function tN(e,t){let i=tL[e]??{};return[...Object.values(i.all??{}),...Object.values(i[t]??{})]}function tz(){tV=!0}var tW=class{static register(e){tG(e,void 0)}static registerModules(e){for(let t of e)tG(t,void 0)}},tU="35.1.0",t_="_version_",t$=null,tq=`${tD}/javascript-data-grid`;function tK(e,t,i){return t$?.(e,t)??[tJ(e,t,i)]}function tj(e,t,i,o,r){e(`${o?"warning":"error"} #${t}`,...tK(t,i,r))}function tY(e){return void 0===e?"undefined":null===e?"null":e}function tQ(e,t){return`${e}?${t.toString()}`}function tZ(e,t){let i=new URLSearchParams;if(i.append(t_,tU),t)for(let e of Object.keys(t))i.append(e,function(e){let t=e;return e instanceof Error?t=e.toString():"object"==typeof e&&(t=function(e){if(!e)return String(e);let t={};for(let i of Object.keys(e))"object"!=typeof e[i]&&"function"!=typeof e[i]&&(t[i]=e[i]);return JSON.stringify(t)}(e)),t}(t[e]));let o=`${tq}/errors/${e}`,r=tQ(o,i);return r.length<=2e3?r:function(e,t,i){let o=Array.from(t.entries()).sort((e,t)=>t[1].length-e[1].length),r=tQ(e,t);for(let[i,s]of o){if(i===t_)continue;let o=r.length-2e3;if(o<=0)break;let n=o+3,l=s.length-n>100?s.slice(0,s.length-n)+"...":s.slice(0,100)+"...";t.set(i,l),r=tQ(e,t)}return r}(o,i,0)}var tJ=(e,t,i)=>{let o=tZ(e,t),r=`${i?i+" \n":""}Visit ${o}`;return tV?r:`${r}${i?"":" \n  Alternatively register the ValidationModule to see the full message in the console."}`};function tX(...e){tj(tk,e[0],e[1],!0)}function t0(...e){tj(tT,e[0],e[1],!1)}function t1(e,t,i){tj(tT,e,t,!1,i)}function t3(e,t,i){tj(tk,e,t,!0,i)}function t2(e,t){let i=t[0];return`error #${i} `+tK(i,t[1],e).join(" ")}function t6(...e){return t2(void 0,e)}function t4(...e){return t2("\n",e)}function t5(e,t){return e.get("rowModelType")===t}function t8(e,t){return t5(e,"clientSide")}function t7(e,t){return t5(e,"serverSide")}function t9(e,t){return e.get("domLayout")===t}function ie(e){return void 0!==iB(e)}function it(e){return"function"==typeof e.get("getRowHeight")}function ii({gos:e,formula:t}){let i=e.get("rowNumbers");return i||!!t?.active&&!1!==i}function io(e,t,i=!1,o){let{gos:r,environment:s}=e;if(null==o&&(o=s.getDefaultRowHeight()),it(r)){if(i)return{height:o,estimated:!0};let e={node:t,data:t.data},s=r.getCallback("getRowHeight")(e);if(is(s))return 0===s&&tX(23),{height:Math.max(1,s),estimated:!1}}if(t.detail&&r.get("masterDetail")){var n=r;if(n.get("detailRowAutoHeight"))return{height:1,estimated:!1};let e=n.get("detailRowHeight");return is(e)?{height:e,estimated:!1}:{height:300,estimated:!1}}let l=r.get("rowHeight");return{height:l&&is(l)?l:o,estimated:!1}}function ir(e){let{environment:t,gos:i}=e,o=i.get("rowHeight");if(!o||P(o))return t.getDefaultRowHeight();let r=t.refreshRowHeightVariable();return -1!==r?r:(tX(24),t.getDefaultRowHeight())}function is(e){return!isNaN(e)&&"number"==typeof e&&isFinite(e)}function il(e,t,i){let o=t[e.getDomDataKey()];return o?o[i]:void 0}function ia(e,t,i,o){let r=e.getDomDataKey(),s=t[r];P(s)&&(s={},t[r]=s),s[i]=o}function id(e){return!e.get("ensureDomOrder")&&e.get("animateRows")}function ih(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||t9(e,"print"))}function iu(e){let t=e.get("autoGroupColumnDef");return!t?.comparator&&!e.get("treeData")}function ic(e){let t=e.get("groupAggFiltering");return"function"==typeof t?e.getCallback("groupAggFiltering"):!0===t?()=>!0:void 0}function ig(e){return e.get("grandTotalRow")}function ip(e){let t=e.get("groupTotalRow");return"function"==typeof t?e.getCallback("groupTotalRow"):()=>t??void 0}function im(e){return!!e.get("groupHideOpenParents")||"multipleColumns"===e.get("groupDisplayType")}function iC(e,t){return!t&&"groupRows"===e.get("groupDisplayType")}function iv(e,t,i){return!!t.group&&!t.footer&&iC(e,i)}function iw(e){let t=e.getCallback("getRowId");return void 0===t?t:e=>{let i=t(e);return"string"!=typeof i&&(tp(()=>tX(25,{id:i}),"getRowIdString"),i=String(i)),i}}function ib(e,t){let i=e.get("groupHideParentOfSingleChild");return!!(!0===i||"leafGroupsOnly"===i&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}function iy(e){let t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function iS(e,t){let i=e.get("suppressGroupChangesColumnVisibility");if(!0===i||t&&"suppressHideOnGroup"===i||!t&&"suppressShowOnUngroup"===i)return!1;let o=e.get("suppressRowGroupHidesColumns");if(t&&!0===o)return!1;let r=e.get("suppressMakeColumnVisibleAfterUnGroup");return!!t||!0!==r}function iR(e){return e?.checkboxes??!0}function iE(e){return e?.mode==="multiRow"&&(e.headerCheckbox??!0)}function ix(e){if("object"==typeof e)return e.checkboxLocation??"selectionColumn"}function iF(e){return e?.hideDisabledCheckboxes??!1}function iP(e){return"string"!=typeof e.get("rowSelection")}
1function iD(e){return void 0!==e.get("cellSelection")}function iM(e){let t=e.get("cellSelection");return void 0===t?e.get("suppressMultiRangeSelection"):"boolean"!=typeof t&&(t?.suppressMultiRanges??!1)}function ik(e){let t=e.get("cellSelection");return void 0!==t?!!t:e.get("enableRangeSelection")}function iT(e){let t=e.get("cellSelection");return void 0===t?{mode:"fill",setFillValue:e.get("fillOperation"),direction:e.get("fillHandleDirection"),suppressClearOnFillReduction:e.get("suppressClearOnFillReduction")}:"boolean"!=typeof t&&t.handle?.mode==="fill"?t.handle:void 0}function iA(e){let t=e.get("cellSelection")??!1;return("object"==typeof t&&t.enableColumnSelection)??!1}function iI(e){let t=e.get("rowSelection")??"single";if("string"==typeof t){let t=e.get("suppressRowClickSelection"),i=e.get("suppressRowDeselection");return(!t||!i)&&(t?"enableDeselection":!i||"enableSelection")}return("singleRow"===t.mode||"multiRow"===t.mode)&&(t.enableClickSelection??!1)}function iL(e){let t=e.get("rowSelection");return"string"==typeof t?e.get("isRowSelectable"):t?.isRowSelectable}function iB(e){let t="beanName"in e&&"gos"===e.beanName?e.get("rowSelection"):e.rowSelection;if("string"==typeof t)switch(t){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(t?.mode){case"multiRow":case"singleRow":return t.mode;default:return}}function iH(e){return"multiRow"===iB(e)}function iV(e){let t=e.get("rowSelection");if("string"==typeof t){let t=e.get("groupSelectsChildren"),i=e.get("groupSelectsFiltered");return t&&i?"filteredDescendants":t?"descendants":"self"}return t?.mode==="multiRow"?t.groupSelects:void 0}function iG(e,t=!0){let i=e.get("rowSelection");return"object"!=typeof i?t?"all":void 0:"multiRow"===i.mode?i.selectAll:"all"}function iO(e){let t=iV(e);return"descendants"===t||"filteredDescendants"===t}function iN(e){let t=e.get("rowSelection");return"object"==typeof t&&t.masterSelects||"self"}function iz(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function iW(e){return"legacy"===e.get("columnMenu")}function iU(e){return!iW(e)}function i_(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function i$(e,t,i){"object"!=typeof e&&(e={});let o={...e};for(let e of i){let i=t[e];void 0!==i&&(o[e]=i)}return o}function iq(e,t){if(!e)return;let i={},o=!1;for(let t of Object.keys(e))i[t]=e[t],o=!0;if(!o)return;t.dispatchEvent({type:"gridOptionsChanged",options:i});let r={type:"componentStateChanged",...i};t.dispatchEvent(r)}function iK(e,t){return e.addCommon(t)}function ij(e,t){return e[t]??e.gridOptions?.[t]??tF(t)??tP[t]}function iY({gos:e},t){return 2===t.button||t.ctrlKey&&e.get("allowContextMenuWithControlKey")}var iQ={resizable:!0,sortable:!0},iZ=0;function iJ(e){return e instanceof i1}var iX=["asc","desc",null],i0=[{type:"absolute",direction:"asc"},{type:"absolute",direction:"desc"},null],i1=class extends tc{constructor(e,t,i,o){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=i,this.primary=o,this.isColumn=!0,this.instanceId=iZ++,this.autoHeaderHeight=null,this.sortDef=i3(),this._wasSortExplicitlyRemoved=!1,this.moving=!1,this.resizing=!1,this.menuVisible=!1,this.formulaRef=null,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new T,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=B(i)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}initState(){let{colDef:e,beans:{sortSvc:t,pinnedCols:i,colFlex:o}}=this;t?.initCol(this);let r=e.hide;void 0!==r?this.visible=!r:this.visible=!e.initialHide,i?.initCol(this),o?.initCol(this)}setColDef(e,t,i){let o=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),o&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",i)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.initState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.initRowSpan(),this.addPivotListener()}initDotNotation(){let{gos:e,colDef:{field:t,tooltipField:i}}=this,o=e.get("suppressFieldDotNotation");this.fieldContainsDots=F(t)&&t.includes(".")&&!o,this.tooltipFieldContainsDots=F(i)&&i.includes(".")&&!o}initMinAndMaxWidths(){let e=this.colDef;this.minWidth=e.minWidth??this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){this.beans.tooltipSvc?.initCol(this)}initRowSpan(){this.colDef.spanRows&&this.beans.rowSpanSvc?.register(this)}addPivotListener(){let e=this.beans.pivotColDefSvc,t=this.colDef.pivotValueColumn;e&&t&&this.addManagedListeners(t,{colDefChanged:t=>{let i=e.recreateColDef(this.colDef);this.setColDef(i,i,t.source)}})}
1resetActualWidth(e){let t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){return Math.max(Math.min(e.width??e.initialWidth??200,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){return this.beans.showRowGroupCols?.isRowGroupDisplayed(this,e)??!1}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}__addEventListener(e,t){this.colEventSvc.addEventListener(e,t)}__removeEventListener(e,t){this.colEventSvc.removeEventListener(e,t)}addEventListener(e,t){this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.colEventSvc);let i=this.frameworkEventListenerService?.wrap(e,t)??t;this.colEventSvc.addEventListener(e,i)}removeEventListener(e,t){let i=this.frameworkEventListenerService?.unwrap(e,t)??t;this.colEventSvc.removeEventListener(e,i)}createColumnFunctionCallbackParams(e){return iK(this.gos,{node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){return this.beans.cellNavigation?.isSuppressNavigable(this,e)??!1}isCellEditable(e){return this.beans.editSvc?.isCellEditable({rowNode:e,column:this})??!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){return this.beans.selectionSvc?.isCellCheckboxSelection(this,e)??!1}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?.suppressPaste??null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??iQ[e]}isColumnFunc(e,t){return"boolean"==typeof t?t:"function"==typeof t&&t(this.createColumnFunctionCallbackParams(e))}createColumnEvent(e,t){return iK(this.gos,{type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sortDef.direction}getSortDef(){return this.sortDef.direction?this.sortDef:null}getColDefAllowedSortTypes(){let e=[],{sort:t,initialSort:i}=this.colDef,o=null===t?t:i7(t?.type),r=null===i?i:i7(i?.type);return o&&e.push(o),r&&e.push(r),e}getSortingOrder(){let e=this.getColDefAllowedSortTypes().includes("absolute")?i0:iX;return(this.colDef.sortingOrder??this.gos.get("sortingOrder")??e).map(e=>i3(e))}getAvailableSortTypes(){return new Set(this.getSortingOrder().reduce((e,t)=>(t.direction&&e.push(t.type),e),this.getColDefAllowedSortTypes()))}get wasSortExplicitlyRemoved(){return this._wasSortExplicitlyRemoved}setSortDef(e,t=!1){t||(this._wasSortExplicitlyRemoved=!e.direction),this.sortDef=e}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return"asc"===this.getSort()}isSortDescending(){return"desc"===this.getSort()}isSortNone(){return P(this.getSort())}isSorting(){return F(this.getSort())}getSortIndex(){return this.sortIndex}isMenuVisible(){return this.menuVisible}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchColEvent("leftChanged",t))}isFilterActive(){return this.filterActive}isHovered(){return tX(261),!!this.beans.colHover?.isHovered(this)}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.dispatchColEvent("firstRightPinnedChanged",t))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.dispatchColEvent("lastLeftPinnedChanged",t))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return"left"===this.pinned||"right"===this.pinned}isPinnedLeft(){return"left"===this.pinned}isPinnedRight(){return"right"===this.pinned}getPinned(){return this.pinned}setVisible(e,t){let i=!0===e;this.visible!==i&&(this.visible=i,this.dispatchColEvent("visibleChanged",t)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}
1isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getFirstRealParent(){let e=this.getOriginalParent();for(;e?.isPadding();)e=e.getOriginalParent();return e}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e?.isPadding())return{numberOfParents:0,isSpanningTotal:!1};let t=e.getPaddingLevel()+1,i=!0;for(;e;){if(!e.isPadding()){i=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:i}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){let t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return iK(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(P(this.colDef.colSpan))return 1;let t=this.createBaseColDefParams(e);return Math.max(this.colDef.colSpan(t),1)}getRowSpan(e){if(P(this.colDef.rowSpan))return 1;let t=this.createBaseColDefParams(e);return Math.max(this.colDef.rowSpan(t),1)}setActualWidth(e,t,i=!1){e=Math.min(e=Math.max(e,this.minWidth),this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,null!=this.flex&&"flex"!==t&&"gridInitializing"!==t&&(this.flex=null),i||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.dispatchColEvent("widthChanged",e)}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return!0===this.colDef.enablePivot}isAllowValue(){return!0===this.colDef.enableValue}isAllowRowGroup(){return!0===this.colDef.enableRowGroup}isAllowFormula(){return!0===this.colDef.allowFormula}dispatchColEvent(e,t,i){let o=this.createColumnEvent(e,t);i&&tS(o,i),this.colEventSvc.dispatchEvent(o)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function i3(e){return i4(e)?{direction:e.direction,type:e.type}:{direction:i8(e),type:i7(e)}}function i2(e){return"asc"===e||"desc"===e||null===e}function i6(e){return"default"===e||"absolute"===e}function i4(e){return!!e&&"object"==typeof e&&i6(e.type)&&i2(e.direction)}function i5(e,t){return e?t?e.type===t.type&&e.direction===t.direction:!e||null===e.direction:!t||null===t.direction}function i8(e){return i2(e)?e:null}function i7(e){return i6(e)?e:"default"}function i9(e,t){let i=t.sortSvc.getDisplaySortForColumn(e),o=i7(i?.type),r=i8(i?.direction),s=e.getAvailableSortTypes(),n=s.has("default");return{isDefaultSortAllowed:n,isAbsoluteSortAllowed:s.has("absolute"),isAbsoluteSort:"absolute"===o,isDefaultSort:"default"===o,isAscending:"asc"===r,isDescending:"desc"===r,direction:r}}function oe(e){return e instanceof ot}var ot=class extends tc{constructor(e,t,i,o){super(),this.colGroupDef=e,this.groupId=t,this.padding=i,this.level=o,this.isColumn=!1,this.expandable=!1,this.instanceId=iZ++,this.expandableListenerRemoveCallback=null,this.expanded=!!e?.openByDefault}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return!!this.children&&this.children.some(e=>e.isVisible())}isPadding(){return this.padding}setExpanded(e){this.expanded=void 0!==e&&e,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){let e=[];return this.addLeafColumns(e),e}forEachLeafColumn(e){if(this.children)for(let t of this.children)iJ(t)?e(t):oe(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){if(this.children)for(let t of this.children)iJ(t)?e.push(t):oe(t)&&t.addLeafColumns(e)}getColumnGroupShow(){let e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();let e=this.onColumnVisibilityChanged.bind(this);for(let t of this.getLeafColumns())t.__addEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=()=>{for(let t of this.getLeafColumns())t.__removeEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,i=!1,o=this.findChildrenRemovingPadding();for(let r=0,s=o.length;r<s;r++){let s=o[r];if(!s.isVisible())continue;let n=s.getColumnGroupShow();"open"===n?(e=!0,i=!0):"closed"===n?(t=!0,i=!0):(e=!0,t=!0)}let r=e&&t&&i;this.expandable!==r&&(this.expandable=r,this.dispatchLocalEvent({type:"exp
1andableChanged"}))}findChildrenRemovingPadding(){let e=[],t=i=>{for(let o of i)oe(o)&&o.isPadding()?t(o.children):e.push(o)};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},oi={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function oo(e,t,i){let o={},r=e.gos;return Object.assign(o,r.get("defaultColGroupDef")),Object.assign(o,t),r.validateColDef(o,i),o}var or=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=D(e);let i=0;for(;;){let o=e??t;if(o?0!==i&&(o+="_"+i):o=i,!this.existingKeys[o]){let t=String(o);return e&&i>0&&tX(273,{providedId:e,usedId:t}),this.existingKeys[t]=!0,t}i++}}},os="ag-Grid-AutoColumn",on="ag-Grid-SelectionColumn",ol="ag-Grid-RowNumbersColumn",oa="ag-Grid-HierarchyColumn";function od(e){let t=[],i=e=>{for(let o=0;o<e.length;o++){let r=e[o];iJ(r)?t.push(r):oe(r)&&i(r.getChildren())}};return i(e),t}function oh(e){return e.reduce((e,t)=>e+t.getActualWidth(),0)}function ou(e,t,i){let o={};if(!t)return;oA(null,t,e=>{o[e.getInstanceId()]=e}),i&&oA(null,i,e=>{o[e.getInstanceId()]=null});let r=Object.values(o).filter(e=>null!=e);e.context.destroyBeans(r)}function oc(e){return e.getId().startsWith(os)}function og(e){let t="string"==typeof e?e:"getColId"in e?e.getColId():e.colId;return t?.startsWith(on)??!1}function op(e){let t="string"==typeof e?e:"getColId"in e?e.getColId():e.colId;return t?.startsWith(ol)??!1}function om(e){return og(e)||op(e)}function of(e){let t=[];return e instanceof Array?t=e:"string"==typeof e&&(t=e.split(",")),t}function oC(e,t){return w(e,t,(e,t)=>e.getColId()===t.getColId())}function ov(e){for(let t of(e.map={},e.list))e.map[t.getId()]=t}function ow(e){return"optionsUpdated"===e?"gridOptionsChanged":e}function ob(e,t){return e===t||e.colId==t||e.getColDef()===t}function oy(e,t){let i={...e,sort:void 0,colId:t},o=oS(e);return o&&(i.sort=o.direction,i.sortType=o.type),i}function oS(e){let{sort:t,initialSort:i}=e,o=i4(t)||i2(t),r=i4(i)||i2(i);return o?i3(t):r?i3(i):null}var oR=(e,t)=>{oe(e)&&e.setupExpandable(),e.originalParent=t};function oE(e,t=null,i,o,r){let{existingCols:s,existingGroups:n}=oF(o),l=new Map(s.map(e=>[e.getId(),e])),a=new Map(n.map(e=>[e.getId(),e])),d=0,h=(t,o)=>{if(d=Math.max(d,o),oT(t)){if(!e.colGroupSvc)return null;let i=t.groupId,r=a.get(i),s=new ot(oo(e,t,i),i,!1,o);return e.context.createBean(s),r&&s.setExpanded(r.isExpanded()),s.setChildren(t.children.map(e=>h(e,o+1))),s}let s=t.colId,n=l.get(s),u=ok(e,t,n?.getColId()??s);return n?(n.setColDef(u,t,r),oM(e,n,u,r)):(n=new i1(u,t,s,i),e.context.createBean(n)),e.dataTypeSvc?.addColumnListeners(n),n},u=t?.map(e=>h(e,0))??[],c=0,g=e.colGroupSvc?e.colGroupSvc.balanceColumnTree(u,0,d,{getUniqueKey:(e,t)=>String(++c)}):u;return oA(null,g,oR),{columnTree:g,treeDepth:d}}function ox(e,t=null,i,o,r){let s=new or,{existingCols:n,existingGroups:l,existingColKeys:a}=oF(o);s.addExistingKeys(a);let d=oP(e,t,0,i,n,s,l,r),{colGroupSvc:h}=e,u=h?.findMaxDepth(d,0)??0,c=h?h.balanceColumnTree(d,0,u,s):d;return oA(null,c,oR),{columnTree:c,treeDepth:u}}function oF(e){let t=[],i=[],o=[];return e&&oA(null,e,e=>{oe(e)?i.push(e):(o.push(e.getId()),t.push(e))}),{existingCols:t,existingGroups:i,existingColKeys:o}}function oP(e,t,i,o,r,s,n,l){if(!t)return[];let{colGroupSvc:a}=e,d=Array(t.length);for(let h=0;h<d.length;h++){let u=t[h];a&&oT(u)?d[h]=a.createProvidedColumnGroup(o,u,i,r,s,n,l):d[h]=function(e,t,i,o,r,s){let n=function(e,t){if(t)for(let i=0;i<t.length;i++){let o=t[i].getUserProvidedColDef();if(o){if(null!=e.colId){if(t[i].getId()===e.colId)return{idx:i,column:t[i]};continue}
1if(null!=e.field){if(o.field===e.field)return{idx:i,column:t[i]};continue}if(o===e)return{idx:i,column:t[i]}}}}(i,o);n&&o?.splice(n.idx,1);let l=n?.column;if(l){let t=ok(e,i,l.getColId());l.setColDef(t,i,s),oM(e,l,t,s)}else{let o=r.getUniqueKey(i.colId,i.field);l=new i1(ok(e,i,o),i,o,t),e.context.createBean(l)}return e.dataTypeSvc?.addColumnListeners(l),l}(e,o,u,r,s,l)}return d}function oD(e,t,i,o,r,s,n,l){let{sortSvc:a,pinnedCols:d,colFlex:h}=e;void 0!==i&&t.setVisible(!i,l),a&&(a.updateColSort(t,o,l),void 0!==r&&a.setColSortIndex(t,r)),void 0!==s&&d?.setColPinned(t,s),void 0!==n&&h?.setColFlex(t,n)}function oM(e,t,i,o){oD(e,t,i.hide,i.sort,i.sortIndex,i.pinned,i.flex,o);let r=t.getFlex();if(null==r||!(r>0))if(null!=i.width)t.setActualWidth(i.width,o);else{let e=t.getActualWidth();t.setActualWidth(e,o)}}function ok(e,t,i,o){let{gos:r,dataTypeSvc:s}=e,n={};tS(n,r.get("defaultColDef"),!1,!0);let l=function(e,t,i,o){let r=e.dataTypeSvc?.updateColDefAndGetColumnType(t,i,o),s=i.type??r??t.type;return t.type=s,s?of(s):void 0}(e,n,t,i);l&&function(e,t,i){if(!t.length)return;let o=Object.assign({},oi),r=e.gos.get("columnTypes")||{};for(let e of Object.keys(r)){let t=r[e];e in o?tX(34,{key:e}):(t.type&&tX(35),o[e]=t)}for(let e of t){let t=o[e.trim()];t?tS(i,t,!1,!0):tX(36,{t:e})}}(e,l,n);let a=n.cellDataType;tS(n,t,!1,!0),void 0!==a&&(n.cellDataType=a);let d=r.get("autoGroupColumnDef"),h=iu(r);return t.rowGroup&&d&&h&&tS(n,{sort:d.sort,initialSort:d.initialSort},!1,!0),s?.postProcess(n),s?.validateColDef(n),r.validateColDef(n,i,o),n}function oT(e){return void 0!==e.children}function oA(e,t,i){if(t)for(let o=0;o<t.length;o++){let r=t[o];oe(r)&&oA(r,r.getChildren(),i),i(r,e)}}function oI(e,t){let i=[],o=[],r=[];return(e.forEach(e=>{let t=e.getColDef().lockPosition;"right"===t?r.push(e):"left"===t||!0===t?i.push(e):o.push(e)}),t.get("enableRtl"))?[...r,...o,...i]:[...i,...o,...r]}function oL(e,t){let i=!0;return oA(null,t,t=>{if(!oe(t))return;let o=t.getColGroupDef();if(!o?.marryChildren)return;let r=[];for(let i of t.getLeafColumns()){let t=e.indexOf(i);r.push(t)}let s=Math.max.apply(Math,r);s-Math.min.apply(Math,r)>t.getLeafColumns().length-1&&(i=!1)}),i}function oB(e,t){if(!e||0==e.length)return;let i=t(e[0]);for(let o=1;o<e.length;o++)if(i!==t(e[o]))return;return i}function oH(e,t,i){if(!t.length)return;let o=1===t.length?t[0]:null,r=oB(t,e=>e.getPinned());e.dispatchEvent({type:"columnPinned",pinned:null!=r?r:null,columns:t,column:o,source:i})}function oV(e,t,i,o){e.dispatchEvent({type:t,columns:i,column:i&&1==i.length?i[0]:null,source:o})}function oG(e,t,i,o,r=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:1===t.length?t[0]:null,flexColumns:r,finished:i,source:o})}function oO(e,t,i){let{colModel:o,rowGroupColsSvc:r,pivotColsSvc:s,autoColSvc:n,selectionColSvc:l,colAnimation:a,visibleCols:d,pivotResultCols:h,environment:u,valueColsSvc:c,eventSvc:g,gos:p}=e,m=o.getColDefCols()??[],f=l?.getColumns();if(!m.length&&!f?.length)return!1;if(t?.state&&!t.state.forEach)return tX(32),!1;let C=(o,n,l,a,d)=>{let h;if(!o)return;let g=(h=t.defaultState,(e,t)=>{let i={value1:void 0,value2:void 0},o=!1;return n&&(void 0!==n[e]&&(i.value1=n[e],o=!0),F(t)&&void 0!==n[t]&&(i.value2=n[t],o=!0)),!o&&h&&(void 0!==h[e]&&(i.value1=h[e]),F(t)&&void 0!==h[t]&&(i.value2=h[t])),i}),p=g("flex").value1,m=g("sort").value1,f=g("sortType").value1,C=i2(m)||i6(f),v=i7(f),w=i8(m);if(oD(e,o,g("hide").value1,C?{type:v,direction:w}:void 0,g("sortIndex").value1,g("pinned").value1,p,i),null==p){let e=g("width").value1;if(null!=e){let t=o.getColDef().minWidth??u.getDefaultColumnMinWidth();null!=t&&e>=t&&o.setActualWidth(e,i)}}!d&&o.isPrimary()&&(c?.syncColumnWithState(o,i,g),r?.syncColumnWithState(o,i,g,l),s?.syncColumnWithState(o,i,g,a))},v=(a,h,u)=>{let c=oz(e,i),m=h.slice(),f={},v={},w=[],b=[],S=[],R=0,E=r?.columns.slice()??[],x=s?.columns.slice()??[];for(let e of a){let t=e.colId;if(t.startsWith(os)){w.push(e),S.push(e);continue}if(og(t)){b.push(e),S.push(e);continue}let i=u(t);i?(C(i,e,f,v,!1),y(m,i)):(S.push(e),R+=1)}let F=e=>C(e,null,f,v,!1);m.forEach(F),r?.sortColumns(o_.bind(r,f,E)),s?.sortColumns(o_.bind(s,v,x)),o.refreshCols(!1,i);let P=(e,t,i=[])=>{for(let o of t){let t=e(o.colId);y(i,t),C(t,o,null,null,!0)}i.forEach(F)};return P(e=>n?.getColumn(e)??null,w,n?.getColumns()?.slice()),P(e=>l?.getColumn(e)??null,b,l?.getColumns()?.slice()),function(e,t,i){if(!e.applyOrder||!e.state)return;let o=[];for(let t of e.state)null!=t.colId&&o.push(t.colId);!function(e,t,i,o){if(null==e)return;let r=[],s={};for(let i of t){if(s[i])continue;let t=e.map[i];t&&(r.push(t),s[i]=!0)}let n=0;for(let t of e.list){let e=t.getColId();null==s[e]&&(e.startsWith(os)?r.splice(n++,0,t):r.push(t))}if(!oL(r=oI(r,o),i.getColTree()))return tX(39);e.list=r}(t.cols,o,t,i)}(t,o,p),d.refresh(i),g.dispatchEvent({type:"columnEverythingChanged",source:i}),c(),{unmatchedAndAutoStates:S,unmatchedCount:R}};a?.start();let{unmatchedAndAutoStates:w,unmatchedCount:b}=v(t.state||[],m,e=>o.getColDefCol(e));return(w.length>0||F(t.defaultState))&&(b=v(w,h?.getPivotResultCols()?.list??[],e=>h?.getPivotResultCol(e)??null).unmatchedCount),a?.finish(),0===b}
1function oN(e,t){let{colModel:i,autoColSvc:o,selectionColSvc:r,eventSvc:s,gos:n}=e,l=i.getColDefCols();if(!l?.length)return;let a=od(i.getColDefColTree()),d=[],h=1e3,u=1e3,c=e=>{let t=oU(e);P(t.rowGroupIndex)&&t.rowGroup&&(t.rowGroupIndex=h++),P(t.pivotIndex)&&t.pivot&&(t.pivotIndex=u++),d.push(t)};o?.getColumns()?.forEach(c),r?.getColumns()?.forEach(c),a?.forEach(c),oO(e,{state:d},t);let g=o?.getColumns()??[];oO(e,{state:[...r?.getColumns()??[],...g,...l].map(e=>({colId:e.colId})),applyOrder:!0},t),s.dispatchEvent(iK(n,{type:"columnsReset",source:t}))}function oz(e,t){let{rowGroupColsSvc:i,pivotColsSvc:o,valueColsSvc:r,colModel:s,sortSvc:n,eventSvc:l}=e,a={rowGroupColumns:i?.columns.slice()??[],pivotColumns:o?.columns.slice()??[],valueColumns:r?.columns.slice()??[]},d=oW(e),h={};for(let e of d)h[e.colId]=e;return()=>{let r=(e,i,o,r)=>{if(w(i.map(r),o.map(r)))return;let s=new Set(i);for(let e of o)s.delete(e)||s.add(e);let n=[...s];l.dispatchEvent({type:e,columns:n,column:1===n.length?n[0]:null,source:t})},u=e=>{let t=[];return s.forAllCols(i=>{let o=h[i.getColId()];o&&e(o,i)&&t.push(i)}),t},c=e=>e.getColId();
1r("columnRowGroupChanged",a.rowGroupColumns,i?.columns??[],c),r("columnPivotChanged",a.pivotColumns,o?.columns??[],c);let g=u((e,t)=>{let i=null!=e.aggFunc,o=i!=t.isValueActive(),r=i&&e.aggFunc!=t.getAggFunc();return o||r});g.length>0&&oV(l,"columnValueChanged",g,t),oG(l,u((e,t)=>e.width!=t.getActualWidth()),!0,t),oH(l,u((e,t)=>e.pinned!=t.getPinned()),t),!function(e,t,i){if(!t.length)return;let o=1===t.length?t[0]:null,r=oB(t,e=>e.isVisible());e.dispatchEvent({type:"columnVisible",visible:r,columns:t,column:o,source:i})}(l,u((e,t)=>e.hide==t.isVisible()),t);let p=u((e,t)=>!i5(t.getSortDef(),{type:i7(e.sortType),direction:i8(e.sort)})||e.sortIndex!=t.getSortIndex());p.length>0&&n?.dispatchSortChangedEvents(t,p),function(e,t,i,o,r){let s={};for(let e of t)s[e.colId]=e;let n={};for(let t of e)s[t.colId]&&(n[t.colId]=!0);let l=e.filter(e=>n[e.colId]),a=t.filter(e=>n[e.colId]),d=[];a.forEach((e,t)=>{let i=l?.[t];if(i&&i.colId!==e.colId){let e=o.getCol(i.colId);e&&d.push(e)}}),d.length&&r.dispatchEvent({type:"columnMoved",columns:d,column:1===d.length?d[0]:null,finished:!0,source:i})}(d,oW(e),t,s,l)}}function oW(e){let{colModel:t,rowGroupColsSvc:i,pivotColsSvc:o}=e;if(P(t.getColDefCols())||!t.isAlive())return[];let r=i?.columns,s=o?.columns,n=[];t.forAllCols(e=>(e=>{let t=e.isRowGroupActive()&&r?r.indexOf(e):null,i=e.isPivotActive()&&s?s.indexOf(e):null,o=e.isValueActive()?e.getAggFunc():null,l=null!=e.getSortIndex()?e.getSortIndex():null;n.push({colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:e.getSort(),sortType:e.getSortDef()?.type,sortIndex:l,aggFunc:o,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:i,flex:e.getFlex()??null})})(e));let l=new Map(t.getCols().map((e,t)=>[e.getColId(),t]));return n.sort((e,t)=>(l.has(e.colId)?l.get(e.colId):-1)-(l.has(t.colId)?l.get(t.colId):-1)),n}function oU(e){let t=(e,t)=>null!=e?e:null!=t?t:null,i=e.getColDef(),o=i3(t(i.sort,i.initialSort)),r=o.direction,s=o.type,n=t(i.sortIndex,i.initialSortIndex),l=t(i.hide,i.initialHide),a=t(i.pinned,i.initialPinned),d=t(i.width,i.initialWidth),h=t(i.flex,i.initialFlex),u=t(i.rowGroupIndex,i.initialRowGroupIndex),c=t(i.rowGroup,i.initialRowGroup);null!=u||c||(u=null,c=null);let g=t(i.pivotIndex,i.initialPivotIndex),p=t(i.pivot,i.initialPivot);null!=g||p||(g=null,p=null);let m=t(i.aggFunc,i.initialAggFunc);return{colId:e.getColId(),sort:r,sortType:s,sortIndex:n,hide:l,pinned:a,width:d,flex:h,rowGroup:c,rowGroupIndex:u,pivot:p,pivotIndex:g,aggFunc:m}}var o_=(e,t,i,o)=>{let r=e[i.getId()],s=e[o.getId()],n=null!=r,l=null!=s;if(n&&l)return r-s;if(n)return -1;if(l)return 1;let a=t.indexOf(i),d=t.indexOf(o),h=a>=0;return h&&d>=0?a-d:h?-1:1};function o$(e){return e instanceof oq}var oq=class extends tc{constructor(e,t,i,o){super(),this.providedColumnGroup=e,this.groupId=t,this.partId=i,this.pinned=o,this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null,this.colIdSanitised=B(this.getUniqueId())}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}getUniqueId(){return this.groupId+"_"+this.partId}isEmptyGroup(){return 0===this.displayedChildren.length}isMoving(){let e=this.getProvidedColumnGroup().getLeafColumns();return!!e&&0!==e.length&&e.every(e=>e.isMoving())}checkLeft(){for(let e of this.displayedChildren)o$(e)&&e.checkLeft();if(this.displayedChildren.length>0)if(this.gos.get("enableRtl")){let e=v(this.displayedChildren).getLeft();this.setLeft(e)}else{let e=this.displayedChildren[0].getLeft();this.setLeft(e)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(e){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){let e=0;for(let t of this.displayedChildren??[])e+=t.getActualWidth();return e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;for(let t of this.displayedChildren)t.isResizable()&&(e=!0);return e}getMinWidth(){let e=0;for(let t of this.displayedChildren)e+=t.getMinWidth();return e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){let e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){let e=[];return this.addDisplayedLeafColumns(e),e}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(e){this.providedColumnGroup.setExpanded(e)}isAutoHeaderHeight(){return!!this.getColGroupDef()?.autoHeaderHeight}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){let t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}addDisplayedLeafColumns(e){for(let t of this.displayedChildren??[])iJ(t)?e.push(t):o$(t)&&t.addDisplayedLeafColumns(e)}addLeafColumns(e){for(let t of this.children??[])iJ(t)?e.push(t):o$(t)&&t.addLeafColumns(e)}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){let e=this.getParent();return this.isPadding()&&e?.isPadding()?1+e.getPaddingLevel():0}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;for(;e?.isPadding();)e=e.getParent();if(!(e&&e.getProvidedColumnGroup().isExpandable())){this.displayedChildren=this.children,this.dispatchLocalEvent({type:"displayedChildrenChanged"});return}for(let t of this.children??[])if(!o$(t)||t.displayedChildren?.length)switch(t.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(t);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(t);break;default:this.displayedChildren.push(t)}this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},oK={BACKSPACE:"Backspace",TAB:"Tab",ENTER:"Enter",ESCAPE:"Escape",SPACE:" ",LE
1FT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",DELETE:"Delete",F2:"F2",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",PAGE_HOME:"Home",PAGE_END:"End",A:"KeyA",C:"KeyC",D:"KeyD",V:"KeyV",X:"KeyX",Y:"KeyY",Z:"KeyZ"};function oj(e){let t,{keyCode:i}=e;switch(i){case 65:t=oK.A;break;case 67:t=oK.C;break;case 86:t=oK.V;break;case 68:t=oK.D;break;case 90:t=oK.Z;break;case 89:t=oK.Y;break;default:t=e.code}return t}function oY(e){return"function"==typeof e.then}var oQ=class e{constructor(e){this.status=0,this.resolution=null,this.waiters=[],e(e=>this.onDone(e),e=>this.onReject(e))}static all(t){return t.length?new e(e=>{let i=t.length,o=Array(i);t.forEach((t,r)=>{t.then(t=>{o[r]=t,0==--i&&e(o)})})}):e.resolve()}static resolve(t=null){return new e(e=>e(t))}then(t){return new e(e=>{1===this.status?e(t(this.resolution)):this.waiters.push(i=>e(t(i)))})}onDone(e){for(let t of(this.status=1,this.resolution=e,this.waiters))t(e)}onReject(e){}},oZ=null;function oJ(e){return"function"==typeof e?.getGui}function oX(e){return e2(e)}function o0(e,t,i){let o=o1(e,t,i);if(o){let{className:e}=o;if("string"==typeof e&&e.includes("ag-icon")||"object"==typeof e&&e["ag-icon"])return o}let r=e2({tag:"span"});return r.appendChild(o),r}function o1(e,t,i){let o=null;"smallDown"===e?tX(262):"smallLeft"===e?tX(263):"smallRight"===e&&tX(264);let r=i?.getColDef().icons;if(r&&(o=r[e]),t.gos&&!o){let i=t.gos.get("icons");i&&(o=i[e])}if(o){let t;if("function"==typeof o)t=o();else{if("string"!=typeof o)return void tX(38,{iconName:e});t=o}return"string"==typeof t?eN(t):eQ(t)?t:void tX(133,{iconName:e})}{let i=t.registry.getIcon(e);return i||t.validation?.validateIcon(e),e2({tag:"span",cls:`ag-icon ag-icon-${i??e}`,role:"presentation",attrs:{unselectable:"on"}})}}var o3=class{constructor(e){this.cssClassStates={},this.getGui=e}toggleCss(e,t){if(e){if(e.includes(" ")){let i=(e||"").split(" ");if(i.length>1){for(let e of i)this.toggleCss(e,t);return}}this.cssClassStates[e]!==t&&e.length&&(this.getGui()?.classList.toggle(e,t),this.cssClassStates[e]=t)}}},o2=0,o6=class extends tu{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=o2++,this.cssManager=new o3(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(e=>[e.selector,e])),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui()),this.addGlobalCss()}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute(e1):null}applyElementsToComponent(e,t,i,o=null){if(void 0===t&&(t=this.getDataRefAttribute(e)),t){let r=this[t];if(r===oZ)this[t]=o??e;else{let e=i?.[t];if(!this.suppressDataRefValidation&&!e)throw Error(`data-ref: ${t} on ${this.constructor.name} with ${r}`)}}}createChildComponentsFromTags(e,t){let i=[];for(let t of e.childNodes??[])i.push(t);for(let o of i){if(!(o instanceof HTMLElement))continue;let i=this.createComponentFromElement(o,e=>{let t=e.getGui();if(t)for(let e of o.attributes??[])t.setAttribute(e.name,e.value)},t);if(i){if(i.addItems&&o.children.length){this.createChildComponentsFromTags(o,t);let e=Array.prototype.slice.call(o.children);i.addItems(e)}this.swapComponentForNode(i,e,o)}else o.childNodes&&this.createChildComponentsFromTags(o,t)}}createComponentFromElement(e,t,i){let o=e.nodeName,r=this.getDataRefAttribute(e),s=0===o.indexOf("AG-"),n=s?this.componentSelectors.get(o):null,l=null;if(n){let e=i&&r?i[r]:void 0;(l=new n.component(e)).setParentComponent(this),this.createBean(l,null,t)}else if(s)throw Error(`selector: ${o}`);return this.applyElementsToComponent(e,r,i,l),l}swapComponentForNode(e,t,i){let o=e.getGui();t.replaceChild(o,i),t.insertBefore(document.createComment(i.nodeName),o),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e,t){let i=t??this.gos.get("tabIndex");for(let t of(e||(e=[]),e.length||e.push(this.getGui()),e))t.setAttribute("tabindex",i.toString())}setTemplate(e,t,i){let o;o="string"==typeof e||null==e?eN(e):e2(e),this.setTemplateFromElement(o,t,i)}setTemplateFromElement(e,t,i,o=!1){if(this.eGui=e,this.suppressDataRefValidation=o,t)for(let e=0;e<t.length;e++){let i=t[e];this.componentSelectors.set(i.selector,i)}this.wireTemplate(e,i)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(e){this.parentComponent=e}getParentComponent(){return this.parentComponent}setGui(e){this.eGui=e}queryForHtmlElement(e){return this.eGui.querySelector(e)}getContainerAndElement(e,t){let i=t;return null==e?null:(i||(i=this.eGui),eQ(e))?{element:e,parent:i}:{element:e.getGui(),parent:i}}prependChild(e,t){let{element:i,parent:o}=this.getContainerAndElement(e,t)||{};i&&o&&o.prepend(i)}appendChild(e,t){let{element:i,parent:o}=this.getContainerAndElement(e,t)||{};i&&o&&o.appendChild(i)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;let{skipAriaHidden:i}=t;ex(this.eGui,e,{skipAriaHidden:i})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;let{skipAriaHidden:i}=t;eE(this.eGui,e,{skipAriaHidden:i});let o={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(o)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}
1addGuiEventListener(e,t,i){this.eGui.addEventListener(e,t,i),this.addDestroyFunc(()=>this.eGui.removeEventListener(e,t))}addCss(e){this.cssManager.toggleCss(e,!0)}removeCss(e){this.cssManager.toggleCss(e,!1)}toggleCss(e,t){this.cssManager.toggleCss(e,t)}registerCSS(e){this.css===o4?(this.css=[e],this.addGlobalCss()):(this.css||(this.css=[]),this.css.push(e))}addGlobalCss(){if(Array.isArray(this.css)){let e="component-"+Object.getPrototypeOf(this)?.constructor?.name;for(let t of this.css??[])this.beans.environment.addGlobalCSS(t,e)}this.css=o4}},o4=Symbol(),o5=class extends o6{},o8={tag:"div",children:[{tag:"div",ref:"eGhost",cls:"ag-dnd-ghost ag-unselectable",children:[{tag:"span",ref:"eIcon",cls:"ag-dnd-ghost-icon ag-shake-left-to-right"},{tag:"div",ref:"eLabel",cls:"ag-dnd-ghost-label"}]}]},o7=class extends o5{constructor(){super(),this.dragSource=null,this.eIcon=oZ,this.eLabel=oZ,this.eGhost=oZ,this.registerCSS(".ag-dnd-ghost{align-items:center;background-color:var(--ag-drag-and-drop-image-background-color);border:var(--ag-drag-and-drop-image-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-drag-and-drop-image-shadow);color:var(--ag-text-color);cursor:move;display:flex;font-weight:500;gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);overflow:hidden;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);text-overflow:ellipsis;transform:translateY(calc(var(--ag-spacing)*2));white-space:nowrap}.ag-dnd-ghost-not-allowed{border:var(--ag-drag-and-drop-image-not-allowed-border)}")}postConstruct(){let e=e=>o0(e,this.beans,null);this.dropIconMap={pinned:e("columnMovePin"),hide:e("columnMoveHide"),move:e("columnMoveMove"),left:e("columnMoveLeft"),right:e("columnMoveRight"),group:e("columnMoveGroup"),aggregate:e("columnMoveValue"),pivot:e("columnMovePivot"),notAllowed:e("dropNotAllowed")}}init(e){this.dragSource=e.dragSource,this.setTemplate(o8),this.beans.environment.applyThemeClasses(this.eGhost)}destroy(){this.dragSource=null,super.destroy()}setIcon(e,t){let{eGhost:i,eIcon:o,dragSource:r,dropIconMap:s,gos:n}=this;eH(o);let l=null;e||(e=r?.getDefaultIconName?r.getDefaultIconName():"notAllowed"),l=s[e],i.classList.toggle("ag-dnd-ghost-not-allowed","notAllowed"===e),o.classList.toggle("ag-shake-left-to-right",t),!(l===s.hide&&n.get("suppressDragLeaveHidesColumns"))&&l&&o.appendChild(l)}setLabel(e){this.eLabel.textContent=e}},o9=class extends tu{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dragItem=null,this.dragInitialSourcePointerOffsetX=0,this.dragInitialSourcePointerOffsetY=0,this.lastMouseEvent=null,this.lastDraggingEvent=null,this.dragSource=null,this.dragImageCompPromise=null,this.dragImageComp=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0,this.dropTargets=[],this.externalDropZoneCount=0,this.lastDropTarget=null}addDragSource(e,t=!1){let i={capturePointer:!0,dragSource:e,eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:t=>this.onDragStart(e,t),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push(i),this.beans.dragSvc.addDragSource(i)}setDragImageCompIcon(e,t=!1){let i=this.dragImageComp;i&&(t||this.dragImageLastIcon!==e)&&(this.dragImageLastIcon=e,i.setIcon(e,t))}removeDragSource(e){let{dragSourceAndParamsList:t,beans:i}=this;for(let o=0,r=t.length;o<r;o++)if(t[o].dragSource===e){let e=t[o];i.dragSvc?.removeDragSource(e),t.splice(o,1);break}}destroy(){let{dragSourceAndParamsList:e,dropTargets:t,beans:i}=this,o=i.dragSvc;for(let t of e)o?.removeDragSource(t);e.length=0,t.length=0,this.externalDropZoneCount=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){let e=this.lastMouseEvent;e&&this.onDragging(e,!0)}onDragStart(e,t){this.lastMouseEvent=t,this.dragSource=e,this.dragItem=e.getDragItem();let i=e.eElement.getBoundingClientRect();this.dragInitialSourcePointerOffsetX=t.clientX-i.left,this.dragInitialSourcePointerOffsetY=t.clientY-i.top,e.onDragStarted?.(),this.createAndUpdateDragImageComp(e)}onDragStop(e){let{dragSource:t,lastDropTarget:i}=this;if(t?.onDragStopped?.(),i){let t=this.dropTargetEvent(i,e,!1);i.onDragStop?.(t)}this.clearDragAndDropProperties()}onDragCancel(){let{dragSource:e,lastDropTarget:t,lastMouseEvent:i}=this;
1if(e?.onDragCancelled?.(),t&&i){let e=this.dropTargetEvent(t,i,!1);t.onDragCancel?.(e)}this.clearDragAndDropProperties()}onDragging(e,t=!1){this.positionDragImageComp(e);let i=this.findCurrentDropTarget(e),{lastDropTarget:o,dragSource:r,dragItem:s}=this,n=!1;if(i!==o){if(n=!0,o){let i=this.dropTargetEvent(o,e,t);o.onDragLeave?.(i)}if(null===o||i?null===o&&i&&this.handleEnter(r,s):this.handleExit(r,s),i){let o=this.dropTargetEvent(i,e,t);i.onDragEnter?.(o)}this.lastDropTarget=i}else if(i){let o=this.dropTargetEvent(i,e,t);i.onDragging?.(o),o?.changed&&(n=!0)}this.lastMouseEvent=e,n&&this.updateDragImageComp()}clearDragAndDropProperties(){this.removeDragImageComp(this.dragImageComp),this.dragImageCompPromise=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0,this.lastMouseEvent=null,this.lastDraggingEvent=null,this.lastDropTarget=null,this.dragItem=null,this.dragInitialSourcePointerOffsetX=0,this.dragInitialSourcePointerOffsetY=0,this.dragSource=null}getAllContainersFromDropTarget(e){let t=e.getContainer(),i=e.getSecondaryContainers?.(),o=i?.length;if(!o)return[[t]];let r=Array(o+1);r[0]=[t];for(let e=0;e<o;++e)r[e+1]=i[e];return r}isMouseOnDropTarget(e,t){let i=this.getAllContainersFromDropTarget(t),o=!1,r=(e,t)=>{for(let i of t){let{width:t,height:o,left:r,right:s,top:n,bottom:l}=i.getBoundingClientRect();if(0===t||0===o)return!1;let a=e.clientX>=r&&e.clientX<s,d=e.clientY>=n&&e.clientY<l;if(!a||!d)return!1}return!0};for(let t of i)if(r(e,t)){o=!0;break}let{eElement:s,type:n}=this.dragSource;return(!t.targetContainsSource||!!t.getContainer().contains(s))&&o&&t.isInterestedIn(n,s)}findCurrentDropTarget(e){let t=[],i=this.dropTargets;for(let o=0,r=i.length;o<r;++o){let r=i[o];this.isMouseOnDropTarget(e,r)&&t.push(r)}let o=t.length;if(0===o)return null;if(1===o)return t[0];let r=G(this.beans).elementsFromPoint(e.clientX,e.clientY);for(let e=0,i=r.length;e<i;++e){let i=r[e];for(let e=0,o=t.length;e<o;e++){let o=t[e],r=this.getAllContainersFromDropTarget(o),s=!1;for(let e=0,t=r.length;e<t&&!s;e++){let t=r[e];for(let e=0,o=t.length;e<o;e++)if(t[e]===i){s=!0;break}}if(s)return o}}return null}addDropTarget(e){this.dropTargets.push(e),e.external&&this.externalDropZoneCount++}removeDropTarget(e){let t=e.getContainer(),i=this.dropTargets,o=0;for(let e=0,r=i.length;e<r;++e){let r=i[e];if(r.getContainer()===t){r.external&&--this.externalDropZoneCount;continue}o!==e&&(i[o]=r),++o}i.length=o}hasExternalDropZones(){return this.externalDropZoneCount>0}findExternalZone(e){let t=this.dropTargets;for(let i=0,o=t.length;i<o;++i){let o=t[i];if(o.external&&o.getContainer()===e)return o}return null}dropTargetEvent(e,t,i){let{dragSource:o,dragItem:r,lastDraggingEvent:s,lastMouseEvent:n,dragInitialSourcePointerOffsetX:l,dragInitialSourcePointerOffsetY:a}=this,d=e.getContainer(),h=d.getBoundingClientRect(),{clientX:u,clientY:c}=t,g=u-(n?.clientX||0),p=c-(n?.clientY||0),m=this.createEvent({event:t,x:u-h.left,y:c-h.top,vDirection:p>0?"down":p<0?"up":null,hDirection:g<0?"left":g>0?"right":null,initialSourcePointerOffsetX:l,initialSourcePointerOffsetY:a,dragSource:o,fromNudge:i,dragItem:r,dropZoneTarget:d,dropTarget:s?.dropTarget??null,changed:!!s?.changed});return this.lastDraggingEvent=m,m}positionDragImageComp(e){let t=this.dragImageComp?.getGui();t&&ti(t,e,this.beans)}removeDragImageComp(e){this.dragImageComp===e&&(this.dragImageComp=null),e&&(e.getGui()?.remove(),this.destroyBean(e))}createAndUpdateDragImageComp(e){let t=this.createDragImageComp(e)??null;this.dragImageCompPromise=t,t?.then(e=>{let i=this.lastMouseEvent;if(t!==this.dragImageCompPromise||!i||!this.isAlive())return void this.destroyBean(e);this.dragImageCompPromise=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0;let o=this.dragImageComp;o!==e&&(this.dragImageComp=e,this.removeDragImageComp(o)),e&&(this.appendDragImageComp(e),this.updateDragImageComp(),this.positionDragImageComp(i))})}appendDragImageComp(e){let t=e.getGui(),i=t.style;i.position="absolute",i.zIndex="9999",this.beans.dragSvc?.hasPointerCapture()&&(i.pointerEvents="none"),this.gos.setInstanceDomData(t),this.beans.environment.applyThemeClasses(t),i.top="20px",i.left="20px";let o=U(this.beans);o?o.appendChild(t):this.warnNoBody()}updateDragImageComp(){let{dragImageComp:e,dragSource:t,lastDropTarget:i,lastDraggingEvent:o,dragImageLastLabel:r}=this;if(!e)return;this.setDragImageCompIcon(i?.getIconName?.(o)??null);let s=t?.dragItemName;"function"==typeof s&&(s=s(o)),s||(s=""),r!==s&&(this.dragImageLastLabel=s,e.setLabel(s))}};function re(e){return"object"==typeof e&&!!e.component}function rt(e,t,i,o){let r,s,n,l,a,d,{name:h}=i;if(t){let i=t[h+"Selector"],u=i?i(o):null,c=t=>{"string"==typeof t?r=t:null!=t&&!0!==t&&(e.isFrameworkComponent(t)?n=t:s=t)};u?(c(u.component),l=u.params,a=u.popup,d=u.popupPosition):c(t[h])}return{compName:r,jsComp:s,fwComp:n,paramsFromSelector:l,popupFromSelector:a,popupPositionFromSelector:d}}var ri=class extends tc{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(e){this.agCompUtils=e.agCompUtils,this.registry=e.registry,this.frameworkCompWrapper=e.frameworkCompWrapper,this.gridOptions=e.gridOptions}
1getCompDetailsFromGridOptions(e,t,i,o=!1){return this.getCompDetails(this.gridOptions,e,t,i,o)}getCompDetails(e,t,i,o,r=!1){var s;let n,l,{name:a,cellRenderer:d}=t,{compName:h,jsComp:u,fwComp:c,paramsFromSelector:g,popupFromSelector:p,popupPositionFromSelector:m}=rt(this.beans.frameworkOverrides,e,t,o),f=e=>{let t=this.registry.getUserComponent(a,e);t&&(u=t.componentFromFramework?void 0:t.component,c=t.componentFromFramework?t.component:void 0,n=t.params,l=t.processParams)};if(null!=h&&f(h),null==u&&null==c&&null!=i&&f(i),u&&d&&!((s=u)&&s.prototype&&"getGui"in s.prototype)&&(u=this.agCompUtils?.adaptFunction(t,u)),!u&&!c){let{validation:e}=this.beans;r&&(h!==i||!i)?h?e?.isProvidedUserComp(h)||t0(50,{compName:h}):i?e||t0(260,{...this.gos.getModuleErrorParams(),propName:a,compName:i}):t0(216,{name:a}):i&&!e&&t0(146,{comp:i});return}let C=this.mergeParams(e,t,o,g,n,l),v=null==u,w=u??c;return{componentFromFramework:v,componentClass:w,params:C,type:t,popupFromSelector:p,popupPositionFromSelector:m,newAgStackInstance:()=>this.newAgStackInstance(w,v,C,t)}}newAgStackInstance(e,t,i,o){let r;r=t?this.frameworkCompWrapper.wrap(e,o.mandatoryMethods,o.optionalMethods,o):new e,this.createBean(r);let s=r.init?.(i);return null==s?oQ.resolve(r):s.then(()=>r)}mergeParams(e,t,i,o=null,r,s){let n={...i,...r},l=e?.[t.name+"Params"];return"function"==typeof l?tS(n,l(i)):"object"==typeof l&&tS(n,l),tS(n,o),s?s(n):n}},ro={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},rr={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},rs={name:"headerComponent",optionalMethods:["refresh"]},rn={name:"innerHeaderComponent"},rl={name:"innerHeaderGroupComponent"},ra={name:"headerGroupComponent"},rd={name:"innerRenderer",cellRenderer:!0,optionalMethods:["afterGuiAttached"]},rh={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},ru={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"]},rc={name:"loadingCellRenderer",cellRenderer:!0},rg={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},rp={name:"tooltipComponent"},rm={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},rf={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},rC={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},rv={name:"loadingCellRenderer",cellRenderer:!0},rw={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},rb={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function ry(e,t,i){return e.getCompDetails(t,rd,void 0,i)}function rS(e,t,i){return e.getCompDetails(t,rh,void 0,i)}function rR(e,t,i){return e.getCompDetails(t,ru,void 0,i)}function rE(e,t,i){return e.getCompDetails(t,rc,"agSkeletonCellRenderer",i,!0)}function rx(e,t,i){return e.getCompDetails(t,rg,"agCellEditor",i,!0)}function rF(e,t,i,o){let r=t.filter;return re(r)&&(t={filter:r.component,filterParams:t.filterParams}),e.getCompDetails(t,rm,o,i,!0)}function rP(e,t,i,o){return e.getCompDetails(t,rf,o,i)}function rD(e,t,i){return e.mergeParams(t,rm,i)}var rM=(e=>(e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag",e[e.ChartPanel=3]="ChartPanel",e[e.AdvancedFilterBuilder=4]="AdvancedFilterBuilder",e))(rM||{}),rk=class extends o9{createEvent(e){return iK(this.gos,e)}createDragImageComp(e){var t,i;let{gos:o,beans:r}=this,s=(t=r.userCompFactory,i=iK(o,{dragSource:e}),t.getCompDetailsFromGridOptions(rr,"agDragAndDropImage",i,!0));return s?.newAgStackInstance()}handleEnter(e,t){e?.onGridEnter?.(t)}handleExit(e,t){e?.onGridExit?.(t)}warnNoBody(){tX(54)}isDropZoneWithinThisGrid(e){return this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody.contains(e.dropZoneTarget)}registerGridDropTarget(e,t){let i={getContainer:e,isInterestedIn:e=>1===e||0===e,getIconName:()=>"notAllowed"};this.addDropTarget(i),t.addDestroyFunc(()=>this.removeDropTarget(i))}},rT=class extends o5{constructor(e){let{className:t="ag-filter-appl
1y-panel"}=e??{};super({tag:"div",cls:t}),this.listeners=[],this.validationMessage=null,this.className=t}updateButtons(e,t){let i,o=this.buttons;if(this.buttons=e,o===e)return;let r=this.getGui();eH(r),this.destroyListeners();let s=document.createDocumentFragment(),n=this.className,l=({type:e,label:o})=>{let r=t=>{this.dispatchLocalEvent({type:e,event:t})};["apply","clear","reset","cancel"].includes(e)||tX(75);let l="apply"===e,a=e2({tag:"button",attrs:{type:l&&t?"submit":"button"},ref:`${e}FilterButton`,cls:`ag-button ag-standard-button ${n}-button${l?" "+n+"-apply-button":""}`,children:o});this.activateTabIndex([a]),l&&(i=a);let d=e=>{e.key===oK.ENTER&&(e.preventDefault(),r(e))},h=this.listeners;a.addEventListener("click",r),h.push(()=>a.removeEventListener("click",r)),a.addEventListener("keydown",d),h.push(()=>a.removeEventListener("keydown",d)),s.append(a)};for(let t of e)l(t);this.eApply=i;let a=this.validationTooltipFeature;i&&!a?this.validationTooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eApply,getLocation:()=>"advancedFilter",getTooltipShowDelayOverride:()=>1e3})):!i&&a&&(this.validationTooltipFeature=this.destroyBean(a)),r.append(s)}getApplyButton(){return this.eApply}updateValidity(e,t=null){let i=this.eApply;i&&(eF(i,!e),this.validationMessage=t,this.validationTooltipFeature?.setTooltipAndRefresh(this.validationMessage))}destroyListeners(){for(let e of this.listeners)e();this.listeners=[]}destroy(){this.destroyListeners(),super.destroy()}},rA={selector:"AG-FILTER-BUTTON",component:rT},rI={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",bigintFilter:"BigInt Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd",filterSummaryInactive:"is (All)",filterSummaryContains:"contains",filterSummaryNotContains:"does not contain",filterSummaryTextEquals:"equals",filterSummaryTextNotEqual:"does not equal",filterSummaryStartsWith:"begins with",filterSummaryEndsWith:"ends with",filterSummaryBlank:"is blank",filterSummaryNotBlank:"is not blank",filterSummaryEquals:"=",filterSummaryNotEqual:"!=",filterSummaryGreaterThan:">",filterSummaryGreaterThanOrEqual:">=",filterSummaryLessThan:"<",filterSummaryLessThanOrEqual:"<=",filterSummaryInRange:"between",yesterday:"Yesterday",today:"Today",tomorrow:"Tomorrow",last7Days:"Last 7 Days",lastWeek:"Last Week",thisWeek:"This Week",nextWeek:"Next Week",last30Days:"Last 30 Days",lastMonth:"Last Month",thisMonth:"This Month",nextMonth:"Next Month",last90Days:"Last 90 Days",lastQuarter:"Last Quarter",thisQuarter:"This Quarter",nextQuarter:"Next Quarter",lastYear:"Last Year",thisYear:"This Year",yearToDate:"Year To Date",nextYear:"Next Year",last6Months:"Last 6 Months",last12Months:"Last 12 Months",last24Months:"Last 24 Months",filterSummaryInRangeValues:e=>`(${e[0]}, ${e[1]})`,filterSummaryTextQuote:e=>`"${e[0]}"`,minDateValidation:e=>`Date must be after ${e[0]}`,maxDateValidation:e=>`Date must be before ${e[0]}`,strictMinValueValidation:e=>`Must be greater than ${e[0]}`,strictMaxValueValidation:e=>`Must be less than ${e[0]}`};function rL(e,t,i){return ta(e,rI,t,i)}function rB(e,t){let{debounceMs:i}=e;return rH(e)?(null!=i&&tX(71),0):i??t}function rH(e){return(e.buttons?.indexOf("apply")??-1)>=0}function rV(e,t,i,o){let r=rL(e,i);if("function"==typeof t){let i=rL(e,o);r=t({filterOptionKey:o,filterOption:i,placeholder:r})}else"string"==typeof t&&(r=t);return r}var rG=class extends o5{constructor(e,t,i,o,r,s){super(),this.column=e,this.wrapper=t,this.eventParent=i,this.updateModel=o,this.isGlobalButtons=r,this.enableGlobalButtonCheck=s,this.hidePopup=null,this.applyActive=!1}postConstruct(){let{comp:e,params:t}=this.wrapper,i=t.useForm;this.setTemplate({tag:i?"form":"div",cls:"ag-filter-wrapper"}),i&&this.addManagedElementListeners(this.getGui(),{submit:e=>{e?.preventDefault()},keydown:this.handleKeyDown.bind(this)}),this.appendChild(e.getGui()),this.params=t,this.resetButtonsPanel(t),this.addManagedListeners(this.eventParent,{filterParamsChanged:({column:e,params:t})=>{e===this.column&&this.resetButtonsPanel(t,this.params)},filterStateChanged:({column:e,state:t})=>{e===this.column&&this.eButtons?.updateValidity(!1!==t.valid)},filterAction:({column:e,action:t,event:i})=>{e===this.column&&this.afterAction(t,i)},...this.enableGlobalButtonCheck?{filterGlobalButtons:({isGlobal:e})=>
1{if(e!==this.isGlobalButtons){this.isGlobalButtons=e;let t=this.params;this.resetButtonsPanel(t,t,!0)}}}:void 0})}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup)}resetButtonsPanel(e,t,i){let{buttons:o,readOnly:r}=t??{},{buttons:s,readOnly:n,useForm:l}=e;if(!i&&r===n&&M(o,s))return;let a=s&&s.length>0&&!e.readOnly&&!this.isGlobalButtons,d=this.eButtons;if(a){let e=s.map(e=>{let t=`${e}Filter`;return{type:e,label:rL(this,t)}});if(this.applyActive=rH(this.params),!d){d=this.createBean(new rT),this.appendChild(d.getGui());let e=this.column,t=t=>({event:i})=>{this.updateModel(e,t,{fromButtons:!0}),this.afterAction(t,i)};d?.addManagedListeners(d,{apply:t("apply"),clear:t("clear"),reset:t("reset"),cancel:t("cancel")}),this.eButtons=d}d.updateButtons(e,l)}else this.applyActive=!1,d&&(eV(d.getGui()),this.eButtons=this.destroyBean(d))}close(e){let t,i=this.hidePopup;if(!i)return;let o=e?.key;(o===oK.ENTER||o===oK.SPACE)&&(t={keyboardEvent:e}),i(t),this.hidePopup=null}afterAction(e,t){let{params:i,applyActive:o}=this,r=i?.closeOnApply;switch(e){case"apply":t?.preventDefault(),r&&o&&this.close(t);break;case"reset":r&&o&&this.close();break;case"cancel":r&&this.close(t)}}handleKeyDown(e){!e.defaultPrevented&&e.key===oK.ENTER&&this.applyActive&&(this.updateModel(this.column,"apply",{fromButtons:!0}),this.afterAction("apply",e))}destroy(){this.hidePopup=null,this.eButtons=this.destroyBean(this.eButtons)}},rO={tag:"div",cls:"ag-filter"},rN=class extends o5{constructor(e,t,i){super(rO),this.column=e,this.source=t,this.enableGlobalButtonCheck=i,this.wrapper=null}postConstruct(){this.beans.colFilter?.activeFilterComps.add(this),this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return null!=this.wrapper}getFilter(){return this.wrapper?.then(e=>e.comp)??null}afterInit(){return this.wrapper?.then(()=>{})??oQ.resolve()}afterGuiAttached(e){this.afterGuiAttachedParams=e,this.wrapper?.then(t=>{this.comp?.afterGuiAttached(e),t?.comp?.afterGuiAttached?.(e)})}afterGuiDetached(){this.wrapper?.then(e=>{e?.comp?.afterGuiDetached?.()})}createFilter(e){let{column:t,source:i,beans:{colFilter:o}}=this,r=o.getFilterUiForDisplay(t)??null;this.wrapper=r,r?.then(r=>{let s;if(!r)return;let{isHandler:n,comp:l}=r;if(n){let e=!!this.enableGlobalButtonCheck,i=this.createBean(new rG(t,r,o,o.updateModel.bind(o),e&&o.isGlobalButtons,e));this.comp=i,s=i.getGui()}else this.registerCSS(":where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}"),F(s=l.getGui())||tX(69,{guiFromFilter:s});this.appendChild(s),e?this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:i,eGui:this.getGui()}):l.afterGuiAttached?.(this.afterGuiAttachedParams)})}onFilterDestroyed(e){let{source:t,column:i}=e;("api"===t||"paramsUpdated"===t)&&i.getId()===this.column.getId()&&this.beans.colModel.getColDefCol(this.column)&&(eH(this.getGui()),this.comp=this.destroyBean(this.comp),this.createFilter())}destroy(){this.beans.colFilter?.activeFilterComps.delete(this),this.eventSvc.dispatchEvent({type:"filterClosed",column:this.column}),this.wrapper=null,this.comp=this.destroyBean(this.comp),this.afterGuiAttachedParams=void 0,super.destroy()}};function rz(e){return!!e.operator}var rW="ag-resizer-wrapper",rU=(e,t)=>({tag:"div",ref:`${e}Resizer`,cls:`ag-resizer ag-resizer-${t}`}),r_={tag:"div",cls:rW,children:[rU("eTopLeft","topLeft"),rU("eTop","top"),rU("eTopRight","topRight"),rU("eRight","right"),rU("eBottomRight","bottomRight"),rU("eBottom","bottom"),rU("eBottomLeft","bottomLeft"),rU("eLeft","left")]},r$=class extends tu{constructor(e,t){super(),this.element=e,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0},this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config={popup:!1,...t}}wireBeans(e){this.popupSvc=e.popupSvc,this.dragSvc=e.dragSvc}center(e){let{clientHeight:t,clientWidth:i}=this.offsetParent,o=i/2-this.getWidth()/2,r=t/2-this.getHeight()/2;this.offsetElement(o,r,e)}initialisePosition(e){if(this.positioned)return;let{centered:t,forcePopupParentAsOffsetParent:i,minWidth:o,width:r,minHeight:s,height:n,x:l,y:a}=this.config;this.offsetParent||this.setOffsetParent();let d=0,h=0,u=eO(this.element);if(u){let e=this.findBoundaryElement(),t=window.getComputedStyle(e);
1if(null!=t.minWidth){let i=e.offsetWidth-this.element.offsetWidth;h=Number.parseInt(t.minWidth,10)-i}if(null!=t.minHeight){let i=e.offsetHeight-this.element.offsetHeight;d=Number.parseInt(t.minHeight,10)-i}}if(this.minHeight=s||d,this.minWidth=o||h,r&&this.setWidth(r),n&&this.setHeight(n),r&&n||this.refreshSize(),t)this.center(e);else if(l||a)this.offsetElement(l,a,e);else if(u&&i){let t=this.boundaryEl,i=!0;if(t||(t=this.findBoundaryElement(),i=!1),t){let o=Number.parseFloat(t.style.top),r=Number.parseFloat(t.style.left);i?this.offsetElement(Number.isNaN(r)?0:r,Number.isNaN(o)?0:o,e):this.setPosition(r,o)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(e,t){if(!this.config.popup||e===this.movable)return;this.movable=e;let i=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragSvc?.addDragSource(i),this.moveElementDragListener=i):(this.dragSvc?.removeDragSource(i),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),"boolean"==typeof e){if(!1===e)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}for(let t of Object.keys(e)){let i=!!e[t],o=this.getResizerElement(t),r={dragStartPixels:0,eElement:o,onDragStart:e=>this.onResizeStart(e,t),onDragging:this.onResize.bind(this),onDragStop:e=>this.onResizeEnd(e,t)};!i&&(this.isAlive()||i)||(i?(this.dragSvc?.addDragSource(r),this.resizeListeners.push(r),o.style.pointerEvents="all"):o.style.pointerEvents="none",this.resizable[t]=i)}}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";let{height:e,width:t}=this.lastSize;-1!==t&&(this.element.style.width=`${t}px`),-1!==e&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){let{popup:t}=this.config,i=this.element,o=!1;if("string"==typeof e&&e.includes("%"))ej(i,e),e=eT(i),o=!0;else if(e=Math.max(this.minHeight,e),this.positioned){let t=this.getAvailableHeight();t&&e>t&&(e=t)}this.getHeight()!==e&&(o?(i.style.maxHeight="unset",i.style.minHeight="unset"):t?ej(i,e):(i.style.height=`${e}px`,i.style.flex="0 0 auto",this.lastSize.height="number"==typeof e?e:Number.parseFloat(e)))}getAvailableHeight(){let{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();let{clientHeight:i}=this.offsetParent;if(!i)return null;let o=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),s=e?this.position.y:o.top,n=e?0:r.top,l=0;if(t){let e=this.element.parentElement;if(e){let{bottom:t}=e.getBoundingClientRect();l=t-o.bottom}}return i+n-s-l}getWidth(){return this.element.offsetWidth}setWidth(e){let t=this.element,{popup:i}=this.config,o=!1;if("string"==typeof e&&e.includes("%"))eK(t,e),e=eA(t),o=!0;else if(this.positioned){e=Math.max(this.minWidth,e);let{clientWidth:t}=this.offsetParent,o=i?this.position.x:this.element.getBoundingClientRect().left;t&&e+o>t&&(e=t-o)}this.getWidth()!==e&&(o?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?eK(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width="number"==typeof e?e:Number.parseFloat(e)))}offsetElement(e=0,t=0,i){let{forcePopupParentAsOffsetParent:o}=this.config,r=o?this.boundaryEl:this.element;r&&(this.popupSvc?.positionPopup({ePopup:r,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t}),postProcessCallback:i}),this.setPosition(Number.parseFloat(r.style.left),Number.parseFloat(r.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;let t=()=>{let e=this.getAvailableHeight();this.element.style.setProperty("max-height",`${e}px`)};e&&this.popupSvc?(this.resizeObserverSubscriber?.(),this.resizeObserverSubscriber=eX(this.beans,this.popupSvc?.getPopupParent(),t)):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(e,t){this.position.x=e,this.position.y=t}updateDragStartPosition(e,t){this.dragStartPosition={x:e,y:t}}calculateMouseMovement(e){let{e:t,isLeft:i,isTop:o,anywhereWithin:r,topBuffer:s}=e,n=t.clientX-this.dragStartPosition.x,l=t.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(t,!!i,!!r,n)?0:n,movementY:this.shouldSkipY(t,!!o,s,l)?0:l}}shouldSkipX(e,t,i,o){let r=this.element.getBoundingClientRect(),s=this.offsetParent.getBoundingClientRect(),n=this.boundaryEl.getBoundingClientRect(),l=this.config.popup?this.position.x:r.left,a=l<=0&&s.left>=e.clientX||s.right<=e.clientX&&s.right<=n.right;return!!a||(a=t?o<0&&e.clientX>l+s.left||o>0&&e.clientX<l+s.left:i?o<0&&e.clientX>n.right||o>0&&e.clientX<l+s.left:o<0&&e.clientX>n.right||o>0&&e.clientX<n.right)}shouldSkipY(e,t,i=0,o){let r=this.element.getBoundingClientRect(),s=this.offsetParent.getBoundingClientRect(),n=this.boundaryEl.getBoundingClientRect(),l=this.config.popup?this.position.y:r.top,a=l<=0&&s.top>=e.clientY||s.bottom<=e.clientY&&s.bottom<=n.bottom;return!!a||(a=t?o<0&&e.clientY>l+s.top+i||o>
10&&e.clientY<l+s.top:o<0&&e.clientY>n.bottom||o>0&&e.clientY<n.bottom)}createResizeMap(){let e=e=>({element:this.element.querySelector(`[data-ref=${e}Resizer]`)});this.resizerMap={topLeft:e("eTopLeft"),top:e("eTop"),topRight:e("eTopRight"),right:e("eRight"),bottomRight:e("eBottomRight"),bottom:e("eBottom"),bottomLeft:e("eBottomLeft"),left:e("eLeft")}}addResizers(){if(this.resizersAdded)return;let e=this.element;e&&(e.appendChild(e2(r_)),this.createResizeMap(),this.resizersAdded=!0)}removeResizers(){this.resizerMap=void 0;let e=this.element.querySelector(`.${rW}`);e?.remove(),this.resizersAdded=!1}getResizerElement(e){return this.resizerMap[e].element}onResizeStart(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");let{popup:i,forcePopupParentAsOffsetParent:o}=this.config;i||o||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)}getSiblings(){let e=this.element.parentElement;return e?Array.prototype.slice.call(e.children).filter(e=>!e.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){let e=this.getSiblings()||[],t=0,i=0;for(let o of e){let e=!!o.style.flex&&"0 0 auto"!==o.style.flex;if(o===this.element)continue;let r=this.minHeight||0,s=this.minWidth||0;if(e){let e=window.getComputedStyle(o);e.minHeight&&(r=Number.parseInt(e.minHeight,10)),e.minWidth&&(s=Number.parseInt(e.minWidth,10))}else r=o.offsetHeight,s=o.offsetWidth;t+=r,i+=s}return{height:t,width:i}}applySizeToSiblings(e){let t=null,i=this.getSiblings();if(i){for(let o=0;o<i.length;o++){let r=i[o];r!==t&&(e?r.style.height=`${r.offsetHeight}px`:r.style.width=`${r.offsetWidth}px`,r.style.flex="0 0 auto",r===this.element&&(t=i[o+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some(e=>e)}onResize(e){if(!this.isResizing||!this.currentResizer)return;let{popup:t,forcePopupParentAsOffsetParent:i}=this.config,{isTop:o,isRight:r,isBottom:s,isLeft:n}=this.currentResizer,l=r||n,a=s||o,{movementX:d,movementY:h}=this.calculateMouseMovement({e,isLeft:n,isTop:o}),u=this.position.x,c=this.position.y,g=0,p=0;if(l&&d){let e=n?-1:1,t=this.getWidth(),i=t+d*e,o=!1;n&&(u+(g=t-i)<=0||i<=this.minWidth)&&(o=!0,g=0),o||this.setWidth(i)}if(a&&h){let e=o?-1:1,t=this.getHeight(),i=t+h*e,r=!1;o?(c+(p=t-i)<=0||i<=this.minHeight)&&(r=!0,p=0):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&t<i&&this.getMinSizeOfSiblings().height+i>this.element.parentElement.offsetHeight&&(r=!0),r||this.setHeight(i)}this.updateDragStartPosition(e.clientX,e.clientY),((t||i)&&g||p)&&this.offsetElement(u+g,c+p)}onResizeEnd(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){let e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))}onMoveStart(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)}onMove(e){let t;if(!this.isMoving)return;let{x:i,y:o}=this.position;this.config.calculateTopBuffer&&(t=this.config.calculateTopBuffer());let{movementX:r,movementY:s}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:t});this.offsetElement(i+r,o+s),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent&&this.popupSvc?this.offsetParent=this.popupSvc.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let e=this.element;for(;e;){if("static"!==window.getComputedStyle(e).position)return e;e=e.parentElement}return this.element}clearResizeListeners(){for(;this.resizeListeners.length;){let e=this.resizeListeners.pop();this.dragSvc?.removeDragSource(e)}}destroy(){super.destroy(),this.moveElementDragListener&&this.dragSvc?.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},rq=class extends r${};function rK(){return void 0===s&&(s=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),s}function rj(){return void 0===n&&(n=/(firefox)/i.test(navigator.userAgent)),n}function rY(){return void 0===l&&(l=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),l}function rQ(){return void 0===a&&(a=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),a}function rZ(e){if(!e)return null;let t=e.tabIndex,i=e.getAttribute("tabIndex");return -1!==t||null!==i&&(""!==i||rj())?t.toString():null}function rJ(){return null==h&&rX(),h}function rX(){let e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let i=t.offsetWidth-t.clientWidth;0===i&&0===t.clientWidth&&(i=null),t.parentNode&&t.remove(),null!=i&&(h=i,d=0===i)}function r0(){return null==d&&rX(),d}var r1=!1,r3=0;
1function r2(e){let t=r1,i="keydown"===e.type;i&&(e.ctrlKey||e.metaKey||e.altKey)||t!==i&&(r1=i)}function r6(){return r1}function r4(e,t,i=!1){let o=eS;t&&(o+=", "+t),i&&(o+=', [tabindex="-1"]');let r=Array.prototype.slice.apply(e.querySelectorAll("[tabindex], input, select, button, textarea, [href]")).filter(e=>eO(e)),s=Array.prototype.slice.apply(e.querySelectorAll(o));return s.length?r.filter(e=>-1===s.indexOf(e)):r}function r5(e,t=!1,i=!1,o=!1){let r=r4(e,o?".ag-tab-guard":null,i),s=t?v(r):r[0];return!!s&&(s.focus({preventScroll:!0}),!0)}function r8(e,t,i,o){let r=r4(t,i?':not([tabindex="-1"])':null),s=O(e),n=(i?r.findIndex(e=>e.contains(s)):r.indexOf(s))+(o?-1:1);return n<0||n>=r.length?null:r[n]}function r7(e,t=5){let i=0;for(;e&&null===rZ(e)&&++i<=t;)e=e.parentElement;return null===rZ(e)?null:e}var r9="ag-focus-managed",se=class extends tu{constructor(e,t={isStopPropagation:()=>!1,stopPropagation:()=>{}},i={}){super(),this.eFocusable=e,this.stopPropagationCallbacks=t,this.callbacks=i,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:e=>{if(e.defaultPrevented)return;let t=r8(this.beans,this.eFocusable,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())},...i}}postConstruct(){let{eFocusable:e,callbacks:{onFocusIn:t,onFocusOut:i}}=this;e.classList.add(r9),this.addKeyDownListeners(e),t&&this.addManagedElementListeners(e,{focusin:t}),i&&this.addManagedElementListeners(e,{focusout:i})}addKeyDownListeners(e){this.addManagedElementListeners(e,{keydown:e=>{if(e.defaultPrevented||this.stopPropagationCallbacks.isStopPropagation(e))return;let{callbacks:t}=this;if(t.shouldStopEventPropagation(e))return void this.stopPropagationCallbacks.stopPropagation(e);e.key===oK.TAB?t.onTabKeyDown(e):t.handleKeyDown&&t.handleKeyDown(e)}})}},st="__ag_Grid_Stop_Propagation";function si(e){e[st]=!0}function so(e){return!0===e[st]}var sr={isStopPropagation:so,stopPropagation:si},ss=class extends se{constructor(e,t){super(e,sr,t)}},sn=class extends o5{constructor(e,t){super(),this.filterNameKey=e,this.cssIdentifier=t,this.applyActive=!1,this.debouncePending=!1,this.defaultDebounceMs=0}postConstruct(){let e={tag:"div",cls:`ag-filter-body-wrapper ag-${this.cssIdentifier}-body-wrapper`,children:[this.createBodyTemplate()]};this.setTemplate(e,this.getAgComponents()),this.createManagedBean(new ss(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=this.createBean(new rq(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}))}handleKeyDown(e){}init(e){this.setParams(e),this.setModelIntoUi(e.state.model,!0).then(()=>this.updateUiVisibility())}areStatesEqual(e,t){return e===t}refresh(e){let t=this.params;this.params=e;let{source:i,state:o,additionalEventAttributes:r}=e;"colDef"===i&&this.updateParams(e,t);let s=this.state;this.state=o;let n=r?.fromAction;return(n&&"apply"!==n||o.model!==s.model||!this.areStatesEqual(o.state,s.state))&&this.setModelIntoUi(o.model),!0}setParams(e){this.params=e,this.state=e.state,this.commonUpdateParams(e)}updateParams(e,t){this.commonUpdateParams(e,t)}commonUpdateParams(e,t){this.applyActive=rH(e),this.setupApplyDebounced()}doesFilterPass(e){tX(283);let{getHandler:t,model:i,column:o}=this.params;return t().doesFilterPass({...e,model:i,handlerParams:this.beans.colFilter.getHandlerParams(o)})}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return tX(284),null!=this.params.model}setupApplyDebounced(){let e=rB(this.params,this.defaultDebounceMs),t=tv(this,this.checkApplyDebounce.bind(this),e);this.applyDebounced=()=>{this.debouncePending=!0,t()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.doApplyModel())}getModel(){return tX(285),this.params.model}setModel(e){tX(286);let{beans:t,params:i}=this;return t.colFilter.setModelForColumnLegacy(i.column,e)}applyModel(e="api"){return this.doApplyModel()}canApply(e){return!0}doApplyModel(e){let{params:t,state:{valid:i=!0,model:o}}=this;if(!i)return!1;let r=!this.areModelsEqual(t.model,o);return r&&t.onAction("apply",e),r}onNewRowsLoaded(){}onUiChanged(e,t=!1){this.updateUiVisibility();let i=this.getModelFromUi(),o={model:i,state:this.getState(),val
1id:this.canApply(i)};this.state=o;let{params:r,gos:s,eventSvc:n,applyActive:l}=this;r.onStateChange(o),r.onUiChange(this.getUiChangeEventParams()),s.get("enableFilterHandlers")||n.dispatchEvent({type:"filterModified",column:r.column,filterInstance:this}),o.valid&&(e??(e=l?void 0:"debounce"),"immediately"===e?this.doApplyModel({afterFloatingFilter:t,afterDataChange:!1}):"debounce"===e&&this.applyDebounced())}getState(){}getUiChangeEventParams(){}afterGuiAttached(e){this.lastContainerType=e?.container,this.refreshFilterResizer(e?.container)}refreshFilterResizer(e){let{positionableFeature:t,gos:i}=this;if(!t)return;let o="floatingFilter"===e||"columnFilter"===e;o?(t.restoreLastSize(),t.setResizable(i.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(t.removeSizeFromEl(),t.setResizable(!1)),t.constrainSizeToAvailableHeight(o)}afterGuiDetached(){this.checkApplyDebounce(),this.positionableFeature?.constrainSizeToAvailableHeight(!1)}destroy(){this.positionableFeature=this.destroyBean(this.positionableFeature),super.destroy()}translate(e,t){return rL(this,e,t)}getPositionableElement(){return this.getGui()}areModelsEqual(e,t){return e===t||null==e&&null==t||null!=e&&null!=t&&this.areNonNullModelsEqual(e,t)}},sl=["aggregation","filter","sort","pivot","columnVisibility","columnSizing","rowGroup"];function sa(e){let{rowIndex:t,rowPinned:i,column:o}=e;return`${t}.${null==i?"null":i}.${o.getId()}`}function sd(e,t){let i=e.column===t.column,o=e.rowPinned===t.rowPinned,r=e.rowIndex===t.rowIndex;return i&&o&&r}function sh(e,t){switch(e.rowPinned){case"top":if("top"!==t.rowPinned)return!0;break;case"bottom":if("bottom"!==t.rowPinned)return!1;break;default:if(F(t.rowPinned))return"top"!==t.rowPinned}return e.rowIndex<t.rowIndex}function su(e,t){return!e&&!t||!!e&&!!t&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned}function sc(e){let t,i=0,{pinnedRowModel:o,rowModel:r,pageBounds:s}=e;return o?.getPinnedTopRowCount()?t="top":r.getRowCount()?(t=null,i=s.getFirstRow()):o?.getPinnedBottomRowCount()&&(t="bottom"),void 0===t?null:{rowIndex:i,rowPinned:t}}function sg(e){let t,i=null,{pinnedRowModel:o,pageBounds:r}=e,s=o?.getPinnedBottomRowCount(),n=o?.getPinnedTopRowCount();return s?(i="bottom",t=s-1):e.rowModel.getRowCount()?t=r.getLastRow():n&&(i="top",t=n-1),void 0===t?null:{rowIndex:t,rowPinned:i}}function sp(e,t){switch(t.rowPinned){case"top":return e.pinnedRowModel?.getPinnedTopRow(t.rowIndex);case"bottom":return e.pinnedRowModel?.getPinnedBottomRow(t.rowIndex);default:return e.rowModel.getRow(t.rowIndex)}}function sm(e,t){let i=e.spannedRowRenderer?.getCellByPosition(t);if(i)return i;let o=e.rowRenderer.getRowByPosition(t);return o?o.getCellCtrl(t.column):null}function sf(e,t,i=!1){let{rowIndex:o,rowPinned:r}=t,{pageBounds:s,pinnedRowModel:n,rowModel:l}=e;return 0===o?"top"===r?null:"bottom"===r&&l.isRowsToRender()?{rowIndex:s.getLastRow(),rowPinned:null}:n?.isRowsToRender("top")?{rowIndex:n.getPinnedTopRowCount()-1,rowPinned:"top"}:null:i?sw(e,r?void 0:l.getRow(o),!0)??{rowIndex:o-1,rowPinned:r}:{rowIndex:o-1,rowPinned:r}}function sC(e,t){let{pinnedRowModel:i,rowModel:o}=e,r=i?.getPinnedTopRowCount()??0,s=o.getRowCount(),{rowPinned:n,rowIndex:l}=t;return"top"===n?l:"bottom"===n?r+s+l:r+l}function sv(e,t,i=!1){let{rowIndex:o,rowPinned:r}=t,{pageBounds:s,pinnedRowModel:n,rowModel:l}=e;return function(e,t){let{rowPinned:i,rowIndex:o}=t,{pinnedRowModel:r,pageBounds:s}=e;return"top"===i?(r?.getPinnedTopRowCount()??0)-1<=o:"bottom"===i?(r?.getPinnedBottomRowCount()??0)-1<=o:s.getLastRow()<=o}(e,t)?"bottom"===r?null:"top"===r&&l.isRowsToRender()?{rowIndex:s.getFirstRow(),rowPinned:null}:n?.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null:i?sw(e,r?void 0:l.getRow(o))??{rowIndex:o+1,rowPinned:r}:{rowIndex:o+1,rowPinned:r}}function sw(e,t,i=!1){let o,{gos:r,rowRenderer:s}=e;if(!t?.sticky||!ih(r))return;let n=s.getStickyTopRowCtrls(),l=s.getStickyBottomRowCtrls(),a=!l.some(e=>e.rowNode.rowIndex===t.rowIndex),d=a?n:l,h=(i?-1:1)*(a?-1:1);for(let e=0;e<d.length;e++)if(d[e].rowNode.rowIndex===t.rowIndex){o=d[e+h];break}return o?{rowIndex:o.rowNode.rowIndex,rowPinned:null}:void 0}
1function sb(e,t,i){t.addManagedElementListeners(i,{keydown:t=>{if(!t.defaultPrevented&&t.key===oK.TAB){let o=t.shiftKey;!r8(e,i,!1,o)&&sE(e,o)&&t.preventDefault()}}})}function sy(e,t){return e.ctrlsSvc.get("gridCtrl").focusInnerElement(t)}function sS(e){return e.gos.get("suppressHeaderFocus")||!!e.overlays?.exclusive}function sR(e){return e.gos.get("suppressCellFocus")||!!e.overlays?.exclusive}function sE(e,t,i=!1){let o=e.ctrlsSvc.get("gridCtrl");return!!(!i&&o.focusNextInnerContainer(t))||(!i&&(t||o.isDetailGrid())||o.forceFocusOutOfContainer(t),!1)}function sx(e,t){let i=e.focusSvc,o=i.getFocusedCell();if(o&&t&&sd(o,t)){let{rowIndex:o,rowPinned:r,column:s}=t;z(e)&&i.setFocusedCell({rowIndex:o,column:s,rowPinned:r,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!r1})}}function sF(e){return e.cols?e.cols.treeDepth+1:-1}function sP(e){return e.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0}function sD(e){let t=[];for(let i of e.ctrlsSvc.getHeaderRowContainerCtrls()){if(!i)continue;let o=i.getGroupRowCount()||0;for(let r=0;r<o;r++){let o=i.getGroupRowCtrlAtIndex(r),s=t[r];
1if(o){let i=function(e,t){var i;let o=e.colModel.isPivotMode()?(i=e).gos.get("pivotGroupHeaderHeight")??sA(i):sA(e);for(let e of t.getHeaderCellCtrls()){let{column:t}=e,i=t.getAutoHeaderHeight();null!=i&&i>o&&t.isAutoHeaderHeight()&&(o=i)}return o}(e,o);(null==s||i>s)&&(t[r]=i)}}}return t}function sM(e){var t;let i=e.colModel.isPivotMode()?(t=e).gos.get("pivotHeaderHeight")??sk(t):sk(e);return e.colModel.forAllCols(e=>{let t=e.getAutoHeaderHeight();null!=t&&t>i&&e.isAutoHeaderHeight()&&(i=t)}),i}function sk(e){return e.gos.get("headerHeight")??e.environment.getDefaultHeaderHeight()}function sT(e){return e.gos.get("floatingFiltersHeight")??sk(e)}function sA(e){return e.gos.get("groupHeaderHeight")??sk(e)}var sI=class extends tc{setComp(e,t,i){this.comp=e,this.eGui=t;let{beans:o}=this,{headerNavigation:r,touchSvc:s,ctrlsSvc:n}=o;r&&this.createManagedBean(new ss(i,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,o),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,o)}),this.onPivotModeChanged(o),this.setupHeaderHeight();let l=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:l}),s?.mockHeaderContextMenu(this,l),n.register("gridHeaderCtrl",this)}setupHeaderHeight(){let e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],e),this.addManagedEventListeners({headerRowsChanged:e,columnHeaderHeightChanged:e,columnGroupHeaderHeightChanged:()=>e0(this.beans,()=>e()),stylesChanged:e,advancedFilterEnabledChanged:e})}setHeaderHeight(){let{beans:e}=this,t=0,i=sD(e).reduce((e,t)=>e+t,0),o=sM(e);e.filterManager?.hasFloatingFilters()&&(t+=sT(e)),t+=i;let r=(t+=o)+e.environment.getHeaderRowBorderWidth();if(this.headerHeightWithBorder!==r){this.headerHeightWithBorder=r;let e=`${r}px`;this.comp.setHeightAndMinHeight(e)}this.headerHeight!==t&&(this.headerHeight=t,this.eventSvc.dispatchEvent({type:"headerHeightChanged"}))}onPivotModeChanged(e){let t=e.colModel.isPivotMode();this.comp.toggleCss("ag-pivot-on",t),this.comp.toggleCss("ag-pivot-off",!t)}onDisplayedColumnsChanged(e){let t=e.visibleCols.allCols.some(e=>e.isSpanHeaderHeight());this.comp.toggleCss("ag-header-allow-overflow",t)}onTabKeyDown(e){let t=this.gos.get("enableRtl"),i=e.shiftKey,{beans:o}=this,{headerNavigation:r,focusSvc:s}=o;(r.navigateHorizontally(i!==t?"LEFT":"RIGHT",!0,e)||!i&&s.focusOverlay(!1)||sE(o,i,!0))&&e.preventDefault()}handleKeyDown(e){let t=null,{headerNavigation:i}=this.beans;switch(e.key){case oK.LEFT:t="LEFT";case oK.RIGHT:F(t)||(t="RIGHT"),i.navigateHorizontally(t,!1,e)&&e.preventDefault();break;case oK.UP:t="UP";case oK.DOWN:F(t)||(t="DOWN"),i.navigateVertically(t,e)&&e.preventDefault();break;default:return}}onFocusOut(e){let{relatedTarget:t}=e,{eGui:i,beans:o}=this;!(!t&&i.contains(O(o)))&&(i.contains(t)||(o.focusSvc.focusedHeader=null))}onHeaderContextMenu(e,t,i){let{menuSvc:o,ctrlsSvc:r}=this.beans;if(!e&&!i||!o?.isHeaderContextMenuEnabled())return;let{target:s}=e??t;(s===this.eGui||s===r.getHeaderRowContainerCtrl()?.eViewport)&&o.showHeaderContextMenu(void 0,e,i)}},sL=class extends o5{constructor(e,t){super(e),this.ctrl=t}getCtrl(){return this.ctrl}},sB={tag:"div",cls:"ag-header-cell",role:"columnheader",children:[{tag:"div",ref:"eResize",cls:"ag-header-cell-resize",role:"presentation"},{tag:"div",ref:"eHeaderCompWrapper",cls:"ag-header-cell-comp-wrapper",role:"presentation"}]},sH=class extends sL{constructor(e){super(sB,e),this.eResize=oZ,this.eHeaderCompWrapper=oZ,this.headerCompVersion=0}postConstruct(){let e=this.getGui(),t=()=>{let e=this.ctrl.getSelectAllGui();e&&(this.eResize.insertAdjacentElement("afterend",e),this.addDestroyFunc(()=>e.remove()))};this.ctrl.setComp({setWidth:t=>e.style.width=t,toggleCss:(e,t)=>this.toggleCss(e,t),setUserStyles:t=>eU(e,t),setAriaSort:t=>t?ec(e,t):eg(e),setUserCompDetails:e=>
1this.setUserCompDetails(e),getUserCompInstance:()=>this.headerComp,refreshSelectAllGui:t,removeSelectAllGui:()=>this.ctrl.getSelectAllGui()?.remove()},this.getGui(),this.eResize,this.eHeaderCompWrapper,void 0),t()}destroy(){this.destroyHeaderComp(),super.destroy()}destroyHeaderComp(){this.headerComp&&(this.headerCompGui?.remove(),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)}setUserCompDetails(e){this.headerCompVersion++;let t=this.headerCompVersion;e.newAgStackInstance().then(e=>this.afterCompCreated(t,e))}afterCompCreated(e,t){if(e!=this.headerCompVersion||!this.isAlive())return void this.destroyBean(t);this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())}},sV={tag:"div",cls:"ag-header-group-cell",role:"columnheader",children:[{tag:"div",ref:"eHeaderCompWrapper",cls:"ag-header-cell-comp-wrapper",role:"presentation"},{tag:"div",ref:"eResize",cls:"ag-header-cell-resize",role:"presentation"}]},sG=class extends sL{constructor(e){super(sV,e),this.eResize=oZ,this.eHeaderCompWrapper=oZ}postConstruct(){let e=this.getGui();this.ctrl.setComp({toggleCss:(e,t)=>this.toggleCss(e,t),setUserStyles:t=>eU(e,t),setHeaderWrapperHidden:e=>{e?this.eHeaderCompWrapper.style.setProperty("display","none"):this.eHeaderCompWrapper.style.removeProperty("display")},setHeaderWrapperMaxHeight:e=>{null!=e?this.eHeaderCompWrapper.style.setProperty("max-height",`${e}px`):this.eHeaderCompWrapper.style.removeProperty("max-height"),this.eHeaderCompWrapper.classList.toggle("ag-header-cell-comp-wrapper-limited-height",null!=e)},setResizableDisplayed:e=>eE(this.eResize,e),setWidth:t=>e.style.width=t,setAriaExpanded:t=>{let i;return i="aria-expanded",void 0!=t?e.setAttribute(i,t):e.removeAttribute(i)},setUserCompDetails:e=>this.setUserCompDetails(e),getUserCompInstance:()=>this.headerGroupComp},e,this.eResize,this.eHeaderCompWrapper,void 0)}setUserCompDetails(e){e.newAgStackInstance().then(e=>this.afterHeaderCompCreated(e))}afterHeaderCompCreated(e){let t=()=>this.destroyBean(e);if(!this.isAlive())return void t();let i=this.getGui(),o=e.getGui();this.eHeaderCompWrapper.appendChild(o),this.addDestroyFunc(t),this.headerGroupComp=e,this.ctrl.setDragSource(i)}},sO={tag:"div",cls:"ag-header-cell ag-floating-filter",role:"gridcell",children:[{tag:"div",ref:"eFloatingFilterBody",role:"presentation"},{tag:"div",ref:"eButtonWrapper",cls:"ag-floating-filter-button ag-hidden",role:"presentation",children:[{tag:"button",ref:"eButtonShowMainFilter",cls:"ag-button ag-floating-filter-button-button",attrs:{type:"button",tabindex:"-1"}}]}]},sN=class extends sL{constructor(e){super(sO,e),this.eFloatingFilterBody=oZ,this.eButtonWrapper=oZ,this.eButtonShowMainFilter=oZ}postConstruct(){let e=this.getGui();this.ctrl.setComp({toggleCss:(e,t)=>this.toggleCss(e,t),setUserStyles:t=>eU(e,t),addOrRemoveBodyCssClass:(e,t)=>this.eFloatingFilterBody.classList.toggle(e,t),setButtonWrapperDisplayed:e=>eE(this.eButtonWrapper,e),setCompDetails:e=>this.setCompDetails(e),getFloatingFilterComp:()=>this.compPromise,setWidth:t=>e.style.width=t,setMenuIcon:e=>this.eButtonShowMainFilter.appendChild(e)},e,this.eButtonShowMainFilter,this.eFloatingFilterBody,void 0)}setCompDetails(e){if(!e){this.destroyFloatingFilterComp(),this.compPromise=null;return}this.compPromise=e.newAgStackInstance(),this.compPromise.then(e=>this.afterCompCreated(e))}destroy(){this.destroyFloatingFilterComp(),super.destroy()}destroyFloatingFilterComp(){this.floatingFilterComp?.getGui().remove(),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp)}afterCompCreated(e){if(e){if(!this.isAlive())return void this.destroyBean(e);this.destroyFloatingFilterComp(),this.floatingFilterComp=e,this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached?.()}}},sz=class extends o5{constructor(e){super({tag:"div",cls:e.headerRowClass,role:"row"}),this.ctrl=e,this.headerComps={}}postConstruct(){this.getGui().setAttribute("tabindex",String(this.gos.get("tabIndex"))),ea(this.getGui(),this.ctrl.getAriaRowIndex()),this.ctrl.
1setComp({setHeight:e=>this.getGui().style.height=e,setTop:e=>this.getGui().style.top=e,setHeaderCtrls:(e,t)=>this.setHeaderCtrls(e,t),setWidth:e=>this.getGui().style.width=e,setRowIndex:e=>ea(this.getGui(),e)},void 0)}destroy(){this.setHeaderCtrls([],!1),super.destroy()}setHeaderCtrls(e,t){if(!this.isAlive())return;let i=this.headerComps;for(let t of(this.headerComps={},e)){let e=t.instanceId,o=i[e];delete i[e],null==o&&(o=this.createHeaderComp(t),this.getGui().appendChild(o.getGui())),this.headerComps[e]=o}if(Object.values(i).forEach(e=>{e.getGui().remove(),this.destroyBean(e)}),t){let e=Object.values(this.headerComps);e.sort((e,t)=>e.getCtrl().column.getLeft()-t.getCtrl().column.getLeft());let t=e.map(e=>e.getGui());eW(this.getGui(),t)}}createHeaderComp(e){let t;switch(this.ctrl.type){case"group":t=new sG(e);break;case"filter":t=new sN(e);break;default:t=new sH(e)}return this.createBean(t),t.setParentComponent(this),t}},sW=class extends tc{constructor(e,t=!1){super(),this.callback=e,this.addSpacer=t}postConstruct(){let e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedEventListeners({columnContainerWidthChanged:e,displayedColumnsChanged:e,leftPinnedWidthChanged:e}),this.addSpacer&&this.addManagedEventListeners({rightPinnedWidthChanged:e,scrollVisibilityChanged:e,scrollbarWidthChanged:e}),this.setWidth()}setWidth(){let e,t=t9(this.gos,"print"),{visibleCols:i,scrollVisibleSvc:o}=this.beans,r=i.bodyWidth,s=i.getColsLeftWidth(),n=i.getDisplayedColumnsRightWidth();t?e=r+s+n:(e=r,this.addSpacer&&0===(this.gos.get("enableRtl")?s:n)&&o.verticalScrollShowing&&(e+=o.getScrollbarWidth())),this.callback(e)}},sU=class extends tc{};function s_(e,t,i){return i&&e.addDestroyFunc(()=>t.destroyBean(i)),i??e}var s$=class extends tc{constructor(e,t,i,o){super(),this.columnOrGroup=e,this.eCell=t,this.colsSpanning=o,this.columnOrGroup=e,this.ariaEl=t.querySelector("[role=columnheader]")||t,this.beans=i}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){let{beans:e,colsSpanning:t}=this;return e.gos.get("enableRtl")&&t?v(t):this.columnOrGroup}postConstruct(){let e=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:e}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}setLeftFirstTime(){let{gos:e,colAnimation:t}=this.beans,i=e.get("suppressColumnMoveAnimation"),o=F(this.columnOrGroup.getOldLeft());t?.isActive()&&o&&!i?this.animateInLeft():this.onLeftChanged()}animateInLeft(){let e=this.getColumnOrGroup(),t=this.modifyLeftForPrintLayout(e,e.getOldLeft()),i=this.modifyLeftForPrintLayout(e,e.getLeft());this.setLeft(t),this.actualLeft=i,this.beans.colAnimation.executeNextVMTurn(()=>{this.actualLeft===i&&this.setLeft(i)})}onLeftChanged(){let e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,t){let{gos:i,visibleCols:o}=this.beans;if(!t9(i,"print")||"left"===e.getPinned())return t;let r=o.getColsLeftWidth();return"right"===e.getPinned()?r+o.bodyWidth+t:r+t}setLeft(e){if(F(e)&&(this.eCell.style.left=`${e}px`),o$(this.columnOrGroup)){let e=this.columnOrGroup.getLeafColumns();e.length&&e.length>1&&eu(this.ariaEl,e.length)}}};function sq(e,t,i,o){return P(e)?[]:sY(e.headerClass,e,t,i,o)}function sK(e,t,i,o){return P(e)?[]:sY(e.toolPanelClass,e,t,i,o)}function sj(e,t,i){e.toggleCss("ag-column-first",i.isColAtEdge(t,"first")),e.toggleCss("ag-column-last",i.isColAtEdge(t,"last"))}function sY(e,t,i,o,r){let s;if(P(e))return[];if("function"==typeof e)s=e(iK(i,{colDef:t,column:o,columnGroup:r}));else s=e;return"string"==typeof s?[s]:Array.isArray(s)?[...s]:[]}var sQ=0,sZ="headerCtrl",sJ=class extends tc{constructor(e,t){super(),this.column=e,this.rowCtrl=t,this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.reAttemptToFocus=!1,this.instanceId=e.getUniqueId()+"-"+sQ++}postConstruct(){let e=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],e),this.addManagedEventListeners({overlayExclusiveChanged:e})}setComp(e,t,i,o,r){t.setAttribute("col-id",this.column.colIdSanitised),this.wireComp(e,t,i,o,r),this.reAttemptToFocus&&(this.reAttemptToFocus=!1,this.focus(this.lastFocusEvent??void 0))}shouldStopEventPropagation(e){let{headerRowIndex:t,column:i}
1=this.beans.focusSvc.focusedHeader,o=i.getDefinition(),r=o?.suppressHeaderKeyboardEvent;return!!F(r)&&!!r(iK(this.gos,{colDef:o,column:i,headerRowIndex:t,event:e}))}getWrapperHasFocus(){return O(this.beans)===this.eGui}setGui(e,t){this.eGui=e,this.addDomData(t),t.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),t.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}refreshHeaderStyles(){let e,t=this.column.getDefinition();if(!t)return;let{headerStyle:i}=t;(e="function"==typeof i?i(this.getHeaderClassParams()):i)&&this.comp.setUserStyles(e)}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(e){let t,{wrapperElement:i,checkMeasuringCallback:o,compBean:r}=e,{beans:s}=this,n=e=>{if(!this.isAlive()||!r.isAlive())return;let{paddingTop:t,paddingBottom:o,borderBottomWidth:l,borderTopWidth:a}=eD(this.eGui),d=i.offsetHeight+(t+o+l+a);if(e<5){let t=N(s),o=!t?.contains(i),r=0==d;if(o||r)return void tC(()=>n(e+1),"raf",s)}this.setColHeaderHeight(this.column,d)},l=!1,a=()=>{let e=this.column.isAutoHeaderHeight();e&&!l&&d(),!e&&l&&h()},d=()=>{l=!0,this.comp.toggleCss("ag-header-cell-auto-height",!0),n(0),t=eX(this.beans,i,()=>n(0))},h=()=>{l=!1,t&&t(),this.comp.toggleCss("ag-header-cell-auto-height",!1),t=void 0};a(),r.addDestroyFunc(()=>h()),r.addManagedListeners(this.column,{widthChanged:()=>l&&n(0)}),r.addManagedEventListeners({sortChanged:()=>{l&&window.setTimeout(()=>n(0))}}),o&&o(a)}onDisplayedColumnsChanged(){let{comp:e,column:t,beans:i,eGui:o}=this;e&&t&&o&&(sj(e,t,i.visibleCols),eh(o,i.visibleCols.getAriaColIndex(t)))}addResizeAndMoveKeyboardListeners(e){e.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){let e=sS(this.beans);this.eGui&&eZ(this.eGui,"tabindex",e?null:"-1")}onGuiKeyDown(e){let t=O(this.beans),i=e.key===oK.LEFT||e.key===oK.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),t!==this.eGui||!e.shiftKey&&!e.altKey&&!e.ctrlKey&&!e.metaKey)return;if((this.isResizing||i)&&(e.preventDefault(),e.stopImmediatePropagation()),(e.ctrlKey||e.metaKey)&&oj(e)===oK.C)return this.beans.clipboardSvc?.copyToClipboard();if(!i)return;let o=e.key===oK.LEFT!==this.gos.get("enableRtl");if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;let t=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(t,e.shiftKey),this.resizeFeature?.toggleColumnResizing(!0)}else this.moveHeader(o?"left":"right")}moveHeader(e){this.beans.colMoves?.moveHeader(e,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(e){let t=this.getResizeDiff(e),{pinnedCols:i}=this.beans;return i?i.getHeaderResizeDiff(t,this.column):t}getResizeDiff(e){let{gos:t,column:i}=this,o=e.key===oK.LEFT!==t.get("enableRtl"),r=i.getPinned(),s=t.get("enableRtl");return r&&s!==("right"===r)&&(o=!o),(o?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=window.setTimeout(()=>{this.resizeFeature?.toggleColumnResizing(!1)},150))}handleKeyDown(e){let t=this.getWrapperHasFocus();switch(e.key){case oK.PAGE_DOWN:case oK.PAGE_UP:case oK.PAGE_HOME:case oK.PAGE_END:t&&e.preventDefault()}}addDomData(e){let{eGui:t,gos:i}=this;ia(i,t,sZ,this),e.addDestroyFunc(()=>ia(i,t,sZ,null))}focus(e){if(!this.isAlive())return!1;let{eGui:t}=this;return t?(this.lastFocusEvent=e||null,t.focus()):this.reAttemptToFocus=!0,!0}focusThis(){this.beans.focusSvc.focusedHeader={headerRowIndex:this.rowCtrl.rowIndex,column:this.column}}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop?.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(e,t,i){let o=e??t,{menuSvc:r,gos:s}=this.beans;s.get("preventDefaultOnContextMenu")&&o.preventDefault(),r?.isHeaderContextMenuEnabled(i)&&r.showHeaderContextMenu(i,e,t),this.dispatchColumnMouseEvent("columnHeaderContextMenu",i)}dispatchColumnMouseEvent(e,t){this.eventSvc.dispatchEvent({type:e,column:t})}setColHeaderHeight(e,t){if(!e.setAutoHeaderHeight(t))return;let{eventSvc:i}=this;
1e.isColumn?i.dispatchEvent({type:"columnHeaderHeightChanged",column:e,columns:[e],source:"autosizeColumnHeaderHeight"}):i.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:e,source:"autosizeColumnGroupHeaderHeight"})}clearComponent(){this.removeDragSource(),this.resizeFeature=null,this.comp=null,this.eGui=null}destroy(){super.destroy(),this.column=null,this.lastFocusEvent=null,this.rowCtrl=null}},sX=class extends sJ{constructor(){super(...arguments),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map}wireComp(e,t,i,o,r){this.comp=e;let{rowCtrl:s,column:n,beans:l}=this,{colResize:a,context:d,colHover:h,rangeSvc:u}=l,c=s_(this,d,r);this.setGui(t,c),this.updateState(),this.setupWidth(c),this.setupMovingCss(c),this.setupMenuClass(c),this.setupSortableClass(c),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:o,checkMeasuringCallback:e=>this.setRefreshFunction("measuring",e),compBean:c}),this.addColumnHoverListener(c),this.setupFilterClass(c),this.setupStylesFromColDef(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(c),this.setupSelectAll(c),this.setupUserComp(),this.refreshAria(),a?this.resizeFeature=c.createManagedBean(a.createResizeFeature(s.pinned,n,i,e,this)):eE(i,!1),h?.createHoverFeature(c,[n],t),u?.createRangeHighlightFeature(c,n,e),c.createManagedBean(new s$(n,t,l)),c.createManagedBean(new ss(t,{shouldStopEventPropagation:e=>this.shouldStopEventPropagation(e),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(c),c.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader","enableAdvancedFilter"],()=>this.refresh()),c.addManagedListeners(n,{colDefChanged:()=>this.refresh(),formulaRefChanged:()=>this.refresh(),headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});let g=()=>this.checkDisplayName();c.addManagedEventListeners({columnValueChanged:g,columnRowGroupChanged:g,columnPivotChanged:g,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),c.addDestroyFunc(()=>{this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()})}resizeHeader(e,t){this.beans.colResize?.resizeHeader(this.column,e,t)}getHeaderClassParams(){let{column:e,beans:t}=this,i=e.colDef;return iK(t.gos,{colDef:i,column:e,floatingFilter:!1})}setupUserComp(){let e=this.lookupUserCompDetails();e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)}lookupUserCompDetails(){var e;let t=this.createParams(),i=this.column.getColDef();return e=this.beans.userCompFactory,e.getCompDetails(i,rs,"agColumnHeader",t)}createParams(){let{menuSvc:e,sortSvc:t,colFilter:i,gos:o}=this.beans;return iK(o,{column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!e?.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!!i&&(!this.openFilterEnabled||iW(this.gos)),showColumnMenu:(t,i)=>{e?.showColumnMenu({column:this.column,buttonElement:t,positionBy:"button",onClosedCallback:i})},showColumnMenuAfterMouseClick:(t,i)=>{e?.showColumnMenu({column:this.column,mouseEvent:t,positionBy:"mouse",onClosedCallback:i})},showFilter:t=>{e?.showFilterMenu({column:this.column,buttonElement:t,containerType:"columnFilter",positionBy:"button"})},progressSort:e=>{t?.progressSort(this.column,!!e,"uiColumnSorted")},setSort:(e,i)=>{t?.setSortForColumn(this.column,i3(e),!!i,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(e,t)=>{o.assertModuleRegistered("Tooltip",3),this.setupTooltip(e,t)}})}setupSelectAll(e){let{selectionSvc:t}=this.beans;t&&(this.selectAllFeature=e.createOptionalManagedBean(t.createSelectAllFeature(this.column)),this.selectAllFeature?.setComp(this),e.addManagedPropertyListener("rowSelection",()=>
1{let i=t.createSelectAllFeature(this.column);i&&!this.selectAllFeature?(this.selectAllFeature=e.createManagedBean(i),this.selectAllFeature?.setComp(this),this.comp.refreshSelectAllGui()):this.selectAllFeature&&!i&&(this.comp.removeSelectAllGui(),this.selectAllFeature=this.destroyBean(this.selectAllFeature))}))}getSelectAllGui(){return this.selectAllFeature?.getCheckboxGui()}handleKeyDown(e){super.handleKeyDown(e),e.key===oK.SPACE?this.selectAllFeature?.onSpaceKeyDown(e):e.key===oK.ENTER?this.onEnterKeyDown(e):e.key===oK.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)}onEnterKeyDown(e){let{column:t,gos:i,sortable:o,beans:r}=this,s=!1;(e.ctrlKey||e.metaKey)&&(s=this.showMenuOnKeyPress(e,!0)),!s&&(!e.altKey&&iA(i)?r.rangeSvc?.handleColumnSelection(t,e):o&&r.sortSvc?.progressSort(t,e.shiftKey,"uiColumnSorted"))}showMenuOnKeyPress(e,t){let i=this.comp.getUserCompInstance();return!!s0(i)&&!!i.onMenuKeyboardShortcut(t)&&(e.preventDefault(),!0)}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),r1&&this.setActiveHeader(!0)}onFocusOut(e){this.eGui.contains(e.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderTooltip(this.tooltipFeature,this,e,t)}setupStylesFromColDef(){this.setRefreshFunction("headerStyles",this.refreshHeaderStyles.bind(this)),this.refreshHeaderStyles()}setupClassesFromColDef(){let e=()=>{let e=sq(this.column.getColDef(),this.gos,this.column,null),t=this.userHeaderClasses;for(let i of(this.userHeaderClasses=new Set(e),e))t.has(i)?t.delete(i):this.comp.toggleCss(i,!0);for(let e of t)this.comp.toggleCss(e,!1)};this.setRefreshFunction("headerClasses",e),e()}setDragSource(e){this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null)}updateState(){let{menuSvc:e}=this.beans;this.menuEnabled=!!e?.isColumnMenuInHeaderEnabled(this.column),this.openFilterEnabled=!!e?.isFilterMenuInHeaderEnabled(this.column),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}setRefreshFunction(e,t){this.refreshFunctions[e]=t}refresh(){for(let e of(this.updateState(),this.refreshHeaderComp(),this.refreshAria(),Object.values(this.refreshFunctions)))e()}refreshHeaderComp(){let e=this.lookupUserCompDetails();e&&(null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e))}attemptHeaderCompRefresh(e){let t=this.comp.getUserCompInstance();return!!t&&!!t.refresh&&t.refresh(e)}calculateDisplayName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(){this.displayName!==this.calculateDisplayName()&&this.refresh()}workOutDraggable(){let e=this.column.getColDef();return!!(!this.gos.get("suppressMovableColumns")&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot}setupWidth(e){let t=()=>{let e=this.column.getActualWidth();this.comp.setWidth(`${e}px`)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupMovingCss(e){let t=()=>{this.comp.toggleCss("ag-header-cell-moving",this.column.isMoving())};e.addManagedListeners(this.column,{movingChanged:t}),t()}setupMenuClass(e){let t=()=>{this.comp?.toggleCss("ag-column-menu-visible",this.column.isMenuVisible())};e.addManagedListeners(this.column,{menuVisibleChanged:t}),t()}setupSortableClass(e){let t=()=>{this.comp.toggleCss("ag-header-cell-sortable",!!this.sortable)};t(),this.setRefreshFunction("updateSortable",t),e.addManagedEventListeners({sortChanged:this.refreshAriaSort.bind(this)})}setupFilterClass(e){let t=()=>{let e=this.column.isFilterActive();this.comp.toggleCss("ag-header-cell-filtered",e),this.refreshAria()};e.addManagedListeners(this.column,{filterActiveChanged:t}),t()}setupWrapTextClass(){let e=()=>{let e=!!this.column.getColDef().wrapHeaderText;this.comp.toggleCss("ag-header-cell-wrap-text",e)};e(),this.setRefreshFunction("wrapText",e)}onHeaderHighlightChanged(){let e=this.column.getHighlighted();this.comp.toggleCss("ag-header-highlight-before",0===e),this.comp.toggleCss("ag-header-highlight-after",1===e)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeight
1Changed()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){let{eGui:e,column:t,comp:i,beans:o}=this,r=sD(this.beans),s=0===r.reduce((e,t)=>e+t,0);if(i.toggleCss("ag-header-parent-hidden",s),!t.isSpanHeaderHeight()){e.style.removeProperty("top"),e.style.removeProperty("height"),i.toggleCss("ag-header-span-height",!1),i.toggleCss("ag-header-span-total",!1);return}let{numberOfParents:n,isSpanningTotal:l}=this.column.getColumnGroupPaddingInfo();i.toggleCss("ag-header-span-height",n>0);let a=sM(o);if(0===n){i.toggleCss("ag-header-span-total",!1),e.style.setProperty("top","0px"),e.style.setProperty("height",`${a}px`);return}i.toggleCss("ag-header-span-total",l);let d=(this.column.getFirstRealParent()?.getLevel()??-1)+1,h=r.length-d,u=0;for(let e=0;e<h;e++)u+=r[r.length-1-e];e.style.setProperty("top",`${-u}px`),e.style.setProperty("height",`${a+u}px`)}refreshAriaSort(){let e=null,{beans:t,column:i,comp:o,sortable:r}=this;if(r){let r=this.getLocaleTextFunc(),s=t.sortSvc?.getDisplaySortForColumn(i)??null;o.setAriaSort(function(e){let t=e?.direction;return"asc"===t?"ascending":"desc"===t?"descending":"mixed"===t?"other":"none"}(s)),e=r("ariaSortableColumn","Press ENTER to sort")}else o.setAriaSort();this.setAriaDescriptionProperty("sort",e)}refreshAriaMenu(){let e=null;this.menuEnabled&&(e=this.getLocaleTextFunc()("ariaMenuColumn","Press ALT DOWN to open column menu")),this.setAriaDescriptionProperty("menu",e)}refreshAriaFilterButton(){let e=null,{openFilterEnabled:t,gos:i}=this;t&&!iW(i)&&(e=this.getLocaleTextFunc()("ariaFilterColumn","Press CTRL ENTER to open filter")),this.setAriaDescriptionProperty("filterButton",e)}refreshAriaFiltered(){let e=null;this.column.isFilterActive()&&(e=this.getLocaleTextFunc()("ariaColumnFiltered","Column Filtered")),this.setAriaDescriptionProperty("filter",e)}refreshAriaCellSelection(){let e=null,{gos:t,column:i,beans:o}=this;if(iA(t)){let t=this.getLocaleTextFunc(),r=o.rangeSvc?.isColumnInAnyRange(i);e=t("ariaColumnCellSelection",`Press CTRL+SPACE to ${r?"de":""}select all visible cells in this column`)}this.setAriaDescriptionProperty("cellSelection",e)}setAriaDescriptionProperty(e,t){let i=this.ariaDescriptionProperties;null!=t?i.set(e,t):i.delete(e)}announceAriaDescription(){let{beans:e,eGui:t,ariaDescriptionProperties:i}=this;if(!t.contains(O(e)))return;let o=Array.from(i.keys()).sort((e,t)=>"filter"===e?-1:t.charCodeAt(0)-e.charCodeAt(0)).map(e=>i.get(e)).join(". ");e.ariaAnnounce?.announceValue(o,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered(),this.refreshAriaCellSelection()}addColumnHoverListener(e){this.beans.colHover?.addHeaderColumnHoverListener(e,this.comp,this.column)}addActiveHeaderMouseListeners(e){let t=e=>this.handleMouseOverChange("mouseenter"===e.type),i=()=>{this.setActiveHeader(!0),this.dispatchColumnMouseEvent("columnHeaderClicked",this.column)},o=e=>this.handleContextMenuMouseEvent(e,void 0,this.column);e.addManagedListeners(this.eGui,{mouseenter:t,mouseleave:t,click:i,contextmenu:o})}handleMouseOverChange(e){this.setActiveHeader(e),this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column})}setActiveHeader(e){this.comp.toggleCss("ag-header-active",e)}getAnchorElementForMenu(e){let t=this.comp.getUserCompInstance();return s0(t)?t.getAnchorElementForMenu(e):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function s0(e){return"function"==typeof e?.getAnchorElementForMenu&&"function"==typeof e.onMenuKeyboardShortcut}var s1=0,s3=class extends tc{constructor(e,t,i){super(),this.rowIndex=e,this.pinned=t,this.type=i,this.instanceId=s1++,this.comp=null,this.allCtrls=[];let o="ag-header-row-column";"group"===i?o="ag-header-row-group":"filter"===i&&(o="ag-header-row-filter"),this.headerRowClass=`ag-header-row ${o}`}setRowIndex(e){this.rowIndex=e,this.comp?.setRowIndex(this.getAriaRowIndex()),this.onRowHeightChanged()}postConstruct(){this.isPrintLayout=t9(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return!!this.comp&&this.allCtrls.every(e=>null!=e.eGui)}setComp(e,t,i=!0){this.comp=e,t=s_(this,this.beans.context,t),i&&(this.setRowIndex(this.rowIndex),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(t)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(e){let t=this.onRowHeightChanged.bind(this),i=this.onDisplayedColumnsChanged.bind(this);e.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:i,virtualColumnsChanged:e=>this.onVirtualColumnsChanged(e.afterScroll),columnGroupHeaderHeight
1Changed:t,columnHeaderHeightChanged:t,stylesChanged:t,advancedFilterEnabledChanged:t}),e.addManagedPropertyListener("domLayout",i),e.addManagedPropertyListener("ensureDomOrder",e=>this.isEnsureDomOrder=e.currentValue),e.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],t)}onDisplayedColumnsChanged(){this.isPrintLayout=t9(this.gos,"print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}setWidth(){if(!this.comp)return;let e=this.getWidthForRow();this.comp.setWidth(`${e}px`)}getWidthForRow(){let{visibleCols:e}=this.beans;return this.isPrintLayout?null!=this.pinned?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null):e.getContainerWidth(this.pinned)}onRowHeightChanged(){if(!this.comp)return;let{topOffset:e,rowHeight:t}=this.getTopAndHeight();this.comp.setTop(e+"px"),this.comp.setHeight(t+"px")}getTopAndHeight(){let e=0,t=sD(this.beans);for(let i=0;i<t.length;i++){if(i===this.rowIndex&&"group"===this.type)return{topOffset:e,rowHeight:t[i]};e+=t[i]}let i=sM(this.beans);return"column"===this.type?{topOffset:e,rowHeight:i}:{topOffset:e+=i,rowHeight:sT(this.beans)}}onVirtualColumnsChanged(e=!1){if(!this.comp)return;let t=this.getUpdatedHeaderCtrls(),i=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(t,i,e)}getUpdatedHeaderCtrls(){let e=this.ctrlsById;for(let t of(this.ctrlsById=new Map,this.getColumnsInViewport()))this.recycleAndCreateHeaderCtrls(t,this.ctrlsById,e);let t=e=>{let{focusSvc:t,visibleCols:i}=this.beans;return!!t.isHeaderWrapperFocused(e)&&i.isVisible(e.column)};if(e)for(let[i,o]of e)t(o)?this.ctrlsById.set(i,o):this.destroyBean(o);return this.allCtrls=Array.from(this.ctrlsById.values()),this.allCtrls}getHeaderCellCtrls(){return this.allCtrls}recycleAndCreateHeaderCtrls(e,t,i){let o;if(e.isEmptyGroup())return;let r=e.getUniqueId();if(i&&(o=i.get(r),i.delete(r)),o&&o.column!=e&&(this.destroyBean(o),o=void 0),null==o)switch(this.type){case"filter":o=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,e,this));break;case"group":o=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,e,this));break;default:o=this.createBean(new sX(e,this))}t.set(r,o)}getColumnsInViewport(){if(!this.isPrintLayout)return this.getComponentsToRender();if(this.pinned)return[];let e=[];for(let t of["left",null,"right"])e.push(...this.getComponentsToRender(t));return e}getComponentsToRender(e=this.pinned){return"group"===this.type?this.beans.colViewport.getHeadersToRender(e,this.rowIndex):this.beans.colViewport.getColumnHeadersToRender(e)}focusHeader(e,t){let i=this.allCtrls.find(t=>t.column==e);return!!i&&i.focus(t)}destroy(){this.allCtrls=this.destroyBeans(this.allCtrls),this.ctrlsById=void 0,this.comp=null,super.destroy()}},s2=class extends tc{constructor(e){super(),this.pinned=e,this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[]}setComp(e,t){this.comp=e,this.eViewport=t;let{pinnedCols:i,ctrlsSvc:o,colModel:r,colMoves:s}=this.beans;this.setupCenterWidth(),i?.setupHeaderPinnedWidth(this),this.setupDragAndDrop(s,this.eViewport);let n=this.refresh.bind(this,!0);this.addManagedEventListeners({displayedColumnsChanged:n,advancedFilterEnabledChanged:n});let l=`${"string"==typeof this.pinned?this.pinned:"center"}Header`;o.register(l,this),r.ready&&this.refresh()}getAllCtrls(){let e=[...this.groupsRowCtrls];return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e}refresh(e=!1){let{focusSvc:t,filterManager:i,visibleCols:o}=this.beans,r=0,s=t.getFocusHeaderToUseAfterRefresh(),n=()=>
1{let t=o.headerGroupRowCount;r=t,e||(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls));let i=this.groupsRowCtrls.length;if(i!==t){if(i>t){for(let e=t;e<i;e++)this.destroyBean(this.groupsRowCtrls[e]);this.groupsRowCtrls.length=t;return}for(let e=i;e<t;e++){let t=this.createBean(new s3(e,this.pinned,"group"));this.groupsRowCtrls.push(t)}}},l=()=>{let t=r++;if(this.hidden){this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl);return}null!=this.columnsRowCtrl&&e?this.columnsRowCtrl.rowIndex!==t&&this.columnsRowCtrl.setRowIndex(t):(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.columnsRowCtrl=this.createBean(new s3(t,this.pinned,"column")))},a=()=>{this.includeFloatingFilter=!!i?.hasFloatingFilters()&&!this.hidden;let t=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter)return void t();e||t();let o=r++;this.filtersRowCtrl?this.filtersRowCtrl.rowIndex!==o&&this.filtersRowCtrl.setRowIndex(o):this.filtersRowCtrl=this.createBean(new s3(o,this.pinned,"filter"))},d=this.getAllCtrls();n(),l(),a();let h=this.getAllCtrls();this.comp.setCtrls(h),this.restoreFocusOnHeader(t,s),d.length!==h.length&&this.beans.eventSvc.dispatchEvent({type:"headerRowsChanged"})}getHeaderCtrlForColumn(e){let t=t=>t?.getHeaderCellCtrls().find(t=>t.column===e);if(iJ(e))return t(this.columnsRowCtrl);if(0!==this.groupsRowCtrls.length)for(let e=0;e<this.groupsRowCtrls.length;e++){let i=t(this.groupsRowCtrls[e]);if(i)return i}}getHtmlElementForColumnHeader(e){return this.getHeaderCtrlForColumn(e)?.eGui??null}getRowType(e){return this.getAllCtrls()[e]?.type}focusHeader(e,t,i){let o=this.getAllCtrls()[e];return!!o&&o.focusHeader(t,i)}getGroupRowCount(){return this.groupsRowCtrls.length}getGroupRowCtrlAtIndex(e){return this.groupsRowCtrls[e]}getRowCount(){return this.groupsRowCtrls.length+ +!!this.columnsRowCtrl+ +!!this.filtersRowCtrl}setHorizontalScroll(e){this.comp.setViewportScrollLeft(e)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}destroy(){this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl),this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls),super.destroy()}setupDragAndDrop(e,t){let i=e?.createBodyDropTarget(this.pinned,t);i&&this.createManagedBean(i)}restoreFocusOnHeader(e,t){if(!t)return;let{column:i}=t;i.getPinned()==this.pinned&&e.focusHeaderPosition({headerPosition:t,scroll:!1})}setupCenterWidth(){null==this.pinned&&this.createManagedBean(new sW(e=>this.comp.setCenterWidth(`${e}px`),!0))}},s6=class extends o6{isPopup(){return!0}setParentComponent(e){e.addCss("ag-has-popup"),super.setParentComponent(e)}destroy(){let e=this.parentComponent;e?.isAlive()&&e.getGui().classList.remove("ag-has-popup"),super.destroy()}},s4=class extends s6{constructor(){super(...arguments),this.errorMessages=null}init(e){this.params=e,this.initialiseEditor(e),this.eEditor.onValueChange(()=>e.validate())}destroy(){this.eEditor.destroy(),this.errorMessages=null,super.destroy()}},s5=class extends o5{constructor(){super()}},s8={tag:"div",cls:"ag-overlay-exporting-center",children:[{tag:"span",ref:"eExportingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eExportingText",cls:"ag-exporting-text"}]},s7=class extends s5{constructor(){super(...arguments),this.eExportingIcon=oZ,this.eExportingText=oZ}init(e){let{beans:t}=this;this.setTemplate(s8);let i=o1("overlayExporting",t,null);i&&this.eExportingIcon.appendChild(i);let o=e.exporting?.overlayText??this.getLocaleTextFunc()("exportingOoo","Exporting...");this.eExportingText.textContent=o,t.ariaAnnounce.announceValue(o,"overlay")}},s9={tag:"div",cls:"ag-overlay-loading-center",children:[{tag:"span",ref:"eLoadingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eLoadingText",cls:"ag-loading-text"}]},ne=class extends s5{constructor(){super(...arguments),this.eLoadingIcon=oZ,this.eLoadingText=oZ}init(e){let{beans:t,gos:i}=this,o=x(i.get("overlayLoadingTemplate")?.trim());if(this.setTemplate(o??s9),!o){let i=o1("overlayLoading",t,null);i&&this.eLoadingIcon.appendChild(i);let o=e.loading?.overlayText??this.getLocaleTextFunc()("loadingOoo","Loading...");this.eLoadingText.textContent=o,t.ariaAnnounce.announceValue(o,"overlay")}}},nt={tag:"span",cls:"ag-overlay-no-matching-rows-center"}
1,ni=class extends s5{init(e){let{beans:t}=this;this.setTemplate(nt);let i=e.noMatchingRows?.overlayText??this.getLocaleTextFunc()("noMatchingRows","No Matching Rows");this.getGui().textContent=i,t.ariaAnnounce.announceValue(i,"overlay")}},no={tag:"span",cls:"ag-overlay-no-rows-center"},nr=class extends s5{init(e){let{beans:t,gos:i}=this,o=x(i.get("overlayNoRowsTemplate")?.trim());if(this.setTemplate(o??no),!o){let i=e.noRows?.overlayText??this.getLocaleTextFunc()("noRowsToShow","No Rows To Show");this.getGui().textContent=i,t.ariaAnnounce.announceValue(i,"overlay")}}},ns=class extends o6{constructor(e,t,i){super(t,i),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{},this.registerCSS(".ag-label{white-space:nowrap}:where(.ag-ltr) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-label-align-right) .ag-label{order:1}:where(.ag-ltr) :where(.ag-label-align-right) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) :where(.ag-label-align-right) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-label-align-right){.ag-label,.ag-wrapper{flex:none}}.ag-label-align-top{align-items:flex-start;flex-direction:column}:where(.ag-label-align-top){.ag-label,.ag-wrapper{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-label-align-top) .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}")}postConstruct(){this.addCss("ag-labeled"),this.eLabel.classList.add("ag-label");let{labelSeparator:e,label:t,labelWidth:i,labelAlignment:o,disabled:r,labelEllipsis:s}=this.config;null!=r&&this.setDisabled(r),null!=e&&this.setLabelSeparator(e),null!=t&&this.setLabel(t),null!=i&&this.setLabelWidth(i),null!=s&&this.setLabelEllipsis(s),this.setLabelAlignment(o||this.labelAlignment),this.refreshLabel()}refreshLabel(){let{label:e,eLabel:t}=this;eH(t),"string"==typeof e?t.innerText=e+this.labelSeparator:e&&t.appendChild(e),""===e?(eE(t,!1),K(t,"presentation")):(eE(t,!0),K(t,null))}setLabelSeparator(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this}getLabelId(){let e=this.eLabel;return e.id=e.id||`ag-${this.getCompId()}-label`,e.id}getLabel(){return this.label}setLabel(e){return this.label===e||(this.label=e,this.refreshLabel()),this}setLabelAlignment(e){let t=this.getGui().classList;return t.toggle("ag-label-align-left","left"===e),t.toggle("ag-label-align-right","right"===e),t.toggle("ag-label-align-top","top"===e),this}setLabelEllipsis(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this}setLabelWidth(e){return null==this.label||eq(this.eLabel,e),this}setDisabled(e){e=!!e;let t=this.getGui();return eF(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},nn=class extends ns{constructor(e,t,i,o){super(e,t,i),this.className=o}postConstruct(){super.postConstruct();let{width:e,value:t,onValueChange:i,ariaLabel:o}=this.config;null!=e&&this.setWidth(e),null!=t&&this.setValue(t),null!=i&&this.onValueChange(i),null!=o&&this.setAriaLabel(o),this.className&&this.addCss(this.className),this.refreshAriaLabelledBy()}setLabel(e){return super.setLabel(e),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){let e=this.getAriaElement(),t=this.getLabelId(),i=this.getLabel();null==i||""==i||null!==e.getAttribute("aria-label")?Q(e,""):Q(e,t??"")}setAriaLabel(e){return Y(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this}onValueChange(e){return this.addManagedListeners(this,{fieldValueChanged:()=>e(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(e){return eK(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,t){return this.value===e||(this.previousValue=this.value,this.value=e,t||this.dispatchLocalEvent({type:"fieldValueChanged"})),this}},nl=class extends nn{constructor(e,t,i="text",o="input"){super(e,e?.template??{tag:"div",role:"presentation",children:[{tag:"div",ref:"eLabel",cls:"ag-input-field-label"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-input-wrapper",role:"presentation",children:[{tag:o,ref:"eInput",cls:"ag-input-field-input"}]}]},[],t),this.inputType=i,this.displayFieldTag=o,this.eLabel=oZ,this.eWrapper=oZ,this.eInput=oZ}
1postConstruct(){super.postConstruct(),this.setInputType(this.inputType);let{eLabel:e,eWrapper:t,eInput:i,className:o}=this;e.classList.add(`${o}-label`),t.classList.add(`${o}-input-wrapper`),i.classList.add(`${o}-input`),this.addCss("ag-input-field"),i.id=i.id||`ag-${this.getCompId()}-input`;let{inputName:r,inputWidth:s,inputPlaceholder:n,autoComplete:l,tabIndex:a}=this.config;null!=r&&this.setInputName(r),null!=s&&this.setInputWidth(s),null!=n&&this.setInputPlaceholder(n),null!=l&&this.setAutoComplete(l),this.addInputListeners(),this.activateTabIndex([i],a)}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>this.setValue(e.target.value)})}setInputType(e){"input"===this.displayFieldTag&&(this.inputType=e,eZ(this.eInput,"type",e))}getInputElement(){return this.eInput}getWrapperElement(){return this.eWrapper}setInputWidth(e){return eq(this.eWrapper,e),this}setInputName(e){return this.getInputElement().setAttribute("name",e),this}getFocusableElement(){return this.eInput}setMaxLength(e){return this.eInput.maxLength=e,this}setInputPlaceholder(e){return eZ(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return Y(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return eF(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){return!0===e?eZ(this.eInput,"autocomplete",null):eZ(this.eInput,"autocomplete","string"==typeof e?e:"off"),this}},na=class extends nl{constructor(e,t="ag-checkbox",i="checkbox"){super(e,t,i),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();let{readOnly:e,passive:t,name:i}=this.config;"boolean"==typeof e&&this.setReadOnly(e),"boolean"==typeof t&&this.setPassive(t),null!=i&&this.setName(i)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return void 0===this.selected||!this.selected}setPassive(e){this.passive=e}isReadOnly(){return this.readOnly}setReadOnly(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e}setDisabled(e){return this.eWrapper.classList.toggle("ag-disabled",e),super.setDisabled(e)}toggle(){if(this.eInput.disabled)return;let e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}getValue(){return this.isSelected()}setValue(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this}setName(e){return this.getInputElement().name=e,this}isSelected(){return this.selected}setSelected(e,t){if(this.isSelected()===e)return;this.previousValue=this.isSelected(),e=this.selected="boolean"==typeof e?e:void 0;let i=this.eInput;i.checked=e,i.indeterminate=void 0===e,t||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(e,t,i){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:i});let o=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:o.id,name:o.name,selected:e,previousValue:t})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;let t=this.isSelected(),i=this.selected=e.target.checked;this.refreshSelectedClass(i),this.dispatchChange(i,t,e)}refreshSelectedClass(e){let t=this.eWrapper.classList;t.toggle("ag-checked",!0===e),t.toggle("ag-indeterminate",null==e)}},nd={selector:"AG-CHECKBOX",component:na},nh={tag:"div",cls:"ag-cell-wrapper ag-checkbox-cell",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},nu=class extends o5{constructor(){super(nh,[nd]),this.eCheckbox=oZ,this.registerCSS(".ag-checkbox-cell{height:100%}")}init(e){this.refresh(e);let{eCheckbox:t,beans:i}=this,o=t.getInputElement();o.setAttribute("tabindex","-1"),_(o,"live","polite"),this.addManagedListeners(o,{click:e=>{if(si(e),t.isDisabled())return;let i=t.getValue();this.onCheckboxChanged(i)},dblclick:e=>{si(e)}}),this.addManagedElementListeners(e.eGridCell,{keydown:o=>{if(o.key===oK.SPACE&&!t.isDisabled()){e.eGridCell===O(i)&&t.toggle();let r=t.getValue();this.onCheckboxChanged(r),o.preventDefault()}}})}refresh(e){return this.params=e,this.updateCheckbox(e),!0}
1updateCheckbox(e){let t,i=!0,{value:o,column:r,node:s}=e;if(s.group&&r)if("boolean"==typeof o)t=o;else{let e=r.getColId();e.startsWith(os)?t=null==o||""===o?void 0:"true"===o:s.aggData&&void 0!==s.aggData[e]||s.sourceRowIndex>=0?t=o??void 0:i=!1}else t=o??void 0;let{eCheckbox:n}=this;if(!i)return void n.setDisplayed(!1);n.setValue(t);let l=e.disabled??!r?.isCellEditable(s);n.setDisabled(l);let a=this.getLocaleTextFunc(),d=ew(a,t),h=l?d:`${a("ariaToggleCellValue","Press SPACE to toggle cell value")} (${d})`;n.setInputAriaLabel(h)}onCheckboxChanged(e){let{params:t}=this,{column:i,node:o,value:r}=t,{editSvc:s}=this.beans;if(!i)return;let n={rowNode:o,column:i};s?.dispatchCellEvent(n,null,"cellEditingStarted",{value:r});let l=o.setDataValue(i,e,"ui");s?.dispatchCellEvent(n,null,"cellEditingStopped",{oldValue:r,newValue:e,valueChanged:l}),l||this.updateCheckbox(t)}};function nc(e){let t=e.rowModel;return"clientSide"===t.getType()?t:void 0}function ng(e){let t=e.rowModel;return"infinite"===t.getType()?t:void 0}function np(e){let t=e.rowModel;return"serverSide"===t.getType()?t:void 0}function nm(e){let t=e.rowModel;return"viewport"===t.getType()?t:void 0}var nf="row-group-",nC="t-",nv="b-",nw=0,nb=class{constructor(e){this.id=void 0,this.destroyed=!1,this._groupData=void 0,this.master=!1,this.detail=void 0,this.rowIndex=null,this.field=null,this.rowGroupColumn=null,this.key=null,this.sourceRowIndex=-1,this._leafs=void 0,this.childrenMapped=null,this.treeParent=null,this.treeNodeFlags=0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=nw++,this.alreadyRendered=!1,this.formulaRowIndex=null,this.hovered=!1,this.__selected=!1,this.beans=e}get groupData(){let e=this._groupData;return void 0!==e?e:this.footer?this.sibling?.groupData:this.beans.groupStage?.loadGroupData(this)??null}set groupData(e){this._groupData=e}get allLeafChildren(){let e=this._leafs;return void 0===e?this.beans.groupStage?.loadLeafs?.(this)??null:e}set allLeafChildren(e){this._leafs=e}setData(e){this.setDataCommon(e,!1)}updateData(e){this.setDataCommon(e,!0)}setDataCommon(e,t){let{valueCache:i,eventSvc:o}=this.beans,r=this.data;this.data=e,i?.onDataChanged(),this.updateDataOnDetailNode(),this.resetQuickFilterAggregateText();let s=this.createDataChangedEvent(e,r,t);if(this.__localEventService?.dispatchEvent(s),this.sibling){this.sibling.data=e;let i=this.sibling.createDataChangedEvent(e,r,t);this.sibling.__localEventService?.dispatchEvent(i)}o.dispatchEvent({type:"rowNodeDataChanged",node:this});let n=this.pinnedSibling;n&&(n.data=e,n.__localEventService?.dispatchEvent(n.createDataChangedEvent(e,r,t)),o.dispatchEvent({type:"rowNodeDataChanged",node:n}))}updateDataOnDetailNode(){let e=this.detailNode;e&&(e.data=this.data)}createDataChangedEvent(e,t,i){return{type:"dataChanged",node:this,oldData:t,newData:e,update:i}}getRowIndexString(){return null==this.rowIndex?(t0(13),null):"top"===this.rowPinned?nC+this.rowIndex:"bottom"===this.rowPinned?nv+this.rowIndex:this.rowIndex.toString()}setDataAndId(e,t){let{selectionSvc:i}=this.beans,o=i?.createDaemonNode?.(this),r=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),i&&(i.updateRowSelectable(this),i.syncInRowNode(this,o));let s=this.createDataChangedEvent(e,r,!1);this.__localEventService?.dispatchEvent(s)}setId(e){let t=iw(this.beans.gos);if(t)if(this.data){let e=this.parent?.getRoute()??[];this.id=t({data:this.data,parentKeys:e.length>0?e:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(nf)&&t0(14,{groupPrefix:nf})}else this.id=void 0;else this.id=e}setRowTop(e){if(this.oldRowTop=this.rowTop,this.rowTop===e)return;this.rowTop=e,this.dispatchRowEvent("topChanged");let t=null!==e;this.displayed!==t&&(this.displayed=t,this.dispatchRowEvent("displayedChanged"))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(e){this.hovered=e}isHovered(){return this.hovered}setRowHeight(e,t=!1){this.rowHeight=e,this.rowHeightEstimated=t,this.dispatchRowEvent("heightChanged")}setExpanded(e,t,i){this.beans.expansionSvc?.setExpanded(this,e,t,i)}setDataValue(e,t,i){let{colModel:o,valueSvc:r,gos:s,editSvc:n}=this.beans;if(null==e)return!1;let l=o.getCol(e)??o.getColDefCol(e);if(!l)return!1;if(!this.group){let e=l.getColDef();e.pivotValueColumn&&(l=e.pivotValueColumn)}let a=r.getValueForDisplay({column:l,node:this,from:"data"}).value;if(s.get("readOnlyEdit")){let{beans:{eventSvc:e},data:o,rowIndex:r,rowPinned:s}=this;return e.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:r,rowPinned:s,column:l,colDef:l.colDef,data:o,node:this,oldValue:a,newValue:t,value:t,source:i}),!1}if(n&&!n.committing){let e=n.setDataValue({rowNode:this,column:l}
1,t,i);if(null!=e)return e}let d=r.setValue(this,l,t,i);return this.dispatchCellChangedEvent(l,t,a),d&&this.pinnedSibling?.dispatchCellChangedEvent(l,t,a),d}getDataValue(e){let{colModel:t,valueSvc:i,formula:o}=this.beans;if(null==e)return;let r=t.getCol(e)??t.getColDefCol(e);if(!r)return;let s=i.getValue(r,this,"data");return o&&r.isAllowFormula()&&o.isFormula(s)&&(s=o.resolveValue(r,this)),s}updateHasChildren(){let e=this.group&&!this.footer||!!this.childrenAfterGroup?.length,{rowChildrenSvc:t}=this.beans;t&&(e=t.getHasChildrenValue(this)),e!==this.__hasChildren&&(this.__hasChildren=!!e,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(e,t,i){this.__localEventService?.dispatchEvent({type:"cellChanged",node:this,column:e,newValue:t,oldValue:i})}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return this.beans.expansionSvc?.isExpandable(this)??!1}isSelected(){if(this.footer)return this.sibling.isSelected();let e=this.rowPinned&&this.pinnedSibling;return e?e.isSelected():this.__selected}depthFirstSearch(e){let t=this.childrenAfterGroup;if(t)for(let i=0,o=t.length;i<o;++i)t[i].depthFirstSearch(e);e(this)}getAggregatedChildren(e){let t=this.beans;
1return t.aggStage?.getAggregatedChildren(this,t.colModel.getCol(e))??[]}dispatchRowEvent(e){this.__localEventService?.dispatchEvent({type:e,node:this})}setSelected(e,t=!1,i="api"){this.beans.selectionSvc?.setNodesSelected({nodes:[this],newValue:e,clearSelection:t,source:i})}isRowPinned(){return!!this.rowPinned}__addEventListener(e,t){(this.__localEventService??(this.__localEventService=new T)).addEventListener(e,t)}__removeEventListener(e,t){this.removeLocalListener(e,t)}addEventListener(e,t){this.beans.validation?.checkRowEvents(e);let i=this.__localEventService??(this.__localEventService=new T);this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,i);let o=this.frameworkEventListenerService?.wrap(e,t)??t;i.addEventListener(e,o)}removeEventListener(e,t){let i=this.frameworkEventListenerService?.unwrap(e,t)??t;this.removeLocalListener(e,i)}removeLocalListener(e,t){let i=this.__localEventService;i&&(i.removeEventListener(e,t),i.noRegisteredListenersExist()&&(this.__localEventService=null))}isFullWidthCell(){if(tX(61),this.detail)return!0;let e=this.beans.gos.getCallback("isFullWidthRow");return!!e&&e({rowNode:this})}getRoute(){if(-1===this.level)return[];if(null==this.key)return;let e=[],t=this;for(;t?.key!=null;)e.push(t.key),t=t.parent;return e.reverse()}setRowIndex(e){this.rowIndex!==e&&(this.rowIndex=e,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(e){this.uiLevel!==e&&(this.uiLevel=e,this.dispatchRowEvent("uiLevelChanged"))}getFirstChild(){let e=this.childStore;return e?e.getFirstNode():this.childrenAfterSort?.[0]??null}_destroy(e){if(this.destroyed)return!1;this.destroyed=!0;let t=this.pinnedSibling;if(t?.rowPinned&&!this.rowPinned&&this.beans.pinnedRowModel?.pinRow(t,null),e?this.clearRowTopAndRowIndex():(this.setRowTop(null),this.setRowIndex(null)),!this.footer){let t=this.detailNode;t&&t._destroy(e);let i=this.sibling;i&&i._destroy(e)}return!0}};function ny(e,t,i){return iK(t,{type:i,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}var nS=new Set(["__autoHeights","__checkAutoHeightsDebounced","__localEventService","__objectId","_groupData","_leafs","childStore","groupValue","oldRowTop","sticky","treeNodeFlags","treeParent"]),nR=(e,t)=>{let i=new nb(t);for(let t of Object.keys(e))nS.has(t)||(i[t]=e[t]);return i.oldRowTop=null,i},nE=(e,t,i)=>{if(!i)return;let o=i.rowIndex;if(null==o)return;o+=t;let r=e.getRowCount();for(;o>=0&&o<r;){let i=e.getRow(o);if(!i||!i.footer&&!i.detail)return i;o+=t}},nx=class{constructor(e,t){this.beans=e,this.floating=t,this.all=new Set,this.visible=new Set,this.order=[],this.queued=new Set}size(){return this.visible.size}add(e){let{all:t,visible:i,order:o}=this;t.has(e)||(t.add(e),i.add(e),o.push(e),this.sort())}delete(e){this.all.delete(e),this.visible.delete(e),this.queued.delete(e.id),y(this.order,e)}has(e){return this.visible.has(e)}forEach(e){this.order.forEach(e)}getByIndex(e){return this.order[e]}getById(e){for(let t of this.visible)if(t.id==e)return t}clear(){let{all:e,visible:t,order:i,queued:o}=this;e.clear(),o.clear(),t.clear(),i.length=0}sort(){let{sortSvc:e,rowNodeSorter:t,gos:i}=this.beans,o=e?.getSortOptions()??[],r=this.order,s=function(e){let t=e.findIndex(nP);if(t>-1)return e.splice(t,1)?.[0]}(r);if(r.sort((e,i)=>t?.compareRowNodes(o,e,i)||(e.pinnedSibling?.rowIndex??0)-(i.pinnedSibling?.rowIndex??0)),!s)return;let n=ig(i);"bottom"===n||"pinnedBottom"===n?this.order.push(s):this.order.unshift(s)}hide(e){let{all:t,visible:i}=this,o=i.size;return t.forEach(t=>e(t)?i.delete(t):i.add(t)),this.order=Array.from(i),this.sort(),o!=i.size}queue(e){this.queued.add(e)}unqueue(e){this.queued.delete(e)}forEachQueued(e){this.queued.forEach(e)}};function nF(e,t){let{gos:i,rowModel:o,filterManager:r}=e;return t7(i,o)?!o.getRowNode(t.id):r?.isAnyFilterPresent()?!function e(t){if(-1===t.level)return!0;let i=t.parent;return!!i?.childrenAfterSort?.some(e=>e==t)&&e(i)}(t):!!i.get("pivotMode")&&!t.group}function nP(e){var t;return!!e.pinnedSibling&&!!(t=e.pinnedSibling).footer&&-1===t.level}var nD=class extends tc{constructor(){super(...arguments),this.csrm=null}postConstruct(){let{gos:e,beans:t}=this;this.top=new nx(t,"top"),this.bottom=new nx(t,"bottom"),this.csrm=nc(t)??null;let i=e=>nF(t,e.pinnedSibling),o=()=>{let i=e.get("isRowPinned");i&&e.get("enableRowPinning")&&t.rowModel.forEachNode(e=>this.pinRow(e,i(e)),!0),this.refreshRowPositions(),this.dispatchRowPinnedEvents()};this.addManagedEventListeners({stylesChanged:this.onGridStylesChanges.bind(this),modelUpdated:({keepRenderedRows:e})=>{this.tryToEmptyQueues(),this.pinGrandTotalRow();let t=!1;this.forContainers(e=>{t||(t=e.hide(i))});let o=this.refreshRowPositions();(!e||o||t)&&this.dispatchRowPinnedEvents()},columnRowGroupChanged:()=>{this.forContainers(nT),this.refreshRowPositions()},rowNodeDataChanged:({node:t})=>{let i=e.get("isRowPinnable");(i?.(t)??!0)||this.pinRow(t,null)},firstDataRendered:o}),this.addManagedPropertyListener("pivotMode",()=>{this.forContainers(e=>e.hide(i)),this.dispatchRowPinnedEvents()}),this.addManagedPropertyListener("grandTotalRow",({currentValue:e})=>{this._grandTotalPinned="pinnedBottom"===e?"bottom":"pinnedTop"===e?"top":null}),this.addManagedPropertyListener("isRowPinned",o)}destroy(){this.reset(!1),super.destroy()}reset(e=!0){this.forContainers(e=>{let t=[];
1e.forEach(e=>t.push(e)),t.forEach(e=>this.pinRow(e,null)),e.clear()}),e&&this.dispatchRowPinnedEvents()}pinRow(e,t,i){if(null!=t&&e.destroyed)return;if(e.footer){let i=e.level;if(i>-1)return;if(-1===i){this._grandTotalPinned=t,this.csrm?.reMapRows();return}}let o=e.rowPinned??e.pinnedSibling?.rowPinned;if(null!=o&&null!=t&&t!=o){let o=e.rowPinned?e:e.pinnedSibling,r=e.rowPinned?e.pinnedSibling:e;this.pinRow(o,null,i),this.pinRow(r,t,i);return}let r=i&&function(e,t,i){let{rowSpanSvc:o}=e,r=(i&&o?.isCellSpanning(i,t))??!1;if(i&&r)return o?.getCellSpan(i,t)?.spannedNodes}(this.beans,e,i);if(r)return void r.forEach(e=>this.pinRow(e,t));if(null==t){let i=e.rowPinned?e:e.pinnedSibling,o=this.findPinnedRowNode(i);if(!o)return;o.delete(i);let r=i.pinnedSibling;nk(i),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(r)}else{let i=nM(this.beans,e,t),o=this.getContainer(t);o.add(i),nF(this.beans,e)&&o.hide(e=>nF(this.beans,e.pinnedSibling)),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(e)}}isManual(){return!0}isEmpty(e){return 0===this.getContainer(e).size()}isRowsToRender(e){return!this.isEmpty(e)}ensureRowHeightsValid(){let e=!1,t=0,i=i=>{if(i.rowHeightEstimated){let o=io(this.beans,i);i.setRowTop(t),i.setRowHeight(o.height),t+=o.height,e=!0}};return this.bottom.forEach(i),t=0,this.top.forEach(i),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}getPinnedTopTotalHeight(){return nA(this.top)}getPinnedBottomTotalHeight(){return nA(this.bottom)}getPinnedTopRowCount(){return this.top.size()}getPinnedBottomRowCount(){return this.bottom.size()}getPinnedTopRow(e){return this.top.getByIndex(e)}getPinnedBottomRow(e){return this.bottom.getByIndex(e)}getPinnedRowById(e,t){return this.getContainer(t).getById(e)}forEachPinnedRow(e,t){this.getContainer(e).forEach(t)}getPinnedState(){let e=e=>{let t=[];return this.forEachPinnedRow(e,e=>{let i=e.pinnedSibling?.id;null!=i&&t.push(i)}),t};return{top:e("top"),bottom:e("bottom")}}setPinnedState(e){this.forContainers((t,i)=>{for(let o of e[i]){let e=this.beans.rowModel.getRowNode(o);e?this.pinRow(e,i):t.queue(o)}})}getGrandTotalPinned(){return this._grandTotalPinned}setGrandTotalPinned(e){this._grandTotalPinned=e}tryToEmptyQueues(){this.forContainers((e,t)=>{let i=new Set;for(let o of(e.forEachQueued(e=>{let t=this.beans.rowModel.getRowNode(e);t&&i.add(t)}),i))e.unqueue(o.id),this.pinRow(o,t)})}pinGrandTotalRow(){let{csrm:e,beans:t,_grandTotalPinned:i}=this;if(!e)return;let o=e.rootNode?.sibling;if(!o)return;let r=o.pinnedSibling,s=r&&this.findPinnedRowNode(r);if(i){if(s&&s.floating!==i&&(nk(r),s.delete(r)),!s||s.floating!==i){let e=nM(t,o,i);this.getContainer(i).add(e)}}else{if(!s)return;nk(r),s.delete(r)}}onGridStylesChanges(e){e.rowHeightChanged&&this.forContainers(e=>e.forEach(e=>e.setRowHeight(e.rowHeight,!0)))}getContainer(e){return"top"===e?this.top:this.bottom}findPinnedRowNode(e){return this.top.has(e)?this.top:this.bottom.has(e)?this.bottom:void 0}refreshRowPositions(e){let t=e=>{var t;let i,o;return t=this.beans,i=0,o=!1,e.forEach((e,r)=>{if(o||(o=e.rowTop!==i),e.setRowTop(i),e.rowHeightEstimated||null==e.rowHeight){let i=io(t,e).height;o||(o=e.rowHeight!==i),e.setRowHeight(i)}e.setRowIndex(r),i+=e.rowHeight}),o};if(e)return t(this.getContainer(e));let i=!1;return this.forContainers(e=>{let o=t(e);i||(i=o)}),i}forContainers(e){e(this.top,"top"),e(this.bottom,"bottom")}dispatchRowPinnedEvents(e){this.eventSvc.dispatchEvent({type:"pinnedRowsChanged"}),e?.dispatchRowEvent("rowPinned")}};function nM(e,t,i){if(t.pinnedSibling)return t.pinnedSibling;let o=nR(t,e);o.setRowTop(null),o.setRowIndex(null),o.rowPinned=i;let r="top"===i?nC:nv;return o.id=`${r}${i}-${t.id}`,o.pinnedSibling=t,t.pinnedSibling=o,o}function nk(e){if(!e.pinnedSibling)return;e.rowPinned=null,e._destroy(!1);let t=e.pinnedSibling;e.pinnedSibling=void 0,t&&(t.pinnedSibling=void 0,t.rowPinned=null)}function nT(e){let t=new Set;e.forEach(e=>{e.group&&t.add(e)}),t.forEach(t=>e.delete(t))}function nA(e){let t=e.size();if(0===t)return 0;let i=e.getByIndex(t-1);return void 0===i?0:i.rowTop+i.rowHeight}var nI=class extends tc{constructor(){super(...arguments),this.nextId=0,this.pinnedTopRows={cache:{},order:[]},this.pinnedBottomRows={cache:{},order:[]}}postConstruct(){let e=this.gos;this.setPinnedRowData(e.get("pinnedTopRowData"),"top"),this.setPinnedRowData(e.get("pinnedBottomRowData"),"bottom"),this.addManagedPropertyListener("pinnedTopRowData",e=>this.setPinnedRowData(e.currentValue,"top")),this.addManagedPropertyListener("pinnedBottomRowData",e=>this.setPinnedRowData(e.currentValue,"bottom")),this.addManagedEventListeners({stylesChanged:this.onGridStylesChanges.bind(this)})}reset(){}isEmpty(e){return 0===this.getCache(e).order.length}isRowsToRender(e){return!this.isEmpty(e)}isManual(){return!1}pinRow(e,t){}onGridStylesChanges(e){if(e.rowHeightChanged){let e=e=>{e.setRowHeight(e.rowHeight,!0)};nV(this.pinnedBottomRows,e),nV(this.pinnedTopRows,e)}}ensureRowHeightsValid(){let e=!1,t=0,i=i=>{if(i.rowHeightEstimated){let o=io(this.beans,i);i.setRowTop(t),i.setRowHeight(o.height),t+=o.height,e=!0}};return nV(this.pinnedBottomRows,i),t=0,nV(this.pinnedTopRows,i),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}setPinnedRowData(e,t){this.updateNodesFromRowData(e,t),this.eventSvc.dispatchEvent({type:"pinnedRowDataChanged"})}updateNodesFromRowData(e,t){let i=this.getCache(t);if(void 0===e){i.order.length=0,i.cache={};return}let o=iw(this.gos),r="top"===t?nC:nv,s=new Set(i.order),n=[],l=new Set,a=0,d=-1;for(let h of e){let e=o?.({data:h,level:0,rowPinned:t})??r+this.nextId++;if(l.has(e)){tX(96,{id:e,data:h});continue}d++,l.add(e),n.push(e);let u=nB(i,e);if(void 0!==u)u.data!==h&&u.updateData(h),a+=this.setRowTopAndRowIndex(u,a,d),s.delete(e);else{let o=new nb(this.beans);o.id=e,o.data=h,o.rowPinned=t,a+=this.setRowTopAndRowIndex(o,a,d),i.cache[e]=o,i.order.push(e)}}for(let e of s)nB(i,e)?.clearRowTopAndRowIndex(),delete i.cache[e];i.order=n}setRowTopAndRowIndex(e,t,i){return e.setRowTop(t),e.setRowHeight(io(this.beans,e).height),e.setRowIndex(i),e.rowHeight}getPinnedTopTotalHeight(){return nL(this.pinnedTopRows)}getPinnedBottomTotalHeight(){return nL(this.pinnedBottomRows)}getPinnedTopRowCount(){return nG(this.pinnedTopRows)}getPinnedBottomRowCount(){return nG(this.pinnedBottomRows)}getPinnedTopRow(e){return nH(this.pinnedTopRows,e)}getPinnedBottomRow(e){return nH(this.pinnedBottomRows,e)}getPinnedRowById(e,t){return nB(this.getCache(t),e)}forEachPinnedRow(e,t){return nV(this.getCache(e),t)}getCache(e){return"top"===e?this.pinnedTopRows:this.pinnedBottomRows}getPinnedState(){return{top:[],bottom:[]}}setPinnedState(){}getGrandTotalPinned(){}setGrandTotalPinned(){}};function nL(e){let t=nG(e);if(0===t)return 0;let i=nH(e,t-1);return void 0===i?0:i.rowTop+i.rowHeight}function nB(e,t){return e.cache[t]}function nH(e,t){return nB(e,e.order[t])}function nV(e,t){e.order.forEach((i,o)=>{let r=nB(e,i);r&&t(r,o)})}function nG(e){return e.order.length}var nO=class extends tc{constructor(){super(...arguments),this.beanName="pinnedRowModel"}postConstruct(){let{gos:e}=this,t=()=>{let t=e.get("enableRowPinning"),i=ig(e),o=!!t||"pinnedBottom"===i||"pinnedTop"===i,r=o?this.inner instanceof nI:this.inner instanceof nD;this.inner&&r&&this.destroyBean(this.inner),(r||!this.inner)&&(this.inner=this.createManagedBean(o?new nD:new nI))};this.addManagedPropertyListeners(["enableRowPinning","grandTotalRow"],t),t()}reset(){return this.inner.reset()}isEmpty(e){return this.inner.isEmpty(e)}isManual(){return this.inner.isManual()}isRowsToRender(e){return this.inner.isRowsToRender(e)}pinRow(e,t,i){return this.inner.pinRow(e,t,i)}ensureRowHeightsValid(){return this.inner.ensureRowHeightsValid()}getPinnedRowById(e,t){return this.inner.getPinnedRowById(e,t)}getPinnedTopTotalHeight(){return this.inner.getPinnedTopTotalHeight()}getPinnedBottomTotalHeight(){return this.inner.getPinnedBottomTotalHeight()}getPinnedTopRowCount(){return this.inner.getPinnedTopRowCount()}getPinnedBottomRowCount(){return this.inner.getPinnedBottomRowCount()}getPinnedTopRow(e){return this.inner.getPinnedTopRow(e)}getPinnedBottomRow(e){return this.inner.getPinnedBottomRow(e)}forEachPinnedRow(e,t){return this.inner.forEachPinnedRow(e,t)}getPinnedState(){return this.inner.getPinnedState()}setPinnedState(e){return this.inner.setPinnedState(e)}setGrandTotalPinned(e){return this.inner.setGrandTotalPinned(e)}getGrandTotalPinned(){return this.inner.getGrandTotalPinned()}},nN=(e=>(e.Applied="Applied",e.StoreNotFound="StoreNotFound",e.StoreLoading="StoreLoading",e.StoreWaitingToLoad="StoreWaitingToLoad",e.StoreLoadingFailed="StoreLoadingFailed",e.StoreWrongType="StoreWrongType",e.Cancelled="Cancelled",e.StoreNotStarted="StoreNotStarted",e))(nN||{}),nz=class{constructor(e,t=!1){this.eElement=e,this.preventClick=t,this.startListener=null,this.handlers=[],this.eventSvc=void 0,this.touchStart=null,this.lastTapTime=null,this.longPressTimer=0,this.moved=!1}addEventListener(e,t){let i=this.eventSvc;if(!i){if(null===i)return;this.eventSvc=i=new T;let e=this.onTouchStart.bind(this);this.startListener=e,this.eElement.addEventListener("touchstart",e,{passive:!0})}i.addEventListener(e,t)}removeEventListener(e,t){this.eventSvc?.removeEventListener(e,t)}onTouchStart(e){if(this.touchStart||!(e=>{if(c){if(c.has(e))return!1}else c=new WeakSet;
1return c.add(e),!0})(e))return;let t=e.touches[0];this.touchStart=t;let i=this.handlers;if(!i.length){let e=this.eElement,t=e.ownerDocument,o=this.onTouchMove.bind(this),r=this.onTouchEnd.bind(this),s=this.onTouchCancel.bind(this),n={passive:!0},l={passive:!1};to(i,[e,"touchmove",o,n],[t,"touchcancel",s,n],[t,"touchend",r,l],[t,"contextmenu",ts,l])}this.clearLongPress(),this.longPressTimer=window.setTimeout(()=>{this.longPressTimer=0,this.touchStart!==t||this.moved||(this.moved=!0,this.eventSvc?.dispatchEvent({type:"longTap",touchStart:t,touchEvent:e}))},550)}onTouchMove(e){let{moved:t,touchStart:i}=this;if(!t&&i){let t=te(i,e.touches);t&&!e9(t,i,4)&&(this.clearLongPress(),this.moved=!0)}}onTouchEnd(e){let t=this.touchStart;t&&te(t,e.changedTouches)&&(this.moved||(this.eventSvc?.dispatchEvent({type:"tap",touchStart:t}),this.checkDoubleTap(t)),this.preventClick&&ts(e),this.cancel())}onTouchCancel(e){let t=this.touchStart;t&&te(t,e.changedTouches)&&(this.lastTapTime=null,this.cancel())}checkDoubleTap(e){let t=Date.now(),i=this.lastTapTime;i&&t-i>500&&(this.eventSvc?.dispatchEvent({type:"doubleTap",touchStart:e}),t=null),this.lastTapTime=t}cancel(){this.clearLongPress(),tr(this.handlers),this.touchStart=null}clearLongPress(){window.clearTimeout(this.longPressTimer),this.longPressTimer=0,this.moved=!1}destroy(){let e=this.startListener;e&&(this.startListener=null,this.eElement.removeEventListener("touchstart",e)),this.cancel(),this.eElement=null,this.eventSvc=null}},nW=(e=>(e[e.VALUE=0]="VALUE",e[e.DIMENSION=1]="DIMENSION",e))(nW||{}),nU=1,n_=class{constructor(e){if(this.beans={},this.createdBeans=[],this.destroyed=!1,this.instanceId=nU++,!e?.beanClasses)return;this.beanDestroyComparator=e.beanDestroyComparator,this.init(e)}init(e){for(let t of(this.id=e.id,this.beans.context=this,this.destroyCallback=e.destroyCallback,Object.keys(e.providedBeanInstances)))this.beans[t]=e.providedBeanInstances[t];for(let t of e.beanClasses){let e=new t;e.beanName?this.beans[e.beanName]=e:console.error(`Bean ${t.name} is missing beanName`),this.createdBeans.push(e)}for(let t of e.derivedBeans??[]){let{beanName:e,bean:i}=t(this);this.beans[e]=i,this.createdBeans.push(i)}e.beanInitComparator&&this.createdBeans.sort(e.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(e,t){return this.initBeans([e],t),e}initBeans(e,t){let i=this.beans;for(let t of e)t.preWireBeans?.(i),t.wireBeans?.(i);for(let t of e)t.preConstruct?.();for(let i of(t&&e.forEach(t),e))i.postConstruct?.()}getBeans(){return this.beans}getBean(e){return this.beans[e]}getId(){return this.id}destroy(){if(this.destroyed)return;this.destroyed=!0;let e=this.getBeanInstances();this.beanDestroyComparator&&e.sort(this.beanDestroyComparator),this.destroyBeans(e),this.beans={},this.createdBeans=[],this.destroyCallback?.()}destroyBean(e){e?.destroy?.()}destroyBeans(e){if(e)for(let t=0;t<e.length;t++)this.destroyBean(e[t]);return[]}isDestroyed(){return this.destroyed}};function n$(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionSvc").api}}var nq=Object.fromEntries(["licenseManager","environment","eventSvc","gos","paginationAutoPageSizeSvc","apiFunctionSvc","gridApi","registry","agCompUtils","userCompFactory","rowContainerHeight","horizontalResizeSvc","localeSvc","pinnedRowModel","dragSvc","colGroupSvc","visibleCols","popupSvc","selectionSvc","colFilter","quickFilter","filterManager","colModel","headerNavigation","pageBounds","pagination","pageBoundsListener","rowSpanSvc","stickyRowSvc","rowRenderer","expressionSvc","alignedGridsSvc","navigation","valueCache","valueSvc","autoWidthCalc","filterMenuFactory","dragAndDrop","focusSvc","cellNavigation","cellStyles","scrollVisibleSvc","sortSvc","colHover","colAnimation","autoColSvc","selectionColSvc","changeDetectionSvc","animationFrameSvc","undoRedo","colDefFactory","rowStyleSvc","rowNodeBlockLoader","rowNodeSorter","ctrlsSvc","pinnedCols","dataTypeSvc","syncSvc","overlays","stateSvc","expansionSvc","apiEventSvc","ariaAnnounce","menuSvc","colMoves","colAutosize","colFlex","colResize","pivotColsSvc","valueColsSvc","rowGroupColsSvc","colNames","colViewport","pivotResultCols","showRowGroupCols","validation"].map((e,t)=>[e,t]));function nK(e,t){return((e.beanName?nq[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER)-((t.beanName?nq[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER)}function nj(e,t){return e?.beanName==="gridDestroySvc"?-1:+(t?.beanName==="gridDestroySvc")}var nY={tag:"div",cls:"ag-pinned-left-header",role:"rowgroup"},nQ={tag:"div",cls:"ag-pinned-right-header",role:"rowgroup"},nZ={tag:"div",cls:"ag-header-viewport",role:"rowgroup",attrs:{tabindex:"-1"},children:[{tag:"div",ref:"eCenterContainer",cls:"ag-header-container",role:"presentation"}]},nJ=class extends o5{constructor(e){super(),this.eCenterContainer=oZ,this.headerRowComps={},this.rowCompsList=[],this.pinned=e}postConstruct(){this.selectAndSetTemplate(),this.createManagedBean(new s2(this.pinned)).setComp({setDisplayed:e=>this.setDisplayed(e),setCtrls:e=>this.setCtrls(e),setCenterWidth:e=>this.eCenterContainer.style.width=e,setViewportScrollLeft:e=>this.getGui().scrollLeft=e,setPinnedContainerWidth:e=>{let t=this.getGui();t.style.width=e,t.style.maxWidth=e,t.style.minWidth=e}},this.getGui())}
1selectAndSetTemplate(){let e="left"==this.pinned,t="right"==this.pinned;this.setTemplate(e?nY:t?nQ:nZ),this.eRowContainer=this.eCenterContainer!==oZ?this.eCenterContainer:this.getGui()}destroy(){this.setCtrls([]),super.destroy()}destroyRowComp(e){this.destroyBean(e),e.getGui().remove()}setCtrls(e){let t,i=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];let o=e=>{let i=e.getGui();i.parentElement!=this.eRowContainer&&this.eRowContainer.appendChild(i),t&&ez(this.eRowContainer,i,t),t=i};for(let t of e){let e=t.instanceId,r=i[e];delete i[e];let s=r||this.createBean(new sz(t));this.headerRowComps[e]=s,this.rowCompsList.push(s),o(s)}for(let e of Object.values(i))this.destroyRowComp(e)}},nX={tag:"div",cls:"ag-header",role:"presentation"},n0={selector:"AG-HEADER-ROOT",component:class extends o5{constructor(){super(nX)}postConstruct(){this.createManagedBean(new sI).setComp({toggleCss:(e,t)=>this.toggleCss(e,t),setHeightAndMinHeight:e=>{this.getGui().style.height=e,this.getGui().style.minHeight=e}},this.getGui(),this.getFocusableElement());let e=e=>{this.createManagedBean(e),this.appendChild(e)};e(new nJ("left")),e(new nJ(null)),e(new nJ("right"))}}},n1={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"},n3=class extends tc{constructor(e){super(),this.view=e}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){let e=this.gos.get("domLayout"),t={autoHeight:"autoHeight"===e,normal:"normal"===e,print:"print"===e},i=t.autoHeight?n1.AUTO_HEIGHT:t.print?n1.PRINT:n1.NORMAL;this.view.updateLayoutClasses(i,t)}},n2=class extends o5{constructor(e,t){super(),this.direction=t,this.eViewport=oZ,this.eContainer=oZ,this.hideTimeout=0,this.setTemplate(e)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.toggleCss("ag-apple-scrollbar",rY()||rQ())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){void 0===this.invisibleScrollbar&&(this.invisibleScrollbar=r0(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){let e=this.getGui(),t=()=>this.toggleCss("ag-scrollbar-active",!0),i=()=>this.toggleCss("ag-scrollbar-active",!1);this.addManagedListeners(e,{mouseenter:t,mousedown:t,touchstart:t,mouseleave:i,touchend:i})}onScrollVisibilityChanged(){void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),e0(this.beans,()=>this.setScrollVisible())}hideAndShowInvisibleScrollAsNeeded(){this.addManagedEventListeners({bodyScroll:e=>{e.direction===this.direction&&(this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=0),this.toggleCss("ag-scrollbar-scrolling",!0))},bodyScrollEnd:()=>{this.hideTimeout=window.setTimeout(()=>{this.toggleCss("ag-scrollbar-scrolling",!1),this.hideTimeout=0},400)}})}attemptSettingScrollPosition(e){let t=this.eViewport;tb(this,()=>eO(t),()=>this.setScrollPosition(e),100)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}},n6={tag:"div",cls:"ag-body-horizontal-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eLeftSpacer",cls:"ag-horizontal-left-spacer"},{tag:"div",ref:"eViewport",cls:"ag-body-horizontal-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-horizontal-scroll-container"}]},{tag:"div",ref:"eRightSpacer",cls:"ag-horizontal-right-spacer"}]},n4=class extends n2{constructor(){super(n6,"horizontal"),this.eLeftSpacer=oZ,this.eRightSpacer=oZ,this.setScrollVisibleDebounce=0}wireBeans(e){this.visibleCols=e.visibleCols,this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){super.postConstruct();let e=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e,pinnedRowDataChanged:this.refreshCompBottom.bind(this)}),this.addManagedPropertyListener("domLayout",e),this.beans.ctrlsSvc.register("fakeHScrollComp",this),this.createManagedBean(new sW(e=>this.eContainer.style.width=`${e}px`)),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}destroy(){window.clearTimeout(this.setScrollVisibleDebounce),super.destroy()}initialiseInvisibleScrollbar(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}refreshCompBottom(){if(!this.invisibleScrollbar)return;let e=this.beans.pinnedRowModel?.getPinnedBottomTotalHeight()??0;this.getGui().style.bottom=`${e}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){let e=this.scrollVisibleSvc.verticalScrollShowing,t=this.visibleCols.getDisplayedColumnsRightWidth(),i=!this.enableRtl&&e,o=this.scrollVisibleSvc.getScrollbarWidth();i&&(t+=o),eK(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=o);let r=this.visibleCols.getColsLeftWidth();this.enableRtl&&e&&(r+=o),eK(this.eLeftSpacer,r),this.eLeftSpacer.classList.toggle("ag-scroller-corner",r<=o)}setScrollVisible(){let e=this.scrollVisibleSvc.horizontalScrollShowing,t=this.invisibleScrollbar,
1i=this.gos.get("suppressHorizontalScroll"),o=e&&this.scrollVisibleSvc.getScrollbarWidth()||0,r=0===o&&t?16:o,s=i?0:r,n=()=>{this.setScrollVisibleDebounce=0,this.toggleCss("ag-scrollbar-invisible",t),ej(this.getGui(),s),ej(this.eViewport,s),ej(this.eContainer,s),s||this.eContainer.style.setProperty("min-height","1px"),this.setVisible(e,{skipAriaHidden:!0})};window.clearTimeout(this.setScrollVisibleDebounce),e?this.setScrollVisibleDebounce=window.setTimeout(n,100):n()}getScrollPosition(){return eL(this.eViewport,this.enableRtl)}setScrollPosition(e){eO(this.eViewport)||this.attemptSettingScrollPosition(e),eB(this.eViewport,e,this.enableRtl)}},n5={selector:"AG-FAKE-HORIZONTAL-SCROLL",component:n4},n8=class extends tc{constructor(e,t){super(),this.eContainer=e,this.eViewport=t}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this,this.beans.rowContainerHeight)})}onHeightChanged(e){let t=e.uiContainerHeight,i=null!=t?`${t}px`:"";this.eContainer.style.height=i,this.eViewport&&(this.eViewport.style.height=i)}},n7={tag:"div",cls:"ag-body-vertical-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eViewport",cls:"ag-body-vertical-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-vertical-scroll-container"}]}]},n9=class extends n2{constructor(){super(n7,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new n8(this.eContainer));let{ctrlsSvc:e}=this.beans;e.register("fakeVScrollComp",this),this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this,e)})}setScrollVisible(){let{scrollVisibleSvc:e}=this.beans,t=e.verticalScrollShowing,i=this.invisibleScrollbar,o=t&&e.getScrollbarWidth()||0,r=0===o&&i?16:o;this.toggleCss("ag-scrollbar-invisible",i),eK(this.getGui(),r),eK(this.eViewport,r),eK(this.eContainer,r),this.setDisplayed(t,{skipAriaHidden:!0})}onRowContainerHeightChanged(e){let t=e.getGridBodyCtrl().eBodyViewport,i=this.getScrollPosition(),o=t.scrollTop;i!=o&&this.setScrollPosition(o,!0)}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(e,t){t||eO(this.eViewport)||this.attemptSettingScrollPosition(e),this.eViewport.scrollTop=e}},le={selector:"AG-FAKE-VERTICAL-SCROLL",component:n9},lt=(e=>(e[e.Vertical=0]="Vertical",e[e.Horizontal=1]="Horizontal",e))(lt||{}),li="Viewport",lo="fakeVScrollComp",lr=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"],ls=class extends tc{constructor(e){super(),this.clearRetryListenerFncs=[],this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.lastIsHorizontalScrollShowing=!1,this.scrollTimer=0,this.isScrollActive=!1,this.isVerticalPositionInvalidated=!0,this.isHorizontalPositionInvalidated=!0,this.eBodyViewport=e,this.resetLastHScrollDebounced=tv(this,()=>this.lastScrollSource[1]=null,150),this.resetLastVScrollDebounced=tv(this,()=>this.lastScrollSource[0]=null,150)}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.animationFrameSvc=e.animationFrameSvc,this.visibleCols=e.visibleCols}destroy(){super.destroy(),this.clearRetryListenerFncs=[],window.clearTimeout(this.scrollTimer)}postConstruct(){this.enableRtl=this.gos.get("enableRtl");let e=this.invalidateVerticalScroll.bind(this),t=this.invalidateHorizontalScroll.bind(this);this.addManagedEventListeners({displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this),bodyHeightChanged:e,scrollGapChanged:t}),this.addManagedElementListeners(this.eBodyViewport,{scroll:e}),this.ctrlsSvc.whenReady(this,e=>{this.centerRowsCtrl=e.center,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}invalidateHorizontalScroll(){this.isHorizontalPositionInvalidated=!0}invalidateVerticalScroll(){this.isVerticalPositionInvalidated=!0}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){for(let e of(this.addManagedElementListeners(this.centerRowsCtrl.eViewport,{scroll:this.onHScroll.bind(this,li)}),lr)){let t=this.ctrlsSvc.get(e);this.registerScrollPartner(t,this.onHScroll.bind(this,e))}}
1addVerticalScrollListeners(){let e=this.ctrlsSvc.get("fakeVScrollComp"),t=this.gos.get("debounceVerticalScrollbar"),i=t?tv(this,this.onVScroll.bind(this,li),100):this.onVScroll.bind(this,li),o=t?tv(this,this.onVScroll.bind(this,lo),100):this.onVScroll.bind(this,lo);this.addManagedElementListeners(this.eBodyViewport,{scroll:i}),this.registerScrollPartner(e,o)}registerScrollPartner(e,t){e.onScrollCallback(t)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(e){null!=this.centerRowsCtrl&&(void 0===e&&(e=this.centerRowsCtrl.getCenterViewportScrollLeft()),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(e)))}setScrollLeftForAllContainersExceptCurrent(e){for(let t of[...lr,li])this.lastScrollSource[1]!==t&&eB(this.getViewportForSource(t),e,this.enableRtl)}getViewportForSource(e){return e===li?this.centerRowsCtrl.eViewport:this.ctrlsSvc.get(e).eViewport}isControllingScroll(e,t){return null==this.lastScrollSource[t]?(0===t?this.lastScrollSource[0]=e:this.lastScrollSource[1]=e,!0):this.lastScrollSource[t]===e}onHScroll(e){if(!this.isControllingScroll(e,1))return;let{scrollLeft:t}=this.centerRowsCtrl.eViewport;if(this.shouldBlockScrollUpdate(1,t,!0))return;let i=eL(this.getViewportForSource(e),this.enableRtl);this.doHorizontalScroll(i),this.resetLastHScrollDebounced()}onVScroll(e){let t;if(!this.isControllingScroll(e,0)||(t=e===li?this.eBodyViewport.scrollTop:this.ctrlsSvc.get("fakeVScrollComp").getScrollPosition(),this.shouldBlockScrollUpdate(0,t,!0)))return;let{animationFrameSvc:i}=this;i?.setScrollTop(t),this.nextScrollTop=t,e===li?this.ctrlsSvc.get("fakeVScrollComp").setScrollPosition(t):this.eBodyViewport.scrollTop=t,i?.active?i.schedule():this.scrollGridIfNeeded(!0),this.resetLastVScrollDebounced()}doHorizontalScroll(e){let t=this.ctrlsSvc.get("fakeHScrollComp").getScrollPosition();(this.scrollLeft!==e||e!==t)&&(this.scrollLeft=e,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}isScrolling(){return this.isScrollActive}fireScrollEvent(e){let t={type:"bodyScroll",direction:1===e?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.isScrollActive=!0,this.eventSvc.dispatchEvent(t),window.clearTimeout(this.scrollTimer),this.scrollTimer=window.setTimeout(()=>{this.scrollTimer=0,this.isScrollActive=!1,this.eventSvc.dispatchEvent({...t,type:"bodyScrollEnd"})},150)}shouldBlockScrollUpdate(e,t,i=!1){return(!i||!!rQ())&&(0===e?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t))}shouldBlockVerticalScroll(e){let t=eM(this.eBodyViewport),{scrollHeight:i}=this.eBodyViewport;return!!(e<0||e+t>i)}shouldBlockHorizontalScroll(e){let t=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:i}=this.centerRowsCtrl.eViewport;if(this.enableRtl){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>i}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){let e=this.scrollLeft,t=!1;for(let i of lr)if(this.getViewportForSource(i).scrollLeft!==e){t=!0;break}t&&this.onHScroll(li)}scrollGridIfNeeded(e=!1){let t=this.scrollTop!=this.nextScrollTop;return t&&(this.scrollTop=this.nextScrollTop,e&&this.invalidateVerticalScroll(),this.redrawRowsAfterScroll()),t}setHorizontalScrollPosition(e,t=!1){let i=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(1,e)&&(e=this.enableRtl?e>0?0:i:Math.min(Math.max(e,0),i)),eB(this.centerRowsCtrl.eViewport,Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)}setVerticalScrollPosition(e){this.invalidateVerticalScroll(),this.eBodyViewport.scrollTop=e}getVScrollPosition(){if(!this.isVerticalPositionInvalidated){let{lastOffsetHeight:e,lastScrollTop:t}=this;return{top:t,bottom:t+e}}this.isVerticalPositionInvalidated=!1;let{scrollTop:e,offsetHeight:t}=this.eBodyViewport;return this.lastScrollTop=e,this.lastOffsetHeight=t,{top:e,bottom:e+t}}getApproximateVScollPosition(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()}getHScrollPosition(){return this.centerRowsCtrl.getHScrollPosition()}isHorizontalScrollShowing(){return this.isHorizontalPositionInvalidated&&(this.lastIsHorizontalScrollShowing=this.centerRowsCtrl.isHorizontalScrollShowing(),this.isHorizontalPositionInvalidated=!1),this.lastIsHorizontalScrollShowing}scrollHorizontally(e){let t=this.centerRowsCtrl.eViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowsCtrl.eViewport.scrollLeft-t}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(e,t=null){let{rowModel:i}=this.beans,o=i.getRowCount(),r=-1;for(let t=0;t<o;t++){let o=i.getRow(t);if("function"==typeof e){if(o&&e(o)){r=t;break}}else if(e===o||e===o.data){r=t;break}}r>=0&&this.ensureIndexVisible(r,t)}ensureIndexVisible(e,t,i=0){if(t9(this.gos,"print"))return;let{rowModel:o}=this.beans,r=o.getRowCount();if("number"!=typeof e||e<0||e>=r)return void tX(88,{index:e});this.clearRetryListeners();let{frameworkOverrides:s,pageBounds:n,rowContainerHeight:l,rowRenderer:a}=this.beans;s.wrapIncoming(()=>{let r,s,d=this.ctrlsSvc.getGridBodyCtrl(),h=o.getRow(e),u=0;this.invalidateVerticalScroll();do{let{stickyTopHeight:e,stickyBottomHeight:i}
1=d,o=h.rowTop,c=h.rowHeight,g=n.getPixelOffset(),p=h.rowTop-g,m=p+h.rowHeight,f=this.getVScrollPosition(),C=l.divStretchOffset,v=f.top+C,w=f.bottom+C,b=w-v,y=l.getScrollPositionForPixel(p),S=l.getScrollPositionForPixel(m-b),R=Math.min((y+S)/2,p),E=v+e>p,x=w-i<m,F=null;"top"===t?F=y-e:"bottom"===t?F=S+i:"middle"===t?F=R:E?F=y-e:x&&(F=S-y>b?y-e:S+i),null!==F&&(this.setVerticalScrollPosition(F),a.redraw({afterScroll:!0})),r=o!==h.rowTop||c!==h.rowHeight,s=e!==d.stickyTopHeight||i!==d.stickyBottomHeight,u++}while((r||s)&&u<10);if(this.animationFrameSvc?.flushAllFrames(),i<10&&(h?.stub||!this.beans.rowAutoHeight?.areRowsMeasured())){let r=this.getVScrollPosition().top;this.clearRetryListenerFncs=this.addManagedEventListeners({bodyScroll:()=>{r!==this.getVScrollPosition().top&&this.clearRetryListeners()},modelUpdated:()=>{this.clearRetryListeners(),e>=o.getRowCount()||this.ensureIndexVisible(e,t,i+1)}})}})}clearRetryListeners(){for(let e of this.clearRetryListenerFncs)e();this.clearRetryListenerFncs=[]}ensureColumnVisible(e,t="auto"){let{colModel:i,frameworkOverrides:o}=this.beans,r=i.getCol(e);if(!r||r.isPinned()||!this.visibleCols.isColDisplayed(r))return;let s=this.getPositionedHorizontalScroll(r,t);o.wrapIncoming(()=>{null!==s&&this.centerRowsCtrl.setCenterViewportScrollLeft(s),this.centerRowsCtrl.onHorizontalViewportChanged(),this.animationFrameSvc?.flushAllFrames()})}getPositionedHorizontalScroll(e,t){let{columnBeforeStart:i,columnAfterEnd:o}=this.isColumnOutsideViewport(e),r=this.centerRowsCtrl.getCenterWidth()<e.getActualWidth(),s=this.centerRowsCtrl.getCenterWidth(),n=this.enableRtl,l=(n?i:o)||r,a=n?o:i;"auto"!==t&&(l="start"===t,a="end"===t);let d="middle"===t;if(l||a||d){let{colLeft:t,colMiddle:i,colRight:o}=this.getColumnBounds(e);return d?i-s/2:l?n?o:t:n?t-s:o-s}return null}isColumnOutsideViewport(e){let{start:t,end:i}=this.getViewportBounds(),{colLeft:o,colRight:r}=this.getColumnBounds(e),s=this.enableRtl;return{columnBeforeStart:s?t>r:i<r,columnAfterEnd:s?i<o:t>o}}getColumnBounds(e){let t=this.enableRtl,i=this.visibleCols.bodyWidth,o=e.getActualWidth(),r=e.getLeft(),s=t?-1:1,n=t?i-r:r;return{colLeft:n,colMiddle:n+o/2*s,colRight:n+o*s}}getViewportBounds(){let e=this.centerRowsCtrl.getCenterWidth(),t=this.centerRowsCtrl.getCenterViewportScrollLeft();return{start:t,end:e+t,width:e}}},ln={horizontal:{overflow:e=>e.scrollWidth-e.clientWidth,scrollSize:e=>e.scrollWidth,clientSize:e=>e.clientWidth,opposite:"vertical"},vertical:{overflow:e=>e.scrollHeight-e.clientHeight,scrollSize:e=>e.scrollHeight,clientSize:e=>e.clientHeight,opposite:"horizontal"}};function ll(e,t,i,o,r,s){let n=ln[i],l=ln[n.opposite],a=!r||eO(r),d=!s||eO(s),h=n.overflow(e);if(h<=0)return!1;if(!t||0===o)return!0;let u=l.overflow(t);if(u<=0)return!0;if(h<=o){if(a&&d&&function({candidateOverflow:e,candidateScrollSize:t,candidateClientSize:i,scrollbarWidth:o}){return!(e<=0)&&!(e>o)&&t>i&&t<=i+o}({candidateOverflow:u,candidateScrollSize:l.scrollSize(t),candidateClientSize:l.clientSize(t),scrollbarWidth:o}))return!1;let i=n.clientSize(e)+o;return n.scrollSize(e)<=i}return!0}var la=class extends tc{constructor(e){super(),this.centerContainerCtrl=e}wireBeans(e){this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.listenForResize()}),this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],()=>{this.checkViewportAndScrolls()})}listenForResize(){let{beans:e,centerContainerCtrl:t,gridBodyCtrl:i}=this,o=()=>{e0(e,()=>{this.onCenterViewportResized()})};t.registerViewportResizeListener(o),i.registerBodyViewportResizeListener(o)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleSvc.updateScrollGap(),this.centerContainerCtrl.isViewportInTheDOMTree()){let{pinnedCols:e,colFlex:t}=this.beans;e?.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();let i=this.centerContainerCtrl.getCenterWidth();i!==this.centerWidth&&(this.centerWidth=i,t?.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}checkViewportAndScrolls(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.scrollFeature.checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){let e=eM(this.gridBodyCtrl.eBodyViewport);this.bodyHeight!==e&&(this.bodyHeight=e,this.eventSvc.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){if(!this.isAlive())return;let e={horizontalScrollShowing:this.centerContainerCtrl.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleSvc.setScrollsVisible(e)}
1onHorizontalViewportChanged(){let{centerContainerCtrl:e,beans:t}=this,i=e.getCenterWidth(),o=e.getViewportScrollLeft();t.colViewport.setScrollPosition(i,o)}};function ld(e){return!e.altKey&&!e.ctrlKey&&!e.metaKey&&e.key?.length===1}function lh(e,t,i,o){let r=t.getColDef().cellRendererParams?.suppressMouseEventHandling;return lu(e,t,i,o,r)}function lu(e,t,i,o,r){return!!r&&r(iK(e,{column:t,node:i,event:o}))}function lc(e,t,i){let o=t;for(;o;){let t=il(e,o,i);if(t)return t;o=o.parentElement}return null}var lg="cellCtrl";function lp(e,t){return lc(e,t,lg)}var lm="renderedRow";function lf(e,t){return lc(e,t,lm)}function lC(e,t,i,o,r){let s=o?o.getColDef().suppressKeyboardEvent:void 0;if(!s)return!1;let n=iK(e,{event:t,editing:r,column:o,node:i,data:i.data,colDef:o.getColDef()});return!!(s&&s(n))||!1}function lv(e){let t,i,{pinnedRowModel:o,rowModel:r,rangeSvc:s,visibleCols:n}=e;if(!s||0===n.allCols.length)return;let l=o?.isEmpty("top")??!0;o?.isEmpty("bottom")??!0?(t=null,i=r.getRowCount()-1):(t="bottom",i=o?.getPinnedBottomRowCount()??-1),s.setCellRange({rowStartIndex:0,rowStartPinned:l?null:"top",rowEndIndex:i,rowEndPinned:t})}var lw=class extends tc{constructor(e){super(),this.element=e}postConstruct(){this.addKeyboardListeners(),this.addMouseListeners(),this.beans.touchSvc?.mockRowContextMenu(this),this.editSvc=this.beans.editSvc}addKeyboardListeners(){let e="keydown",t=this.processKeyboardEvent.bind(this,e);this.addManagedElementListeners(this.element,{[e]:t})}addMouseListeners(){let e="mousedown";for(let t of(e8("pointerdown")?e="pointerdown":e8("touchstart")&&(e="touchstart"),["dblclick","contextmenu","mouseover","mouseout","click",e])){let e=this.processMouseEvent.bind(this,t);this.addManagedElementListeners(this.element,{[t]:e})}}processMouseEvent(e,t){if(!tt(this.beans,t)||so(t))return;let{cellCtrl:i,rowCtrl:o}=this.getControlsForEventTarget(t.target);"contextmenu"===e?(i?.column&&i.dispatchCellContextMenuEvent(t),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(t,void 0,o,i)):(i&&i.onMouseEvent(e,t),o&&o.onMouseEvent(e,t))}getControlsForEventTarget(e){let{gos:t}=this;return{cellCtrl:lp(t,e),rowCtrl:lf(t,e)}}processKeyboardEvent(e,t){let{cellCtrl:i,rowCtrl:o}=this.getControlsForEventTarget(t.target);!t.defaultPrevented&&(i?this.processCellKeyboardEvent(i,e,t):o?.isFullWidth()&&this.processFullWidthRowKeyboardEvent(o,e,t))}processCellKeyboardEvent(e,t,i){let o=this.editSvc?.isEditing(e,{withOpenEditor:!0})??!1;!lC(this.gos,i,e.rowNode,e.column,o)&&"keydown"===t&&(!o&&this.beans.navigation?.handlePageScrollingKey(i)||e.onKeyDown(i),this.doGridOperations(i,o),ld(i)&&e.processCharacter(i)),"keydown"===t&&this.eventSvc.dispatchEvent(e.createEvent(i,"cellKeyDown"))}processFullWidthRowKeyboardEvent(e,t,i){let{rowNode:o}=e,{focusSvc:r,navigation:s}=this.beans,n=r.getFocusedCell(),l=n?.column;if(!lC(this.gos,i,o,l,!1)){let o=i.key;if("keydown"===t)switch(o){case oK.PAGE_HOME:case oK.PAGE_END:case oK.PAGE_UP:case oK.PAGE_DOWN:s?.handlePageScrollingKey(i,!0);break;case oK.LEFT:case oK.RIGHT:if(!this.gos.get("embedFullWidthRows"))break;case oK.UP:case oK.DOWN:e.onKeyboardNavigate(i);break;case oK.TAB:e.onTabKeyDown(i)}}"keydown"===t&&this.eventSvc.dispatchEvent(e.createRowEvent("cellKeyDown",i))}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey||t||!tt(this.beans,e))return;let i=oj(e),{clipboardSvc:o,undoRedo:r}=this.beans;return i===oK.A?this.onCtrlAndA(e):i===oK.C?this.onCtrlAndC(o,e):i===oK.D?this.onCtrlAndD(o,e):i===oK.V?this.onCtrlAndV(o,e):i===oK.X?this.onCtrlAndX(o,e):i===oK.Y?this.onCtrlAndY(r):i===oK.Z?this.onCtrlAndZ(r,e):void 0}onCtrlAndA(e){let{beans:{rowModel:t,rangeSvc:i,selectionSvc:o},gos:r}=this;i&&ik(r)&&!function(e){let t=e.get("rowSelection");return"string"!=typeof t&&t?.mode==="multiRow"&&(t.ctrlASelectsRows??!1)}(r)&&t.isRowsToRender()?lv(this.beans):o&&o.selectAllRowNodes({source:"keyboardSelectAll",selectAll:iG(r)}),e.preventDefault()}onCtrlAndC(e,t){if(!e||this.gos.get("enableCellTextSelection"))return;let{cellCtrl:i}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(i,{withOpenEditor:!0})||(t.preventDefault(),e.copyToClipboard())}onCtrlAndX(e,t){if(!e||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;let{cellCtrl:i}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(i,{withOpenEditor:!0})||(t.preventDefault(),e.cutToClipboard(void 0,"ui"))}onCtrlAndV(e,t){let{cellCtrl:i}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(i,{withOpenEditor:!0})||e&&!this.gos.get("suppressClipboardPaste")&&e.pasteFromClipboard()}onCtrlAndD(e,t){e&&!this.gos.get("suppressClipboardPaste")&&e.copyRangeDown(),t.preventDefault()}onCtrlAndZ(e,t){this.gos.get("undoRedoCellEditing")&&e&&(t.preventDefault(),t.shiftKey?e.redo("ui"):e.undo("ui"))}onCtrlAndY(e){e?.redo("ui")}
1},lb=e=>e.topRowCtrls,ly=e=>e.getStickyTopRowCtrls(),lS=e=>e.getStickyBottomRowCtrls(),lR=e=>e.bottomRowCtrls,lE=e=>e.allRowCtrls,lx=e=>e.getCtrls("top"),lF=e=>e.getCtrls("center"),lP=e=>e.getCtrls("bottom"),lD={center:{type:"center",name:"center-cols",getRowCtrls:lE,getSpannedRowCtrls:lF},left:{type:"left",name:"pinned-left-cols",pinnedType:"left",getRowCtrls:lE,getSpannedRowCtrls:lF},right:{type:"right",name:"pinned-right-cols",pinnedType:"right",getRowCtrls:lE,getSpannedRowCtrls:lF},fullWidth:{type:"fullWidth",name:"full-width",fullWidth:!0,getRowCtrls:lE},topCenter:{type:"center",name:"floating-top",getRowCtrls:lb,getSpannedRowCtrls:lx},topLeft:{type:"left",name:"pinned-left-floating",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:lb,getSpannedRowCtrls:lx},topRight:{type:"right",name:"pinned-right-floating",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:lb,getSpannedRowCtrls:lx},topFullWidth:{type:"fullWidth",name:"floating-top-full-width",fullWidth:!0,getRowCtrls:lb},stickyTopCenter:{type:"center",name:"sticky-top",getRowCtrls:ly},stickyTopLeft:{type:"left",name:"pinned-left-sticky-top",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:ly},stickyTopRight:{type:"right",name:"pinned-right-sticky-top",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:ly},stickyTopFullWidth:{type:"fullWidth",name:"sticky-top-full-width",fullWidth:!0,getRowCtrls:ly},stickyBottomCenter:{type:"center",name:"sticky-bottom",getRowCtrls:lS},stickyBottomLeft:{type:"left",name:"pinned-left-sticky-bottom",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:lS},stickyBottomRight:{type:"right",name:"pinned-right-sticky-bottom",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:lS},stickyBottomFullWidth:{type:"fullWidth",name:"sticky-bottom-full-width",fullWidth:!0,getRowCtrls:lS},bottomCenter:{type:"center",name:"floating-bottom",getRowCtrls:lR,getSpannedRowCtrls:lP},bottomLeft:{type:"left",name:"pinned-left-floating-bottom",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:lR,getSpannedRowCtrls:lP},bottomRight:{type:"right",name:"pinned-right-floating-bottom",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:lR,getSpannedRowCtrls:lP},bottomFullWidth:{type:"fullWidth",name:"floating-bottom-full-width",fullWidth:!0,getRowCtrls:lR}};function lM(e){let t=lD[e];return`ag-${t.name}-viewport`}function lk(e){let t=lD[e];return t.container??`ag-${t.name}-container`}function lT(e){let t=lD[e];return`ag-${t.name}-spanned-cells-container`}function lA(e){return lD[e]}var lI=["center","left","right","fullWidth"],lL=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],lB=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],lH=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],lV=["stickyTopCenter","stickyTopLeft","stickyTopRight"],lG=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],lO=[...lV,"stickyTopFullWidth",...lG,"stickyBottomFullWidth"],lN=["topCenter","topLeft","topRight","bottomCenter","bottomLeft","bottomRight","center","left","right",...lV,...lG],lz=class extends tc{constructor(e){super(),this.name=e,this.visible=!0,this.EMPTY_CTRLS=[],this.options=lD[e]}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new la(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})})}onStickyTopOffsetChanged(e){this.comp.setOffsetTop(`${e.offset}px`)}registerWithCtrlsService(){this.options.fullWidth||this.beans.ctrlsSvc.register(this.name,this)}forContainers(e,t){e.indexOf(this.name)>=0&&t()}setComp(e,t,i,o){this.comp=e,this.eContainer=t,this.eSpannedContainer=i,this.eViewport=o,this.createManagedBean(new lw(this.eViewport??this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();let{pinnedCols:r,rangeSvc:s}=this.beans,n=()=>this.onPinnedWidthChanged();this.forContainers(lB,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(r?.createPinnedWidthFeature(!0,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({leftPinnedWidthChanged:n})}),this.forContainers(lH,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(r?.createPinnedWidthFeature(!1,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({rightPinnedWidthChanged:n})}),this.forContainers(lI,()=>this.createManagedBean(new n8(this.eContainer,"center"===this.name?o:void 0))),s&&this.forContainers(lN,()=>this.createManagedBean(s.createDragListenerFeature(this.eContainer))),this.forContainers(lL,()=>this.createManagedBean(new sW(e=>this.comp.setContainerWidth(`${e}px`)))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}addListeners(){let{spannedRowRenderer:e,gos:t}=this.beans,i=this.onDisplayedColumnsChanged.bind(this);this.addManagedEventListeners({displayedColumnsChanged:i,displayedColumnsWidthChanged:i,displayedRowsChanged:e=>this.onDisplayedRowsChanged(e.afterScroll)}),i(),this.onDisplayedRowsChanged(),e&&this.options.getSpannedRowCtrls&&t.get("enableCellSpan")&&this.addManagedListeners(e,{spannedRowsUpdated:()=>{let t=this.options.getSpannedRowCtrls(e);t&&this.comp.setSpannedRowCtrls(t,!1)}})}listenOnDomOrder(){if(lO.indexOf(this.name)>=0)return void this.comp.setDomOrder(!0);let e=()=>{let e=this.gos.get("ensureDomOrder"),t=t9(this.gos,"print");this.comp.setDomOrder(e||t)};this.addManagedPropertyListener("domLayout",e),e()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){let{dragSvc:e}=this.beans;if(!e)return;let t=t=>{e.dragging&&t.cancelable&&t.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",t))}onHorizontalViewportChanged(e=!1){let t=this.getCenterWidth(),i=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(t,i,e)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return ek(this.eViewport)}getCenterViewportScrollLeft(){return eL(this.eViewport,this.enableRtl)}registerViewportResizeListener(e){let t=eX(this.beans,this.eViewport,e);this.addDestroyFunc(()=>t())}isViewportInTheDOMTree(){return eG(this.eViewport)}getViewportScrollLeft(){return eL(this.eViewport,this.enableRtl)}
1isHorizontalScrollShowing(){let{beans:e,gos:t,eViewport:i}=this,o=t.get("alwaysShowHorizontalScroll"),{ctrlsSvc:r}=e,s=r.getGridBodyCtrl()?.eBodyViewport,n=r.get("fakeHScrollComp")?.getGui(),l=r.get("fakeVScrollComp")?.getGui();return o||function(e,t,i=rJ()||0,o,r){return ll(e,t,"horizontal",i,o,r)}(i,s,void 0,n,l)}setHorizontalScroll(e){this.comp.setHorizontalScroll(e)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(e){eB(this.eViewport,e,this.enableRtl)}isContainerVisible(){return null==this.options.pinnedType||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){let e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(e=!1){let t=this.options.getRowCtrls(this.beans.rowRenderer);if(!this.visible||0===t.length)return void this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});let i=t9(this.gos,"print"),o=this.gos.get("embedFullWidthRows")||i,r=t.filter(e=>{let t=e.isFullWidth();return this.options.fullWidth?!o&&t:o||!t});this.comp.setRowCtrls({rowCtrls:r,useFlushSync:e})}},lW="ag-force-vertical-scroll",lU=class extends tc{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colModel=e.colModel,this.scrollVisibleSvc=e.scrollVisibleSvc,this.pinnedRowModel=e.pinnedRowModel,this.filterManager=e.filterManager,this.rowGroupColsSvc=e.rowGroupColsSvc}setComp(e,t,i,o,r,s,n){this.comp=e,this.eGridBody=t,this.eBodyViewport=i,this.eTop=o,this.eBottom=r,this.eStickyTop=s,this.eStickyBottom=n,this.eCenterColsViewport=i.querySelector(`.${lM("center")}`),this.eFullWidthContainer=i.querySelector(`.${lk("fullWidth")}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",e=>this.setCellTextSelection(e.currentValue)),this.createManagedBean(new n3(this.comp)),this.scrollFeature=this.createManagedBean(new ls(i)),this.beans.rowDragSvc?.setupRowDrag(i,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([o,i,r,s,n]),this.setGridRootRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),this.filterManager?.setupAdvFilterHeaderComp(o),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){let e=this.setFloatingHeights.bind(this),t=this.setGridRootRole.bind(this),i=this.toggleRowResizeStyles.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.updateScrollingClasses.bind(this),pinnedRowDataChanged:e,pinnedHeightChanged:e,pinnedRowsChanged:e,headerHeightChanged:this.setStickyTopOffsetTop.bind(this),columnRowGroupChanged:t,columnPivotChanged:t,rowResizeStarted:i,rowResizeEnded:i}),this.addManagedPropertyListener("treeData",t)}toggleRowResizeStyles(e){let t="rowResizeStarted"===e.type;this.eBodyViewport.classList.toggle("ag-prevent-animation",t)}onGridColumnsChanged(){let e=this.beans.colModel.getCols();this.comp.setColumnCount(e.length)}onScrollVisibilityChanged(){let{scrollVisibleSvc:e}=this,t=e.verticalScrollShowing;this.setVerticalScrollPaddingVisible(t),this.setStickyWidth(t),this.setStickyBottomOffsetBottom();let i=t&&e.getScrollbarWidth()||0,o=16*!!r0(),r=`calc(100% + ${i+o}px)`;e0(this.beans,()=>this.comp.setBodyViewportWidth(r)),this.updateScrollingClasses()}setGridRootRole(){let{rowGroupColsSvc:e,colModel:t,gos:i}=this,o=i.get("treeData");if(!o){let i=t.isPivotMode();o=(e?e.columns.length:0)>=(i?2:1)}this.comp.setGridRootRole(o?"treegrid":"grid")}addFocusListeners(e){for(let t of e)this.addManagedElementListeners(t,{focusin:e=>{let{target:i}=e,o=eP(i,"ag-root",t);t.classList.toggle("ag-has-focus",!o)},focusout:e=>{let{target:i,relatedTarget:o}=e,r=t.contains(o),s=eP(o,"ag-root",t);eP(i,"ag-root",t)||(!r||s)&&t.classList.remove("ag-has-focus")}})}setColumnMovingCss(e){this.comp.setColumnMovingCss("ag-column-moving",e)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss("ag-selectable",e)}updateScrollingClasses(){let{eGridBody:{classList:e},scrollVisibleSvc:t}=this;e.toggle("ag-body-vertical-content-no-gap",!t.verticalScrollGap),e.toggle("ag-body-horizontal-content-no-gap",!t.horizontalScrollGap)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:e=>{if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){this.beans.editSvc?.addStopEditingWhenGridLosesFocus([this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom])}updateRowCount(){let e=(this.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.filterManager?.getHeaderRowCount()??0),{rowModel:t}=this.beans,i=t.isLastRowIndexKnown()?t.getRowCount():-1;this.comp.setRowCount(-1===i?-1:e+i)}registerBodyViewportResizeListener(e){this.comp.registerBodyViewportResizeListener(e)}setVerticalScrollPaddingVisible(e){this.comp.setPinnedTopBottomOverflowY(e?"scroll":"hidden")}isVerticalScrollShowing(){let{gos:e,comp:t,ctrlsSvc:i}=this,o=e.get("alwaysShowVerticalScroll"),r=t9(e,"normal");t.setAlwaysVerticalScrollClass(o?lW:null,o);let s=i.get("center")?.eViewport,n=i.get("fakeHScrollComp")?.getGui(),l=i.get("fakeVScrollComp")?.getGui();return o||r&&function(e,t,i=rJ()||0,o,r){return ll(e,t,"vertical",i,o,r)}(this.eBodyViewport,s,void 0,l,n)}setupRowAnimationCssClass(){let{rowContainerHeight:e,environment:t}=this.beans,i=t.sizesMeasured,o=()=>{let t=i&&id(this.gos)&&!e.stretching;this.comp.setRowAnimationCssOnBodyViewport(t?"ag-row-animation":"ag-row-no-animation",t)};o(),this.addManagedEventListeners({heightScaleChanged:o}),this.addManagedPropertyListener("animateRows",o),this.addManagedEventListeners({stylesChanged:()=>{!i&&t.sizesMeasured&&(i=!0,o())}})}addBodyViewportListener(){let{eBodyViewport:e,eStickyTop:t,eStickyBottom:i,eTop:o,eBottom:r,beans:{popupSvc:s,touchSvc:n}}=this,l=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(e,{contextmenu:l}),n?.mockBodyContextMenu(this,l),this.addManagedElementListeners(e,{wheel:this.onBodyViewportWheel.bind(this,s)});let a=this.onStickyWheel.bind(this);for(let e of[t,i,o,r])this.addManagedElementListeners(e,{wheel:a});let d=this.onHorizontalWheel.bind(this);for(let e of["left","right","topLeft","topRight","bottomLeft","bottomRight"])this.addManagedElementListeners(this.ctrlsSvc.get(e).eContainer,{wheel:d});this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:e=>this.onFullWidthContainerWheel(e)})}onFullWidthContainerWheel(e){let{deltaX:t,deltaY:i,shiftKey:o}=e;(o||Math.abs(t)>Math.abs(i))&&tt(this.beans,e)&&this.scrollGridBodyToMatchEvent(e)}onStickyWheel(e){let{deltaY:t}=e;this.scrollVertically(t)>0&&e.preventDefault()}onHorizontalWheel(e){let{deltaX:t,deltaY:i,shiftKey:o}=e;(o||Math.abs(t)>Math.abs(i))&&this.scrollGridBodyToMatchEvent(e)}scrollGridBodyToMatchEvent(e){let{deltaX:t,deltaY:i}
1=e;e.preventDefault(),this.eCenterColsViewport.scrollBy({left:t||i})}onBodyViewportContextMenu(e,t,i){if(!e&&!i)return;this.gos.get("preventDefaultOnContextMenu")&&(e||i).preventDefault();let{target:o}=e||t;(o===this.eBodyViewport||o===this.ctrlsSvc.get("center").eViewport)&&this.beans.contextMenuSvc?.showContextMenu({mouseEvent:e,touchEvent:i,value:null,anchorToElement:this.eGridBody,source:"ui"})}onBodyViewportWheel(e,t){this.gos.get("suppressScrollWhenPopupsAreOpen")&&e?.hasAnchoredPopup()&&t.preventDefault()}scrollVertically(e){let t=this.eBodyViewport.scrollTop;return this.scrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t}setFloatingHeights(){let{pinnedRowModel:e,beans:{environment:t}}=this,i=e?.getPinnedTopTotalHeight(),o=e?.getPinnedBottomTotalHeight(),r=t.getPinnedRowBorderWidth()-t.getRowBorderWidth(),s=i?r+i:0,n=o?r+o:0;this.comp.setTopHeight(s),this.comp.setBottomHeight(n),this.comp.setTopInvisible(s<=0),this.comp.setBottomInvisible(n<=0),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(e=0){this.comp.setStickyTopHeight(`${e}px`),this.stickyTopHeight=e}setStickyBottomHeight(e=0){this.comp.setStickyBottomHeight(`${e}px`),this.stickyBottomHeight=e}setStickyWidth(e){if(e){let e=this.scrollVisibleSvc.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${e}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${e}px)`)}else this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%")}setStickyTopOffsetTop(){let e=this.ctrlsSvc.get("gridHeaderCtrl").headerHeight+(this.filterManager?.getHeaderHeight()??0),t=this.pinnedRowModel?.getPinnedTopTotalHeight()??0,i=0;e>0&&(i+=e),t>0&&(i+=t),i>0&&(i+=1),this.comp.setStickyTopTop(`${i}px`)}setStickyBottomOffsetBottom(){let{pinnedRowModel:e,scrollVisibleSvc:t,comp:i}=this,o=e?.getPinnedBottomTotalHeight()??0,r=t.horizontalScrollShowing&&t.getScrollbarWidth()||0;i.setStickyBottomBottom(`${o+r}px`)}},l_=class extends o5{constructor(e,t,i,o,r){let s;super(),this.cellCtrl=t,this.rendererVersion=0,this.editorVersion=0,this.beans=e,this.gos=e.gos,this.column=t.column,this.rowNode=t.rowNode,this.eRow=o;let n=e2({tag:"div",role:t.getCellAriaRole(),attrs:{"comp-id":`${this.getCompId()}`,"col-id":t.column.colIdSanitised}});(this.eCell=n,t.isCellSpanning())?((s=e2({tag:"div",cls:"ag-spanned-cell-wrapper",role:"presentation"})).appendChild(n),this.setTemplateFromElement(s)):this.setTemplateFromElement(n),this.cellCssManager=new o3(()=>n),this.forceWrapper=t.isForceWrapper(),this.refreshWrapper(!1),t.setComp({toggleCss:(e,t)=>this.cellCssManager.toggleCss(e,t),setUserStyles:e=>eU(n,e),getFocusableElement:()=>n,setIncludeSelection:e=>this.includeSelection=e,setIncludeRowDrag:e=>this.includeRowDrag=e,setIncludeDndSource:e=>this.includeDndSource=e,setRenderDetails:(e,t,i)=>this.setRenderDetails(e,t,i),setEditDetails:(e,t,i)=>this.setEditDetails(e,t,i),getCellEditor:()=>this.cellEditor||null,getCellRenderer:()=>this.cellRenderer||null,getParentOfValue:()=>this.getParentOfValue(),refreshEditStyles:(e,t)=>this.refreshEditStyles(e,t)},n,s,this.eCellWrapper,i,r,void 0)}getParentOfValue(){return this.eCellValue??this.eCellWrapper??this.eCell}setRenderDetails(e,t,i){if(this.cellEditor&&!this.cellEditorPopupWrapper)return;this.firstRender=null==this.firstRender;let o=this.refreshWrapper(!1);this.refreshEditStyles(!1),e?!(i||o)&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(t)),this.rowDraggingComp?.refreshVisibility()}setEditDetails(e,t,i){e?this.createCellEditorInstance(e,t,i):this.destroyEditor()}removeControls(){let e=this.beans.context;this.checkboxSelectionComp=e.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=e.destroyBean(this.dndSourceComp),this.rowDraggingComp=e.destroyBean(this.rowDraggingComp)}refreshWrapper(e){let t=this.includeRowDrag||this.includeDndSource||this.includeSelection,i=t||this.forceWrapper,o=i&&null==this.eCellWrapper;o&&(this.eCellWrapper=e2({tag:"div",cls:"ag-cell-wrapper",role:"presentation"}
1),this.eCell.appendChild(this.eCellWrapper));let r=!i&&null!=this.eCellWrapper;r&&(eV(this.eCellWrapper),this.eCellWrapper=void 0),this.cellCssManager.toggleCss("ag-cell-value",!i);let s=!e&&i,n=s&&null==this.eCellValue;if(n){let e=this.cellCtrl.getCellValueClass();this.eCellValue=e2({tag:"span",cls:e,role:"presentation"}),this.eCellWrapper.appendChild(this.eCellValue)}let l=!s&&null!=this.eCellValue;l&&(eV(this.eCellValue),this.eCellValue=void 0);let a=o||r||n||l;return a&&this.removeControls(),!e&&t&&this.addControls(),a}addControls(){let{cellCtrl:e,eCellWrapper:t,eCellValue:i,includeRowDrag:o,includeDndSource:r,includeSelection:s}=this,n=e=>{e&&t.insertBefore(e.getGui(),i)};o&&null==this.rowDraggingComp&&(this.rowDraggingComp=e.createRowDragComp(),n(this.rowDraggingComp)),r&&null==this.dndSourceComp&&(this.dndSourceComp=e.createDndSource(),n(this.dndSourceComp)),s&&null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=e.createSelectionCheckbox(),n(this.checkboxSelectionComp))}createCellEditorInstance(e,t,i){let o=this.editorVersion,r=e.newAgStackInstance(),{params:s}=e;r.then(e=>this.afterCellEditorCreated(o,e,s,t,i)),P(this.cellEditor)&&s.cellStartedEdit&&this.cellCtrl.focusCell(!0)}insertValueWithoutCellRenderer(e){let t=this.getParentOfValue();eH(t);let i=L(e);null!=i&&(t.textContent=i)}destroyRenderer(){let{context:e}=this.beans;this.cellRenderer=e.destroyBean(this.cellRenderer),eV(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++}destroyEditor(){let{context:e}=this.beans;(this.cellEditorPopupWrapper?.getGui().contains(O(this.beans))||this.cellCtrl.hasBrowserFocus())&&this.eCell.focus({preventScroll:!0}),this.hideEditorPopup?.(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),eV(this.cellEditorGui),this.cellCtrl.disableEditorTooltipFeature(),this.cellEditorGui=null,this.editorVersion++}refreshCellRenderer(e){if(this.cellRenderer?.refresh==null||this.cellRendererClass!==e.componentClass)return!1;let t=this.cellRenderer.refresh(e.params);return!0===t||void 0===t}createCellRendererInstance(e){let t,i=this.rendererVersion,o=e=>t=>{if(this.rendererVersion!==i||!this.isAlive())return;let o=e.newAgStackInstance(),r=this.afterCellRendererCreated.bind(this,i,e.componentClass);o?.then(r)},{animationFrameSvc:r}=this.beans;if(t=r?.active&&this.firstRender?(e,t=!1)=>{r.createTask(o(e),this.rowNode.rowIndex,"p2",e.componentFromFramework,t)}:e=>o(e)(),e.params?.deferRender&&!this.cellCtrl.rowNode.group){let{loadingComp:i,onReady:o}=this.cellCtrl.getDeferLoadingCellRenderer();i&&(t(i),o.then(()=>t(e,!0)))}else t(e)}afterCellRendererCreated(e,t,i){if(!this.isAlive()||e!==this.rendererVersion)return void this.beans.context.destroyBean(i);this.cellRenderer=i,this.cellRendererClass=t;let o=i.getGui();if(this.cellRendererGui=o,null!=o){let e=this.getParentOfValue();eH(e),e.appendChild(o)}}afterCellEditorCreated(e,t,i,o,r){let s=e!==this.editorVersion,{context:n}=this.beans;if(s)return void n.destroyBean(t);if(t.isCancelBeforeStart?.()){n.destroyBean(t),this.cellCtrl.stopEditing(!0);return}if(!t.getGui){tX(97,{colId:this.column.getId()}),n.destroyBean(t);return}this.cellEditor=t,this.cellEditorGui=t.getGui();let l=o||t.isPopup?.();l?this.addPopupCellEditor(i,r):this.addInCellEditor(),this.refreshEditStyles(!0,l),t.afterGuiAttached?.(),this.cellCtrl.enableEditorTooltipFeature(t),this.cellCtrl.cellEditorAttached()}refreshEditStyles(e,t){let{cellCssManager:i}=this;i.toggleCss("ag-cell-inline-editing",e&&!t),i.toggleCss("ag-cell-popup-editing",e&&!!t),i.toggleCss("ag-cell-not-inline-editing",!e||!!t)}addInCellEditor(){let{eCell:e}=this;e.contains(O(this.beans))&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),eH(this.getParentOfValue()),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)}addPopupCellEditor(e,t){let{gos:i,context:o,popupSvc:r,editSvc:s}=this.beans;"fullRow"===i.get("editType")&&tX(98);let n=this.cellEditorPopupWrapper=o.createBean(s.createPopupEditorWrapper(e)),{cellEditor:l,cellEditorGui:a,eCell:d,rowNode:h,column:u,cellCtrl:c}=this,g=n.getGui();a&&g.appendChild(a);let p=i.get("stopEditingWhenCellsLoseFocus"),m=null!=t?t:l.getPopupPosition?.()??"over",f=i.get("enableRtl"),C=r.positionPopupByComponent.bind(r,{ePopup:g,additionalParams:{column:u,rowNode:h},type:"popupCellEditor",eventSource:d,position:m,alignSide:f?"right":"left",keepWithinBounds:!0}),v=r.addPopup({modal:p,eChild:g,closeOnEsc:!0,closedCallback:()=>{c.onPopupEditorClosed()},anchorToElement:d,positionCallback:C,ariaOwns:d});v&&(this.hideEditorPopup=v.hideFunc)}detach(){this.getGui().remove()}destroy(){this.destroyRenderer(),this.destroyEditor(),this.removeControls(),super.destroy()}},l$=class extends o5{constructor(e,t,i){super(),this.cellComps=new Map,this.beans=t,this.rowCtrl=e;let o=e2({tag:"div",role:"row",attrs:{"comp-id":`${this.getCompId()}`}});this.setInitialStyle(o,i),this.setTemplateFromElement(o);let r=o.style;this.domOrder=this.rowCtrl.getDomOrder(),e.setComp({setDomOrder:e=>this.domOrder=e,setCellCtrls:e=>this.setCellCtrls(e),showFullWidth:e=>
1this.showFullWidth(e),getFullWidthCellRenderer:()=>this.fullWidthCellRenderer,getFullWidthCellRendererParams:()=>this.fullWidthCellRendererParams,toggleCss:(e,t)=>this.toggleCss(e,t),setUserStyles:e=>eU(o,e),setTop:e=>r.top=e,setTransform:e=>r.transform=e,setRowIndex:e=>o.setAttribute("row-index",e),setRowId:e=>o.setAttribute("row-id",e),setRowBusinessKey:e=>o.setAttribute("row-business-key",e),refreshFullWidth:e=>{let t=e();return this.fullWidthCellRendererParams=t,this.fullWidthCellRenderer?.refresh?.(t)??!1}},this.getGui(),i,void 0),this.addDestroyFunc(()=>{e.unsetComp(i)})}setInitialStyle(e,t){let i=this.rowCtrl.getInitialTransform(t);if(i)e.style.setProperty("transform",i);else{let i=this.rowCtrl.getInitialRowTop(t);i&&e.style.setProperty("top",i)}}showFullWidth(e){let t=t=>{if(this.isAlive()){let i=t.getGui();this.getGui().appendChild(i),this.rowCtrl.setupDetailRowAutoHeight(i),this.setFullWidthRowComp(t,e.params)}else this.beans.context.destroyBean(t)};e.newAgStackInstance().then(t)}setCellCtrls(e){let t=new Map(this.cellComps);for(let i of e){let e=i.instanceId;this.cellComps.has(e)?t.delete(e):this.newCellComp(i)}this.destroyCells(t),this.ensureDomOrder(e)}ensureDomOrder(e){if(!this.domOrder)return;let t=[];for(let i of e){let e=this.cellComps.get(i.instanceId);e&&t.push(e.getGui())}eW(this.getGui(),t)}newCellComp(e){let t=this.beans.editSvc?.isEditing(e,{withOpenEditor:!0})??!1,i=new l_(this.beans,e,this.rowCtrl.printLayout,this.getGui(),t);this.cellComps.set(e.instanceId,i),this.getGui().appendChild(i.getGui())}destroy(){super.destroy(),this.destroyCells(this.cellComps)}setFullWidthRowComp(e,t){this.fullWidthCellRenderer=e,this.fullWidthCellRendererParams=t,this.addDestroyFunc(()=>{this.fullWidthCellRenderer=this.beans.context.destroyBean(this.fullWidthCellRenderer),this.fullWidthCellRendererParams=void 0})}destroyCells(e){for(let t of e.values()){if(!t)continue;let e=t.cellCtrl.instanceId;this.cellComps.get(e)===t&&(t.detach(),t.destroy(),this.cellComps.delete(e))}}},lq={selector:"AG-ROW-CONTAINER",component:class extends o5{constructor(e){super(),this.eViewport=oZ,this.eContainer=oZ,this.eSpannedContainer=oZ,this.rowCompsNoSpan={},this.rowCompsWithSpan={},this.name=e?.name,this.options=lD[this.name]}postConstruct(){this.setTemplate(function(e,t,i){let o=!!i.gos.get("enableCellSpan")&&!!t.getSpannedRowCtrls,r={tag:"div",ref:"eContainer",cls:lk(e),role:"rowgroup"};if("center"===t.type||o){let t={tag:"div",ref:"eSpannedContainer",cls:`ag-spanning-container ${lT(e)}`,role:"presentation"};return r.role="presentation",{tag:"div",ref:"eViewport",cls:`ag-viewport ${lM(e)}`,role:"rowgroup",children:[r,o?t:null]}}return r}(this.name,this.options,this.beans)),this.createManagedBean(new lz(this.name)).setComp({setHorizontalScroll:e=>this.eViewport.scrollLeft=e,setViewportHeight:e=>this.eViewport.style.height=e,setRowCtrls:({rowCtrls:e})=>this.setRowCtrls(e),setSpannedRowCtrls:e=>this.setRowCtrls(e,!0),setDomOrder:e=>{this.domOrder=e},setContainerWidth:e=>{this.eContainer.style.width=e,this.eSpannedContainer&&(this.eSpannedContainer.style.width=e)},setOffsetTop:e=>{let t=`translateY(${e})`;this.eContainer.style.transform=t,this.eSpannedContainer&&(this.eSpannedContainer.style.transform=t)}},this.eContainer,this.eSpannedContainer,this.eViewport)}destroy(){this.setRowCtrls([]),this.setRowCtrls([],!0),super.destroy(),this.lastPlacedElement=null}setRowCtrls(e,t){let{beans:i,options:o}=this,r=t?this.eSpannedContainer:this.eContainer,s=t?{...this.rowCompsWithSpan}:{...this.rowCompsNoSpan},n={};t?this.rowCompsWithSpan=n:this.rowCompsNoSpan=n,this.lastPlacedElement=null;let l=[];for(let t of e){let e,r=t.instanceId,a=s[r];if(a)e=a,delete s[r];
1else{if(!t.rowNode.displayed)continue;e=new l$(t,i,o.type)}n[r]=e,l.push([e,!a])}this.removeOldRows(Object.values(s)),this.addRowNodes(l,r)}addRowNodes(e,t){let{domOrder:i}=this;for(let[o,r]of e){let e=o.getGui();i?this.ensureDomOrder(e,t):r&&t.appendChild(e)}}removeOldRows(e){for(let t of e)t.getGui().remove(),t.destroy()}ensureDomOrder(e,t){ez(t,e,this.lastPlacedElement),this.lastPlacedElement=e}}};function lK(e,t){return t.map(t=>{let i=`e${t[0].toUpperCase()+t.substring(1)}RowContainer`;return e[i]={name:t},{tag:"ag-row-container",ref:i,attrs:{name:t}}})}var lj={selector:"AG-GRID-BODY",component:class extends o5{constructor(){super(...arguments),this.eGridRoot=oZ,this.eBodyViewport=oZ,this.eStickyTop=oZ,this.eStickyBottom=oZ,this.eTop=oZ,this.eBottom=oZ,this.eBody=oZ}postConstruct(){let{overlays:e,rangeSvc:t}=this.beans,i=e?.getOverlayWrapperSelector(),{paramsMap:o,elementParams:r}=function(e){let t={},i={tag:"div",ref:"eGridRoot",cls:"ag-root ag-unselectable",children:[{tag:"ag-header-root"},{tag:"div",ref:"eTop",cls:"ag-floating-top",role:"presentation",children:lK(t,["topLeft","topCenter","topRight","topFullWidth"])},{tag:"div",ref:"eBody",cls:"ag-body",role:"presentation",children:[{tag:"div",ref:"eBodyViewport",cls:"ag-body-viewport",role:"presentation",children:lK(t,["left","center","right","fullWidth"])},{tag:"ag-fake-vertical-scroll"}]},{tag:"div",ref:"eStickyTop",cls:"ag-sticky-top",role:"presentation",children:lK(t,["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"])},{tag:"div",ref:"eStickyBottom",cls:"ag-sticky-bottom",role:"presentation",children:lK(t,["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"])},{tag:"div",ref:"eBottom",cls:"ag-floating-bottom",role:"presentation",children:lK(t,["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"])},{tag:"ag-fake-horizontal-scroll"},e?{tag:"ag-overlay-wrapper"}:null]};
1return{paramsMap:t,elementParams:i}}(!!i);this.setTemplate(r,[...i?[i]:[],n5,le,n0,lq],o);let s=(e,t)=>{let i=`${e}px`;t.style.minHeight=i,t.style.height=i};this.ctrl=this.createManagedBean(new lU),this.ctrl.setComp({setRowAnimationCssOnBodyViewport:(e,t)=>this.setRowAnimationCssOnBodyViewport(e,t),setColumnCount:e=>ed(this.getGui(),e),setRowCount:e=>el(this.getGui(),e),setTopHeight:e=>s(e,this.eTop),setBottomHeight:e=>s(e,this.eBottom),setTopInvisible:e=>this.eTop.classList.toggle("ag-invisible",e),setBottomInvisible:e=>this.eBottom.classList.toggle("ag-invisible",e),setStickyTopHeight:e=>this.eStickyTop.style.height=e,setStickyTopTop:e=>this.eStickyTop.style.top=e,setStickyTopWidth:e=>this.eStickyTop.style.width=e,setStickyBottomHeight:e=>{this.eStickyBottom.style.height=e,this.eStickyBottom.classList.toggle("ag-invisible","0px"===e)},setStickyBottomBottom:e=>this.eStickyBottom.style.bottom=e,setStickyBottomWidth:e=>this.eStickyBottom.style.width=e,setColumnMovingCss:(e,t)=>this.toggleCss(e,t),updateLayoutClasses:(e,t)=>{for(let e of[this.eBodyViewport.classList,this.eBody.classList])e.toggle(n1.AUTO_HEIGHT,t.autoHeight),e.toggle(n1.NORMAL,t.normal),e.toggle(n1.PRINT,t.print);this.toggleCss(n1.AUTO_HEIGHT,t.autoHeight),this.toggleCss(n1.NORMAL,t.normal),this.toggleCss(n1.PRINT,t.print)},setAlwaysVerticalScrollClass:(e,t)=>this.eBodyViewport.classList.toggle(lW,t),registerBodyViewportResizeListener:e=>{let t=eX(this.beans,this.eBodyViewport,e);this.addDestroyFunc(()=>t())},setPinnedTopBottomOverflowY:e=>this.eTop.style.overflowY=this.eBottom.style.overflowY=e,setCellSelectableCss:(e,t)=>{for(let i of[this.eTop,this.eBodyViewport,this.eBottom])i.classList.toggle(e,t)},setBodyViewportWidth:e=>this.eBodyViewport.style.width=e,setGridRootRole:e=>K(this.eGridRoot,e)},this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop,this.eStickyBottom),(t&&ik(this.gos)||iH(this.gos))&&$(this.getGui(),"multiselectable",!0)}setRowAnimationCssOnBodyViewport(e,t){let i=this.eBodyViewport.classList;i.toggle("ag-row-animation",t),i.toggle("ag-row-no-animation",!t)}}},lY={TAB_GUARD:"ag-tab-guard",TAB_GUARD_TOP:"ag-tab-guard-top",TAB_GUARD_BOTTOM:"ag-tab-guard-bottom"},lQ=class extends tu{constructor(e,t){super(),this.stopPropagationCallbacks=t,this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;let{comp:i,eTopGuard:o,eBottomGuard:r,focusTrapActive:s,forceFocusOutWhenTabGuardsAreEmpty:n,isFocusableContainer:l,focusInnerElement:a,onFocusIn:d,onFocusOut:h,shouldStopEventPropagation:u,onTabKeyDown:c,handleKeyDown:g,isEmpty:p,eFocusableElement:m}=e;this.comp=i,this.eTopGuard=o,this.eBottomGuard=r,this.providedFocusInnerElement=a,this.eFocusableElement=m,this.focusTrapActive=!!s,this.forceFocusOutWhenTabGuardsAreEmpty=!!n,this.isFocusableContainer=!!l,this.providedFocusIn=d,this.providedFocusOut=h,this.providedShouldStopEventPropagation=u,this.providedOnTabKeyDown=c,this.providedHandleKeyDown=g,this.providedIsEmpty=p}postConstruct(){for(let e of(this.createManagedBean(new se(this.eFocusableElement,this.stopPropagationCallbacks,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e)})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard]))this.addManagedElementListeners(e,{focus:this.onFocus.bind(this)})}handleKeyDown(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()}activateTabGuards(){if(this.forcingFocusOut)return;let e=this.gos.get("tabIndex");this.comp.setTabIndex(e.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(e){if(this.isFocusableContainer&&!this.eFocusableElement.contains(e.relatedTarget)&&!this.allowFocus)return void this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}if(this.forceFocusOutWhenTabGuardsAreEmpty&&(this.providedIsEmpty?this.providedIsEmpty():0===r4(this.eFocusableElement,".ag-tab-guard").length))return void this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);if(this.isFocusableContainer&&this.eFocusableElement.contains(e.relatedTarget))return;let t=e.target===this.eBottomGuard;(this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t))||!this.forceFocusOutWhenTabGuardsAreEmpty||this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard)}findNextElementOutsideAndFocus(e){let t,i,o=r4(N(this.beans).body,null,!0),r=o.indexOf(e?this.eTopGuard:this.eBottomGuard);if(-1===r)return;e?(t=0,i=r):(t=r+1,i=o.length);let s=o.slice(t,i),n=this.gos.get("tabIndex");s.sort((e,t)=>
1{let i=Number.parseInt(e.getAttribute("tabindex")||"0"),o=Number.parseInt(t.getAttribute("tabindex")||"0");return o===n?1:i===n?-1:0===i?1:0===o?-1:i-o}),s[e?s.length-1:0]?.focus()}onFocusIn(e){this.focusTrapActive||this.forcingFocusOut||(this.providedFocusIn&&this.providedFocusIn(e),this.isFocusableContainer||this.deactivateTabGuards())}onFocusOut(e){!this.focusTrapActive&&(this.providedFocusOut&&this.providedFocusOut(e),this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards())}onTabKeyDown(e){if(this.providedOnTabKeyDown)return void this.providedOnTabKeyDown(e);if(this.focusTrapActive||e.defaultPrevented)return;let t=this.tabGuardsAreActive();t&&this.deactivateTabGuards();let i=this.getNextFocusableElement(e.shiftKey);t&&setTimeout(()=>this.activateTabGuards(),0),i&&(i.focus(),e.preventDefault())}focusInnerElement(e=!1){let t=r4(this.eFocusableElement);return this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(-1,1)),!!t.length&&(t[e?t.length-1:0].focus({preventScroll:!0}),!0)}getNextFocusableElement(e){return r8(this.beans,this.eFocusableElement,!1,e)}forceFocusOutOfContainer(e=!1){if(this.forcingFocusOut)return;let t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,t.focus(),window.setTimeout(()=>{this.forcingFocusOut=!1,this.activateTabGuards()})}isTabGuard(e,t){return e===this.eTopGuard&&!t||e===this.eBottomGuard&&(t??!0)}setAllowFocus(e){this.allowFocus=e}},lZ=class extends tu{constructor(e,t){super(),this.comp=e,this.stopPropagationCallbacks=t}initialiseTabGuard(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();let{eTopGuard:t,eBottomGuard:i,eFocusableElement:o,stopPropagationCallbacks:r}=this,s=[t,i];this.addTabGuards(t,i);let{focusTrapActive:n=!1,onFocusIn:l,onFocusOut:a,focusInnerElement:d,handleKeyDown:h,onTabKeyDown:u,shouldStopEventPropagation:c,isEmpty:g,forceFocusOutWhenTabGuardsAreEmpty:p,isFocusableContainer:m}=e;this.tabGuardCtrl=this.createManagedBean(new lQ({comp:{setTabIndex:e=>{for(let t of s)null==e?t.removeAttribute("tabindex"):t.setAttribute("tabindex",e)}},focusTrapActive:n,eTopGuard:t,eBottomGuard:i,eFocusableElement:o,onFocusIn:l,onFocusOut:a,focusInnerElement:d,handleKeyDown:h,onTabKeyDown:u,shouldStopEventPropagation:c,isEmpty:g,forceFocusOutWhenTabGuardsAreEmpty:p,isFocusableContainer:m},r))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(e){let t=N(this.beans).createElement("div"),i="top"===e?lY.TAB_GUARD_TOP:lY.TAB_GUARD_BOTTOM;return t.classList.add(lY.TAB_GUARD,i),K(t,"presentation"),t}addTabGuards(e,t){let i=this.eFocusableElement;i.prepend(e),i.append(t)}removeAllChildrenExceptTabGuards(){let e=[this.eTopGuard,this.eBottomGuard];eH(this.comp.getFocusableElement()),this.addTabGuards(...e)}forceFocusOutOfContainer(e=!1){this.tabGuardCtrl.forceFocusOutOfContainer(e)}appendChild(e,t,i){eQ(t)||(t=t.getGui());let{eBottomGuard:o}=this;o?o.before(t):e(t,i)}destroy(){let{eTopGuard:e,eBottomGuard:t}=this;eV(e),eV(t),super.destroy()}},lJ=class extends o6{initialiseTabGuard(e,t){this.tabGuardFeature=this.createManagedBean(new lZ(this,t)),this.tabGuardFeature.initialiseTabGuard(e)}forceFocusOutOfContainer(e=!1){this.tabGuardFeature.forceFocusOutOfContainer(e)}appendChild(e,t){this.tabGuardFeature.appendChild(super.appendChild.bind(this),e,t)}},lX=class extends lJ{initialiseTabGuard(e){super.initialiseTabGuard(e,sr)}},l0=class extends tc{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}setComp(e,t,i){this.view=e,this.eGridHostDiv=t,this.eGui=i,this.eGui.setAttribute("grid-id",this.beans.context.getId());let{dragAndDrop:o,ctrlsSvc:r}=this.beans;o?.registerGridDropTarget(()=>this.eGui,this),this.createManagedBean(new n3(this.view)),this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr");let s=eX(this.beans,this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(()=>s()),r.register("gridCtrl",this)}isDetailGrid(){let e=r7(this.getGui());return e?.getAttribute("row-id")?.startsWith("detail")||!1}getOptionalSelectors(){let e=this.beans;return{paginationSelector:e.pagination?.getPaginationSelector(),gridHeaderDropZonesSelector:e.registry?.getSelector("AG-GRID-HEADER-DROP-ZONES"),sideBarSelector:e.sideBar?.getSelector(),statusBarSelector:e.registry?.getSelector("AG-STATUS-BAR"),watermarkSelector:e.licenseManager?.getWatermarkSelector()}}onGridSizeChanged(){this.eventSvc.dispatchEvent({type:"gridSizeChanged",clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(e){let{view:t}=this;!1===e?t.setCursor(null):t.setCursor(1===e?"ew-resize":"ns-resize")}disableUserSelect(e){this.view.setUserSelect(e?"none":null)}focusNextInnerContainer(e){let t=this.getFocusableContainers(),{indexWithFocus:i,nextIndex:o}=this.getNextFocusableIndex(t,e);if(o<0||o>=t.length)return!1;if(0===o){if(i>0){let{visibleCols:e,focusSvc:t}=this.beans,i=v(e.allCols);if(t.focusGridView({column:i,backwards:!0}))return!0}return!1}return this.focusContainer(t[o],e)}focusInnerElement(e){let t=this.gos.getCallback("focusGridInnerElement");
1if(t?.({fromBottom:!!e}))return!0;let i=this.getFocusableContainers(),{focusSvc:o,visibleCols:r}=this.beans,s=r.allCols;if(e){if(i.length>1)return this.focusContainer(v(i),e);let t=v(s);if(o.focusGridView({column:t,backwards:e}))return!0}if(0===this.gos.get("headerHeight")||sS(this.beans)){if(o.focusGridView({column:s[0],backwards:e}))return!0;for(let t=1;t<i.length;t++)if(r5(i[t].getGui(),e))return!0;return!1}return o.focusFirstHeader()}forceFocusOutOfContainer(e=!1){this.view.forceFocusOutOfContainer(e)}addFocusableContainer(e){this.additionalFocusableContainers.add(e)}removeFocusableContainer(e){this.additionalFocusableContainers.delete(e)}allowFocusForNextCoreContainer(e){let t=this.view.getFocusableContainers(),{nextIndex:i}=this.getNextFocusableIndex(t,e),o=t[i];o?this.focusContainer(o):this.forceFocusOutOfContainer(e)}isFocusable(){let e=this.beans;return!sR(e)||!sS(e)||!!e.sideBar?.comp?.isDisplayed()}getNextFocusableIndex(e,t){let i=O(this.beans),o=e.findIndex(e=>e.getGui().contains(i));return{indexWithFocus:o,nextIndex:o+(t?-1:1)}}focusContainer(e,t){e.setAllowFocus?.(!0);let i=r5(e.getGui(),t,!1,!0);return e.setAllowFocus?.(!1),i}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}},l1=class extends lX{constructor(e){super(),this.gridBody=oZ,this.sideBar=oZ,this.pagination=oZ,this.rootWrapperBody=oZ,this.eGridDiv=e}postConstruct(){let e={destroyGridUi:()=>this.destroyBean(this),setRtlClass:e=>this.addCss(e),forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:e=>{this.getGui().style.userSelect=null!=e?e:"",this.getGui().style.webkitUserSelect=null!=e?e:""},setCursor:e=>{this.getGui().style.cursor=null!=e?e:""}},t=this.createManagedBean(new l0),i=t.getOptionalSelectors(),o=this.createTemplate(i),r=[lj,...Object.values(i).filter(e=>!!e)];this.setTemplate(o,r),t.setComp(e,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:()=>void 0,focusInnerElement:e=>t.focusInnerElement(e),forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:()=>!t.isFocusable()})}insertGridIntoDom(){let e=this.getGui();this.eGridDiv.appendChild(e),this.addDestroyFunc(()=>{e.remove(),tM(this.gos,"Grid removed from DOM")})}updateLayoutClasses(e,t){let i=this.rootWrapperBody.classList,{AUTO_HEIGHT:o,NORMAL:r,PRINT:s}=n1,{autoHeight:n,normal:l,print:a}=t;i.toggle(o,n),i.toggle(r,l),i.toggle(s,a),this.toggleCss(o,n),this.toggleCss(r,l),this.toggleCss(s,a)}createTemplate(e){let t=e.gridHeaderDropZonesSelector?{tag:"ag-grid-header-drop-zones"}:null,i=e.sideBarSelector?{tag:"ag-side-bar",ref:"sideBar"}:null,o=e.statusBarSelector?{tag:"ag-status-bar"}:null,r=e.watermarkSelector?{tag:"ag-watermark"}:null;return{tag:"div",cls:"ag-root-wrapper",role:"presentation",children:[t,{tag:"div",ref:"rootWrapperBody",cls:"ag-root-wrapper-body",role:"presentation",children:[{tag:"ag-grid-body",ref:"gridBody"},i]},o,e.paginationSelector?{tag:"ag-pagination",ref:"pagination"}:null,r]}}getFocusableElement(){return this.rootWrapperBody}forceFocusOutOfContainer(e=!1){if(!e&&this.pagination?.isDisplayed())return void this.pagination.forceFocusOutOfContainer(e);super.forceFocusOutOfContainer(e)}getFocusableContainers(){let e=[this.gridBody];for(let t of[this.sideBar,this.pagination])t&&e.push(t);return e.filter(e=>eO(e.getGui()))}},l3=(e,t)=>{for(let i of Object.keys(t))t[i]=e;return t},l2={dispatchEvent:"CommunityCore",...l3("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0,isModuleRegistered:0}),...l3("GridState",{getState:0,setState:0}),...l3("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0}),...l3("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0}),...l3("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0}),...l3("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0}),...l3("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0}),...l3("ValueCache",{expireValueCache:0}),...l3("CellApi",{getCellValue:0}),...l3("SharedMenu",{showColumnMenu:0,hidePopupMenu:0}),...l3("Sort",{onSortChanged:0}),...l3("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0,forEachPinnedRow:0}),...l3("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0}),...l3("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,get
1SizesForCurrentTheme:0,getCellRendererInstances:0}),...l3("HighlightChanges",{flashCells:0}),...l3("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0,getRowDropPositionIndicator:0,setRowDropPositionIndicator:0}),...l3("ColumnApi",{getColumnDefs:0,getColumnDef:0,getDisplayNameForColumn:0,getColumn:0,getColumns:0,applyColumnState:0,getColumnState:0,resetColumnState:0,isPinning:0,isPinningLeft:0,isPinningRight:0,getDisplayedColAfter:0,getDisplayedColBefore:0,setColumnsVisible:0,setColumnsPinned:0,getAllGridColumns:0,getDisplayedLeftColumns:0,getDisplayedCenterColumns:0,getDisplayedRightColumns:0,getAllDisplayedColumns:0,getAllDisplayedVirtualColumns:0}),...l3("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0}),...l3("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0}),...l3("ColumnMove",{moveColumnByIndex:0,moveColumns:0}),...l3("ColumnResize",{setColumnWidths:0}),...l3("ColumnHover",{isColumnHovered:0}),...l3("EditCore",{getCellEditorInstances:0,getEditingCells:0,getEditRowValues:0,stopEditing:0,startEditingCell:0,isEditing:0,validateEdit:0}),...l3("BatchEdit",{startBatchEdit:0,cancelBatchEdit:0,commitBatchEdit:0,isBatchEditing:0}),...l3("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0}),...l3("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0}),...l3("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0,hideColumnFilter:0,getColumnFilterHandler:0,doFilterAction:0}),...l3("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0}),...l3("Find",{findGetActiveMatch:0,findGetTotalMatches:0,findGoTo:0,findNext:0,findPrevious:0,findGetNumMatches:0,findGetParts:0,findClearActive:0,findRefresh:0}),...l3("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0}),...l3("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0}),...l3("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0}),...l3("ClientSideRowModelApi",{onGroupExpandedOrCollapsed:0,refreshClientSideRowModel:0,isRowDataEmpty:0,forEachLeafNode:0,forEachNodeAfterFilter:0,forEachNodeAfterFilterAndSort:0,applyTransaction:0,applyTransactionAsync:0,flushAsyncTransactions:0,getBestCostNodeSelection:0,onRowHeightChanged:0,resetRowHeights:0}),...l3("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0}),...l3("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0}),...l3("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0}),...l3("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0}),...l3("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0}),...l3("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0}),...l3("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0}),...l3("ContextMenu",{showContextMenu:0}),...l3("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0}),...l3("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0}),...l3("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0}),...l3("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFu
1nc:0}),...l3("SharedPivot",{isPivotMode:0,getPivotResultColumn:0,setValueColumns:0,getValueColumns:0,removeValueColumns:0,addValueColumns:0,setPivotColumns:0,removePivotColumns:0,addPivotColumns:0,getPivotColumns:0,setPivotResultColumns:0,getPivotResultColumns:0}),...l3("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0,onRowHeightChanged:0,resetRowHeights:0}),...l3("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0}),...l3("StatusBar",{getStatusPanel:0}),...l3("AiToolkit",{getStructuredSchema:0})},l6={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},l4=(e,t)=>e.eventSvc.dispatchEvent(t),l5=class{};Reflect.defineProperty(l5,"name",{value:"GridApi"});var l8=class extends tc{constructor(){super(),this.beanName="apiFunctionSvc",this.api=new l5,this.fns={...l6,dispatchEvent:l4},this.preDestroyLink="";let{api:e}=this;for(let t of Object.keys(l2))e[t]=this.makeApi(t)[t]}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(e,t){let{fns:i,beans:o}=this;i!==l6&&(i[e]=o?.validation?.validateApiFunction(e,t)??t)}makeApi(e){return{[e]:(...t)=>{let{beans:i,fns:{[e]:o}}=this;return o?o(i,...t):this.apiNotFound(e)}}}apiNotFound(e){let{beans:t,gos:i,preDestroyLink:o}=this;if(t){let t=l2[e];i.assertModuleRegistered(t,`api.${e}`)&&tX(27,{fnName:e,module:t})}else tX(26,{fnName:e,preDestroyLink:o})}destroy(){super.destroy(),this.fns=l6,this.beans=null}};function l7(e){return e.context.getId()}function l9(e,t){e.gos.updateGridOptions({options:t})}var ae={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{draggable:"true"}},at=class extends o5{constructor(e,t,i){super(ae),this.rowNode=e,this.column=t,this.eCell=i}postConstruct(){this.getGui().appendChild(o1("rowDrag",this.beans,null)),this.addGuiEventListener("mousedown",e=>{e.stopPropagation()}),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(e){let{rowNode:t,column:i,eCell:o,gos:r}=this,s=i.getColDef().dndSourceOnRowDrag,n=e.dataTransfer;if(n.setDragImage(o,0,0),s)s(iK(r,{rowNode:t,dragEvent:e}));else try{let e=JSON.stringify(t.data);n.setData("application/json",e),n.setData("text/plain",e)}catch(e){}}checkVisibility(){let e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)}},ai=(e,t)=>{if(null!=t&&e?.setPointerCapture)try{return e.setPointerCapture(t),e.hasPointerCapture(t)}catch{}return!1},ao=e=>{let{eElement:t,onLost:i}=e;t&&i&&(t.removeEventListener("lostpointercapture",i),e.onLost=null)},ar={passive:!0},as={passive:!1},an=e=>{if(p){if(p.has(e))return!1}else p=new WeakSet;return p.add(e),!0},al=class extends tu{constructor(){super(...arguments),this.beanName="dragSvc",this.dragging=!1,this.drag=null,this.dragSources=[]}get startTarget(){return this.drag?.start.target??null}isPointer(){return!!g?.has(G(this.beans))}hasPointerCapture(){let e=this.drag?.pointerCapture;return!!(e&&this.beans.eRootDiv.hasPointerCapture?.(e.pointerId))}destroy(){this.drag&&this.cancelDrag();let e=this.dragSources;for(let t of e)aa(t);e.length=0,super.destroy()}removeDragSource(e){let t=this.dragSources;for(let i=0,o=t.length;i<o;++i){let o=t[i];if(o.params===e){t.splice(i,1),aa(o);break}}}addDragSource(e){let t;if(!this.isAlive())return;let{eElement:i,includeTouch:o}=e,r=[];if(o){let e=i.style;e&&(t=e.touchAction,e.touchAction="none")}let s={handlers:r,params:e,oldTouchAction:t};this.dragSources.push(s),to(r,[i,"pointerdown",t=>this.onPointerDown(e,t),as],[i,"mousedown",t=>this.onMouseDown(e,t)]);let n=this.gos.get("suppressTouch");o&&!n&&to(r,[i,"touchstart",t=>this.onTouchStart(e,t),as])}cancelDrag(e){let t=this.drag;e??(e=t?.eElement),e&&this.eventSvc.dispatchEvent({type:"dragCancelled",target:e}),t?.params.onDragCancel?.(),this.destroyDrag()}
1shouldPreventMouseEvent(e){let t=e.type;return("mousemove"===t||"pointermove"===t)&&e.cancelable&&tt(this.beans,e)&&!eR(ah(e))}initDrag(e,...t){this.drag=e;let i=this.beans,o=e=>this.onScroll(e),r=e=>this.onKeyDown(e),s=G(i),n=N(i);to(e.handlers,[s,"contextmenu",ts],[s,"keydown",r],[n,"scroll",o,{capture:!0}],[n.defaultView||window,"scroll",o],...t)}destroyDrag(){this.dragging=!1;let e=this.drag;if(e){let t=e.rootEl;g?.get(t)===e&&g.delete(t),this.drag=null,(e=>{if(!e)return;ao(e);let{eElement:t,pointerId:i}=e;if(t){try{t.releasePointerCapture(i)}catch{}e.eElement=null}})(e.pointerCapture),tr(e.handlers)}}onPointerDown(e,t){if(this.isPointer())return;let i=this.beans;if(p?.has(t))return;let o=t.pointerType;if("touch"===o&&(i.gos.get("suppressTouch")||!e.includeTouch||(e.stopPropagationForTouch&&t.stopPropagation(),eR(ah(t)))))return;if(!t.isPrimary||"mouse"===o&&0!==t.button)return;this.destroyDrag();let r=G(i),s=e.eElement,n=t.pointerId,l=new ad(r,e,t,n);g??(g=new WeakMap),g.set(r,l);let a=e=>{e.pointerId===n&&this.onMouseOrPointerMove(e)},d=e=>{e.pointerId===n&&this.onMouseOrPointerUp(e)},h=e=>{e.pointerId===n&&an(e)&&this.cancelDrag()},u=e=>this.draggingPreventDefault(e);this.initDrag(l,[r,"pointerup",d],[r,"pointercancel",h],[r,"pointermove",a,as],[r,"touchmove",u,as],[s,"mousemove",u,as]),0===e.dragStartPixels?this.onMouseOrPointerMove(t):an(t)}onTouchStart(e,t){if(this.gos.get("suppressTouch")||!e.includeTouch||!an(t)||eR(ah(t)))return;if(e.stopPropagationForTouch&&t.stopPropagation(),this.isPointer()){this.dragging&&ts(t);return}this.destroyDrag();let i=this.beans,o=new ad(G(i),e,t.touches[0]),r=e=>this.onTouchMove(e),s=e=>this.onTouchUp(e),n=e=>this.onTouchCancel(e),l=e=>this.draggingPreventDefault(e),a=G(i),d=t.target??e.eElement;this.initDrag(o,[d,"touchmove",r,ar],[d,"touchend",s,ar],[d,"touchcancel",n,ar],[a,"touchmove",l,as],[a,"touchend",s,as],[a,"touchcancel",n,as]),0===e.dragStartPixels&&this.onMove(o.start)}draggingPreventDefault(e){this.dragging&&ts(e)}onMouseDown(e,t){if(0!==t.button||p?.has(t)||this.isPointer())return;let i=this.beans;this.destroyDrag();let o=new ad(G(i),e,t),r=e=>this.onMouseOrPointerMove(e),s=e=>this.onMouseOrPointerUp(e),n=G(i);this.initDrag(o,[n,"mousemove",r],[n,"mouseup",s]),0===e.dragStartPixels?this.onMouseOrPointerMove(t):an(t)}onScroll(e){if(!an(e))return;let t=this.drag,i=t?.lastDrag;i&&this.dragging&&t.params?.onDragging?.(i)}onMouseOrPointerMove(e){an(e)&&(rK()&&N(this.beans).getSelection()?.removeAllRanges(),this.shouldPreventMouseEvent(e)&&ts(e),this.onMove(e))}onTouchCancel(e){let t=this.drag;t&&an(e)&&te(t.start,e.changedTouches)&&this.cancelDrag()}onTouchMove(e){let t=this.drag;if(!t||!an(e))return;let i=te(t.start,e.touches);i&&(this.onMove(i),this.draggingPreventDefault(e))}onMove(e){let t=this.drag;if(!t)return;t.lastDrag=e;let i=t.params;if(!this.dragging){let o=t.start;if(e9(e,o,i.dragStartPixels??4)||(this.dragging=!0,i.capturePointer&&(t.pointerCapture=((e,t)=>{if("undefined"==typeof PointerEvent||!(t instanceof PointerEvent))return null;let i=t.pointerId;if(!ai(e,i))return null;let o={eElement:e,pointerId:i,onLost(e){var t=o,i=e;ao(t);let{eElement:r,pointerId:s}=t;r&&i.pointerId===s&&ai(r,s)}};return e.addEventListener("lostpointercapture",o.onLost),o})(this.beans.eRootDiv,e)),this.eventSvc.dispatchEvent({type:"dragStarted",target:i.eElement}),i.onDragStart?.(o),this.drag!==t)||(i.onDragging?.(o),this.drag!==t))return}i.onDragging?.(e)}onTouchUp(e){let t=this.drag;t&&an(e)&&this.onUp(te(t.start,e.changedTouches))}onMouseOrPointerUp(e){an(e)&&this.onUp(e)}onUp(e){let t=this.drag;t&&(e||(e=t.lastDrag),e&&this.dragging&&(this.dragging=!1,t.params.onDragStop?.(e),this.eventSvc.dispatchEvent({type:"dragStopped",target:t.params.eElement})),this.destroyDrag())}onKeyDown(e){e.key===oK.ESCAPE&&this.cancelDrag()}},aa=e=>{tr(e.handlers);let t=e.oldTouchAction;if(null!=t){let i=e.params.eElement.style;i&&(i.touchAction=t)}},ad=class{constructor(e,t,i,o=null){this.rootEl=e,this.params=t,this.start=i,this.pointerId=o,this.handlers=[],this.lastDrag=null,this.pointerCapture=null,this.eElement=t.eElement}},ah=e=>{let t=e.target;return t instanceof Element?t:null},au=class extends al{shouldPreventMouseEvent(e){return this.gos.get("enableCellTextSelection")&&super.shouldPreventMouseEvent(e)}},ac=class extends tc{constructor(){super(...arguments),this.beanName="horizontalResizeSvc"}addResizeBar(e){let t={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e),onDragCancel:this.onDragStop.bind(this,e),includeTouch:!0,stopPropagationForTouch:!0},{dragSvc:i}=this.beans;return i.addDragSource(t),()=>i.removeDragSource(t)}onDragStart(e,t){this.dragStartX=t.clientX,this.setResizeIcons();let i=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(i)}setResizeIcons(){let e=this.beans.ctrlsSvc.get("gridCtrl");
1e.setResizeCursor(1),e.disableUserSelect(!0)}onDragStop(e){e.onResizeEnd(this.resizeAmount),this.resetIcons()}resetIcons(){let e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(!1),e.disableUserSelect(!1)}onDragging(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)}},ag={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{"aria-hidden":"true"}},ap={skipAriaHidden:!0},am=class extends o5{constructor(e,t,i,o,r,s=!1){super(),this.cellValueFn=e,this.rowNode=t,this.column=i,this.customGui=o,this.dragStartPixels=r,this.alwaysVisible=s,this.dragSource=null,this.disabled=!1}isCustomGui(){return null!=this.customGui}postConstruct(){let{beans:e,customGui:t}=this;t?this.setDragElement(t,this.dragStartPixels):(this.setTemplate(ag),this.getGui().appendChild(o1("rowDrag",e,null)),this.addDragSource()),this.alwaysVisible||this.initCellDrag()}initCellDrag(){let{beans:e,rowNode:t}=this,i=this.refreshVisibility.bind(this);this.addManagedListeners(e.eventSvc,{rowDragVisibilityChanged:i}),this.addManagedListeners(t,{dataChanged:i,cellChanged:i}),this.refreshVisibility()}setDragElement(e,t){this.setTemplateFromElement(e,void 0,void 0,!0),this.addDragSource(t)}refreshVisibility(){if(this.alwaysVisible)return;let{beans:e,column:t,rowNode:i}=this,{gos:o,dragAndDrop:r,rowDragSvc:s}=e,n=s?.visibility,l=!("suppress"===n||"hidden"===n&&!r?.hasExternalDropZones()),a=l;if(l&&!this.isCustomGui()&&t){let e=t.getColDef().rowDrag;!1===e?l=!1:(a=t.isRowDrag(i),l="function"==typeof e||a)}l&&a&&i.footer&&o.get("rowDragManaged")&&(a=!1,l=!0),a&&(a=l),l||this.setDisplayed(l,ap),a||this.setVisible(a,ap),this.setDisabled(!a||"disabled"===n&&!r?.hasExternalDropZones()),l&&this.setDisplayed(l,ap),a&&this.setVisible(a,ap)}setDisabled(e){e!==this.disabled&&(this.disabled=e,this.getGui()?.classList?.toggle("ag-drag-handle-disabled",e))}getSelectedNodes(){let e=this.rowNode;if(!this.gos.get("rowDragMultiRow"))return[e];let t=this.beans.selectionSvc?.getSelectedNodes()??[];return -1!==t.indexOf(e)?t:[e]}getDragItem(){let{column:e,rowNode:t}=this;return{rowNode:t,rowNodes:this.getSelectedNodes(),columns:e?[e]:void 0,defaultTextValue:this.cellValueFn()}}addDragSource(e=4){if(this.dragSource&&this.removeDragSource(),this.gos.get("rowDragManaged")&&this.rowNode.footer)return;let t=this.getGui();if(this.gos.get("enableCellTextSelection")){this.removeMouseDownListener();let e=e8("pointerdown")?{pointerdown:ts}:{mousedown:ts};this.mouseDownListener=this.addManagedElementListeners(t,e)[0]}let i=this.getLocaleTextFunc();this.dragSource={type:2,eElement:t,dragItemName:e=>this.getDragItemName(e,i),getDragItem:()=>this.getDragItem(),dragStartPixels:e,dragSourceDomDataKey:this.gos.getDomDataKey()},this.beans.dragAndDrop.addDragSource(this.dragSource,!0)}getDragItemName(e,t){let i=e?.dragItem||this.getDragItem(),o=(e?.dropTarget?.rows.length??i.rowNodes?.length)||1,r=this.column?.getColDef()?.rowDragText??this.gos.get("rowDragText");if(r)return r(i,o);if(1!==o)return`${o} ${t("rowDragRows","rows")}`;let s=this.cellValueFn();return s||`1 ${t("rowDragRow","rows")}`}destroy(){this.removeDragSource(),this.removeMouseDownListener(),super.destroy()}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop.removeDragSource(this.dragSource),this.dragSource=null)}removeMouseDownListener(){this.mouseDownListener&&(this.mouseDownListener(),this.mouseDownListener=void 0)}},af=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=e.scrollAxis.includes("x"),this.scrollVertically=e.scrollAxis.includes("y"),this.scrollByTick=e.scrollByTick??20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}get scrolling(){return null!==this.tickingInterval}check(e,t=!1){let i=t||this.shouldSkipVerticalScroll();if(i&&this.shouldSkipHorizontalScroll())return;let o=this.scrollContainer.getBoundingClientRect(),r=this.scrollByTick;this.tickLeft=e.clientX<o.left+r,this.tickRight=e.clientX>
1o.right-r,this.tickUp=e.clientY<o.top+r&&!i,this.tickDown=e.clientY>o.bottom-r&&!i,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;let e=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){let t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){let t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-e),this.tickRight&&this.setHorizontalPosition(t+e)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}},aC=class{constructor(){this.reordered=!1,this.removals=[],this.updates=new Set,this.adds=new Set}},av=e=>{let t=e.childrenAfterGroup;for(;t?.length;){let e=t[0];if(e.sourceRowIndex>=0)return e;t=e.childrenAfterGroup}},aw=(e,t,i,o)=>{if(!t.size||!e)return!1;let r=!1,s=e.length??0,n=-1;i&&(i=(n=i.sourceRowIndex)<0?av(i):null)&&(n=i.sourceRowIndex),n<0||n>=s?n=s:!o&&++n;let l=n,a=Math.min(n,s-1);for(let e of t){let t=e.sourceRowIndex;t<l&&(l=t),t>a&&(a=t)}let d=l;for(let i=l;i<n;++i){let o=e[i];!t.has(o)&&(o.sourceRowIndex!==d&&(o.sourceRowIndex=d,e[d]=o,r=!0),++d)}let h=a;for(let i=a;i>=n;--i){let o=e[i];!t.has(o)&&(o.sourceRowIndex!==h&&(o.sourceRowIndex=h,e[h]=o,r=!0),--h)}for(let i of t)i.sourceRowIndex!==d&&(i.sourceRowIndex=d,e[d]=i,r=!0),++d;return r};function ab(e,t){return lp(e,t.target)?.getFocusedCellPosition()??null}function ay(e,t){let i,o,r=t9(e.gos,"normal");null!=t.clientX||null!=t.clientY?(i=t.clientX,o=t.clientY):(i=t.x,o=t.y);let{pageFirstPixel:s}=e.pageBounds.getCurrentPagePixelRange();if(o+=s,r){let t=e.ctrlsSvc.getScrollFeature(),r=t.getVScrollPosition();i+=t.getHScrollPosition().left,o+=r.top}return{x:i,y:o}}var aS=class{constructor(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}depthFirstSearchChangedPath(e,t){let{rowNode:i,children:o}=e;if(o)for(let e=0;e<o.length;++e)this.depthFirstSearchChangedPath(o[e],t);t(i)}depthFirstSearchEverything(e,t,i){let o=e.childrenAfterGroup;if(o)for(let e=0,r=o.length;e<r;++e){let r=o[e];r.childrenAfterGroup?this.depthFirstSearchEverything(r,t,i):i&&t(r)}t(e)}forEachChangedNodeDepthFirst(e,t=!1,i=!1){this.active&&!i?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)}executeFromRootNode(e){e(this.pathRoot.rowNode)}createPathItems(e){let t=e,i=0;for(;!this.mapToItems[t.id];){let e={rowNode:t,children:null};this.mapToItems[t.id]=e,i++,t=t.parent}return i}populateColumnsMap(e,t){if(!this.keepingColumns||!t)return;let i=e;for(;i;){for(let e of(this.nodeIdsToColumns[i.id]||(this.nodeIdsToColumns[i.id]={}),t))this.nodeIdsToColumns[i.id][e.getId()]=!0;i=i.parent}}linkPathItems(e,t){let i=e;for(let e=0;e<t;e++){let e=this.mapToItems[i.id],t=this.mapToItems[i.parent.id];t.children||(t.children=[]),t.children.push(e),i=i.parent}}addParentNode(e,t){if(!e||e.isRowPinned())return;let i=this.createPathItems(e);this.linkPathItems(e,i),this.populateColumnsMap(e,t)}canSkip(e){return this.active&&!this.mapToItems[e.id]}getValueColumnsForNode(e,t){if(!this.keepingColumns)return t;let i=this.nodeIdsToColumns[e.id];return t.filter(e=>i[e.getId()])}getNotValueColumnsForNode(e,t){if(!this.keepingColumns)return null;let i=this.nodeIdsToColumns[e.id];return t.filter(e=>!i[e.getId()])}},aR=class extends tc{constructor(e){super(),this.eContainer=e,this.lastDraggingEvent=null,this.autoScroll=null,this.autoScrollChanged=!1,this.autoScrollChanging=!1,this.autoScrollOldV=null}postConstruct(){let e=this.beans;e.ctrlsSvc.whenReady(this,t=>{let i=()=>t.gridBodyCtrl.scrollFeature.getVScrollPosition().top,o=new af({scrollContainer:t.gridBodyCtrl.eBodyViewport,scrollAxis:"y",getVerticalPosition:i,setVerticalPosition:e=>t.gridBodyCtrl.scrollFeature.setVerticalScrollPosition(e),onScrollCallback:()=>{let t=i();if(this.autoScrollOldV!==t){this.autoScrollOldV=t,this.autoScrollChanging=!0;return}let o=this.autoScrollChanging;this.autoScrollChanged=o,this.autoScrollChanging=!1,o&&(e.dragAndDrop?.nudge(),this.autoScrollChanged=!1)}});this.autoScroll=o,this.clearAutoScroll()})}destroy(){super.destroy(),this.clearAutoScroll(),this.autoScroll=null,this.lastDraggingEvent=null,this.eContainer=null}getContainer(){return this.eContainer}isInterestedIn(e){return 2===e}getIconName(e){return e?.dropTarget?.allowed===!1||"visible"!==this.beans.rowDragSvc.visibility?"notAllowed":"move"}getRowNodes(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];let t=e.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){let e=this.beans.selectionSvc?.getSelectedNodes();if(e&&e.indexOf(t)>=0)return e.slice().sort(ax)}return[t]}onDragEnter(e){this.dragging(e,!0)}onDragging(e){this.dragging(e,!1)}dragging(e,t){let{lastDraggingEvent:i,beans:o}=this;if(t){let t=this.getRowNodes(e);e.dragItem.rowNodes=t,aF(t,!0)}this.lastDraggingEvent=e;let r=e.fromNudge,s=this.makeRowsDrop(i,e,r,!1);o.rowDropHighlightSvc?.fromDrag(e),t&&this.dispatchGridEvent("rowDragEnter",e),this.dispatchGridEvent("rowDragMove",e);let n=this.autoScroll;s?.rowDragManaged&&s.moved&&s.allowed&&s.sameGrid&&!s.suppressMoveWhenRowDragging&&(!r&&!n?.scrolling||this.autoScrollChanged)&&this.dropRows(s),n?.check(e.event)}isFromThisGrid(e){return e.dragSource.dragSourceDomDataKey===this.gos.getDomDataKey()}makeRowsDrop(e,t,i,o){let{beans:r,gos:s}=this,n=this.newRowsDrop(t,o),l=r.rowModel;if(t.dropTarget=n,t.changed=!1,!n)return null;let{sameGrid:a,rootNode:d,source:h,target:u}=n;u??(u=l.getRow(l.getRowCount()-1)??null);let c=this.beans.groupEditSvc,g=!!c?.canSetParent(n),p=null;if(u?.footer){let e=nE(l,-1,u)??nE(l,1,u);g&&(p=u.sibling??d),u=e??null}u?.detail&&(u=u.parent),n.moved&&(n.moved=h!==u);let m=.5;
1if(u&&(m=a&&n.moved&&(p||!g)?h.rowIndex>u.rowIndex?-.5:.5:(n.y-u.rowTop-u.rowHeight/2)/u.rowHeight||0),!g&&a&&u&&n.moved&&t8(s)){let e=aP(l,n);e&&(m=h.rowIndex>e.rowIndex?-.5:.5,u=e,n.moved&&(n.moved=h!==u))}return n.target=u,n.newParent=p,n.pointerPos=aD(u,n.y),n.yDelta=m,c?.fixRowsDrop(n,g,i,m),this.validateRowsDrop(n,g,o),t.changed||(t.changed=aE(e?.dropTarget,n)),n}newRowsDrop(e,t){let{beans:i,gos:o}=this,r=i.rowModel.rootNode,s=!!t8(o)&&o.get("rowDragManaged"),n=o.get("suppressMoveWhenRowDragging"),l=this.isFromThisGrid(e),{rowNode:a,rowNodes:d}=e.dragItem;if(d||(d=a?[a]:[]),a||(a=d[0]),!a||!r)return null;let h=this.beans.dragAndDrop.isDropZoneWithinThisGrid(e),u=!0;!s||d.length&&"visible"===i.rowDragSvc.visibility&&(!n&&l||h)||(u=!1);let c=ay(i,e).y,g=this.getOverNode(c);return{api:i.gridApi,context:i.gridOptions.context,draggingEvent:e,rowDragManaged:s,suppressMoveWhenRowDragging:n,sameGrid:l,withinGrid:h,treeData:!1,rootNode:r,moved:a!==g,y:c,overNode:g,overIndex:g?.rowIndex??-1,pointerPos:"none",position:"none",source:a,target:g??null,newParent:null,rows:d,allowed:u,highlight:!t&&s&&n&&(h||!l),yDelta:0,inside:!1,droppedManaged:!1}}validateRowsDrop(e,t,i){let{source:o,target:r,yDelta:s,inside:n,moved:l,rowDragManaged:a,suppressMoveWhenRowDragging:d}=e;e.moved&&(e.moved=o!==r);let{position:h,fallbackPosition:u}=this.computeDropPosition(l,n,s);e.position=h,t||(e.newParent=null),this.enforceSuppressMoveWhenRowDragging(e,d,"initial");let c=(!a||e.allowed)&&this.gos.get("isRowValidDropPosition");c&&this.applyDropValidator(e,t,i,a,c),a&&(e.rows=this.filterRows(e)),this.beans.groupEditSvc?.clearNewSameParent(e,t),this.enforceSuppressMoveWhenRowDragging(e,d,"final"),"inside"!==e.position||e.allowed&&e.newParent||(e.position=u)}computeDropPosition(e,t,i){let o=i<0?"above":"below";return e?{position:t?"inside":o,fallbackPosition:o}:{position:"none",fallbackPosition:o}}enforceSuppressMoveWhenRowDragging(e,t,i){if(t){if("initial"===i){e.moved||(e.allowed=!1);return}e.rows.length&&"none"!==e.position||(e.allowed=!1)}}applyDropValidator(e,t,i,o,r){this.beans.groupEditSvc?.clearNewSameParent(e,t);let s=r(e);if(!s){e.allowed=!1;return}if("object"!=typeof s)return;void 0!==s.rows&&(e.rows=s.rows??[]),t&&void 0!==s.newParent&&(e.newParent=s.newParent),void 0!==s.target&&(e.target=s.target),s.position&&(e.position=s.position),void 0!==s.allowed?e.allowed=s.allowed:o||(e.allowed=!0);let n=e.draggingEvent;s.changed&&n&&(n.changed=!0),i||void 0===s.highlight||(e.highlight=s.highlight)}addRowDropZone(e){if(!e.getContainer())return void tX(55);let t=this.beans.dragAndDrop;if(t.findExternalZone(e.getContainer()))return void tX(56);let i={isInterestedIn:e=>2===e,getIconName:()=>"move",external:!0,...e.fromGrid?e:{getContainer:e.getContainer,onDragEnter:e.onDragEnter&&(t=>e.onDragEnter(this.rowDragEvent("rowDragEnter",t))),onDragLeave:e.onDragLeave&&(t=>e.onDragLeave(this.rowDragEvent("rowDragLeave",t))),onDragging:e.onDragging&&(t=>e.onDragging(this.rowDragEvent("rowDragMove",t))),onDragStop:e.onDragStop&&(t=>e.onDragStop(this.rowDragEvent("rowDragEnd",t))),onDragCancel:e.onDragCancel&&(t=>e.onDragCancel(this.rowDragEvent("rowDragCancel",t)))}};t.addDropTarget(i),this.addDestroyFunc(()=>t.removeDropTarget(i))}getRowDropZone(e){return{getContainer:this.getContainer.bind(this),onDragEnter:t=>{this.onDragEnter(t),e?.onDragEnter?.(this.rowDragEvent("rowDragEnter",t))},onDragLeave:t=>{this.onDragLeave(t),e?.onDragLeave?.(this.rowDragEvent("rowDragLeave",t))},onDragging:t=>{this.onDragging(t),e?.onDragging?.(this.rowDragEvent("rowDragMove",t))},onDragStop:t=>{this.onDragStop(t),e?.onDragStop?.(this.rowDragEvent("rowDragEnd",t))},onDragCancel:t=>{this.onDragCancel(t),e?.onDragCancel?.(this.rowDragEvent("rowDragCancel",t))},fromGrid:!0}}getOverNode(e){let{pageBounds:t,rowModel:i}=this.beans,o=e>t.getCurrentPagePixelRange().pageLastPixel?-1:i.getRowIndexAtPixel(e);return o>=0?i.getRow(o):void 0}rowDragEvent(e,t){let i=this.beans,{dragItem:o,dropTarget:r,event:s,vDirection:n}=t,l=r?.rootNode===i.rowModel.rootNode,a=l?r.y:ay(i,t).y,d=l?r.overNode:this.getOverNode(a),h=l?r.overIndex:d?.rowIndex??-1;return{api:i.gridApi,context:i.gridOptions.context,type:e,event:s,node:o.rowNode,nodes:o.rowNodes,overIndex:h,overNode:d,y:a,vDirection:n,rowsDrop:r}}
1dispatchGridEvent(e,t){let i=this.rowDragEvent(e,t);this.eventSvc.dispatchEvent(i)}onDragLeave(e){this.dispatchGridEvent("rowDragLeave",e),this.stopDragging(e,!1)}onDragStop(e){let t=this.lastDraggingEvent?.dropTarget??null,i=this.makeRowsDrop(this.lastDraggingEvent,e,!1,!0);this.dispatchGridEvent("rowDragEnd",e),i?.allowed&&i.rowDragManaged&&(!t?.droppedManaged||aE(t,i))&&this.dropRows(i),this.stopDragging(e,!0)}onDragCancel(e){this.dispatchGridEvent("rowDragCancel",e),this.stopDragging(e,!0)}stopDragging(e,t){this.clearAutoScroll(),this.beans.groupEditSvc?.stopDragging(t),this.beans.rowDropHighlightSvc?.fromDrag(null),aF(e.dragItem.rowNodes,!1),this.lastDraggingEvent=null}clearAutoScroll(){this.autoScroll?.ensureCleared(),this.autoScrollChanged=!1,this.autoScrollChanging=!1,this.autoScrollOldV=null}dropRows(e){return e.droppedManaged=!0,e.sameGrid?this.csrmMoveRows(e):this.csrmAddRows(e)}csrmAddRows({position:e,target:t,rows:i}){let o,r=iw(this.gos),s=this.beans.rowModel,n=i.filter(({data:e,rowPinned:t})=>!s.getRowNode(r?.({data:e,level:0,rowPinned:t})??e.id)).map(({data:e})=>e);if(0===n.length)return!1;if(t){let i=t.sourceRowIndex>=0?t:av(t);i&&(o=i.sourceRowIndex+ +("above"!==e))}return s.updateRowData({add:n,addIndex:o}),!0}filterRows(e){let t,{groupEditSvc:i}=this.beans,{rows:o,sameGrid:r}=e;for(let s=0,n=o.length;s<n;++s){let n=!0,l=o[s];(!l||l.footer||r&&l.destroyed&&!l.group||!this.csrmGetLeaf(l))&&(n=!1),n&&i&&!i.canDropRow(l,e)&&(n=!1),n?t?.push(l):t??(t=o.slice(0,s))}return t??o}csrmMoveRows(e){let t=this.beans.groupEditSvc;return t?.isGroupingDrop(e)?t.dropGroupEdit(e):this.csrmMoveRowsReorder(e)}csrmMoveRowsReorder({position:e,target:t,rows:i,newParent:o,rootNode:r}){let s=!1,n=new Set;for(let e of i){o&&e.parent!==o&&(e.treeParent=o,s=!0);let t=this.csrmGetLeaf(e);t&&n.add(t)}if(!s&&0===n.size)return!1;let l=this.beans.focusSvc,a=l.getFocusedCell(),d=a&&sm(this.beans,a);if(n.size&&aw(r._leafs,n,t,"above"===e)&&(s=!0),!s)return!1;let h=this.beans.rowModel,u=new aC;return u.reordered=!0,h.refreshModel({step:"group",keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedPath:new aS(!1,r),changedRowNodes:u}),d?d.focusCell():l.clearFocusedCell(),!0}csrmGetLeaf(e){if(e.sourceRowIndex>=0)return e.destroyed?void 0:e;let t=this.beans.groupEditSvc;return t?t.csrmFirstLeaf(e):av(e)}},aE=(e,t)=>e!==t&&(!e||e.sameGrid!==t.sameGrid||e.allowed!==t.allowed||e.position!==t.position||e.target!==t.target||e.source!==t.source||e.newParent!==t.newParent||!w(e.rows,t.rows)),ax=({rowIndex:e},{rowIndex:t})=>null!==e&&null!==t?e-t:0,aF=(e,t)=>{for(let i=0,o=e?.length||0;i<o;++i){let o=e[i];o.dragging!==t&&(o.dragging=t,o.dispatchRowEvent("draggingChanged"))}},aP=(e,t)=>{let i=null,o=t.target;if(o&&0>t.rows.indexOf(o))return null;let r=t.source;if(!o||!r)return null;let s=o.rowIndex-r.rowIndex,n=s<0?-1:1;s=t.suppressMoveWhenRowDragging?Math.abs(s):1;let l=new Set(t.rows);do{let t=nE(e,n,o);if(!t)break;!l.has(t)&&(i=t,--s),o=t}while(s>0);return i},aD=(e,t)=>{let i=e?.rowTop,o=e?.rowHeight??0;if(null==i||!o||o<=0)return"none";let r=t-i,s=.25*o;return r<=s?"above":r>=o-s?"below":"inside"},aM=class extends tc{constructor(){super(...arguments),this.beanName="rowDragSvc",this.rowDragFeature=null,this.visibility="suppress"}setupRowDrag(e,t){let i=t.createManagedBean(new aR(e)),o=this.beans.dragAndDrop;o.addDropTarget(i),t.addDestroyFunc(()=>o.removeDropTarget(i)),this.rowDragFeature=i;let r=()=>this.refreshVisibility();this.addManagedPropertyListeners(["rowDragManaged","suppressRowDrag","refreshAfterGroupEdit"],r),this.addManagedEventListeners({newColumnsLoaded:r,columnRowGroupChanged:r,columnPivotModeChanged:r,sortChanged:r,filterChanged:r}),this.visibility=this.computeVisibility()}createRowDragComp(e,t,i,o,r,s){return new am(e,t,i,o,r,s)}createRowDragCompForRow(e,t){if(ik(this.gos))return;let i=this.getLocaleTextFunc();return this.createRowDragComp(()=>`1 ${i("rowDragRow","row")}`,e,void 0,t,void 0,!0)}createRowDragCompForCell(e,t,i,o,r,s){let n=this.gos;if(!(n.get("rowDragManaged")&&(!t8(n)||n.get("pagination"))))return this.createRowDragComp(i,e,t,o,r,s)}cancelRowDrag(){this.rowDragFeature?.lastDraggingEvent&&this.beans.dragSvc?.cancelDrag()}computeVisibility(){let e=this.beans,t=e.gos;if(t.get("suppressRowDrag"))return"suppress";if(!t.get("rowDragManaged"))return"visible";let i=e.colModel.isPivotMode();return(i||e.rowGroupColsSvc?.columns?.length)&&!t.get("refreshAfterGroupEdit")?"hidden":i||e.filterManager?.isAnyFilterPresent()||e.sortSvc?.isSortActive()?"disabled":"visible"}refreshVisibility(){let e=this.visibility,t=this.computeVisibility();e!==t&&(this.visibility=t,this.eventSvc?.dispatchEvent({type:"rowDragVisibilityChanged"}))}},ak=class extends tc{constructor(){super(...arguments),this.beanName="rowDropHighlightSvc",this.uiLevel=0,this.dragging=!1,this.row=null,this.position="none"}
1postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this)})}onModelUpdated(){let e=this.row,t=this.dragging;e&&e?.rowIndex!==null&&"none"!==this.position?this.set(e,this.position):this.clear(),this.dragging=t}destroy(){this.clear(),super.destroy()}clear(){let e=this.row;this.dragging=!1,e&&(this.uiLevel=0,this.position="none",this.row=null,e.dispatchRowEvent("rowHighlightChanged"))}set(e,t){let i=e!==this.row,o=e.uiLevel,r=t!==this.position,s=o!==this.uiLevel;this.dragging=!1,(i||r||s)&&(i&&this.clear(),this.uiLevel=o,this.position=t,this.row=e,e.dispatchRowEvent("rowHighlightChanged"))}fromDrag(e){let t=e?.dropTarget;if(t){let{highlight:e,target:i,position:o}=t;if(e&&i&&"none"!==o){this.set(i,o),this.dragging=!0;return}}this.dragging&&this.clear()}},aT={moduleName:"Drag",version:tU,beans:[au]},aA={moduleName:"DragAndDrop",version:tU,dynamicBeans:{dndSourceComp:at},icons:{rowDrag:"grip"}},aI={moduleName:"SharedDragAndDrop",version:tU,beans:[rk],dependsOn:[aT],userComponents:{agDragAndDropImage:o7},icons:{columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",rowDrag:"grip"}},aL={moduleName:"RowDrag",version:tU,beans:[ak,aM],apiFunctions:{addRowDropZone:function(e,t){e.rowDragSvc?.rowDragFeature?.addRowDropZone(t)},removeRowDropZone:function(e,t){let i=e.dragAndDrop?.findExternalZone(t.getContainer());i&&e.dragAndDrop?.removeDropTarget(i)},getRowDropZoneParams:function(e,t){return e.rowDragSvc?.rowDragFeature?.getRowDropZone(t)},getRowDropPositionIndicator:function(e){let t=e.rowDropHighlightSvc;return t?{row:t.row,dropIndicatorPosition:t.position}:{row:null,dropIndicatorPosition:"none"}},setRowDropPositionIndicator:function(e,t){let i=e.rowDropHighlightSvc;if(!i)return;let o=t?.row,r=t?.dropIndicatorPosition;"above"!==r&&"below"!==r&&"inside"!==r&&(r="none"),null==o?.rowIndex||"none"===r?i.clear():i.set(o,r)}},dependsOn:[aI]},aB={moduleName:"HorizontalResize",version:tU,beans:[ac],dependsOn:[aT]},aH=class extends tc{constructor(){super(...arguments),this.beanName="colAnimation",this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.activeNext=!1,this.suppressAnimation=!1,this.animationThreadCount=0}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>this.gridBodyCtrl=e.gridBodyCtrl)}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(e){this.suppressAnimation=e}start(){if(this.active)return;let{gos:e}=this;!e.get("suppressColumnMoveAnimation")&&(e.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0,this.activeNext=!0))}finish(){this.active&&this.flush(()=>this.activeNext=!1,()=>this.active=!1)}executeNextVMTurn(e){this.activeNext?this.executeNextFuncs.push(e):e()}executeLaterVMTurn(e){this.active?this.executeLaterFuncs.push(e):e()}ensureAnimationCssClassPresent(){this.animationThreadCount++;let e=this.animationThreadCount,{gridBodyCtrl:t}=this;t.setColumnMovingCss(!0),this.executeLaterFuncs.push(()=>{this.animationThreadCount===e&&t.setColumnMovingCss(!1)})}flush(e,t){let{executeNextFuncs:i,executeLaterFuncs:o}=this;if(0===i.length&&0===o.length){e(),t();return}let r=e=>{for(;e.length;){let t=e.pop();t&&t()}};this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e(),r(i)},0),window.setTimeout(()=>{t(),r(o)},200)})}},aV=class extends tc{constructor(e){super(),this.pinned=e,this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[]}onDragEnter(e){if(this.clearColumnsList(),this.gos.get("functionsReadOnly"))return;let t=e.dragItem.columns;if(t)for(let e of t)e.isPrimary()&&!e.isAnyFunctionActive()&&(e.isAllowValue()?this.columnsToAggregate.push(e):e.isAllowRowGroup()?this.columnsToGroup.push(e):e.isAllowPivot()&&this.columnsToPivot.push(e))}getIconName(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?"pinned":"move":null}onDragLeave(e){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0}onDragging(e){}onDragStop(e){let{valueColsSvc:t,rowGroupColsSvc:i,pivotColsSvc:o}=this.beans;this.columnsToAggregate.length>0&&t?.addColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&i?.addColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&o?.addColumns(this.columnsToPivot,"toolPanelDragAndDrop")}onDragCancel(){this.clearColumnsList()}};function aG(e){var t,i;let{isFromHeader:o,fromLeft:r,xPosition:s,fromEnter:n,fakeEvent:l,pinned:a,gos:d,colModel:h,colMoves:u,visibleCols:c}=e,{allMovingColumns:g}=e;o&&(g=function(e){let t=[...e];for(let i of e){let e=null,o=i.getParent();for(;null!=o&&1===o.getDisplayedLeafColumns().length;)e=o,o=o.getParent();if(null!=e)for(let i of e.getColGroupDef()?.marryChildren?e.getProvidedColumnGroup().getLeafColumns():e.getLeafColumns())t.includes(i)||t.push(i)}return t}(g));let p=g.slice();t=h.getCols(),(i=p)&&!(i.length<=1)&&(i.filter(e=>0>t.indexOf(e)).length>0||i.sort((e,i)=>t.indexOf(e)-t.indexOf(i)));let m=function(e){let t,{movingCols:i,draggingRight:o,xPosition:r,pinned:s,gos:n,colModel:l,visibleCols:a}=e;if(n.get("suppressMovableColumns")||i.some(e=>e.getColDef().suppressMovable))return[];let d=function(e,t){switch(t){case"left":return e.leftCols;case"right":return e.rightCols;default:return e.centerCols}}(a,s),h=l.getCols(),u=d.filter(e=>i.includes(e)),c=d.filter(e=>!i.includes(e)),g=h.filter(e=>!i.includes(e)),p=0,m=r;if(o){let e=0;for(let t of u)e+=t.getActualWidth();m-=e}if(m>0){for(let e=0;e<c.length&&!((m-=c[e].getActualWidth())<0);e++)p++;o&&p++}if(p>0){let e=c[p-1];t=g.indexOf(e)+1}else -1===(t=g.indexOf(c[0]))&&(t=0);let f=[t],C=(e,t)=>e-t;if(o){let e=t+1,i=h.length-1;for(;e<=i;)f.push(e),e++;f.sort(C)}else{let e=t,i=h.length-1,o=h[e];for(;
1e<=i&&0>d.indexOf(o);)e++,f.push(e),o=h[e];for(e=t-1;e>=0;)f.push(e),e--;f.sort(C).reverse()}return f}({movingCols:p,draggingRight:r,xPosition:s,pinned:a,gos:d,colModel:h,visibleCols:c}),f=function(e,t){let i=t.getCols(),o=e.map(e=>i.indexOf(e)).sort((e,t)=>e-t),r=o[0];return v(o)-r!=o.length-1?null:r}(p,h);if(0===m.length)return;let C=m[0];if(null!==f&&(o||!n)&&!l&&(!r&&C>=f||r&&C<=f))return;let b=function(e,t,i,o){let r=o.allCols,s=null,n=null;for(let o=0;o<e.length;o++){let l=e[o],a=i.getProposedColumnOrder(t,l);if(!i.doesOrderPassRules(a))continue;let d=a.filter(e=>r.includes(e));if(null===n)n=d;else if(!w(d,n))break;let h=function(e){function t(e){let t=[],i=e.getOriginalParent();for(;null!=i;)t.push(i),i=i.getOriginalParent();return t}let i=0;for(let o=0;o<e.length-1;o++){let r=t(e[o]),s=t(e[o+1]);for(let e of([r,s]=r.length>s.length?[r,s]:[s,r],r))-1===s.indexOf(e)&&i++}return i}(a);(null===s||h<s.fragCount)&&(s={move:l,fragCount:h})}return s}(m,p,u,c);if(!b)return;let y=b.move;if(!(y>h.getCols().length-p.length))return{columns:p,toIndex:y}}function aO(e){let{columns:t,toIndex:i}=aG(e)||{},{finished:o,colMoves:r}=e;return t&&null!=i?(r.moveColumns(t,i,"uiColumnMoved",o),o?null:{columns:t,toIndex:i}):null}function aN(e){let{pinned:t,fromKeyboard:i,gos:o,ctrlsSvc:r,useHeaderRow:s,skipScrollPadding:n}=e,l=r.getHeaderRowContainerCtrl(t)?.eViewport,{x:a}=e;return l?(i&&(a-=l.getBoundingClientRect().left),o.get("enableRtl")&&(s&&(l=l.querySelector(".ag-header-row")),a=l.clientWidth-a),null!=t||n||(a+=r.get("center").getCenterViewportScrollLeft()),a):0}function az(e,t){for(let i of e)i.moving=t,i.dispatchColEvent("movingChanged","uiColumnMoved")}var aW=class extends tc{constructor(e){super(),this.pinned=e,this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.isCenterContainer=!F(e)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}getIconName(){let{pinned:e,lastDraggingEvent:t}=this,{dragItem:i}=t||{};for(let t of i?.columns??[]){let o=t.getPinned();if(t.getColDef().lockPinned){if(o==e)return"move";continue}let r=i?.containerType;if(r===e||!e)return"move";if(e&&(!o||r!==e))return"pinned"}return"notAllowed"}onDragEnter(e){let t=e.dragItem,i=t.columns;if(0===e.dragSource.type)this.setColumnsVisible(i,!0,"uiColumnDragged");else{let e=t.visibleState,o=(i||[]).filter(t=>e[t.getId()]&&!t.isVisible());this.setColumnsVisible(o,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(i,this.pinned),this.onDragging(e,!0,!0)}onDragging(e=this.lastDraggingEvent,t=!1,i=!1,o=!1){let{gos:r,ctrlsSvc:s}=this.beans,n=r.get("suppressMoveWhenColumnDragging");if(o&&!n)return void this.finishColumnMoving();if(this.lastDraggingEvent=e,!e||!o&&P(e.hDirection))return;let l=aN({x:e.x,pinned:this.pinned,gos:r,ctrlsSvc:s});t||this.checkCenterForScrolling(l),n?this.handleColumnDragWhileSuppressingMovement(e,t,i,l,o):this.handleColumnDragWhileAllowingMovement(e,t,i,l,o)}onDragLeave(){this.ensureIntervalCleared(),this.clearHighlighted(),this.updateDragItemContainerType(),this.lastMovedInfo=null}onDragStop(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null}onDragCancel(){this.clearHighlighted(),this.ensureIntervalCleared(),this.lastMovedInfo=null}setColumnsVisible(e,t,i){if(!e?.length)return;let o=e.filter(e=>!e.getColDef().lockVisible);o.length&&this.beans.colModel.setColsVisible(o,t,i)}finishColumnMoving(){this.clearHighlighted();let e=this.lastMovedInfo;if(!e)return;let{columns:t,toIndex:i}=e;this.beans.colMoves.moveColumns(t,i,"uiColumnMoved",!0)}updateDragItemContainerType(){let{lastDraggingEvent:e}=this;if(this.gos.get("suppressMoveWhenColumnDragging")||!e)return;let t=e.dragItem;t&&(t.containerType=this.pinned)}handleColumnDragWhileSuppressingMovement(e,t,i,o,r){let s=this.getAllMovingColumns(e,!0);if(r){let e=this.isAttemptingToPin(s);e&&this.attemptToPinColumns(s,void 0,!0);let{fromLeft:o,xPosition:r}=this.getNormalisedXPositionInfo(s,e)||{};if(null==o||null==r)return void this.finishColumnMoving();this.moveColumnsAfterHighlight({allMovingColumns:s,xPosition:r,fromEnter:t,fakeEvent:i,fromLeft:o})}else{if(!this.beans.dragAndDrop.isDropZoneWithinThisGrid(e))return;this.highlightHoveredColumn(s,o)}}handleColumnDragWhileAllowingMovement(e,t,i,o,r){let s=this.getAllMovingColumns(e),n="right"===this.normaliseDirection(e.hDirection),l=1===e.dragSource.type,a=aO({...this.getMoveColumnParams({allMovingColumns:s,isFromHeader:l,xPosition:o,fromLeft:n,fromEnter:t,fakeEvent:i}),finished:r});a&&(this.lastMovedInfo=a)}getAllMovingColumns(e,t=!1){let i=e.dragSource.getDragItem(),o=null;t&&(o=i.columnsInSplit)||(o=i.columns);let r=e=>!e.getColDef().lockPinned||e.getPinned()==this.pinned;return o?o.filter(r):[]}getMoveColumnParams(e){let{allMovingColumns:t,isFromHeader:i,xPosition:o,fromLeft:r,fromEnter:s,fakeEvent:n}=e,{gos:l,colModel:a,colMoves:d,visibleCols:h}=this.beans;return{allMovingColumns:t,isFromHeader:i,fromLeft:r,xPosition:o,pinned:this.pinned,fromEnter:s,fakeEvent:n,gos:l,colModel:a,colMoves:d,visibleCols:h}}highlightHoveredColumn(e,t){let i,{gos:o,colModel:r}=this.beans,s=o.get("enableRtl"),n=r.getCols().filter(e=>e.isVisible()&&e.getPinned()===this.pinned),l=null,a=null,d=null;for(let e of n){if(a=e.getActualWidth(),null!=(l=this.getNormalisedColumnLeft(e,0,s))){let i=l+a;if(l<=t&&i>=t){d=e;break}}l=null,a=null}if(d)-1!==e.indexOf(d)&&(d=null);else{for(let e=n.length-1;e>=0;e--){let t=n[e],i=n[e].getParent();if(!i){d=t;break}let o=i?.getDisplayedLeafColumns();if(o.length){d=v(o);break}}if(!d)return;l=this.getNormalisedColumnLeft(d,0,s),a=d.getActualWidth()}if(null==d||null==l||null==a){this.lastHighlightedColumn?.column!==d&&this.clearHighlighted();return}if(t-l<a/2){let e=n.indexOf(d);0===e?i=0:(i=1,d=n[e-1])}else i=1;(this.lastHighlightedColumn?.column!==d||this.lastHighlightedColumn?.position!==i)&&this.clearHighlighted(),aU(d,i),this.lastHighlightedColumn={column:d,position:i}}getNormalisedXPositionInfo(e,t){let{gos:i,visibleCols:o}=this.beans,r=i.get("enableRtl"),{firstMovingCol:s,column:n,position:l}=this.getColumnMoveAndTargetInfo(e,t,r);if(!s||!n||null==l)return;let a=o.allCols,d=a.indexOf(s),h=a.indexOf(n),u=0===l,c=d<h||d===h&&!u,g=0;if(u?c&&(g-=1):c||(g+=1),h+g===d)return;let p=a[h+g];if(p)return{fromLeft:c,xPosition:this.getNormalisedColumnLeft(p,20,r)}}getColumnMoveAndTargetInfo(e,t,i){let o=this.lastHighlightedColumn||{},{firstMovingCol:r,lastMovingCol:s}=function(e){let t,i,o=e.length;for(let r=0;r<o;r++){if(!t){let i=e[r];null!=i.getLeft()&&(t=i)}if(!i){let t=e[o-1-r];null!=t.getLeft()&&(i=t)}if(t&&i)break}return{firstMovingCol:t,lastMovingCol:i}
1}(e);if(!r||!s||o.column||!t)return{firstMovingCol:r,...o};let n="left"===this.getPinDirection();return{firstMovingCol:r,position:+!!n,column:n!==i?r:s}}normaliseDirection(e){if(this.gos.get("enableRtl"))switch(e){case"left":return"right";case"right":return"left"}return e}getNormalisedColumnLeft(e,t,i){let{gos:o,ctrlsSvc:r}=this.beans,s=e.getLeft();if(null==s)return null;let n=e.getActualWidth();return aN({x:i?s+n-t:s+t,pinned:e.getPinned(),useHeaderRow:i,skipScrollPadding:!0,gos:o,ctrlsSvc:r})}isAttemptingToPin(e){let t=this.needToMoveLeft||this.needToMoveRight,i=this.failedMoveAttempts>7;return t&&i||e.some(e=>e.getPinned()!==this.pinned)}moveColumnsAfterHighlight(e){let{allMovingColumns:t,xPosition:i,fromEnter:o,fakeEvent:r,fromLeft:s}=e,{columns:n,toIndex:l}=aG(this.getMoveColumnParams({allMovingColumns:t,isFromHeader:!0,xPosition:i,fromLeft:s,fromEnter:o,fakeEvent:r}))||{};n&&null!=l&&(this.lastMovedInfo={columns:n,toIndex:l}),this.finishColumnMoving()}clearHighlighted(){let{lastHighlightedColumn:e}=this;e&&(aU(e.column,null),this.lastHighlightedColumn=null)}checkCenterForScrolling(e){let t,i;if(!this.isCenterContainer)return;let o=this.beans.ctrlsSvc.get("center"),r=o.getCenterViewportScrollLeft(),s=r+o.getCenterWidth();this.gos.get("enableRtl")?(t=e<r+50,i=e>s-50):(i=e<r+50,t=e>s-50),this.needToMoveRight=t,this.needToMoveLeft=i,i||t?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.beans.dragAndDrop.setDragImageCompIcon(this.needToMoveLeft?"left":"right",!0))}ensureIntervalCleared(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.failedMoveAttempts=0,this.beans.dragAndDrop.setDragImageCompIcon(this.getIconName()))}moveInterval(){let e;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100);let t=null,i=this.gridBodyCon.scrollFeature;if(this.needToMoveLeft?t=i.scrollHorizontally(-e):this.needToMoveRight&&(t=i.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;let{pinnedCols:e,dragAndDrop:t,gos:i}=this.beans;if(this.failedMoveAttempts<=8||!e)return;if(t.setDragImageCompIcon("pinned"),!i.get("suppressMoveWhenColumnDragging")){let e=this.lastDraggingEvent?.dragItem.columns;this.attemptToPinColumns(e,void 0,!0)}}}getPinDirection(){return this.needToMoveLeft||"left"===this.pinned?"left":this.needToMoveRight||"right"===this.pinned?"right":void 0}attemptToPinColumns(e,t,i=!1){let o=(e||[]).filter(e=>!e.getColDef().lockPinned);if(!o.length)return 0;i&&(t=this.getPinDirection());let{pinnedCols:r,dragAndDrop:s}=this.beans;return r?.setColsPinned(o,t,"uiColumnDragged"),i&&s.nudge(),o.length}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}};function aU(e,t){e.highlighted!==t&&(e.highlighted=t,e.dispatchColEvent("headerHighlightChanged","uiColumnMoved"))}var a_=class extends tc{constructor(e,t){super(),this.pinned=e,this.eContainer=t}postConstruct(){let{ctrlsSvc:e,dragAndDrop:t}=this.beans,i=this.pinned;e.whenReady(this,e=>{let t,o=e.gridBodyCtrl.eBodyViewport;switch(i){case"left":t=[[o,e.left.eContainer],[e.bottomLeft.eContainer],[e.topLeft.eContainer]];break;case"right":t=[[o,e.right.eContainer],[e.bottomRight.eContainer],[e.topRight.eContainer]];break;default:t=[[o,e.center.eViewport],[e.bottomCenter.eViewport],[e.topCenter.eViewport]]}this.eSecondaryContainers=t}),this.moveColumnFeature=this.createManagedBean(new aW(i)),this.bodyDropPivotTarget=this.createManagedBean(new aV(i)),t.addDropTarget(this),this.addDestroyFunc(()=>t.removeDropTarget(this))}isInterestedIn(e){return 1===e||0===e&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(e){return this.beans.colModel.isPivotMode()&&0===e.dragSource.type}onDragEnter(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)}onDragLeave(e){this.currentDropListener.onDragLeave(e)}onDragging(e){this.currentDropListener.onDragging(e)}onDragStop(e){this.currentDropListener.onDragStop(e)}onDragCancel(){this.currentDropListener.onDragCancel()}},a$={moduleName:"ColumnMove",version:tU,beans:[class extends tc{constructor(){super(...arguments),this.beanName="
1colMoves"}moveColumnByIndex(e,t,i){let o=this.beans.colModel.getCols();if(!o)return;let r=o[e];this.moveColumns([r],t,i)}moveColumns(e,t,i,o=!0){let{colModel:r,colAnimation:s,visibleCols:n,eventSvc:l}=this.beans,a=r.getCols();if(!a)return;if(t>a.length-e.length)return void tX(30,{toIndex:t});s?.start();let d=r.getColsForKeys(e);this.doesMovePassRules(d,t)&&(R(r.getCols(),d,t),n.refresh(i),l.dispatchEvent({type:"columnMoved",columns:d,column:1===d.length?d[0]:null,toIndex:t,finished:o,source:i})),s?.finish()}doesMovePassRules(e,t){let i=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(i)}doesOrderPassRules(e){let{colModel:t,gos:i}=this.beans;return!!oL(e,t.getColTree())&&!!(e=>{let t=e=>e?"left"===e||!0===e?-1:1:0,o=i.get("enableRtl"),r=o?1:-1,s=!0;for(let i of e){let e=t(i.getColDef().lockPosition);o?e>r&&(s=!1):e<r&&(s=!1),r=e}return s})(e)}getProposedColumnOrder(e,t){let i=this.beans.colModel.getCols().slice();return R(i,e,t),i}createBodyDropTarget(e,t){return new a_(e,t)}moveHeader(e,t,i,o,r){let s,{ctrlsSvc:n,gos:l,colModel:a,visibleCols:d,focusSvc:h}=this.beans,u=t.getBoundingClientRect(),c=u.left,g=o$(i),p=g?u.width:i.getActualWidth(),m="left"===e!==l.get("enableRtl"),f=aN({x:m?c-20:c+p+20,pinned:o,fromKeyboard:!0,gos:l,ctrlsSvc:n}),C=h.focusedHeader;if(aO({allMovingColumns:g?i.getLeafColumns():[i],isFromHeader:!0,fromLeft:"right"===e,xPosition:f,pinned:o,fromEnter:!1,fakeEvent:!1,gos:l,colModel:a,colMoves:this,visibleCols:d,finished:!0}),g){let e=i.getDisplayedLeafColumns();s=m?e[0]:v(e)}else s=i;if(n.getScrollFeature().ensureColumnVisible(s,"auto"),(!r.isAlive()||l.get("ensureDomOrder"))&&C){let e;if(g){let t=i.getGroupId(),o=i.getLeafColumns();if(!o.length)return;let r=o[0].getParent();if(!r)return;e=function(e,t){for(;e;){if(e.getGroupId()===t)return e;e=e.getParent()}}(r,t)}else e=i;e&&h.focusHeaderPosition({headerPosition:{...C,column:e}})}}setDragSourceForHeader(e,t,i){let{gos:o,colModel:r,dragAndDrop:s,visibleCols:n}=this.beans,l=!o.get("suppressDragLeaveHidesColumns"),a=o$(t),d=a?t.getProvidedColumnGroup().getLeafColumns():[t],h={type:1,eElement:e,getDefaultIconName:()=>l?"hide":"notAllowed",getDragItem:a?()=>(function(e,t){let i=e.getProvidedColumnGroup().getLeafColumns(),o={};for(let e of i)o[e.getId()]=e.isVisible();let r=[];for(let e of t)i.indexOf(e)>=0&&(r.push(e),y(i,e));for(let e of i)r.push(e);let s=[],n=e.getLeafColumns();for(let e of r)-1!==n.indexOf(e)&&s.push(e);return{columns:r,columnsInSplit:s,visibleState:o,containerType:s[0]?.pinned}})(t,n.allCols):()=>(function(e){let t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t,containerType:e.pinned}})(t),dragItemName:i,onDragStarted:()=>{l=!o.get("suppressDragLeaveHidesColumns"),az(d,!0)},onDragStopped:()=>az(d,!1),onDragCancelled:()=>az(d,!1),onGridEnter:e=>
1{if(l){let{columns:t=[],visibleState:i}=e??{},o=a?e=>!i||i[e.getColId()]:()=>!0,s=t.filter(e=>!e.getColDef().lockVisible&&o(e));r.setColsVisible(s,!0,"uiColumnMoved")}},onGridExit:e=>{if(l){let t=e?.columns?.filter(e=>!e.getColDef().lockVisible)||[];r.setColsVisible(t,!1,"uiColumnMoved")}}};return s.addDragSource(h,!0),h}},aH],apiFunctions:{moveColumnByIndex:function(e,t,i){e.colMoves?.moveColumnByIndex(t,i,"api")},moveColumns:function(e,t,i){e.colMoves?.moveColumns(t,i,"api")}},dependsOn:[aI],css:[":where(.ag-ltr) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:left .2s}.ag-header-group-cell{transition:left .2s,width .2s}}:where(.ag-rtl) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:right .2s}.ag-header-group-cell{transition:right .2s,width .2s}}"]},aq={moduleName:"AutoWidth",version:tU,beans:[class extends tc{constructor(){super(...arguments),this.beanName="autoWidthCalc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowContainerCtrl=e.center})}getPreferredWidthForColumn(e,t){let i=this.getHeaderCellForColumn(e);if(!i)return -1;let o=this.beans.rowRenderer.getAllCellsNotSpanningForColumn(e);return t||o.push(i),this.getPreferredWidthForElements(o)}getPreferredWidthForColumnGroup(e){let t=this.getHeaderCellForColumn(e);return t?this.getPreferredWidthForElements([t]):-1}getPreferredWidthForElements(e,t){let i=document.createElement("form");i.style.position="fixed";let o=this.centerRowContainerCtrl.eContainer;for(let t of e)this.cloneItemIntoDummy(t,i);o.appendChild(i);let r=Math.ceil(i.getBoundingClientRect().width);return i.remove(),r+(t=t??this.gos.get("autoSizePadding"))}getHeaderCellForColumn(e){let t=null;for(let i of this.beans.ctrlsSvc.getHeaderRowContainerCtrls()){let o=i.getHtmlElementForColumnHeader(e);null!=o&&(t=o)}return t}cloneItemIntoDummy(e,t){let i=e.cloneNode(!0);i.style.width="",i.style.position="static",i.style.left="";let o=document.createElement("div"),r=o.classList;["ag-header-cell","ag-header-group-cell"].some(e=>i.classList.contains(e))?(r.add("ag-header","ag-header-row"),o.style.position="static"):r.add("ag-row");let s=e.parentElement;for(;s;){if(["ag-header-row","ag-row"].some(e=>s.classList.contains(e))){for(let e=0;e<s.classList.length;e++){let t=s.classList[e];"ag-row-position-absolute"!=t&&r.add(t)}break}s=s.parentElement}o.appendChild(i),t.appendChild(o)}}]},aK=class extends tc{constructor(e,t,i,o){super(),this.comp=e,this.eResize=t,this.pinned=i,this.columnGroup=o}postConstruct(){if(!this.columnGroup.isResizable())return void this.comp.setResizableDisplayed(!1);let{horizontalResizeSvc:e,gos:t,colAutosize:i}=this.beans,o=e.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(o),!t.get("suppressAutoSize")&&i&&this.addDestroyFunc(i.addColumnGroupResize(this.eResize,this.columnGroup,()=>this.resizeLeafColumnsToFit("uiColumnResized")))}onResizeStart(e){let{columnsToResize:t,resizeStartWidth:i,resizeRatios:o,groupAfterColumns:r,groupAfterStartWidth:s,groupAfterRatios:n}=this.getInitialValues(e);this.resizeCols=t,this.resizeStartWidth=i,this.resizeRatios=o,this.resizeTakeFromCols=r,this.resizeTakeFromStartWidth=s,this.resizeTakeFromRatios=n,this.toggleColumnResizing(!0)}onResizing(e,t,i="uiColumnResized"){let o=this.normaliseDragChange(t),r=this.resizeStartWidth+o;this.resizeColumnsFromLocalValues(r,i,e)}getInitialValues(e){let t=e=>e.reduce((e,t)=>e+t.getActualWidth(),0),i=(e,t)=>e.map(e=>e.getActualWidth()/t),o=this.getColumnsToResize(),r=t(o),s=i(o,r),n={columnsToResize:o,resizeStartWidth:r,resizeRatios:s},l=null;if(e&&(l=this.beans.colGroupSvc?.getGroupAtDirection(this.columnGroup,"After")??null),l){let e=n.groupAfterColumns=l.getDisplayedLeafColumns().filter(e=>e.isResizable()),o=n.groupAfterStartWidth=t(e);n.groupAfterRatios=i(e,o)}else n.groupAfterColumns=void 0,n.groupAfterStartWidth=void 0,n.groupAfterRatios=void 0;return n}resizeLeafColumnsToFit(e){let t=this.beans.autoWidthCalc.getPreferredWidthForColumnGroup(this.columnGroup),i=this.getInitialValues();t>i.resizeStartWidth&&this.resizeColumns(i,t,e,!0)}resizeColumnsFromLocalValues(e,t,i=!0){if(!this.resizeCols||!this.resizeRatios)return;let o={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols,groupAfterStartWidth:this.resizeTakeFromStartWidth,groupAfterRatios:this.resizeTakeFromRatios};this.resizeColumns(o,e,t,i)}resizeColumns(e,t,i,o=!0){let{columnsToResize:r,resizeStartWidth:s,resizeRatios:n,groupAfterColumns:l,groupAfterStartWidth:a,groupAfterRatios:d}=e,h=[];if(h.push({columns:r,ratios:n,width:t}),l){let e=t-s;h.push({columns:l,ratios:d,width:a-e})}this.beans.colResize?.resizeColumnSets({resizeSets:h,finished:o,source:i}),o&&this.toggleColumnResizing(!1)}toggleColumnResizing(e){this.comp.toggleCss("ag-column-resizing",e)}getColumnsToResize(){return this.columnGroup.getDisplayedLeafColumns().filter(e=>e.isResizable())}normaliseDragChange(e){let t=e;return this.gos.get("enableRtl")?"left"!==this.pinned&&(t*=-1):"right"===this.pinned&&(t*=-1),t}destroy(){super.destroy(),this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0}},aj=class extends tc{constructor(e,t,i,o,r){super(),this.pinned=e,this.column=t,this.eResize=i,this.comp=o,this.ctrl=r}postConstruct(){let e,t,i=[],o=()=>
1{if(eE(this.eResize,e),!e)return;let{horizontalResizeSvc:o,colAutosize:r}=this.beans,s=o.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});i.push(s),t&&r&&i.push(r.addColumnAutosizeListeners(this.eResize,this.column))},r=()=>{for(let e of i)e();i.length=0},s=()=>{let i=this.column.isResizable(),s=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize;(i!==e||s!==t)&&(e=i,t=s,r(),o())};s(),this.addDestroyFunc(r),this.ctrl.setRefreshFunction("resize",s)}onResizing(e,t){let{column:i,lastResizeAmount:o,resizeStartWidth:r,beans:s}=this,n=this.normaliseResizeAmount(t),{pinnedCols:l,ctrlsSvc:a,colResize:d}=s;if(this.column.getPinned()){let e=l?.leftWidth??0;if(e+(l?.rightWidth??0)+(n-o)>ek(a.getGridBodyCtrl().eBodyViewport)-50)return}this.lastResizeAmount=n,d?.setColumnWidths([{key:i,newWidth:r+n}],this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.toggleColumnResizing(!1)}onResizeStart(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)}toggleColumnResizing(e){this.column.resizing=e,this.comp.toggleCss("ag-column-resizing",e)}normaliseResizeAmount(e){let t=e,i="left"!==this.pinned,o="right"===this.pinned;return this.gos.get("enableRtl")?i&&(t*=-1):o&&(t*=-1),t}},aY=class extends tc{constructor(){super(...arguments),this.beanName="colResize"}setColumnWidths(e,t,i,o){let r=[],{colModel:s,gos:n,visibleCols:l}=this.beans;for(let i of e){let e=s.getColDefCol(i.key)||s.getCol(i.key);if(e&&(r.push({width:i.newWidth,ratios:[1],columns:[e]}),"shift"===n.get("colResizeDefault")&&(t=!t),t)){let t=l.getColAfter(e);if(!t)continue;let o=e.getActualWidth()-i.newWidth,s=t.getActualWidth()+o;r.push({width:s,ratios:[1],columns:[t]})}}0!==r.length&&this.resizeColumnSets({resizeSets:r,finished:i,source:o})}resizeColumnSets(e){let{resizeSets:t,finished:i,source:o}=e;if(!(!t||t.every(e=>(function(e){let{columns:t,width:i}=e,o=0,r=0,s=!0;for(let e of t){o+=e.getMinWidth()||0;let t=e.getMaxWidth();t>0?r+=t:s=!1}let n=i>=o,l=!s||i<=r;return n&&l})(e)))){if(i){let e=t&&t.length>0?t[0].columns:null;oG(this.eventSvc,e,i,o)}return}let r=[],s=[];for(let e of t){let{width:t,columns:i,ratios:n}=e,l={},a={};for(let e of i)s.push(e);let d=!0,h=0;for(;d;){if(++h>1e3){t0(31);break}d=!1;let e=[],o=0,r=t;i.forEach((t,i)=>{if(a[t.getId()])r-=l[t.getId()];else{e.push(t);let r=n[i];o+=r}});let s=1/o;e.forEach((i,o)=>{let h;o===e.length-1?h=r:(h=Math.round(n[o]*t*s),r-=h);let u=i.getMinWidth(),c=i.getMaxWidth();h<u?(h=u,a[i.getId()]=!0,d=!0):c>0&&h>c&&(h=c,a[i.getId()]=!0,d=!0),l[i.getId()]=h})}for(let e of i){let t=l[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,o),r.push(e))}}let n=r.length>0,l=[];if(n){let{colFlex:e,visibleCols:t,colViewport:i}=this.beans;l=e?.refreshFlexedColumns({resizingCols:s,skipSetLeft:!0})??[],t.setLeftValues(o),t.updateBodyWidths(),i.checkViewportColumns()}let a=s.concat(l);(n||i)&&oG(this.eventSvc,a,i,o,l)}resizeHeader(e,t,i){if(!e.isResizable())return;let o=e.getActualWidth(),r=Math.min(Math.max(o+t,e.getMinWidth()),e.getMaxWidth());this.setColumnWidths([{key:e,newWidth:r}],i,!0,"uiColumnResized")}createResizeFeature(e,t,i,o,r){return new aj(e,t,i,o,r)}createGroupResizeFeature(e,t,i,o){return new aK(e,t,i,o)}},aQ=class extends tc{constructor(e,t){super(),this.removeChildListenersFuncs=[],this.columnGroup=t,this.comp=e}postConstruct(){this.addListenersToChildrenColumns(),this.addManagedListeners(this.columnGroup,{displayedChildrenChanged:this.onDisplayedChildrenChanged.bind(this)}),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();let e=this.onWidthChanged.bind(this);for(let t of this.columnGroup.getLeafColumns())t.__addEventListener("widthChanged",e),t.__addEventListener("visibleChanged",e),this.removeChildListenersFuncs.push(()=>{t.__removeEventListener("widthChanged",e),t.__removeEventListener("visibleChanged",e)})}removeListenersOnChildrenColumns(){for(let e of this.removeChildListenersFuncs)e();this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns(),this.onWidthChanged()}onWidthChanged(){let e=this.columnGroup.getActualWidth();this.comp.setWidth(`${e}px`),this.comp.toggleCss("ag-hidden",0===e)}},aZ=class extends sJ{constructor(){super(...arguments),this.onSuppressColMoveChange=()=>{!this.isAlive()||this.isSuppressMoving()?this.removeDragSource():this.dragSource||this.setDragSource(this.eGui)}}
1wireComp(e,t,i,o,r){let{column:s,beans:n}=this,{context:l,colNames:a,colHover:d,rangeSvc:h,colResize:u}=n;this.comp=e,r=s_(this,l,r),this.setGui(t,r),this.displayName=a.getDisplayNameForColumnGroup(s,"header"),this.refreshHeaderStyles(),this.addClasses(),this.setupMovingCss(r),this.setupExpandable(r),this.setupTooltip(),this.refreshAnnouncement(),this.setupAutoHeight({wrapperElement:o,compBean:r}),this.setupUserComp(),this.addHeaderMouseListeners(r,o),this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();let c=this.rowCtrl.pinned,g=s.getProvidedColumnGroup().getLeafColumns();d?.createHoverFeature(r,g,t),h?.createRangeHighlightFeature(r,s,e),r.createManagedBean(new s$(s,t,n)),r.createManagedBean(new aQ(e,s)),u?this.resizeFeature=r.createManagedBean(u.createGroupResizeFeature(e,i,c,s)):e.setResizableDisplayed(!1),r.createManagedBean(new ss(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>void 0,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(r,g),this.addManagedEventListeners({cellSelectionChanged:()=>this.refreshAnnouncement()}),r.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(r),r.addDestroyFunc(()=>this.clearComponent())}getHeaderClassParams(){let{column:e,beans:t}=this,i=e.getDefinition();return iK(t.gos,{colDef:i,columnGroup:e,floatingFilter:!1})}refreshMaxHeaderHeight(){let{gos:e,comp:t}=this,i=e.get("groupHeaderHeight");null!=i?0===i?t.setHeaderWrapperHidden(!0):t.setHeaderWrapperMaxHeight(i):(t.setHeaderWrapperHidden(!1),t.setHeaderWrapperMaxHeight(null))}addHighlightListeners(e,t){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(let i of t)e.addManagedListeners(i,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,i)})}onLeafColumnHighlightChanged(e){let t=this.column.getDisplayedLeafColumns(),i=t[0]===e,o=v(t)===e;if(!i&&!o)return;let r=e.getHighlighted(),s=!!this.rowCtrl.getHeaderCellCtrls().find(e=>e.column.isMoving()),n=!1,l=!1;if(s){let e=this.beans.gos.get("enableRtl"),t=1===r,s=0===r;i&&(e?l=t:n=s),o&&(e?n=s:l=t)}this.comp.toggleCss("ag-header-highlight-before",n),this.comp.toggleCss("ag-header-highlight-after",l)}resizeHeader(e,t){let{resizeFeature:i}=this;if(!i)return;let o=i.getInitialValues(t);i.resizeColumns(o,o.resizeStartWidth+e,"uiColumnResized",!0)}resizeLeafColumnsToFit(e){this.resizeFeature?.resizeLeafColumnsToFit(e)}setupUserComp(){let{colGroupSvc:e,userCompFactory:t,gos:i,enterpriseMenuFactory:o}=this.beans,r=this.column,s=r.getProvidedColumnGroup(),n=function(e,t){let i=t.columnGroup.getColGroupDef();return e.getCompDetails(i,ra,"agColumnGroupHeader",t)}(t,iK(i,{displayName:this.displayName,columnGroup:r,setExpanded:t=>{e.setColumnGroupOpened(s,t,"gridInitializing")},setTooltip:(e,t)=>{i.assertModuleRegistered("Tooltip",3),this.setupTooltip(e,t)},showColumnMenu:(e,t)=>o?.showMenuAfterButtonClick(s,e,"columnMenu",t),showColumnMenuAfterMouseClick:(e,t)=>o?.showMenuAfterMouseEvent(s,e,"columnMenu",t),eGridHeader:this.eGui}));n&&this.comp.setUserCompDetails(n)}addHeaderMouseListeners(e,t){let{column:i,comp:o,beans:{rangeSvc:r},gos:s}=this,n=e=>this.handleMouseOverChange("mouseenter"===e.type),l=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",i.getProvidedColumnGroup()),a=e=>this.handleContextMenuMouseEvent(e,void 0,i.getProvidedColumnGroup());e.addManagedListeners(this.eGui,{mouseenter:n,mouseleave:n,click:l,contextmenu:a}),o.toggleCss("ag-header-group-cell-selectable",iA(s));let d=r?.createHeaderGroupCellMouseListenerFeature(this.column,t);d&&this.createManagedBean(d)}handleMouseOverChange(e){this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column.getProvidedColumnGroup()})}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderGroupTooltip(this.tooltipFeature,this,e,t)}setupExpandable(e){let t=this.column.getProvidedColumnGroup();this.refreshExpanded();let i=this.refreshExpanded.bind(this);
1e.addManagedListeners(t,{expandedChanged:i,expandableChanged:i})}refreshExpanded(){let{column:e}=this;this.expandable=e.isExpandable();let t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0),this.refreshHeaderStyles()}addClasses(){let{column:e}=this,t=e.getColGroupDef(),i=sq(t,this.gos,null,e);for(let o of(e.isPadding()?(i.push("ag-header-group-cell-no-group"),e.getLeafColumns().every(e=>e.isSpanHeaderHeight())&&i.push("ag-header-span-height")):(i.push("ag-header-group-cell-with-group"),t?.wrapHeaderText&&i.push("ag-header-cell-wrap-text")),i))this.comp.toggleCss(o,!0)}setupMovingCss(e){let{column:t}=this,i=t.getProvidedColumnGroup().getLeafColumns(),o=()=>this.comp.toggleCss("ag-header-cell-moving",t.isMoving());for(let t of i)e.addManagedListeners(t,{movingChanged:o});o()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription())}handleKeyDown(e){if(super.handleKeyDown(e),!this.getWrapperHasFocus())return;let{column:t,expandable:i,gos:o,beans:r}=this,s=iA(o);if(e.key==oK.ENTER){if(s&&!e.altKey)r.rangeSvc?.handleColumnSelection(t,e);else if(i){let e=!t.isExpanded();r.colGroupSvc.setColumnGroupOpened(t.getProvidedColumnGroup(),e,"uiColumnExpanded")}}}refreshAnnouncement(){let e,{gos:t,column:i,beans:o}=this;if(iA(t)){let t=this.getLocaleTextFunc(),r=o.rangeSvc?.isColumnInAnyRange(i);e=t("ariaColumnCellSelection",`Press CTRL+SPACE to ${r?"de":""}select all visible cells in this column group`)}this.ariaAnnouncement=e}announceAriaDescription(){let{beans:e,eGui:t,ariaAnnouncement:i}=this;i&&t.contains(O(e))&&e.ariaAnnounce?.announceValue(i,"columnHeader")}setDragSource(e){!(!this.isAlive()||this.isSuppressMoving())&&(this.removeDragSource(),e&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null))}isSuppressMoving(){return this.gos.get("suppressMovableColumns")||this.column.getLeafColumns().some(e=>e.getColDef().suppressMovable||e.getColDef().lockPosition)}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}},aJ=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){let t,i=this.existingIds[e];return t="number"!=typeof i?0:i+1,this.existingIds[e]=t,t}},aX=class extends tc{constructor(){super(...arguments),this.beanName="visibleCols",this.colsAndGroupsMap={},this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.headerGroupRowCount=0,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.isBodyWidthDirty=!0}refresh(e,t=!1){let{colFlex:i,colModel:o,colGroupSvc:r,colViewport:s,selectionColSvc:n}=this.beans;t||this.buildTrees(o,r),r?.updateOpenClosedVisibility(),this.leftCols=a1(this.treeLeft),this.centerCols=a1(this.treeCenter),this.rightCols=a1(this.treeRight),n?.refreshVisibility(this.leftCols,this.centerCols,this.rightCols),this.joinColsAriaOrder(o),this.joinCols(),this.headerGroupRowCount=this.getHeaderRowCount(),this.setLeftValues(e),this.autoHeightCols=this.allCols.filter(e=>e.isAutoHeight()),i?.refreshFlexedColumns(),this.updateBodyWidths(),this.setFirstRightAndLastLeftPinned(o,this.leftCols,this.rightCols,e),s.checkViewportColumns(!1),this.eventSvc.dispatchEvent({type:"displayedColumnsChanged",source:e})}getHeaderRowCount(){if(!this.gos.get("hidePaddedHeaderRows"))return this.beans.colModel.cols.treeDepth;let e=0;for(let t of this.allCols){let i=t.getParent();for(;i;){if(!i.isPadding()){let t=i.getProvidedColumnGroup().getLevel()+1;t>e&&(e=t);break}i=i.getParent()}}return e}updateBodyWidths(){let e=oh(this.centerCols),t=oh(this.leftCols),i=oh(this.rightCols);this.isBodyWidthDirty=this.bodyWidth!==e,(this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==i)&&(this.bodyWidth=e,this.leftWidth=t,this.rightWidth=i,this.eventSvc.dispatchEvent({type:"columnContainerWidthChanged"}),this.eventSvc.dispatchEvent({type:"displayedColumnsWidthChanged"}))}setLeftValues(e){this.setLeftValuesOfCols(e),this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(e,t,i,o){let r,s;for(let n of(this.gos.get("enableRtl")?(r=t?t[0]:null,s=i?v(i):null):(r=t?v(t):null,s=i?i[0]:null),e.getCols()))n.setLastLeftPinned(n===r,o),n.setFirstRightPinned(n===s,o)}buildTrees(e,t){let i=e.getColsToShow(),o=i.filter(e=>
1"left"==e.getPinned()),r=i.filter(e=>"right"==e.getPinned()),s=i.filter(e=>"left"!=e.getPinned()&&"right"!=e.getPinned()),n=new aJ,l=e=>t?t.createColumnGroups(e):e.columns;this.treeLeft=l({columns:o,idCreator:n,pinned:"left",oldDisplayedGroups:this.treeLeft}),this.treeRight=l({columns:r,idCreator:n,pinned:"right",oldDisplayedGroups:this.treeRight}),this.treeCenter=l({columns:s,idCreator:n,pinned:null,oldDisplayedGroups:this.treeCenter}),this.updateColsAndGroupsMap()}clear(){this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.ariaOrderColumns=[]}joinColsAriaOrder(e){let t=e.getCols(),i=[],o=[],r=[];for(let e of t){let t=e.getPinned();t?!0===t||"left"===t?i.push(e):r.push(e):o.push(e)}this.ariaOrderColumns=i.concat(o).concat(r)}getAriaColIndex(e){let t;return t=o$(e)?e.getLeafColumns()[0]:e,this.ariaOrderColumns.indexOf(t)+1}setLeftValuesOfGroups(){for(let e of[this.treeLeft,this.treeRight,this.treeCenter])for(let t of e)o$(t)&&t.checkLeft()}setLeftValuesOfCols(e){let{colModel:t}=this.beans;if(!t.getColDefCols())return;let i=t.getCols().slice(0),o=this.gos.get("enableRtl");for(let t of[this.leftCols,this.rightCols,this.centerCols]){if(o){let i=oh(t);for(let o of t)i-=o.getActualWidth(),o.setLeft(i,e)}else{let i=0;for(let o of t)o.setLeft(i,e),i+=o.getActualWidth()}for(let e=0;e<t.length;e++){let o=i.indexOf(t[e]);o>=0&&(i[o]=i[i.length-1],i.pop())}}for(let t of i)t.setLeft(null,e)}joinCols(){this.gos.get("enableRtl")?this.allCols=this.rightCols.concat(this.centerCols).concat(this.leftCols):this.allCols=this.leftCols.concat(this.centerCols).concat(this.rightCols)}getAllTrees(){return this.treeLeft&&this.treeRight&&this.treeCenter?this.treeLeft.concat(this.treeCenter).concat(this.treeRight):null}isColDisplayed(e){return this.allCols.indexOf(e)>=0}getLeftColsForRow(e){let{leftCols:t,beans:{colModel:i}}=this;return i.colSpanActive?this.getColsForRow(e,t):t}getRightColsForRow(e){let{rightCols:t,beans:{colModel:i}}=this;return i.colSpanActive?this.getColsForRow(e,t):t}getColsForRow(e,t,i,o){let r=[],s=null;for(let n=0;n<t.length;n++){let l,a=t[n],d=t.length-n,h=Math.min(a.getColSpan(e),d),u=[a];if(h>1){let e=h-1;for(let i=1;i<=e;i++)u.push(t[n+i]);n+=e}if(i)for(let e of(l=!1,u))i(e)&&(l=!0);else l=!0;l&&(0===r.length&&s&&o&&o(a)&&r.push(s),r.push(a)),s=a}return r}getContainerWidth(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getColBefore(e){let t=this.allCols,i=t.indexOf(e);return i>0?t[i-1]:null}isPinningLeft(){return this.leftCols.length>0}isPinningRight(){return this.rightCols.length>0}updateColsAndGroupsMap(){this.colsAndGroupsMap={};let e=e=>{this.colsAndGroupsMap[e.getUniqueId()]=e};a0(this.treeCenter,!1,e),a0(this.treeLeft,!1,e),a0(this.treeRight,!1,e)}isVisible(e){return this.colsAndGroupsMap[e.getUniqueId()]===e}getFirstColumn(){let e=this.gos.get("enableRtl"),t=["leftCols","centerCols","rightCols"];e&&t.reverse();for(let i=0;i<t.length;i++){let o=this[t[i]];if(o.length)return e?v(o):o[0]}return null}getColAfter(e){let t=this.allCols,i=t.indexOf(e);return i<t.length-1?t[i+1]:null}getColsLeftWidth(){return oh(this.leftCols)}getDisplayedColumnsRightWidth(){return oh(this.rightCols)}isColAtEdge(e,t){let i,o=this.allCols;if(!o.length)return!1;let r="first"===t;if(o$(e)){let t=e.getDisplayedLeafColumns();if(!t.length)return!1;i=r?t[0]:v(t)}else i=e;return(r?o[0]:v(o))===i}};function a0(e,t,i){if(e)for(let o=0;o<e.length;o++){let r=e[o];o$(r)&&a0(t?r.getDisplayedChildren():r.getChildren(),t,i),i(r)}}function a1(e){let t=[];return a0(e,!0,e=>{iJ(e)&&t.push(e)}),t}var a3={moduleName:"ColumnGroup",version:tU,dynamicBeans:{headerGroupCellCtrl:aZ},beans:[class extends tc{constructor(){super(...arguments),this.beanName="colGroupSvc"}getColumnGroupState(){let e=[];return oA(null,this.beans.colModel.getColTree(),t=>{oe(t)&&e.push({groupId:t.getGroupId(),open:t.isExpanded()})}),e}resetColumnGroupState(e){let t=this.beans.colModel.getColDefColTree();if(!t)return;let i=[];oA(null,t,e=>{if(oe(e)){let t=e.getColGroupDef(),o={groupId:e.getGroupId(),open:t?t.openByDefault:void 0};i.push(o)}}),this.setColumnGroupState(i,e)}
1setColumnGroupState(e,t){let{colModel:i,colAnimation:o,visibleCols:r,eventSvc:s}=this.beans;if(!i.getColTree().length)return;o?.start();let n=[];for(let t of e){let e=t.groupId,i=t.open,o=this.getProvidedColGroup(e);o&&o.isExpanded()!==i&&(o.setExpanded(i),n.push(o))}r.refresh(t,!0),n.length&&s.dispatchEvent({type:"columnGroupOpened",columnGroup:1===n.length?n[0]:void 0,columnGroups:n}),o?.finish()}setColumnGroupOpened(e,t,i){let o;o=oe(e)?e.getId():e||"",this.setColumnGroupState([{groupId:o,open:t}],i)}getProvidedColGroup(e){let t=null;return oA(null,this.beans.colModel.getColTree(),i=>{oe(i)&&i.getId()===e&&(t=i)}),t}getGroupAtDirection(e,t){let i=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),o=e.getDisplayedLeafColumns(),r="After"===t?v(o):o[0],s=`getCol${t}`;for(;;){let t=this.beans.visibleCols[s](r);if(!t)return null;let o=this.getColGroupAtLevel(t,i);if(o!==e)return o}}getColGroupAtLevel(e,t){let i=e.getParent();for(;!(i.getProvidedColumnGroup().getLevel()+i.getPaddingLevel()<=t);)i=i.getParent();return i}updateOpenClosedVisibility(){a0(this.beans.visibleCols.getAllTrees(),!1,e=>{o$(e)&&e.calculateDisplayedColumns()})}getColumnGroup(e,t){if(!e)return null;if(o$(e))return e;let i=this.beans.visibleCols.getAllTrees(),o="number"==typeof t,r=null;return a0(i,!1,i=>{o$(i)&&(o?e===i.getGroupId()&&t===i.getPartId():e===i.getGroupId())&&(r=i)}),r}createColumnGroups(e){let{columns:t,idCreator:i,pinned:o,oldDisplayedGroups:r,isStandaloneStructure:s}=e,n=this.mapOldGroupsById(r),l=[],a=t;for(;a.length;){let e=a;a=[];let t=0,r=r=>{let d=t;t=r;let h=e[d],u=(o$(h)?h.getProvidedColumnGroup():h).getOriginalParent();if(null==u){for(let t=d;t<r;t++)l.push(e[t]);return}let c=this.createColumnGroup(u,i,n,o,s);for(let t=d;t<r;t++)c.addChild(e[t]);a.push(c)};for(let i=1;i<e.length;i++){let o=e[i],s=(o$(o)?o.getProvidedColumnGroup():o).getOriginalParent(),n=e[t];s!==(o$(n)?n.getProvidedColumnGroup():n).getOriginalParent()&&r(i)}t<e.length&&r(e.length)}return s||this.setupParentsIntoCols(l,null),l}createProvidedColumnGroup(e,t,i,o,r,s,n){let l=r.getUniqueKey(t.groupId||null,null),a=oo(this.beans,t,l),d=new ot(a,l,!1,i);this.createBean(d);let h=this.findExistingGroup(t,s);h&&s.splice(h.idx,1);let u=h?.group;u&&d.setExpanded(u.isExpanded());let c=oP(this.beans,a.children,i+1,e,o,r,s,n);return d.setChildren(c),d}balanceColumnTree(e,t,i,o){let r=[];for(let s=0;s<e.length;s++){let n=e[s];if(oe(n)){let e=this.balanceColumnTree(n.getChildren(),t+1,i,o);n.setChildren(e),r.push(n)}else{let s,l;for(let e=t;e<i;e++){let t=o.getUniqueKey(null,null),i=new ot(oo(this.beans,null,t),t,!0,e);this.createBean(i),l&&l.setChildren([i]),l=i,s||(s=l)}if(s&&l){if(r.push(s),e.some(e=>oe(e))){l.setChildren([n]);continue}l.setChildren(e);break}r.push(n)}}return r}findDepth(e){let t=0,i=e;for(;i?.[0]&&oe(i[0]);)t++,i=i[0].getChildren();return t}findMaxDepth(e,t){let i=t;for(let o=0;o<e.length;o++){let r=e[o];if(oe(r)){let e=this.findMaxDepth(r.getChildren(),t+1);i<e&&(i=e)}}return i}balanceTreeForAutoCols(e,t){let i=[];for(let o of e){let e=o;for(let i=t-1;i>=0;i--){let t=new ot(null,`FAKE_PATH_${o.getId()}_${i}`,!0,i);this.createBean(t),t.setChildren([e]),e.originalParent=t,e=t}0===t&&(o.originalParent=null),i.push(e)}return i}findExistingGroup(e,t){if(null!=e.groupId)for(let i=0;i<t.length;i++){let o=t[i];if(o.getColGroupDef()&&o.getId()===e.groupId)return{idx:i,group:o}}}createColumnGroup(e,t,i,o,r){let s=e.getGroupId(),n=t.getInstanceIdForKey(s),l=i[s+"_"+n];return l&&l.getProvidedColumnGroup()!==e&&(l=null),F(l)?l.reset():(l=new oq(e,s,n,o),r||this.createBean(l)),l}mapOldGroupsById(e){let t={},i=e=>{for(let o of e)o$(o)&&(t[o.getUniqueId()]=o,i(o.getChildren()))};return e&&i(e),t}setupParentsIntoCols(e,t){for(let i of e??[])i.parent!==t&&(this.beans.colViewport.colsWithinViewportHash=""),i.parent=t,o$(i)&&this.setupParentsIntoCols(i.getChildren(),i)}}],apiFunctions:{getAllDisplayedColumnGroups:function(e){return e.visibleCols.getAllTrees()},getCenterDisplayedColumnGroups:function(e){return e.visibleCols.treeCenter},getColumnGroup:function(e,t,i){return e.colGroupSvc?.getColumnGroup(t,i)??null},getColumnGroupState:function(e){return e.colGroupSvc?.getColumnGroupState()??[]},getDisplayNameForColumnGroup:function(e,t,i){return e.colNames.getDisplayNameForColumnGroup(t,i)||""},getLeftDisplayedColumnGroups:function(e){return e.visibleCols.treeLeft},getProvidedColumnGroup:function(e,t){return e.colGroupSvc?.getProvidedColGroup(t)??null},getRightDisplayedColumnGroups:function(e){return e.visibleCols.treeRight},resetColumnGroupState:function(e){e.colGroupSvc?.resetColumnGroupState("api")},setColumnGroupOpened:function(e,t,i){e.colGroupSvc?.setColumnGroupOpened(t,i,"api")},setColumnGroupState:function(e,t){e.colGroupSvc?.setColumnGroupState(t,"api")}}},a2=class extends tc{constructor(){super(...arguments),this.beanName="
1colModel",this.pivotMode=!1,this.ready=!1,this.changeEventsDispatching=!1}postConstruct(){this.pivotMode=this.gos.get("pivotMode"),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents","rowNumbers","hidePaddedHeaderRows"],e=>this.refreshAll(ow(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),ow(e.source)))}createColsFromColDefs(e){let{beans:t}=this,{valueCache:i,colAutosize:o,rowGroupColsSvc:r,pivotColsSvc:s,valueColsSvc:n,visibleCols:l,eventSvc:a,groupHierarchyColSvc:d}=t,h=this.colDefs?oz(t,e):void 0;i?.expire();let u=this.colDefCols?.list,c=this.colDefCols?.tree,g=ox(t,this.colDefs,!0,c,e);ou(t,this.colDefCols?.tree,g.columnTree);let p=g.columnTree,m=g.treeDepth,f=od(p),C={};for(let e of f)C[e.getId()]=e;this.colDefCols={tree:p,treeDepth:m,list:f,map:C},this.createColumnsForService([d],this.colDefCols,e),r?.extractCols(e,u),s?.extractCols(e,u),n?.extractCols(e,u),this.ready=!0,this.changeEventsDispatching=!0,this.refreshCols(!0,e),this.changeEventsDispatching=!1,l.refresh(e),a.dispatchEvent({type:"columnEverythingChanged",source:e}),h&&(this.changeEventsDispatching=!0,h(),this.changeEventsDispatching=!1),a.dispatchEvent({type:"newColumnsLoaded",source:e}),"gridInitializing"===e&&o?.applyAutosizeStrategy()}refreshCols(e,t){var i;if(!this.colDefCols)return;let o=this.cols?.tree;this.saveColOrder();let{autoColSvc:r,selectionColSvc:s,rowNumbersSvc:n,quickFilter:l,pivotResultCols:a,showRowGroupCols:d,rowAutoHeight:h,visibleCols:u,colViewport:c,eventSvc:g,formula:p}=this.beans,m=this.selectCols(a,this.colDefCols);p?.setFormulasActive(m),this.createColumnsForService([r,s,n],m,t);let f=(i=this.gos,this.showingPivotResult?!i.get("enableStrictPivotColumnOrder"):i.get("maintainColumnOrder"));(!e||f)&&this.restoreColOrder(m),this.positionLockedCols(m),d?.refresh(),l?.refreshCols(),this.setColSpanActive(),h?.setAutoHeightActive(m),u.clear(),c.clear(),w(o,this.cols.tree)||g.dispatchEvent({type:"gridColumnsChanged"})}createColumnsForService(e,t,i){for(let o of e)o&&(o.createColumns(t,e=>{this.lastOrder=e(this.lastOrder),this.lastPivotOrder=e(this.lastPivotOrder)},i),o.addColumns(t))}selectCols(e,t){let i=e?.getPivotResultCols()??null;this.showingPivotResult=null!=i;let{map:o,list:r,tree:s,treeDepth:n}=i??t;return this.cols={list:r.slice(),map:{...o},tree:s.slice(),treeDepth:n},i&&(i.list.some(e=>this.cols?.map[e.getColId()]!==void 0)||(this.lastPivotOrder=null)),this.cols}getColsToShow(){if(!this.cols)return[];let{beans:e,showingPivotResult:t,cols:i}=this,{valueColsSvc:o,selectionColSvc:r}=e,s=this.isPivotMode()&&!t,n=r?.isSelectionColumnEnabled(),l=ii(e),a=o?.columns;return i.list.filter(e=>{let t=oc(e);if(!s)return t||e.isVisible();{let i=a?.includes(e);return t||i||n&&og(e)||l&&op(e)}})}refreshAll(e){this.ready&&(this.refreshCols(!1,e),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,i){oO(this.beans,{state:e.map(e=>({colId:"string"==typeof e?e:e.getColId(),hide:!t}))},i)}restoreColOrder(e){let t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;let i=t.filter(t=>null!=e.map[t.getId()]);if(0===i.length)return;if(i.length===e.list.length){e.list=i;return}let o=e=>{let t=e.getOriginalParent();return!!t&&(t.getChildren().length>1||o(t))};if(!i.some(e=>o(e))){let t=new Set(i);for(let o of e.list)t.has(o)||i.push(o);e.list=i;return}let r=new Map;for(let e=0;e<i.length;e++){let t=i[e];r.set(t,e)}let s=e.list.filter(e=>!r.has(e));if(0===s.length){e.list=i;return}let n=(e,t)=>{let i=t?t.getOriginalParent():e.getOriginalParent();if(!i)return null;let o=null,s=null;for(let n of i.getChildren())if(n!==t&&n!==e){if(n instanceof i1){let e=r.get(n);if(null==e)continue;(null==o||o<e)&&(o=e,s=n);continue}n.forEachLeafColumn(e=>{let t=r.get(e);null!=t&&(null==o||o<t)&&(o=t,s=e)})}return null==s?n(e,i):s},l=[],a=new Map;for(let e of s){let t=n(e,null);if(null==t){l.push(e);continue}let i=a.get(t);void 0===i?a.set(t,e):Array.isArray(i)?i.push(e):a.set(t,[i,e])}let d=Array(e.list.length),h=d.length-1;for(let e=l.length-1;e>=0;e--)d[h--]=l[e];for(let e=i.length-1;e>=0;e--){let t=i[e],o=a.get(t);if(o)if(Array.isArray(o))for(let e=o.length-1;e>=0;
1e--){let t=o[e];d[h--]=t}else d[h--]=o;d[h--]=t}e.list=d}positionLockedCols(e){e.list=oI(e.list,this.gos)}saveColOrder(){this.showingPivotResult?this.lastPivotOrder=this.cols?.list??null:this.lastOrder=this.cols?.list??null}getColumnDefs(e){return this.colDefCols&&this.beans.colDefFactory?.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,this.cols?.list??[],e)}setColSpanActive(){this.colSpanActive=!!this.cols?.list.some(e=>null!=e.getColDef().colSpan)}isPivotMode(){return this.pivotMode}setPivotMode(e,t){if(e===this.pivotMode||(this.pivotMode=e,!this.ready))return;this.refreshCols(!1,t);let{visibleCols:i,eventSvc:o}=this.beans;i.refresh(t),o.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){let e=this.beans.pivotColsSvc?.columns;return this.pivotMode&&!!e?.length}recreateColumnDefs(e){if(!this.cols)return;this.beans.autoColSvc?.updateColumns(e);let t=ow(e.source);this.createColsFromColDefs(t)}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){ou(this.beans,this.colDefCols?.tree),super.destroy()}getColTree(){return this.cols?.tree??[]}getColDefColTree(){return this.colDefCols?.tree??[]}getColDefCols(){return this.colDefCols?.list??null}getCols(){return this.cols?.list??[]}forAllCols(e){let{pivotResultCols:t,autoColSvc:i,selectionColSvc:o,groupHierarchyColSvc:r}=this.beans;if(!(b(this.colDefCols?.list,e)||b(i?.columns?.list,e)||b(o?.columns?.list,e))&&!b(r?.columns?.list,e)&&b(t?.getPivotResultCols()?.list,e))return}getColsForKeys(e){return e?e.map(e=>this.getCol(e)).filter(e=>null!=e):[]}getColDefCol(e){return this.colDefCols?.list?this.getColFromCollection(e,this.colDefCols):null}getCol(e){return null==e?null:this.getColFromCollection(e,this.cols)}getColById(e){return this.cols?.map[e]??null}getColFromCollection(e,t){if(null==t)return null;let{map:i,list:o}=t;if("string"==typeof e&&i[e])return i[e];for(let t=0;t<o.length;t++)if(ob(o[t],e))return o[t];let{autoColSvc:r,selectionColSvc:s,groupHierarchyColSvc:n}=this.beans;return r?.getColumn(e)??s?.getColumn(e)??n?.getColumn(e)??null}},a6={tag:"div",cls:"ag-skeleton-container"},a4=class extends o5{constructor(){super(a6)}init(e){let t=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",t),this.addDestroyFunc(()=>Q(e.eParentOfValue)),Q(e.eParentOfValue,t),e.deferRender?this.setupLoading(e):e.node.failedLoad?this.setupFailed():this.setupLoading(e)}setupFailed(){let e=this.getLocaleTextFunc();this.getGui().textContent=e("loadingError","ERR");let t=e("ariaSkeletonCellLoadingFailed","Row failed to load");Y(this.getGui(),t)}setupLoading(e){let t=e2({tag:"div",cls:"ag-skeleton-effect"}),i=e.node.rowIndex;if(null!=i){let e=75+25*(i%2==0?Math.sin(i):Math.cos(i));t.style.width=`${e}%`}this.getGui().appendChild(t);let o=this.getLocaleTextFunc(),r=e.deferRender?o("ariaDeferSkeletonCellLoading","Cell is loading"):o("ariaSkeletonCellLoading","Row data is loading");Y(this.getGui(),r)}refresh(e){return!1}};function a5(e,t){if(!e)return;let i={};for(let o of Object.keys(e)){if(t&&t.indexOf(o)>=0||ty.has(o))continue;let r=e[o];"object"==typeof r&&null!==r&&r.constructor===Object?i[o]=a5(r):i[o]=r}return i}var a8=class extends tc{constructor(){super(...arguments),this.beanName="colDefFactory"}wireBeans(e){this.rowGroupColsSvc=e.rowGroupColsSvc,this.pivotColsSvc=e.pivotColsSvc}getColumnDefs(e,t,i,o,r=!1){let s=e.slice();t?s.sort((e,t)=>i.indexOf(e)-i.indexOf(t)):(i||r)&&s.sort((e,t)=>o.indexOf(e)-o.indexOf(t));let n=this.rowGroupColsSvc?.columns,l=this.pivotColsSvc?.columns;return this.buildColumnDefs(s,n,l)}buildColumnDefs(e,t=[],i=[]){let o=[],r={};for(let s of e){let e=this.createDefFromColumn(s,t,i),n=!0,l=e,a=s.getOriginalParent(),d=null;for(;a;){let e=null;if(a.isPadding()){a=a.getOriginalParent();continue}let t=r[a.getGroupId()];if(t){t.children.push(l),n=!1;break}if((e=this.createDefFromGroup(a))&&(e.children=[l],r[e.groupId]=e,l=e,a=a.getOriginalParent()),null!=a&&d===a){n=!1;break}d=a}n&&o.push(l)}return o}createDefFromGroup(e){let t=a5(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t}createDefFromColumn(e,t,i){let o=a5(e.getColDef());return o.colId=e.getColId(),o.width=e.getActualWidth(),o.rowGroup=e.isRowGroupActive(),o.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,o.pivot=e.isPivotActive(),o.pivotIndex=e.isPivotActive()?i.indexOf(e):null,o.aggFunc=e.isValueActive()?e.getAggFunc():null,o.hide=!e.isVisible()||void 0,o.pinned=e.isPinned()?e.getPinned():null,o.sort=e.getSortDef(),o.sortIndex=null!=e.getSortIndex()?e.getSortIndex():null,o}},a7=class extends tc{constructor(){super(...arguments),this.beanName="
1colFlex",this.columnsHidden=!1}refreshFlexedColumns(e={}){let t=e.source??"flex";null!=e.viewportWidth&&(this.flexViewportWidth=e.viewportWidth);let i=this.flexViewportWidth,{visibleCols:o,colDelayRenderSvc:r}=this.beans,s=o.centerCols,n=-1;if(e.resizingCols){let t=new Set(e.resizingCols);for(let e=s.length-1;e>=0;e--)if(t.has(s[e])){n=e;break}}let l=!1,a=s.map((e,t)=>{let i=e.getFlex(),o=null!=i&&i>0&&t>n;return l||(l=o),{col:e,isFlex:o,flex:Math.max(0,i??0),initialSize:e.getActualWidth(),min:e.getMinWidth(),max:e.getMaxWidth(),targetSize:0}});if(l?(r?.hideColumns("colFlex"),this.columnsHidden=!0):this.columnsHidden&&this.revealColumns(r),!i||!l)return[];let d=a.length,h=a.reduce((e,t)=>e+t.flex,0),u=i,c=(e,i)=>{e.frozenSize=i,e.col.setActualWidth(i,t),u-=i,h-=e.flex,d-=1},g=e=>null!=e.frozenSize;for(let e of a)e.isFlex||c(e,e.initialSize);for(;d>0;){let e,t=Math.round(h<1?u*h:u),i=0,o=0;for(let r of a){if(g(r))continue;e=r;let s=Math.round((o+=t*(r.flex/h))-i);r.targetSize=s,i+=s}e&&(e.targetSize+=t-i);let r=0;for(let e of a){if(g(e))continue;let t=e.targetSize,i=Math.min(Math.max(t,e.min),e.max);r+=i-t,e.violationType=i===t?void 0:i<t?"max":"min",e.targetSize=i}let s=0===r?"all":r>0?"min":"max";for(let e of a)g(e)||("all"===s||e.violationType===s)&&c(e,e.targetSize)}e.skipSetLeft||o.setLeftValues(t),e.updateBodyWidths&&o.updateBodyWidths();let p=a.filter(e=>e.isFlex&&!e.violationType).map(e=>e.col);if(e.fireResizedEvent){let e=a.filter(e=>e.initialSize!==e.frozenSize).map(e=>e.col),i=a.filter(e=>e.flex).map(e=>e.col);oG(this.eventSvc,e,!0,t,i)}return this.revealColumns(r),p}revealColumns(e){this.columnsHidden&&(e?.revealColumns("colFlex"),this.columnsHidden=!1)}initCol(e){let{flex:t,initialFlex:i}=e.colDef;void 0!==t?e.flex=t:void 0!==i&&(e.flex=i)}setColFlex(e,t){e.flex=t??null,e.dispatchStateUpdatedEvent("flex")}},a9=e=>{let t;if("bigint"==typeof e)return e;if("number"==typeof e)t=e;else if("string"==typeof e&&(""===(t=e.trim())||(t.endsWith("n")&&(t=t.slice(0,-1)),!/^[+-]?\d+$/.test(t))))return null;if(null==t)return null;try{return BigInt(t)}catch{return null}},de=RegExp("[T ]"),dt=RegExp("^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}\\D?)?");function di(e,t){return e.toString().padStart(t,"0")}function dr(e,t=!0,i="T"){if(!e)return null;let o=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(e=>di(e,2)).join("-");return t&&(o+=i+[e.getHours(),e.getMinutes(),e.getSeconds()].map(e=>di(e,2)).join(":")),o}function ds(e,t=!0){return e?t?[String(e.getFullYear()),String(e.getMonth()+1),di(e.getDate(),2),di(e.getHours(),2),`:${di(e.getMinutes(),2)}`,`:${di(e.getSeconds(),2)}
1`]:[e.getFullYear(),e.getMonth()+1,di(e.getDate(),2)].map(String):null}var dn=e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},dl=["January","February","March","April","May","June","July","August","September","October","November","December"],da=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function dd(e,t=!1){return!!dh(e,t)}function dh(e,t=!1,i){if(!e||!i&&!dt.test(e))return null;let[o,r]=e.split(de);if(!o)return null;let s=o.split("-").map(e=>Number.parseInt(e,10));if(3!==s.filter(e=>!isNaN(e)).length)return null;let[n,l,a]=s,d=new Date(n,l-1,a);if(d.getFullYear()!==n||d.getMonth()!==l-1||d.getDate()!==a||!r&&t)return null;if(!r||"00:00:00"===r)return d;let[h,u,c]=r.split(":").map(e=>Number.parseInt(e,10));if(h>=0&&h<24)d.setHours(h);else if(t)return null;if(u>=0&&u<60)d.setMinutes(u);else if(t)return null;if(c>=0&&c<60)d.setSeconds(c);else if(t)return null;return d}function du(e,t,i){if(!t||!e)return;if(!i)return e[t];let o=t.split("."),r=e;for(let e=0;e<o.length;e++){if(null==r)return;r=r[o[e]]}return r}var dc=["dateTimeString","dateString","text","number","bigint","boolean","date"],dg=class extends tc{constructor(){super(...arguments),this.beanName="dataTypeSvc",this.dataTypeDefinitions={},this.isPendingInference=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[],this.columnDefinitionPropsPerDataType={number:()=>({cellEditor:"agNumberCellEditor"}),bigint:({filterModuleBean:e})=>e?{cellEditor:"agTextCellEditor"}:{cellEditor:"agTextCellEditor",comparator:{default:dC,absolute:dv}},boolean:()=>({cellEditor:"agCheckboxCellEditor",cellRenderer:"agCheckboxCellRenderer",getFindText:()=>null,suppressKeyboardEvent:({node:e,event:t,column:i})=>t.key===oK.SPACE&&i.isCellEditable(e)}),date:({formatValue:e})=>({cellEditor:"agDateCellEditor",keyCreator:e}),dateString:({formatValue:e})=>({cellEditor:"agDateStringCellEditor",keyCreator:e}),dateTime(e){return this.date(e)},dateTimeString(e){return this.dateString(e)},object:({formatValue:e,colModel:t,colId:i})=>({cellEditorParams:{useFormatter:!0},comparator:(o,r)=>{let s=t.getColDefCol(i),n=s?.getColDef();if(!s||!n)return 0;let l=null==o?"":e({column:s,node:null,value:o}),a=null==r?"":e({column:s,node:null,value:r});return l===a?0:l>a?1:-1},keyCreator:e}),text:()=>({})}}wireBeans(e){this.colModel=e.colModel}postConstruct(){this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",e=>{this.processDataTypeDefinitions(),this.colModel.recreateColumnDefs(e)})}processDataTypeDefinitions(){let e=this.getDefaultDataTypes(),t={},i={},o=e=>t=>{let{column:i,node:o,value:r}=t,s=i.getColDef().valueFormatter;return s===e.groupSafeValueFormatter&&(s=e.valueFormatter),this.beans.valueSvc.formatValue(i,o,r,s)};for(let r of Object.keys(e)){let s=e[r],n={...s,groupSafeValueFormatter:df(s,this.gos)};t[r]=n,i[r]=o(n)}let r=this.gos.get("dataTypeDefinitions")??{},s={};for(let n of Object.keys(r)){let l=r[n],a=this.processDataTypeDefinition(l,r,[n],e);a&&(t[n]=a,l.dataTypeMatcher&&(s[n]=l.dataTypeMatcher),i[n]=o(a))}let{valueParser:n,valueFormatter:l}=e.object,{valueParser:a,valueFormatter:d}=t.object;this.hasObjectValueParser=a!==n,this.hasObjectValueFormatter=d!==l,this.formatValueFuncs=i,this.dataTypeDefinitions=t,this.dataTypeMatchers=this.sortKeysInMatchers(s,e)}sortKeysInMatchers(e,t){let i={...e};for(let o of dc)delete i[o],i[o]=e[o]??t[o].dataTypeMatcher;return i}processDataTypeDefinition(e,t,i,o){let r,s=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){let i=o[s],n=t[s];if(i&&n&&(i=n),!dm(e,i,s))return;r=dp(i,e)}else{if(i.includes(s))return void tX(44);let n=t[s];if(!dm(e,n,s))return;let l=this.processDataTypeDefinition(n,t,[...i,s],o);if(!l)return;r=dp(l,e)}return{...r,groupSafeValueFormatter:df(r,this.gos)}}updateColDefAndGetColumnType(e,t,i){let{cellDataType:o}=t;void 0===o&&(o=e.cellDataType);let{field:r}=t;if((null==o||!0===o)&&(o=!!this.canInferCellDataType(e,t)&&this.inferCellDataType(r,i)),this.addFormulaCellEditorToColDef(e,t),!o){e.cellDataType=!1;return}let s=this.dataTypeDefinitions[o];return s?(e.cellDataType=o,s.groupSafeValueFormatter&&(e.valueFormatter=s.groupSafeValueFormatter),s.valueParser&&(e.valueParser=s.valueParser),s.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,o,s,i),s.columnTypes):void tX(47,{cellDataType:o})}addFormulaCellEditorToColDef(e,t){(t.allowFormula??e.allowFormula)&&!t.cellEditor&&(e.cellEditor="agFormulaCellEditor")}addColumnListeners(e){if(!this.isPendingInference)return;let t=this.columnStateUpdatesPendingInference[e.getColId()];if(!t)return;let i=e=>{t.add(e.key)};e.__addEventListener("columnStateUpdated",i),this.columnStateUpdateListenerDestroyFuncs.push(()=>e.__removeEventListener("columnStateUpdated",i))}canInferCellDataType(e,t){let{gos:i}=this;if(!t8(i))return!1;let o={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0}
1;if(db(t,o))return!1;let r=null===t.type?e.type:t.type;if(r){let e=i.get("columnTypes")??{};if(of(r).some(t=>{let i=e[t.trim()];return i&&db(i,o)}))return!1}return!db(e,o)}inferCellDataType(e,t){let i;if(!e)return;let o=this.getInitialData();if(o){let t=e.includes(".")&&!this.gos.get("suppressFieldDotNotation");i=du(o,e,t)}else this.initWaitForRowData(t);if(null!=i)return Object.keys(this.dataTypeMatchers).find(e=>this.dataTypeMatchers[e](i))??"object"}getInitialData(){let e=this.gos.get("rowData");if(e?.length)return e[0];{if(this.initialData)return this.initialData;let e=this.beans.rowModel.rootNode?._leafs;if(e?.length)return e[0].data}return null}initWaitForRowData(e){if(this.columnStateUpdatesPendingInference[e]=new Set,this.isPendingInference)return;this.isPendingInference=!0;let t=this.isColumnTypeOverrideInDataTypeDefinitions,{colAutosize:i,eventSvc:o}=this.beans;t&&i&&(i.shouldQueueResizeOperations=!0);let[r]=this.addManagedEventListeners({rowDataUpdateStarted:e=>{let{firstRowData:s}=e;s&&(r?.(),this.isPendingInference=!1,this.processColumnsPendingInference(s,t),this.columnStateUpdatesPendingInference={},t&&i?.processResizeOperations(),o.dispatchEvent({type:"dataTypesInferred"}))}})}processColumnsPendingInference(e,t){this.initialData=e;let i=[];this.destroyColumnStateUpdateListeners();let o={},r={};for(let e of Object.keys(this.columnStateUpdatesPendingInference)){let s=this.columnStateUpdatesPendingInference[e],n=this.colModel.getCol(e);if(!n)continue;let l=n.getColDef();if(!this.resetColDefIntoCol(n,"cellDataTypeInferred"))continue;let a=n.getColDef();if(t&&a.type&&a.type!==l.type){let t=function(e,t){let i=oU(e);for(let e of t)delete i[e],"rowGroup"===e?delete i.rowGroupIndex:"pivot"===e&&delete i.pivotIndex;return i}(n,s);t.rowGroup&&null==t.rowGroupIndex&&(o[e]=t),t.pivot&&null==t.pivotIndex&&(r[e]=t),i.push(t)}}t&&i.push(...this.generateColumnStateForRowGroupAndPivotIndexes(o,r)),i.length&&oO(this.beans,{state:i},"cellDataTypeInferred"),this.initialData=null}generateColumnStateForRowGroupAndPivotIndexes(e,t){let i={},{rowGroupColsSvc:o,pivotColsSvc:r}=this.beans;return o?.restoreColumnOrder(i,e),r?.restoreColumnOrder(i,t),Object.values(i)}resetColDefIntoCol(e,t){let i=e.getUserProvidedColDef();if(!i)return!1;let o=ok(this.beans,i,e.getColId());return e.setColDef(o,i,t),!0}getDateStringTypeDefinition(e){let{dateString:t}=this.dataTypeDefinitions;return e?this.getDataTypeDefinition(e)??t:t}getDateParserFunction(e){return this.getDateStringTypeDefinition(e).dateParser}getDateFormatterFunction(e){return this.getDateStringTypeDefinition(e).dateFormatter}getDateIncludesTimeFlag(e){return"dateTime"===e||"dateTimeString"===e}getDataTypeDefinition(e){let t=e.getColDef();if(t.cellDataType)return this.dataTypeDefinitions[t.cellDataType]}getBaseDataType(e){return this.getDataTypeDefinition(e)?.baseDataType}checkType(e,t){if(null==t)return!0;let i=this.getDataTypeDefinition(e)?.dataTypeMatcher;return!!(!i||e.getColDef().allowFormula&&this.beans.formula?.isFormula(t))||i(t)}validateColDef(e){let t=e=>tX(48,{property:e});if("object"===e.cellDataType){let{object:i}=this.dataTypeDefinitions;e.valueFormatter!==i.groupSafeValueFormatter||this.hasObjectValueFormatter||t("Formatter"),e.editable&&e.valueParser===i.valueParser&&!this.hasObjectValueParser&&t("Parser")}}postProcess(e){let t=e.cellDataType;if(!t||"string"!=typeof t)return;let{dataTypeDefinitions:i,beans:o,formatValueFuncs:r}=this,s=i[t];s&&o.colFilter?.setColDefPropsForDataType(e,s,r[t])}getFormatValue(e){return this.formatValueFuncs[e]}isColPendingInference(e){return this.isPendingInference&&!!this.columnStateUpdatesPendingInference[e]}setColDefPropertiesForBaseDataType(e,t,i,o){let r=this.formatValueFuncs[t],s=this.columnDefinitionPropsPerDataType[i.baseDataType]({colDef:e,cellDataType:t,colModel:this.colModel,dataTypeDefinition:i,colId:o,formatValue:r,filterModuleBean:this.beans.filterManager});"agFormulaCellEditor"===e.cellEditor&&s.cellEditor!==e.cellEditor&&(s.cellEditor=e.cellEditor),Object.assign(e,s)}getDateObjectTypeDef(e){let t=this.getLocaleTextFunc(),i=this.getDateIncludesTimeFlag(e);return{baseDataType:e,valueParser:e=>dh(e.newValue&&String(e.newValue)),valueFormatter:e=>null==e.value?"":!(e.value instanceof Date)||isNaN(e.value.getTime())?t("invalidDate","Invalid Date"):dr(e.value,i)??"",dataTypeMatcher:e=>e instanceof Date}}getDateStringTypeDef(e){let t=this.getDateIncludesTimeFlag(e);return{baseDataType:e,dateParser:e=>dh(e)??void 0,dateFormatter:e=>dr(e??null,t)??void 0,valueParser:e=>dd(String(e.newValue))?e.newValue:null,valueFormatter:e=>dd(String(e.value))?String(e.value):"",dataTypeMatcher:e=>"string"==typeof e&&dd(e)}}getDefaultDataTypes(){let e=this.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:e=>e.newValue?.trim?.()===""?null:Number(e.newValue),valueFormatter:t=>null==t.value?"":"number"!=typeof t.value||isNaN(t.value)?e("invalidNumber","Invalid Number"):String(t.value),dataTypeMatcher:e=>"number"==typeof e},bigint:{baseDataType:"bigint",valueParser:e=>{let{newValue:t}=e;return null==t||"string"==typeof t&&""===t.trim()?null:a9(t)},valueFormatter:t=>null==t.value?"":"bigint"!=typeof t.value?e("invalidBigInt","Invalid BigInt"):String(t.value),dataTypeMatcher:e=>"bigint"==typeof e},text:{baseDataType:"text",valueParser:e=>""===e.newValue?null:D(e.newValue),dataTypeMatcher:e=>"string"==typeof e},boolean:{baseDataType:"boolean",valueParser:e=>null==e.newValue?e.newValue:e.newValue?.trim?.()===""?null:"true"===String(e.newValue).toLowerCase(),valueFormatter:e=>null==e.value?"":String(e.value),dataTypeMatcher:e=>"boolean"==typeof e},date:this.getDateObjectTypeDef("date"),dateString:this.getDateStringTypeDef("dateString"),dateTime:this.getDateObjectTypeDef("dateTime"),dateTimeString:{...this.getDateStringTypeDef("dateTimeString"),dataTypeMatcher:e=>"string"==typeof e&&dd(e,!0)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:e=>D(e.value)??""}}}destroyColumnStateUpdateListeners(){for(let e of this.columnStateUpdateListenerDestroyFuncs)e();this.columnStateUpdateListenerDestroyFuncs=[]}destroy(){this.dataTypeDefinitions={},this.dataTypeMatchers={},this.formatValueFuncs={},this.columnStateUpdatesPendingInference={},this.destroyColumnStateUpdateListeners(),super.destroy()}};function dp(e,t){let i={...e,...t};return e.columnTypes&&t.columnTypes&&t.appendColumnTypes&&(i.columnTypes=[...of(e.columnTypes),...of(t.columnTypes)]),i}function dm(e,t,i){return t?t.baseDataType===e.baseDataType||(tX(46),!1):(tX(45,{parentCellDataType:i}),!1)}function df(e,t){if(e.valueFormatter)return i=>{let{node:o,colDef:r,column:s,value:n}=i;if(o?.group){let t=(r.pivotValueColumn??s).getAggFunc();if(t){if("first"===t||"last"===t)return e.valueFormatter(i);let{baseDataType:o}=e;if(("number"===o||"bigint"===o)&&"count"!==t){if("bigint"==typeof n||"number"==typeof n)return e.valueFormatter(i);if(null==n)return;if("object"==typeof n){if("function"==typeof n.toNumber)return e.valueFormatter({...i,value:n.toNumber()});if("value"in n)return e.valueFormatter({...i,value:n.value})}}return}}else if(t.get("groupHideOpenParents")&&i.column.isRowGroupActive()&&"string"==typeof i.value&&!e.dataTypeMatcher?.(i.value))return;return e.valueFormatter(i)}}function dC(e,t){if(null==e)return null==t?0:-1;if(null==t)return 1;let i=a9(e),o=a9(t);return null!=i&&null!=o?i===o?0:i>o?1:-1:0}function dv(e,t){if(null==e)return null==t?0:-1;if(null==t)return 1;let i=dw(e),o=dw(t);return null!=i&&null!=o?i===o?0:i>o?1:-1:0}function dw(e){let t=a9(e);return null==t?null:t<0n?-t:t}function db(e,t){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([i,o])=>(function(e,t,i,o){if(!t[i])return!1;let r=e[i];return null===r?(t[i]=!1,!1):void 0===o?!!r:r===o})(e,t,i,o))}var dy={moduleName:"ColumnApi",version:tU,beans:[a8],apiFunctions:{getColumnDef:function(e,t){let i=e.colModel.getColDefCol(t);return i?i.getColDef():null},getDisplayNameForColumn:function(e,t,i){return e.colNames.getDisplayNameForColumn(t,i)||""},getColumn:function(e,t){return e.colModel.getColDefCol(t)},getColumns:function(e){return e.colModel.getColDefCols()},applyColumnState:function(e,t){return oO(e,t,"api")},getColumnState:function(e){return oW(e)},resetColumnState:function(e){oN(e,"api")},isPinning:function(e){return e.visibleCols.isPinningLeft()||e.visibleCols.isPinningRight()},isPinningLeft:function(e){return e.visibleCols.isPinningLeft()},isPinningRight:function(e){return e.visibleCols.isPinningRight()},getDisplayedColAfter:function(e,t){return e.visibleCols.getColAfter(t)},getDisplayedColBefore:function(e,t){return e.visibleCols.getColBefore(t)},setColumnsVisible:function(e,t,i){e.colModel.setColsVisible(t,i,"api")},setColumnsPinned:function(e,t,i){e.pinnedCols?.setColsPinned(t,i,"api")},getAllGridColumns:function(e){return e.colModel.getCols()},getDisplayedLeftColumns:function(e){return e.visibleCols.leftCols},getDisplayedCenterColumns:function(e){return e.visibleCols.centerCols},getDisplayedRightColumns:function(e){return e.visibleCols.rightCols},getAllDisplayedColumns:function(e){return e.visibleCols.allCols},getAllDisplayedVirtualColumns:function(e){return e.colViewport.getViewportColumns()},getColumnDefs:function(e){return e.colModel.getColumnDefs(!0)}}},dS=class extends tc{constructor(){super(...arguments),this.beanName="
1colNames"}getDisplayNameForColumn(e,t,i=!1){if(!e)return null;let o=this.getHeaderName(e.getColDef(),e,null,null,t),{aggColNameSvc:r}=this.beans;return i&&r?r.getHeaderName(e,o):o}getDisplayNameForProvidedColumnGroup(e,t,i){let o=t?.getColGroupDef();return o?this.getHeaderName(o,null,e,t,i):null}getDisplayNameForColumnGroup(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)}getHeaderName(e,t,i,o,r){let s=e.headerValueGetter;if(s){let n=iK(this.gos,{colDef:e,column:t,columnGroup:i,providedColumnGroup:o,location:r});if("function"==typeof s)return s(n);if("string"==typeof s)return this.beans.expressionSvc?.evaluate(s,n)??null}else if(null!=e.headerName)return e.headerName;else if(e.field)return V(e.field);return""}},dR=class extends tc{constructor(){super(...arguments),this.beanName="colViewport",this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.colsWithinViewportHash="",this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},this.columnsToRenderLeft=[],this.columnsToRenderRight=[],this.columnsToRenderCenter=[]}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}getScrollPosition(){return this.scrollPosition}setScrollPosition(e,t,i=!1){let{visibleCols:o}=this,r=o.isBodyWidthDirty;if(!(e===this.scrollWidth&&t===this.scrollPosition&&!r)){if(this.scrollWidth=e,this.scrollPosition=t,o.isBodyWidthDirty=!0,this.gos.get("enableRtl")){let i=o.bodyWidth;this.viewportLeft=i-t-e,this.viewportRight=i-t}else this.viewportLeft=t,this.viewportRight=e+t;this.colModel.ready&&this.checkViewportColumns(i)}}getColumnHeadersToRender(e){switch(e){case"left":return this.columnsToRenderLeft;case"right":return this.columnsToRenderRight;default:return this.columnsToRenderCenter}}getHeadersToRender(e,t){let i;switch(e){case"left":i=this.rowsOfHeadersToRenderLeft[t];break;case"right":i=this.rowsOfHeadersToRenderRight[t];break;default:i=this.rowsOfHeadersToRenderCenter[t]}return i??[]}extractViewportColumns(){let e=this.visibleCols.centerCols;this.isColumnVirtualisationSuppressed()?(this.colsWithinViewport=e,this.headerColsWithinViewport=e):(this.colsWithinViewport=e.filter(this.isColumnInRowViewport.bind(this)),this.headerColsWithinViewport=e.filter(this.isColumnInHeaderViewport.bind(this)))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||0===this.viewportRight}clear(){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},this.colsWithinViewportHash=""}isColumnInHeaderViewport(e){return!!(e.isAutoHeaderHeight()||function(e){for(;e;){if(e.isAutoHeaderHeight())return!0;e=e.getParent()}return!1}(e))||this.isColumnInRowViewport(e)}isColumnInRowViewport(e){if(e.isAutoHeight())return!0;let t=e.getLeft()||0,i=t+e.getActualWidth(),o=this.viewportLeft-200,r=this.viewportRight+200;return!(t<o&&i<o)&&!(t>r&&i>r)}getViewportColumns(){let{leftCols:e,rightCols:t}=this.visibleCols;return this.colsWithinViewport.concat(e).concat(t)}getColsWithinViewport(e){if(!this.colModel.colSpanActive)return this.colsWithinViewport;let t=e=>{let t=e.getLeft();return F(t)&&t>this.viewportLeft},i=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this),{visibleCols:o}=this,r=o.centerCols;return o.getColsForRow(e,r,i,t)}checkViewportColumns(e=!1){this.extractViewport()&&this.eventSvc.dispatchEvent({type:"virtualColumnsChanged",afterScroll:e})}calculateHeaderRows(){let{leftCols:e,rightCols:t}=this.visibleCols;this.columnsToRenderLeft=e,this.columnsToRenderRight=t,this.columnsToRenderCenter=this.colsWithinViewport;let i=e=>{let t=new Set,i={};for(let o of e){let e=o.getParent(),r=o.isSpanHeaderHeight();for(;e&&!t.has(e);){if(r&&e.isPadding()){e=e.getParent();continue}let o=e.getProvidedColumnGroup().getLevel();i[o]??(i[o]=[]),i[o].push(e),t.add(e),e=e.getParent()}}return i};this.rowsOfHeadersToRenderLeft=i(e),this.rowsOfHeadersToRenderRight=i(t),this.rowsOfHeadersToRenderCenter=i(this.headerColsWithinViewport)}extractViewport(){this.extractViewportColumns();let e=this.getViewportColumns().map(e=>`${e.getId()}-${e.getPinned()||"normal"}`).join("#"),t=this.colsWithinViewportHash!==e;return t&&(this.colsWithinViewportHash=e,this.calculateHeaderRows()),t}},dE=class extends tc{constructor(){super(...arguments),this.beanName="agCompUtils"}adaptFunction(e,t){if(!e.cellRenderer)return null;class i{refresh(){return!1}getGui(){return this.eGui}init(e){let i=t(e),o=typeof i;
1if("string"===o||"number"===o||"boolean"===o){this.eGui=eN("<span>"+i+"</span>");return}if(null==i){this.eGui=e2({tag:"span"});return}this.eGui=i}}return i}},dx=class extends tu{constructor(){super(...arguments),this.beanName="registry"}registerDynamicBeans(e){if(e)for(let t of(this.dynamicBeans??(this.dynamicBeans={}),Object.keys(e)))this.dynamicBeans[t]=e[t]}createDynamicBean(e,t,...i){if(!this.dynamicBeans)throw Error(this.getDynamicError(e,!0));let o=this.dynamicBeans[e];if(null==o){if(t)throw Error(this.getDynamicError(e,!1));return}return new o(...i)}},dF=class extends dx{constructor(){super(...arguments),this.agGridDefaults={},this.agGridDefaultOverrides={},this.jsComps={},this.selectors={},this.icons={}}postConstruct(){let e=this.gos.get("components");if(null!=e)for(let t of Object.keys(e))this.jsComps[t]=e[t]}registerModule(e){let{icons:t,userComponents:i,dynamicBeans:o,selectors:r}=e;if(i){let e=(e,t,i,o)=>{this.agGridDefaults[e]=t,(i||o)&&(this.agGridDefaultOverrides[e]={params:i,processParams:o})};for(let t of Object.keys(i)){var s;let o=i[t];if("object"==typeof(s=o)&&s.getComp&&(o=o.getComp(this.beans)),"object"==typeof o){let{classImp:i,params:r,processParams:s}=o;e(t,i,r,s)}else e(t,o)}}for(let e of(this.registerDynamicBeans(o),r??[]))this.selectors[e.selector]=e;if(t)for(let e of Object.keys(t))this.icons[e]=t[e]}getUserComponent(e,t){let i=(e,t,i,o)=>({componentFromFramework:t,component:e,params:i,processParams:o}),{frameworkOverrides:o}=this.beans,r=o.frameworkComponent(t,this.gos.get("components"));if(null!=r)return i(r,!0);let s=this.jsComps[t];if(s){let e=o.isFrameworkComponent(s);return i(s,e)}let n=this.agGridDefaults[t];if(n){let e=this.agGridDefaultOverrides[t];return i(n,!1,e?.params,e?.processParams)}return this.beans.validation?.missingUserComponent(e,t,this.agGridDefaults,this.jsComps),null}getSelector(e){return this.selectors[e]}getIcon(e){return this.icons[e]}getDynamicError(e,t){return t?t6(279,{name:e}):this.beans.validation?.missingDynamicBean(e)??t6(256)}},dP=class extends tc{constructor(){super(...arguments),this.beanName="ctrlsSvc",this.params={},this.ready=!1,this.readyCallbacks=[]}postConstruct(){this.addEventListener("ready",()=>{if(this.updateReady(),this.ready){for(let e of this.readyCallbacks)e(this.params);this.readyCallbacks.length=0}},this.beans.frameworkOverrides.runWhenReadyAsync?.()??!1)}updateReady(){let e=Object.values(this.params);this.ready=23===e.length&&e.every(e=>e?.isAlive()??!1)}whenReady(e,t){this.ready?t(this.params):this.readyCallbacks.push(t),e.addDestroyFunc(()=>{let e=this.readyCallbacks.indexOf(t);e>=0&&this.readyCallbacks.splice(e,1)})}register(e,t){this.params[e]=t,this.updateReady(),this.ready&&this.dispatchLocalEvent({type:"ready"}),t.addDestroyFunc(()=>{this.updateReady()})}get(e){return this.params[e]}getGridBodyCtrl(){return this.params.gridBodyCtrl}getHeaderRowContainerCtrls(){let{leftHeader:e,centerHeader:t,rightHeader:i}=this.params;return[e,i,t]}getHeaderRowContainerCtrl(e){let t=this.params;switch(e){case"left":return t.leftHeader;case"right":return t.rightHeader;default:return t.centerHeader}}getScrollFeature(){return this.getGridBodyCtrl().scrollFeature}},dD="object"!=typeof window||!window?.document?.fonts?.forEach,dM=(e,t,i,o,r,s,n=!1)=>{let l;if(dD)return;o&&(e=`@layer ${CSS.escape(o).replaceAll("\\.",".")} { ${e} }`);let a=dA.map.get(t);if(a||(a=[],dA.map.set(t,a)),a.some(t=>t.css===e))return;let d=document.createElement("style");s&&d.setAttribute("nonce",s),d.dataset.agGlobalCss=i,d.textContent=e;let h={css:e,el:d,priority:r,isParams:n};for(let e of a){if(e.priority>r)break;l=e}if(l){l.el.after(d);let e=a.indexOf(l);a.splice(e+1,0,h)}else"STYLE"===t.nodeName?t.after(d):t.insertBefore(d,t.querySelector(":not(title, meta)")),a.push(h)},dk=(e,t,i,o)=>{dM(':where([class^=ag-]),:where([class^=ag-]):after,:where([class^=ag-]):before{box-sizing:border-box}:where([class^=ag-]):where(button){color:inherit}:where([class^=ag-]):where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none;&:where(.invalid){box-shadow:inset var(--ag-focus-error-shadow)}}:where([class^=ag-]) ::-ms-clear{display:none}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}
1.ag-tab-guard{display:block;height:0;position:absolute;width:0}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-measurement-container{height:0;overflow:hidden;visibility:hidden;width:0}.ag-measurement-element-border{display:inline-block}.ag-measurement-element-border:before{border-left:var(--ag-internal-measurement-border);content:"";display:block}.ag-popup-child{top:0;z-index:5}.ag-popup-child:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input:where(:not([type=checkbox],[type=radio])){flex:1 1 auto;min-width:0;width:100%}.ag-chart,.ag-dnd-ghost,.ag-external,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);--ag-indentation-level:0}:where(.ag-icon):before{align-items:center;background-color:currentcolor;color:inherit;content:"";display:flex;font-family:inherit;font-size:var(--ag-icon-size);font-style:normal;font-variant:normal;height:var(--ag-icon-size);justify-content:center;line-height:var(--ag-icon-size);-webkit-mask-size:contain;mask-size:contain;text-transform:none;width:var(--ag-icon-size)}.ag-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;color:var(--ag-icon-color);display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-disabled .ag-icon,[disabled] .ag-icon{opacity:.5}.ag-icon-grip.ag-disabled,.ag-icon-grip[disabled]{opacity:.35}.ag-resizer{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}:where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize;height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{cursor:nesw-resize;height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;cursor:nwse-resize;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;cursor:nesw-resize;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;overflow-y:auto;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}',e,"shared",t,0,i),o?.forEach((o,r)=>o.forEach(o=>dM(o,e,r,t,0,i)))},dT=(e,t=!1)=>{let i=new Set;for(let t of dA.grids.values())t.styleContainer===e&&i.add(t.paramsCss);let o=dA.map.get(e)??[];for(let e=o.length-1;e>=0;e--)(t||o[e].isParams&&!i.has(o[e].css))&&(o[e].el.remove(),o.splice(e,1))},dA=(m="object"==typeof window?window:{}).agStyleInjectionState??(m.agStyleInjectionState={map:new WeakMap,grids:new Map}),dI=e=>new dH(e),dL="$default",dB=0,dH=class{constructor({feature:e,params:t,modeParams:i={},css:o,cssImports:r}){this.feature=e,this.css=o,this.cssImports=r,this.modeParams={[dL]:{...i[dL]??{},...t??{}},...i}}use(e,t,i){let o=this._inject;if(null==o){let{css:e}=this;if(e){let t=`ag-theme-${this.feature??"part"}-${++dB}`;for(let i of("function"==typeof e&&(e=e()),e=`:where(.${t}) {
2${e}
3}
4`,this.cssImports??[]))e=`@import url(${JSON.stringify(i)});
5${e}`;o={css:e,class:t}}else o=!1;this._inject=o}return o&&e&&dM(o.css,e,o.class,t,1,i),!!o&&o.class}},dV=e=>`--ag-${e.replace(/[A-Z]|\d+/g,e=>`-${e}`).toLowerCase()}`,dG=e=>`var(${dV(e)})`,dO=e=>({ref:"accentColor",mix:e}),dN=e=>({ref:"foregroundColor",mix:e}),dz=e=>({ref:"foregroundColor",mix:e,onto:"backgroundColor"}),dW={ref:"backgroundColor"},dU={ref:"foregroundColor"},d_={ref:"accentColor"},d$={backgroundColor:"#fff",foregroundColor:"#181d1f",borderColor:dN(.15),chromeBackgroun
5dColor:dz(.02),browserColorScheme:"light"},dq={...d$,textColor:dU,accentColor:"#2196f3",invalidColor:"#e02525",fontFamily:["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],subtleTextColor:{ref:"textColor",mix:.5},borderWidth:1,borderRadius:4,spacing:8,fontSize:14,focusShadow:{spread:3,color:dO(.5)},focusErrorShadow:{spread:3,color:{ref:"invalidColor",onto:"backgroundColor",mix:.5}},popupShadow:"0 0 16px #00000026",cardShadow:"0 1px 4px 1px #00000018",dropdownShadow:{ref:"cardShadow"},listItemHeight:{calc:"max(iconSize, dataFontSize) + widgetVerticalSpacing"},dragAndDropImageBackgroundColor:dW,dragAndDropImageBorder:!0,dragAndDropImageNotAllowedBorder:{color:{ref:"invalidColor",onto:"dragAndDropImageBackgroundColor",mix:.5}},dragAndDropImageShadow:{ref:"popupShadow"},iconSize:16,iconColor:"inherit",toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonOnBackgroundColor:d_,toggleButtonOffBackgroundColor:dz(.3),toggleButtonSwitchBackgroundColor:dW,toggleButtonSwitchInset:2,tooltipBackgroundColor:{ref:"chromeBackgroundColor"},tooltipErrorBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.1},tooltipTextColor:{ref:"textColor"},tooltipErrorTextColor:{ref:"invalidColor"},tooltipBorder:!0,tooltipErrorBorder:{color:{ref:"invalidColor",onto:"backgroundColor",mix:.25}},panelBackgroundColor:dW,panelTitleBarHeight:{ref:"headerHeight"},panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarIconColor:{ref:"headerTextColor"},panelTitleBarTextColor:{ref:"headerTextColor"},panelTitleBarFontFamily:{ref:"headerFontFamily"},panelTitleBarFontSize:{ref:"headerFontSize"},panelTitleBarFontWeight:{ref:"headerFontWeight"},panelTitleBarBorder:!0,dialogShadow:{ref:"popupShadow"},dialogBorder:{color:dN(.2)},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 1.5"},widgetHorizontalSpacing:{calc:"spacing * 1.5"},widgetVerticalSpacing:{ref:"spacing"},dataFontSize:{ref:"fontSize"},headerBackgroundColor:{ref:"chromeBackgroundColor"},headerFontFamily:{ref:"fontFamily"},headerFontSize:{ref:"fontSize"},headerFontWeight:500,headerTextColor:{ref:"textColor"},headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale"},headerVerticalPaddingScale:1,menuBorder:{color:dN(.2)},menuBackgroundColor:dz(.03),menuTextColor:dz(.95),menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"}},dK=["colorScheme","color","length","scale","borderStyle","border","shadow","image","fontFamily","fontWeight","duration"],dj=(e=>{let t=new Map;return i=>(t.has(i)||t.set(i,e(i)),t.get(i))})(e=>(e=e.toLowerCase(),dK.find(t=>e.endsWith(t.toLowerCase()))??"length")),dY=e=>"object"==typeof e&&e?.ref?dG(e.ref):"string"==typeof e?e:"number"==typeof e&&String(e),dQ=e=>{if("string"==typeof e)return e;if("object"==typeof e&&e&&"ref"in e){let t=dG(e.ref);if(null==e.mix)return t;let i=e.onto?dG(e.onto):"transparent";return`color-mix(in srgb, ${i}, ${t} ${Math.max(0,Math.min(100,100*e.mix))}%)`}return!1},dZ=e=>{if("string"==typeof e)return e;if("number"==typeof e)return`${e}px`;if("object"==typeof e&&e&&"calc"in e){let t=e.calc.replace(/ ?[*/+] ?/g," $& ");return`calc(${t.replace(/-?\b[a-z][a-z0-9]*\b(?![-(])/gi,e=>"-"===e[0]?e:" "+dG(e)+" ")})`}return"object"==typeof e&&!!e&&"ref"in e&&dG(e.ref)},dJ=(e,t)=>"string"==typeof e?e:!0===e?dJ({},t):!1===e?"columnBorder"===t?dJ({color:"transparent"},t):"none":"object"==typeof e&&e&&"ref"in e?dG(e.ref):d0(e.style??"solid")+" "+dZ(e.width??{ref:"borderWidth"})+" "+dQ(e.color??{ref:"borderColor"}),dX=e=>[dZ(e.offsetX??0),dZ(e.offsetY??0),dZ(e.radius??0),dZ(e.spread??0),dQ(e.color??{ref:"foregroundColor"}),...e.inset?["inset"]:[]].join(" "),d0=dY,d1=e=>"string"==typeof e?e.includes(",")?e:d3(e):"object"==typeof e&&e&&"googleFont"in e?d1(e.googleFont):"object"==typeof e&&e&&"ref"in e?dG(e.ref):!!Array.isArray(e)&&e.map(e=>("object"==typeof e&&"googleFont"in e&&(e=e.googleFont),d3(e))).join(", "),d3=e=>/^[\w-]+$|\w\(/.test(e)?e:JSON.stringify(e),d2=e=>"string"==typeof e?e:"object"==typeof e&&e&&"url"in e?`url(${JSON.stringify(e.url)})`:"object"==typeof e&&e&&"svg"in e?d2({url:`data:image/svg+xml,${encodeURIComponent(e.svg)}`}):"object"==typeof e&&!!e&&"ref"in e&&dG(e.ref),d6={color:dQ,colorScheme:dY,length:dZ,scale:dY,border:dJ,borderStyle:d0,shadow:e=>"string"==typeof e?e:!1===e?"none":"object"==typeof e&&e&&"ref"in e?dG(e.ref):Array.isArray(e)?e.map(dX).join(", "):dX(e),image:d2,fontFamily:d1,fontWeight:dY,duration:(e,t,i)=>"string"==typeof e?e:"number"==typeof e?(e>=10&&i.warn(104,{value:e,param:t}),`${e}s`):"object"==typeof e&&!!e&&"ref"in e&&dG(e.ref)},d4=(e,t,i)=>d6[dj(e)](t,e,i),d5=0,d8=e=>{if(!(e instanceof d9))throw Error("theme is not an object created by createTheme");return e},d7=(e,t)=>new d9({themeLogger:e,overridePrefix:t}),d9=class e{constructor(e,t=[]){this.params=e,this.parts=t}withPart(t){return("function"==typeof t&&(t=t()),t instanceof dH)?new e(this.params,[...this.parts,t]):(this.params.themeLogger.preInitErr(259,"Invalid part",{part:t}),this)}withoutPart(e){return this.withPart(dI({feature:e}))}withParams(e,t=dL){return this.withPart(dI({modeParams:{[t]:e}}))}_startUse({styleContainer:e,cssLayer:t,nonce:i,loadThemeGoogleFonts:o,module
5Css:r}){if(dD)return;ho(),dk(e,t,i,r);let s=ht(this);if(s.length>0)for(let e of s)o&&hr(e,i);for(let o of this.parts)o.use(e,t,i)}_getCssClass(){return this._cssClassCache??(this._cssClassCache=he(this.parts).map(e=>e.use(void 0,void 0,void 0)).filter(Boolean).concat(this._getParamsClassName()).join(" "))}_getParamsClassName(){return this._paramsClassName??(this._paramsClassName=`ag-theme-params-${++d5}`)}_getModeParams(){let e=this._paramsCache;if(!e){let t={[dL]:{...dq}};for(let e of he(this.parts))for(let i of Object.keys(e.modeParams)){let o=e.modeParams[i];if(o){let e=t[i]??(t[i]={}),r=new Set;for(let t of Object.keys(o)){let i=o[t];void 0!==i&&(e[t]=i,r.add(t))}if(i===dL)for(let e of Object.keys(t)){let i=t[e];if(e!==dL)for(let e of r)delete i[e]}}}this._paramsCache=e=t}return e}_getParamsCss(){if(!this._paramsCssCache){let e="",t="",i=this._getModeParams(),{overridePrefix:o,themeLogger:r}=this.params,s=o?`--ag-${o}-`:void 0;for(let o of Object.keys(i)){let n=i[o];if(o!==dL){let i="object"==typeof CSS?CSS.escape(o):o,r=`:where([data-ag-theme-mode="${i}"]) & {
6`;e+=r,t+=r}for(let i of Object.keys(n).sort()){let o=n[i],l=d4(i,o,r);if(!1===l)r.error(107,{key:i,value:o});else{let o=dV(i),r=s?o.replace("--ag-",s):o,n=o.replace("--ag-","--ag-inherited-");e+=`	${o}: var(${n}, ${l});
7`,t+=`	${n}: var(${r});
8`}}o!==dL&&(e+="}\n",t+="}\n")}let n=`:where(.${this._getParamsClassName()})`,l=`${n} {
9${e}}
10`;l+=`:has(> ${n}):not(${n}) {
11${t}}
12`,this._paramsCssCache=l}return this._paramsCssCache}},he=e=>{let t=new Map;for(let i of e)t.set(i.feature,i);let i=[];for(let o of e)o.feature&&t.get(o.feature)!==o||i.push(o);return i},ht=e=>{let t=new Set,i=e=>{if(Array.isArray(e))e.forEach(i);else{let i=e?.googleFont;"string"==typeof i&&t.add(i)}};return Object.values(e._getModeParams()).flatMap(e=>Object.values(e)).forEach(i),Array.from(t).sort()},hi=!1,ho=()=>
12{if(!hi)for(let e of(hi=!0,Array.from(document.head.querySelectorAll('style[data-ag-scope="legacy"]'))))e.remove()},hr=async(e,t)=>{dM(`@import url('https://${hs}/css2?family=${encodeURIComponent(e)}:wght@100;200;300;400;500;600;700;800;900&display=swap');
13`,document.head,`googleFont:${e}`,void 0,0,t)},hs="fonts.googleapis.com",hn={changeKey:"listItemHeight",type:"length",defaultValue:24},hl=class extends tu{constructor(){super(...arguments),this.beanName="environment",this.sizeEls=new Map,this.lastKnownValues=new Map,this.sizesMeasured=!1,this.globalCSS=[]}wireBeans(e){this.eRootDiv=e.eRootDiv}postConstruct(){let{gos:e,eRootDiv:t}=this;e.setInstanceDomData(t);let i=e.get("themeStyleContainer"),o="undefined"!=typeof ShadowRoot,r=o&&t.getRootNode()instanceof ShadowRoot;this.eStyleContainer=("function"==typeof i?i():i)??(r?t:document.head),i||r||!o||hd(t,this.shadowRootError.bind(this),this.addDestroyFunc.bind(this)),this.cssLayer=e.get("themeCssLayer"),this.styleNonce=e.get("styleNonce"),this.addManagedPropertyListener("theme",()=>this.handleThemeChange()),this.handleThemeChange(),this.getSizeEl(hn),this.initVariables(),this.addDestroyFunc(()=>(e=>{let t=dA.grids.get(e)?.styleContainer;t&&(dA.grids.delete(e),Array.from(dA.grids.values()).some(e=>e.styleContainer===t)?dT(t):(dT(t,!0),dA.map.delete(t)))})(this)),this.mutationObserver=new MutationObserver(()=>{this.fireStylesChangedEvent("theme")}),this.addDestroyFunc(()=>this.mutationObserver.disconnect())}applyThemeClasses(e,t=[]){let{theme:i}=this,o=i?i._getCssClass():this.applyLegacyThemeClasses();for(let t of Array.from(e.classList))t.startsWith("ag-theme-")&&e.classList.remove(t);if(o){let i=e.className;e.className=`${i}${i?" ":""}${o}${t?.length?" "+t.join(" "):""}`}}applyLegacyThemeClasses(){let e="";this.mutationObserver.disconnect();let t=this.eRootDiv;for(;t;){let i=!1;for(let o of Array.from(t.classList))o.startsWith("ag-theme-")&&(i=!0,e=e?`${e} ${o}`:o);i&&this.mutationObserver.observe(t,{attributes:!0,attributeFilter:["class"]}),t=t.parentElement}return e}addGlobalCSS(e,t){this.theme?dM(e,this.eStyleContainer,t,this.cssLayer,0,this.styleNonce):this.globalCSS.push([e,t])}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(hn)}getCSSVariablePixelValue(e){let t=this.lastKnownValues.get(e);if(null!=t)return t;let i=this.measureSizeEl(e);return"detached"===i||"no-styles"===i?(e.cacheDefault&&this.lastKnownValues.set(e,e.defaultValue),e.defaultValue):(this.lastKnownValues.set(e,i),i)}measureSizeEl(e){let t=this.getSizeEl(e);if(null==t.offsetParent)return"detached";let i=t.offsetWidth;return i===ha?"no-styles":(this.sizesMeasured=!0,i)}getMeasurementContainer(){let e=this.eMeasurementContainer;return e||(e=this.eMeasurementContainer=e2({tag:"div",cls:"ag-measurement-container"}),this.eRootDiv.appendChild(e)),e}getSizeEl(e){let t=this.sizeEls.get(e);if(t)return t;let i=this.getMeasurementContainer();t=e2({tag:"div"});let o=this.setSizeElStyles(t,e);i.appendChild(t),this.sizeEls.set(e,t);let{type:r,noWarn:s}=e;if("length"!==r&&"border"!==r)return t;let n=this.measureSizeEl(e);"no-styles"!==n||s||this.varError(o,e.defaultValue);let l=eX(this.beans,t,()=>{let t=this.measureSizeEl(e);"detached"!==t&&"no-styles"!==t&&(this.lastKnownValues.set(e,t),t!==n&&(n=t,this.fireStylesChangedEvent(e.changeKey)))});return this.addDestroyFunc(()=>l()),t}setSizeElStyles(e,t){let{changeKey:i,type:o}=t,r=dV(i);return"border"===o?(r.endsWith("-width")&&(r=r.slice(0,-6)),e.className="ag-measurement-element-border",e.style.setProperty("--ag-internal-measurement-border",`var(${r}, solid ${ha}px)`)):e.style.width=`var(${r}, ${ha}px)`,r}handleThemeChange(){let e,{gos:t,theme:i}=this,o=t.get("theme");if("legacy"===o)e=void 0;else{let t=o??this.getDefaultTheme();t instanceof d9?e=t:this.themeError(t)}e!==i&&this.handleNewTheme(e),this.postProcessThemeChange(e,o)}handleNewTheme(e){let{gos:t,eRootDiv:i,globalCSS:o}=this,r=this.getAdditionalCss();if(e){for(let[e,t]of(dk(this.eStyleContainer,this.cssLayer,this.styleNonce,r),o))dM(e,this.eStyleContainer,t,this.cssLayer,0,this.styleNonce);o.length=0}this.theme=e,e?._startUse({loadThemeGoogleFonts:t.get("loadThemeGoogleFonts"),styleContainer:this.eStyleContainer,cssLayer:this.cssLayer,nonce:this.styleNonce,moduleCss:r}),((e,t,i,o,r,s)=>{if(dD)return;let n=dA.grids.get(e);n?n.paramsCss=t:dA.grids.set(e,{styleContainer:o,paramsCss:t}),dT(o),t&&i&&dM(t,o,i,r,2,s,!0)})(this,e?._getParamsCss()??null,e?._getParamsClassName()??null,this.eStyleContainer,this.cssLayer,this.styleNonce),this.applyThemeClasses(i),this.fireStylesChangedEvent("theme")}fireStylesChangedEvent(e){this.eventSvc.dispatchEvent({type:"stylesChanged",[`${e}Changed`]:!0})}},ha=15538,hd=(e,t,i)=>{let o=60,r=setInterval(()=>{"undefined"!=typeof ShadowRoot&&e.getRootNode()instanceof ShadowRoot&&(t(),clearInterval(r)),(eG(e)||--o<0)&&clearInterval(r)},1e3);i(()=>clearInterval(r))},hh={wrapperBorder:!0,rowBorder:!0,headerRowBorder:!0,footerRowBorder:{ref:"rowBorder"},columnBorder:{style:"solid",width:1,color:"transparent"},headerColumnBorder:!1,headerColumnBorderHeight:"100%",pinnedColumnBorder:!0,pinnedRowBorder:!0,sidePanelBorder:!0,sideBarPanelWidth:250,sideBarBackgroun
vendor: 1,859 bytes, line 13
13dColor:{ref:"chromeBackgroundColor"},sideButtonBarBackgroundColor:{ref:"sideBarBackgroundColor"},sideButtonBarTopPadding:0,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineColor:"transparent",sideButtonSelectedUnderlineTransitionDuration:0,sideButtonBackgroundColor:"transparent",sideButtonTextColor:{ref:"textColor"},sideButtonHoverBackgroundColor:{ref:"sideButtonBackgroundColor"},sideButtonHoverTextColor:{ref:"sideButtonTextColor"},sideButtonSelectedBackgroundColor:dW,sideButtonSelectedTextColor:{ref:"sideButtonTextColor"},sideButtonBorder:"solid 1px transparent",sideButtonSelectedBorder:!0,sideButtonLeftPadding:{ref:"spacing"},sideButtonRightPadding:{ref:"spacing"},sideButtonVerticalPadding:{calc:"spacing * 3"},cellFontFamily:{ref:"fontFamily"},headerCellHoverBackgroundColor:"transparent",headerCellMovingBackgroundColor:{ref:"headerCellHoverBackgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:d_,rangeSelectionBackgroundColor:dO(.2),rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:dO(.5),rangeHeaderHighlightColor:{ref:"foregroundColor",mix:.08,onto:"headerBackgroundColor"},rowNumbersSelectedColor:dO(.5),rowHoverColor:dO(.08),columnHoverColor:dO(.05),selectedRowBackgroundColor:dO(.12),modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},dataBackgroundColor:dW,oddRowBackgroundColor:{ref:"dataBackgroundColor"},wrapperBorderRadius:8,cellHorizontalPadding:{calc:"spacing * 2 * cellHorizontalPaddingScale"},cellWidgetSpacing:{calc:"spacing * 1.5"},cellHorizontalPaddingScale:1,rowGroupIndentSize:{calc:"cellWidgetSpacing + iconSize"},valueChangeDeltaUpColor:"#43a047",valueChangeDeltaDownColor:"#e53935",valueChangeValueHighlightBackgroun
13dColor:"#16a08580",rowHeight:{calc:"max(iconSize, dataFontSize) + spacing * 3.25 * rowVerticalPaddingScale"},rowVerticalPaddingScale:1,paginationPanelHeight:{ref:"rowHeight",calc:"max(rowHeight, 22px)"},dragHandleColor:dN(.7),headerColumnResizeHandleHeight:"30%",headerColumnResizeHandleWidth:2,headerColumnResizeHandleColor:{ref:"borderColor"},iconButtonColor:{ref:"iconColor"},iconButtonBackgroundColor:"transparent",iconButtonBackgroundSpread:4,iconButtonBorderRadius:1,iconButtonHoverColor:{ref:"iconButtonColor"},iconButtonHoverBackgroundColor:dN(.1),iconButtonActiveColor:d_,iconButtonActiveBackgroundColor:dO(.28),iconButtonActiveIndicatorColor:d_,setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:dN(.8),cellEditingBorder:{color:d_},cellEditingShadow:{ref:"cardShadow"},fullRowEditInvalidBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.25},columnSelectIndentSize:{ref:"iconSize"},toolPanelSeparatorBorder:!0,columnDropCellBackgroundColor:dN(.07),columnDropCellTextColor:{ref:"textColor"},columnDropCellDragHandleColor:{ref:"textColor"},columnDropCellBorder:{color:dN(.13)}
13,selectCellBackgroundColor:dN(.07),selectCellBorder:{color:dN(.13)},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",filterPanelApplyButtonColor:dW,filterPanelApplyButtonBackgroundColor:d_,filterPanelCardSubtleColor:{ref:"textColor",mix:.7},filterPanelCardSubtleHoverColor:{ref:"textColor"},findMatchColor:dU,findMatchBackgroundColor:"#ffff00",findActiveMatchColor:dU,findActiveMatchBackgroundColor:"#ffa500",filterToolPanelGroupIndent:{ref:"spacing"},rowLoadingSkeletonEffectColor:dN(.15),statusBarLabelColor:dU,statusBarLabelFontWeight:500,statusBarValueColor:dU,statusBarValueFontWeight:500,pinnedSourceRowTextColor:{ref:"textColor"},pinnedSourceRowBackgroundColor:{ref:"dataBackgroundColor"},pinnedSourceRowFontWeight:600,pinnedRowFontWeight:600,pinnedRowBackgroundColor:{ref:"dataBackgroundColor"},pinnedRowTextColor:{ref:"textColor"},rowDragIndicatorColor:{ref:"rangeSelectionBorderColor"},rowDragIndicatorWidth:2,columnDragIndicatorColor:{ref:"accentColor"},columnDragIndicatorWidth:2},hu={cellBatchEditBackgroundColor:"rgba(220 181 139 / 16%)",cellBatchEditTextColor:"#422f00",rowBatchEditBackgroundColor:{ref:"cellBatchEditBackgroundColor"},rowBatchEditTextColor:{ref:"cellBatchEditTextColor"}},hc={...hu,cellBatchEditTextColor:"#f3d0b3"},hg=dI({feature:"batchEditStyle",params:hu,css:".ag-cell-batch-edit{background-color:var(--ag-cell-batch-edit-background-color);color:var(--ag-cell-batch-edit-text-color);display:inherit}.ag-row-batch-edit{background-color:var(--ag-row-batch-edit-background-color);color:var(--ag-row-batch-edit-text-color)}"}),hp=":where(.ag-button){background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0;text-indent:inherit;text-shadow:inherit;text-transform:inherit;word-spacing:inherit;&:disabled{cursor:default}&:focus-visible{box-shadow:var(--ag-focus-shadow);outline:none}}.ag-standard-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--ag-button-background-color);border:var(--ag-button-border);border-radius:var(--ag-button-border-radius);color:var(--ag-button-text-color);cursor:pointer;font-weight:var(--ag-button-font-weight);padding:var(--ag-button-vertical-padding) var(--ag-button-horizontal-padding);&:active{background-color:var(--ag-button-active-background-color);border:var(--ag-button-active-border);color:var(--ag-button-active-text-color)}&:disabled{background-color:var(--ag-button-disabled-background-color);border:var(--ag-button-disabled-border);color:var(--ag-button-disabled-text-color)}}.ag-standard-button:hover{background-color:var(--ag-button-hover-background-color);border:var(--ag-button-hover-border);color:var(--ag-button-hover-text-color)}",hm={buttonTextColor:"inherit",buttonFontWeight:"normal",buttonBackgroundColor:"transparent",buttonBorder:!1,buttonBorderRadius:{ref:"borderRadius"},buttonHorizontalPadding:{calc:"spacing * 2"},buttonVerticalPadding:{ref:"spacing"},buttonHoverTextColor:{ref:"buttonTextColor"},buttonHoverBackgroundColor:{ref:"buttonBackgroundColor"},buttonHoverBorder:{ref:"buttonBorder"},buttonActiveTextColor:{ref:"buttonHoverTextColor"},buttonActiveBackgroundColor:{ref:"buttonHoverBackgroundColor"},buttonActiveBorder:{ref:"buttonHoverBorder"},buttonDisabledTextColor:{ref:"inputDisabledTextColor"},buttonDisabledBackgroundColor:{ref:"inputDisabledBackgroundColor"},buttonDisabledBorder:{ref:"inputDisabledBorder"}},hf=dI({feature:"buttonStyle",params:hm,css:hp}),hC=dI({feature:"buttonStyle",params:{...hm,buttonBackgroundColor:dW,buttonBorder:!0,buttonHoverBackgroundColor:{ref:"rowHoverColor"},buttonActiveBorder:{color:d_}},css:hp}),hv=dI({feature:"buttonStyle",params:{...hm,buttonBackgroundColor:dW,buttonBorder:{color:d_},buttonFontWeight:600,buttonTextColor:d_,buttonHoverBackgroundColor:{ref:"rowHoverColor"}
13,buttonActiveBackgroundColor:d_,buttonActiveTextColor:dW},css:hp}),hw=dI({feature:"buttonStyle",params:{...hm,buttonBorder:{color:dU,width:2,style:"outset"},buttonActiveBorder:{color:dU,width:2,style:"inset"},buttonBackgroundColor:dz(.07),buttonHoverBackgroundColor:dW,buttonVerticalPadding:{calc:"spacing * 0.5"}},css:hp}),hb=dI({feature:"columnDropStyle",css:".ag-column-drop-vertical-empty-message{align-items:center;border:dashed var(--ag-border-width);border-color:var(--ag-border-color);display:flex;inset:0;justify-content:center;margin:calc(var(--ag-spacing)*1.5) calc(var(--ag-spacing)*2);overflow:hidden;padding:calc(var(--ag-spacing)*2);position:absolute}"}),hy=dI({feature:"columnDropStyle",css:".ag-column-drop-vertical-empty-message{color:var(--ag-subtle-text-color);font-size:calc(var(--ag-font-size) - 1px);font-weight:600;padding-top:var(--ag-spacing)}:where(.ag-ltr) .ag-column-drop-vertical-empty-message{padding-left:calc(var(--ag-icon-size) + var(--ag-spacing) + var(--ag-widget-horizontal-spacing));padding-right:var(--ag-spacing)}:where(.ag-rtl) .ag-column-drop-vertical-empty-message{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-icon-size) + var(--ag-spacing) + var(--ag-widget-horizontal-spacing))}"}),hS=dI({feature:"formulaStyle",params:{formulaToken1Color:"#3269c6",formulaToken1BackgroundColor:{ref:"formulaToken1Color",mix:.08},formulaToken1Border:{color:{ref:"formulaToken1Color"}},formulaToken2Color:"#c0343f",formulaToken2BackgroundColor:{ref:"formulaToken2Color",mix:.06},formulaToken2Border:{color:{ref:"formulaToken2Color"}},formulaToken3Color:"#8156b8",formulaToken3BackgroundColor:{ref:"formulaToken3Color",mix:.08},formulaToken3Border:{color:{ref:"formulaToken3Color"}},formulaToken4Color:"#007c1f",formulaToken4BackgroundColor:{ref:"formulaToken4Color",mix:.06},formulaToken4Border:{color:{ref:"formulaToken4Color"}},formulaToken5Color:"#b03e85",formulaToken5BackgroundColor:{ref:"formulaToken5Color",mix:.08},formulaToken5Border:{color:{ref:"formulaToken5Color"}},formulaToken6Color:"#b74900",formulaToken6BackgroundColor:{ref:"formulaToken6Color",mix:.06},formulaToken6Border:{color:{ref:"formulaToken6Color"}},formulaToken7Color:"#247492",formulaToken7BackgroundColor:{ref:"formulaToken7Color",mix:.08},formulaToken7Border:{color:{ref:"formulaToken7Color"}}}}),hR={warn:(...e)=>{tX(e[0],e[1])},error:(...e)=>{t0(e[0],e[1])},preInitErr:(...e)=>{t1(e[0],e[2],e[1])}},hE=()=>d7(hR).withParams(hh).withPart(hC).withPart(hb).withPart(hg).withPart(hS),hx=dI({feature:"checkboxStyle",params:{checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:dW,checkboxUncheckedBorderColor:dz(.3),checkboxCheckedBackgroundColor:d_,checkboxCheckedBorderColor:{ref:"checkboxCheckedBackgroundColor"},checkboxCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="7" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M1 3.5 3.5 6l5-5"/></svg>'}
13,checkboxCheckedShapeColor:dW,checkboxIndeterminateBackgroundColor:dz(.3),checkboxIndeterminateBorderColor:{ref:"checkboxIndeterminateBackgroundColor"},checkboxIndeterminateShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="2" fill="none"><rect width="10" height="2" fill="#000" rx="1"/></svg>'},checkboxIndeterminateShapeColor:dW,radioCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" fill="none"><circle cx="3" cy="3" r="3" fill="#000"/></svg>'}},css:'.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);&:where(.ag-checked){background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color)}&:where(.ag-checked):after{background-color:var(--ag-checkbox-checked-shape-color)}&:where(.ag-disabled){filter:grayscale();opacity:.5}}.ag-checkbox-input,.ag-radio-button-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-icon-size);margin:0;opacity:0;width:var(--ag-icon-size)}.ag-checkbox-input-wrapper:after,.ag-radio-button-input-wrapper:after{content:"";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}.ag-checkbox-input-wrapper:where(:focus-within,:active),.ag-radio-button-input-wrapper:where(:focus-within,:active){box-shadow:var(--ag-focus-shadow)}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&:where(.ag-checked):after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&:where(.ag-indeterminate){background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color)}&:where(.ag-indeterminate):after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}.ag-cell-editing-error .ag-checkbox-input-wrapper:focus-within{box-shadow:var(--ag-focus-error-shadow)}.ag-radio-button-input-wrapper{border-radius:100%;&:where(.ag-checked):after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}'}),hF=dI({feature:"colorScheme",params:d$}),hP=dI({feature:"colorScheme",params:{...d$,foregroundColor:"#000000de",borderColor:"#60300026",chromeBackgroundColor:"#60300005"}}),hD=dI({feature:"colorScheme",params:{...d$,foregroundColor:"#000",chromeBackgroundColor:"#f3f8f8"}}),hM=()=>({...d$,...hc,backgroundColor:"hsl(217, 0%, 17%)",foregroundColor:"#FFF",chromeBackgroundColor:dz(.05),rowHoverColor:dO(.15),selectedRowBackgroundColor:dO(.2),menuBackgroundColor:dz(.1),browserColorScheme:"dark",popupShadow:"0 0px 20px #000A",cardShadow:"0 1px 4px 1px #000A",advancedFilterBuilderJoinPillColor:"#7a3a37",advancedFilterBuilderColumnPillColor:"#355f2d",advancedFilterBuilderOptionPillColor:"#5a3168",advancedFilterBuilderValuePillColor:"#374c86",filterPanelApplyButtonColor:dU,findMatchColor:dW,findActiveMatchColor:dW,checkboxUncheckedBorderColor:dz(.4),toggleButtonOffBackgroundColor:dz(.4),rowBatchEditBackgroundColor:dz(.1),formulaToken1Color:"#4da3e5",formulaToken2Color:"#f55864",formulaToken3Color:"#b688f2",formulaToken4Color:"#24bb4a",formulaToken5Color:"#e772ba",formulaToken6Color:"#f69b5f",formulaToken7Color:"#a3e6ff"}),hk=dI({feature:"colorScheme",params:hM()}),hT=()=>({...hM(),backgroundColor:"#1f2836"}),hA=dI({feature:"colorScheme",params:{backgroundColor:"hsl(29, 10%, 17%)",foregroundColor:"#FFF",browserColorScheme:"dark"}}),hI=dI({feature:"colorScheme",params:hT()}),hL=dI({feature:"colorScheme",params:d$,modeParams:{light:d$,dark:hM(),"dark-blue":hT()}}),hB=dI({feature:"iconSet",css:".ag-icon-aggregation:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eaggregation%3C/title%3E%3Cpath d='M25.128 2.002c2.56.096 4.772 2.292 4.87 4.87a712 712 0 0 1 0 18.256c-.096 2.56-2.292 4.772-4.87 4.87a712 712 0 0 1-18.256 0c-2.558-.096-4.772-2.29-4.87-4.87a712 712 0 0 1 0-18.256c.096-2.56 2.292-4.772 4.87-4.87a712 712 0 0 1 18.256 0M7.006 4c-1.57.02-2.946 1.348-3.004 2.922-.078 6.078-.23 12.16.002 18.234.094 1.484 1.354 2.746 2.84 2.84 6.1.232 12.212.232 18.312 0 1.48-.094 2.746-1.35 2.84-2.84.232-6.1.232-12.212 0-18.312-.094-1.48-1.35-2.746-2.84-2.84C19.11 3.774 13.056 4 7.006 4M22 12h-2v-2h-8v.092c.056 1.352 3.426 2.598 4.472 4.404.682 1.174.438 2.754-.572 3.72C14.29 19.618 12 20.924 12 22h8v-2h2v4H10c0-1.586-.098-3.304 1.016-4.314 1.904-1.632 4.89-3.108 3.54-4.42-1.918-1.68-4.464-2.936-4.554-5.12L10 8h12z'/%3E%3C/svg%3E\")}.ag-icon-arrows:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Earrows%3C/title%3E%3Cpath d='m6.414 17 2.294 2.292-1.416 1.416L2.586 16l4.706-4.708 1.416 1.416L6.414 15H15V6.414l-2.292 2.294-1.416-1.416L16 2.586l4.708 4.706-1.416 1.416L17 6.414V15h8.586l-2.294-2.292 1.416-1.416L29.414 16l-4.706 4.708-1.416-1.416L25.586 17H17v8.586l2.292-2.294 1.416 1.416L16 29.414l-4.708-4.706 1.416-1.416L15 25.586V17z'/%3E%3C/svg%3E\")}.ag-icon-asc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m15 10.621-4.292 4.294-1.416-1.416L16 6.793l6.708 6.706-1.416 1.416L17 10.621v14.586h-2z'/%3E%3C/svg%3E\")}.ag-icon-aasc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M13.201 8.08q.65 0 1.135.222.487.222.759.618.27.396.279.919H14.19a.72.72 0 0 0-.293-.536q-.26-.191-.705-.192-.302.001-.51.086a.7.7 0 0 0-.32.23.56.56 0 0 0-.108.338.5.5 0 0 0 .065.273.7.7 0 0 0 .204.203q.127.083.295.
13146.168.06.36.102l.525.125q.382.086.701.229.32.143.554.35.234.21.362.49.131.284.134.648a1.6 1.6 0 0 1-.273.93q-.27.391-.777.608-.504.214-1.217.214-.708 0-1.232-.217a1.8 1.8 0 0 1-.816-.642q-.29-.428-.305-1.058h1.194q.02.294.17.49.15.195.402.294.253.097.573.097.313 0 .544-.09a.84.84 0 0 0 .362-.255.6.6 0 0 0 .129-.374q0-.195-.117-.33a.9.9 0 0 0-.337-.228 3.4 3.4 0 0 0-.54-.171l-.635-.16q-.738-.18-1.166-.562t-.426-1.03a1.53 1.53 0 0 1 .284-.927q.287-.396.79-.618a2.8 2.8 0 0 1 1.14-.223'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5.813 14H4.489l-.432-1.332H1.948L1.515 14H.19l2.017-5.84h1.592zm-3.551-2.296h1.481l-.718-2.21H2.98zM8.452 8.16q.645 0 1.075.19.43.191.648.531a1.4 1.4 0 0 1 .217.775q0 .343-.137.602-.137.256-.376.422a1.6 1.6 0 0 1-.542.231v.057q.333.015.624.188.294.175.476.489.183.31.183.74 0 .466-.231.831a1.56 1.56 0 0 1-.676.573Q9.265 14 8.609 14H6.114V8.16zM7.35 12.99h1.006q.517 0 .753-.196a.66.66 0 0 0 .237-.531.8.8 0 0 0-.116-.428.8.8 0 0 0-.334-.29 1.15 1.15 0 0 0-.511-.106H7.349zm0-2.386h.916q.254 0 .45-.09a.75.75 0 0 0 .313-.256.67.67 0 0 0 .118-.396.64.64 0 0 0-.226-.511q-.223-.195-.633-.194H7.35z' clip-rule='evenodd'/%3E%3Cpath fill='%23000' d='M7.166.377a.75.75 0 0 1 .919.066l3.333 3a.75.75 0 0 1-1.003 1.115L7.609 2.033 5.113 4.53a.75.75 0 0 1-1.06-1.06l3-3z'/%3E%3C/svg%3E\")}.ag-icon-cancel:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecancel%3C/title%3E%3Cpath d='M16 4C9.378 4 4 9.378 4 16s5.378 12 12 12 12-5.378 12-12S22.622 4 16 4m0 2c5.52 0 10 4.48 10 10s-4.48 10-10 10S6 21.52 6 16 10.48 6 16 6m0 8.586 5.292-5.294 1.416 1.416L17.414 16l5.294 5.292-1.416 1.416L16 17.414l-5.292 5.294-1.416-1.416L14.586 16l-5.294-5.292 1.416-1.416z'/%3E%3C/svg%3E\")}.ag-icon-chart:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cpath d='M6.667 12.267h4v13.067h-4zm7.466-5.6h3.733v18.667h-3.733zM21.6 17.333h3.733v8H21.6z'/%3E%3C/svg%3E\")}.ag-icon-color-picker:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolor-picker%3C/title%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387H7.361zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667'/%3E%3C/svg%3E\")}.ag-icon-columns:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolumns%3C/title%3E%3Cpath d='M14 25h-2V7h2zm6 0h-2V7h2zm6 0h-2V7h2zM8 25H6V7h2z'/%3E%3C/svg%3E\")}.ag-icon-contracted:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Econtracted%3C/title%3E%3Cpath d='m21.061 16-8.706 8.708-1.416-1.416L18.233 16l-7.294-7.292 1.416-1.416z'/%3E%3C/svg%3E\")}.ag-icon-copy:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecopy%3C/title%3E%3Cpath d='M21.929 27.999h-7.828a5.09 5.09 0 0 1-5.086-5.086v-9.812a5.087 5.087 0 0 1 5.086-5.086h7.828a5.09 5.09 0 0 1 5.086 5.086v9.812a5.087 5.087 0 0 1-5.086 5.086m.16-17.984h-8.088a2.94 2.94 0 0 0-2.938 2.938v10.132a2.94 2.94 0 0 0 2.938 2.938h8.088a2.94 2.94 0 0 0 2.936-2.938V12.953a2.94 2.94 0 0 0-2.936-2.938M7.041 26.013h-2.05a4 4 0 0 1-.006-.228V9.065a5.07 5.07 0 0 1 5.064-5.064h12.812q.069 0 .134.002v2.012H9.915a2.876 2.876 0 0 0-2.874 2.874z'/%3E%3C/svg%3E\")}.ag-icon-cross:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4 4 24 24'%3E%3Ctitle%3Ecross%3C/title%3E%3Cpath d='m16 14.586 5.292-5.294 1.416 1.416L17.414 16l5.294 5.292-1.416 1.416L16 17.414l-5.292 5.294-1.416-1.416L14.586 16l-5.294-5.292 1.416-1.416z'/%3E%3C/svg%3E\")}.ag-icon-csv:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753
13-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='translate(3.934 -.054)scale(.06285)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E\")}.ag-icon-cut:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14.703 15.096 6.215 4.719a1 1 0 1 1 1.548-1.267l13.058 15.965A5.001 5.001 0 0 1 28 23.916a5 5 0 0 1-4.999 4.999 5 5 0 0 1-4.999-4.999 4.98 4.98 0 0 1 1.23-3.283l-3.238-3.958-3.272 4.001a4.98 4.98 0 0 1 1.265 3.323 5 5 0 0 1-4.999 4.999 5 5 0 0 1-4.999-4.999 5 5 0 0 1 7.13-4.522zM8.991 20.8a3.1 3.1 0 0 0-3.1 3.1c0 1.711 1.389 3.1 3.1 3.1s3.1-1.389 3.1-3.1-1.389-3.1-3.1-3.1M23 20.8a3.1 3.1 0 0 0-3.1 3.1c0 1.711 1.389 3.1 3.1 3.1s3.1-1.389 3.1-3.1-1.389-3.1-3.1-3.1m-5.723-8.852 1.292 1.579 7.205-8.808a1 1 0 0 0-1.548-1.267z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-desc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Edesc%3C/title%3E%3Cpath d='m17 21.379 4.292-4.294 1.416 1.416L16 25.207l-6.708-6.706 1.416-1.416L15 21.379V6.793h2z'/%3E%3C/svg%3E\")}.ag-icon-adesc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M10.387 11.47a.75.75 0 0 1 1.06 1.06l-3 3-.113.093a.75.75 0 0 1-.919-.065l-3.333-3a.75.75 0 0 1 1.003-1.116l2.806 2.525zM13.201 3.08q.65 0 1.135.222.487.223.759.619.27.396.279.918H14.19a.72.72 0 0 0-.293-.536q-.26-.192-.705-.192-.302.001-.51.086a.7.7 0 0 0-.32.23.56.56 0 0 0-.108.338.5.5 0 0 0 .065.273.7.7 0 0 0 .204.203q.127.083.295.
13146.168.06.36.102l.525.125a3.7 3.7 0 0 1 .701.229q.32.143.554.35.234.21.362.492.131.282.134.647a1.6 1.6 0 0 1-.273.93 1.74 1.74 0 0 1-.777.607q-.504.214-1.217.214-.708 0-1.232-.217a1.8 1.8 0 0 1-.816-.641q-.29-.429-.305-1.059h1.194q.02.294.17.49.15.195.402.294.253.098.573.098.313 0 .544-.092a.84.84 0 0 0 .362-.254.6.6 0 0 0 .129-.373.5.5 0 0 0-.117-.33.9.9 0 0 0-.337-.23 3.4 3.4 0 0 0-.54-.17l-.635-.16q-.738-.18-1.166-.562t-.426-1.03a1.53 1.53 0 0 1 .284-.926q.287-.396.79-.62a2.8 2.8 0 0 1 1.14-.222'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5.813 9H4.489l-.432-1.332H1.948L1.515 9H.19l2.017-5.84h1.592zM2.262 6.704h1.481l-.718-2.21H2.98zM8.452 3.16q.645 0 1.075.19.43.192.648.53a1.4 1.4 0 0 1 .217.776q0 .342-.137.602a1.2 1.2 0 0 1-.376.423 1.6 1.6 0 0 1-.542.23v.058q.333.014.624.187.294.175.476.489.183.31.183.74 0 .465-.231.83a1.56 1.56 0 0 1-.676.574Q9.265 9 8.609 9H6.114V3.16zM7.35 7.99h1.006q.517 0 .753-.196a.66.66 0 0 0 .237-.531.8.8 0 0 0-.116-.428.8.8 0 0 0-.334-.291 1.15 1.15 0 0 0-.511-.106H7.349zm0-2.386h.916q.254 0 .45-.09a.75.75 0 0 0 .313-.256.67.67 0 0 0 .118-.397.64.64 0 0 0-.226-.51q-.223-.194-.633-.194H7.35z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Edesc%3C/title%3E%3Cpath d='m17 21.379 4.292-4.294 1.416 1.416L16 25.207l-6.708-6.706 1.416-1.416L15 21.379V6.793h2z'/%3E%3C/svg%3E\")}.ag-icon-excel:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='translate(3.934 -.054)scale(.06285)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E\")}.ag-icon-expanded:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eexpanded%3C/title%3E%3Cpath d='M21.061 8.708 13.767 16l7.294 7.292-1.416 1.416L10.939 16l8.706-8.708z'/%3E%3C/svg%3E\")}.ag-icon-eye-slash:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath d='M9.304 7.89a15.2 15.2 0 0 1 6.404-1.638c.294-.002.292-.002.584 0 5.956.174 11.328 4.088 13.62 9.748 0 0-1.318 3.178-3.224 5.174a13.6 13.6 0 0 1-2.226 1.874L26.414 25 25 26.414l-2.336-2.336C17.866 26.396 11.776 26.15 7.36 22.96a14.9 14.9 0 0 1-4.168-4.612c-.41-.71-.694-1.336-1.104-2.348 0 0 .898-2.218 2.002-3.718a14.6 14.6 0 0 1 3.442-3.334L5.586 7 7 5.586zm-.3 2.528c-2.038 1.344-3.708 3.246-4.724 5.508L4.248 16c2.46 5.762 9.622 9.064 15.63 7.15q.688-.219 1.342-.516l-.912-.912a6.96 6.96 0 0 1-4.19 1.394c-3.862 0-7-3.136-7-7 0-1.57.52-3.022 1.394-4.19zm14.032 11.204a13.25 13.25 0 0 0 4.684-5.548l.032-.074c-1.984-4.646-6.834-7.798-12.006-7.748-1.712.05-3.386.458-4.922 1.158l1.102 1.102a6.97 6.97 0 0 1 4.192-1.396 7.003 7.003 0 0 1 5.606 11.192zm-11.09-8.262a5.003 5.003 0 0 0 6.928 6.928zm8.342 5.514a5.002 5.002 0 0 0-6.928-6.928z'/%3E%3C/svg%3E\")}.ag-icon-eye:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye%3C/title%3E%3Cpath d='M16.292 6.32c5.956.174 11.328 4.086 13.62 9.746 0 0-1.318 3.18-3.224 5.176-4.862 5.088-13.534 5.97-19.328 1.784a14.9 14.9 0 0 1-4.168-4.612c-.41-.71-.694-1.336-1.104-2.348 0 0 .898-2.216 2.002-3.716 2.678-3.64 7.03-5.896 11.618-6.03.294-.004.292-.004.584 0m-.546 2c-4.896.142-9.458 3.202-11.466 7.672l-.032.074c2.46 5.762 9.622 9.066 15.63 7.152 3.458-1.102 6.342-3.738 7.842-7.076l.032-.076C25.768 11.42 20.918 8.27 15.746 8.32m.254.946c3.7
1354 0 6.8 3.048 6.8 6.8 0 3.754-3.046 6.8-6.8 6.8s-6.8-3.046-6.8-6.8c0-3.752 3.046-6.8 6.8-6.8m5 6.768V16c0-2.76-2.24-5-5-5s-5 2.24-5 5v.066c0 2.76 2.24 5 5 5s5-2.24 5-5z'/%3E%3C/svg%3E\")}.ag-icon-filter:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efilter%3C/title%3E%3Cpath d='M26 8.184c-.066 2.658-4.058 5.154-6.742 7.974a1.05 1.05 0 0 0-.258.682v3.66L13 25c0-2.74.066-5.482-.002-8.222a1.05 1.05 0 0 0-.256-.62C10.026 13.304 6.06 10.61 6 8.184V6h20zM8 8c0 .304.06.612.258.842 2.716 2.854 6.682 5.548 6.742 7.974V21l2-1.5v-2.684c.066-2.658 4.058-5.154 6.742-7.974.198-.23.258-.538.258-.842z'/%3E%3C/svg%3E\")}.ag-icon-first:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efirst%3C/title%3E%3Cpath d='M24.354 8.708 17.06 16l7.294 7.292-1.416 1.416L14.232 16l8.706-8.708zM9.646 8v16h-2V8z'/%3E%3C/svg%3E\")}.ag-icon-group:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egroup%3C/title%3E%3Cpath d='M25.128 2.002c2.56.096 4.772 2.292 4.87 4.87a712 712 0 0 1 0 18.256c-.096 2.56-2.292 4.772-4.87 4.87a712 712 0 0 1-18.256 0c-2.558-.096-4.772-2.29-4.87-4.87a712 712 0 0 1 0-18.256c.096-2.56 2.292-4.772 4.87-4.87a712 712 0 0 1 18.256 0M7.006 4c-1.57.02-2.946 1.348-3.004 2.922-.078 6.078-.23 12.16.002 18.234.094 1.484 1.354 2.746 2.84 2.84 6.1.232 12.212.232 18.312 0 1.48-.094 2.746-1.35 2.84-2.84.232-6.1.232-12.212 0-18.312-.094-1.48-1.35-2.746-2.84-2.84C19.11 3.774 13.056 4 7.006 4M14 21h-4v-2h4zm12 0H16v-2h10zm-12-4h-4v-2h4zm12 0H16v-2h10zm-16-4H6v-2h4zm16 0H12v-2h14z'/%3E%3C/svg%3E\")}.ag-icon-last:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elast%3C/title%3E%3Cpath d='m17.768 16-8.706 8.708-1.416-1.416L14.94 16 7.646 8.708l1.416-1.416zm6.586 8h-2V8h2z'/%3E%3C/svg%3E\")}.ag-icon-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eleft%3C/title%3E%3Cpath d='m17.621 11-2 2h12.586v6H15.621l2 2-4.414 4.414L3.793 16l9.414-9.414zm-11 5 6.586 6.586L14.793 21l-4-4h15.414v-2H10.793l4-4-1.586-1.586z'/%3E%3C/svg%3E\")}.ag-icon-linked:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elinked%3C/title%3E%3Cpath d='M17.138 13.418a1.03 1.03 0 0 0-.298.658s.125.096.226.178c1.372 1.114 2.033 3.039 1.582 4.796a4.7 4.7 0 0 1-1.205 2.123c-1.145 1.151-2.296 2.294-3.445 3.441-1.241 1.232-3.185 1.691-4.864 1.105-1.546-.54-2.756-1.938-3.048-3.572-.267-1.496.246-3.108 1.319-4.186l.578-.578-.03-.092a10.5 10.5 0 0 1-.452-2.3v-.005c-.776.775-1.621 1.489-2.275 2.396-1.817 2.522-1.643 6.323.706 8.669 1.813 1.811 4.708 2.462 7.171 1.517a6.75 6.75 0 0 0 2.336-1.518l3.427-3.424c1.939-1.954 2.533-5.126 1.294-7.674a6.8 6.8 0 0 0-2.071-2.481l-.003-.002zM21.265 4a6.8 6.8 0 0 0-4.734 1.964l-3.427 3.424c-1.961 1.977-2.52 5.092-1.32 7.619a6.8 6.8 0 0 0 2.098 2.537l.003.002c.32-.32.643-.637.96-.96.167-.172.27-.401.286-.64l-.204-.167c-1.603-1.287-2.215-3.68-1.316-5.616a4.7 4.7 0 0 1 .918-1.32c1.145-1.151 2.296-2.294 3.445-3.441 1.239-1.23 3.178-1.694 4.864-1.105 1.83.639 3.16 2.498 3.12 4.493a4.8 4.8 0 0 1-1.391 3.265l-.578.578.03.092c.235.743.387 1.519.452 2.3v.005c.732-.731 1.521-1.406 2.162-2.244 1.192-1.559 1.643-3.651 1.204-5.575a6.8 6.8 0 0 0-3.98-4.703 6.8 6.8 0 0 0-2.529-.506h-.061z'/%3E%3C/svg%3E\")}.ag-icon-loading:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eloading%3C/title%3E%3Cpath d='M17 29h-2v-8h2zm-3.586-9L7 26.414 5.586 25 12 18.586zm13 5L25 26.414 18.586 20 20 18.586zM29 17h-8v-2h8zm-18 0H3v-2h8zm2.414-5L12 13.414 5.586 7 7 5.586zm13-5L20 13.414 18.586 12 25 5.586zM17 11h-2V3h2z'/%3E%3C/svg%3E\")}.ag-icon-maximize:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3 3 26 26'%3E%3Ctitle%3Emaximize%3C/title%3E%3Cpath d='m7.54 17.4.1 6.98 6.96.1-2.24-2.24L16 18.6 13.4 16l-3.64 3.64zm16.92-2.8-.1-6.98-6.96-.1 2.24 2.24L16 13.4l2.6 2.6 3.64-3.64z'/%3
13E%3C/svg%3E\")}.ag-icon-menu:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Emenu%3C/title%3E%3Cpath d='M26 23H6v-2h20zm0-6H6v-2h20zm0-6H6V9h20z'/%3E%3C/svg%3E\")}.ag-icon-menu-alt:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none'%3E%3Cpath fill='%23000' d='M16 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4m0-7a2 2 0 1 0 0-4 2 2 0 0 0 0 4m0 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4'/%3E%3C/svg%3E\")}.ag-icon-minimize:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3 3 26 26'%3E%3Ctitle%3Eminimize%3C/title%3E%3Cpath d='m14.8 24.26-.1-6.96-6.96-.1 2.24 2.24-3.64 3.64 2.6 2.6 3.64-3.64zm2.4-16.52.1 6.96 6.96.1-2.24-2.24 3.64-3.64-2.6-2.6-3.64 3.64z'/%3E%3C/svg%3E\")}.ag-icon-minus:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.515 7.515c-4.683 4.682-4.683 12.288 0 16.97 4.682 4.683 12.288 4.683 16.97 0 4.683-4.682 4.683-12.288 0-16.97-4.682-4.683-12.288-4.683-16.97 0m1.414 1.414c3.903-3.903 10.239-3.903 14.142 0s3.903 10.239 0 14.142-10.239 3.903-14.142 0-3.903-10.239 0-14.142m-1.414 6.07h16.97v2.002H7.515z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-next:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enext%3C/title%3E%3Cpath d='m21.061 16-8.706 8.708-1.416-1.416L18.233 16l-7.294-7.292 1.416-1.416z'/%3E%3C/svg%3E\")}.ag-icon-none:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cpath d='m10.044 21.258 4.478-4.198L16 18.444 9 25l-7-6.556 1.478-1.384 4.478 4.198V7h2.088zm14 3.742h-2.088V10.742l-4.478 4.198L16 13.556 23 7q3.5 3.28 7 6.556l-1.478 1.384-4.478-4.198z'/%3E%3C/svg%3E\")}.ag-icon-not-allowed:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enot-allowed%3C/title%3E%3Cpath d='M16.186 3.646c8.188.154 14.898 9.796 11.17 17.78-3.298 7.066-13.932 9.374-19.848 3.87-3.9-3.632-5.076-9.896-2.684-14.708 2.082-4.19 6.588-6.974 11.362-6.942m-.298 1.998c-6.922.132-12.578 8.308-9.33 15.052 3.342 6.934 15.246 7.646 18.932 0 3.076-6.386-1.988-15.1-9.602-15.052m7.596 6.422c2.864 5.33-1.744 13.186-8.306 12.536a8.6 8.6 0 0 1-3.232-.998l-1.266-.706L22.778 10.8q.351.633.706 1.266m-9.422 10.276c3.296 1.028 7.246-1.006 8.216-4.418a6.6 6.6 0 0 0-.056-3.742zm2.104-14.696a8.8 8.8 0 0 1 3.936 1.038l1.266.706L9.27 21.488c-3.018-5.41-.99-13.37 6.318-13.834q.289-.01.578-.008m-.31 2c-4.06.154-7.23 4.614-6.03 8.46l8.16-8.16a6.8 6.8 0 0 0-2.13-.3'/%3E%3C/svg%3E\")}.ag-icon-paste:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epaste%3C/title%3E%3Cpath d='M20 6.5c0-1-1-3-4-3s-4 2-4 3H8c-2.21 0-4 1.79-4 4v14c0 2.21 1.79 4 4 4h16c2.21 0 4-1.79 4-4v-14c0-2.21-1.79-4-4-4zm-4 .546c.734 0 1.334.572 1.334 1.272S16.734 9.59 16 9.59s-1.334-.572-1.334-1.272.6-1.272 1.334-1.272M24 26.5H8a2 2 0 0 1-2-2v-14a2 2 0 0 1 2-2h2v4h12v-4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2'/%3E%3C/svg%3E\")}.ag-icon-pin:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epin%3C/title%3E%3Cpath d='m10.78 19.777-4.668-4.666s.032-1 .67-1.87c1.366-1.86 4.052-1.96 6.056-1.572l3.158-3.108c-.7-2.342 3.352-5.046 3.352-5.046l9.166 9.168q-.334.447-.67.894c-1.074 1.426-2.538 2.63-4.272 2.338l-3.32 3.218c.046.344.042.03.118 1.152.144 2.13-.64 4.324-2.632 5.34l-.746.364-4.798-4.798-7.292 7.294-1.416-1.416zm8.24-13.672c-.688.568-1.416 1.45-1.024 2.072l.49.722-4.986 4.988c-1.988-.506-4.346-.636-5.156.614l9.02 9.032q.14-.099.272-.21c1.226-1.08.764-3.04.498-4.9l4.79-4.79s1.47.938 2.936-.776l-6.79-6.79q-.026.019-.05.038'/%3E%3C/svg%3E\")}.ag-icon-pivot:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epivot%3C/title%3E%3Cpath d='M25.128 2.002c2.56.096 4.772 2.292 4.87 4.87a712 712 0 0 1 0 18.256c-.096 2.56-2.292 4.772-4.87 4.87a712 712 0 0 1-18.256 0c-2.558-.096-4.772-2.29-4.87-4.87a712 712 0 0 1 0-18.256c.096-2.56 2.292-4.772 4.87-4.87a712 712 0 0 1 18.256 0m2.966 7.954H9.892v18.136c5.086.13 
1310.18.098 15.264-.096 1.48-.094 2.746-1.35 2.84-2.84.192-5.064.226-10.134.098-15.2M3.968 24.1q.015.528.036 1.056c.094 1.484 1.354 2.746 2.84 2.84l1.012.036V24.1zM22 15.414l-.292.294-1.416-1.416L23 11.586l2.708 2.706-1.416 1.416-.292-.294v3.592c-.032 2.604-2.246 4.892-4.872 4.992L15.414 24l.294.292-1.416 1.416L11.586 23l2.706-2.708 1.416 1.416-.322.32c3.372.03 6.578-.164 6.614-3.034zM3.88 18.038c.002 1.346.012 2.694.038 4.04h3.938v-4.04zm.05-6.062a681 681 0 0 0-.044 4.042h3.97v-4.042zm5.962-7.99Q8.449 3.999 7.006 4c-1.57.02-2.946 1.348-3.004 2.922q-.02 1.517-.042 3.034h3.896v-2.02h2.036zm14.244-.016v3.966h3.898q-.017-.546-.038-1.092c-.094-1.48-1.35-2.746-2.84-2.84q-.51-.019-1.02-.034m-8.14-.054q-2.035.022-4.07.048v3.972h4.07zm6.106.008c-1.358-.022-2.714-.026-4.07-.022v4.034h4.07z'/%3E%3C/svg%3E\")}.ag-icon-plus:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.515 7.515c-4.683 4.682-4.683 12.288 0 16.97 4.682 4.683 12.288 4.683 16.97 0 4.683-4.682 4.683-12.288 0-16.97-4.682-4.683-12.288-4.683-16.97 0m1.414 1.414c3.903-3.903 10.239-3.903 14.142 0s3.903 10.239 0 14.142-10.239 3.903-14.142 0-3.903-10.239 0-14.142M15 15l-.001-7.485h2.002L17 15l7.485-.001v2.002L17 17l.001 7.485h-2.002L15 17l-7.485.001v-2.002z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-previous:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eprevious%3C/title%3E%3Cpath d='M21.061 8.708 13.767 16l7.294 7.292-1.416 1.416L10.939 16l8.706-8.708z'/%3E%3C/svg%3E\")}.ag-icon-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eright%3C/title%3E%3Cpath d='m28.207 16-9.414 9.414L14.379 21l2-2H3.793v-6h12.586l-2-2 4.414-4.414zm-11-5 4 4H5.793v2h15.414l-4 4 1.586 1.586L25.379 16l-6.586-6.586z'/%3E%3C/svg%3E\")}.ag-icon-save:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esave%3C/title%3E%3Cpath d='M25.333 16v9.333H6.666V16H3.999v9.333C3.999 26.8 5.199 28 6.666 28h18.667C26.8 28 28 26.8 28 25.333V16zm-8 .893 3.453-3.44 1.88 1.88L15.999 22l-6.667-6.667 1.88-1.88 3.453 3.44V4h2.667v12.893z'/%3E%3C/svg%3E\")}.ag-icon-small-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-down%3C/title%3E%3Cpath d='M24.708 12.355 16 21.061l-8.708-8.706 1.416-1.416L16 18.233l7.292-7.294z'/%3E%3C/svg%3E\")}.ag-icon-small-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-left%3C/title%3E%3Cpath d='M21.061 8.708 13.767 16l7.294 7.292-1.416 1.416L10.939 16l8.706-8.708z'/%3E%3C/svg%3E\")}.ag-icon-small-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-right%3C/title%3E%3Cpath d='m21.061 16-8.706 8.708-1.416-1.416L18.233 16l-7.294-7.292 1.416-1.416z'/%3E%3C/svg%3E\")}.ag-icon-small-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-up%3C/title%3E%3Cpath d='m24.708 19.645-1.416 1.416L16 13.767l-7.292 7.294-1.416-1.416L16 10.939z'/%3E%3C/svg%3E\")}.ag-icon-tick:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etick%3C/title%3E%3Cpath d='M24.708 10.855 13 22.561l-5.708-5.706 1.416-1.416L13 19.733 23.292 9.439z'/%3E%3C/svg%3E\")}.ag-icon-tree-closed:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-closed%3C/title%3E%3Cpath d='m21.061 16-8.706 8.708-1.416-1.416L18.233 16l-7.294-7.292 1.416-1.416z'/%3E%3C/svg%3E\")}.ag-icon-tree-indeterminate:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-indeterminate%3C/title%3E%3Cpath d='M6 15h20v2H6z'/%3E%3C/svg%3E\")}.ag-icon-tree-open:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-open%3C/title%3E%3Cpath d='M24.708 12.355 16 21.061l-8.708-8.706 1.416-1.416L16 18.233l7.292-7.294z'/%3E%3C/svg%3E\")}.ag-icon-unlinked:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eunlinked%3C/title%3E%3Cpath d='M5.35 3.999a.2.2 0 0 0-.14.058c-.388.38-.768.768-1.152 1.152a.21.21 0 0 0-.002.288c7.459 7.506 14.965 14.965 22.447 22.447a.21.21 0 0 0 .288.002q.576-.574 1.151-1.151a.21.21 0 0 0 .002-.288C20.484 19.002 12.979 11.542 5.497 4.06a.2.2 0 0 0-.146-.061zm.611 12.548c-1.933 1.939-2.538 5.119-1.289 7.688a6.79 6.79 0 0 0 4.891 3.672 6.82 6.82 0 0 0 5.893-1.866l1.984-1.984-1.438-1.438-1.986 1.986c-1.486 1.476-3.993 1.81-5.834.629a4.73 4.73 0 0 1-2.024-2.853 4.76 4.76 0 0 1 1.241-4.393l1.986-1.986-1.438-1.438-1.984 1.984zM21.273 3.999a6.78 6.78 0 0 0-4.727 1.963l-1.984 1.984L16 9.384l1.985-1.985a4.74 4.74 0 0 1 2.776-1.338c1.974-.224 4.045.926 4.845 2.834.712 1.699.329 3.778-1.004 5.
1312L22.616 16l1.439 1.438q1-1 2-2c2.012-2.031 2.557-5.368 1.112-7.982-1.144-2.07-3.432-3.441-5.834-3.459h-.061z'/%3E%3C/svg%3E\")}.ag-icon-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m15 10.621-4.292 4.294-1.416-1.416L16 6.793l6.708 6.706-1.416 1.416L17 10.621v14.586h-2z'/%3E%3C/svg%3E\")}.ag-icon-grip:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egrip%3C/title%3E%3Cpath d='M8 24H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 18H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 12H6V8h2zm6 0h-2V8h2zm6 0h-2V8h2zm6 0h-2V8h2z'/%3E%3C/svg%3E\")}.ag-icon-settings:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E\")}.ag-icon-column-arrow:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11 4a1 1 0 0 1 1 1v22a1 1 0 1 1-2 0V5a1 1 0 0 1 1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 13a1 1 0 0 1 1-1h23.5a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 4h18v24H2zm2 2v20h14V6zM26.793 13 23 9.207l1.414-1.414L29.621 13l-5.207 5.207L23 16.793z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-un-pin:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='m6.112 15.111 3.272 3.271 1.436-1.402-2.476-2.479c.81-1.25 3.168-1.12 5.156-.614l4.986-4.988-.49-.722c-.392-.622.336-1.504 1.024-2.072l.008-.007.01-.006.032-.025 1.447 1.447 1.432-1.397-2.601-2.602s-4.052 2.704-3.352 5.046l-3.158 3.108c-2.004-.388-4.69-.288-6.056 1.572-.638.87-.67 1.87-.67 1.87m.581 11.582.014.014 5.502-5.501 4.783 4.783.746-.364c1.992-1.016 2.776-3.21 2.632-5.34-.055-.805-.068-.87-.088-.97-.008-.04-.017-.085-.03-.182l3.32-3.218c1.734.292 3.198-.912 4.272-2.338q.337-.447.67-.894l-.001-.001-.007-.007-.007-.007-.007-.007-3.87-3.87 1.585-1.584-1.414-1.414-14.381 14.38-1.237 1.209-5.69 5.687 1.417 1.416zM23.21 10.206l2.65 2.651c-1.465 1.714-2.935.776-2.935.776l-4.79 4.79q.041.291.087.583c.257 1.676.513 3.35-.585 4.317a4 4 0 0 1-.272.21l-3.739-3.744z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-pinned-top:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='m16.708 10.878 8.708 8.706L24 21l-6.292-6.294V27h-2V14.706L9.416 21 8 19.584q4.348-4.344 8.691-8.69zM25 6H8v2h17z'/%3E%3C/svg%3E\")}.ag-icon-pinned-bottom:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M16.708 22.122 8 13.416 9.416 12l6.292 6.294V6h2v12.294L24 12l1.416 1.416-8.691 8.69zM7.416 28h17v-2h-17z'/%3E%3C/svg%3E\")}.ag-icon-chevron-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M3.479 10.521a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1-1.06 1.06l-3.47-3.47-3.47 3.47a.75.75 0 0 1-1.06 0' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12.521 5.461a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 1.06-1.06l3.47 3.47 3.47-3.47a.75.75 0 0 1 1.06 0' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M10.53 12.512a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 1.06l-3.47 3.47 3.47 3.47a.75.75 0 0 1 0 1.06' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M5.47 3.47a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06-1.06L8.94 8 5.47 4.53a.75.75 0 0 1 0-1.06' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-filter-add:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M19.834 8H8c0 .304.06.612.258.842 2.716 2.854 6.682 5.548 6.742 7.974V21l2-1.5v-2.684c.056-2.267 2.968-4.417 5.49-6.75v3.087c-1.081.974-2.245 1.968-3.232 3.005a1.05 1.05 0 0 0-.258.682v3.66L13 25c0-2.74.066-5.482-.002-8.222a1.05 1.05 0 0 0-.256-.62C10.026 13.304 6.06 10.61 6 8.184V6h13.834z'/%3E%3Cpath fill='currentColor' d='M26 6h2.946v2.002H26v3.313h-2.002V8.002h-2.946V6h2.946V3.04H26z'/%3E%3C/svg%3E\")}.ag-icon-edit:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M23.182 5a3.82 3.82 0 0 1 2.83 6.383l-.131.137-2.09 2.088a1 1 0 0 1-.084.099 1 1 0 0 1-.098.084L12.533 24.869a3 3 0 0 1-1.245.746l-4.353 1.32-.003.002a1.5 1.5 0 0 1-1.87-1.867l.003-.004 1.32-4.352v-.003l.06-.174c.13-.344.321-.661.565-.936l.126-.135L18.209 8.39a1 1 0 0 1 .18-.181l2.092-2.09.137-.132A3.82 3.82 0 0 1 23.182 5M8.548 20.883a1 1 0 0 0-.25.415l-1.049 3.451 3.457-1.048.114-.042q.17-.076.301-.206l10.458-10.46-2.572-2.572zM23.182 7c-.482 0-.946.19-1.287.531v.001l-1.474 1.475 2.572 2.572 1.474-1.474.121-.133A1.82 1.82 0 0 0 23.182 7'/%3E%3C/svg%3E\")}"}),hH=dI({feature:"iconSet",css:".ag-icon-aggregation:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24 6H8v2l8 8-8 8v2h16v-2H11l8-8-8-8h13z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-arrows:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.515 11.171 2.687 16l4.828 4.829-1.414 1.414L-.142 16l6.243-6.243zm16.97 0 1.414-1.414L32.142 16l-6.243 6.243-1.414-1.414L29.313 16zM16.028 13.2l2.829 2.828-2.829 2.829-2.828-2.829zm-4.857 11.285L16 29.313l4.829-4.828 1.414 1.414L16 32.142l-6.243-6.243zm0-16.97L9.757 6.101 16-.142l6.243 6.243-1.414 1.414L16 2.687z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-asc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333 5.332 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-aasc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M13.201 8.08q.65 0 1.135.222.487.222.759.618.27.396.279.919H14.19a.72.72 0 0 0-.293-.536q-.26-.191-.705-.192-.302.001-.51.086a.7.7 0 0 0-.32.23.56.56 0 0 0-.108.338.5.5 0 0 0 .065.273.7.7 0 0 0 .204.203q.127.083.295.
13146.168.06.36.102l.525.125q.382.086.701.229.32.143.554.35.234.21.362.49.131.284.134.648a1.6 1.6 0 0 1-.273.93q-.27.391-.777.608-.504.214-1.217.214-.708 0-1.232-.217a1.8 1.8 0 0 1-.816-.642q-.29-.428-.305-1.058h1.194q.02.294.17.49.15.195.402.294.253.097.573.097.313 0 .544-.09a.84.84 0 0 0 .362-.255.6.6 0 0 0 .129-.374q0-.195-.117-.33a.9.9 0 0 0-.337-.228 3.4 3.4 0 0 0-.54-.171l-.635-.16q-.738-.18-1.166-.562t-.426-1.03a1.53 1.53 0 0 1 .284-.927q.287-.396.79-.618a2.8 2.8 0 0 1 1.14-.223'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5.813 14H4.489l-.432-1.332H1.948L1.515 14H.19l2.017-5.84h1.592zm-3.551-2.296h1.481l-.718-2.21H2.98zM8.452 8.16q.645 0 1.075.19.43.191.648.531a1.4 1.4 0 0 1 .217.775q0 .343-.137.602-.137.256-.376.422a1.6 1.6 0 0 1-.542.231v.057q.333.015.624.188.294.175.476.489.183.31.183.74 0 .466-.231.831a1.56 1.56 0 0 1-.676.573Q9.265 14 8.609 14H6.114V8.16zM7.35 12.99h1.006q.517 0 .753-.196a.66.66 0 0 0 .237-.531.8.8 0 0 0-.116-.428.8.8 0 0 0-.334-.29 1.15 1.15 0 0 0-.511-.106H7.349zm0-2.386h.916q.254 0 .45-.09a.75.75 0 0 0 .313-.256.67.67 0 0 0 .118-.396.64.64 0 0 0-.226-.511q-.223-.195-.633-.194H7.35z' clip-rule='evenodd'/%3E%3Cpath fill='%23000' d='M7.166.377a.75.75 0 0 1 .919.066l3.333 3a.75.75 0 0 1-1.003 1.115L7.609 2.033 5.113 4.53a.75.75 0 0 1-1.06-1.06l3-3z'/%3E%3C/svg%3E\")}.ag-icon-cancel:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.667A13.32 13.32 0 0 0 2.667 16c0 7.373 5.96 13.333 13.333 13.333S29.333 23.373 29.333 16 23.373 2.667 16 2.667m6.667 18.12-1.88 1.88L16 17.88l-4.787 4.787-1.88-1.88L14.12 16l-4.787-4.787 1.88-1.88L16 14.12l4.787-4.787 1.88 1.88L17.88 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-chart:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cpath d='M14 7h4v18h-4zM8 17h4v8H8zM20 13h4v12h-4z'/%3E%3C/g%3E%3C/svg%3E\")}.ag-icon-color-picker:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-columns:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M26 25H6V7h20zM12 11H8v12h4zm6 0h-4v12h4zm6 12V11h-4v12z' style='fill-rule:nonzero' transform='translate(0 -1)'/%3E%3C/svg%3E\")}.ag-icon-contracted:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m12 6 10 10-10 10-2-2 8-8-8-8z'/%3E%3C/svg%3E\")}.ag-icon-copy:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M22 1.333H6A2.675 2.675 0 0 0 3.333 4v18.667H6V4h16zm4 5.334H11.333a2.675 2.675 0 0 0-2.667 2.667v18.667c0 1.467 1.2 2.667 2.667 2.667H26c1.467 0 2.667-1.2 2.667-2.667V9.334c0-1.467-1.2-2.667-2.667-2.667M26 28H11.333V9.333H26z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-cross:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M15.984 13.894 27.05 2.828l2.122 2.122-11.066 11.066 11.066 11.066-2.122 2.12-11.066-11.066L4.918 29.202l-2.12-2.12 11.066-11.066L2.798 4.95l2.12-2.122z'/%3E%3C/svg%3E\")}.ag-icon-csv:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753
13-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='translate(3.934 -.054)scale(.06285)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E\")}.ag-icon-cut:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M13.775 15.198 3.835 2.945a1.501 1.501 0 0 1 2.33-1.89l14.997 18.488A6.003 6.003 0 0 1 29.657 25c0 3.311-2.688 6-6 6s-6-2.689-6-6c0-1.335.437-2.569 1.176-3.566l-3.127-3.855-3.001 3.7A5.97 5.97 0 0 1 14 25c0 3.311-2.689 6-6 6s-6-2.689-6-6a6.003 6.003 0 0 1 8.315-5.536zm9.882 6.702a3.1 3.1 0 0 0-3.1 3.1c0 1.711 1.389 3.1 3.1 3.1s3.1-1.389 3.1-3.1-1.389-3.1-3.1-3.1M8 21.95a3.05 3.05 0 1 0 .001 6.101A3.05 3.05 0 0 0 8 21.95m9.63-11.505 1.932 2.381 8.015-9.881a1.5 1.5 0 0 0-2.329-1.89z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-desc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-adesc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M10.387 11.47a.75.75 0 0 1 1.06 1.06l-3 3-.113.093a.75.75 0 0 1-.919-.065l-3.333-3a.75.75 0 0 1 1.003-1.116l2.806 2.525zM13.201 3.08q.65 0 1.135.222.487.223.759.619.27.396.279.918H14.19a.72.72 0 0 0-.293-.536q-.26-.192-.705-.192-.302.001-.51.086a.7.7 0 0 0-.32.23.56.56 0 0 0-.108.338.5.5 0 0 0 .065.273.7.7 0 0 0 .204.203q.127.083.295.
13146.168.06.36.102l.525.125a3.7 3.7 0 0 1 .701.229q.32.143.554.35.234.21.362.492.131.282.134.647a1.6 1.6 0 0 1-.273.93 1.74 1.74 0 0 1-.777.607q-.504.214-1.217.214-.708 0-1.232-.217a1.8 1.8 0 0 1-.816-.641q-.29-.429-.305-1.059h1.194q.02.294.17.49.15.195.402.294.253.098.573.098.313 0 .544-.092a.84.84 0 0 0 .362-.254.6.6 0 0 0 .129-.373.5.5 0 0 0-.117-.33.9.9 0 0 0-.337-.23 3.4 3.4 0 0 0-.54-.17l-.635-.16q-.738-.18-1.166-.562t-.426-1.03a1.53 1.53 0 0 1 .284-.926q.287-.396.79-.62a2.8 2.8 0 0 1 1.14-.222'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5.813 9H4.489l-.432-1.332H1.948L1.515 9H.19l2.017-5.84h1.592zM2.262 6.704h1.481l-.718-2.21H2.98zM8.452 3.16q.645 0 1.075.19.43.192.648.53a1.4 1.4 0 0 1 .217.776q0 .342-.137.602a1.2 1.2 0 0 1-.376.423 1.6 1.6 0 0 1-.542.23v.058q.333.014.624.187.294.175.476.489.183.31.183.74 0 .465-.231.83a1.56 1.56 0 0 1-.676.574Q9.265 9 8.609 9H6.114V3.16zM7.35 7.99h1.006q.517 0 .753-.196a.66.66 0 0 0 .237-.531.8.8 0 0 0-.116-.428.8.8 0 0 0-.334-.291 1.15 1.15 0 0 0-.511-.106H7.349zm0-2.386h.916q.254 0 .45-.09a.75.75 0 0 0 .313-.256.67.67 0 0 0 .118-.397.64.64 0 0 0-.226-.51q-.223-.194-.633-.194H7.35z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-excel:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='translate(3.934 -.054)scale(.06285)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E\")}.ag-icon-expanded:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M20 26 10 16 20 6l2 2-8 8 8 8z'/%3
13E%3C/svg%3E\")}.ag-icon-eye-slash:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath fill='%23000' fill-rule='nonzero' d='M8.95 10.364 7 8.414 8.414 7l2.32 2.32A13.2 13.2 0 0 1 16.5 8c5.608 0 10.542 3.515 12.381 8.667L29 17l-.119.333a13 13 0 0 1-4.255 5.879l1.466 1.466-1.414 1.414-1.754-1.753A13.2 13.2 0 0 1 16.5 26c-5.608 0-10.542-3.515-12.381-8.667L4 17l.119-.333a13 13 0 0 1 4.83-6.303m1.445 1.445A11.02 11.02 0 0 0 6.148 17c1.646 4.177 5.728 7 10.352 7 1.76 0 3.441-.409 4.94-1.146l-1.878-1.878A5.06 5.06 0 0 1 16.5 22c-2.789 0-5.05-2.239-5.05-5 0-1.158.398-2.223 1.065-3.07zm1.855-.974 1.794 1.795A5.07 5.07 0 0 1 16.5 12c2.789 0 5.05 2.239 5.05 5 0 .9-.24 1.745-.661 2.474l2.305 2.306A11 11 0 0 0 26.852 17c-1.646-4.177-5.728-7-10.352-7-1.495 0-2.933.295-4.25.835'/%3E%3C/svg%3E\")}.ag-icon-eye:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16.5 23c4.624 0 8.706-2.823 10.352-7-1.646-4.177-5.728-7-10.352-7s-8.706 2.823-10.352 7c1.646 4.177 5.728 7 10.352 7M4.119 15.667C5.958 10.515 10.892 7 16.5 7s10.542 3.515 12.381 8.667L29 16l-.119.333C27.042 21.485 22.108 25 16.5 25S5.958 21.485 4.119 16.333L4 16zM16.5 21c2.789 0 5.049-2.239 5.049-5s-2.26-5-5.049-5-5.049 2.239-5.049 5 2.26 5 5.049 5' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-filter:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m28 8-8 8v5l-6 6V16L6 8V6h22zM9 8l7 7v7l2-2v-5l7-7z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-first:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24.273 22.12 18.153 16l6.12-6.12L22.393 8l-8 8 8 8zM7.727 8h2.667v16H7.727z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-group:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14 7v1H9V7zm0-3v1H5.001V4zm-7 7H5v-1h2zm0-3H5V7h2zM3 5H1V4h2zm11 5v1H9v-1zm-7 4H5v-1h2zm7-1v1H9v-1z' style='fill-rule:nonzero' transform='matrix(2 0 0 2 0 -2)'/%3E%3C/svg%3E\")}.ag-icon-last:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m7.727 9.88 6.12 6.12-6.12 6.12L9.607 24l8-8-8-8zM21.607 8h2.667v16h-2.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M26.667 14.667H10.44l7.453-7.453L16 5.334 5.333 16.001 16 26.668l1.88-1.88-7.44-7.453h16.227z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-linked:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M5.2 16a4.136 4.136 0 0 1 4.133-4.133h5.333V9.334H9.333a6.67 6.67 0 0 0-6.667 6.667 6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.333A4.136 4.136 0 0 1 5.2 16.002zm5.467 1.333h10.667v-2.667H10.667zm12-8h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133 4.136 4.136 0 0 1-4.133 4.133h-5.333v2.533h5.333a6.67 6.67 0 0 0 6.667-6.667 6.67 6.67 0 0 0-6.667-6.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-loading:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M17 29h-2v-8h2zm-3.586-9L7 26.414 5.586 25 12 18.586zm13 5L25 26.414 18.586 20 20 18.586zM29 17h-8v-2h8zm-18 0H3v-2h8zm2.414-5L12 13.414 5.586 7 7 5.586zm13-5L20 13.414 18.586 12 25 5.586zM17 11h-2V3h2z' style='fill-rule:nonzero' transform='translate(-3.692 -3.692)scale(1.23077)'/%3E%3C/svg%3E\")}.ag-icon-maximize:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14 30H2V18h2.828v7.05l8.254-8.252 2.12 2.12-8.252 8.254H14zm4-28h12v12h-2.828V6.95l-8.254 8.252-2.12-2.12 8.252-8.254H18z'/%3E%3C/svg%3E\")}.ag-icon-menu:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M20 13H0v-2h20zm0-6H0V5h20zm0-6H0v-2h20z' style='fill-rule:nonzero' transform='translate(6 9)'/%3E%3C/svg%3E\")}.ag-icon-menu-alt:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M16 19a3 3 0 1 0 0-6 3 3 0 0 0 0 6M16 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6M16 27a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E\")}.ag-icon-minimize:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M2 18h12v12h-2.828v-7.05l-8.254 8.252-2.12-2.12 8.252-8.254H2zm28-4H18V2h2.828v7.05L29.082.798l2.12 2.12-8.252 8.254H30z'/%3E%3C/svg%3E\")}.ag-icon-minus:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658H7.901v-2.658z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-next:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M10.94 6 9.06 7.88 17.167 16 9.06 24.12 10.94 26l10-10z' style='fill-rule:nonzero' transform='translate(1)'/%3E%3C/svg%3E\")}.ag-icon-none:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cpath d='M23.708 14.645 16 6.939l-7.708 7.706 1.416 1.416L16 9.767l6.292 6.294zM23.708 20.355 16 28.061l-7.708-7.706 1.416-1.416L16 25.233l6.292-6.294z'/%3E%3C/g%3E%3C/svg%3E\")}.ag-icon-not-allowed:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667M5.333 16c0-5.893 4.773-10.667 10.667-10.667 2.467 0 4.733.84 6.533 2.253L7.586 22.533A10.54 10.54 0 0 1 5.333 16M16 26.667c-2.467 0-4.733-.84-6.533-2.253L24.414 9.467A10.54 10.54 0 0 1 26.667 16c0 5.893-4.773 10.667-10.667 10.667' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-paste:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M25.334 4H19.76C19.2 2.453 17.733 1.333 16 1.333S12.8 2.453 12.24 4H6.667A2.675 2.675 0 0 0 4 6.667V28c0 1.467 1.2 2.667 2.667 2.667h18.667c1.467 0 2.667-1.2 2.667-2.667V6.667C28.001 5.2 26.801 4 25.334 4M16 4c.733 0 1.333.6 1.333 1.333s-.6 1.333-1.333 1.333-1.333-.6-1.333-1.333S15.267 4 16 4m9.333 24H6.666V6.667h2.667v4h13.333v-4h2.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-pin:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m10.78 19.777-4.668-4.666s.032-1 .67-1.87c1.366-1.86 4.052-1.96 6.056-1.572l3.158-3.108c-.7-2.342 3.352-5.046 3.352-5.046l9.166 9.168q-.334.447-.67.894c-1.074 1.426-2.538 2.63-4.272 2.338l-3.32 3.218c.046.344.042.03.118 1.152.144 2.13-.64 4.324-2.632 5.34l-.746.364-4.798-4.798-7.292 7.294-1.416-1.416zm8.24-13.672c-.688.568-1.416 1.45-1.024 2.072l.49.722-4.986 4.988c-1.988-.506-4.346-.636-5.156.614l9.02 9.032q.14-.099.272-.21c1.226-1.08.764-3.04.498-4.9l4.79-4.79s1.47.938 2.936-.776l-6.79-6.79q-.026.019-.05.038' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-pivot:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M25.128 2.002c2.56.096 4.772 2.292 4.87 4.87a712 712 0 0 1 0 18.256c-.096 2.56-2.292 4.772-4.87 4.87a712 712 0 0 1-18.256 0c-2.558-.096-4.772-2.29-4.87-4.87a712 712 0 0 1 0-18.256c.096-2.56 2.292-4.772 4.87-4.87a712 712 0 0 1 18.256 0m2.966 7.954H9.892v18.136c5.086.13 
1310.18.098 15.264-.096 1.48-.094 2.746-1.35 2.84-2.84.192-5.064.226-10.134.098-15.2M3.968 24.1q.015.528.036 1.056c.094 1.484 1.354 2.746 2.84 2.84l1.012.036V24.1zM22 15.414l-.292.294-1.416-1.416L23 11.586l2.708 2.706-1.416 1.416-.292-.294v3.592c-.032 2.604-2.246 4.892-4.872 4.992L15.414 24l.294.292-1.416 1.416L11.586 23l2.706-2.708 1.416 1.416-.322.32c3.372.03 6.578-.164 6.614-3.034zM3.88 18.038c.002 1.346.012 2.694.038 4.04h3.938v-4.04zm.05-6.062a681 681 0 0 0-.044 4.042h3.97v-4.042zm5.962-7.99Q8.449 3.999 7.006 4c-1.57.02-2.946 1.348-3.004 2.922q-.02 1.517-.042 3.034h3.896v-2.02h2.036zm14.244-.016v3.966h3.898q-.017-.546-.038-1.092c-.094-1.48-1.35-2.746-2.84-2.84q-.51-.019-1.02-.034m-8.14-.054q-2.035.022-4.07.048v3.972h4.07zm6.106.008a213 213 0 0 0-4.07-.022v4.034h4.07z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-plus:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658h-6.77v6.77h-2.658v-6.77h-6.77v-2.658h6.77v-6.77h2.658v6.77z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-previous:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M21.94 7.88 20.06 6l-10 10 10 10 1.88-1.88L13.833 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m16 5.333-1.88 1.88 7.44 7.453H5.333v2.667H21.56l-7.44 7.453 1.88 1.88 10.667-10.667L16 5.332z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-save:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M15.708 2.355 8 10.061.292 2.355 1.708.939 8 7.233 14.292.939z' style='fill-rule:nonzero' transform='translate(8 14)'/%3E%3Cpath d='M5 26h22v2H5zM15 4h2v18h-2z'/%3E%3C/svg%3E\")}.ag-icon-small-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.334 10.667 16 21.334l8.667-10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-small-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M21.333 7.334 10.666 16l10.667 8.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-small-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M10.667 24.666 21.334 16 10.667 7.333z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-small-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.334 21.333 16 10.666l8.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-tick:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M11.586 22.96 27.718 6.828 29.84 8.95 11.586 27.202 2.4 
1318.016l2.12-2.122z'/%3E%3C/svg%3E\")}.ag-icon-tree-closed:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m11.94 6-1.88 1.88L18.167 16l-8.107 8.12L11.94 26l10-10z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-tree-indeterminate:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6 13.5h20v3H6z'/%3E%3C/svg%3E\")}.ag-icon-tree-open:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24.12 9.06 16 17.167 7.88 9.06 6 10.94l10 10 10-10z' style='fill-rule:nonzero' transform='translate(0 1)'/%3E%3C/svg%3E\")}.ag-icon-unlinked:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M22.667 9.333h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133c0 1.907-1.307 3.507-3.08 3.973l1.947 1.947c2.173-1.107 3.667-3.32 3.667-5.92a6.67 6.67 0 0 0-6.667-6.667zm-1.334 5.334h-2.92l2.667 2.667h.253zM2.667 5.693 6.814 9.84A6.65 6.65 0 0 0 2.667 16a6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.334a4.136 4.136 0 0 1-4.133-4.133c0-2.12 1.613-3.867 3.68-4.093l2.76 2.76h-.973v2.667h3.64l3.027 3.027v2.307h2.307l5.347 5.333 1.68-1.68L4.362 4.002 2.669 5.695z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333 5.332 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-grip:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M8 24H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 18H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 12H6V8h2zm6 0h-2V8h2zm6 0h-2V8h2zm6 0h-2V8h2z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-settings:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E\")}.ag-icon-column-arrow:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11 4a1 1 0 0 1 1 1v22a1 1 0 1 1-2 0V5a1 1 0 0 1 1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 13a1 1 0 0 1 1-1h23.5a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 4h18v24H2zm2 2v20h14V6zM26.793 13 23 9.207l1.414-1.414L29.621 13l-5.207 5.207L23 16.793z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-un-pin:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='m6.112 15.111 3.272 3.271 1.436-1.402-2.476-2.479c.81-1.25 3.168-1.12 5.156-.614l4.986-4.988-.49-.722c-.392-.622.336-1.504 1.024-2.072l.008-.007.01-.006.032-.025 1.447 1.447 1.432-1.397-2.601-2.602s-4.052 2.704-3.352 5.046l-3.158 3.108c-2.004-.388-4.69-.288-6.056 1.572-.638.87-.67 1.87-.67 1.87m.581 11.582.014.014 5.502-5.501 4.783 4.783.746-.364c1.992-1.016 2.776-3.21 2.632-5.34-.055-.805-.068-.87-.088-.97-.008-.04-.017-.085-.03-.182l3.32-3.218c1.734.292 3.198-.912 4.272-2.338q.337-.447.67-.894l-.001-.001-.007-.007-.007-.007-.007-.007-3.87-3.87 1.585-1.584-1.414-1.414-14.381 14.38-1.237 1.209-5.69 5.687 1.417 1.416zM23.21 10.206l2.65 2.651c-1.465 1.714-2.935.776-2.935.776l-4.79 4.79q.041.291.087.583c.257 1.676.513 3.35-.585 4.317a4 4 0 0 1-.272.21l-3.739-3.744z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-pinned-top:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='m16.708 10.878 8.708 8.706L24 21l-6.292-6.294V27h-2V14.706L9.416 21 8 19.584q4.348-4.344 8.691-8.69zM25 6H8v2h17z'/%3E%3C/svg%3E\")}.ag-icon-pinned-bottom:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M16.708 22.122 8 13.416 9.416 12l6.292 6.294V6h2v12.294L24 12l1.416 1.416-8.691 8.69zM7.416 28h17v
13-2h-17z'/%3E%3C/svg%3E\")}.ag-icon-chevron-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M3.479 10.521a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1-1.06 1.06l-3.47-3.47-3.47 3.47a.75.75 0 0 1-1.06 0' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12.521 5.461a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 1.06-1.06l3.47 3.47 3.47-3.47a.75.75 0 0 1 1.06 0' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M10.53 12.512a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 1.06l-3.47 3.47 3.47 3.47a.75.75 0 0 1 0 1.06' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M5.47 3.47a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06-1.06L8.94 8 5.47 4.53a.75.75 0 0 1 0-1.06' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-filter-add:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M19.834 8H8c0 .304.06.612.258.842 2.716 2.854 6.682 5.548 6.742 7.974V21l2-1.5v-2.684c.056-2.267 2.968-4.417 5.49-6.75v3.087c-1.081.974-2.245 1.968-3.232 3.005a1.05 1.05 0 0 0-.258.682v3.66L13 25c0-2.74.066-5.482-.002-8.222a1.05 1.05 0 0 0-.256-.62C10.026 13.304 6.06 10.61 6 8.184V6h13.834z'/%3E%3Cpath fill='currentColor' d='M26 6h2.946v2.002H26v3.313h-2.002V8.002h-2.946V6h2.946V3.04H26z'/%3E%3C/svg%3E\")}.ag-icon-edit:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M6.222 25.778h1.611l14.834-14.811-1.611-1.611-14.834 14.81zM4 28v-4.733L22.644 4.656a2.26 2.26 0 0 1 1.567-.634q.423 0 .833.167.412.166.734.478l1.589 1.6q.333.322.483.733t.15.822q0 .423-.161.839-.162.416-.472.728L8.733 28zm17.856-17.833-.8-.811 1.61 1.61z'/%3E%3C/svg%3E\")}"}),hV=dI({feature:"iconSet",css:".ag-icon-aggregation:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eaggregation%3C/title%3E%3Cpath d='M24 5.333H8V8l8.667 8L8 24v2.667h16v-4h-9.333L21.334 16l-6.667-6.667H24z'/%3E%3C/svg%3E\")}.ag-icon-arrows:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Earrows%3C/title%3E%3Cpath d='M13.333 11.556h5.333V8h3.556L16 1.778 9.778 8h3.556zm-1.777 1.777H8V9.777l-6.222 6.222L8 22.221v-3.556h3.556zM30.222 16 24 9.778v3.556h-3.556v5.333H24v3.556l6.222-6.222zm-11.555 4.444h-5.333V24H9.778L16 30.222 22.222 24h-3.556z'/%3E%3C/svg%3E\")}.ag-icon-asc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333z'/%3E%3C/svg%3E\")}.ag-icon-aasc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M13.201 8.08q.65 0 1.135.222.487.222.759.618.27.396.279.919H14.19a.72.72 0 0 0-.293-.536q-.26-.191-.705-.192-.302.001-.51.086a.7.7 0 0 0-.32.23.56.56 0 0 0-.108.338.5.5 0 0 0 .065.273.7.7 0 0 0 .204.203q.127.083.295.
13146.168.06.36.102l.525.125q.382.086.701.229.32.143.554.35.234.21.362.49.131.284.134.648a1.6 1.6 0 0 1-.273.93q-.27.391-.777.608-.504.214-1.217.214-.708 0-1.232-.217a1.8 1.8 0 0 1-.816-.642q-.29-.428-.305-1.058h1.194q.02.294.17.49.15.195.402.294.253.097.573.097.313 0 .544-.09a.84.84 0 0 0 .362-.255.6.6 0 0 0 .129-.374q0-.195-.117-.33a.9.9 0 0 0-.337-.228 3.4 3.4 0 0 0-.54-.171l-.635-.16q-.738-.18-1.166-.562t-.426-1.03a1.53 1.53 0 0 1 .284-.927q.287-.396.79-.618a2.8 2.8 0 0 1 1.14-.223'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5.813 14H4.489l-.432-1.332H1.948L1.515 14H.19l2.017-5.84h1.592zm-3.551-2.296h1.481l-.718-2.21H2.98zM8.452 8.16q.645 0 1.075.19.43.191.648.531a1.4 1.4 0 0 1 .217.775q0 .343-.137.602-.137.256-.376.422a1.6 1.6 0 0 1-.542.231v.057q.333.015.624.188.294.175.476.489.183.31.183.74 0 .466-.231.831a1.56 1.56 0 0 1-.676.573Q9.265 14 8.609 14H6.114V8.16zM7.35 12.99h1.006q.517 0 .753-.196a.66.66 0 0 0 .237-.531.8.8 0 0 0-.116-.428.8.8 0 0 0-.334-.29 1.15 1.15 0 0 0-.511-.106H7.349zm0-2.386h.916q.254 0 .45-.09a.75.75 0 0 0 .313-.256.67.67 0 0 0 .118-.396.64.64 0 0 0-.226-.511q-.223-.195-.633-.194H7.35z' clip-rule='evenodd'/%3E%3Cpath fill='%23000' d='M7.166.377a.75.75 0 0 1 .919.066l3.333 3a.75.75 0 0 1-1.003 1.115L7.609 2.033 5.113 4.53a.75.75 0 0 1-1.06-1.06l3-3z'/%3E%3C/svg%3E\")}.ag-icon-cancel:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecancel%3C/title%3E%3Cpath d='M16 2.667C8.627 2.667 2.667 8.627 2.667 16S8.627 29.333 16 29.333 29.333 23.373 29.333 16 23.373 2.667 16 2.667m6.667 18.12-1.88 1.88L16 17.88l-4.787 4.787-1.88-1.88L14.12 16l-4.787-4.787 1.88-1.88L16 14.12l4.787-4.787 1.88 1.88L17.88 16z'/%3E%3C/svg%3E\")}.ag-icon-chart:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cpath d='M6.667 12.267h4v13.067h-4zm7.466-5.6h3.733v18.667h-3.733zM21.6 17.333h3.733v8H21.6z'/%3E%3C/svg%3E\")}.ag-icon-color-picker:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolor-picker%3C/title%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387H7.361zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667'/%3E%3C/svg%3E\")}.ag-icon-columns:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolumns%3C/title%3E%3Cpath d='M5.333 10.667h5.333V5.334H5.333zm8 16h5.333v-5.333h-5.333zm-8 0h5.333v-5.333H5.333zm0-8h5.333v-5.333H5.333zm8 0h5.333v-5.333h-5.333zm8-13.334v5.333h5.333V5.333zm-8 5.334h5.333V5.334h-5.333zm8 8h5.333v-5.333h-5.333zm0 8h5.333v-5.333h-5.333z'/%3E%3C/svg%3E\")}.ag-icon-contracted:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Econtracted%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E\")}.ag-icon-copy:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecopy%3C/title%3E%3Cpath d='M22 1.333H6A2.675 2.675 0 0 0 3.333 4v18.667H6V4h16zm4 5.334H11.333a2.675 2.675 0 0 0-2.667 2.667v18.667c0 1.467 1.2 2.667 2.667 2.667H26c1.467 0 2.667-1.2 2.667-2.667V9.334c0-1.467-1.2-2.667-2.667-2.667M26 28H11.333V9.333H26z'/%3E%3C/svg%3E\")}.ag-icon-cross:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecross%3C/title%3E%3Cpath d='m25.333 8.547-1.88-1.88L16 14.12 8.547 6.667l-1.88 1.88L14.12 16l-7.453 7.453 1.88 1.88L16 17.88l7.453 7.453 1.88-1.88L17.88 16z'/%3E%3C/svg%3E\")}.ag-icon-csv:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753
13-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='translate(3.934 -.054)scale(.06285)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E\")}.ag-icon-cut:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m19 3-6 6 2 2 7-7V3m-10 9.5a.503.503 0 0 1-.5-.5c0-.274.226-.5.5-.5s.5.226.5.5-.226.5-.5.5M6 20c-1.097 0-2-.903-2-2a2 2 0 0 1 2-2c1.097 0 2 .903 2 2a2 2 0 0 1-2 2M6 8c-1.097 0-2-.903-2-2a2 2 0 0 1 2-2c1.097 0 2 .903 2 2a2 2 0 0 1-2 2m3.64-.36c.23-.5.36-1.05.36-1.64 0-2.194-1.806-4-4-4S2 3.806 2 6s1.806 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.194 0-4 1.806-4 4s1.806 4 4 4 4-1.806 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1z' style='fill-rule:nonzero' transform='translate(4 4)'/%3E%3C/svg%3E\")}.ag-icon-desc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Edesc%3C/title%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667L26.668 16z'/%3E%3C/svg%3E\")}.ag-icon-adesc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M10.387 11.47a.75.75 0 0 1 1.06 1.06l-3 3-.113.093a.75.75 0 0 1-.919-.065l-3.333-3a.75.75 0 0 1 1.003-1.116l2.806 2.525zM13.201 3.08q.65 0 1.135.222.487.223.759.619.27.396.279.918H14.19a.72.72 0 0 0-.293-.536q-.26-.192-.705-.192-.302.001-.51.086a.7.7 0 0 0-.32.23.56.56 0 0 0-.108.338.5.5 0 0 0 .065.273.7.7 0 0 0 .204.203q.127.083.295.
13146.168.06.36.102l.525.125a3.7 3.7 0 0 1 .701.229q.32.143.554.35.234.21.362.492.131.282.134.647a1.6 1.6 0 0 1-.273.93 1.74 1.74 0 0 1-.777.607q-.504.214-1.217.214-.708 0-1.232-.217a1.8 1.8 0 0 1-.816-.641q-.29-.429-.305-1.059h1.194q.02.294.17.49.15.195.402.294.253.098.573.098.313 0 .544-.092a.84.84 0 0 0 .362-.254.6.6 0 0 0 .129-.373.5.5 0 0 0-.117-.33.9.9 0 0 0-.337-.23 3.4 3.4 0 0 0-.54-.17l-.635-.16q-.738-.18-1.166-.562t-.426-1.03a1.53 1.53 0 0 1 .284-.926q.287-.396.79-.62a2.8 2.8 0 0 1 1.14-.222'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5.813 9H4.489l-.432-1.332H1.948L1.515 9H.19l2.017-5.84h1.592zM2.262 6.704h1.481l-.718-2.21H2.98zM8.452 3.16q.645 0 1.075.19.43.192.648.53a1.4 1.4 0 0 1 .217.776q0 .342-.137.602a1.2 1.2 0 0 1-.376.423 1.6 1.6 0 0 1-.542.23v.058q.333.014.624.187.294.175.476.489.183.31.183.74 0 .465-.231.83a1.56 1.56 0 0 1-.676.574Q9.265 9 8.609 9H6.114V3.16zM7.35 7.99h1.006q.517 0 .753-.196a.66.66 0 0 0 .237-.531.8.8 0 0 0-.116-.428.8.8 0 0 0-.334-.291 1.15 1.15 0 0 0-.511-.106H7.349zm0-2.386h.916q.254 0 .45-.09a.75.75 0 0 0 .313-.256.67.67 0 0 0 .118-.397.64.64 0 0 0-.226-.51q-.223-.194-.633-.194H7.35z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Edesc%3C/title%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667L26.668 16z'/%3E%3C/svg%3E\")}.ag-icon-excel:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='translate(3.934 -.054)scale(.06285)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E\")}.ag-icon-expanded:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eexpanded%3C/title%3E%3Cpath d='M20.94 9.88 19.06 8l-8 8 8 8 1.88-1.88L14.833 16z'/%3E%3C/svg%3E\")}.ag-icon-eye-slash:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath d='M21.106 15.088A5.19 5.19 0 0 0 16 10.814a5.17 5.17 0 0 0-3.668 1.522L9.866 9.868a12.2 12.2 0 0 1 6.133-1.646c5.186 0 9.614 3.225 11.408 7.778a12.34 12.34 0 0 1-5.276 6.133l-2.468-2.466a5.17 5.17 0 0 0 1.449-2.802h-2.123c-.148.508-.42.964-.782 1.33l-1.33-1.33h-2.514l2.196 2.196q-.272.049-.56.05a3.11 3.11 0 0 1-2.99-2.245h-2.123a5.19 5.19 0 0 0 7.3 3.836l2.247 2.247a12.2 12.2 0 0 1-4.434.828c-5.186 0-9.614-3.225-11.408-7.778a12.3 12.3 0 0 1 3.781-5.111l2.924 2.924a5.1 5.1 0 0 0-.404 1.275h4.206l-1.296-1.296a3.1 3.1 0 0 1 2.196-.903c1.404 0 2.587.924 2.976 2.199h2.13z'/%3E%3C/svg%3E\")}.ag-icon-eye:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye%3C/title%3E%3Cpath d='M16 8.222c-5.186 0-9.614 3.225-11.408 7.778 1.794 4.553 6.222 7.778 11.408 7.778S25.614 20.553 27.408 16C25.614 11.447 21.186 8.222 16 8.222m0 12.964c-2.862 0-5.186-2.324-5.186-5.186s2.324-5.186 5.186-5.186 5.186 2.324 5.186 5.186-2.324 5.186-5.186 5.186m0-8.297c-1.721 0-3.111 1.39-3.111 3.111s1.39 3.111 3.111 3.111 3.111-1.39 3.111-3.111-1.39-3.111-3.111-3.111'/%3E%3C/svg%3E\")}.ag-icon-filter:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efilter%3C/title%3E%3Cpath d='M13.333 24h5.333v-2.667h-5.333zM4 8v2.667h24V8zm4 9.333h16v-2.667H8z'/%3E%3C/svg%3E\")}.ag-icon-first:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efirst%3C/title%3E%3Cpath d='M24.273 22.12 18.153 16l6.12-6.12L22.393 8l-8 8 8 8zM7.727 8h2.667v16H7.727z'/%3E%3C/svg%3E\")}.ag-icon-group:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egroup%3C/title%3E%3Cpath d='M18.667 21.333h8.889A3.555 3.555 0 0 1 24 24.889h-5.333zm8.888-7.111v3.556h-8.889v-3.556zM24 7.111a3.555 3.555 0 0 1 3.556 3.556h-16V7.111zm-8.889 17.778h-3.556v-3.556h3.556zm0-7.111h-3.556v-3.556h3.556zM8 10.667H4.444A3.555 3.555 0 0 1 8 7.111z'/%3E%3C/svg%3E\")}.ag-icon-last:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elast%3C/title%3E%3Cpath d='m7.727 9.88 6.12 6.12-6.12 6.12L9.607 24l8-8-8-8zM21.607 8h2.667v16h-2.667z'/%3E%3C/svg%3E\")}.ag-icon-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eleft%3C/title%3E%3Cpath d='M26.667 14.667H10.44l7.453-7.453L16 5.334 5.333 16.001 16 26.668l1.88-1.88-7.44-7.453h16.227v-2.667z'/%3E%3C/svg%3E\")}.ag-icon-linked:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elinked%3C/title%3E%3Cpath d='M5.2 16a4.136 4.136 0 0 1 4.133-4.133h5.333V9.334H9.333c-3.68 0-6.667 2.987-6.667 6.667s2.987 6.667 6.667 6.667h5.333v-2.533H9.333A4.136 4.136 0 0 1 5.2 16.002zm5.467 1.333h10.667v-2.667H10.667zm12-8h-5.333v2.533h5.333c2.28 0 4.133 1.853 4.133 4.133s-1.853 4.133-4.133 4.133h-5.333v2.533h5.333c3.68 0 6.667-2.987 6.667-6.667s-2.987-6.667-6.667-6.667z'/%3E%3C/svg%3E\")}.ag-icon-loading:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eloading%3C/title%3E%3Cpath d='m17.778 11.708 3.25-3.251 2.516 2.516-3.251 3.25h4.597v3.556h-4.597l3.251 3.25-2.516 2.516-3.25-3.251v4.597h-3.556v-4.597l-3.25 3.251-2.516-2.516 3.251-3.25H7.11v-3.556h4.597l-3.251-3.25 2.516-2.516 3.25 3.251V7.111h3.556zm-3.251 7.847h2.944l2.084-2.084v-2.944l-2.084-2.084h-2.944l-2.084 2.084v2.944z'/%3E%3C/svg%3E\")}.ag-icon-maximize:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Emaximize%3C/title%3E%3Cpath d='M4 4h24v2.667H4z'/%3
13E%3C/svg%3E\")}.ag-icon-menu:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Emenu%3C/title%3E%3Cpath d='M4 24h24v-2.667H4zm0-6.667h24v-2.667H4zM4 8v2.667h24V8z'/%3E%3C/svg%3E\")}.ag-icon-menu-alt:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M16 26.667a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 24q0-1.1.784-1.883A2.57 2.57 0 0 1 16 21.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784m0-8a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 16q0-1.1.784-1.883A2.57 2.57 0 0 1 16 13.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784m0-8a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 8q0-1.1.784-1.883A2.57 2.57 0 0 1 16 5.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784'/%3E%3C/svg%3E\")}.ag-icon-minimize:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eminimize%3C/title%3E%3Cpath d='M8 25.333h16V28H8z'/%3E%3C/svg%3E\")}.ag-icon-minus:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658H7.901v-2.658z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-next:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enext%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E\")}.ag-icon-none:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cpath d='M4 24h16v-2.667H4zM4 8v2.667h24V8zm0 9.333h24v-2.667H4z'/%3E%3C/svg%3E\")}.ag-icon-not-allowed:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enot-allowed%3C/title%3E%3Cpath d='M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667M5.333 16c0-5.893 4.773-10.667 10.667-10.667 2.467 0 4.733.84 6.533 2.253L7.586 22.533A10.54 10.54 0 0 1 5.333 16M16 26.667c-2.467 0-4.733-.84-6.533-2.253L24.414 9.467A10.54 10.54 0 0 1 26.667 16c0 5.893-4.773 10.667-10.667 10.667'/%3E%3C/svg%3E\")}.ag-icon-paste:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epaste%3C/title%3E%3Cpath d='M25.333 4H19.76C19.2 2.453 17.733 1.333 16 1.333S12.8 2.453 12.24 4H6.667A2.675 2.675 0 0 0 4 6.667V28c0 1.467 1.2 2.667 2.667 2.667h18.667c1.467 0 2.667-1.2 2.667-2.667V6.667C28.001 5.2 26.801 4 25.334 4zM16 4c.733 0 1.333.6 1.333 1.333s-.6 1.333-1.333 1.333-1.333-.6-1.333-1.333S15.267 4 16 4m9.333 24H6.666V6.667h2.667v4h13.333v-4h2.667z'/%3E%3C/svg%3E\")}.ag-icon-pin:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epin%3C/title%3E%3Cpath d='m11.106 22.093-4.444 4.444-1.259-1.259 4.444-4.444zm5.872-16.63 9.618 9.62-.962.962-.962-.962-7.694 3.847 1.924 1.924-2.74 2.74-7.696-7.696 2.741-2.74 1.924 1.925 3.847-7.696-.962-.962z'/%3E%3C/svg%3E\")}.ag-icon-pivot:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epivot%3C/title%3E%3Cpath d='M26.667 30.223H5.334a3.556 3.556 0 0 1-3.556-3.556V5.334a3.556 3.556 0 0 1 3.556-3.556h21.333a3.556 3.556 0 0 1 3.556 3.556v21.333a3.556 3.556 0 0 1-3.556 3.556m-16-8.89H5.334v5.333h5.333zm16-7.11H12.444v12.444h14.223zm-9.15 6.85-2.039 2.037 2.039 2.039-1.257 1.257-3.295-3.296 3.295-3.295q.63.628 1.257 1.257zm-6.85-6.85H5.334v5.333h5.333zm15.74 3.816-1.257 1.256-2.039-2.037-2.037 2.037-1.257-1.256 3.295-3.296zM10.667 5.333H5.334v5.333h5.333zm8.889 0h-7.112v5.333h7.112zm7.111 0h-5.333v5.333h5.333z'/%3E%3C/svg%3E\")}.ag-icon-plus:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658h-6.77v6.77h-2.658v-6.77h-6.77v-2.658h6.77v-6.77h2.658v6.77z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-previous:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eprevious%3C/title%3E%3Cpath d='M20.94 9.88 19.06 8l-8 8 8 8 1.88-1.88L14.833 16z'/%3E%3C/svg%3E\")}.ag-icon-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eright%3C/title%3E%3Cpath d='m16 5.333-1.88 1.88 7.44 7.453H5.333v2.667H21.56l-7.44 7.453 1.88 1.88 10.667-10.667L16 5.332z'/%3E%3C/svg%3E\")}.ag-icon-save:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esave%3C/title%3E%3Cpath d='M25.333 16v9.333H6.666V16H3.999v9.333C3.999 26.8 5.199 28 6.666 28h18.667C26.8 28 28 26.8 28 25.333V16zm-8 .893 3.453-3.44 1.88 1.88L15.999 22l-6.667-6.667 1.88-1.88 3.453 3.44V4h2.667v12.893z'/%3
13E%3C/svg%3E\")}.ag-icon-small-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-down%3C/title%3E%3Cpath d='M9.333 12.667 16 19.334l6.667-6.667H9.334z'/%3E%3C/svg%3E\")}.ag-icon-small-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-left%3C/title%3E%3Cpath d='M19.333 9.333 12.666 16l6.667 6.667V9.334z'/%3E%3C/svg%3E\")}.ag-icon-small-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-right%3C/title%3E%3Cpath d='M12.667 22.667 19.334 16l-6.667-6.667v13.333z'/%3E%3C/svg%3E\")}.ag-icon-small-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-up%3C/title%3E%3Cpath d='M9.333 19.333 16 12.666l6.667 6.667H9.334z'/%3E%3C/svg%3E\")}.ag-icon-tick:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etick%3C/title%3E%3Cpath d='m11.727 21.167-5.56-5.56-1.893 1.88 7.453 7.453 16-16-1.88-1.88z'/%3
13E%3C/svg%3E\")}.ag-icon-tree-closed:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-closed%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E\")}.ag-icon-tree-indeterminate:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-indeterminate%3C/title%3E%3Cpath d='M6.667 14.667h18.667v2.667H6.667z'/%3E%3C/svg%3E\")}.ag-icon-tree-open:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-open%3C/title%3E%3Cpath d='M22.12 11.06 16 17.167 9.88 11.06 8 12.94l8 8 8-8z'/%3E%3C/svg%3E\")}.ag-icon-unlinked:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eunlinked%3C/title%3E%3Cpath d='M22.667 9.333h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133c0 1.907-1.307 3.507-3.08 3.973l1.947 1.947c2.173-1.107 3.667-3.32 3.667-5.92a6.67 6.67 0 0 0-6.667-6.667zm-1.334 5.334h-2.92l2.667 2.667h.253zM2.667 5.693 6.814 9.84A6.65 6.65 0 0 0 2.667 16a6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.334a4.136 4.136 0 0 1-4.133-4.133c0-2.12 1.613-3.867 3.68-4.093l2.76 2.76h-.973v2.667h3.64l3.027 3.027v2.307h2.307l5.347 5.333 1.68-1.68L4.362 4.002 2.669 5.695z'/%3E%3C/svg%3E\")}.ag-icon-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333z'/%3E%3C/svg%3E\")}.ag-icon-grip:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egrip%3C/title%3E%3Cpath d='M26.667 12H5.334v2.667h21.333zM5.333 20h21.333v-2.667H5.333z'/%3E%3C/svg%3E\")}.ag-icon-settings:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E\")}.ag-icon-column-arrow:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11 4a1 1 0 0 1 1 1v22a1 1 0 1 1-2 0V5a1 1 0 0 1 1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 13a1 1 0 0 1 1-1h23.5a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 4h18v24H2zm2 2v20h14V6zM26.793 13 23 9.207l1.414-1.414L29.621 13l-5.207 5.207L23 16.793z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-un-pin:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M8 11a.75.75 0 0 0-.75.75v3.333a.75.75 0 1 0 1.5 0V11.75A.75.75 0 0 0 8 11'/%3E%3Cpath fill='currentColor' d='M13.11 1.436a.75.75 0 0 0-1.22-.872l-10 14a.75.75 0 1 0 1.22.872L5.207 12.5h7.376a.75.75 0 0 0 .75-.75v-1.174a2.08 2.08 0 0 0-1.153-1.863l-1.185-.599-.005-.002a.58.58 0 0 1-.323-.522V5.165a2.083 2.083 0 0 0 1.854-2.904zm-3.943 5.52v.634a2.08 2.08 0 0 0 1.153 1.863l1.185.6.005.002a.58.58 0 0 1 .323.522V11H6.28zM9.277 1H5.25a2.084 2.084 0 0 0-.083 4.165v1.676l1.5-2.132v-.292a.75.75 0 0 0-.75-.75H5.25a.584.584 0 0 1 0-1.167h2.972z'/%3E%3C/svg%3E\")}.ag-icon-pinned-top:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M12.53 3.72A.75.75 0 0 1 12 5H4a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 .53.22M3.269 10.744a.75.75 0 0 1 .2-.524l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 1 1-1.06 1.06L8.75 8.56V14a.75.75 0 0 1-1.5 0V8.56l-2.72 2.72a.75.75 0 0 1-1.26-.536'/%3E%3C/svg%3E\")}.ag-icon-pinned-bottom:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M3.47 12.28A.75.75 0 0 1 4 11h8a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1-.53-.22M12.731 5.256a.75.75 0 0 1-.2.524l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06l2.72 2.72V2a.75.75 0 0 1 1.5 0v5.44l2.72-2.72a.75.75 0 0 1 1.26.536'/%3E%3C/svg%3E\")}.ag-icon-chevron-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M3.479 10.521a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1-1.06 1.06l-3.47-3.47-3.47 3.47a.75.75 0 0 1-1.06 0' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12.521 5.461a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 1.06-1.06l3.47 3.47 3.47-3.47a.75.75 0 0 1 1.06 0' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M10.53 12.512a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 1.06l-3.47 3.47 3.47 3.47a.75.75 0 0 1 0 1.06' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M5.47 3.47a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06-1.06L8.94 8 5.47 4.53a.75.75 0 0 1 0-1.06' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-filter-add:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M18.666 24h-5.333v-2.667h5.333zM24 17.333H8v-2.667h16zm3.59-9.344h3.221v2.657h-3.22v3.22h-2.656v-3.22h-3.221V7.989h3.22V4.77h2.657zm-8.582 2.678H4V8h15.008z'/%3E%3C/svg%3E\")}.ag-icon-edit:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M6.222 25.778h1.611l14.834-14.811-1.611-1.611-14.834 14.81zM4 28v-4.733L22.644 4.656a2.26 2.26 0 0 1 1.567-.634q.423 0 .833.167.412.166.734.478l1.589 1.6q.333.322.483.733t.15.822q0 .423-.161.839-.162.416-.472.728L8.733 28zm17.856-17.833-.8-.811 1.61 1.61z'/%3E%3C/svg%3E\")}"}),hG=e=>{let t=[];if("image"===e.type){let{icons:i,mask:o}=e;for(let e of Object.keys(i)){let r=d2(i[e]);o?t.push(`.ag-icon-${e}::before { mask-image: ${r}; }`):t.push(`.ag-icon-${e}::before { background-image: ${r}; ${hO} }`)}}
13if("font"===e.type){let{family:i,weight:o,color:r,icons:s}=e,n=hO;for(let e of(i&&(n+=` font-family: ${d1(i)};`),o&&(n+=` font-weight: ${dY(o)};`),r&&(n+=` color: ${dQ(r)};`),Object.keys(s)))t.push(`.ag-icon-${e}::before { content: ${JSON.stringify(s[e])}; ${n} }`)}return dI({css:t.join(";\n"),cssImports:e.cssImports})},hO="background-color: unset; mask-image: unset; -webkit-mask-image: unset;",hN={aggregation:'<path d="M18 7V4H6l6 8-6 8h12v-3"/>',arrows:'<polyline points="5 9 2 12 5 15"/><polyline points="9 5 12 2 15 5"/><polyline points="15 19 12 22 9 19"/><polyline points="19 9 22 12 19 15"/><line x1="2" x2="22" y1="12" y2="12"/><line x1="12" x2="12" y1="2" y2="22"/>',asc:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',cancel:'<path d="m18 6-12 12"/><path d="m6 6 12 12"/>',chart:'<line x1="18" x2="18" y1="20" y2="10"/><line x1="12" x2="12" y1="20" y2="4"/><line x1="6" x2="6" y1="20" y2="14"/>',"color-picker":'<path d="m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z"/><path d="m5 2 5 5"/><path d="M2 13h15"/><path d="M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z"/>',columns:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/>',contracted:'<path d="m9 18 6-6-6-6"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',cross:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',csv:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',cut:'<circle cx="6" cy="6" r="3"/><path d="M8.12 8.12 12 12"/><path d="M20 4 8.12 15.88"/><circle cx="6" cy="18" r="3"/><path d="M14.8 14.8 20 20"/>',desc:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',down:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',excel:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',expanded:'<path d="m15 18-6-6 6-6"/>',eye:'<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>',"eye-slash":'<path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/>',filter:'<path d="M3 6h18"/><path d="M7 12h10"/><path d="M10 18h4"/>',first:'<path d="m17 18-6-6 6-6"/><path d="M7 6v12"/>',grip:'<circle cx="5" cy="8" r="0.5"/><circle cx="12" cy="8" r="0.5"/><circle cx="19" cy="8" r="0.5"/><circle cx="5" cy="16" r="0.5"/><circle cx="12" cy="16" r="0.5"/><circle cx="19" cy="16" r="0.5"/><g stroke="none" fill="currentColor"><circle cx="5" cy="8" r="1"/><circle cx="12" cy="8" r="1"/><circle cx="19" cy="8" r="1"/><circle cx="5" cy="16" r="1"/><circle cx="12" cy="16" r="1"/><circle cx="19" cy="16" r="1"/></g>',group:'<path d="M16 12H3"/><path d="M16 18H3"/><path d="M10 6H3"/><path d="M21 18V8a2 2 0 0 0-2-2h-5"/><path d="m16 8-2-2 2-2"/>',last:'<path d="m7 18 6-6-6-6"/><path d="M17 6v12"/>',left:'<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',linked:'<path d="M9 17H7A5 5 0 0 1 7 7h2"/><path d="M15 7h2a5 5 0 1 1 0 10h-2"/><line x1="8" x2="16" y1="12" y2="12"/>',loading:'<line x1="12" x2="12" y1="2" y2="6"/><line x1="12" x2="12" y1="18" y2="22"/><line x1="4.93" x2="7.76" y1="4.93" y2="7.76"/><line x1="16.24" x2="19.07" y1="16.24" y2="19.07"/><line x1="2" x2="6" y1="12" y2="12"/><line x1="18" x2="22" y1="12" y2="12"/><line x1="4.93" x2="7.76" y1="19.07" y2="16.24"/><line x1="16.24" x2="19.07" y1="7.76" y2="4.93"/>',maximize:'<polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/>',menu:'<line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/>',"menu-alt":'<circle cx="12" cy="5" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="12" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="19" r="0.75" fill="#D9D9D9"/>',minimize:'<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="14" x2="21" y1="10" y2="3"/><line x1="3" x2="10" y1="21" y2="14"/>',minus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/>',next:'<path d="m9 18 6-6-6-6"/>',none:'<path d="m7 15 5 5 5-5"/><path d="m7 9 5-5 5 5"/>',"not-allowed":'<circle cx="12" cy="12" r="10"/><path d="m4.9 4.9 14.2 14.2"/>',paste:'<path d="M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"/><path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10"/><path d="m17 10 4 4-4 4"/>',pin:'<line x1="12" x2="12" y1="17" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"/>',pivot:'<path d="M15 3v18"/><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M21 9H3"/><path d="M21 15H3"/>',plus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/><path d="M12 8v8"/>',previous:'<path d="m15 18-6-6 6-6"/>',right:'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',save:'<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',settings:'<path d="M20 7h-9"/><path d="M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/>',"small-left":'<path d="m15 18-6-6 6-6"/>',"small-right":'<path d="m9 18 6-6-6-6"/>',tick:'<path d="M20 6 9 17l-5-5"/>',"tree-closed":'<path d="m9 18 6-6-6-6"/>',"tree-indeterminate":'<path d="M5 12h14"/>',"tree-open":'<path d="m6 9 6 6 6-6"/>',unlinked:'<path d="M9 17H7A5 5 0 0 1 7 7"/><path d="M15 7h2a5 5 0 0 1 4 8"/><line x1="8" x2="12" y1="12" y2="12"/><line x1="2" x2="22" y1="2" y2="22"/>',up:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>'},hz
vendor: 9,265 bytes, line 13
13={aasc:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.2012 8.07928C13.6346 8.0793 14.0128 8.15365 14.3359 8.30193C14.6609 8.45018 14.9141 8.65595 15.0947 8.9201C15.2754 9.18439 15.3683 9.49109 15.374 9.83904H14.1904C14.1676 9.60898 14.0695 9.4303 13.8965 9.30291C13.7235 9.1756 13.4889 9.1115 13.1924 9.1115C12.9909 9.1115 12.8204 9.1404 12.6816 9.19744C12.543 9.25255 12.4364 9.32917 12.3623 9.42791C12.2901 9.52678 12.2539 9.63933 12.2539 9.76482C12.2501 9.8692 12.272 9.9604 12.3193 10.0383C12.3688 10.1162 12.4369 10.1843 12.5225 10.2414C12.6079 10.2964 12.7064 10.3451 12.8184 10.3869C12.9304 10.4268 13.0505 10.4609 13.1777 10.4894L13.7031 10.6144C13.9578 10.6715 14.1914 10.7479 14.4043 10.8429C14.6173 10.938 14.8021 11.0547 14.958 11.1935C15.1138 11.3323 15.2348 11.4957 15.3203 11.6838C15.4077 11.8719 15.4522 12.088 15.4541 12.3312C15.4522 12.6885 15.3611 12.9986 15.1807 13.2609C15.0019 13.5214 14.7427 13.7248 14.4043 13.8693C14.0678 14.0118 13.6617 14.0832 13.1865 14.0832C12.7153 14.0832 12.3048 14.0107 11.9551 13.8664C11.6071 13.7219 11.3345 13.5071 11.1387 13.2238C10.9449 12.9387 10.8435 12.5862 10.834 12.1662H12.0283C12.0416 12.362 12.0984 12.5252 12.1973 12.6564C12.298 12.7857 12.4323 12.8838 12.5996 12.9504C12.7688 13.0149 12.96 13.047 13.1729 13.047C13.3817 13.047 13.563 13.0169 13.7168 12.9562C13.8727 12.8954 13.9935 12.8106 14.0791 12.7023C14.1647 12.5939 14.208 12.469 14.208 12.3283C14.2079 12.1974 14.1686 12.0875 14.0908 11.9982C14.0148 11.9089 13.9022 11.8324 13.7539 11.7697C13.6076 11.707 13.4276 11.6501 13.2148 11.5988L12.5791 11.4387C12.0869 11.3189 11.6982 11.1318 11.4131 10.8771C11.128 10.6224 10.9855 10.2793 10.9873 9.84783C10.9854 9.49418 11.0804 9.18439 11.2705 8.9201C11.4625 8.65603 11.7261 8.45015 12.0605 8.30193C12.3951 8.15369 12.7754 8.07928 13.2012 8.07928Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.8125 14.0002H4.48926L4.05664 12.6681H1.94824L1.51465 14.0002H0.19043L2.20703 8.15935H3.79883L5.8125 14.0002ZM2.26172 11.7043H3.74316L3.02539 9.49334H2.98047L2.26172 11.7043Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M8.45215 8.15935C8.88165 8.15935 9.24031 8.22251 9.52734 8.34978C9.81445 8.47717 10.0303 8.65477 10.1748 8.88103C10.3192 9.10536 10.3916 9.36368 10.3916 9.65642C10.3916 9.88452 10.3461 10.085 10.2549 10.258C10.1637 10.4289 10.0384 10.5696 9.87891 10.6799C9.72117 10.7882 9.54024 10.8657 9.33691 10.9113V10.9679C9.55917 10.9775 9.76716 11.0406 9.96094 11.1564C10.1568 11.2724 10.3158 11.4356 10.4375 11.6447C10.5591 11.8519 10.6201 12.099 10.6201 12.3859C10.6201 12.6958 10.5427 12.9727 10.3887 13.216C10.2366 13.4573 10.0113 13.6486 9.71289 13.7892C9.41443 13.9299 9.04655 14.0002 8.60938 14.0002H6.11426V8.15935H8.45215ZM7.34863 12.9904H8.35547C8.69943 12.9904 8.95057 12.9252 9.1084 12.7941C9.26621 12.661 9.34473 12.4834 9.34473 12.2629C9.34468 12.1014 9.30643 11.9587 9.22852 11.8351C9.15056 11.7116 9.03903 11.6145 8.89453 11.5441C8.75195 11.4738 8.58148 11.4387 8.38379 11.4387H7.34863V12.9904ZM7.34863 10.6037H8.26465C8.43369 10.6036 8.58376 10.5737 8.71484 10.5148C8.84793 10.454 8.95227 10.3683 9.02832 10.258C9.10628 10.1477 9.14551 10.0155 9.14551 9.8615C9.14546 9.65055 9.07008 9.48001 8.91992 9.35076C8.77165 9.22169 8.56064 9.15741 8.28711 9.1574H7.34863V10.6037Z" fill="black"/><path d="M7.16602 0.377127C7.44584 0.189493 7.82551 0.20905 8.08496 0.442557L11.418 3.44256C11.7257 3.71966 11.7507 4.19428 11.4736 4.50213C11.1966 4.80961 10.7228 4.83441 10.415 4.55779L7.60938 2.03338L5.11328 4.53045C4.82042 4.82326 4.34562 4.82322 4.05273 4.53045C3.75986 4.23757 3.75989 3.7628 4.05273 3.4699L7.05273 0.4699L7.16602 0.377127Z" fill="black"/></svg>',adesc:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.3867 11.4697C10.6796 11.1771 11.1544 11.1769 11.4473 11.4697C11.7399 11.7626 11.7399 12.2374 11.4473 12.5303L8.44727 15.5303L8.33398 15.623C8.05425 15.8106 7.67449 15.7909 7.41504 15.5576L4.08203 12.5576C3.77415 12.2805 3.74927 11.8059 4.02637 11.498C4.30342 11.1907 4.77722 11.1657 5.08496 11.4424L7.89062 13.9668L10.3867 11.4697Z" fill="black"/><path d="M13.2012 3.0791C13.6346 3.07912 14.0128 3.1535 14.3359 3.30176C14.6611 3.45006 14.9141 3.65661 15.0947 3.9209C15.2752 4.18513 15.3683 4.49104 15.374 4.83887H14.1904C14.1676 4.60882 14.0695 4.43012 13.8965 4.30273C13.7235 4.17546 13.4889 4.11133 13.1924 4.11133C12.9909 4.11133 12.8204 4.14023 12.6816 4.19727C12.5431 4.25236 12.4364 4.32902 12.3623 4.42773C12.2901 4.52659 12.2539 4.63919 12.2539 4.76465C12.2501 4.86901 12.272 4.96023 12.3193 5.03809C12.3688 5.11604 12.4369 5.18417 12.5225 5.24121C12.6079 5.29623 12.7064 5.34496 12.8184 5.38672C12.9304 5.42661 13.0505 5.46075 13.1777 5.48926L13.7031 5.61426C13.9578 5.67128 14.1914 5.74776 14.4043 5.84277C14.6172 5.93784 14.8021 6.05457 14.958 6.19336C15.1139 6.33216 15.2348 6.49633 15.3203 6.68457C15.4076 6.8727 15.4522 7.08885 15.4541 7.33203C15.4521 7.68929 15.3612 7.99944 15.1807 8.26172C15.0019 8.52216 14.7427 8.72465 14.4043 8.86914C14.0678 9.01165 13.6617 9.08301 13.1865 9.08301C12.7153 9.08299 12.3048 9.01057 11.9551 8.86621C11.6072 8.72173 11.3345 8.50786 11.1387 8.22461C10.9447 7.9394 10.8435 7.58622 10.834 7.16602H12.0283C12.0416 7.36176 12.0985 7.52509 12.1973 7.65625C12.298 7.78554 12.4323 7.88365 12.5996 7.9502C12.7688 8.01477 12.96 8.04785 13.1729 8.04785C13.3817 8.04781 13.5629 8.01678 13.7168 7.95605C13.8727 7.89522 13.9935 7.81051 14.0791 7.70215C14.1646 7.59387 14.2079 7.46965 14.208 7.3291C14.208 7.19796 14.1687 7.08739 14.0908 6.99805C14.0148 6.90868 13.9022 6.83228 13.7539 6.76953C13.6076 6.70685 13.4276 6.64993 13.2148 6.59863L12.5791 6.43848C12.0868 6.31871 11.6982 6.13163 11.4131 5.87695C11.1279 5.62221 10.9855 5.27916 10.9873 4.84766C10.9854 4.49404 11.0804 4.18517 11.2705 3.9209C11.4625 3.65661 11.7259 3.45006 12.0605 3.30176C12.3951 3.15353 12.7754 3.0791 13.2012 3.0791Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.8125 9H4.48926L4.05664 7.66797H1.94824L1.51465 9H0.19043L2.20703 3.15918H3.79883L5.8125 9ZM2.26172 6.7041H3.74316L3.02539 4.49414H2.98047L2.26172 6.7041Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M8.45215 3.15918C8.88181 3.15918 9.24025 3.22322 9.52734 3.35059C9.81445 3.47798 10.0303 3.6546 10.1748 3.88086C10.3193 4.10518 10.3916 4.36351 10.3916 4.65625C10.3916 4.88432 10.3461 5.08484 10.2549 5.25781C10.1636 5.4289 10.0386 5.57039 9.87891 5.68066C9.72118 5.78898 9.54022 5.86549 9.33691 5.91113V5.96875C9.55913 5.9783 9.76719 6.04044 9.96094 6.15625C10.1568 6.27223 10.3158 6.43538 10.4375 6.64453C10.5591 6.85173 10.6201 7.09875 10.6201 7.38574C10.6201 7.69567 10.5427 7.97245 10.3887 8.21582C10.2366 8.45719 10.0113 8.64841 9.71289 8.78906C9.41442 8.9297 9.04658 8.99999 8.60938 9H6.11426V3.15918H8.45215ZM7.34863 7.99023H8.35547C8.69948 7.99023 8.95057 7.92504 9.1084 7.79395C9.26621 7.66085 9.34473 7.48325 9.34473 7.2627C9.34466 7.10125 9.3064 6.95844 9.22852 6.83496C9.15056 6.71143 9.03899 6.61427 8.89453 6.54395C8.75196 6.47365 8.58145 6.43848 8.38379 6.43848H7.34863V7.99023ZM7.34863 5.60352H8.26465C8.43369 5.60347 8.58376 5.57354 8.71484 5.51465C8.84791 5.45381 8.95228 5.36807 9.02832 5.25781C9.10623 5.14755 9.14551 5.01529 9.14551 4.86133C9.14542 4.65046 9.07002 4.48078 8.91992 4.35156C8.77163 4.22228 8.56087 4.15724 8.28711 4.15723H7.34863V5.60352Z" fill="black"/></svg>',"chevron-down":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 6L8 10L4 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-left":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 12L6 8L10 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-right":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 12L10 8L6 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-up":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 10L8 6L12 10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"column-arrow":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 26C0 28.2092 1.79086 30 4 30H14C16.2091 30 18 28.2092 18 26V15H25.8786L24.4394 16.4393C23.8536 17.0251 23.8536 17.9749 24.4394 18.5607C25.0252 19.1464 25.9748 19.1464 26.5606 18.5607L30.5606 14.5607C31.1464 13.9749 31.1464 13.0251 30.5606 12.4393L26.5606 8.43934C25.9748 7.85356 25.0252 7.85356 24.4394 8.43934C23.8536 9.02512 23.8536 9.97488 24.4394 10.5607L25.8786 12H18V6C18 3.79086 16.2091 2 14 2H4C1.79086 2 0 3.79086 0 6V26ZM14 5H10.5V12H15V6C15 5.44772 14.5523 5 14 5ZM4 5H7.5V12H3V6C3 5.44772 3.44772 5 4 5ZM10.5 15H15V26C15 26.5522 14.5523 27 14 27H10.5V15ZM4 27H7.5V15H3V26C3 26.5522 3.44772 27 4 27Z" fill="currentColor"/></svg>',
13edit:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 10.6262V12.5012H5.375L10.905 6.97122L9.03 5.09622L3.5 10.6262ZM12.355 5.52122C12.4014 5.47497 12.4381 5.42002 12.4632 5.35953C12.4883 5.29905 12.5012 5.23421 12.5012 5.16872C12.5012 5.10324 12.4883 5.0384 12.4632 4.97791C12.4381 4.91742 12.4014 4.86248 12.355 4.81622L11.185 3.64622C11.1387 3.59987 11.0838 3.5631 11.0233 3.53801C10.9628 3.51291 10.898 3.5 10.8325 3.5C10.767 3.5 10.7022 3.51291 10.6417 3.53801C10.5812 3.5631 10.5263 3.59987 10.48 3.64622L9.565 4.56122L11.44 6.43622L12.355 5.52122Z" fill="currentColor"/></svg>',"filter-add":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.12126 7.75L10.8517 7.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M6.65934 11.748L9.32778 11.748" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M12.2943 1.04872V6.19184M14.9886 3.74341H9.68478" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M8.25488 3C8.04799 3.18323 7.91706 3.45099 7.91699 3.74902C7.91713 4.04868 8.04988 4.31681 8.25879 4.5H2C1.58579 4.5 1.25 4.16421 1.25 3.75C1.25 3.33579 1.58579 3 2 3H8.25488Z" fill="currentColor"/></svg>',"pinned-bottom":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="ag-icon" viewBox="0 0 16 16"><path fill="currentColor" d="M3.47 12.28A.75.75 0 0 1 4 11h8a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1-.53-.22ZM12.731 5.256a.75.75 0 0 1-.2.524l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06l2.72 2.72V2a.75.75 0 0 1 1.5 0v5.44l2.72-2.72a.75.75 0 0 1 1.26.536Z"/></svg>',"pinned-top":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.53 3.72A.75.75 0 0 1 12 5H4a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 .53.22ZM3.269 10.744a.75.75 0 0 1 .2-.524l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 1 1-1.06 1.06L8.75 8.56V14a.75.75 0 0 1-1.5 0V8.56l-2.72 2.72a.75.75 0 0 1-1.26-.536Z"/></svg>',"small-down":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 10.667 16 21.334l8.667-10.667H7.334Z"/></svg>',"small-up":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 21.333 16 10.666l8.667 10.667H7.334Z"/></svg>',"un-pin":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="ag-icon" viewBox="0 0 16 16"><path fill="currentColor" d="M8 11a.75.75 0 0 0-.75.75v3.333a.75.75 0 1 0 1.5 0V11.75A.75.75 0 0 0 8 11Z"/><path fill="currentColor" d="M13.11 1.436a.75.75 0 0 0-1.22-.872l-10 14a.75.75 0 1 0 1.22.872L5.207 12.5h7.376a.75.75 0 0 0 .75-.75v-1.174a2.08 2.08 0 0 0-1.153-1.863l-1.185-.599-.005-.002a.58.58 0 0 1-.323-.522V5.165a2.083 2.083 0 0 0 1.854-2.904l.589-.825Zm-3.943 5.52v.634a2.08 2.08 0 0 0 1.153 1.863l1.185.6.005.002a.58.58 0 0 1 .323.522V11H6.28l2.887-4.044ZM9.277 1H5.25a2.084 2.084 0 0 0-.083 4.165v1.676l1.5-2.132v-.292a.75.75 0 0 0-.75-.75H5.25a.584.584 0 0 1 0-1.167h2.972L9.277 1Z"/></svg>'},hW=(e,t=1.5)=>{let i=hz[e];if(i)return i;let o=hN[e];if(!o)throw Error(`Missing icon data for ${e}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${t}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+o+"</svg>"},hU=(e={})=>dI({feature:"iconSet",css:()=>((e={})=>{let t="";for(let i of[...Object.keys(hN),...Object.keys(hz)]){let o=hW(i,e.strokeWidth);t+=`.ag-icon-${i}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(o)}'); }
14`}return t})(e)}),h_=hU({strokeWidth:1}),h$=hU(),hq=hU({strokeWidth:2}),hK=':where(.ag-input-field-input[type=number]:not(.ag-number-field-input-stepper)){-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}}.ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color);outline:none}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&::-moz-placeholder{color:var(--ag-input-placeholder-text-color)}&::placeholder{color:var(--ag-input-placeholder-text-color)}}:where(.ag-ltr) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-left:var(--ag-input-padding-start)}:where(.ag-rtl) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-right:var(--ag-input-padding-start)}&:where(.ag-ltr,.ag-rtl) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding:0 var(--ag-input-padding-start)}:where(.ag-column-select-header-filter-wrapper),:where(.ag-filter-add-select),:where(.ag-filter-filter),:where(.ag-filter-toolpanel-search),:where(.ag-floating-filter-search-icon),:where(.ag-mini-filter){.ag-input-wrapper:before{background-color:currentcolor;color:var(--ag-input-icon-color);content:"";display:block;height:12px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;opacity:.5;position:absolute;width:12px}}:where(.ag-ltr) :where(.ag-column-select-header-filter-wrapper),:where(.ag-ltr) :where(.ag-filter-add-select),:where(.ag-ltr) :where(.ag-filter-filter),:where(.ag-ltr) :where(.ag-filter-toolpanel-search),:where(.ag-ltr) :where(.ag-floating-filter-search-icon),:where(.ag-ltr) :where(.ag-mini-filter){.ag-input-wrapper:before{margin-left:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-left:calc(var(--ag-spacing)*1.5 + 12px)}}:where(.ag-rtl) :where(.ag-column-select-header-filter-wrapper),:where(.ag-rtl) :where(.ag-filter-add-select),:where(.ag-rtl) :where(.ag-filter-filter),:where(.ag-rtl) :where(.ag-filter-toolpanel-search),:where(.ag-rtl) :where(.ag-floating-filter-search-icon),:where(.ag-rtl) :where(.ag-mini-filter){.ag-input-wrapper:before{margin-right:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-right:calc(var(--ag-spacing)*1.5 + 12px)}}
14',hj={inputBackgroundColor:"transparent",inputBorder:!1,inputBorderRadius:0,inputTextColor:{ref:"textColor"},inputPlaceholderTextColor:{ref:"inputTextColor",mix:.5},inputPaddingStart:0,inputHeight:{calc:"max(iconSize, fontSize) + spacing * 2"},inputFocusBackgroundColor:{ref:"inputBackgroundColor"},inputFocusBorder:{ref:"inputBorder"},inputFocusShadow:"none",inputFocusTextColor:{ref:"inputTextColor"},inputDisabledBackgroundColor:{ref:"inputBackgroundColor"},inputDisabledBorder:{ref:"inputBorder"},inputDisabledTextColor:{ref:"inputTextColor"},inputInvalidBackgroundColor:{ref:"inputBackgroundColor"},inputInvalidBorder:{ref:"inputBorder"},inputInvalidTextColor:{ref:"inputTextColor"},inputIconColor:{ref:"inputTextColor"},pickerButtonBorder:!1,pickerButtonFocusBorder:{ref:"inputFocusBorder"},pickerButtonBackgroundColor:{ref:"backgroundColor"},pickerButtonFocusBackgroundColor:{ref:"backgroundColor"},pickerListBorder:!1,pickerListBackgroundColor:{ref:"backgroundColor"},colorPickerThumbSize:18,colorPickerTrackSize:12,colorPickerThumbBorderWidth:3,colorPickerTrackBorderRadius:12,colorPickerColorBorderRadius:4},hY=dI({feature:"inputStyle",params:hj,css:hK}),hQ=dI({feature:"inputStyle",params:{...hj,inputBackgroundColor:dW,inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:d_},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:dz(.06),inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}},pickerButtonBorder:!0,pickerListBorder:!0},css:()=>hK+".ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){&:focus{box-shadow:var(--ag-focus-shadow);&:where(.invalid),&:where(:invalid){box-shadow:var(--ag-focus-error-shadow)}}}"}),hZ=dI({feature:"inputStyle",params:{...hj,inputBackgroundColor:"transparent",inputBorder:{width:2,color:dN(.3)},inputPaddingStart:{ref:"spacing"},inputFocusBorder:"solid 2px var(--ag-accent-color)",inputDisabledTextColor:{ref:"textColor",mix:.5},inputDisabledBorder:"solid 1px var(--ag-border-color)",inputInvalidBorder:{width:2,color:{ref:"invalidColor",mix:.3}}},css:()=>hK+".ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){border-left:none;border-right:none;border-top:none}"}),hJ='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;flex:1;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex}.ag-tabs-close-button-wrapper{align-items:center;border:0;display:flex;padding:var(--ag-spacing)}:where(.ag-ltr) .ag-tabs-close-button-wrapper{border-right:solid var(--ag-border-width) var(--ag-border-color)}:where(.ag-rtl) .ag-tabs-close-button-wrapper{border-left:solid var(--ag-border-width) var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative}.ag-tab:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}.ag-tab.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}:where(.ag-ltr) .ag-tab.ag-tab-selected:where(:not(:first-of-type)){border-left-color:var(--ag-tab-selected-border-color)}:where(.ag-rtl) .ag-tab.ag-tab-selected:where(:not(:first-of-type)){border-right-color:var(--ag-tab-selected-border-color)}:where(.ag-ltr) .ag-tab.ag-tab-selected:where(:not(:last-of-type)){border-right-color:var(--ag-tab-selected-border-color)}
14:where(.ag-rtl) .ag-tab.ag-tab-selected:where(:not(:last-of-type)){border-left-color:var(--ag-tab-selected-border-color)}.ag-tab:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}.ag-tab.ag-tab-selected:after{opacity:1}',hX={tabBarBackgroundColor:"transparent",tabBarHorizontalPadding:0,tabBarTopPadding:0,tabBackgroundColor:"transparent",tabTextColor:{ref:"textColor"},tabHorizontalPadding:{ref:"spacing"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:"0",tabHoverBackgroundColor:{ref:"tabBackgroundColor"},tabHoverTextColor:{ref:"tabTextColor"},tabSelectedBackgroundColor:{ref:"tabBackgroundColor"},tabSelectedTextColor:{ref:"tabTextColor"},tabSelectedBorderWidth:{ref:"borderWidth"},tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:0,tabSelectedUnderlineTransitionDuration:0,tabBarBorder:!1},h0=dI({feature:"tabStyle",params:hX,css:hJ}),h1=dI({feature:"tabStyle",params:{...hX,tabBarBorder:!0,tabBarBackgroundColor:dN(.05),tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:dW},css:hJ}),h3=dI({feature:"tabStyle",params:{...hX,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabSelectedUnderlineColor:{ref:"primaryColor"},tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:0},css:hJ}),h2=dI({feature:"tabStyle",params:{...hX,tabBarBorder:!0,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabHoverTextColor:d_,tabSelectedTextColor:d_,tabSelectedUnderlineColor:d_,tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:"0.3s"},css:hJ}),h6=dI({feature:"tabStyle",params:{...hX,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabBarHorizontalPadding:{ref:"spacing"},tabBarTopPadding:{ref:"spacing"},tabBarBorder:!0,tabHorizontalPadding:{calc:"spacing * 2"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:{ref:"spacing"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:dW},css:()=>hJ+".ag-tab{border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;border-top:var(--ag-tab-selected-border-width) solid transparent;flex:none;&.ag-tab-selected{border-left-color:var(--ag-tab-selected-border-color);border-right-color:var(--ag-tab-selected-border-color);border-top-color:var(--ag-tab-selected-border-color);margin-bottom:-1px;padding-bottom:calc(var(--ag-tab-bottom-padding) + 1px)}}"}),h4=()=>({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]}),h5=hE().withPart(hx).withPart(hL).withPart(h$).withPart(h1).withPart(hQ).withPart(hb).withParams(h4()),h8=()=>({accentColor:"#2196f3",selectedRowBackgroundColor:dO(.3),inputFocusBorder:{color:dO(.4)},focusShadow:{radius:2,spread:1.6,color:dO(.4)},iconButtonHoverBackgroundColor:"transparent",iconButtonActiveBackgroundColor:"transparent",checkboxUncheckedBorderColor:dz(.45),checkboxIndeterminateBackgroun
14dColor:dz(.45),checkboxIndeterminateBorderColor:dz(.45),checkboxBorderWidth:2,checkboxBorderRadius:2,fontSize:13,dataFontSize:14,headerFontWeight:700,borderRadius:3,wrapperBorderRadius:3,tabSelectedUnderlineColor:d_,tabSelectedBorderWidth:0,tabSelectedUnderlineTransitionDuration:.3,sideButtonSelectedUnderlineColor:d_,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineTransitionDuration:.3,sideButtonBorder:!1,sideButtonSelectedBorder:!1,sideButtonBarTopPadding:{calc:"spacing * 3"},sideButtonSelectedBackgroundColor:"transparent",sideButtonHoverTextColor:d_,iconButtonHoverColor:d_,toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonSwitchInset:1,toggleButtonOffBackgroundColor:dz(.45),colorPickerThumbSize:13,colorPickerTrackSize:11,colorPickerThumbBorderWidth:2,colorPickerTrackBorderRadius:2,colorPickerColorBorderRadius:2}),h7=hE().withPart(hv).withPart(hx).withPart(hL).withPart(hH).withPart(h2).withPart(hQ).withPart(hb).withParams(h8()),h9=()=>({accentColor:"#0091ea",borderColor:dN(.2),spacing:4,widgetVerticalSpacing:{calc:"max(8px, spacing)"},borderRadius:2,wrapperBorderRadius:2,headerColumnResizeHandleColor:"transparent",headerColumnBorder:!0,headerColumnBorderHeight:"50%",oddRowBackgroundColor:{ref:"chromeBackgroundColor",mix:.5},checkboxBorderRadius:2,checkboxBorderWidth:1,checkboxUncheckedBackgroundColor:dW,checkboxUncheckedBorderColor:dz(.5),checkboxCheckedBackgroundColor:dW,checkboxCheckedBorderColor:d_,checkboxCheckedShapeColor:d_,checkboxIndeterminateBackgroun
14dColor:dW,checkboxIndeterminateBorderColor:dz(.5),checkboxIndeterminateShapeColor:dz(.5),focusShadow:{radius:2,spread:1,color:d_},headerTextColor:dN(.6),iconButtonHoverBackgroundColor:"transparent",iconButtonActiveBackgroundColor:"transparent",fontSize:12,tabSelectedBackgroundColor:dW,headerFontWeight:"bold",toggleButtonWidth:32,toggleButtonHeight:16,toggleButtonSwitchInset:1,toggleButtonOffBackgroundColor:dz(.5),sideButtonBorder:!0,sideButtonBarTopPadding:{calc:"spacing * 4"},popupShadow:"5px 5px 10px rgba(0, 0, 0, 0.3)",statusBarLabelColor:dN(.54),statusBarLabelFontWeight:600,statusBarValueFontWeight:600,panelTitleBarIconColor:dU,colorPickerThumbSize:13,colorPickerTrackSize:11,colorPickerThumbBorderWidth:2,colorPickerTrackBorderRadius:2,colorPickerColorBorderRadius:2}),ue=hE().withPart(hw).withPart(hx).withPart(hL).withPart(hB).withPart(h6).withPart(hQ).withPart(hy).withParams(h9()),ut=(()=>{let e={tabSelectedUnderlineColor:{ref:"primaryColor"},sideButtonSelectedUnderlineColor:{ref:"primaryColor"},buttonTextColor:{ref:"primaryColor"},rangeSelectionBackgroundColor:{ref:"primaryColor",mix:.2},rangeSelectionBorderColor:{ref:"primaryColor"},rangeSelectionHighlightColor:{ref:"primaryColor",mix:.5},rangeHeaderHighlightColor:{ref:"foregroundColor",mix:.08},rowNumbersSelectedColor:{ref:"primaryColor",mix:.5},inputFocusBorder:{width:2,color:{ref:"primaryColor"}}
vendor: 1,163 bytes, line 14
14,pickerButtonFocusBorder:{width:1,color:{ref:"primaryColor"}},cellEditingBorder:{color:{ref:"primaryColor"}},menuBackgroundColor:{ref:"backgroundColor"},sideButtonBarBackgroundColor:dW,sideButtonSelectedBackgroundColor:"transparent",sideButtonBarTopPadding:{calc:"spacing * 4"},headerColumnResizeHandleColor:"none",headerBackgroundColor:{ref:"backgroundColor"},rowHoverColor:dN(.08),columnHoverColor:dN(.08),headerCellHoverBackgroundColor:dN(.05),statusBarLabelColor:dN(.63),statusBarLabelFontWeight:600,statusBarValueFontWeight:600,valueChangeValueHighlightBackgroundColor:"#00acc1",panelTitleBarIconColor:dU,advancedFilterBuilderButtonBarBorder:!1,filterPanelApplyButtonColor:{ref:"buttonTextColor"},filterPanelApplyButtonBackgroundColor:{ref:"buttonBackgroundColor"},colorPickerThumbSize:13,colorPickerTrackSize:11,colorPickerThumbBorderWidth:2,colorPickerTrackBorderRadius:2,colorPickerColorBorderRadius:2,rowDragIndicatorColor:{ref:"primaryColor"},columnDragIndicatorColor:{ref:"primaryColor"}},t={...e,primaryColor:"#3f51b5",foregroundColor:"#000D",headerTextColor:"#0008",accentColor:"#ff4081",checkboxUncheckedBorderColor:dU,checkboxIndeterminateBackgroun
14dColor:dU,toggleButtonOffBackgroundColor:dU,selectedRowBackgroundColor:"rgba(33, 150, 243, 0.3)"},i={...e,primaryColor:"#3f51b5",foregroundColor:"#fffD",headerTextColor:"#fff8",accentColor:"#bb86fc",checkboxUncheckedBorderColor:dz(.5),checkboxIndeterminateBackgroundColor:dz(.5),toggleButtonOffBackgroundColor:dz(.5),selectedRowBackgroundColor:"#bb86fc33"};return dI({feature:"styleMaterial",css:".ag-dnd-ghost,.ag-filter-toolpanel-header,.ag-filter-toolpanel-search,.ag-multi-filter-group-title-bar,.ag-panel-title-bar-title,.ag-status-bar{color:var(--ag-header-text-color);font-size:calc(var(--ag-font-size) - 1px);font-weight:600}.ag-column-drop-horizontal{background-color:color-mix(in srgb,var(--ag-background-color),var(--ag-foreground-color) 8%)}.ag-cell.ag-cell-inline-editing{background-color:var(--ag-background-color);background-image:linear-gradient(0deg,var(--ag-input-background-color),var(--ag-input-background-color));border:var(--ag-input-border)!important;border-width:1px!important;height:calc(var(--ag-row-height) + var(--ag-spacing)*3);padding:var(--ag-spacing);:where(.ag-row-last:not(.ag-row-first)) &{bottom:0}:where(.ag-has-focus) &{border:var(--ag-input-focus-border)!important;border-width:1px!important}}.ag-advanced-filter-builder-button,.ag-standard-button{text-transform:uppercase}.ag-status-bar{border:solid var(--ag-border-width) var(--ag-border-color)}.ag-list-item-hovered:after{background-color:var(--ag-primary-color)}.ag-pill-button:hover{color:var(--ag-primary-color)}.ag-filter-add-button,.ag-filter-add-button:hover{border-bottom:2px solid var(--ag-primary-color)}",params:t,modeParams:{light:t,dark:i,"dark-blue":i}})})(),ui=()=>({rowHeight:{calc:"max(iconSize, dataFontSize) + spacing * 3.75 * rowVerticalPaddingScale"},headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4.75 * headerVerticalPaddingScale"},widgetVerticalSpacing:{calc:"spacing * 1.75"},cellHorizontalPadding:{calc:"spacing * 3"},buttonHorizontalPadding:{ref:"spacing"},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 2"},fontSize:13,iconSize:18,borderRadius:0,wrapperBorderRadius:0,wrapperBorder:!1,menuBorder:!1,dialogBorder:!1,panelTitleBarBorder:!1,tabSelectedBorderWidth:0,tabSelectedUnderlineTransitionDuration:.3,sidePanelBorder:!1,sideButtonSelectedBorder:!1,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineTransitionDuration:.3,sideButtonBorder:!1,buttonBorder:!1,buttonDisabledBorder:!1,focusShadow:{spread:4,color:dN(.16)},fontFamily:[{googleFont:"Roboto"},"-apple-system","BlinkMacSystemFont","Segoe UI","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],inputHeight:{calc:"max(iconSize, fontSize) + spacing * 3"},pickerButtonBorder:{width:1,color:"transparent"},headerFontWeight:600,headerFontSize:{calc:"fontSize - 1px"},checkboxBorderWidth:2,checkboxBorderRadius:2,toggleButtonWidth:34,toggleButtonSwitchInset:1,cardShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",popupShadow:"5px 5px 10px rgba(0, 0, 0, 0.3)"}),uo=hE().withPart(hf).withPart(hx).withPart(hL).withPart(hV).withPart(h3).withPart(hZ).withPart(hy).withPart(ut).withParams(ui()),ur=(e,t,i,o,r)=>({changeKey:e,type:t,defaultValue:i,noWarn:o,cacheDefault:r}),us=ur("cellHorizontalPadding","length",16),un=ur("indentationLevel","length",0,!0,!0),ul=ur("rowGroupIndentSize","length",0),ua=ur("rowHeight","length",42),ud=ur("headerHeight","length",48),uh=ur("rowBorderWidth","border",1),uu=ur("pinnedRowBorderWidth","border",1),uc=ur("headerRowBorderWidth","border",1);function ug(e,t){for(let i of t.sort((e,t)=>e.moduleName.localeCompare(t.moduleName))){let t=i.css;t&&e.set(`module-${i.moduleName}`,t)}}var up=class extends hl{initVariables(){this.addManagedPropertyListener("rowHeight",()=>this.refreshRowHeightVariable()),this.getSizeEl(ua),this.getSizeEl(ud),this.getSizeEl(uh),this.get
14SizeEl(uu),this.refreshRowBorderWidthVariable()}getPinnedRowBorderWidth(){return this.getCSSVariablePixelValue(uu)}getRowBorderWidth(){return this.getCSSVariablePixelValue(uh)}getHeaderRowBorderWidth(){return this.getCSSVariablePixelValue(uc)}getDefaultRowHeight(){return this.getCSSVariablePixelValue(ua)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(ud)}getDefaultCellHorizontalPadding(){return this.getCSSVariablePixelValue(us)}getCellPaddingLeft(){let e=this.getDefaultCellHorizontalPadding(),t=this.getCSSVariablePixelValue(un);return e-1+this.getCSSVariablePixelValue(ul)*t}getCellPadding(){let e=this.getDefaultCellHorizontalPadding()-1;return this.getCellPaddingLeft()+e}getDefaultColumnMinWidth(){return Math.min(36,this.getDefaultRowHeight())}refreshRowHeightVariable(){let{eRootDiv:e}=this,t=e.style.getPropertyValue("--ag-line-height").trim(),i=this.gos.get("rowHeight");if(null==i||isNaN(i)||!isFinite(i))return null!==t&&e.style.setProperty("--ag-line-height",null),-1;let o=`${i}px`;return t!=o?(e.style.setProperty("--ag-line-height",o),i):""!=t?Number.parseFloat(t):-1}fireStylesChangedEvent(e){"rowBorderWidth"===e&&this.refreshRowBorderWidthVariable(),super.fireStylesChangedEvent(e)}refreshRowBorderWidthVariable(){let e=this.getCSSVariablePixelValue(uh);this.eRootDiv.style.setProperty("--ag-internal-row-border-width",`${e}px`)}postProcessThemeChange(e,t){e&&getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded")&&(t?t0(106):t0(239))}getAdditionalCss(){let e=new Map;return e.set("core",['.ag-aria-description-container{border:0;z-index:9999;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ag-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-selectable{-webkit-user-select:text;-moz-user-select:text;user-select:text}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}.ag-viewport{position:relative}.ag-spanning-container{position:absolute;top:0;z-index:1}.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important}.ag-body-viewport::-webkit-scrollbar,.ag-center-cols-viewport::-webkit-scrollbar,.ag-floating-bottom-viewport::-webkit-scrollbar,.ag-floating-top-viewport::-webkit-scrollbar,.ag-header-viewport::-webkit-scrollbar,.ag-sticky-bottom-viewport::-webkit-scrollbar,.ag-sticky-top-viewport::-webkit-scrollbar{display:none!important}.ag-body-viewport{display:flex;overflow-x:hidden;&:where(.ag-layout-normal){overflow-y:auto;-webkit-overflow-scrolling:touch}}.ag-floating-bottom-container,.ag-floating-top-container,.ag-sticky-bottom-container,.ag-sticky-top-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-body-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-center-cols-container,.ag-floating-bottom-container,.ag-floating-bottom-full-width-container,.ag-floating-top-container,.ag-full-width-container,.ag-header-container,.ag-pinned-left-cols-container,.ag-pinned-left-sticky-bottom,.ag-pinned-right-cols-container,.ag-pinned-right-sticky-bottom,.ag-sticky-bottom-container,.ag-sticky-top-container{position:relative}.ag-floating-bottom-container,.ag-floating-top-container,.ag-header-container,.ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top,.ag-sticky-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container,.ag-full-width-container,.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{pointer-events:none;position:absolute;top:0}:where(.ag-ltr) .ag-floating-bottom-full-width-container,:where(.ag-ltr) .ag-floating-top-full-width-container,:where(.ag-ltr) .ag-full-width-container,:where(.ag-ltr) .ag-sticky-bottom-full-width-container,:where(.ag-ltr) .ag-sticky-top-full-width-container{left:0}:where(.ag-rtl) .ag-floating-bottom-full-width-container,:where(.ag-rtl) .ag-floating-top-full-width-container,:where(.ag-rtl) .ag-full-width-container,:where(.ag-rtl) .ag-sticky-bottom-full-width-container,:where(.ag-rtl) .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;height:100%;overflow:hidden;width:100%}
14.ag-body{display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0;position:relative}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:flex;min-height:0;min-width:0;position:relative;&:where(.ag-scrollbar-invisible){bottom:0;position:absolute;&:where(.ag-apple-scrollbar){opacity:0;transition:opacity .4s;visibility:hidden;&:where(.ag-scrollbar-active),&:where(.ag-scrollbar-scrolling){opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{width:100%;&:where(.ag-scrollbar-invisible){left:0;right:0}}.ag-body-vertical-scroll{height:100%;&:where(.ag-scrollbar-invisible){top:0;z-index:10}}:where(.ag-ltr) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){right:0}}:where(.ag-rtl) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){left:0}}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll;&:where(.ag-scroller-corner){overflow-x:hidden}}:where(.ag-row-animation) .ag-row{transition:transform .4s,top .4s,opacity .2s;&:where(.ag-after-created){transition:transform .4s,top .4s,height .4s,opacity .2s}}:where(.ag-row-animation.ag-prevent-animation) .ag-row{transition:none!important;&:where(.ag-row.ag-after-created){transition:none!important}}:where(.ag-row-no-animation) .ag-row{transition:none}.ag-row-loading{align-items:center;display:flex}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{align-items:center;display:flex}.ag-cell{display:inline-block;height:100%;position:absolute;white-space:nowrap;&:focus-visible{box-shadow:none}}.ag-cell-value{flex:1 1 auto}.ag-cell-value:not(.ag-allow-overflow),.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-word}:where(.ag-cell) .ag-icon{display:inline-block;vertical-align:middle}.ag-floating-top{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-top:not(.ag-invisible)){border-bottom:var(--ag-pinned-row-border)}.ag-floating-bottom{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-bottom:not(.ag-invisible)){border-top:var(--ag-pinned-row-border)}.ag-sticky-bottom,.ag-sticky-top{background-color:var(--ag-data-background-color);display:flex;height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.ag-sticky-bottom{box-sizing:content-box!important;:where(.ag-pinned-left-sticky-bottom),:where(.ag-pinned-right-sticky-bottom),:where(.ag-sticky-bottom-container){border-top:var(--ag-row-border);box-sizing:border-box}}.ag-opacity-zero{opacity:0!important}.ag-cell-label-container{align-items:center;display:flex;flex-direction:row-reverse;height:100%;justify-content:space-between;width:100%}:where(.ag-right-aligned-header){.ag-cell-label-container{flex-direction:row}.ag-header-cell-text{text-align:end}}.ag-column-group-icons{display:block;:where(.ag-column-group-closed-icon),:where(.ag-column-group-opened-icon){cursor:pointer}}:where(.ag-ltr){direction:ltr;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row}}:where(.ag-rtl){direction:rtl;text-align:right;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row-reverse}.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{display:block}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(180deg)}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(-180deg)}}:where(.ag-ltr) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}:where(.ag-rtl) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}:where(.ag-ltr) .ag-row-group-leaf-indent{margin-left:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}:where(.ag-rtl) .ag-row-group-leaf-indent{margin-right:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-value-change-delta{padding:0 2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row,.ag-spanned-row{color:var(--ag-cell-text-color);font-family:var(--ag-cell-font-family);font-size:var(--ag-data-font-size);white-space:nowrap;--ag-internal-content-line-height:calc(min(var(--ag-row-height), var(--ag-line-height, 1000px)) - var(--ag-internal-row-border-width, 1px) - 2px)}.ag-row{background-color:var(--ag-data-background-color);border-bottom:var(--ag-row-border);height:var(--ag-row-height);width:100%;&.ag-row-editing-invalid{background-color:var(--ag-full-row-edit-invalid-background-color)}}:where(.ag-body-vertical-content-no-gap>div>div>div,.ag-body-vertical-content-no-gap>div>div>div>div)>.ag-row-last{border-bottom-color:transparent}.ag-group-contracted,.ag-group-expanded{cursor:pointer}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{border:1px solid transparent;line-height:var(--ag-internal-content-line-height);-webkit-font-smoothing:subpixel-antialiased}:where(.ag-ltr) .ag-cell{border-right:var(--ag-column-border)}:where(.ag-rtl) .ag-cell{border-left:var(--ag-column-border)}.ag-spanned-cell-wrapper{background-color:var(--ag-data-background-color);position:absolute}.ag-spanned-cell-wrapper>.ag-spanned-cell{display:block;position:relative}:where(.ag-ltr) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-right-color:transparent}:where(.ag-rtl) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-left-color:transparent}.ag-cell-wrapper{align-items:center;display:flex;>
14:where(:not(.ag-cell-value,.ag-group-value)){align-items:center;display:flex;height:var(--ag-internal-content-line-height)}&:where(.ag-row-group){align-items:flex-start}:where(.ag-full-width-row) &:where(.ag-row-group){align-items:center;height:100%}}:where(.ag-ltr) .ag-cell-wrapper{padding-left:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-rtl) .ag-cell-wrapper{padding-right:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-cell-wrap-text:not(.ag-cell-auto-height)) .ag-cell-wrapper{align-items:normal;height:100%;:where(.ag-cell-value){height:100%}}:where(.ag-ltr) .ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-row>.ag-cell-wrapper.ag-row-group{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-cell-range-single-cell,.ag-cell-range-single-cell.ag-cell-range-handle,.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-context-menu-open .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}.ag-full-width-row.ag-row-focus:focus{box-shadow:none}:where(.ag-ltr) .ag-group-contracted,:where(.ag-ltr) .ag-group-expanded,:where(.ag-ltr) .ag-row-drag,:where(.ag-ltr) .ag-selection-checkbox{margin-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-group-contracted,:where(.ag-rtl) .ag-group-expanded,:where(.ag-rtl) .ag-row-drag,:where(.ag-rtl) .ag-selection-checkbox{margin-left:var(--ag-cell-widget-spacing)}.ag-drag-handle-disabled{opacity:.35;pointer-events:none}:where(.ag-ltr) .ag-group-child-count{margin-left:3px}:where(.ag-rtl) .ag-group-child-count{margin-right:3px}.ag-row-highlight-above:after,.ag-row-highlight-below:after,.ag-row-highlight-inside:after{background-color:var(--ag-row-drag-indicator-color);border-radius:calc(var(--ag-row-drag-indicator-width)/2);content:"";height:var(--ag-row-drag-indicator-width);pointer-events:none;position:absolute;width:calc(100% - 1px)}:where(.ag-ltr) .ag-row-highlight-above:after,:where(.ag-ltr) .ag-row-highlight-below:after,:where(.ag-ltr) .ag-row-highlight-inside:after{left:1px}:where(.ag-rtl) .ag-row-highlight-above:after,:where(.ag-rtl) .ag-row-highlight-below:after,:where(.ag-rtl) .ag-row-highlight-inside:after{right:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-highlight-indent:after{display:block;width:auto}:where(.ag-ltr) .ag-row-highlight-indent:after{left:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size));right:1px}:where(.ag-rtl) .ag-row-highlight-indent:after{left:1px;right:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size))}.ag-row-highlight-inside:after{background-color:var(--ag-selected-row-background-color);border:1px solid var(--ag-range-selection-border-color);display:block;height:auto;inset:0;width:auto}.ag-body,.ag-floating-bottom,.ag-floating-top{background-color:var(--ag-data-background-color)}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected:before{background-color:var(--ag-selected-row-background-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-hover:not(.ag-full-width-row):before{background-color:var(--ag-row-hover-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-row.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-header-range-highlight{background-color:var(--ag-range-header-highlight-color)}.ag-right-aligned-cell{font-variant-numeric:tabular-nums}:where(.ag-ltr) .ag-right-aligned-cell{text-align:right}:where(.ag-rtl) .ag-right-aligned-cell{text-align:left}.ag-right-aligned-cell .ag-cell-value,.ag-right-aligned-cell .ag-group-value{margin-left:auto}:where(.ag-ltr) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-ltr) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}:where(.ag-rtl) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-rtl) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-details-row{background-color:var(--ag-data-background-color);padding:calc(var(--ag-spacing)*3.75)}.ag-layout-auto-height,.ag-layout-print{.ag-center-cols-container,.ag-center-cols-viewport{min-height:150px}}.ag-overlay-exporting-wrapper,.ag-overlay-loading-wrapper,.ag-overlay-modal-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite;background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%}:where(.ag-ltr) .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}:where(.ag-rtl) .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}@keyframes ag-skeleton-loading{0%{background-color:var(--ag-row-loading-skeleton-effect-color)}50%{background-color:color-mix(in srgb,transparent,var(--ag-row-loading-skeleton-effect-color) 40%)}to{background-color:var(--ag-row-loading-skeleton-effect-color)}}.ag-loading{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-ltr) .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);color:var(--ag-header-text-color);display:flex;font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);
14font-weight:var(--ag-header-font-weight);overflow:hidden;white-space:nowrap;width:100%}.ag-header-row{height:var(--ag-header-height);position:absolute}.ag-floating-filter-button-button,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,:where(.ag-header-cell-sortable) .ag-header-cell-label,:where(.ag-header-group-cell-selectable) .ag-header-cell-comp-wrapper{cursor:pointer}:where(.ag-ltr) .ag-header-expand-icon{margin-left:4px}:where(.ag-rtl) .ag-header-expand-icon{margin-right:4px}.ag-header-row:where(:not(:first-child)){:where(.ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden)),:where(.ag-header-group-cell.ag-header-group-cell-with-group){border-top:var(--ag-header-row-border)}}.ag-header-row:where(:not(.ag-header-row-column-group)){overflow:hidden}:where(.ag-header.ag-header-allow-overflow) .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;overflow:hidden}.ag-header-group-cell{contain:paint;display:flex}.ag-header-cell,.ag-header-group-cell{align-items:center;gap:var(--ag-cell-widget-spacing);height:100%;padding:0 var(--ag-cell-horizontal-padding);position:absolute}@property --ag-internal-moving-color{syntax:"<color>";inherits:false;initial-value:transparent}@property --ag-internal-hover-color{syntax:"<color>";inherits:false;initial-value:transparent}.ag-header-cell:where(:not(.ag-floating-filter)):before,.ag-header-group-cell:before{background-image:linear-gradient(var(--ag-internal-hover-color),var(--ag-internal-hover-color)),linear-gradient(var(--ag-internal-moving-color),var(--ag-internal-moving-color));content:"";inset:0;position:absolute;--ag-internal-moving-color:transparent;--ag-internal-hover-color:transparent;transition:--ag-internal-moving-color var(--ag-header-cell-background-transition-duration),--ag-internal-hover-color var(--ag-header-cell-background-transition-duration)}.ag-header-cell:where(:not(.ag-floating-filter)):where(:hover):before,.ag-header-group-cell:where(:hover):before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}.ag-header-cell:where(:not(.ag-floating-filter)):where(.ag-header-cell-moving):before,.ag-header-group-cell:where(.ag-header-cell-moving):before{--ag-internal-moving-color:var(--ag-header-cell-moving-background-color);--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}:where(.ag-header-cell:not(.ag-floating-filter)>*,.ag-header-group-cell>*){position:relative;z-index:1}.ag-header-cell-menu-button:where(:not(.ag-header-menu-always-show)){opacity:0;transition:opacity .2s}.ag-header-cell-filter-button,:where(.ag-header-cell.ag-header-active) .ag-header-cell-menu-button{opacity:1}.ag-header-cell-label,.ag-header-group-cell-label{align-items:center;align-self:stretch;display:flex;flex:1 1 auto;overflow:hidden;padding:5px 0}:where(.ag-ltr) .ag-sort-indicator-icon{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-sort-indicator-icon{padding-right:var(--ag-spacing)}.ag-header-cell-label{text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{flex:none;max-width:100%;overflow:visible;position:sticky}:where(.ag-ltr) .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell-text,.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{word-break:break-word}.ag-header-cell-comp-wrapper{width:100%}:where(.ag-header-group-cell) .ag-header-cell-comp-wrapper{display:flex}:where(.ag-header-cell:not(.ag-header-cell-auto-height)) .ag-header-cell-comp-wrapper{align-items:center;display:flex;height:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-header-cell-comp-wrapper-limited-height>*{overflow:hidden}:where(.ag-right-aligned-header) .ag-header-cell-label{flex-direction:row-reverse}:where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{margin-right:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{margin-left:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{margin-left:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{margin-right:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}
14.ag-header-cell:after,.ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{content:"";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1}:where(.ag-ltr) .ag-header-cell:after,:where(.ag-ltr) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-right:var(--ag-header-column-border);right:0}:where(.ag-rtl) .ag-header-cell:after,:where(.ag-rtl) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-left:var(--ag-header-column-border);left:0}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-column-drag-indicator-color);border-radius:calc(var(--ag-column-drag-indicator-width)/2);content:"";height:100%;position:absolute;top:0;width:var(--ag-column-drag-indicator-width)}:where(.ag-ltr) .ag-header-highlight-before:after{left:0}:where(.ag-rtl) .ag-header-highlight-before:after{right:0}:where(.ag-ltr) .ag-header-highlight-after:after{right:0;:where(.ag-pinned-left-header) &{right:1px}}:where(.ag-rtl) .ag-header-highlight-after:after{left:0;:where(.ag-pinned-left-header) &{left:1px}}.ag-header-cell-resize{align-items:center;cursor:ew-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2}:where(.ag-ltr) .ag-header-cell-resize{right:-3px}:where(.ag-rtl) .ag-header-cell-resize{left:-3px}.ag-header-cell-resize:after{background-color:var(--ag-header-column-resize-handle-color);content:"";height:var(--ag-header-column-resize-handle-height);position:absolute;top:calc(50% - var(--ag-header-column-resize-handle-height)*.5);width:var(--ag-header-column-resize-handle-width);z-index:1}:where(.ag-ltr) .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}:where(.ag-rtl) .ag-header-cell-resize:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}:where(.ag-header-cell.ag-header-span-height) .ag-header-cell-resize:after{height:calc(100% - var(--ag-spacing)*4);top:calc(var(--ag-spacing)*2)}.ag-header-group-cell-no-group:where(.ag-header-span-height){display:none}.ag-sort-indicator-container{display:flex;gap:var(--ag-spacing)}.ag-layout-print{&.ag-body{display:block;height:unset}&.ag-root-wrapper{container-type:normal;display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}&.ag-force-vertical-scroll{overflow-y:visible!important}}@media print{.ag-root-wrapper.ag-layout-print{container-type:normal;display:table;.ag-body-horizontal-scroll-viewport,.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper-body,.ag-virtual-list-viewport{display:block!important;height:auto!important;overflow:hidden!important}.ag-cell,.ag-row{-moz-column-break-inside:avoid;break-inside:avoid}}}ag-grid,ag-grid-angular{display:block}.ag-root-wrapper{border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);container-type:inline-size;display:flex;flex-direction:column;overflow:hidden;position:relative;&.ag-layout-normal{height:100%}}.ag-root-wrapper-body{display:flex;flex-direction:row;&.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}}.ag-root{display:flex;flex-direction:column;position:relative;&.ag-layout-auto-height,&.ag-layout-normal{flex:1 1 auto;overflow:hidden;width:0}&.ag-layout-normal{height:100%}}.ag-drag-handle{color:var(--ag-drag-handle-color);cursor:grab;:where(.ag-icon){color:var(--ag-drag-handle-color)}}.ag-chart-menu-icon,.ag-chart-settings-next,.ag-chart-settings-prev,.ag-column-group-icons,.ag-column-select-header-icon,.ag-filter-toolpanel-expand,.ag-floating-filter-button-button,.ag-group-title-bar-icon,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,.ag-panel-title-bar-button-icon,.ag-set-filter-group-icons,:where(.ag-group-contracted) .ag-icon,:where(.ag-group-expanded) .ag-icon{background-color:var(--ag-icon-button-background-color);border-radius:var(--ag-icon-button-border-radius);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-background-color);color:var(--ag-icon-button-color)}.ag-chart-menu-icon:hover,.ag-chart-settings-next:hover,.ag-chart-settings-prev:hover,.ag-column-group-icons:hover,.ag-column-select-header-icon:hover,.ag-filter-toolpanel-expand:hover,.ag-floating-filter-button-button:hover,.ag-group-title-bar-icon:hover,.ag-header-cell-filter-button:hover,.ag-header-cell-menu-button:hover,.ag-header-expand-icon:hover,.ag-panel-title-bar-button-icon:hover,.ag-panel-title-bar-button:hover,.ag-set-filter-group-icons:hover,:where(.ag-group-contracted) .ag-icon:hover,:where(.ag-group-expanded) .ag-icon:hover{background-color:var(--ag-icon-button-hover-background-color);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-hover-background-color);color:var(--ag-icon-button-hover-color)}:where(.ag-filter-active),:where(.ag-filter-toolpanel-group-instance-header-icon),:where(.ag-filter-toolpanel-instance-header-icon){position:relative}:where(.ag-filter-active):after,:where(.ag-filter-toolpanel-group-instance-header-icon):after,:where(.ag-filter-toolpanel-instance-header-icon):after{background-color:var(--ag-icon-button-active-indicator-color);border-radius:50%;content:"";height:6px;position:absolute;top:-1px;width:6px}:where(.ag-ltr) :where(.ag-filter-active):after,:where(.ag-ltr) :where(.ag-filter-toolpanel-group-instance-header-icon):after,:where(.ag-ltr) :where(.ag-filter-toolpanel-instance-header-icon):after{right:-1px}:where(.ag-rtl) :where(.ag-filter-active):after,:where(.ag-rtl) :where(.ag-filter-toolpanel-group-instance-header-icon):after,:where(.ag-rtl) :where(.ag-filter-toolpanel-instance-header-icon):after{left:-1px}.ag-filter-active{background-image:linear-gradient(var(--ag-icon-button-active-background-color),var(--ag-icon-button-active-background-color));border-radius:1px;outline:solid var(--ag-icon-button-background-spread) var(--ag-icon-button-active-background-color);:where(.ag-icon-filter){clip-path:path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");color:var(--ag-icon-button-active-color)}}']),ug(e,Array.from(new Set(tA))),e}getDefaultTheme(){return h5}varError(e,t){tX(9,{variable:{cssName:e,defaultValue:t}})}themeError(e){t0(240,{theme:e})}shadowRootError(){t0(293)}},um=class extends tu{constructor(){super(...arguments),this.beanName="eventSvc",this.eventServiceType="global",this.globalSvc=new T}addListener(e,t,i){this.globalSvc.addEventListener(e,t,i)}removeListener(e,t,i){this.globalSvc.removeEventListener(e,t,i)}addGlobalListener(e,t=!1){this.globalSvc.addGlobalListener(e,t)}removeGlobalListener(e,t=!1){this.globalSvc.removeGlobalListener(e,t)}
14dispatchEvent(e){this.globalSvc.dispatchEvent(this.gos.addCommon(e))}dispatchEventOnce(e){this.globalSvc.dispatchEventOnce(this.gos.addCommon(e))}},uf=class extends um{postConstruct(){let{globalListener:e,globalSyncListener:t}=this.beans;e&&this.addGlobalListener(e,!0),t&&this.addGlobalListener(t,!1)}};function uC(e,t,i){let o=e.visibleCols.headerGroupRowCount;if(i>=o)return{column:t,headerRowIndex:i};let r=t.getParent();for(;r&&r.getProvidedColumnGroup().getLevel()>i;)r=r.getParent();let s=t.isSpanHeaderHeight();return!r||s&&r.isPadding()?{column:t,headerRowIndex:o}:{column:r,headerRowIndex:r.getProvidedColumnGroup().getLevel()}}var uv=class extends tc{constructor(){super(...arguments),this.beanName="headerNavigation",this.currentHeaderRowWithoutSpan=-1}postConstruct(){let e=this.beans;e.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl});let t=N(e);this.addManagedElementListeners(t,{mousedown:()=>{this.currentHeaderRowWithoutSpan=-1}})}getHeaderPositionForColumn(e,t){let i,{colModel:o,colGroupSvc:r,ctrlsSvc:s}=this.beans;if("string"==typeof e?(i=o.getCol(e))||(i=r?.getColumnGroup(e)??null):i=e,!i)return null;let n=s.getHeaderRowContainerCtrl(),l="filter"===v(n?.getAllCtrls()||[]).type,a=sP(this.beans)-1,d=-1,h=i;for(;h;)d++,h=h.getParent();let u=d;return t&&l&&u===a-1&&u++,-1===u?null:{headerRowIndex:u,column:i}}navigateVertically(e,t){let{focusSvc:i,visibleCols:o}=this.beans,{focusedHeader:r}=i;if(!r)return!1;let{headerRowIndex:s}=r,n=r.column,l=sP(this.beans),a=this.getHeaderRowType(s),d=o.headerGroupRowCount,{headerRowIndex:h,column:u,headerRowIndexWithoutSpan:c}="UP"===e?function(e,t,i){let o=i-1;if("filter"!==e){let e=t instanceof i1&&t.isSpanHeaderHeight(),i=t.getParent();for(;i&&(i.getProvidedColumnGroup().getLevel()>o||e&&i.isPadding());)i=i.getParent();if(i)if(e)return{column:i,headerRowIndex:i.getProvidedColumnGroup().getLevel(),headerRowIndexWithoutSpan:o};else return{column:i,headerRowIndex:o,headerRowIndexWithoutSpan:o}}return{column:t,headerRowIndex:o,headerRowIndexWithoutSpan:o}}(a,n,s):function(e,t,i){let o=t+1,r={column:e,headerRowIndex:o,headerRowIndexWithoutSpan:o};if(e instanceof oq){if(o>=i)return{column:e.getDisplayedLeafColumns()[0],headerRowIndex:i,headerRowIndexWithoutSpan:o};let t=e.getDisplayedChildren()[0];if(t instanceof oq&&t.isPadding()){let e=t.getDisplayedLeafColumns()[0];e.isSpanHeaderHeight()&&(t=e)}r.column=t,t instanceof i1&&t.isSpanHeaderHeight()&&(r.headerRowIndex=i,r.headerRowIndexWithoutSpan=o)}return r}(n,s,d),g=!1;return h<0&&(h=0,u=n,g=!0),h>=l?(h=-1,this.currentHeaderRowWithoutSpan=-1):void 0!==c&&(this.currentHeaderRowWithoutSpan=c),(!!g||!!u)&&i.focusHeaderPosition({headerPosition:{headerRowIndex:h,column:u},allowUserOverride:!0,event:t})}navigateHorizontally(e,t=!1,i){let o,r,{focusSvc:s,gos:n}=this.beans,l={...s.focusedHeader};-1!==this.currentHeaderRowWithoutSpan?l.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=l.headerRowIndex,r="LEFT"===e!==n.get("enableRtl")?"Before":"After",o=this.findHeader(l,r);let a=n.getCallback("tabToNextHeader");if(t&&a){let e=s.focusHeaderPositionFromUserFunc({userFunc:a,headerPosition:o,direction:r});if(e){let{headerRowIndex:e}=s.focusedHeader||{};null!=e&&e!=l.headerRowIndex&&(this.currentHeaderRowWithoutSpan=e)}return e}return o||!t?s.focusHeaderPosition({headerPosition:o,direction:r,fromTab:t,allowUserOverride:!0,event:i}):this.focusNextHeaderRow(l,r,i)}focusNextHeaderRow(e,t,i){let o,r=this.beans,s=e.headerRowIndex,n=null,l=sP(r),a=this.beans.visibleCols.allCols;if("Before"===t){if(s<=0)return!1;n=v(a),o=s-1,this.currentHeaderRowWithoutSpan-=1}else n=a[0],o=s+1,this.currentHeaderRowWithoutSpan<l?this.currentHeaderRowWithoutSpan+=1:this.currentHeaderRowWithoutSpan=-1;let{column:d,headerRowIndex:h}=uC(this.beans,n,o);return h>=l&&(h=-1),r.focusSvc.focusHeaderPosition({headerPosition:{column:d,headerRowIndex:h},direction:t,fromTab:!0,allowUserOverride:!0,event:i})}scrollToColumn(e,t="After"){let i;if(!e.getPinned()){if(o$(e)){let o=e.getDisplayedLeafColumns();i="Before"===t?v(o):o[0]}else i=e;this.gridBodyCon.scrollFeature.ensureColumnVisible(i)}}
14findHeader(e,t){let{colGroupSvc:i,visibleCols:o}=this.beans,r=e.column;if(r instanceof oq){let e=r.getDisplayedLeafColumns();r="Before"===t?e[0]:e[e.length-1]}let s="Before"===t?o.getColBefore(r):o.getColAfter(r);if(!s)return;let n=o.headerGroupRowCount;if(e.headerRowIndex>=n)return{headerRowIndex:e.headerRowIndex,column:s};let l=i?.getColGroupAtLevel(s,e.headerRowIndex);return l?l.isPadding()&&s.isSpanHeaderHeight()?{headerRowIndex:o.headerGroupRowCount,column:s}:{headerRowIndex:e.headerRowIndex,column:l??s}:{headerRowIndex:s instanceof i1&&s.isSpanHeaderHeight()?o.headerGroupRowCount:e.headerRowIndex,column:s}}getHeaderRowType(e){let t=this.beans.ctrlsSvc.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)}},uw=class extends tc{constructor(){super(...arguments),this.beanName="focusSvc",this.focusFallbackTimeout=null,this.needsFocusRestored=!1}wireBeans(e){this.colModel=e.colModel,this.visibleCols=e.visibleCols,this.rowRenderer=e.rowRenderer,this.navigation=e.navigation,this.filterManager=e.filterManager,this.overlays=e.overlays}postConstruct(){let e=this.clearFocusedCell.bind(this);this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:this.onColumnEverythingChanged.bind(this),columnGroupOpened:e,columnRowGroupChanged:e}),this.addDestroyFunc(function(e){let t=N(e);return r3>0||(t.addEventListener("keydown",r2),t.addEventListener("mousedown",r2)),r3++,()=>{--r3>0||(t.removeEventListener("keydown",r2),t.removeEventListener("mousedown",r2))}}(this.beans))}attemptToRecoverFocus(){this.needsFocusRestored=!0,null!=this.focusFallbackTimeout&&clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=window.setTimeout(this.setFocusRecovered.bind(this),100)}setFocusRecovered(){this.needsFocusRestored=!1,null!=this.focusFallbackTimeout&&(clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=null)}shouldTakeFocus(){return this.gos.get("suppressFocusAfterRefresh")?(this.setFocusRecovered(),!1):this.needsFocusRestored?(this.setFocusRecovered(),!0):this.doesRowOrCellHaveBrowserFocus()}onColumnEverythingChanged(){if(!this.focusedCell)return;let e=this.focusedCell.column,t=this.colModel.getCol(e.getId());e!==t&&this.clearFocusedCell()}getFocusCellToUseAfterRefresh(){let{gos:e,focusedCell:t}=this;return e.get("suppressFocusAfterRefresh")||e.get("suppressCellFocus")||!t||!this.doesRowOrCellHaveBrowserFocus()?null:t}getFocusHeaderToUseAfterRefresh(){return!this.gos.get("suppressFocusAfterRefresh")&&this.focusedHeader&&this.isDomDataPresentInHierarchy(O(this.beans),sZ)?this.focusedHeader:null}doesRowOrCellHaveBrowserFocus(){let e=O(this.beans);return!!this.isDomDataPresentInHierarchy(e,lg,!0)||this.isDomDataPresentInHierarchy(e,lm,!0)}isDomDataPresentInHierarchy(e,t,i){let o=e;for(;o;){let e=il(this.gos,o,t);if(e){if(e.destroyed&&i)return this.attemptToRecoverFocus(),!1;return!0}o=o.parentNode}return!1}getFocusedCell(){return this.focusedCell}getFocusEventParams(e){let{rowIndex:t,rowPinned:i,column:o}=e,r={rowIndex:t,rowPinned:i,column:o,isFullWidthCell:!1},s=this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:i});return s&&(r.isFullWidthCell=s.isFullWidth()),r}clearFocusedCell(){if(null==this.focusedCell)return;let e=this.getFocusEventParams(this.focusedCell);this.focusedCell=null,this.eventSvc.dispatchEvent({type:"cellFocusCleared",...e})}setFocusedCell(e){this.setFocusRecovered();let{column:t,rowIndex:i,rowPinned:o,forceBrowserFocus:r=!1,preventScrollOnBrowserFocus:s=!1,sourceEvent:n}=e,l=this.colModel.getCol(t);if(!l){this.focusedCell=null;return}this.focusedCell={rowIndex:i,rowPinned:x(o),column:l};let a=this.getFocusEventParams(this.focusedCell);this.eventSvc.dispatchEvent({type:"cellFocused",...a,...this.previousCellFocusParams&&{previousParams:this.previousCellFocusParams},forceBrowserFocus:r,preventScrollOnBrowserFocus:s,sourceEvent:n}),this.previousCellFocusParams=a}isCellFocused(e){return null!=this.focusedCell&&sd(e,this.focusedCell)}isHeaderWrapperFocused(e){if(null==this.focusedHeader)return!1;let{column:t,rowCtrl:{rowIndex:i,pinned:o}}=e,{column:r,headerRowIndex:s}=this.focusedHeader;return t===r&&i===s&&o==r.getPinned()}focusHeaderPosition(e){if(this.setFocusRecovered(),sS(this.beans))return!1;let{direction:t,fromTab:i,allowUserOverride:o,event:r,fromCell:s,rowWithoutSpanValue:n,scroll:l=!0}=e,{headerPosition:a}=e;if(s&&this.filterManager?.isAdvFilterHeaderActive())return this.focusAdvancedFilter(a);
14if(o){let e=this.focusedHeader,o=sP(this.beans);if(i){let i=this.gos.getCallback("tabToNextHeader");i&&(a=this.getHeaderPositionFromUserFunc({userFunc:i,direction:t,currentPosition:e,headerPosition:a,headerRowCount:o}))}else{let t=this.gos.getCallback("navigateToNextHeader");t&&r&&(a=t({key:r.key,previousHeaderPosition:e,nextHeaderPosition:a,headerRowCount:o,event:r}))}}return!!a&&this.focusProvidedHeaderPosition({headerPosition:a,direction:t,event:r,fromCell:s,rowWithoutSpanValue:n,scroll:l})}focusHeaderPositionFromUserFunc(e){if(sS(this.beans))return!1;let{userFunc:t,headerPosition:i,direction:o,event:r}=e,s=this.focusedHeader,n=sP(this.beans),l=this.getHeaderPositionFromUserFunc({userFunc:t,direction:o,currentPosition:s,headerPosition:i,headerRowCount:n});return!!l&&this.focusProvidedHeaderPosition({headerPosition:l,direction:o,event:r})}getHeaderPositionFromUserFunc(e){let{userFunc:t,direction:i,currentPosition:o,headerPosition:r,headerRowCount:s}=e,n=t({backwards:"Before"===i,previousHeaderPosition:o,nextHeaderPosition:r,headerRowCount:s});return!0===n?o:!1===n?null:n}focusProvidedHeaderPosition(e){var t,i;let{headerPosition:o,direction:r,fromCell:s,rowWithoutSpanValue:n,event:l,scroll:a=!0}=e,{column:d,headerRowIndex:h}=o,{filterManager:u,ctrlsSvc:c,headerNavigation:g}=this.beans;if(this.focusedHeader&&(t=e.headerPosition,i=this.focusedHeader,t.headerRowIndex===i.headerRowIndex&&t.column===i.column))return!1;if(-1===h)return u?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(o):this.focusGridView({column:d,event:l});a&&g?.scrollToColumn(d,r);let p=c.getHeaderRowContainerCtrl(d.getPinned()),m=p?.focusHeader(o.headerRowIndex,d,l)||!1;return g&&m&&(null!=n||s)&&(g.currentHeaderRowWithoutSpan=n??-1),m}focusFirstHeader(){if(this.overlays?.exclusive&&this.focusOverlay())return!0;let e=this.visibleCols.allCols[0];if(!e)return!1;let t=uC(this.beans,e,0);return this.focusHeaderPosition({headerPosition:t,rowWithoutSpanValue:0})}focusLastHeader(e){if(this.overlays?.exclusive&&this.focusOverlay(!0))return!0;let t=sP(this.beans)-1,i=v(this.visibleCols.allCols);return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:i},rowWithoutSpanValue:-1,event:e})}focusPreviousFromFirstCell(e){return this.filterManager?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(e)}isAnyCellFocused(){return!!this.focusedCell}isRowFocused(e,t){return null!=this.focusedCell&&this.focusedCell.rowIndex===e&&this.focusedCell.rowPinned===x(t)}focusOverlay(e){let t=this.overlays?.isVisible()&&this.overlays.eWrapper?.getGui();return!!t&&r5(t,e)}focusGridView(e){let{backwards:t=!1,canFocusOverlay:i=!0,event:o}=e;if(this.overlays?.exclusive)return i&&this.focusOverlay(t);if(sR(this.beans))return t&&!sS(this.beans)?this.focusLastHeader():!!(i&&this.focusOverlay(t))||!t&&sE(this.beans,t);let r=t?sg(this.beans):sc(this.beans);if(r){let i=e.column??this.focusedHeader?.column,{rowIndex:s,rowPinned:n}=r,l=sp(this.beans,r);if(!i||!l||null==s)return!1;if(i.isSuppressNavigable(l)){let e,t=this.gos.get("enableRtl");return e=o&&o.key!==oK.TAB?o.key:t?oK.LEFT:oK.RIGHT,this.beans.navigation?.navigateToNextCell(null,e,{rowIndex:s,column:i,rowPinned:n||null},!0),!0}if(this.navigation?.ensureCellVisible({rowIndex:s,column:i,rowPinned:n}),t){let e=this.rowRenderer.getRowByPosition(r);if(e?.isFullWidth()&&this.navigation?.tryToFocusFullWidthRow(r,t))return!0}return this.setFocusedCell({rowIndex:s,column:i,rowPinned:x(n),forceBrowserFocus:!0}),this.beans.rangeSvc?.setRangeToCell({rowIndex:s,rowPinned:n,column:i}),!0}return!!(i&&this.focusOverlay(t)||t&&this.focusLastHeader())}focusAdvancedFilter(e){return this.advFilterFocusColumn=e?.column,this.beans.advancedFilter?.getCtrl().focusHeaderComp()??!1}focusNextFromAdvancedFilter(e,t){let i=(t?void 0:this.advFilterFocusColumn)??this.visibleCols.allCols?.[0];return e?this.focusHeaderPosition({headerPosition:{column:i,headerRowIndex:sP(this.beans)-1}}):this.focusGridView({column:i})}clearAdvancedFilterColumn(){this.advFilterFocusColumn=void 0}},ub=class extends tc{constructor(){super(...arguments),this.beanName="scrollVisibleSvc"}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colAnimation=e.colAnimation}postConstruct(){let{gos:e}=this;this.horizontalScrollShowing=!0===e.get("alwaysShowHorizontalScroll"),this.verticalScrollShowing=!0===e.get("alwaysShowVerticalScroll"),this.get
14ScrollbarWidth();let t=this.updateScrollVisible.bind(this);this.addManagedEventListeners({displayedColumnsChanged:t,displayedColumnsWidthChanged:t,newColumnsLoaded:t})}updateScrollVisible(){let{colAnimation:e}=this;e?.isActive()?e.executeLaterVMTurn(()=>{e.executeLaterVMTurn(()=>this.updateScrollVisibleImpl())}):this.updateScrollVisibleImpl()}updateScrollVisibleImpl(){let e=this.ctrlsSvc.get("center");if(!e||this.colAnimation?.isActive())return;let t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.verticalScrollShowing};this.setScrollsVisible(t),this.updateScrollGap()}updateScrollGap(){let e=this.ctrlsSvc.get("center"),t=e.hasHorizontalScrollGap(),i=e.hasVerticalScrollGap();(this.horizontalScrollGap!==t||this.verticalScrollGap!==i)&&(this.horizontalScrollGap=t,this.verticalScrollGap=i,this.eventSvc.dispatchEvent({type:"scrollGapChanged"}))}setScrollsVisible(e){(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing)&&(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventSvc.dispatchEvent({type:"scrollVisibilityChanged"}))}getScrollbarWidth(){if(null==this.scrollbarWidth){let e=this.gos.get("scrollbarWidth"),t="number"==typeof e&&e>=0?e:rJ();null!=t&&(this.scrollbarWidth=t,this.eventSvc.dispatchEvent({type:"scrollbarWidthChanged"}))}return this.scrollbarWidth}},uy=class extends tc{constructor(){super(...arguments),this.beanName="gridDestroySvc",this.destroyCalled=!1}destroy(){if(this.destroyCalled)return;let{stateSvc:e,ctrlsSvc:t,context:i}=this.beans;this.eventSvc.dispatchEvent({type:"gridPreDestroyed",state:e?.getState()??{}}),this.destroyCalled=!0,t.get("gridCtrl")?.destroyGridUi(),i.destroy(),super.destroy()}},uS=["columnEverythingChanged","newColumnsLoaded","columnPivotModeChanged","pivotMaxColumnsExceeded","columnRowGroupChanged","expandOrCollapseAll","columnPivotChanged","gridColumnsChanged","columnValueChanged","columnMoved","columnVisible","columnPinned","columnGroupOpened","columnResized","displayedColumnsChanged","virtualColumnsChanged","columnHeaderMouseOver","columnHeaderMouseLeave","columnHeaderClicked","columnHeaderContextMenu","asyncTransactionsFlushed","rowGroupOpened","rowDataUpdated","pinnedRowDataChanged","pinnedRowsChanged","rangeSelectionChanged","cellSelectionChanged","chartCreated","chartRangeSelectionChanged","chartOptionsChanged","chartDestroyed","toolPanelVisibleChanged","toolPanelSizeChanged","modelUpdated","cutStart","cutEnd","pasteStart","pasteEnd","fillStart","fillEnd","cellSelectionDeleteStart","cellSelectionDeleteEnd","rangeDeleteStart","rangeDeleteEnd","undoStarted","undoEnded","redoStarted","redoEnded","cellClicked","cellDoubleClicked","cellMouseDown","cellContextMenu","cellValueChanged","cellEditRequest","rowValueChanged","headerFocused","cellFocused","rowSelected","selectionChanged","tooltipShow","tooltipHide","cellKeyDown","cellMouseOver","cellMouseOut","filterChanged","filterModified","filterUiChanged","filterOpened","floatingFilterUiChanged","advancedFilterBuilderVisibleChanged","sortChanged","virtualRowRemoved","rowClicked","rowDoubleClicked","gridReady","gridPreDestroyed","gridSizeChanged","viewportChanged","firstDataRendered","dragStarted","dragStopped","dragCancelled","rowEditingStarted","rowEditingStopped","cellEditingStarted","cellEditingStopped","bodyScroll","bodyScrollEnd","paginationChanged","componentStateChanged","storeRefreshed","stateUpdated","columnMenuVisibleChanged","contextMenuVisibleChanged","rowDragEnter","rowDragMove","rowDragLeave","rowDragEnd","rowDragCancel","findChanged","rowResizeStarted","rowResizeEnded","columnsReset","bulkEditingStarted","bulkEditingStopped","batchEditingStarted","batchEditingStopped"],uR=["scrollbarWidthChanged","keyShortcutChangedCellStart","keyShortcutChangedCellEnd","pinnedHeightChanged","cellFocusCleared","fullWidthRowFocused","checkboxChanged","heightScaleChanged","suppressMovableColumns","suppressMenuHide","suppressFieldDotNotation","columnPanelItemDragStart","columnPanelItemDragEnd","bodyHeightChanged","columnContainerWidthChanged","displayedColumnsWidthChanged","scrollVisibilityChanged","scrollGapChanged","columnHoverChanged","flashCells","rowDragVisibilityChanged","paginationPixelOff
14setChanged","displayedRowsChanged","leftPinnedWidthChanged","rightPinnedWidthChanged","rowContainerHeightChanged","headerHeightChanged","columnGroupHeaderHeightChanged","columnHeaderHeightChanged","stylesChanged","storeUpdated","filterDestroyed","filterHandlerDestroyed","rowDataUpdateStarted","rowCountReady","advancedFilterEnabledChanged","dataTypesInferred","fieldValueChanged","fieldPickerValueSelected","richSelectListRowSelected","sideBarUpdated","alignedGridScroll","alignedGridColumn","gridOptionsChanged","chartTitleEdit","recalculateRowBounds","stickyTopOffsetChanged","overlayExclusiveChanged","rowNodeDataChanged","cellEditValuesChanged","filterSwitched","filterClosed","headerRowsChanged","rowExpansionStateChanged","showRowGroupColsSetChanged"],uE=()=>[...uS,...uR],ux=new Set(["gridPreDestroyed","fillStart","pasteStart"]),uF=uS.reduce((e,t)=>(e[t]=i_(t),e),{}),uP={agSetColumnFilter:"SetFilter",agSetColumnFloatingFilter:"SetFilter",agMultiColumnFilter:"MultiFilter",agMultiColumnFloatingFilter:"MultiFilter",agGroupColumnFilter:"GroupFilter",agGroupColumnFloatingFilter:"GroupFilter",agGroupCellRenderer:"GroupCellRenderer",agGroupRowRenderer:"GroupCellRenderer",agRichSelect:"RichSelect",agRichSelectCellEditor:"RichSelect",agDetailCellRenderer:"SharedMasterDetail",agSparklineCellRenderer:"Sparklines",agDragAndDropImage:"SharedDragAndDrop",agColumnHeader:"ColumnHeaderComp",agColumnGroupHeader:"ColumnGroupHeaderComp",agSortIndicator:"Sort",agAnimateShowChangeCellRenderer:"HighlightChanges",agAnimateSlideCellRenderer:"HighlightChanges",agLoadingCellRenderer:"LoadingCellRenderer",agSkeletonCellRenderer:"SkeletonCellRenderer",agCheckboxCellRenderer:"CheckboxCellRenderer",agLoadingOverlay:"Overlay",agExportingOverlay:"Overlay",agNoRowsOverlay:"Overlay",agNoMatchingRowsOverlay:"Overlay",agTooltipComponent:"Tooltip",agReadOnlyFloatingFilter:"CustomFilter",agTextColumnFilter:"TextFilter",agNumberColumnFilter:"NumberFilter",agBigIntColumnFilter:"BigIntFilter",agDateColumnFilter:"DateFilter",agDateInput:"DateFilter",agTextColumnFloatingFilter:"TextFilter",agNumberColumnFloatingFilter:"NumberFilter",agBigIntColumnFloatingFilter:"BigIntFilter",agDateColumnFloatingFilter:"DateFilter",agFormulaCellEditor:"Formula",agCellEditor:"TextEditor",agSelectCellEditor:"SelectEditor",agTextCellEditor:"TextEditor",agNumberCellEditor:"NumberEditor",agDateCellEditor:"DateEditor",agDateStringCellEditor:"DateEditor",agCheckboxCellEditor:"CheckboxEditor",agLargeTextCellEditor:"LargeTextEditor",agMenuItem:"MenuItem",agColumnsToolPanel:"ColumnsToolPanel",agFiltersToolPanel:"FiltersToolPanel",agNewFiltersToolPanel:"NewFiltersToolPanel",agAggregationComponent:"StatusBar",agSelectedRowCountComponent:"StatusBar",agTotalRowCountComponent:"StatusBar",agFilteredRowCountComponent:"StatusBar",agTotalAndFilteredRowCountComponent:"StatusBar",agFindCellRenderer:"Find"};function uD(e){return`"${e}"`}var uM={allowFormula:"Formula",aggFunc:"SharedAggregation",autoHeight:"RowAutoHeight",cellClass:"CellStyle",cell
14ClassRules:"CellStyle",cellEditor:({cellEditor:e,editable:t,...i})=>{let o=i.groupRowEditable;return t||o?"string"==typeof e?uP[e]??"CustomEditor":"CustomEditor":null},cellRenderer:({cellRenderer:e})=>"string"!=typeof e?null:uP[e],cellStyle:"CellStyle",columnChooserParams:"ColumnMenu",contextMenuItems:"ContextMenu",dndSource:"DragAndDrop",dndSourceOnRowDrag:"DragAndDrop",editable:({editable:e,cellEditor:t})=>e&&!t?"TextEditor":null,enableCellChangeFlash:"HighlightChanges",enablePivot:"SharedPivot",enableRowGroup:"SharedRowGrouping",enableValue:"SharedAggregation",filter:({filter:e})=>e&&"string"!=typeof e&&"boolean"!=typeof e?"CustomFilter":"string"==typeof e?uP[e]??"ColumnFilter":"ColumnFilter",floatingFilter:"ColumnFilter",getQuickFilterText:"QuickFilter",headerTooltip:"Tooltip",headerTooltipValueGetter:"Tooltip",mainMenuItems:"ColumnMenu",menuTabs:e=>{let t=["columnsMenuTab","generalMenuTab"];return e.menuTabs?.some(e=>t.includes(e))?"ColumnMenu":null},pivot:"SharedPivot",pivotIndex:"SharedPivot",rowDrag:"RowDrag",rowGroup:"SharedRowGrouping",rowGroupIndex:"SharedRowGrouping",tooltipField:"Tooltip",tooltipValueGetter:"Tooltip",tooltipComponentSelector:"Tooltip",spanRows:"CellSpan",groupHierarchy:"SharedRowGrouping"},uk={headerName:void 0,columnGroupShow:void 0,headerStyle:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,headerTooltipValueGetter:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,groupRowEditable:void 0,groupRowValueSetter:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,spanRows:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,tooltipComponentSelector:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressS
14panHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,context:void 0,dateComponent:void 0,dateComponentParams:void 0,getFindText:void 0,rowGroupingHierarchy:void 0,groupHierarchy:void 0,allowFormula:void 0},uT=["overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","treeDataChildrenField","treeDataParentIdField","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","invalidEditValueMode","grandTotalRow","themeCssLayer","findSearchValue","styleNonce","renderingMode"],uA=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","dragAndDropImageComponentParams","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","overlayComponentParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","activeOverlayParams","popupParent","themeStyleContainer","statusBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterParent","advancedFilterBuilderParams","advancedFilterParams","formulaDataSource","formulaFuncs","initialState","autoSizeStrategy","selectionColumnDef","findOptions","filterHandlers","groupHierarchyConfig"],uI=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector","suppressOverlays"],uL=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipSwitchShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns","rowDragInsertDelay"],uB=["theme","rowSelection"],uH=["cellSelection","sideBar","rowNumbers","suppressGroupChangesColumnVisibility","groupAggFiltering","suppressStickyTotalRow","groupHideParentOfSingleChild","enableRowPinning"],uV=["loadThemeGoogleFonts","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressColumnMoveAnimation","suppressMoveWhenColumnDragging","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","allowContextMenuWithControlKey","suppressContextMenu","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressFocusAfterRefresh","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","enableCellSpan","suppressClickEdit","rowDragEntireRow","rowDragManaged","refreshAfterGroupEdit","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval","loading","maintainColumnOrder","enableStrictPivotColumnOrder","suppressSetFilterByDefault","enableFilterHandlers","suppressStartEditOnTab","hidePaddedHeaderRows","ssrmExpandAllAffectsAllRows","animateColumnResizing"],uG=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","overlayComponent","loadingOverlayComponent","noRowsOverlayComponent","overlayComponentSelector","activeOverlay","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getFullRowEditValidationErrors","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","
14sendToClipboard","focusGridInnerElement","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","chartMenuItems","groupTotalRow","alwaysPassFilter","isRowPinnable","isRowPinned","isRowValidDropPosition"],uO=()=>[...uI,...uA,...uT,...uL,...uG,...uV,...uH,...uB];function uN(e,t,i){return"number"==typeof t||null==t?null==t||t>=i?null:`${e}: value should be greater than or equal to ${i}`:`${e}: value should be a number`}var uz={alignedGrids:"AlignedGrids",allowContextMenuWithControlKey:"ContextMenu",autoSizeStrategy:"ColumnAutoSize",cellSelection:"CellSelection",columnHoverHighlight:"ColumnHover",datasource:"InfiniteRowModel",doesExternalFilterPass:"ExternalFilter",editType:"EditCore",invalidEditValueMode:"EditCore",enableAdvancedFilter:"AdvancedFilter",enableCellSpan:"CellSpan",enableCharts:"IntegratedCharts",enableRangeSelection:"CellSelection",enableRowPinning:"PinnedRow",findSearchValue:"Find",getFullRowEditValidationErrors:"EditCore",getContextMenuItems:"ContextMenu",getLocaleText:"Locale",getMainMenuItems:"ColumnMenu",getRowClass:"RowStyle",getRowStyle:"RowStyle",groupTotalRow:"SharedRowGrouping",grandTotalRow:"ClientSideRowModelHierarchy",initialState:"GridState",isExternalFilterPresent:"ExternalFilter",isRowPinnable:"PinnedRow",isRowPinned:"PinnedRow",localeText:"Locale",masterDetail:"SharedMasterDetail",pagination:"Pagination",pinnedBottomRowData:"PinnedRow",pinnedTopRowData:"PinnedRow",pivotMode:"SharedPivot",pivotPanelShow:"RowGroupingPanel",quickFilterText:"QuickFilter",rowClass:"RowStyle",rowClassRules:"RowStyle",rowData:"ClientSideRowModel",rowDragManaged:"RowDrag",refreshAfterGroupEdit:["RowGrouping","TreeData"],rowGroupPanelShow:"RowGroupingPanel",rowNumbers:"RowNumbers",rowSelection:"SharedRowSelection",rowStyle:"RowStyle",serverSideDatasource:"ServerSideRowModel",sideBar:"SideBar",statusBar:"StatusBar",treeData:"SharedTreeData",undoRedoCellEditing:"UndoRedoEdit",valueCache:"ValueCache",viewportDatasource:"ViewportRowModel"},uW=0,uU=0,u_="__ag_grid_instance",u$=class extends tc{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.instanceId=uU++,this.gridReadyFired=!1,this.queueEvents=[],this.propEventSvc=new T,this.globalEventHandlerFactory=e=>(t,i)=>{if(!this.isAlive())return;let o=ux.has(t);if(o&&!e||!o&&e||!uF[t])return;let r=(e,t)=>{let i=uF[e],o=this.gridOptions[i];"function"==typeof o&&this.beans.frameworkOverrides.wrapOutgoing(()=>o(t))};if(this.gridReadyFired)r(t,i);else if("gridReady"===t){for(let e of(r(t,i),this.gridReadyFired=!0,this.queueEvents))r(e.eventName,e.event);this.queueEvents=[]}else this.queueEvents.push({eventName:t,event:i})}}wireBeans(e){this.gridOptions=e.gridOptions,this.validation=e.validation,this.api=e.gridApi,this.gridId=e.context.getId()}get gridOptionsContext(){return this.gridOptions.context}postConstruct(){this.validateGridOptions(this.gridOptions),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory().bind(this),!0),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.propEventSvc.setFrameworkOverrides(this.beans.frameworkOverrides),this.addManagedEventListeners({gridOptionsChanged:({options:e})=>{this.updateGridOptions({options:e,force:!0,source:"optionsUpdated"})}})}destroy(){super.destroy(),this.queueEvents=[]}get(e){return this.gridOptions[e]??tP[e]}getCallback(e){return this.mergeGridCommonParams(this.gridOptions[e])}exists(e){return F(this.gridOptions[e])}mergeGridCommonParams(e){return e?t=>e(this.addCommon(t)):e}updateGridOptions({options:e,force:t,source:i="api"}){let o={id:uW++,properties:[]}
14,r=[],{gridOptions:s,validation:n}=this;for(let l of Object.keys(e)){let a=tE.applyGlobalGridOption(l,e[l]);n?.warnOnInitialPropertyUpdate(i,l);let d=t||"object"==typeof a&&"api"===i,h=s[l];if(d||h!==a){s[l]=a;let e={type:l,currentValue:a,previousValue:h,changeSet:o,source:i};r.push(e)}}for(let e of(this.validateGridOptions(this.gridOptions),o.properties=r.map(e=>e.type),r))tM(this,`Updated property ${e.type} from`,e.previousValue," to ",e.currentValue),this.propEventSvc.dispatchEvent(e)}addPropertyEventListener(e,t){this.propEventSvc.addEventListener(e,t)}removePropertyEventListener(e,t){this.propEventSvc.removeEventListener(e,t)}getDomDataKey(){return this.domDataKey}addCommon(e){return e.api=this.api,e.context=this.gridOptionsContext,e}validateOptions(e,t){for(let i of Object.keys(e)){let o=e[i];if(null==o||!1===o)continue;let r=t[i];"function"==typeof r&&(r=r(e,this.gridOptions,this.beans)),r&&this.assertModuleRegistered(r,i)}}validateGridOptions(e){this.validateOptions(e,uz),this.validation?.processGridOptions(e)}validateColDef(e,t,i){(i||!this.beans.dataTypeSvc?.isColPendingInference(t))&&(this.validateOptions(e,uM),this.validation?.validateColDef(e))}assertModuleRegistered(e,t){let i=Array.isArray(e)?e.some(e=>this.isModuleRegistered(e)):this.isModuleRegistered(e);return i||t0(200,{...this.getModuleErrorParams(),moduleName:e,reasonOrId:t}),i}getModuleErrorParams(){return{gridId:this.gridId,gridScoped:tH,rowModelType:this.get("rowModelType"),isUmd:tV}}isModuleRegistered(e){return tO(e,this.gridId,this.get("rowModelType"))}setInstanceDomData(e){e[u_]=this.instanceId}isElementInThisInstance(e){let t=e;for(;t;){let e=t[u_];if(F(e))return e===this.instanceId;t=t.parentElement}return!1}},uq=class extends tc{constructor(e,t){super(),this.column=e,this.eGui=t,this.lastMovingChanged=0}postConstruct(){this.addManagedElementListeners(this.eGui,{click:e=>e&&this.onClick(e)}),this.addManagedListeners(this.column,{movingChanged:()=>{this.lastMovingChanged=Date.now()}})}onClick(e){let{sortSvc:t,rangeSvc:i,gos:o}=this.beans;if(!iA(o)||e.altKey){if(this.column.isSortable()){let i=this.column.isMoving(),o=Date.now()-this.lastMovingChanged<50;i||o||t?.progressSortFromEvent(this.column,e)}}else i?.handleColumnSelection(this.column,e)}},uK=class extends o5{constructor(){super(...arguments),this.eFilter=oZ,this.eFilterButton=oZ,this.eSortIndicator=oZ,this.eMenu=oZ,this.eLabel=oZ,this.eText=oZ,this.eColRef=oZ,this.eSortOrder=oZ,this.eSortAsc=oZ,this.eSortDesc=oZ,this.eSortMixed=oZ,this.eSortNone=oZ,this.eSortAbsoluteAsc=oZ,this.eSortAbsoluteDesc=oZ,this.isLoadingInnerComponent=!1}refresh(e){let t=this.params;if(this.params=e,this.workOutTemplate(e,!!this.beans?.sortSvc)!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||e.enableSorting!=this.currentSort||e.column.formulaRef!=this.currentRef||null!=this.currentSuppressMenuHide&&this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide||t.enableFilterButton!=e.enableFilterButton||t.enableFilterIcon!=e.enableFilterIcon)return!1;if(this.innerHeaderComponent){let t={...e};tS(t,e.innerHeaderComponentParams),this.innerHeaderComponent.refresh?.(t)}else this.setDisplayName(e);return!0}workOutTemplate(e,t){let{formula:i}=this.beans,o=e.template;if(o)return o?.trim?o.trim():o;var r=!!i?.active;let s={"aria-hidden":"true"};return{tag:"div",cls:"ag-cell-label-container",role:"presentation",children:[{tag:"span",ref:"eMenu",cls:"ag-header-icon ag-header-cell-menu-button",attrs:s},{tag:"span",ref:"eFilterButton",cls:"ag-header-icon ag-header-cell-filter-button",attrs:s},{tag:"div",ref:"eLabel",cls:"ag-header-cell-label",role:"presentation",children:[r?{tag:"span",ref:"eColRef",cls:"ag-header-col-ref"}:null,{tag:"span",ref:"eText",cls:"ag-header-cell-text"},{tag:"span",ref:"eFilter",cls:"ag-header-icon ag-header-label-icon ag-filter-icon",attrs:s},t?{tag:"ag-sort-indicator",ref:"eSortIndicator"}:null]}]}}init(e){this.params=e;let{sortSvc:t,touchSvc:i,rowNumbersSvc:o,userCompFactory:r}=this.beans,s=t?.getSortIndicatorSelector();this.currentTemplate=this.workOutTemplate(e,!!s),this.setTemplate(this.currentTemplate,s?[s]:void 0),this.eLabel&&(this.mouseListener??(this.mouseListener=this.createManagedBean(new uq(e.column,this.eLabel)))),i?.setupForHeader(this),this.setMenu(),this.setupSort(),this.setupColumnRefIndicator(),o?.setupForHeader(this),this.setupFilterIcon(),this.setupFilterButton(),this.workOutInnerHeaderComponent(r,e),this.setDisplayName(e)}
14workOutInnerHeaderComponent(e,t){let i=e.getCompDetails(t,rn,void 0,t);i&&(this.isLoadingInnerComponent=!0,i.newAgStackInstance().then(e=>{this.isLoadingInnerComponent=!1,e&&(this.isAlive()?(this.innerHeaderComponent=e,this.eText&&this.eText.appendChild(e.getGui())):this.destroyBean(e))}))}setDisplayName(e){let{displayName:t}=e,i=this.currentDisplayName;this.currentDisplayName=t,!this.eText||i===t||this.innerHeaderComponent||this.isLoadingInnerComponent||(this.eText.textContent=L(t))}addInIcon(e,t,i){let o=o1(e,this.beans,i);o&&t.appendChild(o)}workOutShowMenu(){return this.params.enableMenu&&!!this.beans.menuSvc?.isHeaderMenuButtonEnabled()}shouldSuppressMenuHide(){return!!this.beans.menuSvc?.isHeaderMenuButtonAlwaysShowEnabled()}setMenu(){if(!this.eMenu)return;if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu){eV(this.eMenu),this.eMenu=void 0;return}let{gos:e,eMenu:t,params:i}=this,o=iW(e);this.addInIcon(o?"menu":"menuAlt",t,i.column),t.classList.toggle("ag-header-menu-icon",!o);let r=this.shouldSuppressMenuHide();this.currentSuppressMenuHide=r,this.addManagedElementListeners(t,{click:()=>this.showColumnMenu(this.eMenu)}),this.toggleMenuAlwaysShow(r)}toggleMenuAlwaysShow(e){this.eMenu?.classList.toggle("ag-header-menu-always-show",e)}showColumnMenu(e){let{currentSuppressMenuHide:t,params:i}=this;t||this.toggleMenuAlwaysShow(!0),i.showColumnMenu(e,()=>{t||this.toggleMenuAlwaysShow(!1)})}onMenuKeyboardShortcut(e){let{params:t,gos:i,beans:o,eMenu:r,eFilterButton:s}=this,n=t.column,l=iW(i);if(e&&!l){if(o.menuSvc?.isFilterMenuInHeaderEnabled(n))return t.showFilter(s??r??this.getGui()),!0}else if(t.enableMenu)return this.showColumnMenu(r??s??this.getGui()),!0;return!1}setupSort(){let{sortSvc:e}=this.beans;if(!e)return;let{enableSorting:t,column:i}=this.params;if(this.currentSort=t,!this.eSortIndicator){this.eSortIndicator=this.createBean(e.createSortIndicator(!0));let{eSortIndicator:t,eSortOrder:i,eSortAsc:o,eSortDesc:r,eSortMixed:s,eSortNone:n,eSortAbsoluteAsc:l,eSortAbsoluteDesc:a}=this;t.attachCustomElements(i,o,r,s,n,l,a)}this.eSortIndicator.setupSort(i),this.currentSort&&e.setupHeader(this,i)}setupColumnRefIndicator(){let{eColRef:e,beans:{editModelSvc:t},params:i}=this;e&&(this.currentRef=i.column.formulaRef,e.textContent=this.currentRef,eE(e,!1),this.addManagedEventListeners({cellEditingStarted:()=>{let i=t?.getEditPositions();eE(e,!!this.currentRef&&!!i?.some(e=>e.column.isAllowFormula()))},cellEditingStopped:()=>{eE(e,!1)}}))}setupFilterIcon(){let{eFilter:e,params:t}=this;e&&this.configureFilter(t.enableFilterIcon,e,()=>{eE(e,t.column.isFilterActive(),{skipAriaHidden:!0})},"filterActive")}setupFilterButton(){let{eFilterButton:e,params:t}=this;e&&(this.configureFilter(t.enableFilterButton,e,this.onFilterChangedButton.bind(this),"filter")?this.addManagedElementListeners(e,{click:()=>t.showFilter(e)}):this.eFilterButton=void 0)}configureFilter(e,t,i,o){if(!e)return eV(t),!1;let r=this.params.column;return this.addInIcon(o,t,r),this.addManagedListeners(r,{filterChanged:i}),i(),!0}onFilterChangedButton(){let e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)}getAnchorElementForMenu(e){let{eFilterButton:t,eMenu:i}=this;return e?t??i??this.getGui():i??t??this.getGui()}destroy(){super.destroy(),this.innerHeaderComponent=this.destroyBean(this.innerHeaderComponent),this.mouseListener=this.destroyBean(this.mouseListener)}},uj=class extends tc{constructor(e,t){super(),this.eLabel=e,this.columnGroup=t,this.isSticky=!1,this.left=null,this.right=null}postConstruct(){let{columnGroup:e,beans:t}=this,{ctrlsSvc:i}=t;i.whenReady(this,()=>{let t=this.refreshPosition.bind(this);null==e.getPinned()&&this.addManagedEventListeners({bodyScroll:e=>{"horizontal"===e.direction&&this.updateSticky(e.left)}}),this.addManagedListeners(e,{leftChanged:t,displayedChildrenChanged:t}),this.addManagedEventListeners({columnResized:t}),this.refreshPosition()})}refreshPosition(){let{columnGroup:e,beans:t}=this,i=e.getLeft(),o=e.getActualWidth();if(null==i||0===o){this.left=null,this.right=null,this.setSticky(!1);return}this.left=i,this.right=i+o;let r=t.colViewport.getScrollPosition();null!=r&&this.updateSticky(r)}updateSticky(e){let{beans:t,left:i,right:o}=this;if(null==i||null==o)return void this.setSticky(!1);let{gos:r,visibleCols:s}=t,n=r.get("enableRtl")?s.bodyWidth-e:e;this.setSticky(i<n&&o>n)}setSticky(e){let{isSticky:t,eLabel:i}=this;t!==e&&(this.isSticky=e,i.classList.toggle("ag-sticky-label",e))}},uY={tag:"div",cls:"ag-header-group-cell-label",role:"presentation",children:[{tag:"span",ref:"agLabel",cls:"ag-header-group-text",role:"presentation"},{tag:"span",ref:"agOpened",cls:"ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"},{tag:"span",ref:"agClosed",cls:"ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"}]},uQ=class extends o5{constructor(){super(uY),this.agOpened=oZ,this.agClosed=oZ,this.agLabel=oZ,this.isLoadingInnerComponent=!1}init(e){let{userCompFactory:t,touchSvc:i}=this.beans;this.params=e,this.checkWarnings(),this.workOutInnerHeaderGroupComponent(t,e),this.setupLabel(e),this.addGroupExpandIcon(e),this.setupExpandIcons(),i?.setupForHeaderGroup(this)}checkWarnings(){this.params.template&&tX(89)}
14workOutInnerHeaderGroupComponent(e,t){let i=e.getCompDetails(t,rl,void 0,t);i&&(this.isLoadingInnerComponent=!0,i.newAgStackInstance().then(e=>{this.isLoadingInnerComponent=!1,e&&(this.isAlive()?(this.innerHeaderGroupComponent=e,this.agLabel.appendChild(e.getGui())):this.destroyBean(e))}))}setupExpandIcons(){let{agOpened:e,agClosed:t,params:{columnGroup:i},beans:{colGroupSvc:o}}=this;this.addInIcon("columnGroupOpened",e),this.addInIcon("columnGroupClosed",t);let r=e=>{if(so(e))return;let t=!i.isExpanded();o.setColumnGroupOpened(i.getProvidedColumnGroup(),t,"uiColumnExpanded")};this.addTouchAndClickListeners(t,r),this.addTouchAndClickListeners(e,r);let s=e=>{si(e)};this.addManagedElementListeners(t,{dblclick:s}),this.addManagedElementListeners(e,{dblclick:s}),this.addManagedElementListeners(this.getGui(),{dblclick:r}),this.updateIconVisibility();let n=i.getProvidedColumnGroup(),l=this.updateIconVisibility.bind(this);this.addManagedListeners(n,{expandedChanged:l,expandableChanged:l})}addTouchAndClickListeners(e,t){this.beans.touchSvc?.setupForHeaderGroupElement(this,e,t),this.addManagedElementListeners(e,{click:t})}updateIconVisibility(){let{agOpened:e,agClosed:t,params:{columnGroup:i}}=this;if(i.isExpandable()){let o=i.isExpanded();eE(e,o),eE(t,!o)}else eE(e,!1),eE(t,!1)}addInIcon(e,t){let i=o1(e,this.beans,null);i&&t.appendChild(i)}addGroupExpandIcon(e){if(!e.columnGroup.isExpandable()){let{agOpened:e,agClosed:t}=this;eE(e,!1),eE(t,!1)}}setupLabel(e){let{displayName:t,columnGroup:i}=e,{innerHeaderGroupComponent:o,isLoadingInnerComponent:r}=this;F(t)&&!(o||r)&&(this.agLabel.textContent=L(t)),i.getColGroupDef()?.suppressStickyLabel||this.createManagedBean(new uj(this.getGui(),i))}destroy(){super.destroy(),this.innerHeaderGroupComponent&&(this.destroyBean(this.innerHeaderGroupComponent),this.innerHeaderGroupComponent=void 0)}},uZ=class extends tc{constructor(){super(...arguments),this.beanName="animationFrameSvc",this.p1={list:[],sorted:!1},this.p2={list:[],sorted:!1},this.f1={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0,this.taskCount=0}setScrollTop(e){this.scrollGoingDown=e>=this.lastScrollTop,0===e&&(this.scrollGoingDown=!0),this.lastScrollTop=e}postConstruct(){this.active=!this.gos.get("suppressAnimationFrame"),this.batchFrameworkComps=this.beans.frameworkOverrides.batchFrameworkComps}verify(){!1===this.active&&tX(92)}createTask(e,t,i,o,r=!1){this.verify();let s=i;o&&this.batchFrameworkComps&&(s="f1");let n={task:e,index:t,createOrder:++this.taskCount,deferred:r};this.addTaskToList(this[s],n),this.schedule()}addTaskToList(e,t){e.list.push(t),e.sorted=!1}sortTaskList(e){if(e.sorted)return;let t=this.scrollGoingDown?1:-1;e.list.sort((e,i)=>e.deferred!==i.deferred?e.deferred?-1:1:e.index!==i.index?t*(i.index-e.index):i.createOrder-e.createOrder),e.sorted=!0}addDestroyTask(e){this.verify(),this.destroyTasks.push(e),this.schedule()}executeFrame(e){let{p1:t,p2:i,f1:o,destroyTasks:r,beans:s}=this,{ctrlsSvc:n,frameworkOverrides:l}=s,a=t.list,d=i.list,h=o.list,u=Date.now(),c=0,g=e<=0,p=n.getScrollFeature();for(;g||c<e;){if(!p.scrollGridIfNeeded()){let s;if(a.length)this.sortTaskList(t),s=a.pop().task;else if(d.length)this.sortTaskList(i),s=d.pop().task;else if(h.length)l.wrapOutgoing(()=>{for(;(g||c<e)&&!p.scrollGridIfNeeded()&&h.length;){this.sortTaskList(o),(s=h.pop().task)();c=Date.now()-u}}),s=()=>{};else if(r.length)s=r.pop();else break;s()}c=Date.now()-u}a.length||d.length||h.length||r.length?this.requestFrame():this.ticking=!1}flushAllFrames(){this.active&&this.executeFrame(-1)}schedule(){this.active&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){let e=this.executeFrame.bind(this,60);e0(this.beans,e)}isQueueEmpty(){return!this.ticking}},uJ=class extends tc{constructor(){super(...arguments),this.beanName="iconSvc"}createIconNoSpan(e,t){return o1(e,this.beans,t?.column)}},uX=class extends tc{constructor(){super(...arguments),this.beanName="touchSvc"}mockBodyContextMenu(e,t){this.mockContextMenu(e,e.eBodyViewport,t)}mockHeaderContextMenu(e,t){this.mockContextMenu(e,e.eGui,t)}mockRowContextMenu(e){if(!rQ())return;let t=(t,i,o)=>{let{rowCtrl:r,cellCtrl:s}=e.getControlsForEventTarget(o?.target??null);s?.column&&s.dispatchCellContextMenuEvent(o??null),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(void 0,o,r,s)};this.mockContextMenu(e,e.element,t)}handleCellDoubleClick(e,t){return!!(()=>
14{if(!rQ()||e8("dblclick"))return!1;let t=Date.now(),i=t-e.lastIPadMouseClickEvent<200;return e.lastIPadMouseClickEvent=t,i})()&&(e.onCellDoubleClicked(t),t.preventDefault(),!0)}setupForHeader(e){let{gos:t,sortSvc:i,menuSvc:o}=this.beans;if(t.get("suppressTouch"))return;let{params:r,eMenu:s,eFilterButton:n}=e,l=new nz(e.getGui(),!0);e.addDestroyFunc(()=>l.destroy());let a=e.shouldSuppressMenuHide(),d=a&&F(s)&&r.enableMenu,h=l;if(d&&(h=new nz(s,!0),e.addDestroyFunc(()=>h.destroy())),r.enableMenu||o?.isHeaderContextMenuEnabled(r.column)){let t=e=>r.showColumnMenuAfterMouseClick(e.touchStart);e.addManagedListeners(h,{[d?"tap":"longTap"]:t}),e.addManagedListeners(l,{longTap:t})}if(r.enableSorting&&e.addManagedListeners(l,{tap:e=>{let t=e.touchStart.target;a&&(s?.contains(t)||n?.contains(t))||i?.progressSort(r.column,!1,"uiColumnSorted")}}),r.enableFilterButton&&n){let t=new nz(n,!0);e.addManagedListeners(t,{tap:()=>r.showFilter(n)}),e.addDestroyFunc(()=>t.destroy())}}setupForHeaderGroup(e){let t=e.params;if(this.beans.menuSvc?.isHeaderContextMenuEnabled(t.columnGroup.getProvidedColumnGroup())){let i=new nz(t.eGridHeader,!0);e.addManagedListeners(i,{longTap:e=>t.showColumnMenuAfterMouseClick(e.touchStart)}),e.addDestroyFunc(()=>i.destroy())}}setupForHeaderGroupElement(e,t,i){let o=new nz(t,!0);e.addManagedListeners(o,{tap:i}),e.addDestroyFunc(()=>o.destroy())}mockContextMenu(e,t,i){if(!rQ())return;let o=new nz(t),r=e=>{tt(this.beans,e.touchEvent)&&i(void 0,e.touchStart,e.touchEvent)};e.addManagedListeners(o,{longTap:r}),e.addDestroyFunc(()=>o.destroy())}},u0=class extends tc{constructor(){super(...arguments),this.beanName="cellNavigation"}wireBeans(e){this.rowSpanSvc=e.rowSpanSvc}getNextCellToFocus(e,t,i=!1){return i?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)}getNextCellToFocusWithCtrlPressed(e,t){let i,o,r=e===oK.UP,s=e===oK.DOWN,n=e===oK.LEFT,{pageBounds:l,gos:a,visibleCols:d,pinnedRowModel:h}=this.beans,{rowPinned:u}=t;if(r||s)o=u&&h?r?0:"top"===u?h.getPinnedTopRowCount()-1:h.getPinnedBottomRowCount()-1:r?l.getFirstRow():l.getLastRow(),i=t.column;else{let e=a.get("enableRtl");o=t.rowIndex,i=(n!==e?d.allCols:[...d.allCols].reverse()).find(e=>this.isCellGoodToFocusOn({rowIndex:o,rowPinned:null,column:e}))}return i?{rowIndex:o,rowPinned:u,column:i}:null}getNextCellToFocusWithoutCtrlPressed(e,t){let i=t,o=!1;for(;!o;){switch(e){case oK.UP:i=this.getCellAbove(i);break;case oK.DOWN:i=this.getCellBelow(i);break;case oK.RIGHT:i=this.gos.get("enableRtl")?this.getCellToLeft(i):this.getCellToRight(i);break;case oK.LEFT:i=this.gos.get("enableRtl")?this.getCellToRight(i):this.getCellToLeft(i);break;default:i=null,tX(8,{key:e})}o=!i||this.isCellGoodToFocusOn(i)}return i}isCellGoodToFocusOn(e){let t,i=e.column,{pinnedRowModel:o,rowModel:r}=this.beans;switch(e.rowPinned){case"top":t=o?.getPinnedTopRow(e.rowIndex);break;case"bottom":t=o?.getPinnedBottomRow(e.rowIndex);break;default:t=r.getRow(e.rowIndex)}return!!t&&!this.isSuppressNavigable(i,t)}getCellToLeft(e){if(!e)return null;let t=this.beans.visibleCols.getColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellToRight(e){if(!e)return null;let t=this.beans.visibleCols.getColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellBelow(e){if(!e)return null;let t=this.rowSpanSvc?.getCellEnd(e)??e,i=sv(this.beans,t,!0);return i?{rowIndex:i.rowIndex,column:e.column,rowPinned:i.rowPinned}:null}getCellAbove(e){if(!e)return null;let t=this.rowSpanSvc?.getCellStart(e)??e,i=sf(this.beans,{rowIndex:t.rowIndex,rowPinned:t.rowPinned},!0);return i?{rowIndex:i.rowIndex,column:e.column,rowPinned:i.rowPinned}:null}getNextTabbedCell(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)}getNextTabbedCellForwards(e){let{visibleCols:t,pagination:i}=this.beans,o=t.allCols,r=e.rowIndex,s=e.rowPinned,n=t.getColAfter(e.column);if(!n){n=o[0];let t=sv(this.beans,e,!0);if(P(t)||!t.rowPinned&&!(i?.isRowInPage(t.rowIndex)??!0))return null;r=t?t.rowIndex:null,s=t?t.rowPinned:null}return{rowIndex:r,column:n,rowPinned:s}}getNextTabbedCellBackwards(e){let{beans:t}=this,{visibleCols:i,pagination:o}
14=t,r=i.allCols,s=e.rowIndex,n=e.rowPinned,l=i.getColBefore(e.column);if(!l){l=v(r);let i=sf(t,{rowIndex:e.rowIndex,rowPinned:e.rowPinned},!0);if(P(i)||!i.rowPinned&&!(o?.isRowInPage(i.rowIndex)??!0))return null;s=i?i.rowIndex:null,n=i?i.rowPinned:null}return{rowIndex:s,column:l,rowPinned:n}}isSuppressNavigable(e,t){let{suppressNavigable:i}=e.colDef;return"boolean"==typeof i?i:"function"==typeof i&&i(e.createColumnFunctionCallbackParams(t))}};function u1(e){return e?.getFrameworkComponentInstance!=null?e.getFrameworkComponentInstance():e}var u3=class extends tc{constructor(){super(...arguments),this.beanName="editModelSvc",this.edits=new Map,this.cellValidations=new u2,this.rowValidations=new u6,this.suspendEdits=!1}suspend(e){this.suspendEdits=e}removeEdits({rowNode:e,column:t}){if(!this.hasEdits({rowNode:e})||!e)return;let i=this.getEditRow(e);t?i.delete(t):i.clear(),0===i.size&&this.edits.delete(e)}getEditRow(e,t={}){if(this.suspendEdits||0===this.edits.size)return;let i=e&&this.edits.get(e);if(i)return i;if(t.checkSiblings){let t=e.pinnedSibling;if(t)return this.getEditRow(t)}}getEditRowDataValue(e,{checkSiblings:t}={}){if(!e||0===this.edits.size)return;let i=this.getEditRow(e),o=e.pinnedSibling,r=t&&o&&this.getEditRow(o);if(!i&&!r)return;let s={...e.data},n=(e,t)=>e.forEach(({pendingValue:e},i)=>{e!==u9&&(t[i.getColId()]=e)});return i&&n(i,s),r&&n(r,s),s}getEdit(e={},t){let{rowNode:i,column:o}=e,r=this.edits;if(this.suspendEdits||0===r.size||!i||!o)return;let s=r.get(i)?.get(o);if(s)return s;if(t?.checkSiblings){let e=i.pinnedSibling;if(e)return r.get(e)?.get(o)}}getEditMap(e=!0){if(this.suspendEdits||0===this.edits.size)return new Map;if(!e)return this.edits;let t=new Map;return this.edits.forEach((e,i)=>{let o=new Map;e.forEach(({editorState:e,...t},i)=>o.set(i,{...t})),t.set(i,o)}),t}setEditMap(e){this.edits.clear(),e.forEach((e,t)=>{let i=new Map;e.forEach((e,t)=>i.set(t,{...e})),this.edits.set(t,i)})}setEdit(e,t){let i=this.edits;0!==i.size&&i.has(e.rowNode)||i.set(e.rowNode,new Map);let o={editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0},...this.getEdit(e),...t};return this.getEditRow(e.rowNode).set(e.column,o),o}clearEditValue(e){let{rowNode:t,column:i}=e;if(!t)return;let o=e=>{e.editorValue=void 0,e.pendingValue=e.sourceValue,e.state="changed"};if(!i)return void this.getEditRow(t)?.forEach(o);let r=this.getEdit(e);r&&o(r)}getState(e){if(!this.suspendEdits)return this.getEdit(e)?.state}getEditPositions(e){if(this.suspendEdits||0===(e??this.edits).size)return[];let t=[];return(e??this.edits).forEach((e,i)=>{for(let o of e.keys()){let{editorState:r,...s}=e.get(o);t.push({rowNode:i,column:o,...s})}}),t}hasRowEdits(e,t){return!this.suspendEdits&&0!==this.edits.size&&!!this.getEditRow(e,t)}hasEdits(e={},t={}){if(this.suspendEdits||0===this.edits.size)return!1;let{rowNode:i,column:o}=e,{withOpenEditor:r}=t;if(i){let s=this.getEditRow(i,t);return!!s&&(o?r?this.getEdit(e)?.state==="editing":s.has(o):0!==s.size&&(!r||Array.from(s.values()).some(({state:e})=>"editing"===e)))}return r?this.getEditPositions().some(({state:e})=>"editing"===e):this.edits.size>0}start(e){let t=this.getEditRow(e.rowNode)??new Map,{rowNode:i,column:o}=e;o&&!t.has(o)&&t.set(o,{editorValue:void 0,pendingValue:u9,sourceValue:this.beans.valueSvc.getValue(o,i,"data"),state:"editing",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}}),this.edits.set(i,t)}stop(e,t,i){if(this.hasEdits(e))if(t){let t=this.getEditRow(e.rowNode)?.get(e.column);t&&(t.pendingValue===u9||t.pendingValue===t.sourceValue)?this.removeEdits(e):t&&i&&(t.editorValue=void 0)}else this.removeEdits(e)}clear(){for(let e of this.edits.values())e.clear();this.edits.clear()}getCellValidationModel(){return this.cellValidations}getRowValidationModel(){return this.rowValidations}setCellValidationModel(e){this.cellValidations=e}setRowValidationModel(e){this.rowValidations=e}destroy(){super.destroy(),this.clear()}},u2=class{constructor(){this.cellValidations=new Map}getCellValidation(e){let{rowNode:t,column:i}=e||{};return this.cellValidations?.get(t)?.get(i)}hasCellValidation(e){return e?.rowNode&&e.column?!!this.getCellValidation(e):this.cellValidations.size>0}setCellValidation(e,t){let{rowNode:i,column:o}=e;this.cellValidations.has(i)||this.cellValidations.set(i,new Map),this.cellValidations.get(i).set(o,t)}
14clearCellValidation(e){let{rowNode:t,column:i}=e;this.cellValidations.get(t)?.delete(i)}setCellValidationMap(e){this.cellValidations=e}getCellValidationMap(){return this.cellValidations}clearCellValidationMap(){this.cellValidations.clear()}},u6=class{constructor(){this.rowValidations=new Map}getRowValidation(e){let{rowNode:t}=e||{};return this.rowValidations.get(t)}hasRowValidation(e){return e?.rowNode?!!this.getRowValidation(e):this.rowValidations.size>0}setRowValidation({rowNode:e},t){this.rowValidations.set(e,t)}clearRowValidation({rowNode:e}){this.rowValidations.delete(e)}setRowValidationMap(e){this.rowValidations=e}getRowValidationMap(){return this.rowValidations}clearRowValidationMap(){this.rowValidations.clear()}};function u4(e,t={}){let{rowIndex:i,rowId:o,rowCtrl:r,rowPinned:s}=t;if(r)return r;let{rowModel:n,rowRenderer:l}=e,{rowNode:a}=t;return a||(o?a=function(e,t,i){let o,{rowModel:r,pinnedRowModel:s}=e;return o??(o=r?.getRowNode(t)),i?o??(o=s?.getPinnedRowById(t,i)):(o??(o=s?.getPinnedRowById(t,"top")),o??(o=s?.getPinnedRowById(t,"bottom"))),o}(e,o,s):null!=i&&(a=n.getRow(i))),l.getRowCtrls(a?[a]:[])?.[0]}function u5(e,t={}){let{cellCtrl:i,colId:o,columnId:r,column:s}=t;if(i)return i;let n=e.colModel.getCol(o??r??u7(s)),l=t.rowCtrl??u4(e,t),a=l?.getCellCtrl(n)??void 0;if(a)return a;let d=t.rowNode??l?.rowNode;if(d)return e.rowRenderer.getCellCtrls([d],[n])?.[0]}function u8(e){let{editSvc:t}=e;t?.isBatchEditing()?(cn(e,{persist:!0}),cd(e)):t?.stopEditing(void 0,{source:"api"})}function u7(e){if(e)return"string"==typeof e?e:e.getColId()}var u9=Symbol("unedited");function ce({pendingValue:e,sourceValue:t}){return e===u9&&(e=t),e!==t}function ct(e,t,i){let{key:o,event:r,cellStartedEdit:s,silent:n}=i??{},{editModelSvc:l,editSvc:a,gos:d,userCompFactory:h}=e,u=u5(e,t),c=u?.comp?.getCellEditor(),g=co(e,t,o,s&&!n),p=l?.getEdit(t),m=g.value??p?.sourceValue;if(c){l?.setEdit(t,{editorValue:ca(e,m,!0,t.column),state:"editing"}),c.refresh?.(g);return}let f=t.column.getColDef(),C=rx(h,f,g);if(!C)return;let{popupFromSelector:v,popupPositionFromSelector:w}=C,b=v??!!f.cellEditorPopup,y=w??f.cellEditorPopupPosition;if(cs(C.params,r),!u)return;let{rangeFeature:S,rowCtrl:R,comp:E,onEditorAttachedFuncs:x}=u;l?.setEdit(t,{editorValue:ca(e,m,!0,t.column),state:"editing"}),u.editCompDetails=C,x.push(()=>S?.unsetComp()),E?.setEditDetails(C,b,y,d.get("reactiveCustomComponents")),R?.refreshRow({suppressFlash:!0});let F=l?.getEdit(t);n||F?.editorState?.cellStartedEditing||(a?.dispatchCellEvent(t,r,"cellEditingStarted",{value:m}),l?.setEdit(t,{editorState:{cellStartedEditing:!0}}))}function ci(e,t,i){let o={editorValueExists:!1};if(cg(e)){let e=t.getValidationErrors?.();if((e?.length??0)>0)return o}if(i?.isCancelling)return o;if(i?.isStopping){let e=t?.isCancelAfterEnd?.();if(e)return{...o,isCancelAfterEnd:e}}return{editorValue:t.getValue(),editorValueExists:!0}}function co(e,t,i,o){let{valueSvc:r,gos:s,editSvc:n}=e,l=e.gos.get("enableGroupEdit"),a=u5(e,t),d=t.rowNode?.rowIndex??void 0,h=n?.isBatchEditing(),u=e.colModel.getCol(t.column.getId()),{rowNode:c,column:g}=t,p=a.comp?.getCellEditor(),m=n?.getCellDataValue(t),f=void 0===m?p?ci(e,p)?.editorValue:void 0:m,C=f===u9?r.getValueForDisplay({column:u,node:c,from:"edit"})?.value:f,v=l?f:C;return g.isAllowFormula()&&e.formula?.isFormula(v)&&(v=e.formula?.normaliseFormula(v,!0)??v),iK(s,{value:v,eventKey:i??null,column:g,colDef:g.getColDef(),rowIndex:d,node:c,data:c.data,cellStartedEdit:!!o,onKeyDown:a?.onKeyDown.bind(a),stopEditing:i=>{n.stopEditing(t,{source:h?"ui":"api",suppressNavigateAfterEdit:i}),ch(e,t,{})},eGridCell:a?.eGui,parseValue:e=>r.parseValue(u,c,e,a?.value),formatValue:a?.formatValue.bind(a),validate:()=>{n?.validateEdit()}})}function cr(e,t){let{editModelSvc:i}=e;
14i?.getEditMap().forEach((e,o)=>{e.forEach((e,r)=>{(t||"editing"!==e.state&&e.pendingValue!==u9)&&!ce(e)&&("editing"!==e.state||t)&&i?.removeEdits({rowNode:o,column:r})})})}function cs(e,t){return t instanceof KeyboardEvent&&"agNumberCellEditor"===e.column.getColDef().cellEditor?e.suppressPreventDefault=["-","+",".","e"].includes(t?.key??"")||e.suppressPreventDefault:t?.preventDefault?.(),e}function cn(e,t){for(let i of e.editModelSvc?.getEditPositions()??[]){let o=u5(e,i);if(!o)continue;let r=o.comp?.getCellEditor();if(!r)continue;let{editorValue:s,editorValueExists:n,isCancelAfterEnd:l}=ci(e,r,t);l&&e.editModelSvc?.setEdit(i,{editorState:{isCancelAfterEnd:l}}),cl(e,i,s,void 0,!n,t)}}function cl(e,t,i,o,r,s){let{editModelSvc:n,valueSvc:l}=e;if(!n)return;let{rowNode:a,column:d}=t;if(!(a&&d))return;let h=n.getEdit(t);if(h?.sourceValue===void 0){let i=h?ca(e,h.editorValue,!1,d):u9,o={sourceValue:l.getValue(d,a,"data"),pendingValue:i};s?.persist&&(o.state="changed"),h=n.setEdit(t,o)}n.setEdit(t,{editorValue:r?ca(e,h.sourceValue,!0,d):i}),s?.persist&&function(e,t){let{editModelSvc:i}=e,o=i?.getEdit(t),r={pendingValue:ca(e,o?.editorValue,!1,t.column)};o?.editorState?.cellStoppedEditing||o?.state==="editing"||(r.state="changed"),i?.setEdit(t,r)}(e,t)}function ca(e,t,i,o){let{formula:r}=e;return o.isAllowFormula()&&r?.isFormula(t)?r?.normaliseFormula(t,i)??t:t}function cd(e,t,i={}){if(t||(t=e.editModelSvc?.getEditPositions()),t)for(let o of t)ch(e,o,i)}function ch(e,t,i,o=u5(e,t)){let r,s=e.editModelSvc,n=s?.getEdit(t);if(r=n&&"editing"!==n.state&&n.editorState?.cellStoppedEditing?n.state:"changed",!o){n&&s?.setEdit(t,{state:r});return}let l=o.comp,a=l?.getCellEditor();if(l&&!a){if(o?.refreshCell(),n){s?.setEdit(t,{state:r});let o=e.gos.get("enableGroupEdit")?cu(n,i?.cancel):{valueChanged:!1,newValue:void 0,oldValue:n.sourceValue};cc(e,t,o,i)}return}if(cg(e)){let e=n&&a?.getValidationErrors?.(),i=s?.getCellValidationModel();e?.length?i?.setCellValidation(t,{errorMessages:e}
14):i?.clearCellValidation(t)}n&&s?.setEdit(t,{state:r}),l?.setEditDetails(),l?.refreshEditStyles(!1,!1),o?.refreshCell({force:!0,suppressFlash:!0});let d=s?.getEdit(t);if(d&&"editing"!==d.state){let o=i?.cancel,r=e.gos.get("enableGroupEdit")?cu(d,o):function(e,t,i){if(i||e.editorState.isCancelAfterEnd)return{valueChanged:!1,newValue:void 0,oldValue:e.sourceValue};let o=e.editorValue;return(null==o||o===u9)&&(o=t?.pendingValue),o===u9&&(o=void 0),{valueChanged:ce(e),newValue:o,oldValue:e.sourceValue}}(d,n,o);cc(e,t,r,i)}}function cu(e,t){let i,{sourceValue:o,pendingValue:r}=e;return t||r===u9||(i=r),{valueChanged:!t&&ce(e),newValue:i,oldValue:o,value:o}}function cc(e,t,i,{silent:o,event:r}={}){let{editSvc:s,editModelSvc:n}=e,{editorState:l}=n?.getEdit(t)||{},{isCancelBeforeStart:a}=l||{};o||a||(s?.dispatchCellEvent(t,r,"cellEditingStopped",i),n?.setEdit(t,{editorState:{cellStoppedEditing:!0}}))}function cg(e){return!!e.gos.get("getFullRowEditValidationErrors")||function(e){if(!e)return!1;for(let t=0,i=e.length;t<i;++t){let i=e[t],o=i.cellEditorParams;if(o&&(i.editable||i.groupRowEditable)&&(void 0!==o.minLength||void 0!==o.maxLength||void 0!==o.getValidationErrors||void 0!==o.min||void 0!==o.max))return!0}return!1}(e.colModel.getColumnDefs())||function(e){let t=e.rowRenderer.getCellCtrls();for(let e=0,i=t.length;e<i;++e){let i=t[e],o=i.comp?.getCellEditor();if(o){let e=u1(o);if(e.getValidationElement||e.getValidationErrors)return!0}}return!1}(e)}function cp(e,t){if(!(t||cg(e)))return;let i=new u2,{ariaAnnounce:o,localeSvc:r,editModelSvc:s,gos:n}=e,l="fullRow"===n.get("editType"),a=tl(r)("ariaValidationErrorPrefix","Cell Editor Validation"),d=new Set;for(let t of e.rowRenderer.getCellCtrls()){let e=t.comp?.getCellEditor();if(!e)continue;let r=u1(e),{rowNode:s,column:n}=t,l=r.getValidationErrors?.()??[],h=r.getValidationElement?.(!1)||!r.isPopup?.()&&t.eGui;if(h){let e=null!=l&&l.length>0,t=e?l.join(". "):"";J(h,e),e&&o.announceValue(`${a} ${l}`,"editorValidation"),h instanceof HTMLInputElement?h.setCustomValidity(t):h.classList.toggle("invalid",e)}l?.length>0&&i.setCellValidation({rowNode:s,column:n},{errorMessages:l}),d.add(t.rowCtrl)}if(cn(e,{persist:!1}),s?.setCellValidationModel(i),l){let t=cm(e);s?.setRowValidationModel(t)}for(let e of d.values())for(let t of(e.rowEditStyleFeature?.applyRowStyles(),e.getAllCellCtrls()))t.tooltipFeature?.refreshTooltip(!0),t.editorTooltipFeature?.refreshTooltip(!0),t.editStyleFeature?.applyCellStyles?.()}var cm=e=>{let t=new u6,i=e.gos.get("getFullRowEditValidationErrors"),o=e.editModelSvc?.getEditMap();if(!o)return t;for(let e of o.keys()){let r=o.get(e);if(!r)continue;let s=[],{rowIndex:n,rowPinned:l}=e;for(let e of r.keys()){let t=r.get(e);if(!t)continue;let{editorValue:i,pendingValue:o,sourceValue:a}=t,d=i??(o===u9?void 0:o)??a;s.push({column:e,colId:e.getColId(),rowIndex:n,rowPinned:l,oldValue:a,newValue:d})}let a=i?.({editorsState:s})??[];a.length>0&&t.setRowValidation({rowNode:e},{errorMessages:a})}return t};function cf(e){return!!(e.rowPinned&&e.pinnedSibling)}function cC(e,t,i,o){let r="top"===t;if(!i)return cC(e,t,r?e.getPinnedTopRow(0):e.getPinnedBottomRow(0),o);if(!o){let o=r?e.getPinnedTopRowCount():e.getPinnedBottomRowCount();return cC(e,t,i,r?e.getPinnedTopRow(o-1):e.getPinnedBottomRow(o-1))}let s=!1,n=!1,l=[];return e.forEachPinnedRow(t,e=>{if(e===i&&!s){s=!0,l.push(e);return}if(s&&e===o){n=!0,l.push(e);return}s&&!n&&l.push(e)}),l}var cv=class extends tc{constructor(e,t,i,o){super(),this.cellCtrl=e,this.rowNode=i,this.rowCtrl=o,this.beans=t}init(){this.eGui=this.cellCtrl.eGui}onKeyDown(e){let t=e.key;switch(t){case oK.ENTER:this.onEnterKeyDown(e);break;case oK.F2:this.onF2KeyDown(e);break;case oK.ESCAPE:this.onEscapeKeyDown(e);break;case oK.TAB:this.onTabKeyDown(e);break;case oK.BACKSPACE:case oK.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case oK.DOWN:case oK.UP:case oK.RIGHT:case oK.LEFT:this.onNavigationKeyDown(e,t)}}onNavigationKeyDown(e,t){let{cellCtrl:i,beans:o}=this;if(!o.editSvc?.isEditing(i,{withOpenEditor:!0})){if(e.shiftKey&&i.isRangeSelectionEnabled())this.onShiftRangeSelect(e);else{let r=i.getFocusedCellPosition();o.navigation?.navigateToNextCell(e,t,r,!0)}e.preventDefault()}}onShiftRangeSelect(e){let{rangeSvc:t,navigation:i}=this.beans;if(!t)return;let o=t.extendLatestRangeInDirection(e);o&&(e.key===oK.LEFT||e.key===oK.RIGHT?i?.ensureColumnVisible(o.column):i?.ensureRowVisible(o.rowIndex))}onTabKeyDown(e){this.beans.navigation?.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){let{cellCtrl:i,beans:o,rowNode:r}=this,{gos:s,rangeSvc:n,eventSvc:l,editSvc:a}=o;if(l.dispatchEvent({type:"keyShortcutChangedCellStart"}),function(e,t=!1){return e===oK.DELETE||!t&&e===oK.BACKSPACE&&rY()}(e,s.get("enableCellEditingOnBackspace"))&&!a?.isEditing(i,{withOpenEditor:!0})){if(n&&ik(s))n.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(i.isCellEditable()){let e=o.valueSvc.getDeleteValue(i.column,r);r.setDataValue(i.column,e,"cellClear")}}else a?.isEditing(i,{withOpenEditor:!0})||o.editSvc?.startEditing(i,{startedEdit:!0,event:t});l.dispatchEvent({type:"keyShortcutChangedCellEnd"})}
14onEnterKeyDown(e){let{cellCtrl:t,beans:i}=this,{editSvc:o,navigation:r}=i,s=o?.isEditing(t,{withOpenEditor:!0}),n=t.rowNode,l=o?.isRowEditing(n,{withOpenEditor:!0}),a=t=>{o?.startEditing(t,{startedEdit:!0,event:e,source:"edit"})&&e.preventDefault()};if(s||l){if(this.isCtrlEnter(e))return void o?.applyBulkEdit(t,i?.rangeSvc?.getCellRanges()||[]);if(cp(i),o?.checkNavWithValidation(void 0,e)==="block-stop")return;o?.isEditing(t,{withOpenEditor:!0})?o?.stopEditing(t,{event:e,source:"edit"}):l&&!t.isCellEditable()?o?.stopEditing({rowNode:n},{event:e,source:"edit"}):a(t)}else if(i.gos.get("enterNavigatesVertically")){let i=e.shiftKey?oK.UP:oK.DOWN;r?.navigateToNextCell(null,i,t.cellPosition,!1)}else{if(o?.hasValidationErrors())return;o?.hasValidationErrors(t)&&o.revertSingleCellEdit(t,!0),a(t)}}isCtrlEnter(e){return(e.ctrlKey||e.metaKey)&&e.key===oK.ENTER}onF2KeyDown(e){let{cellCtrl:t,beans:{editSvc:i}}=this;i?.isEditing()&&(cp(this.beans),i?.checkNavWithValidation(void 0,e)==="block-stop")||i?.startEditing(t,{startedEdit:!0,event:e})}onEscapeKeyDown(e){let{cellCtrl:t,beans:{editSvc:i}}=this;i?.checkNavWithValidation(t,e)==="block-stop"&&i.revertSingleCellEdit(t),setTimeout(()=>{i?.stopEditing(t,{event:e,cancel:!0})})}processCharacter(e){let t=e.target!==this.eGui,{beans:{editSvc:i},cellCtrl:o}=this;if(!(t||i?.isEditing(o,{withOpenEditor:!0}))){if(e.key===oK.SPACE)this.onSpaceKeyDown(e);else if(i?.isCellEditable(o,"ui")){if(i?.hasValidationErrors()&&!i?.hasValidationErrors(o))return;i?.startEditing(o,{startedEdit:!0,event:e,source:"api",editable:!0});let t=o.editCompDetails;t?.params?.suppressPreventDefault||e.preventDefault()}}}onSpaceKeyDown(e){let{gos:t,editSvc:i}=this.beans,{rowNode:o}=this.cellCtrl;!i?.isEditing(this.cellCtrl,{withOpenEditor:!0})&&ie(t)&&this.beans.selectionSvc?.handleSelectionEvent(e,o,"spaceKey"),e.preventDefault()}},cw=class extends tc{constructor(e,t,i){super(),this.cellCtrl=e,this.column=i,this.beans=t}onMouseEvent(e,t){if(!so(t))switch(e){case"click":this.onCellClicked(t);break;case"pointerdown":case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}}onCellClicked(e){if(this.beans.touchSvc?.handleCellDoubleClick(this,e))return;let{eventSvc:t,rangeSvc:i,editSvc:o,editModelSvc:r,frameworkOverrides:s,gos:n}=this.beans,l=e.ctrlKey||e.metaKey,{cellCtrl:a}=this,{column:d,cellPosition:h,rowNode:u}=a,c=lh(n,d,u,e);i&&l&&!c&&i.getCellRangeCount(h)>1&&i.intersectLastRange(!0);let g=a.createEvent(e,"cellClicked");g.isEventHandlingSuppressed=c,t.dispatchEvent(g);let p=d.getColDef();if(p.onCellClicked&&window.setTimeout(()=>{s.wrapOutgoing(()=>{p.onCellClicked(g)})},0),!c&&r?.getState(a)!=="editing"){let t=o?.isEditing(),i=o?.isRangeSelectionEnabledWhileEditing(),s=r?.getCellValidationModel().getCellValidationMap().size??0,n=r?.getRowValidationModel().getRowValidationMap().size??0;if(t&&(i||s>0||n>0))return;o?.shouldStartEditing(a,e)?o?.startEditing(a,{event:e}):o?.shouldStopEditing(a,e)&&("fullRow"===this.beans.gos.get("editType")?o?.stopEditing(a,{event:e,source:"edit"}):o?.stopEditing(void 0,{event:e,source:"edit"}))}}onCellDoubleClicked(e){let{column:t,beans:i,cellCtrl:o}=this,{eventSvc:r,frameworkOverrides:s,editSvc:n,editModelSvc:l,gos:a}=i,d=lh(a,o.column,o.rowNode,e),h=t.getColDef(),u=o.createEvent(e,"cellDoubleClicked");if(u.isEventHandlingSuppressed=d,r.dispatchEvent(u),"function"==typeof h.onCellDoubleClicked&&window.setTimeout(()=>{s.wrapOutgoing(()=>{h.onCellDoubleClicked(u)})},0),!d&&n?.shouldStartEditing(o,e)&&l?.getState(o)!=="editing"){let t=n?.isEditing(),i=n?.isRangeSelectionEnabledWhileEditing(),r=l?.getCellValidationModel().getCellValidationMap().size??0,s=l?.getRowValidationModel().getRowValidationMap().size??0;if(t&&(i||r>0||s>0))return;n?.startEditing(o,{event:e})}}onMouseDown(e){let{shiftKey:t}=e,i=e.target,{cellCtrl:o,beans:r}=this,{eventSvc:s,rangeSvc:n,rowNumbersSvc:l,focusSvc:a,gos:d,editSvc:h}=r,{column:u,rowNode:c,cellPosition:g}=o,p=lh(d,u,c,e),m=()=>
14{let t=o.createEvent(e,"cellMouseDown");t.isEventHandlingSuppressed=p,s.dispatchEvent(t)};if(p)return void m();if(this.isRightClickInExistingRange(e))return;let f=n&&!n.isEmpty(),C=this.containsWidget(i),v=op(u);if(!l||!v||l.handleMouseDownOnCell(g,e)){if(!t||!f){let t=h?.isEditing(o),r=d.get("enableCellTextSelection")&&e.defaultPrevented,s=(rK()||r)&&!t&&!eR(i)&&!C;o.focusCell(s,e)}if(t&&f&&!a.isCellFocused(g)){e.preventDefault();let t=a.getFocusedCell();if(t){let{column:i,rowIndex:o,rowPinned:r}=t,s=!!h?.isRangeSelectionEnabledWhileEditing?.();h?.isEditing(t)&&!s&&h?.stopEditing(t),s||a.setFocusedCell({column:i,rowIndex:o,rowPinned:r,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,sourceEvent:e})}}C||(n?.handleCellMouseDown(e,g),m())}}isRightClickInExistingRange(e){let{rangeSvc:t}=this.beans;if(t){let i=t.isCellInAnyRange(this.cellCtrl.cellPosition),o=iY(this.beans,e);if(i&&o)return!0}return!1}containsWidget(e){return eP(e,"ag-selection-checkbox",3)||eP(e,"ag-drag-handle",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;let{eventSvc:t,colHover:i}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),i?.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;let{eventSvc:t,colHover:i}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),i?.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;let t=this.cellCtrl.eGui,i=t.contains(e.target),o=t.contains(e.relatedTarget);return i&&o}},cb=class extends tc{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.column,this.rowNode=e.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}init(){this.eSetLeft=this.cellCtrl.getRootElement(),this.eContent=this.cellCtrl.eGui;let e=this.cellCtrl.getCellSpan();if(e||(this.setupColSpan(),this.setupRowSpan()),this.onLeftChanged(),this.onWidthChanged(),e||this._legacyApplyRowSpan(),e){let t=this.refreshSpanHeight.bind(this,e);t(),this.addManagedListeners(this.beans.eventSvc,{paginationChanged:t,recalculateRowBounds:t,pinnedHeightChanged:t})}}refreshSpanHeight(e){let t=e.getCellHeight();null!=t&&(this.eContent.style.height=`${t}px`)}onNewColumnsLoaded(){let e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this._legacyApplyRowSpan(!0))}onDisplayColumnsChanged(){let e=this.getColSpanningList();w(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eContent)return;let e=this.getCellWidth();this.eContent.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((e,t)=>e+t.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){let{column:e,rowNode:t}=this,i=e.getColSpan(t),o=[];if(1===i)o.push(e);else{let t=e,r=e.getPinned();for(let e=0;t&&e<i&&(o.push(t),!(!(t=this.beans.visibleCols.getColAfter(t))||P(t))&&r===t.getPinned());e++);}return o}onLeftChanged(){if(!this.eSetLeft)return;let e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eSetLeft.style.left=e+"px"}getCellLeft(){return(this.beans.gos.get("enableRtl")&&this.colsSpanning?v(this.colsSpanning):this.column).getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.printLayout||"left"===this.column.getPinned())return e;let{visibleCols:t}=this.beans,i=t.getColsLeftWidth();return"right"===this.column.getPinned()?i+t.bodyWidth+(e||0):i+(e||0)}_legacyApplyRowSpan(e){if(1===this.rowSpan&&!e)return;let t=ir(this.beans)*this.rowSpan;this.eContent.style.height=`${t}px`,this.eContent.style.zIndex="1"}destroy(){super.destroy()}},cy=0,cS=class extends tc{constructor(e,t,i,o){super(),this.column=e,this.rowNode=t,this.rowCtrl=o,this.rangeFeature=void 0,this.rowResizeFeature=void 0,this.positionFeature=void 0,this.customStyleFeature=void 0,this.editStyleFeature=void 0,this.mouseListener=void 0,this.keyboardListener=void 0,this.suppressRefreshCell=!1,this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.focusEventWhileNotReady=null,this.hasBeenFocused=!1,this.hasEdit=!1,this.tooltipFeature=void 0,this.editorTooltipFeature=void 0,this.beans=i,this.gos=i.gos,this.editSvc=i.editSvc,this.hasEdit=!!i.editSvc;
14let{colId:r}=e;this.instanceId=r+"-"+cy++,this.createCellPosition(),this.updateAndFormatValue(!1)}addFeatures(){let{beans:e}=this;this.positionFeature=new cb(this,e),this.customStyleFeature=e.cellStyles?.createCellCustomStyleFeature(this),this.editStyleFeature=e.editSvc?.createCellStyleFeature(this),this.mouseListener=new cw(this,e,this.column),this.keyboardListener=new cv(this,e,this.rowNode,this.rowCtrl),this.enableTooltipFeature();let{rangeSvc:t}=e;t&&ik(e.gos)&&(this.rangeFeature=t.createCellRangeFeature(this)),op(this.column)&&(this.rowResizeFeature=this.beans.rowNumbersSvc.createRowNumbersRowResizerFeature(this))}isCellSpanning(){return!1}getCellSpan(){}removeFeatures(){let e=this.beans.context;this.positionFeature=e.destroyBean(this.positionFeature),this.editorTooltipFeature=e.destroyBean(this.editorTooltipFeature),this.customStyleFeature=e.destroyBean(this.customStyleFeature),this.editStyleFeature=e.destroyBean(this.editStyleFeature),this.mouseListener=e.destroyBean(this.mouseListener),this.keyboardListener=e.destroyBean(this.keyboardListener),this.rangeFeature=e.destroyBean(this.rangeFeature),this.rowResizeFeature=e.destroyBean(this.rowResizeFeature),this.disableTooltipFeature()}enableTooltipFeature(e,t){this.tooltipFeature=this.beans.tooltipSvc?.enableCellTooltipFeature(this,e,t)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}enableEditorTooltipFeature(e){this.editorTooltipFeature&&this.disableEditorTooltipFeature(),this.editorTooltipFeature=this.beans.tooltipSvc?.setupCellEditorTooltip(this,e),cp(this.beans)}disableEditorTooltipFeature(){this.editorTooltipFeature=this.beans.context.destroyBean(this.editorTooltipFeature)}setComp(e,t,i,o,r,s,n){this.comp=e,this.eGui=t,this.printLayout=r,n??(n=this),this.addDomData(n),this.addFeatures(),n.addDestroyFunc(()=>this.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.setupFocus(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(o,n),this.refreshFirstAndLastStyles(),this.checkFormulaError(),this.refreshAriaColIndex(),this.positionFeature?.init(),this.customStyleFeature?.setComp(e),this.editStyleFeature?.setComp(e),this.tooltipFeature?.refreshTooltip(),this.keyboardListener?.init(),this.rangeFeature?.setComp(e),this.rowResizeFeature?.refreshRowResizer();let l=s?this.isCellEditable():void 0,a=!l&&this.hasEdit&&this.editSvc?.isEditing(this,{withOpenEditor:!0});if(l||a?this.editSvc?.startEditing(this,{startedEdit:!1,source:"api",silent:!0,continueEditing:!0,editable:l}):this.showValue(!1,!0),this.onCompAttachedFuncs.length){for(let e of this.onCompAttachedFuncs)e();this.onCompAttachedFuncs=[]}}checkFormulaError(){let e=!!this.beans.formula?.getFormulaError(this.column,this.rowNode);this.eGui.classList.toggle("formula-error",e)}setupAutoHeight(e,t){this.isAutoHeight=this.beans.rowAutoHeight?.setupCellAutoHeight(this,e,t)??!1}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){let e=this.column.getColDef();return null!=e.cellRenderer||null!=e.cellRendererSelector}getValueToDisplay(){return this.valueFormatted??this.value}getDeferLoadingCellRenderer(){let{beans:e,column:t}=this,{userCompFactory:i,ctrlsSvc:o,eventSvc:r}=e,s=t.getColDef(),n=this.createCellRendererParams();n.deferRender=!0;let l=rE(i,s,n);if(o.getGridBodyCtrl()?.scrollFeature?.isScrolling()){let e,t=new oQ(t=>{e=t}),[i]=this.addManagedListeners(r,{bodyScrollEnd:()=>{e(),i()}});return{loadingComp:l,onReady:t}}return{loadingComp:l,onReady:oQ.resolve()}}showValue(e,t){let i,{beans:o,column:r,rowNode:s,rangeFeature:n}=this,{userCompFactory:l}=o,a=this.getValueToDisplay(),d=s.stub&&s.groupData?.[r.getId()]==null,h=r.getColDef();if(d||this.isCellRenderer()){let e=this.createCellRendererParams();i=!d||op(r)?rS(l,h,e):rE(l,h,e)}if(!i&&!d&&o.findSvc?.isMatch(s,r)){let e=this.createCellRendererParams();i=rS(l,{...r.getColDef(),cellRenderer:"agFindCellRenderer"},e)}if(this.hasEdit&&this.editSvc.isBatchEditing()&&this.editSvc.isRowEditing(s,{checkSiblings:!0}
14)){let e=this.editSvc.prepDetailsDuringBatch(this,{compDetails:i,valueToDisplay:a});e&&(e.compDetails?i=e.compDetails:e.valueToDisplay&&(a=e.valueToDisplay))}this.comp.setRenderDetails(i,a,e),this.customRowDragComp?.refreshVisibility(),!t&&n&&e0(o,()=>n?.refreshRangeStyleAndHandle()),this.rowResizeFeature?.refreshRowResizer()}setupControlComps(){let e=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(e),!0),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.comp.setIncludeSelection(this.includeSelection),this.comp.setIncludeDndSource(this.includeDndSource),this.comp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}getCellValueClass(){let e="agCheckboxCellRenderer"===this.column.getColDef().cellRenderer,t="";return e&&(t=" ag-allow-overflow"),`ag-cell-value${t}`}isIncludeControl(e,t=!1){return(null==this.rowNode.rowPinned||t&&cf(this.rowNode))&&!!e}isCheckboxSelection(e){let{rowSelection:t,groupDisplayType:i}=this.beans.gridOptions,o=ix(t),r=og(this.column);return("custom"!==i||"selectionColumn"===o||!r)&&(e.checkboxSelection||r&&"object"==typeof t&&iR(t))}refreshShouldDestroy(){let e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(e),!0),i=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),o=this.includeDndSource!=this.isIncludeControl(e.dndSource),r=this.isAutoHeight!=this.column.isAutoHeight();return t||i||o||r}onPopupEditorClosed(){let{editSvc:e}=this.beans;e?.isEditing(this,{withOpenEditor:!0})&&e?.stopEditing(this,{source:e?.isBatchEditing()?"ui":"api"})}stopEditing(e=!1){let{editSvc:t}=this.beans;return t?.stopEditing(this,{cancel:e,source:t?.isBatchEditing()?"ui":"api"})??!1}createCellRendererParams(){let{value:e,valueFormatted:t,column:i,rowNode:o,comp:r,eGui:s,beans:{valueSvc:n,gos:l,editSvc:a}}=this;return iK(l,{value:e,valueFormatted:t,getValue:()=>n.getValueForDisplay({column:i,node:o,from:"edit"}).value,setValue:e=>a?.setDataValue({rowNode:o,column:i},e)||o.setDataValue(i,e),formatValue:this.formatValue.bind(this),data:o.data,node:o,pinned:i.getPinned(),colDef:i.getColDef(),column:i,refreshCell:this.refreshCell.bind(this),eGridCell:s,eParentOfValue:r.getParentOfValue(),registerRowDragger:(e,t,i,o)=>this.registerRowDragger(e,t,o),setTooltip:(e,t)=>{l.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(e,t),this.tooltipFeature?.refreshTooltip()}})}onCellChanged(e){e.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(e){if(this.refreshShouldDestroy()?this.rowCtrl?.recreateCell(this):this.refreshCell(e),this.hasEdit&&this.editCompDetails){let{editSvc:e,comp:t}=this;!t?.getCellEditor()&&e.isEditing(this,{withOpenEditor:!0})&&e.startEditing(this,{startedEdit:!1,source:"api",silent:!0})}}refreshCell({force:e,suppressFlash:t,newData:i}={}){let{editStyleFeature:o,customStyleFeature:r,rowCtrl:{rowEditStyleFeature:s},beans:{cellFlashSvc:n,filterManager:l},column:a,comp:d,suppressRefreshCell:h,tooltipFeature:u}=this;if(h)return;let{field:c,valueGetter:g,showRowGroup:p,enableCellChangeFlash:m}=a.getColDef(),f=!!d,C=this.updateAndFormatValue(f),v=e||null==c&&null==g&&null==p||i||C;if(f){if(v){this.showValue(!!i,!1);let e=l?.isSuppressFlashingCellsBecauseFiltering();t||e||!m||n?.flashCell(this),o?.applyCellStyles?.(),r?.applyUserStyles(),r?.applyClassesFromColDef(),s?.applyRowStyles(),this.checkFormulaError()}u?.refreshTooltip(),r?.applyCellClassRules()}}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(e){return this.callValueFormatter(e)??e}callValueFormatter(e){return this.beans.valueSvc.formatValue(this.column,this.rowNode,e)}updateAndFormatValue(e){let t=this.value,i=this.valueFormatted,{value:o,valueFormatted:r}=this.beans.valueSvc.getValueForDisplay({column:this.column,node:this.rowNode,includeValueFormatted:!0,from:"edit"});return this.value=o,this.valueFormatted=r,!e||!this.valuesAreEqual(t,this.value)||this.valueFormatted!=i}valuesAreEqual(e,t){let i=this.column.getColDef();return i.equals?i.equals(e,t):e===t}addDomData(e){let t=this.eGui;ia(this.beans.gos,t,lg,this),e.addDestroyFunc(()=>ia(this.beans.gos,t,lg,null))}createEvent(e,t){let{rowNode:i,column:o,value:r,beans:s}=this;return function(e,t,i,{rowNode:o,column:r},s){return iK(e.gos,{type:i,node:o,data:o.data,value:s,column:r,colDef:r.getColDef(),rowPinned:o.rowPinned,event:t,rowIndex:o.rowIndex})}(s,e,t,{rowNode:i,column:o},r)}processCharacter(e){this.keyboardListener?.processCharacter(e)}onKeyDown(e){this.keyboardListener?.onKeyDown(e)}onMouseEvent(e,t){this.mouseListener?.onMouseEvent(e,t)}
14getColSpanningList(){return this.positionFeature?.getColSpanningList()??[]}onLeftChanged(){this.comp&&this.positionFeature?.onLeftChanged()}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){let{comp:e,column:t,beans:i}=this;sj(e,t,i.visibleCols)}refreshAriaColIndex(){let e=this.beans.visibleCols.getAriaColIndex(this.column);eh(this.eGui,e)}onWidthChanged(){return this.positionFeature?.onWidthChanged()}getRowPosition(){let{rowIndex:e,rowPinned:t}=this.cellPosition;return{rowIndex:e,rowPinned:t}}updateRangeBordersIfRangeCount(){this.comp&&this.rangeFeature?.updateRangeBordersIfRangeCount()}onCellSelectionChanged(){this.comp&&this.rangeFeature?.onCellSelectionChanged()}isRangeSelectionEnabled(){return null!=this.rangeFeature}focusCell(e=!1,t){let i=this.editSvc?.allowedFocusTargetOnValidation(this);i&&i!==this||this.beans.focusSvc.setFocusedCell({...this.getFocusedCellPosition(),forceBrowserFocus:e,sourceEvent:t})}restoreFocus(e=!1){let{beans:{editSvc:t,focusSvc:i},comp:o}=this;if(!o||t?.isEditing(this)||!this.isCellFocused()||!i.shouldTakeFocus())return;let r=()=>{if(!this.isAlive())return;let e=o.getFocusableElement();this.isCellFocused()&&e.focus({preventScroll:!0})};if(e)return void setTimeout(r,0);r()}onRowIndexChanged(){this.createCellPosition(),this.onCellFocused(),this.restoreFocus(),this.rangeFeature?.onCellSelectionChanged(),this.rowResizeFeature?.refreshRowResizer()}onSuppressCellFocusChanged(e){let t=this.eGui;t&&(op(this.column)&&(e=!0),eZ(t,"tabindex",e?void 0:-1))}onFirstRightPinnedChanged(){if(!this.comp)return;let e=this.column.isFirstRightPinned();this.comp.toggleCss("ag-cell-first-right-pinned",e)}onLastLeftPinnedChanged(){if(!this.comp)return;let e=this.column.isLastLeftPinned();this.comp.toggleCss("ag-cell-last-left-pinned",e)}checkCellFocused(){return this.beans.focusSvc.isCellFocused(this.cellPosition)}isCellFocused(){let e=this.checkCellFocused();return this.hasBeenFocused||(this.hasBeenFocused=e),e}setupFocus(){this.restoreFocus(!0),this.onCellFocused(this.focusEventWhileNotReady??void 0)}onCellFocused(e){let{beans:t}=this;if(sR(t))return;if(!this.comp){e&&(this.focusEventWhileNotReady=e);return}let i=this.isCellFocused(),o=t.editSvc?.isEditing(this)??!1;if(this.comp.toggleCss("ag-cell-focus",i),i&&(e?.forceBrowserFocus||!this.hasBrowserFocus()&&this.beans.focusSvc.shouldTakeFocus())){let i=this.comp.getFocusableElement();if(o){let e=r4(i,null,!0);e.length&&(i=e[0])}let r=!e||e.preventScrollOnBrowserFocus;i.focus({preventScroll:r}),eJ(t,i)}i&&this.focusEventWhileNotReady&&(this.focusEventWhileNotReady=null),i&&e&&this.rowCtrl.announceDescription()}createCellPosition(){let{rowIndex:e,rowPinned:t}=this.rowNode;this.cellPosition={rowIndex:e,rowPinned:x(t),column:this.column}}applyStaticCssClasses(){let{comp:e}=this;e.toggleCss("ag-cell",!0),e.toggleCss("ag-cell-not-inline-editing",!0);let t=!0==this.column.isAutoHeight();e.toggleCss("ag-cell-auto-height",t),e.toggleCss("ag-cell-normal-height",!t)}onColumnHover(){this.beans.colHover?.onCellColumnHover(this.column,this.comp)}onColDefChanged(){this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editSvc?.isEditing(this)?this.editSvc?.handleColDefChanged(this):this.refreshOrDestroyCell({force:!0,suppressFlash:!0}))}setWrapText(){let e=!0==this.column.getColDef().wrapText;this.comp.toggleCss("ag-cell-wrap-text",e)}dispatchCellContextMenuEvent(e){let t=this.column.getColDef(),i=this.createEvent(e,"cellContextMenu"),{beans:o}=this;o.eventSvc.dispatchEvent(i),t.onCellContextMenu&&window.setTimeout(()=>{o.frameworkOverrides.wrapOutgoing(()=>{t.onCellContextMenu(i)})},0)}getCellRenderer(){return this.comp?.getCellRenderer()??null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.isCellFocused()&&this.hasBrowserFocus()&&this.beans.focusSvc.attemptToRecoverFocus(),super.destroy()}hasBrowserFocus(){return this.eGui?.contains(O(this.beans))??!1}createSelectionCheckbox(){let e=this.beans.selectionSvc?.createCheckboxSelectionComponent();if(e)return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e}createDndSource(){let e=this.beans.registry.createDynamicBean("dndSourceComp",!1,this.rowNode,this.column,this.eGui);return e&&this.beans.context.createBean(e),e}registerRowDragger(e,t,i){if(this.customRowDragComp)return void this.customRowDragComp.setDragElement(e,t);let o=this.createRowDragComp(e,t,i);o&&(this.customRowDragComp=o,this.addDestroyFunc(()=>{this.beans.context.destroyBean(o),this.customRowDragComp=null}),o.refreshVisibility())}createRowDragComp(e,t,i){let o=this.beans.rowDragSvc?.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,e,t,i);if(o)return this.beans.context.createBean(o),o}cellEditorAttached(){for(let e of this.onEditorAttachedFuncs)e();this.onEditorAttachedFuncs=[]}setFocusedCellPosition(e){}getFocusedCellPosition(){return this.cellPosition}refreshAriaRowIndex(){}getRootElement(){return this.eGui}};function cR(e,t,i,o,r,s){if(null==i&&null==t)return;let n={},l={},a=(e,t)=>{for(let i of e.split(" "))""!=i.trim()&&t(i)};if(i){let t=Object.keys(i);for(let r=0;r<t.length;r++){let s,d=t[r],h=i[d];"string"==typeof h?s=!e||e.evaluate(h,o):"function"==typeof h&&(s=h(o)),a(d,e=>{s?n[e]=!0:l[e]=!0})}}if(t&&s)for(let e of Object.keys(t))a(e,e=>{n[e]||(l[e]=!0)});
14s&&Object.keys(l).forEach(s),Object.keys(n).forEach(r)}function cE(e){if(e.group)return e.level;let t=e.parent;return t?t.level+1:0}var cx=class extends tc{constructor(){super(...arguments),this.beanName="rowStyleSvc"}processClassesFromGridOptions(e,t){let i=this.gos,o=t=>{if("string"==typeof t)e.push(t);else if(Array.isArray(t))for(let i of t)e.push(i)},r=i.get("rowClass");r&&o(r);let s=i.getCallback("getRowClass");s&&o(s({data:t.data,node:t,rowIndex:t.rowIndex}))}preProcessRowClassRules(e,t){this.processRowClassRules(t,t=>{e.push(t)},()=>{})}processRowClassRules(e,t,i){let{gos:o,expressionSvc:r}=this.beans,s=iK(o,{data:e.data,node:e,rowIndex:e.rowIndex});cR(r,void 0,o.get("rowClassRules"),s,t,i)}processStylesFromGridOptions(e){let t,i=this.gos,o=i.get("rowStyle"),r=i.getCallback("getRowStyle");if(r&&(t=r({data:e.data,node:e,rowIndex:e.rowIndex})),t||o)return Object.assign({},o,t)}},cF=0,cP=class extends tc{constructor(e,t,i,o,r){super(),this.rowNode=e,this.useAnimationFrameForCreate=o,this.printLayout=r,this.focusEventWhileNotReady=null,this.allRowGuis=[],this.active=!0,this.centerCellCtrls={list:[],map:{}},this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}},this.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.rowDragComps=[],this.lastMouseDownOnDragger=!1,this.emptyStyle={},this.updateColumnListsPending=!1,this.rowId=null,this.businessKey=null,this.beans=t,this.gos=t.gos,this.paginationPage=t.pagination?.getCurrentPage()??0,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=e.id+"-"+cF++,this.rowId=B(e.id),this.initRowBusinessKey(),this.rowFocused=t.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=cE(this.rowNode),this.setRowType(),this.setAnimateFlags(i),this.rowStyles=this.processStylesFromGridOptions(),this.rowEditStyleFeature=t.editSvc?.createRowStyleFeature
14(this),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if("function"!=typeof this.businessKeyForNodeFunc)return;let e=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=B(e)}updateGui(e,t){"left"===e?this.leftGui=t:"right"===e?this.rightGui=t:"fullWidth"===e?this.fullWidthGui=t:this.centerGui=t}setComp(e,t,i,o){let{context:r,rowRenderer:s}=this.beans,n={rowComp:e,element:t,containerType:i,compBean:o=s_(this,r,o)};this.allRowGuis.push(n),this.updateGui(i,n),this.initialiseRowComp(n);let l=this.rowNode,a="FullWidthLoading"===this.rowType||l.stub,d=!l.data&&"infinite"===this.beans.rowModel.getType();a||d||l.rowPinned||s.dispatchFirstDataRenderedEvent(),this.setupFocus()}unsetComp(e){this.allRowGuis=this.allRowGuis.filter(t=>t.containerType!==e),this.updateGui(e,void 0)}isCacheable(){return"FullWidthDetail"===this.rowType&&this.gos.get("keepDetailRows")}setCached(e){let t=e?"none":"";for(let e of this.allRowGuis)e.element.style.display=t}initialiseRowComp(e){let t=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(e),this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(!1,e),ie(t)&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);let i=e.rowComp;for(let t of this.getInitialRowClasses(e.containerType))i.toggleCss(t,!0);this.executeSlideAndFadeAnimations(e),this.rowNode.group&&eo(e.element,!0==this.rowNode.expanded),this.setRowCompRowId(i),this.setRowCompRowBusinessKey(i),ia(t,e.element,lm,this),e.compBean.addDestroyFunc(()=>ia(t,e.element,lm,null)),this.useAnimationFrameForCreate?this.beans.animationFrameSvc.createTask(this.addHoverFunctionality.bind(this,e),this.rowNode.rowIndex,"p2",!1):this.addHoverFunctionality(e),this.isFullWidth()&&this.setupFullWidth(e),t.get("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameSvc.addDestroyTask(()=>{this.isAlive()&&e.rowComp.toggleCss("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(e){null!=this.businessKey&&e.setRowBusinessKey(this.businessKey)}setRowCompRowId(e){let t=B(this.rowNode.id);this.rowId=t,null!=t&&e.setRowId(t)}executeSlideAndFadeAnimations(e){let{containerType:t}=e;this.slideInAnimation[t]&&(tC(()=>{this.onTopChanged()}),this.slideInAnimation[t]=!1),this.fadeInAnimation[t]&&(tC(()=>{e.rowComp.toggleCss("ag-opacity-zero",!1)}),this.fadeInAnimation[t]=!1)}addRowDraggerToRow(e){let t=this.beans.rowDragSvc?.createRowDragCompForRow(this.rowNode,e.element);if(!t)return;let i=this.createBean(t,this.beans.context);this.rowDragComps.push(i),e.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(e=>e!==i),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,this.beans.context),this.destroyBean(i,this.beans.context)})}setupFullWidth(e){let t=this.getPinnedForContainer(e.containerType),i=this.createFullWidthCompDetails(e.element,t);e.rowComp.showFullWidth(i)}getFullWidthCellRenderers(){return this.gos.get("embedFullWidthRows")?this.allRowGuis.map(e=>e?.rowComp?.getFullWidthCellRenderer()):[this.fullWidthGui?.rowComp?.getFullWidthCellRenderer()]}executeProcessRowPostCreateFunc(){let e=this.gos.getCallback("processRowPostCreate");e&&this.areAllContainersReady()&&e({eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})}areAllContainersReady(){let{leftGui:e,centerGui:t,rightGui:i,beans:{visibleCols:o}}=this,r=!!e||!o.isPinningLeft(),s=!!i||!o.isPinningRight();return r&&!!t&&s}isNodeFullWidthCell(){if(this.rowNode.detail)return!0;let e=this.beans.gos.getCallback("isFullWidthRow");return!!e&&e({rowNode:this.rowNode})}setRowType(){let{rowNode:e,gos:t,beans:{colModel:i}}=this,o=e.stub&&!t.get("suppressServerSideFullWidthLoadingRow")&&!t.get("groupHideOpenParents"),r=this.isNodeFullWidthCell(),s=t.get("masterDetail")&&e.detail,n=iv(t,e,i.isPivotMode());o?this.rowType="FullWidthLoading":s?this.rowType="FullWidthDetail":r?this.rowType="FullWidth":n?this.rowType="FullWidthGroup":this.rowType="Normal"}updateColumnLists(e=!1,t=!1){if(this.isFullWidth())return;let{animationFrameSvc:i}=this.beans;if(!i?.active||e||this.printLayout)return void this.updateColumnListsImpl(t);this.updateColumnListsPending||(i.createTask(()=>{this.active&&this.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"p1",!1),this.updateColumnListsPending=!0)}getNewCellCtrl(e){if(!this.beans.rowSpanSvc?.isCellSpanning(e,this.rowNode))return new cS(e,this.rowNode,this.beans,this)}isCorrectCtrlForSpan(e){return!this.beans.rowSpanSvc?.isCellSpanning(e.column,this.rowNode)}createCellCtrls(e,t,i=null){let o={list:[],map:{}},r=(e,t,i)=>{null!=i?o.list.splice(i,0,t):o.list.push(t),o.map[e]=t},s=[];for(let i of t){let t=i.getInstanceId(),o=e.map[t];o&&!this.isCorrectCtrlForSpan(o)&&(o.destroy(),o=void 0),o||(o=this.getNewCellCtrl(i)),o&&r(t,o)}for(let t of e.list){let e=t.column.getInstanceId();null==o.map[e]&&(this.isCellEligibleToBeRemoved(t,i)?t.destroy():s.push([e,t]))}if(s.length)for(let[e,t]of s){let i=o.list.findIndex(e=>e.column.getLeft()>t.column.getLeft());r(e,t,-1===i?void 0:Math.max(i-1,0))}let{focusSvc:n,visibleCols:l}=this.beans,a=n.getFocusedCell();if(a&&a.column.getPinned()==i){let e=a.column.getInstanceId();if(!o.map[e]&&l.allCols.includes(a.column)){let t=this.createFocusedCellCtrl();if(t){let i=o.list.findIndex(e=>e.column.getLeft()>t.column.getLeft());r(e,t,-1===i?void 0:Math.max(i-1,0))}}}return o}createFocusedCellCtrl(){let{focusSvc:e,rowSpanSvc:t}=this.beans,i=e.getFocusedCell();if(!i)return;let o=t?.getCellSpan(i.column,this.rowNode);if(o){if(o.firstNode!==this.rowNode||!o.doesSpanContain(i))return}else if(!e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned))return;return this.getNewCellCtrl(i.column)}updateColumnListsImpl(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)}setCellCtrls(e){for(let t of this.allRowGuis){let i=this.getCellCtrlsForContainer(t.containerType);t.rowComp.setCellCtrls(i,e)}}getCellCtrlsForContainer(e){switch(e){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){let e=this.beans.colViewport,t=this.beans.visibleCols;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t.allCols),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{let i=e.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,i);let o=t.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,o,"left");let r=t.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,r,"right")}}
14isCellEligibleToBeRemoved(e,t){let{column:i}=e;if(i.getPinned()!=t||!this.isCorrectCtrlForSpan(e))return!0;let{visibleCols:o,editSvc:r}=this.beans,s=r?.isEditing(e),n=e.isCellFocused();return!s&&!n||!(o.allCols.indexOf(i)>=0)}getDomOrder(){return this.gos.get("ensureDomOrder")||t9(this.gos,"print")}listenOnDomOrder(e){let t=()=>{e.rowComp.setDomOrder(this.getDomOrder())};e.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],t)}setAnimateFlags(e){if(this.rowNode.sticky||!e)return;let t=F(this.rowNode.oldRowTop),{visibleCols:i}=this.beans,o=i.isPinningLeft(),r=i.isPinningRight();if(t){let{slideInAnimation:e}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){e.fullWidth=!0;return}e.center=!0,e.left=o,e.right=r}else{let{fadeInAnimation:e}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){e.fullWidth=!0;return}e.center=!0,e.left=o,e.right=r}}isFullWidth(){return"Normal"!==this.rowType}refreshFullWidth(){let e=(e,t)=>!e||e.rowComp.refreshFullWidth(()=>this.createFullWidthCompDetails(e.element,t).params),t=e(this.fullWidthGui,null),i=e(this.centerGui,null),o=e(this.leftGui,"left"),r=e(this.rightGui,"right");return t&&i&&o&&r}addListeners(){let{beans:e,gos:t,rowNode:i}=this,{expansionSvc:o,eventSvc:r,context:s,rowSpanSvc:n}=e;this.addManagedListeners(this.rowNode,{heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this),...o?.getRowExpandedListeners(this)??{}}),i.detail&&this.addManagedListeners(i.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(i,{dataChanged:this.onRowNodeDataChanged.bind(this),cellChanged:this.postProcessCss.bind(this),rowHighlightChanged:this.onRowNodeHighlightChanged.bind(this),draggingChanged:this.postProcessRowDragging.bind(this),uiLevelChanged:this.onUiLevelChanged.bind(this),rowPinned:this.onRowPinned.bind(this)}),this.addManagedListeners(r,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:this.refreshFirstAndLastRowStyles.bind(this),columnMoved:()=>this.updateColumnLists()}),n&&this.addManagedListeners(n,{spannedCellsUpdated:({pinned:e})=>{(!e||i.rowPinned)&&this.updateColumnLists()}}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,s),this.tooltipFeature=this.destroyBean(this.tooltipFeature,s),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,s)}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{if(t.get("rowDragEntireRow")){for(let e of this.allRowGuis)this.addRowDraggerToRow(e);return}this.rowDragComps=this.destroyBeans(this.rowDragComps,s)}),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>{for(let e of this.getAllCellCtrls())e.onRowIndexChanged()},cellChanged:e=>{for(let t of this.getAllCellCtrls())t.onCellChanged(e)}})}onRowPinned(){for(let e of this.allRowGuis)e.rowComp.toggleCss("ag-row-pinned-source",!!this.rowNode.pinnedSibling)}onRowNodeDataChanged(e){this.refreshRow({suppressFlash:!e.update,newData:!e.update})}refreshRow(e){if(this.isFullWidth()!==!!this.isNodeFullWidthCell())return void this.beans.rowRenderer.redrawRow(this.rowNode);if(this.isFullWidth()){this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode);return}for(let t of this.getAllCellCtrls())t.refreshCell(e);for(let e of this.allRowGuis)this.setRowCompRowId(e.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(e.rowComp);this.onRowSelected(),this.postProcessCss()}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.rowEditStyleFeature?.applyRowStyles(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){let e=this.beans.rowDropHighlightSvc,t=e?.row===this.rowNode?e.position:"none",i="above"===t,o="inside"===t,r="below"===t,s="none"!==t,n=i||r,l=this.rowNode.uiLevel,a=n&&l>0,d=a?l.toString():"0";for(let e of this.allRowGuis){let t=e.rowComp;t.toggleCss("ag-row-highlight-above",i),t.toggleCss("ag-row-highlight-inside",o),t.toggleCss("ag-row-highlight-below",r),t.toggleCss("ag-row-highlight-indent",a),s?e.element.style.setProperty("--ag-row-highlight-level",d):e.element.style.removeProperty("--ag-row-highlight-level")}}postProcessRowDragging(){let e=this.rowNode.dragging;for(let t of this.allRowGuis)t.rowComp.toggleCss("ag-row-dragging",e)}onDisplayedColumnsChanged(){this.updateColumnLists(!0),this.beans.rowAutoHeight?.requestCheckAutoHeight()}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:x(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}onKeyboardNavigate(e){let t=this.findFullWidthInfoForEvent(e);
14if(!t)return;let{rowGui:i,column:o}=t;if(i.element!==e.target)return;let r=this.rowNode,{focusSvc:s,navigation:n}=this.beans,l=s.getFocusedCell(),a={rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:l?.column??o};n?.navigateToNextCell(e,e.key,a,!0),e.preventDefault()}onTabKeyDown(e){if(e.defaultPrevented||so(e))return;let t=this.allRowGuis.find(t=>t.element.contains(e.target)),i=t?t.element:null,o=i===e.target,r=O(this.beans),s=!1;i&&r&&(s=i.contains(r)&&r.classList.contains("ag-cell"));let n=null;o||s||(n=r8(this.beans,i,!1,e.shiftKey)),(this.isFullWidth()&&o||!n)&&this.beans.navigation?.onTabKeyDown(this,e)}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){let e=this.allRowGuis.find(e=>eO(e.element))?.element;return e?e.getBoundingClientRect().top:0}onSuppressCellFocusChanged(e){let t=this.isFullWidth()&&e?void 0:this.gos.get("tabIndex");for(let e of this.allRowGuis)eZ(e.element,"tabindex",t)}setupFocus(){this.isFullWidth()&&(this.restoreFullWidthFocus(!0),this.onFullWidthRowFocused(this.focusEventWhileNotReady??void 0))}restoreFullWidthFocus(e=!1){let{focusSvc:t,editSvc:i}=this.beans;if(i?.isEditing(this)||!t.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned)||!t.shouldTakeFocus())return;let o=this.getFullWidthRowGuiForFocus();if(!o)return;let r=()=>{this.isAlive()&&t.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned)&&o.element.focus({preventScroll:!0})};if(e)return void setTimeout(r,0);r()}getFullWidthRowGuiForFocus(e){if(this.fullWidthGui)return this.fullWidthGui;let t=this.beans.focusSvc.getFocusedCell(),i=this.beans.colModel.getCol(e?.column??t?.column);if(!i)return;let o=i?.pinned;return"right"===o?this.rightGui:"left"===o?this.leftGui:this.centerGui}setFullWidthRowFocusedClass(e,t){this.forEachGui(void 0,i=>{i.element.classList.toggle("ag-full-width-focus",t&&i===e)})}onFullWidthRowFocused(e){let{focusSvc:t}=this.beans;if(!(this.isFullWidth()&&t.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned)))return void this.setFullWidthRowFocusedClass(void 0,!1);let i=this.getFullWidthRowGuiForFocus(e);if(!i){e&&(this.focusEventWhileNotReady=e),this.setFullWidthRowFocusedClass(void 0,!1);return}this.setFullWidthRowFocusedClass(i,!0),this.focusEventWhileNotReady=null,e?.forceBrowserFocus&&i.element.focus({preventScroll:!0})}recreateCell(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),e.destroy(),this.updateColumnLists()}removeCellCtrl(e,t){let i={list:[],map:{}};for(let o of e.list)o!==t&&(i.list.push(o),i.map[o.column.getInstanceId()]=o);return i}onMouseEvent(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"pointerdown":case"touchstart":case"mousedown":this.onRowMouseDown(t)}}createRowEvent(e,t){let{rowNode:i}=this;return iK(this.gos,{type:e,node:i,data:i.data,rowIndex:i.rowIndex,rowPinned:i.rowPinned,event:t})}createRowEventWithSource(e,t){let i=this.createRowEvent(e,t);return i.source=this,i}onRowDblClick(e){if(so(e))return;let t=this.createRowEventWithSource("rowDoubleClicked",e);t.isEventHandlingSuppressed=this.isSuppressMouseEvent(e),this.beans.eventSvc.dispatchEvent(t)}findFullWidthInfoForEvent(e){if(!e)return;let t=this.findFullWidthRowGui(e.target),i=this.getColumnForFullWidth(t);if(t&&i)return{rowGui:t,column:i}}findFullWidthRowGui(e){return this.allRowGuis.find(t=>t.element.contains(e))}getColumnForFullWidth(e){let{visibleCols:t}=this.beans;switch(e?.containerType){case"center":return t.centerCols[0];case"left":return t.leftCols[0];case"right":return t.rightCols[0];default:return t.allCols[0]}}onRowMouseDown(e){if(this.lastMouseDownOnDragger=eP(e.target,"ag-row-drag",3),!this.isFullWidth()||this.isSuppressMouseEvent(e))return;let{rangeSvc:t,focusSvc:i}=this.beans;t?.removeAllCellRanges();let o=this.findFullWidthInfoForEvent(e);if(!o)return;let{rowGui:r,column:s}=o,n=r.element,l=e.target,a=this.rowNode,d=e.defaultPrevented||rK();n&&n.contains(l)&&eR(l)&&(d=!1),i.setFocusedCell({rowIndex:a.rowIndex,column:s,rowPinned:a.rowPinned,forceBrowserFocus:d})}isSuppressMouseEvent(e){let{gos:t,rowNode:i}=this;if(this.isFullWidth()){var o;let r=this.findFullWidthRowGui(e.target);return o=r?.rowComp.getFullWidthCellRendererParams(),lu(t,void 0,i,e,o?.suppressMouseEventHandling)}let r=lp(t,e.target);return null!=r&&lh(t,r.column,i,e)}onRowClick(e){if(so(e)||this.lastMouseDownOnDragger)return;let t=this.isSuppressMouseEvent(e),{eventSvc:i,selectionSvc:o}=this.beans,r=this.createRowEventWithSource("rowClicked",e);r.isEventHandlingSuppressed=t,i.dispatchEvent(r),t||o?.handleSelectionEvent(e,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(e){"FullWidthDetail"===this.rowType&&this.beans.masterDetailSvc?.setupDetailRowAutoHeight(this,e)}
14createFullWidthCompDetails(e,t){let{gos:i,rowNode:o}=this,r=iK(i,{fullWidth:!0,data:o.data,node:o,value:o.key,valueFormatted:o.key,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(e,t,i,o)=>this.addFullWidthRowDragging(e,t,i,o),setTooltip:(e,t)=>{i.assertModuleRegistered("Tooltip",3),this.setupFullWidthRowTooltip(e,t)}}),s=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return s.getCompDetailsFromGridOptions(rb,"agDetailCellRenderer",r,!0);case"FullWidthGroup":{let{value:e,valueFormatted:t}=this.beans.valueSvc.getValueForDisplay({node:this.rowNode,includeValueFormatted:!0,from:"edit"});return r.value=e,r.valueFormatted=t,s.getCompDetailsFromGridOptions(rw,"agGroupRowRenderer",r,!0)}case"FullWidthLoading":return s.getCompDetailsFromGridOptions(rv,"agLoadingCellRenderer",r,!0);default:return s.getCompDetailsFromGridOptions(rC,void 0,r,!0)}}setupFullWidthRowTooltip(e,t){this.fullWidthGui&&(this.tooltipFeature=this.beans.tooltipSvc?.setupFullWidthRowTooltip(this.tooltipFeature,this,e,t))}addFullWidthRowDragging(e,t,i="",o){let{rowDragSvc:r,context:s}=this.beans;if(!r||!this.isFullWidth())return;let n=r.createRowDragComp(()=>i,this.rowNode,void 0,e,t,o);this.createBean(n,s),this.addDestroyFunc(()=>{this.destroyBean(n,s)})}onUiLevelChanged(){let e=cE(this.rowNode);if(this.rowLevel!=e){let t="ag-row-level-"+e,i="ag-row-level-"+this.rowLevel;for(let e of this.allRowGuis)e.rowComp.toggleCss(t,!0),e.rowComp.toggleCss(i,!1)}this.rowLevel=e}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getLastRow()}refreshFirstAndLastRowStyles(){let e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();if(this.firstRowOnPage!==e)for(let t of(this.firstRowOnPage=e,this.allRowGuis))t.rowComp.toggleCss("ag-row-first",e);if(this.lastRowOnPage!==t)for(let e of(this.lastRowOnPage=t,this.allRowGuis))e.rowComp.toggleCss("ag-row-last",t)}getAllCellCtrls(){return 0===this.leftCellCtrls.list.length&&0===this.rightCellCtrls.list.length?this.centerCellCtrls.list:[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){let e=[];
14if(this.beans.rowStyleSvc?.processClassesFromGridOptions(e,this.rowNode),e.length)for(let t of e)for(let e of this.allRowGuis)e.rowComp.toggleCss(t,!0)}postProcessRowClassRules(){this.beans.rowStyleSvc?.processRowClassRules(this.rowNode,e=>{for(let t of this.allRowGuis)t.rowComp.toggleCss(e,!0)},e=>{for(let t of this.allRowGuis)t.rowComp.toggleCss(e,!1)})}setStylesFromGridOptions(e,t){e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(t,e=>e.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(e){return"left"===e||"right"===e?e:null}getInitialRowClasses(e){let t=this.getPinnedForContainer(e),i=this.isFullWidth(),{rowNode:o,beans:r}=this,s=[];s.push("ag-row"),s.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation[e]&&s.push("ag-opacity-zero"),s.push(o.rowIndex%2==0?"ag-row-even":"ag-row-odd"),o.isRowPinned()&&(s.push("ag-row-pinned"),r.pinnedRowModel?.isManual()&&s.push("ag-row-pinned-manual")),!o.isRowPinned()&&o.pinnedSibling&&s.push("ag-row-pinned-source"),o.isSelected()&&s.push("ag-row-selected"),o.footer&&s.push("ag-row-footer"),s.push("ag-row-level-"+this.rowLevel),o.stub&&s.push("ag-row-loading"),i&&s.push("ag-full-width-row"),r.expansionSvc?.addExpandedCss(s,o),o.dragging&&s.push("ag-row-dragging");let{rowStyleSvc:n}=r;return n&&(n.processClassesFromGridOptions(s,o),n.preProcessRowClassRules(s,o)),s.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&s.push("ag-row-first"),this.isLastRowOnPage()&&s.push("ag-row-last"),i&&("left"===t&&s.push("ag-cell-last-left-pinned"),"right"===t&&s.push("ag-cell-first-right-pinned")),s}processStylesFromGridOptions(){return this.beans.rowStyleSvc?.processStylesFromGridOptions(this.rowNode)??this.emptyStyle}onRowSelected(e){this.beans.selectionSvc?.onRowCtrlSelected(this,e=>{(e===this.centerGui||e===this.fullWidthGui)&&this.announceDescription()},e)}announceDescription(){this.beans.selectionSvc?.announceAriaRowSelection(this.rowNode)}addHoverFunctionality(e){if(!this.active)return;let{element:t,compBean:i}=e,{rowNode:o,beans:r,gos:s}=this;i.addManagedListeners(t,{pointerenter:e=>{"mouse"===e.pointerType&&o.dispatchRowEvent("mouseEnter")},pointerleave:e=>{"mouse"===e.pointerType&&o.dispatchRowEvent("mouseLeave")}}),i.addManagedListeners(o,{mouseEnter:()=>{r.dragSvc?.dragging||s.get("suppressRowHoverHighlight")||(t.classList.add("ag-row-hover"),o.setHovered(!0))},mouseLeave:()=>{this.resetHoveredStatus(t)}})}resetHoveredStatus(e){for(let t of e?[e]:this.allRowGuis.map(e=>e.element))t.classList.remove("ag-row-hover");this.rowNode.setHovered(!1)}roundRowTopToBounds(e){let t=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition();return Math.min(Math.max(this.applyPaginationOffset(t.top,!0)-100,e),this.applyPaginationOffset(t.bottom,!0)+100)}forEachGui(e,t){if(e)t(e);else for(let e of this.allRowGuis)t(e)}isRowRendered(){return this.allRowGuis.length>0}onRowHeightChanged(e){if(null==this.rowNode.rowHeight)return;let t=this.rowNode.rowHeight,i=this.beans.environment.getDefaultRowHeight(),o=it(this.gos)?io(this.beans,this.rowNode).height:void 0,r=o?`${Math.min(i,o)-2}px`:void 0;this.forEachGui(e,e=>{e.element.style.height=`${t}px`,r&&e.element.style.setProperty("--ag-line-height",r)})}destroyFirstPass(e=!1){this.active=!1;let{rowNode:t}=this;if(!e&&id(this.gos)&&!t.sticky)if(null!=t.rowTop){let e=this.roundRowTopToBounds(t.rowTop);this.setRowTop(e)}else for(let e of this.allRowGuis)e.rowComp.toggleCss("ag-opacity-zero",!0);this.fullWidthGui?.element.contains(O(this.beans))&&this.beans.focusSvc.attemptToRecoverFocus(),t.setHovered(!1);let i=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(i),this.beans.eventSvc.dispatchEvent(i),super.destroy()}destroySecondPass(){this.allRowGuis.length=0;let e=e=>{for(let t of e.list)t.destroy();return{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)}setFocusedClasses(e){this.forEachGui(e,e=>{e.rowComp.toggleCss("ag-row-focus",this.rowFocused),e.rowComp.toggleCss("ag-row-no-focus",!this.rowFocused)})}onCellFocusChanged(){let{focusSvc:e}=this.beans,t=e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);
14t!==this.rowFocused&&(this.rowFocused=t,this.setFocusedClasses())}onPaginationChanged(){let e=this.beans.pagination?.getCurrentPage()??0;this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(e,t=!1){return this.rowNode.isRowPinned()||this.rowNode.sticky?e:e+this.beans.pageBounds.getPixelOffset()*(t?1:-1)}setRowTop(e){if(!this.printLayout&&F(e)){let t=this.applyPaginationOffset(e),i=this.rowNode.isRowPinned()||this.rowNode.sticky?t:this.beans.rowContainerHeight.getRealPixelPosition(t),o=`${i}px`;this.setRowTopStyle(o)}}getInitialRowTop(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0}getInitialTransform(e){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(e)})`}getInitialRowTopShared(e){let t;if(this.printLayout)return"";let i=this.rowNode;if(i.sticky)t=i.stickyRowTop;else{let o=this.slideInAnimation[e]?this.roundRowTopToBounds(i.oldRowTop):i.rowTop,r=this.applyPaginationOffset(o);t=i.isRowPinned()?r:this.beans.rowContainerHeight.getRealPixelPosition(r)}return t+"px"}setRowTopStyle(e){for(let t of this.allRowGuis)this.suppressRowTransform?t.rowComp.setTop(e):t.rowComp.setTransform(`translateY(${e})`)}getCellCtrl(e,t=!1){let i=null;for(let t of this.getAllCellCtrls())t.column==e&&(i=t);if(null!=i||t)return i;for(let t of this.getAllCellCtrls())t?.getColSpanningList().indexOf(e)>=0&&(i=t);return i}onRowIndexChanged(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}updateRowIndexes(e){let t=this.rowNode.getRowIndexString();if(null===t)return;let i=(this.beans.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.beans.filterManager?.getHeaderRowCount()??0),o=this.rowNode.rowIndex%2==0,r=i+this.rowNode.rowIndex+1;this.forEachGui(e,e=>{e.rowComp.setRowIndex(t),e.rowComp.toggleCss("ag-row-even",o),e.rowComp.toggleCss("ag-row-odd",!o),ea(e.element,r)})}};function cD(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}var cM={moduleName:"KeyboardNavigation",version:tU,beans:[class extends tc{constructor(){super(),this.beanName="navigation",this.onPageDown=tw(this.onPageDown,100),this.onPageUp=tw(this.onPageUp,100)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}handlePageScrollingKey(e,t=!1){let i=e.key,o=e.altKey,r=e.ctrlKey||e.metaKey,s=!!this.beans.rangeSvc&&e.shiftKey,n=ab(this.gos,e),l=!1;switch(i){case oK.PAGE_HOME:case oK.PAGE_END:r||o||(this.onHomeOrEndKey(i),l=!0);break;case oK.LEFT:case oK.RIGHT:case oK.UP:case oK.DOWN:if(!n)return!1;!r||o||s||(this.onCtrlUpDownLeftRight(i,n),l=!0);break;case oK.PAGE_DOWN:case oK.PAGE_UP:r||o||(l=this.handlePageUpDown(i,n,t))}return l&&e.preventDefault(),l}handlePageUpDown(e,t,i){return i&&(t=this.beans.focusSvc.getFocusedCell()),!!t&&(e===oK.PAGE_UP?this.onPageUp(t):this.onPageDown(t),!0)}navigateTo({scrollIndex:e,scrollType:t,scrollColumn:i,focusIndex:o,focusColumn:r,isAsync:s,rowPinned:n}){let{scrollFeature:l}=this.gridBodyCon;F(i)&&!i.isPinned()&&l.ensureColumnVisible(i),F(e)&&l.ensureIndexVisible(e,t),s||l.ensureIndexVisible(o);let{focusSvc:a,rangeSvc:d}=this.beans;a.setFocusedCell({rowIndex:o,column:r,rowPinned:n,forceBrowserFocus:!0}),d?.setRangeToCell({rowIndex:o,rowPinned:n,column:r})}onPageDown(e){let t=this.beans,i=cD(t),o=this.getViewportHeight(),{pageBounds:r,rowModel:s,rowAutoHeight:n}=t,l=r.getPixelOffset(),a=i.top+o,d=s.getRowIndexAtPixel(a+l);n?.active?this.navigateToNextPageWithAutoHeight(e,d):this.navigateToNextPage(e,d)}onPageUp(e){let t=this.beans,i=cD(t),{pageBounds:o,rowModel:r,rowAutoHeight:s}=t,n=o.getPixelOffset(),l=i.top,a=r.getRowIndexAtPixel(l+n);s?.active?this.navigateToNextPageWithAutoHeight(e,a,!0):this.navigateToNextPage(e,a,!0)}navigateToNextPage(e,t,i=!1){let o,{pageBounds:r,rowModel:s}=this.beans,n=this.getViewportHeight(),l=r.getFirstRow(),a=r.getLastRow(),d=r.getPixelOffset(),h=s.getRow(e.rowIndex),u=i?h?.rowHeight-n-d:n-d,c=h?.rowTop+u,g=s.getRowIndexAtPixel(c+d);g===e.rowIndex&&(t=g=e.rowIndex+(i?-1:1)),i?(o="bottom",g<l&&(g=l),t<l&&(t=l)):(o="top",g>a&&(g=a),t>a&&(t=a)),this.isRowTallerThanView(s.getRow(g))&&(t=g,o="top"),this.navigateTo({scrollIndex:t,scrollType:o,scrollColumn:null,focusIndex:g,focusColumn:e.column})}navigateToNextPageWithAutoHeight(e,t,i=!1){this.navigateTo({scrollIndex:t,scrollType:i?"bottom":"top",scrollC
14olumn:null,focusIndex:t,focusColumn:e.column}),setTimeout(()=>{let o=this.getNextFocusIndexForAutoHeight(e,i);this.navigateTo({scrollIndex:t,scrollType:i?"bottom":"top",scrollColumn:null,focusIndex:o,focusColumn:e.column,isAsync:!0})},50)}getNextFocusIndexForAutoHeight(e,t=!1){let i=t?-1:1,o=this.getViewportHeight(),{pageBounds:r,rowModel:s}=this.beans,n=r.getLastRow(),l=0,a=e.rowIndex;for(;a>=0&&a<=n;){let e=s.getRow(a);if(e){let t=e.rowHeight??0;if(l+t>o)break;l+=t}a+=i}return Math.max(0,Math.min(a,n))}getViewportHeight(){let e=this.beans,t=cD(e),i=this.beans.scrollVisibleSvc.getScrollbarWidth(),o=t.bottom-t.top;return e.ctrlsSvc.get("center").isHorizontalScrollShowing()&&(o-=i),o}isRowTallerThanView(e){if(!e)return!1;let t=e.rowHeight;return"number"==typeof t&&t>this.getViewportHeight()}onCtrlUpDownLeftRight(e,t){let i=this.beans.cellNavigation.getNextCellToFocus(e,t,!0),{rowIndex:o,rowPinned:r,column:s}=this.getNormalisedPosition(i)??i;this.navigateTo({scrollIndex:o,scrollType:null,scrollColumn:s,focusIndex:o,focusColumn:s,rowPinned:r})}onHomeOrEndKey(e){let t=e===oK.PAGE_HOME,{visibleCols:i,pageBounds:o,rowModel:r}=this.beans,s=i.allCols,n=t?o.getFirstRow():o.getLastRow(),l=r.getRow(n);if(!l)return;let a=(t?s:[...s].reverse()).find(e=>!e.isSuppressNavigable(l));a&&this.navigateTo({scrollIndex:n,scrollType:null,scrollColumn:a,focusIndex:n,focusColumn:a})}onTabKeyDown(e,t){let i=t.shiftKey,o=this.tabToNextCellCommon(e,i,t),r=this.beans,{ctrlsSvc:s,pageBounds:n,focusSvc:l,gos:a}=r;if(!1!==o)return void(o?t.preventDefault():null===o&&s.get("gridCtrl").allowFocusForNextCoreContainer(i));if(i){let{rowIndex:i,rowPinned:o}=e.getRowPosition();(o?0===i:i===n.getFirstRow())&&(0===a.get("headerHeight")||sS(r)?sE(r,!0,!0):(t.preventDefault(),l.focusPreviousFromFirstCell(t)))}else e instanceof cS&&e.focusCell(!0),(l.focusOverlay(!1)||sE(r,i))&&t.preventDefault()}tabToNextCell(e,t){let i=this.beans,{focusSvc:o,rowRenderer:r}=i,s=o.getFocusedCell();if(!s)return!1;let n=sm(i,s);return(!!n||(n=r.getRowByPosition(s),!!n?.isFullWidth()))&&!!this.tabToNextCellCommon(n,e,t,"api")}tabToNextCellCommon(e,t,i,o="ui"){let r,{editSvc:s,focusSvc:n}=this.beans,l=e instanceof cS?e:e.getAllCellCtrls()?.[0];return null===(r=s?.isEditing()?s?.moveToNextCell(l,t,i,o):this.moveToNextCellNotEditing(e,t,i))?r:r||!!n.focusedHeader}moveToNextCellNotEditing(e,t,i){let o,r=this.beans.visibleCols.allCols;if(e instanceof cP){if(o={...e.getRowPosition(),column:t?r[0]:v(r)},this.gos.get("embedFullWidthRows")&&i){let t=e.findFullWidthInfoForEvent(i);t&&(o.column=t.column)}}else o=e.getFocusedCellPosition();let s=this.findNextCellToFocusOn(o,{backwards:t,startEditing:!1});if(!1===s)return null;if(s instanceof cS)s.focusCell(!0);else if(s)return this.tryToFocusFullWidthRow(s,t);return F(s)}findNextCellToFocusOn(e,{backwards:t,startEditing:i,skipToNextEditableCell:o}){let r=e,s=this.beans,{cellNavigation:n,gos:l,focusSvc:a,rowRenderer:d,rangeSvc:h}=s;for(;;){e!==r&&(e=r),t||(r=this.getLastCellOfColSpan(r)),r=n.getNextTabbedCell(r,t);let u=l.getCallback("tabToNextCell");if(F(u)){let o=u({backwards:t,editing:i,previousCellPosition:e,nextCellPosition:r||null});if(!0===o)r=e;else{if(!1===o)return!1;r={rowIndex:o.rowIndex,column:o.column,rowPinned:o.rowPinned}}}if(!r)return null;if(r.rowIndex<0){let e=sP(s);return a.focusHeaderPosition({headerPosition:{headerRowIndex:e+r.rowIndex,column:r.column},fromCell:!0}),null}let c="fullRow"===l.get("editType");
14if(i&&(!c||o)&&!this.isCellEditable(r))continue;this.ensureCellVisible(r);let g=sm(s,r);if(!g){let e=d.getRowByPosition(r);if(!e||!e.isFullWidth()||i)continue;return{...e.getRowPosition(),column:r?.column}}if(!n.isSuppressNavigable(g.column,g.rowNode))return g.setFocusedCellPosition(r),h?.setRangeToCell(r),g}}isCellEditable(e){let t=this.lookupRowNodeForCell(e);return!!t&&e.column.isCellEditable(t)}lookupRowNodeForCell({rowIndex:e,rowPinned:t}){let{pinnedRowModel:i,rowModel:o}=this.beans;return"top"===t?i?.getPinnedTopRow(e):"bottom"===t?i?.getPinnedBottomRow(e):o.getRow(e)}navigateToNextCell(e,t,i,o){let r=i,s=!1,n=this.beans,{cellNavigation:l,focusSvc:a,gos:d}=n;for(;r&&(r===i||!this.isValidNavigateCell(r));)d.get("enableRtl")?t===oK.LEFT&&(r=this.getLastCellOfColSpan(r)):t===oK.RIGHT&&(r=this.getLastCellOfColSpan(r)),s=P(r=l.getNextCellToFocus(t,r));if(s&&e&&e.key===oK.UP&&(r={rowIndex:-1,rowPinned:null,column:i.column}),o){let o=d.getCallback("navigateToNextCell");if(F(o)){let s=o({key:t,previousCellPosition:i,nextCellPosition:r||null,event:e});r=F(s)?{rowPinned:s.rowPinned,rowIndex:s.rowIndex,column:s.column}:null}}if(!r)return;if(r.rowIndex<0){let t=sP(n);a.focusHeaderPosition({headerPosition:{headerRowIndex:t+r.rowIndex,column:i.column},event:e||void 0,fromCell:!0});return}let h=this.getNormalisedPosition(r);h?this.focusPosition(h):this.tryToFocusFullWidthRow(r)}getNormalisedPosition(e){if(this.beans.spannedRowRenderer?.getCellByPosition(e))return e;this.ensureCellVisible(e);let t=sm(this.beans,e);return t?(e=t.getFocusedCellPosition(),this.ensureCellVisible(e),e):null}tryToFocusFullWidthRow(e,t){let{visibleCols:i,rowRenderer:o,focusSvc:r,eventSvc:s}=this.beans,n=i.allCols,l=o.getRowByPosition(e);if(!l?.isFullWidth())return!1;let a=r.getFocusedCell(),d={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?v(n):n[0])};this.focusPosition(d);let h=null==t?null!=a&&sh(d,a):t;return s.dispatchEvent({type:"fullWidthRowFocused",rowIndex:d.rowIndex,rowPinned:d.rowPinned,column:d.column,isFullWidthCell:!0,fromBelow:h}),!0}focusPosition(e){let{focusSvc:t,rangeSvc:i}=this.beans;t.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),i?.setRangeToCell(e)}isValidNavigateCell(e){return!!sp(this.beans,e)}getLastCellOfColSpan(e){let t=sm(this.beans,e);if(!t)return e;let i=t.getColSpanningList();return 1===i.length?e:{rowIndex:e.rowIndex,column:v(i),rowPinned:e.rowPinned}}ensureCellVisible(e){let t=ih(this.gos),i=this.beans.rowModel.getRow(e.rowIndex),o=t&&i?.sticky,{scrollFeature:r}=this.gridBodyCon;!o&&P(e.rowPinned)&&r.ensureIndexVisible(e.rowIndex),e.column.isPinned()||r.ensureColumnVisible(e.column)}ensureColumnVisible(e){let t=this.gridBodyCon.scrollFeature;e.isPinned()||t.ensureColumnVisible(e)}ensureRowVisible(e){this.gridBodyCon.scrollFeature.ensureIndexVisible(e)}},u0,uv],apiFunctions:{getFocusedCell:function(e){return e.focusSvc.getFocusedCell()},clearFocusedCell:function(e){return e.focusSvc.clearFocusedCell()},setFocusedCell:function(e,t,i,o){e.focusSvc.setFocusedCell({rowIndex:t,column:i,rowPinned:o,forceBrowserFocus:!0})},setFocusedHeader:function(e,t,i=!1){let o=e.headerNavigation?.getHeaderPositionForColumn(t,i);o&&e.focusSvc.focusHeaderPosition({headerPosition:o})},tabToNextCell:function(e,t){return e.navigation?.tabToNextCell(!1,t)??!1},tabToPreviousCell:function(e,t){return e.navigation?.tabToNextCell(!0,t)??!1}}},ck=class extends tc{constructor(){super(...arguments),this.beanName="pageBoundsListener"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this),recalculateRowBounds:this.calculatePages.bind(this)}),this.onModelUpdated()}onModelUpdated(e){this.calculatePages(),this.eventSvc.dispatchEvent({type:"paginationChanged",animate:e?.animate??!1,newData:e?.newData??!1,newPage:e?.newPage??!1,newPageSize:e?.newPageSize??!1,keepRenderedRows:e?.keepRenderedRows??!1})}calculatePages(){let{pageBounds:e,pagination:t,rowModel:i}=this.beans;t?t.calculatePages():e.calculateBounds(0,i.getRowCount()-1)}},cT=class extends tc{constructor(){super(...arguments),this.beanName="pageBounds",this.pixelOffset=0}getFirstRow(){return this.topRowBounds?.rowIndex??-1}getLastRow(){return this.bottomRowBounds?.rowIndex??-1}getCurrentPageHeight(){let{topRowBounds:e,bottomRowBounds:t}=this;return e&&t?Math.max(t.rowTop+t.rowHeight-e.rowTop,0):0}getCurrentPagePixelRange(){let{topRowBounds:e,bottomRowBounds:t}=this;return{pageFirstPixel:e?.rowTop??0,pageLastPixel:t?t.rowTop+t.rowHeight:0}}calculateBounds(e,t){let{rowModel:i}=this.beans,o=i.getRowBounds(e);o&&(o.rowIndex=e),this.topRowBounds=o;let r=i.getRowBounds(t);r&&(r.rowIndex=t),this.bottomRowBounds=r,this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){let e=this.topRowBounds?.rowTop??0;this.pixelOffset!==e&&(this.pixelOffset=e,this.eventSvc.dispatchEvent({type:"paginationPixelOff
14setChanged"}))}},cA=class extends tc{constructor(e,t){super(),this.isLeft=e,this.elements=t,this.getWidth=e?()=>this.beans.pinnedCols.leftWidth:()=>this.beans.pinnedCols.rightWidth}postConstruct(){this.addManagedEventListeners({[`${this.isLeft?"left":"right"}PinnedWidthChanged`]:this.onPinnedWidthChanged.bind(this)})}onPinnedWidthChanged(){let e=this.getWidth(),t=e>0;for(let i of this.elements)i&&(eE(i,t),eK(i,e))}},cI=class extends tc{constructor(){super(...arguments),this.beanName="pinnedCols"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl});let e=this.checkContainerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}checkContainerWidths(){let{gos:e,visibleCols:t,eventSvc:i}=this.beans,o=t9(e,"print"),r=o?0:t.getColsLeftWidth(),s=o?0:t.getDisplayedColumnsRightWidth();r!=this.leftWidth&&(this.leftWidth=r,i.dispatchEvent({type:"leftPinnedWidthChanged"})),s!=this.rightWidth&&(this.rightWidth=s,i.dispatchEvent({type:"rightPinnedWidthChanged"}))}keepPinnedColumnsNarrowerThanViewport(){let e=ek(this.gridBodyCtrl.eBodyViewport);if(e<=50)return;let t=this.getPinnedColumnsOverflowingViewport(e-50),i=this.gos.getCallback("processUnpinnedColumns"),{columns:o,hasLockedPinned:r}=t,s=o;(s.length||r)&&(i&&(s=i({columns:s,viewportWidth:e})),s?.length&&(s=s.filter(e=>!op(e)),this.setColsPinned(s,null,"viewportSizeFeature")))}createPinnedWidthFeature(e,...t){return new cA(e,t)}setColsPinned(e,t,i){let o,{colModel:r,colAnimation:s,visibleCols:n,gos:l}=this.beans;if(!r.cols||!e?.length)return;if(t9(l,"print"))return void tX(37);s?.start(),o=!0===t||"left"===t?"left":"right"===t?"right":null;let a=[];for(let t of e){if(!t)continue;let e=r.getCol(t);e&&e.getPinned()!==o&&(this.setColPinned(e,o),a.push(e))}a.length&&(n.refresh(i),oH(this.eventSvc,a,i)),s?.finish()}initCol(e){let{pinned:t,initialPinned:i}=e.colDef;void 0!==t?this.setColPinned(e,t):this.setColPinned(e,i)}setColPinned(e,t){!0===t||"left"===t?e.pinned="left":"right"===t?e.pinned="right":e.pinned=null,e.dispatchStateUpdatedEvent("pinned")}setupHeaderPinnedWidth(e){let{scrollVisibleSvc:t}=this.beans;if(null==e.pinned)return;let i="left"===e.pinned,o="right"===e.pinned;e.hidden=!0;let r=()=>{let r=i?this.leftWidth:this.rightWidth;if(null==r)return;let s=0==r,n=e.hidden!==s,l=this.gos.get("enableRtl"),a=t.getScrollbarWidth(),d=t.verticalScrollShowing&&(l&&i||!l&&o);e.comp.setPinnedContainerWidth(`${d?r+a:r}px`),e.comp.setDisplayed(!s),n&&(e.hidden=s,e.refresh())};e.addManagedEventListeners({leftPinnedWidthChanged:r,rightPinnedWidthChanged:r,scrollVisibilityChanged:r,scrollbarWidthChanged:r})}getHeaderResizeDiff(e,t){if(t.getPinned()){let{leftWidth:t,rightWidth:i}=this,o=ek(this.beans.ctrlsSvc.getGridBodyCtrl().eBodyViewport)-50;if(t+i+e>o)if(!(o>t+i))return 0;else e=o-t-i}return e}getPinnedColumnsOverflowingViewport(e){let t=(this.rightWidth??0)+(this.leftWidth??0),i=!1;if(t<e)return{columns:[],hasLockedPinned:i};let{visibleCols:o}=this.beans,r=[...o.leftCols],s=[...o.rightCols],n=0,l=0,a=[],d=t-0-e;for(;(l<r.length||n<s.length)&&d>0;){if(n<s.length){let e=s[n++];if(e.colDef.lockPinned){i=!0;continue}d-=e.getActualWidth(),a.push(e)}if(l<r.length&&d>0){let e=r[l++];if(e.colDef.lockPinned){i=!0;continue}d-=e.getActualWidth(),a.push(e)}}return{columns:a,hasLockedPinned:i}}},cL=class extends tu{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.lastAnnouncement="",this.updateAnnouncement=tv(this,this.updateAnnouncement.bind(this),200)}postConstruct(){let e=this.beans,t=N(e),i=this.descriptionContainer=t.createElement("div");i.classList.add("ag-aria-description-container"),_(i,"live","polite"),_(i,"relevant","additions text"),_(i,"atomic",!0),e.eRootDiv.appendChild(i)}announceValue(e,t){this.pendingAnnouncements.set(t,e),this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer)return;let e=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout(()=>{this.handleAnnouncementUpdate(e)},50)}handleAnnouncementUpdate(e){if(!this.isAlive()||!this.descriptionContainer)return;let t=e;if(null==t||""==t.replace(/[ .]/g,"")){this.lastAnnouncement="";return}this.lastAnnouncement===t&&(t=`${t}\u200B`),this.lastAnnouncement=t,this.descriptionContainer.textContent=t}destroy(){super.destroy();let{descriptionContainer:e}=this;e&&(eH(e),e.remove()),this.descriptionContainer=null,this.pendingAnnouncements.clear()}},cB="ag-delay-render",cH=class extends tc{constructor(){super(...arguments),this.beanName="
14colDelayRenderSvc",this.hideRequested=!1,this.alreadyRevealed=!1,this.timesRetried=0,this.requesters=new Set}hideColumns(e){!(this.alreadyRevealed||this.requesters.has(e))&&(this.requesters.add(e),this.hideRequested||(this.beans.ctrlsSvc.whenReady(this,e=>{e.gridBodyCtrl.eGridBody.classList.add(cB)}),this.hideRequested=!0))}revealColumns(e){if(this.alreadyRevealed||!this.isAlive()||(this.requesters.delete(e),this.requesters.size>0))return;let{renderStatus:t,ctrlsSvc:i}=this.beans;if(t){if(!t.areHeaderCellsRendered()&&this.timesRetried<5){this.timesRetried++,setTimeout(()=>this.revealColumns(e));return}this.timesRetried=0}i.getGridBodyCtrl().eGridBody.classList.remove(cB),this.alreadyRevealed=!0}},cV={tag:"div",cls:"ag-overlay",role:"presentation",children:[{tag:"div",cls:"ag-overlay-panel",role:"presentation",children:[{tag:"div",ref:"eOverlayWrapper",cls:"ag-overlay-wrapper",role:"presentation"}]}]},cG=class extends o5{constructor(){super(cV),this.eOverlayWrapper=oZ,this.activeOverlay=null,this.activePromise=null,this.activeCssClass=null,this.elToFocusAfter=null,this.overlayExclusive=!1,this.oldWrapperPadding=null,this.registerCSS(".ag-overlay{inset:0;pointer-events:none;position:absolute;z-index:2}.ag-overlay-panel,.ag-overlay-wrapper{display:flex;height:100%;width:100%}.ag-overlay-wrapper{align-items:center;flex:none;justify-content:center;text-align:center}.ag-overlay-exporting-wrapper,.ag-overlay-loading-wrapper,.ag-overlay-modal-wrapper{pointer-events:all}.ag-overlay-exporting-center,.ag-overlay-loading-center{background:var(--ag-background-color);border:solid var(--ag-border-width) var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-popup-shadow);display:flex;padding:var(--ag-spacing)}")}handleKeyDown(e){if(e.key!==oK.TAB||e.defaultPrevented||so(e))return;let{beans:t,eOverlayWrapper:i}=this;if(!(i&&r8(t,i,!1,e.shiftKey)))(e.shiftKey?t.focusSvc.focusGridView({column:v(t.visibleCols.allCols),backwards:!0,canFocusOverlay:!1}):sE(t,!1))&&e.preventDefault()}updateLayoutClasses(e,t){let i=this.eOverlayWrapper;if(!i)return;let o=i.classList,{AUTO_HEIGHT:r,NORMAL:s,PRINT:n}=n1;o.toggle(r,t.autoHeight),o.toggle(s,t.normal),o.toggle(n,t.print)}postConstruct(){this.createManagedBean(new n3(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.beans.overlays.setWrapperComp(this,!1),this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)}),this.addManagedEventListeners({gridSizeChanged:this.refreshWrapperPadding.bind(this)})}setWrapperTypeClass(e){let t=this.eOverlayWrapper?.classList;if(!t){this.activeCssClass=null;return}this.activeCssClass&&t.toggle(this.activeCssClass,!1),this.activeCssClass=e,t.toggle(e,!0)}showOverlay(e,t,i){if(this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=e,this.overlayExclusive=i,!e)return this.refreshWrapperPadding(),oQ.resolve();if(this.setWrapperTypeClass(t),this.setDisplayed(!0,{skipAriaHidden:!0}),this.refreshWrapperPadding(),i&&this.isGridFocused()){let e=O(this.beans);e&&!z(this.beans)&&(this.elToFocusAfter=e)}return e.then(t=>{let o=this.eOverlayWrapper;if(!o)return void this.destroyBean(t);if(this.activePromise!==e){this.activeOverlay!==t&&(this.destroyBean(t),t=null);return}this.activePromise=null,t&&(this.activeOverlay!==t&&(o.appendChild(t.getGui()),this.activeOverlay=t),i&&this.isGridFocused()&&r5(o))}),e}refreshWrapperPadding(){if(!this.eOverlayWrapper){this.oldWrapperPadding=null;return}let e=!!this.activeOverlay||!!this.activePromise,t=0;e&&!this.overlayExclusive&&(t=this.beans.ctrlsSvc.get("gridHeaderCtrl")?.headerHeight||0),t!==this.oldWrapperPadding&&(this.oldWrapperPadding=t,this.eOverlayWrapper.style.setProperty("padding-top",`${t}px`))}destroyActiveOverlay(){this.activePromise=null;let e=this.activeOverlay;if(!e){this.overlayExclusive=!1,this.elToFocusAfter=null,this.refreshWrapperPadding();return}let t=this.elToFocusAfter;this.elToFocusAfter=null,this.activeOverlay=null,this.overlayExclusive=!1,t&&!this.isGridFocused()&&(t=null),this.destroyBean(e);let i=this.eOverlayWrapper;i&&eH(i),t?.focus?.({preventScroll:!0}),this.refreshWrapperPadding()}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}
14isGridFocused(){let e=O(this.beans);return!!e&&this.beans.eGridDiv.contains(e)}destroy(){this.elToFocusAfter=null,this.destroyActiveOverlay(),this.beans.overlays.setWrapperComp(this,!0),super.destroy(),this.eOverlayWrapper=null}},cO={selector:"AG-OVERLAY-WRAPPER",component:cG},cN=["refresh"],cz=e=>({name:e,optionalMethods:cN}),cW={id:"agLoadingOverlay",overlayType:"loading",comp:cz("loadingOverlayComponent"),wrapperCls:"ag-overlay-loading-wrapper",exclusive:!0,compKey:"loadingOverlayComponent",paramsKey:"loadingOverlayComponentParams",isSuppressed:e=>{let t=e.get("loading");return!1===t||!0===e.get("suppressLoadingOverlay")&&!0!==t}},cU={id:"agNoRowsOverlay",overlayType:"noRows",comp:cz("noRowsOverlayComponent"),wrapperCls:"ag-overlay-no-rows-wrapper",compKey:"noRowsOverlayComponent",paramsKey:"noRowsOverlayComponentParams",isSuppressed:e=>e.get("suppressNoRowsOverlay")},c_={id:"agNoMatchingRowsOverlay",overlayType:"noMatchingRows",comp:cz("noMatchingRowsOverlayComponent"),wrapperCls:"ag-overlay-no-matching-rows-wrapper"},c$={id:"agExportingOverlay",overlayType:"exporting",comp:cz("exportingOverlayComponent"),wrapperCls:"ag-overlay-exporting-wrapper",exclusive:!0},cq={id:"activeOverlay",comp:cz("activeOverlay"),wrapperCls:"ag-overlay-modal-wrapper",exclusive:!0},cK=class extends tc{constructor(){super(...arguments),this.beanName="overlays",this.eWrapper=void 0,this.exclusive=!1,this.oldExclusive=!1,this.currentDef=null,this.showInitialOverlay=!0,this.userForcedNoRows=!1,this.exportsInProgress=0,this.newColumnsLoadedCleanup=null}postConstruct(){let e=this.gos;this.showInitialOverlay=t8(e);let t=()=>{this.userForcedNoRows||this.updateOverlay(!1)},[i,o,r,s]=this.addManagedEventListeners({newColumnsLoaded:t,rowCountReady:()=>{this.disableInitialOverlay(),t(),o()},rowDataUpdated:t,modelUpdated:t});this.newColumnsLoadedCleanup=i,this.addManagedPropertyListeners(["loading","activeOverlay","activeOverlayParams","overlayComponentParams","loadingOverlayComponentParams","noRowsOverlayComponentParams"],e=>this.onPropChange(new Set(e.changeSet?.properties)))}destroy(){this.doHideOverlay(),super.destroy(),this.eWrapper=void 0}setWrapperComp(e,t){this.isAlive()&&(t?this.eWrapper===e&&(this.eWrapper=void 0):this.eWrapper=e,this.updateOverlay(!1))}isVisible(){return!!this.currentDef}showLoadingOverlay(){this.showInitialOverlay=!1;let e=this.gos;if(!this.eWrapper||e.get("activeOverlay")||this.isDisabled(cW))return;let t=e.get("loading");(t||void 0===t)&&this.doShowOverlay(cW)}showNoRowsOverlay(){this.showInitialOverlay=!1;let e=this.gos;!this.eWrapper||e.get("activeOverlay")||e.get("loading")||this.isDisabled(cU)||(this.userForcedNoRows=!0,this.doShowOverlay(cU))}async showExportOverlay(e){let{gos:t,beans:i}=this;if(!this.eWrapper||t.get("activeOverlay")||t.get("loading")||this.isDisabled(c$)||this.userForcedNoRows&&this.currentDef===cU)return void e();let o=this.getDesiredDefWithOverride(c$);if(!o)return void e();this.exportsInProgress++,this.focusedCell=i.focusSvc.getFocusedCell(),await this.doShowOverlay(o),await new Promise(e=>setTimeout(()=>e()));let r=Date.now();try{e()}finally{let e=Math.max(0,300-(Date.now()-r)),t=()=>{this.exportsInProgress--,0===this.exportsInProgress&&(this.updateOverlay(!1),sx(i,this.focusedCell),this.focusedCell=null)};e>0?setTimeout(()=>t(),e):t()}}hideOverlay(){let e=this.gos;this.showInitialOverlay=!1;let t=this.userForcedNoRows;return(this.userForcedNoRows=!1,e.get("loading"))?void tX(99):e.get("activeOverlay")?void tX(296):this.currentDef===c_?void tX(297):void(this.doHideOverlay(),t&&this.getOverlayDef()!==cU&&this.updateOverlay(!1))}getOverlayWrapperSelector(){return cO}getOverlayWrapperCompClass(){return cG}onPropChange(e){let t=e.has("activeOverlay");if((t||e.has("loading"))&&this.updateOverlay(t))return;let i=this.currentDef,o=this.eWrapper?.activeOverlay;if(o&&i){let t=e.has("activeOverlayParams");if(i===cq)t&&o.refresh?.(this.makeCompParams(!0));else{let t=i.paramsKey;(e.has("overlayComponentParams")||t&&e.has(t))&&o.refresh?.(this.makeCompParams(!1,t,i.overlayType))}}}updateOverlay(e){let t=this.eWrapper;if(!t)return this.currentDef=null,!1;let i=this.getDesiredDefWithOverride(),o=this.currentDef,r=i===cq&&e;return i!==o?i?(this.doShowOverlay(i),!0):(this.disableInitialOverlay(),this.doHideOverlay()):r&&i?(t.hideOverlay(),this.doShowOverlay(i),!0):(i||this.disableInitialOverlay(),!1)}getDesiredDefWithOverride(e){var t;let{gos:i}=this,o=(t=i.get("activeOverlay"))?({agLoadingOverlay:cW,agNoRowsOverlay:cU,agNoMatchingRowsOverlay:c_,agExportingOverlay:c$})[t]??cq:null;return!o&&(o=e??this.getOverlayDef())&&this.isDisabled(o)&&(o=null),o}getOverlayDef(){var e;let{gos:t,beans:i}=this,{rowModel:o}=i,r=t.get("loading");if(void 0!==r){if(this.disableInitialOverlay(),r)return cW}else if(this.showInitialOverlay){if(!this.isDisabled(cW)&&(!t.get("columnDefs")||!t.get("rowData")))return cW;this.disableInitialOverlay()}else this.disableInitialOverlay();return(e=o.getOverlayType())?({loading:cW,noRows:cU,noMatchingRows:c_,exporting:c$})[e]:null}disableInitialOverlay(){this.showInitialOverlay=!1,this.newColumnsLoadedCleanup?.(),this.newColumnsLoadedCleanup=null}doShowOverlay(e){let t,i,{gos:o,beans:r}=this,{userCompFactory:s}=r;this.currentDef=e;let n=e!==cq,l=!!e.exclusive;this.exclusive=l,(e.paramsKey&&o.get(e.paramsKey)||e.compKey&&o.get(e.compKey))&&
14(t=e.paramsKey),n&&(o.get("overlayComponent")||o.get("overlayComponentSelector"))&&(i=s.getCompDetailsFromGridOptions({name:"overlayComponent",optionalMethods:["refresh"]},void 0,this.makeCompParams(!1,e.paramsKey,e.overlayType))),i??(i=s.getCompDetailsFromGridOptions(e.comp,n?e.id:void 0,this.makeCompParams(!n,t,e.overlayType),!1));let a=i?.newAgStackInstance()??null,d=this.eWrapper?this.eWrapper.showOverlay(a,e.wrapperCls,l):oQ.resolve();return this.eWrapper?.refreshWrapperPadding(),this.setExclusive(l),d}makeCompParams(e,t,i){let{gos:o}=this,r=e?o.get("activeOverlayParams"):{...o.get("overlayComponentParams"),...t&&o.get(t)||null,overlayType:i};return iK(o,r??{})}doHideOverlay(){let e=!1;this.currentDef&&(this.currentDef=null,e=!0),this.exclusive=!1;let t=this.eWrapper;return t&&(t.hideOverlay(),t.refreshWrapperPadding(),this.setExclusive(!1)),e}setExclusive(e){this.oldExclusive!==e&&(this.oldExclusive=e,this.eventSvc.dispatchEvent({type:"overlayExclusiveChanged"}))}isDisabled(e){let{gos:t}=this;return e.overlayType&&t.get("suppressOverlays")?.includes(e.overlayType)||e.isSuppressed?.(t)===!0}},cj=class extends tc{constructor(){super(...arguments),this.beanName="rowContainerHeight",this.scrollY=0,this.uiBodyHeight=0}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=function(){if(void 0!==u)return u;if(!document.body)return -1;let e=1e6,t=rj()?6e6:1e9,i=document.createElement("div");for(document.body.appendChild(i);;){let o=2*e;if(i.style.height=o+"px",o>t||i.clientHeight!==o)break;e=o}return i.remove(),u=e,e}(),tM(this.gos,"RowContainerHeightService - maxDivHeight = "+this.maxDivHeight)}updateOffset(){if(!this.stretching)return;let e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}calculateOffset(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;let e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;tM(this.gos,`RowContainerHeightService - Div Stretch Offset = ${t} (${this.pixelsToShave} * ${e})`),this.setDivStretchOffset(t)}setUiContainerHeight(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventSvc.dispatchEvent({type:"rowContainerHeightChanged"}))}clearOffset(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)}setDivStretchOffset(e){let t="number"==typeof e?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventSvc.dispatchEvent({type:"heightScaleChanged"}))}setModelHeight(e){this.modelHeight=e,this.stretching=null!=e&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getRealPixelPosition(e){return e-this.divStretchOffset}getUiBodyHeight(){let e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition();return e.bottom-e.top}getScrollPositionForPixel(e){if(this.pixelsToShave<=0)return e;let t=this.modelHeight-this.getUiBodyHeight();return this.maxScrollY*(e/t)}},cY=class extends tc{constructor(){super(...arguments),this.beanName="rowRenderer",this.destroyFuncsForColumnListeners=[],this.rowCtrlsByRowIndex={},this.zombieRowCtrls={},this.allRowCtrls=[],this.topRowCtrls=[],this.bottomRowCtrls=[],this.refreshInProgress=!1,this.dataFirstRenderedFired=!1,this.setupRangeSelectionListeners=()=>{let e=()=>{for(let e of this.getAllCellCtrls())e.onCellSelectionChanged()},t=()=>{for(let e of this.getAllCellCtrls())e.updateRangeBordersIfRangeCount()},i=()=>{this.eventSvc.addListener("cellSelectionChanged",e),this.eventSvc.addListener("columnMoved",t),this.eventSvc.addListener("columnPinned",t),this.eventSvc.addListener("columnVisible",t)},o=()=>{this.eventSvc.removeListener("cellSelectionChanged",e),this.eventSvc.removeListener("columnMoved",t),this.eventSvc.removeListener("columnPinned",t),this.eventSvc.removeListener("columnVisible",t)};this.addDestroyFunc(()=>o()),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{ik(this.gos)?i():o()}),ik(this.gos)&&i()}}wireBeans(e){this.pageBounds=e.pageBounds,this.colModel=e.colModel,this.pinnedRowModel=e.pinnedRowModel,this.rowModel=e.rowModel,this.focusSvc=e.focusSvc,this.rowContainerHeight=e.rowContainerHeight,this.ctrlsSvc=e.ctrlsSvc,this.editSvc=e.editSvc}postConstruct(){this.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.initialise()})}initialise(){this.addManagedEventListeners({paginationChanged:this.onPageLoaded.bind(this),pinnedRowDataChanged:this.onPinnedRowDataChanged.bind(this),pinnedRowsChanged:this.onPinnedRowsChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),bodyScroll:this.onBodyScroll.bind(this),bodyHeightChanged:this.redraw.bind(this,{})}
14),this.addManagedPropertyListeners(["domLayout","embedFullWidthRows"],()=>this.onDomLayoutChanged()),this.addManagedPropertyListeners(["suppressMaxRenderedRowRestriction","rowBuffer"],()=>this.redraw()),this.addManagedPropertyListener("suppressCellFocus",e=>this.onSuppressCellFocusChanged(e.currentValue)),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],()=>this.redrawRows()),this.addManagedPropertyListener("cellSelection",({currentValue:e,previousValue:t})=>{(!t&&e||t&&!e)&&this.redrawRows()});let{stickyRowSvc:e,gos:t,showRowGroupCols:i}=this.beans;if(i&&this.addManagedPropertyListener("showOpenedGroup",()=>{let e=i.columns;e.length&&this.refreshCells({columns:e,force:!0})}),e)this.stickyRowFeature=e.createStickyRowFeature(this,this.createRowCon.bind(this),this.destroyRowCtrls.bind(this));else{let e=this.gridBodyCtrl;e.setStickyTopHeight(0),e.setStickyBottomHeight(0)}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=t9(t,"print"),this.embedFullWidthRows=this.printLayout||t.get("embedFullWidthRows"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){let e=this.getKeepDetailRowsCount();this.cachedRowCtrls=new cQ(null!=e?e:3)}}getKeepDetailRowsCount(){return this.gos.get("keepDetailRowsCount")}getStickyTopRowCtrls(){return this.stickyRowFeature?.stickyTopRowCtrls??[]}getStickyBottomRowCtrls(){return this.stickyRowFeature?.stickyBottomRowCtrls??[]}updateAllRowCtrls(){let e=Object.values(this.rowCtrlsByRowIndex),t=Object.values(this.zombieRowCtrls),i=this.cachedRowCtrls?.getEntries()??[];t.length>0||i.length>0?this.allRowCtrls=[...e,...t,...i]:this.allRowCtrls=e}isCellBeingRendered(e,t){let i=this.rowCtrlsByRowIndex[e];return t&&i?!!i.isFullWidth()||!!this.beans.spannedRowRenderer?.getCellByPosition({rowIndex:e,column:t,rowPinned:null})||!!i.getCellCtrl(t)||!i.isRowRendered():!!i}updateCellFocus(e){for(let t of this.getAllCellCtrls())t.onCellFocused(e);for(let t of this.getFullWidthRowCtrls())t.onFullWidthRowFocused(e)}onCellFocusChanged(e){if(e?.rowIndex!=null&&!e.rowPinned){let t=this.beans.colModel.getCol(e.column)??void 0;this.isCellBeingRendered(e.rowIndex,t)||this.redraw()}this.updateCellFocus(e)}onSuppressCellFocusChanged(e){for(let t of this.getAllCellCtrls())t.onSuppressCellFocusChanged(e);for(let t of this.getFullWidthRowCtrls())t.onSuppressCellFocusChanged(e)}registerCellEventListeners(){this.addManagedEventListeners({cellFocused:e=>this.onCellFocusChanged(e),cellFocusCleared:()=>this.updateCellFocus(),flashCells:e=>{let{cellFlashSvc:t}=this.beans;if(t)for(let i of this.getAllCellCtrls())t.onFlashCells(i,e)},columnHoverChanged:()=>{for(let e of this.getAllCellCtrls())e.onColumnHover()},displayedColumnsChanged:()=>{for(let e of this.getAllCellCtrls())e.onDisplayedColumnsChanged()},displayedColumnsWidthChanged:()=>{if(this.printLayout)for(let e of this.getAllCellCtrls())e.onLeftChanged()}}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedEventListeners({gridColumnsChanged:this.refreshListenersToColumnsForCellComps.bind(this)}),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){for(let e of this.destroyFuncsForColumnListeners)e();this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){for(let e of(this.removeGridColumnListeners(),this.colModel.getCols())){let t=t=>{for(let i of this.getAllCellCtrls())i.column===e&&t(i)},i=()=>{t(e=>e.onLeftChanged())},o=()=>{t(e=>e.onWidthChanged())},r=()=>{t(e=>e.onFirstRightPinnedChanged())},s=()=>{t(e=>e.onLastLeftPinnedChanged())},n=()=>{t(e=>e.onColDefChanged())};e.__addEventListener("leftChanged",i),e.__addEventListener("widthChanged",o),e.__addEventListener("firstRightPinnedChanged",r),e.__addEventListener("lastLeftPinnedChanged",s),e.__addEventListener("colDefChanged",n),this.destroyFuncsF
14orColumnListeners.push(()=>{e.__removeEventListener("leftChanged",i),e.__removeEventListener("widthChanged",o),e.__removeEventListener("firstRightPinnedChanged",r),e.__removeEventListener("lastLeftPinnedChanged",s),e.__removeEventListener("colDefChanged",n)})}}onDomLayoutChanged(){let e=t9(this.gos,"print"),t=e||this.gos.get("embedFullWidthRows"),i=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,i&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;let e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)}onPageLoaded(e){let t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)}getAllCellsNotSpanningForColumn(e){let t=[];for(let i of this.getAllRowCtrls()){let o=i.getCellCtrl(e,!0)?.eGui;o&&t.push(o)}return t}refreshFloatingRowComps(e=!0){this.refreshFloatingRows(this.topRowCtrls,"top",e),this.refreshFloatingRows(this.bottomRowCtrls,"bottom",e)}refreshFloatingRows(e,t,i){let{pinnedRowModel:o,beans:r,printLayout:s}=this,n=Object.fromEntries(e.map(e=>[e.rowNode.id,e]));o?.forEachPinnedRow(t,(l,a)=>{let d=e[a];d&&void 0===o.getPinnedRowById(d.rowNode.id,t)&&(d.destroyFirstPass(),d.destroySecondPass()),l.id in n&&i?(e[a]=n[l.id],delete n[l.id]):e[a]=new cP(l,r,!1,!1,s)}),e.length=("top"===t?o?.getPinnedTopRowCount():o?.getPinnedBottomRowCount())??0}onPinnedRowDataChanged(){this.redrawAfterModelUpdate({recycleRows:!0})}onPinnedRowsChanged(){this.redrawAfterModelUpdate({recycleRows:!0})}redrawRow(e,t=!1){if(e.sticky)this.stickyRowFeature?.refreshStickyNode(e);else{if(this.cachedRowCtrls?.has(e))return void this.cachedRowCtrls.removeRow(e);let t=t=>{let i=t[e.rowIndex];i&&i.rowNode===e&&(i.destroyFirstPass(),i.destroySecondPass(),t[e.rowIndex]=this.createRowCon(e,!1,!1))};switch(e.rowPinned){case"top":t(this.topRowCtrls);break;case"bottom":t(this.bottomRowCtrls);break;default:t(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}t||this.dispatchDisplayedRowsChanged(!1)}redrawRows(e){let{editSvc:t}=this.beans;if(t?.isEditing()&&(t.isBatchEditing()?t.cleanupEditors():t.stopEditing(void 0,{source:"api"})),null!=e){for(let t of e??[])this.redrawRow(t,!0);this.dispatchDisplayedRowsChanged(!1);return}this.redrawAfterModelUpdate()}redrawAfterModelUpdate(e={}){this.getLockOnRefresh();let t=this.beans.focusSvc?.getFocusCellToUseAfterRefresh();this.updateContainerHeights(),this.scrollToTopIfNewData(e);let i=!e.domLayoutChanged&&!!e.recycleRows,o=e.animate&&id(this.gos),r=i?this.getRowsToRecycle():null;i||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender();let{stickyRowFeature:s,gos:n}=this;if(s){s.checkStickyRows();let e=s.extraTopHeight+s.extraBottomHeight;e&&this.updateContainerHeights(e)}this.recycleRows(r,o),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(n.get("enableRowPinning")?i:void 0),this.dispatchDisplayedRowsChanged(),null!=t&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()}scrollToTopIfNewData(e){let t=e.newData||e.newPage,i=this.gos.get("suppressScrollOnNewData");t&&!i&&(this.gridBodyCtrl.scrollFeature.scrollToTop(),this.stickyRowFeature?.resetOffsets())}updateContainerHeights(e=0){let{rowContainerHeight:t}=this;if(this.printLayout)return void t.setModelHeight(null);let i=this.pageBounds.getCurrentPageHeight();0===i&&(i=1),t.setModelHeight(i+e)}getLockOnRefresh(){if(this.refreshInProgress)throw Error(t6(252));this.refreshInProgress=!0,this.beans.frameworkOverrides.getLockOnRefresh?.()}releaseLockOnRefresh(){this.refreshInProgress=!1,this.beans.frameworkOverrides.releaseLockOnRefresh?.()}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(e){if(!e)return;let t=this.beans.focusSvc,i=this.findPositionToFocus(e);return i?e.rowIndex!==i.rowIndex||e.rowPinned!=i.rowPinned?void t.setFocusedCell({...i,preventScrollOnBrowserFocus:!0,forceBrowserFocus:!0}):void(!t.doesRowOrCellHaveBrowserFocus()&&this.updateCellFocus(iK(this.gos,{...i,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,t
14ype:"cellFocused"}))):void t.focusHeaderPosition({headerPosition:{headerRowIndex:sP(this.beans)-1,column:e.column}})}findPositionToFocus(e){let{pagination:t,pageBounds:i}=this.beans,o=e;for(null==o.rowPinned&&t&&i&&!t.isRowInPage(o.rowIndex)&&(o={rowPinned:null,rowIndex:i.getFirstRow()});o;){if(null==o.rowPinned&&i)if(o.rowIndex<i.getFirstRow()){if(!(o=sf(this.beans,{rowPinned:null,rowIndex:0})))break}else o.rowIndex>i.getLastRow()&&(o={rowPinned:null,rowIndex:i.getLastRow()});let t=this.getRowByPosition(o);if(t?.isAlive())return{...t.getRowPosition(),column:e.column};o=sf(this.beans,o)}return null}getAllCellCtrls(){let e=[],t=this.getAllRowCtrls(),i=t.length;for(let o=0;o<i;o++){let i=t[o].getAllCellCtrls(),r=i.length;for(let t=0;t<r;t++)e.push(i[t])}return e}getAllRowCtrls(){let{spannedRowRenderer:e}=this.beans,t=this.getStickyTopRowCtrls(),i=this.getStickyBottomRowCtrls();return[...this.topRowCtrls,...this.bottomRowCtrls,...t,...i,...e?.getCtrls("top")??[],...e?.getCtrls("bottom")??[],...e?.getCtrls("center")??[],...Object.values(this.rowCtrlsByRowIndex)]}addRenderedRowListener(e,t,i){let o=this.rowCtrlsByRowIndex[t];o&&o.addEventListener(e,i)}refreshCells({rowNodes:e,columns:t,force:i,suppressFlash:o}={}){let r={force:i,newData:!1,suppressFlash:o};for(let i of this.getCellCtrls(e,t))i.refreshOrDestroyCell(r);this.refreshFullWidth(e)}refreshRows(e={}){for(let t of this.getRowCtrls(e.rowNodes))t.refreshRow(e);this.refreshFullWidth(e.rowNodes)}refreshFullWidth(e){if(!e)return;let t=!1;for(let i of this.getRowCtrls(e))i.isFullWidth()&&(i.refreshFullWidth()||(t=!0,this.redrawRow(i.rowNode,!0)));t&&this.dispatchDisplayedRowsChanged(!1)}getRowCtrls(e){let t=cZ(e),i=this.getAllRowCtrls();return e&&t?i.filter(e=>cJ(e.rowNode,t)):i}getCellCtrls(e,t){let i;F(t)&&(i={},t.forEach(e=>{let t=this.colModel.getCol(e);F(t)&&(i[t.getId()]=!0)}));let o=[];for(let t of this.getRowCtrls(e))for(let e of t.getAllCellCtrls()){let t=e.column.getId();i&&!i[t]||o.push(e)}return o}destroy(){this.removeAllRowComps(!0),super.destroy()}removeAllRowComps(e=!1){let t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t,e),this.stickyRowFeature?.destroyStickyCtrls()}getRowsToRecycle(){let e=[];for(let t of Object.keys(this.rowCtrlsByRowIndex))null==this.rowCtrlsByRowIndex[t].rowNode.id&&e.push(t);this.removeRowCtrls(e);let t={};for(let e of Object.values(this.rowCtrlsByRowIndex))t[e.rowNode.id]=e;return this.rowCtrlsByRowIndex={},t}removeRowCtrls(e,t=!1){for(let i of e){let e=this.rowCtrlsByRowIndex[i];e&&(e.destroyFirstPass(t),e.destroySecondPass()),delete this.rowCtrlsByRowIndex[i]}}onBodyScroll(e){"vertical"===e.direction&&this.redraw({afterScroll:!0})}redraw(e={}){let t,{focusSvc:i,animationFrameSvc:o}=this.beans,{afterScroll:r}=e,s=this.stickyRowFeature;s&&(t=i?.getFocusCellToUseAfterRefresh()||void 0);let n=this.firstRenderedRow,l=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let a=!1;if(s){a=s.checkStickyRows();let e=s.extraTopHeight+s.extraBottomHeight;e&&this.updateContainerHeights(e)}let d=this.firstRenderedRow!==n||this.lastRenderedRow!==l;if((!r||a||d)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,r),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(r&&!a),null!=t)){let e=i?.getFocusCellToUseAfterRefresh();null!=t&&null==e&&(o?.flushAllFrames(),this.restoreFocusedCell(t))}}removeRowCompsNotToDraw(e,t){let i={};for(let t of e)i[t]=!0;let o=Object.keys(this.rowCtrlsByRowIndex).filter(e=>!i[e]);this.removeRowCtrls(o,t)}calculateIndexesToDraw(e){let t=[];for(let e=this.firstRenderedRow;e<=this.lastRenderedRow;e++)t.push(e);let i=this.beans.pagination,o=this.beans.focusSvc?.getFocusedCell()?.rowIndex;null!=o&&(o<this.firstRenderedRow||o>this.lastRenderedRow)&&(!i||i.isRowInPage(o))&&o<this.rowModel.getRowCount()&&t.push(o);let r=e=>{let i=e.rowNode.rowIndex;null!=i&&i!==o&&(i<this.firstRenderedRow||i>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(e)&&t.push(i)};for(let e of Object.values(this.rowCtrlsByRowIndex))r(e);if(e)for(let t of Object.values(e))r(t);t.sort((e,t)=>e-t);let s=[];for(let e=0;e<t.length;e++){let i=t[e],o=this.rowModel.getRow(i);o&&!o.sticky&&s.push(i)}return s}recycleRows(e,t=!1,i=!1){let o=this.calculateIndexesToDraw(e);for(let r of((this.printLayout||i)&&(t=!1),this.removeRowCompsNotToDraw(o,!t),o))this.createOrUpdateRowCtrl(r,e,t,i);if(e){let{animationFrameSvc:o}=this.beans;o?.active&&i&&!this.printLayout?o.addDestroyTask(()=>{this.destroyRowCtrls(e,t),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(e,t)}this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(e=!1){this.eventSvc.dispatchEvent({type:"displayedRowsChanged",afterScroll:e})}onDisplayedColumnsChanged(){let{visibleCols:e}=this.beans,t=e.isPinningLeft(),i=e.isPinningRight();(this.pinningLeft!==t||i!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=i,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){let e=[];for(let t of this.getFullWidthRowCtrls()){let i=t.rowNode.rowIndex;e.push(i.toString())}this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(e){let t=cZ(e);return this.getAllRowCtrls().filter(e=>{if(!e.isFullWidth())return!1;let i=e.rowNode;return null==t||!!cJ(i,t)})}createOrUpdateRowCtrl(e,t,i,o){let r,s=this.rowCtrlsByRowIndex[e];if(!s&&F(r=this.rowModel.getRow(e))&&F(t)&&t[r.id]&&r.alreadyRendered&&(s=t[r.id],t[r.id]=null),!s){if(r||(r=this.rowModel.getRow(e)),!F(r))return;s=this.createRowCon(r,i,o)}r&&(r.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=s}destroyRowCtrls(e,t){let i=[];if(e){for(let o of Object.values(e))if(o){if(this.cachedRowCtrls&&o.isCacheable()){this.cachedRowCtrls.addRow(o);continue}if(o.destroyFirstPass(!t),t){let e=o.instanceId;this.zombieRowCtrls[e]=o,i.push(()=>{o.destroySecondPass(),delete this.zombieRowCtrls[e]})}else o.destroySecondPass()}}t&&(i.push(()=>{this.isAlive()&&(this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged())}),window.setTimeout(()=>{for(let e of i)e()},400))}getRowBuffer(){return this.gos.get("rowBuffer")}
14getRowBufferInPixels(){return this.getRowBuffer()*ir(this.beans)}workOutFirstAndLastRowsToRender(){let e,t,{rowContainerHeight:i,pageBounds:o,rowModel:r}=this;if(i.updateOffset(),r.isRowsToRender())if(this.printLayout)this.beans.environment.refreshRowHeightVariable(),e=o.getFirstRow(),t=o.getLastRow();else{let s,n,l=this.getRowBufferInPixels(),a=this.ctrlsSvc.getScrollFeature(),d=this.gos.get("suppressRowVirtualisation"),h=!1;do{let e=o.getPixelOffset(),{pageFirstPixel:t,pageLastPixel:r}=o.getCurrentPagePixelRange(),u=i.divStretchOffset,c=a.getVScrollPosition(),g=c.top,p=c.bottom;d?(s=t+u,n=r+u):(s=Math.max(g+e-l,t)+u,n=Math.min(p+e+l,r)+u),this.firstVisibleVPixel=Math.max(g+e,t)+u,this.lastVisibleVPixel=Math.min(p+e,r)+u,h=this.ensureAllRowsInRangeHaveHeightsCalculated(s,n)}while(h);let u=r.getRowIndexAtPixel(s),c=r.getRowIndexAtPixel(n),g=o.getFirstRow(),p=o.getLastRow();u<g&&(u=g),c>p&&(c=p),e=u,t=c}else e=0,t=-1;let s=t9(this.gos,"normal"),n=this.gos.get("suppressMaxRenderedRowRestriction"),l=Math.max(this.getRowBuffer(),500);s&&!n&&t-e>l&&(t=e+l);let a=e!==this.firstRenderedRow,d=t!==this.lastRenderedRow;(a||d)&&(this.firstRenderedRow=e,this.lastRenderedRow=t,this.eventSvc.dispatchEvent({type:"viewportChanged",firstRow:e,lastRow:t}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,e0(this.beans,()=>{this.beans.eventSvc.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(e,t){let i=this.pinnedRowModel?.ensureRowHeightsValid(),o=this.stickyRowFeature?.ensureRowHeightsValid(),{pageBounds:r,rowModel:s}=this,n=s.ensureRowHeightsValid(e,t,r.getFirstRow(),r.getLastRow());return(n||o)&&this.eventSvc.dispatchEvent({type:"recalculateRowBounds"}),(!!o||!!n||!!i)&&(this.updateContainerHeights(),!0)}doNotUnVirtualiseRow(e){let t=e.rowNode,i=this.focusSvc.isRowFocused(t.rowIndex,t.rowPinned),o=this.editSvc?.isEditing(e),r=t.detail;return!!(i||o||r)&&!!this.isRowPresent(t)}isRowPresent(e){return!!this.rowModel.isRowPresent(e)&&(this.beans.pagination?.isRowInPage(e.rowIndex)??!0)}createRowCon(e,t,i){let o=this.cachedRowCtrls?.getRow(e)??null;if(o)return o;let r=i&&!this.printLayout&&!!this.beans.animationFrameSvc?.active;return new cP(e,this.beans,t,r,this.printLayout)}getRenderedNodes(){let e=Object.values(this.rowCtrlsByRowIndex).map(e=>e.rowNode);return[...this.getStickyTopRowCtrls().map(e=>e.rowNode),...e,...this.getStickyBottomRowCtrls().map(e=>e.rowNode)]}getRowByPosition(e){let t,{rowIndex:i}=e;switch(e.rowPinned){case"top":t=this.topRowCtrls[i];break;case"bottom":t=this.bottomRowCtrls[i];break;default:!(t=this.rowCtrlsByRowIndex[i])&&((t=this.getStickyTopRowCtrls().find(e=>e.rowNode.rowIndex===i)||null)||(t=this.getStickyBottomRowCtrls().find(e=>e.rowNode.rowIndex===i)||null))}return t}isRangeInRenderedViewport(e,t){if(null==e||null==t)return!1;let i=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!i}},cQ=class{constructor(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}addRow(e){if(this.entriesMap[e.rowNode.id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){let e=this.entriesList[0];e.destroyFirstPass(),e.destroySecondPass(),this.removeFromCache(e)}}getRow(e){if(e?.id==null)return null;let t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.rowNode!=e?null:t):null}has(e){return null!=this.entriesMap[e.id]}removeRow(e){let t=e.id,i=this.entriesMap[t];delete this.entriesMap[t],y(this.entriesList,i)}removeFromCache(e){let t=e.rowNode.id;delete this.entriesMap[t],y(this.entriesList,e)}getEntries(){return this.entriesList}};function cZ(e){if(!e)return;let t={top:{},bottom:{},normal:{}};for(let i of e){let e=i.id;switch(i.rowPinned){case"top":t.top[e]=i;break;case"bottom":t.bottom[e]=i;break;default:t.normal[e]=i}}return t}function cJ(e,t){let i=e.id;switch(e.rowPinned){case"top":return null!=t.top[i];case"bottom":return null!=t.bottom[i];default:return null!=t.normal[i]}}var cX=class extends tc{constructor(){super(...arguments),this.beanName="rowNodeSorter",this.accentedSort=!1,this.primaryColumnsSortGroups=!1,this.pivotActive=!1}postConstruct(){this.firstLeaf=t8(this.gos)?av:c0,this.addManagedPropertyListeners(["accentedSort","autoGroupColumnDef","treeData"],this.updateOptions.bind(this));let e=this.updatePivotModeState.bind(this);this.addManagedEventListeners({columnPivotModeChanged:e,columnPivotChanged:e}),this.updateOptions(),e()}updateOptions(){this.accentedSort=!!this.gos.get("accentedSort"),this.primaryColumnsSortGroups=iu(this.gos)}updatePivotModeState(){this.pivotActive=this.beans.colModel.isPivotActive()}doFullSortInPlace(e,t){return e.sort((e,i)=>this.compareRowNodes(t,e,i))}compareRowNodes(e,t,i){if(t===i)return 0;let o=this.accentedSort;for(let r=0,s=e.length;r<s;++r){let s,n=e[r],l="desc"===n.sort,a=this.getValue(t,n.column),d=this.getValue(i,n.column),h=this.getComparator(n,t);if(h?s=h(a,d,t,i,l):("absolute"===n.type&&(a=c1(a),d=c1(d)),s=k(a,d,o)),s)return"asc"===n.sort?s:-s}return 0}getComparator(e,t){let i=e.column.getColDef(),o=this.getComparatorFromColDef(i,e);if(o)return o;if(!i.showRowGroup)return;let r=!t.group&&i.field;if(!r)return;let s=this.beans.colModel.getColDefCol(r);if(s)return this.getComparatorFromColDef(s.getColDef(),e)}getComparatorFromColDef(e,t){let i=e.comparator;if(null!=i)return"object"==typeof i?i[i7(t.type)]:i}getValue(e,t){let i=this.beans;if(this.primaryColumnsSortGroups){if(e.rowGroupColumn===t)return this.getGroupDataValue(e,t);if(e.group&&t.getColDef().showRowGroup)return}let o=i.valueSvc.getValue(t,e,"data");if(t.isAllowFormula()){let r=i.formula;if(r?.isFormula(o))return r.resolveValue(t,e)}return o}getGroupDataValue(e,t){if(iC(this.gos,this.pivotActive)){let i=this.firstLeaf(e);return i&&this.beans.valueSvc.getValue(t,i,"data")}let i=this.beans.showRowGroupCols?.getShowRowGroupCol(t.getId());return i?e.groupData?.[i.getId()]:void 0}},c0=e=>{if(e.data)return e;let t=e.childrenAfterGroup;for(;t?.length;){let e=t[0];if(e.data)return e;t=e.childrenAfterGroup}},c1=e=>{if(!e)return e;if("bigint"==typeof e)return e<0n?-e:e;let t=Number(e);return isNaN(t)?e:Math.abs(t)},c3=(e,t)=>({tag:"span",ref:`eSort${e}`,cls:`ag-sort-indicator-icon ag-sort-${t} ag-hidden`,attrs:{"aria-hidden":"true"}}),c2={tag:"span",cls:"ag-sort-indicator-container",children:[c3("Order","order"),c3("Asc","ascending-icon"),c3("Desc","descending-icon"),c3("Mixed","mixed-icon"),c3("Abs
14oluteAsc","absolute-ascending-icon"),c3("AbsoluteDesc","absolute-descending-icon"),c3("None","none-icon")]},c6=class extends o5{constructor(e){super(),this.eSortOrder=oZ,this.eSortAsc=oZ,this.eSortDesc=oZ,this.eSortMixed=oZ,this.eSortNone=oZ,this.eSortAbsoluteAsc=oZ,this.eSortAbsoluteDesc=oZ,e||this.setTemplate(c2)}attachCustomElements(e,t,i,o,r,s,n){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=i,this.eSortMixed=o,this.eSortNone=r,this.eSortAbsoluteAsc=s,this.eSortAbsoluteDesc=n}setupSort(e,t=!1){if(this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),!e.isSortable()&&!e.getColDef().showRowGroup)return;this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("sortAbsoluteAscending",this.eSortAbsoluteAsc,e),this.addInIcon("sortAbsoluteDescending",this.eSortAbsoluteDesc,e);let i=this.updateIcons.bind(this),o=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",i),this.addManagedEventListeners({newColumnsLoaded:i,sortChanged:o,columnRowGroupChanged:o}),this.onSortChanged()}addInIcon(e,t,i){if(null==t)return;let o=o1(e,this.beans,i);o&&t.appendChild(o)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){let{eSortAsc:e,eSortDesc:t,eSortAbsoluteAsc:i,eSortAbsoluteDesc:o,eSortNone:r,column:s,gos:n,beans:l}=this,{isDefaultSortAllowed:a,isAbsoluteSortAllowed:d,isAbsoluteSort:h,isDefaultSort:u,isAscending:c,isDescending:g,direction:p}=i9(s,l);e&&eE(e,c&&u&&a,{skipAriaHidden:!0}),t&&eE(t,g&&u&&a,{skipAriaHidden:!0}),r&&eE(r,!(!s.getColDef().unSortIcon&&!n.get("unSortIcon"))&&!p,{skipAriaHidden:!0}),i&&eE(i,c&&h&&d,{skipAriaHidden:!0}),o&&eE(o,g&&h&&d,{skipAriaHidden:!0})}setupMultiSortIndicator(){let{eSortMixed:e,column:t,gos:i}=this;this.addInIcon("sortUnSort",e,t);let o=t.getColDef().showRowGroup;iu(i)&&o&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){let{eSortMixed:e,beans:t,column:i}=this;e&&eE(e,t.sortSvc.getDisplaySortForColumn(i)?.direction==="mixed",{skipAriaHidden:!0})}updateSortOrder(){let{eSortOrder:e,column:t,beans:{sortSvc:i}}=this;if(!e)return;let o=i.getColumnsWithSortingOrdered(),r=i.getDisplaySortIndexForColumn(t)??-1,s=o.some(e=>i.getDisplaySortIndexForColumn(e)??!1);eE(e,r>=0&&s,{skipAriaHidden:!0}),r>=0?e.textContent=(r+1).toString():eH(e)}},c4={selector:"AG-SORT-INDICATOR",component:c6},c5={moduleName:"Sort",version:tU,beans:[class extends tc{constructor(){super(...arguments),this.beanName="sortSvc"}progressSort(e,t,i){let o=this.getNextSortDirection(e);this.setSortForColumn(e,o,t,i)}progressSortFromEvent(e,t){let i="ctrl"===this.gos.get("multiSortKey")?t.ctrlKey||t.metaKey:t.shiftKey;this.progressSort(e,i,"uiColumnSorted")}setSortForColumn(e,t,i,o){let{gos:r,showRowGroupCols:s}=this.beans,n=iu(r),l=[e];if(n&&e.getColDef().showRowGroup){let t=s?.getSourceColumnsForGroupColumn?.(e),i=t?.filter(e=>e.isSortable());i&&(l=[e,...i])}for(let e of l)this.setColSort(e,t,o);let a=(i||r.get("alwaysMultiSort"))&&!r.get("suppressMultiSort"),d=[];if(!a){let e=this.clearSortBarTheseColumns(l,o);d.push(...e)}this.updateSortIndex(e),d.push(...l),this.dispatchSortChangedEvents(o,d)}updateSortIndex(e){let{gos:t,colModel:i,showRowGroupCols:o}=this.beans,r=iu(t),s=o?.getShowRowGroupCol(e.getId()),n=r&&s||e,l=this.getColumnsWithSortingOrdered();i.forAllCols(e=>this.setColSortIndex(e,null));let a=l.filter(e=>(!r||!e.getColDef().showRowGroup)&&e!==n);(n.getSortDef()?[...a,n]:a).forEach((e,t)=>this.setColSortIndex(e,t))}onSortChanged(e,t){this.dispatchSortChangedEvents(e,t)}isSortActive(){let e=!1;return this.beans.colModel.forAllCols(t=>{if(t.getSortDef())return e=!0,!0}),e}dispatchSortChangedEvents(e,t){let i={type:"sortChanged",source:e};t&&(i.columns=t),this.eventSvc.dispatchEvent(i)}clearSortBarTheseColumns(e,t){let i=[];return this.beans.colModel.forAllCols(o=>{e.includes(o)||(o.getSortDef()&&i.push(o),this.setColSort(o,void 0,t))}),i}getNextSortDirection(e){let t=e.getSortingOrder(),i=e.getSortDef(),o=t.findIndex(e=>i5(e,i))+1;return o>=t.length&&(o=0),i3(t[o])}getIndexedSortMap(){let{gos:e,colModel:t,showRowGroupCols:i,rowGroupColsSvc:o}=this.beans,r=[];if(t.forAllCols(e=>{e.getSortDef()&&r.push(e)}),t.isPivotMode()){let t=iu(e);r=r.filter(e=>{let o=!!e.getAggFunc(),r=!e.isPrimary(),s=t?i?.getShowRowGroupCol(e.getId()):e.getColDef().showRowGroup;return o||r||s})}let s=o?.columns.filter(e=>!!e.getSortDef())??[],n={};r.forEach((e,t)=>n[e.getId()]=t),r.sort((e,t)=>
14{let i=e.getSortIndex(),o=t.getSortIndex();return null!=i&&null!=o?i-o:null==i&&null==o?n[e.getId()]>n[t.getId()]?1:-1:null==o?-1:1});let l=iu(e)&&!!s.length;l&&(r=[...new Set(r.map(e=>i?.getShowRowGroupCol(e.getId())??e))]);let a=new Map;if(r.forEach((e,t)=>a.set(e,t)),l)for(let e of s){let t=i.getShowRowGroupCol(e.getId());a.set(e,a.get(t))}return a}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort(([,e],[,t])=>e-t).map(([e])=>e)}collectSortItems(e=!1){let t=[];for(let i of this.getColumnsWithSortingOrdered()){let o=i.getSortDef()?.direction;if(!o)continue;let r={sort:o,type:i7(i.getSortDef()?.type)};e?r.colId=i.getId():r.column=i,t.push(r)}return t}getSortModel(){return this.collectSortItems(!0)}getSortOptions(){return this.collectSortItems()}canColumnDisplayMixedSort(e){let t=iu(this.gos),i=!!e.getColDef().showRowGroup;return t&&i}getDisplaySortForColumn(e){let t=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!t?.length)return e.getSortDef();let i=null!=e.getColDef().field||e.getColDef().valueGetter?[e,...t]:t,o=i[0].getSortDef();return i.every(e=>i5(e.getSortDef(),o))?o:{type:i7(e.getSortDef()?.type),direction:"mixed"}}getDisplaySortIndexForColumn(e){return this.getIndexedSortMap().get(e)}setupHeader(e,t){let i=()=>{let{type:i,direction:o}=i3(t.getSortDef());if(e.toggleCss("ag-header-cell-sorted-asc","asc"===o),e.toggleCss("ag-header-cell-sorted-desc","desc"===o),e.toggleCss("ag-header-cell-sorted-abs-asc","absolute"===i&&"asc"===o),e.toggleCss("ag-header-cell-sorted-abs-desc","absolute"===i&&"desc"===o),e.toggleCss("ag-header-cell-sorted-none",!o),t.getColDef().showRowGroup){let i=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(t),r=i?.every(e=>o==e.getSortDef()?.direction);e.toggleCss("ag-header-cell-sorted-mixed",!r)}};e.addManagedEventListeners({sortChanged:i,columnPinned:i,columnRowGroupChanged:i,displayedColumnsChanged:i})}initCol(e){let{sortIndex:t,initialSortIndex:i}=e.colDef,o=oS(e.colDef);o&&e.setSortDef(o,!0),void 0!==t?null!==t&&(e.sortIndex=t):null!==i&&(e.sortIndex=i)}updateColSort(e,t,i){void 0!==t&&this.setColSort(e,i3(t),i)}setColSort(e,t,i){i5(e.getSortDef(),t)||(e.setSortDef(i3(t),void 0===t),e.dispatchColEvent("sortChanged",i)),e.dispatchStateUpdatedEvent("sort")}setColSortIndex(e,t){e.sortIndex=t,e.dispatchStateUpdatedEvent("sortIndex")}createSortIndicator(e){return new c6(e)}getSortIndicatorSelector(){return c4}},cX],apiFunctions:{onSortChanged:function(e){e.sortSvc?.onSortChanged("api")}},userComponents:{agSortIndicator:c6},icons:{sortAscending:"asc",sortDescending:"desc",sortUnSort:"none",sortAbsoluteAscending:"aasc",sortAbsoluteDescending:"adesc"}},c8=class extends tc{constructor(){super(...arguments),this.beanName="syncSvc",this.waitingForColumns=!1}postConstruct(){this.addManagedPropertyListener("columnDefs",e=>this.setColumnDefs(e))}start(){this.beans.ctrlsSvc.whenReady(this,()=>{let e=this.gos.get("columnDefs");e?this.setColumnsAndData(e):this.waitingForColumns=!0,this.gridReady()})}setColumnsAndData(e){let{colModel:t,rowModel:i}=this.beans;t.setColumnDefs(e??[],"gridInitializing"),i.start()}gridReady(){let{eventSvc:e,gos:t}=this;e.dispatchEvent({type:"gridReady"}),tM(t,`initialised successfully, enterprise = ${t.isModuleRegistered("EnterpriseCore")}`)}setColumnDefs(e){let t=this.gos.get("columnDefs");if(t){if(this.waitingForColumns){this.waitingForColumns=!1,this.setColumnsAndData(t);return}this.beans.colModel.setColumnDefs(t,ow(e.source))}}},c7=class extends tc{constructor(){super(...arguments),this.beanName="changeDetectionSvc",this.clientSideRowModel=null}postConstruct(){let{gos:e,rowModel:t}=this.beans;t8(e,t)&&(this.clientSideRowModel=t),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}onCellValueChanged(e){let{gos:t,rowRenderer:i}=this.beans;if("paste"===e.source||t.get("suppressChangeDetection"))return;let o=e.node,r=[o],s=this.clientSideRowModel,n=s?.rootNode;if(n&&!o.isRowPinned()){let i=new aS(t.get("aggregateOnlyChangedColumns"),n);
14i.addParentNode(o.parent,[e.column]),s.doAggregate(i),i.forEachChangedNodeDepthFirst(e=>{r.push(e),e.sibling&&r.push(e.sibling)})}i.refreshCells({rowNodes:r})}},c9=class extends tc{constructor(){super(...arguments),this.beanName="expressionSvc",this.cache={}}evaluate(e,t){if("string"==typeof e)return this.evaluateExpression(e,t);t0(15,{expression:e})}evaluateExpression(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.getValue,t.column,t.columnGroup)}catch(i){return t0(16,{expression:e,params:t,e:i}),null}}createExpressionFunction(e){let t=this.cache;if(t[e])return t[e];let i=Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",this.createFunctionBody(e));return t[e]=i,i}createFunctionBody(e){return e.includes("return")?e:"return "+e+";"}},ge={moduleName:"ValueCache",version:tU,beans:[class extends tc{constructor(){super(...arguments),this.beanName="valueCache",this.cacheVersion=0}postConstruct(){let e=this.gos;this.active=e.get("valueCache"),this.neverExpires=e.get("valueCacheNeverExpires")}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(e,t,i){if(this.active){let o=this.cacheVersion;e.__cacheVersion!==o&&(e.__cacheVersion=o,e.__cacheData={}),e.__cacheData[t]=i}}getValue(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]}}],apiFunctions:{expireValueCache:function(e){e.valueCache?.expire()}}},gt={moduleName:"CellApi",version:tU,apiFunctions:{getCellValue:function(e,t){let{colKey:i,rowNode:o,useFormatter:r,from:s="edit"}=t,n=e.colModel.getColDefCol(i)??e.colModel.getCol(i);if(!n)return null;let l=e.valueSvc.getValueForDisplay({column:n,node:o,includeValueFormatted:r,from:s});return r?l.valueFormatted??L(l.value):l.value}}},gi={moduleName:"CommunityCore",version:tU,beans:[uy,l8,dF,ri,cj,aX,uf,u$,a2,cT,ck,cY,class extends tc{constructor(){super(...arguments),this.beanName="valueSvc",this.initialised=!1,this.isSsrm=!1}wireBeans(e){this.expressionSvc=e.expressionSvc,this.colModel=e.colModel,this.valueCache=e.valueCache,this.dataTypeSvc=e.dataTypeSvc,this.editSvc=e.editSvc,this.formulaDataSvc=e.formulaDataSvc}postConstruct(){this.initialised||this.init()}init(){let{gos:e,valueCache:t}=this;this.executeValueGetter=t?this.executeValueGetterWithValueCache.bind(this):this.executeValueGetterWithoutValueCache.bind(this),this.isSsrm=t7(e),this.cellExpressions=e.get("enableCellExpressions"),this.isTreeData=e.get("treeData"),this.initialised=!0;let i=e=>this.callColumnCellValueChangedHandler(e);this.eventSvc.addListener("cellValueChanged",i,!0),this.addDestroyFunc(()=>this.eventSvc.removeListener("cellValueChanged",i,!0)),this.addManagedPropertyListener("treeData",e=>this.isTreeData=e.currentValue)}getValueForDisplay(e){let t=this.beans,i=e.column,o=e.node,r=t.showRowGroupColValueSvc,s=!i&&o.group,n=i?.colDef.showRowGroup,l=!this.isTreeData||o.footer;if(r&&l&&(s||n)){let t=r.getGroupValue(o,i,this.displayIgnoresAggData(o));return null==t?{value:null,valueFormatted:null}:{value:t.value,valueFormatted:e.includeValueFormatted?r.formatAndPrefixGroupColValue(t,i,e.exporting):null}}if(!i)return{value:o.key,valueFormatted:null};let a=this.getValue(i,o,e.from,this.displayIgnoresAggData(o)),d=a,h=t.formula;return i.isAllowFormula()&&h?.isFormula(a)&&(e.useRawFormula?(a=h.normaliseFormula(a,!0),d=h.resolveValue(i,o)):d=a=h.resolveValue(i,o)),{value:a,valueFormatted:e.includeValueFormatted&&!(e.exporting&&!1===i.colDef.useValueFormatterForExport)?this.formatValue(i,o,d):null}}getValue(e,t,i,o=!1){if(this.initialised||this.init(),!t)return;let r=e.getColDef();if(!t.group){let t=r.pivotValueColumn;t&&(e=t)}let s=this.editSvc?.getPendingEditValue(t,e,i);if(void 0!==s)return s;let n=r.showRowGroup;if("string"==typeof n&&(this.beans.rowGroupColsSvc?.getColumnIndex(n)??-1)>t.level)return null;let l=this.resolveValue(e,t,o);if(this.cellExpressions&&H(l)){let i=l.substring(1);l=this.executeValueGetter(i,t.data,e,t)}return l}getFormulaFromDataSource(e,t){let i=this.formulaDataSvc;if(!i?.hasDataSource()||!e.isAllowFormula())return;let o=i.getFormula({column:e,rowNode:t});return H(o)?o:void 0}displayIgnoresAggData(e){return!(!e.group||!e.expanded||e.footer||e.leafGroup&&this.colModel.isPivotMode())&&!!e.sibling&&!this.gos.get("groupSuppressBlankHeader")}resolveValue(e,t,i){let o=e.getColDef(),r=e.getColId(),s=this.isTreeData,n=this.getFormulaFromDataSource(e,t);if(void 0!==n)return n;let l=!i&&t.aggData&&void 0!==t.aggData[r];if(s&&l)return t.aggData[r];let a=t.data,d=o.field;
14if(s&&o.valueGetter)return this.executeValueGetter(o.valueGetter,a,e,t);if(s&&d&&a)return du(a,d,e.isFieldContainsDots());let h=t.groupData;if(h&&r in h)return t.groupData[r];if(l)return t.aggData[r];let u=o.showRowGroup,c="string"!=typeof u||!t.group,g=this.isSsrm&&i&&!!o.aggFunc,p=this.isSsrm&&t.footer&&t.field&&(!0===u||u===t.field);if(o.valueGetter&&!g){if(!c)return;return this.executeValueGetter(o.valueGetter,a,e,t)}if(p)return du(a,t.field,e.isFieldContainsDots());if(d&&a&&!g){if(!c)return;return du(a,d,e.isFieldContainsDots())}}parseValue(e,t,i,o){let r=e.getColDef();if(r.allowFormula&&this.beans.formula?.isFormula(i))return i;let s=r.valueParser;if(F(s)){let n=iK(this.gos,{node:t,data:t?.data,oldValue:o,newValue:i,colDef:r,column:e});return"function"==typeof s?s(n):this.expressionSvc?.evaluate(s,n)}return i}getDeleteValue(e,t){return F(e.getColDef().valueParser)?this.parseValue(e,t,"",this.getValueForDisplay({column:e,node:t,from:"edit"}).value)??null:null}formatValue(e,t,i,o,r=!0){let s,{expressionSvc:n}=this.beans,l=null,a=e.getColDef();if(o?s=o:r&&(s=a.valueFormatter),s){let o=t?t.data:null,r=iK(this.gos,{value:i,node:t,data:o,colDef:a,column:e});l="function"==typeof s?s(r):n?n.evaluate(s,r):null}else if(a.refData)return a.refData[i]||"";return null==l&&Array.isArray(i)&&(l=i.join(", ")),l}setValue(e,t,i,o){let r=t.getColDef();if(!e.data&&this.canCreateRowNodeData(e,r)&&(e.data={}),!this.isSetValueSupported({column:t,newValue:i,colDef:r}))return!1;let s=this.getValue(t,e,"data"),n=iK(this.gos,{node:e,data:e.data,oldValue:s,newValue:i,colDef:r,column:t}),l=e.group?r.groupRowValueSetter:void 0,a=!1,d=!1;if(e.data){let s=this.handleExternalFormulaChange({column:t,eventSource:o,newValue:i,setterParams:n,rowNode:e});if(null!==s)return s;a=this.computeValueChange({column:t,rowNode:e,newValue:i,params:n,rowData:e.data,valueSetter:r.valueSetter,field:r.field})??!0}return l&&(d=l(iK(this.gos,{node:e,data:e.data,oldValue:s,newValue:i,colDef:r,column:t,eventSource:o,valueChanged:a||i!==s,aggregatedChildren:this.beans.aggStage?.getAggregatedChildren(e,t)??[]}))??!0),(!!a||!!d)&&this.finishValueChange(e,t,n,o)}canCreateRowNodeData(e,t){return!e.group||null==t.groupRowValueSetter&&null==t.groupRowEditable&&!t.pivotValueColumn}finishValueChange(e,t,i,o){e.resetQuickFilterAggregateText(),this.valueCache?.onDataChanged();let r=this.getValue(t,e,"data");return this.dispatchCellValueChangedEvent(e,i,r,o),e.pinnedSibling&&this.dispatchCellValueChangedEvent(e.pinnedSibling,i,r,o),!0}isSetValueSupported(e){let{column:t,newValue:i,colDef:o}=e,{field:r,valueSetter:s}=o,n=this.beans.formula,l=t.isAllowFormula()&&n?.isFormula(i),a=!!this.formulaDataSvc?.hasDataSource();return P(r)&&P(s)&&!(a&&l)?(tX(17),!1):!this.dataTypeSvc||!!this.dataTypeSvc.checkType(t,i)||(tX(135),!1)}handleExternalFormulaChange(e){let{column:t,rowNode:i,newValue:o,eventSource:r,setterParams:s}=e,n=this.beans.formula,l=this.formulaDataSvc;if(!l?.hasDataSource()||!t.isAllowFormula())return null;let a=n?.isFormula(o),d=l.getFormula({column:t,rowNode:i});if(a){if(d===o)return!1;l.setFormula({column:t,rowNode:i,formula:o});let e=n?.resolveValue(t,i),a=t.getColDef();if(F(a.valueSetter)||!P(a.field)){let o={...s,newValue:e};this.computeValueChange({column:t,rowNode:i,newValue:e,params:o,rowData:i.data,valueSetter:a.valueSetter,field:a.field})}return this.finishValueChange(i,t,s,r)}return void 0!==d&&l.setFormula({column:t,rowNode:i,formula:void 0}),null}computeValueChange(e){let{valueSetter:t,params:i,rowData:o,field:r,column:s,newValue:n}=e;return F(t)?"function"==typeof t?t(i):this.expressionSvc?.evaluate(t,i):!!o&&this.setValueUsingField(o,r,n,s.isFieldContainsDots())}dispatchCellValueChangedEvent(e,t,i,o){this.eventSvc.dispatchEvent({type:"cellValueChanged",event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:t.column,colDef:t.colDef,data:e.data,node:e,oldValue:t.oldValue,newValue:i,value:i,source:o})}callColumnCellValueChangedHandler(e){let t=e.colDef.onCellValueChanged;"function"==typeof t&&this.beans.frameworkOverrides.wrapOutgoing(()=>{t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,context:e.context})})}setValueUsingField(e,t,i,o){if(!t)return!1;let r=!1;if(o){let o=t.split("."),s=e;for(;o.length>0&&s;){let e=o.shift();0===o.length?(r=s[e]===i)||(s[e]=i):s=s[e]}}else(r=e[t]===i)||(e[t]=i);return!r}executeValueGetterWithValueCache(e,t,i,o){let r=i.getColId(),s=this.valueCache.getValue(o,r);if(void 0!==s)return s;
14let n=this.executeValueGetterWithoutValueCache(e,t,i,o);return this.valueCache.setValue(o,r,n),n}executeValueGetterWithoutValueCache(e,t,i,o){let r=iK(this.gos,{data:t,node:o,column:i,colDef:i.getColDef(),getValue:e=>this.getValueCallback(o,e)});return"function"==typeof e?e(r):this.expressionSvc?.evaluate(e,r)}getValueCallback(e,t){let i=this.colModel.getColDefCol(t);return i?this.getValue(i,e,"data"):null}getKeyForNode(e,t){let i=this.getValue(e,t,"data"),o=e.getColDef().keyCreator,r=i;return o&&(r=o(iK(this.gos,{value:i,colDef:e.getColDef(),column:e,node:t,data:t.data}))),"string"==typeof r||null==r||"[object Object]"===(r=String(r))&&tX(121),r}},uw,up,ub,dP,c8,dS,dR,uJ],icons:{selectOpen:"small-down",smallDown:"small-down",colorPicker:"color-picker",smallUp:"small-up",checkboxChecked:"small-up",checkboxIndeterminate:"checkbox-indeterminate",checkboxUnchecked:"checkbox-unchecked",radioButtonOn:"radio-button-on",radioButtonOff:"radio-button-off",smallLeft:"small-left",smallRight:"small-right"},apiFunctions:{getGridId:l7,destroy:function(e){e.gridDestroySvc.destroy()},isDestroyed:function(e){return e.gridDestroySvc.destroyCalled},getGridOption:function(e,t){return e.gos.get(t)},setGridOption:function(e,t,i){l9(e,{[t]:i})},updateGridOptions:l9,isModuleRegistered:function(e,t){let i=t.replace(/Module$/,"");return e.gos.isModuleRegistered(i)}},dependsOn:[{moduleName:"DataType",version:tU,beans:[dg],dependsOn:[{moduleName:"CheckboxCellRenderer",version:tU,userComponents:{agCheckboxCellRenderer:nu}}]},a$,{moduleName:"ColumnResize",version:tU,beans:[aY],apiFunctions:{setColumnWidths:function(e,t,i=!0,o="api"){e.colResize?.setColumnWidths(t,!1,i,o)}},dependsOn:[aB,aq]},c5,{moduleName:"ColumnHeaderComp",version:tU,userComponents:{agColumnHeader:uK},icons:{menu:"menu",menuAlt:"menu-alt"}},a3,{moduleName:"ColumnGroupHeaderComp",version:tU,userComponents:{agColumnGroupHeader:uQ},icons:{columnGroupOpened:"expanded",columnGroupClosed:"contracted"}},{moduleName:"Overlay",version:tU,userComponents:{agLoadingOverlay:ne,agNoRowsOverlay:nr,agNoMatchingRowsOverlay:ni,agExportingOverlay:s7},apiFunctions:{showLoadingOverlay:function(e){e.overlays?.showLoadingOverlay()},showNoRowsOverlay:function(e){e.overlays?.showNoRowsOverlay()},hideOverlay:function(e){e.overlays?.hideOverlay()}},icons:{overlayLoading:"loading",overlayExporting:"loading"},beans:[cK]},{moduleName:"ChangeDetection",version:tU,beans:[c7]},{moduleName:"AnimationFrame",version:tU,beans:[uZ]},cM,{moduleName:"PinnedColumn",version:tU,beans:[cI],css:[".ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top{min-width:0;overflow:hidden;position:relative}.ag-pinned-left-sticky-top,.ag-pinned-right-sticky-top{height:100%;overflow:hidden;position:relative}.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{height:100%;overflow:hidden;width:100%}.ag-pinned-left-header,.ag-pinned-right-header{display:inline-block;height:100%;overflow:hidden;position:relative}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible){.ag-horizontal-left-spacer:not(.ag-scroller-corner){border-right:var(--ag-pinned-column-border)}.ag-horizontal-right-spacer:not(.ag-scroller-corner){border-left:var(--ag-pinned-column-border)}}.ag-pinned-right-header{border-left:var(--ag-pinned-column-border)}.ag-pinned-left-header{border-right:var(--ag-pinned-column-border)}.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-left:var(--ag-pinned-column-border)}.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-right:var(--ag-pinned-column-border)}.ag-pinned-left-header .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-right-header .ag-header-cell-resize:after{left:50%}.ag-pinned-left-header .ag-header-cell-resize{right:-3px}.ag-pinned-right-header .ag-header-cell-resize{left:-3px}"]},{moduleName:"Aria",version:tU,beans:[class extends cL{}]},{moduleName:"Touch",version:tU,beans:[uX]},{moduleName:"CellRendererFunction",version:tU,beans:[dE]},{moduleName:"ColumnFlex",version:tU,beans:[a7]},{moduleName:"Expression",version:tU,beans:[c9]},{moduleName:"SkeletonCellRenderer",version:tU,userComponents:{agSkeletonCellRenderer:a4}},{moduleName:"ColumnDelayRender",version:tU,beans:[cH],css:[":where(.ag-delay-render){.ag-cell,.ag-header-cell,.ag-header-group-cell,.ag-row,.ag-spanned-cell-wrapper{visibility:hidden}}"]}]};function go(e){let{inputValue:t,allSuggestions:i,hideIrrelevant:o,filterByPercentageOfBestMatch:r}=e,s=(i??[]).map((e,i)=>({value:e,relevance:function(e,t){let i,o=e.length,r=t.length;if(0===r)return o||0;let s=e.toLocaleLowerCase(),n=t.toLocaleLowerCase();e.length<t.length&&(i=n,n=s,s=i,i=t,t=e,e=i);let l=new Uint16Array(r+1),a=new Uint16Array(r+1);for(let e=0;e<=r;e++)l[e]=e;let d=0,h=o/2-10;for(let u=1;u<=o;u++){let o=e[u-1],c=s[u-1];a[0]=u;for(let i=1;i<=r;i++){let r=t[i-1];
14if(c!==n[i-1]){let e=a[i-1],t=l[i],o=l[i-1],r=e<t?e:t;o<r&&(r=o),a[i]=r+1|0;continue}if(d++,o===r&&d++,u>1&&i>1){let o=e[u-2],r=s[u-2],l=t[i-2];r===n[i-2]&&(d++,o===l&&d++)}u<h&&d++,a[i]=l[i-1]}i=l,l=a,a=i}return l[r]/(d+1)}(t,e),idx:i}));if(s.sort((e,t)=>e.relevance-t.relevance),o&&(s=s.filter(e=>e.relevance<Math.max(e.value.length,t.length))),s.length>0&&r&&r>0){let e=s[0].relevance*r;s=s.filter(t=>e-t.relevance<0)}let n=[],l=[];for(let e of s)n.push(e.value),l.push(e.idx);return{values:n,indices:l}}var gr={AdvancedFilter:1,AiToolkit:1,AllEnterprise:1,BatchEdit:1,CellSelection:1,Clipboard:1,ColumnMenu:1,ColumnsToolPanel:1,ContextMenu:1,ExcelExport:1,FiltersToolPanel:1,Find:1,GridCharts:1,IntegratedCharts:1,GroupFilter:1,MasterDetail:1,Menu:1,MultiFilter:1,NewFiltersToolPanel:1,Pivot:1,RangeSelection:1,RichSelect:1,RowNumbers:1,RowGrouping:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,SideBar:1,Sparklines:1,StatusBar:1,TreeData:1,ViewportRowModel:1,Formula:1},gs=["TextFilter","NumberFilter","BigIntFilter","DateFilter","SetFilter","MultiFilter","GroupFilter","CustomFilter"],gn={EditCore:["TextEditor","NumberEditor","DateEditor","CheckboxEditor","LargeTextEditor","SelectEditor","RichSelect","CustomEditor"],CheckboxCellRenderer:["AllCommunity"],ClientSideRowModelHierarchy:["RowGrouping","Pivot","TreeData"],ColumnFilter:gs,ColumnGroupHeaderComp:["AllCommunity"],ColumnGroup:["AllCommunity"],ColumnHeaderComp:["AllCommunity"],ColumnMove:["AllCommunity"],ColumnResize:["AllCommunity"],CommunityCore:["AllCommunity"],CsrmSsrmSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],RowModelSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],EnterpriseCore:["AllEnterprise"],FilterCore:[...gs,"QuickFilter","ExternalFilter","AdvancedFilter"],GroupCellRenderer:["RowGrouping","Pivot","TreeData","MasterDetail","ServerSideRowModel"],KeyboardNavigation:["AllCommunity"],LoadingCellRenderer:["ServerSideRowModel"],MenuCore:["ColumnMenu","ContextMenu"],MenuItem:["ColumnMenu","ContextMenu","MultiFilter","IntegratedCharts","ColumnsToolPanel"],Overlay:["AllCommunity"],PinnedColumn:["AllCommunity"],SharedAggregation:["RowGrouping","Pivot","TreeData","ServerSideRowModel"],SharedDragAndDrop:["AllCommunity"],SharedMasterDetail:["MasterDetail","ServerSideRowModel"],SharedMenu:[...gs,"ColumnMenu","ContextMenu"],SharedPivot:["Pivot","ServerSideRowModel"],SharedRowGrouping:["RowGrouping","ServerSideRowModel"],SharedRowSelection:["RowSelection","ServerSideRowModel"],SkeletonCellRenderer:["ServerSideRowModel"],Sort:["AllCommunity"],SsrmInfiniteSharedApi:["InfiniteRowModel","ServerSideRowModelApi"],SharedTreeData:["TreeData","ServerSideRowModel"]},gl={InfiniteRowModel:"infinite",ClientSideRowModelApi:"clientSide",ClientSideRowModel:"clientSide",ServerSideRowModelApi:"serverSide",ServerSideRowModel:"serverSide",ViewportRowModel:"viewport"},ga=()=>`No AG Grid modules are registered! It is recommended to start with all Community features via the AllCommunityModule:
15                    
16    import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community';
17    
18    ModuleRegistry.registerModules([ AllCommunityModule ]);
19    `;function gd(e,t=!1){return t&&("IntegratedCharts"===e||"Sparklines"===e)?`${e}Module.with(AgChartsEnterpriseModule)`:`${e}Module`}function gh({moduleName:e,rowModelType:t}){return`To use the ${e}Module you must set the gridOption "rowModelType='${t}'"`}var gu=({reasonOrId:e,moduleName:t,gridScoped:i,gridId:o,rowModelType:r,additionalText:s,isUmd:n})=>{let l=function(e,t){let i=[];for(let o of Array.isArray(e)?e:[e]){let e=gn[o];if(e)for(let o of e){let e=gl[o];e&&e!==t||i.push(o)}else i.push(o)}return i}(t,r),a="string"==typeof e?e:gm[e];if(n)return function(e,t){let i=t.filter(e=>"IntegratedCharts"===e||"Sparklines"===e),o="";return!globalThis?.agCharts&&i.length>0?o=`Unable to use ${e} as either the ag-charts-community or ag-charts-enterprise script needs to be included alongside ag-grid-enterprise.
20`:t.some(e=>gr[e])&&(o+=`Unable to use ${e} as that requires the ag-grid-enterprise script to be included.
21`),o}(a,l);let d=l.filter(e=>"IntegratedCharts"===e||"Sparklines"===e),h=d.length>0?`${d.map(e=>gd(e)).join()} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.`:"",u=`Unable to use ${a} as ${l.length>1?"one of "+l.map(e=>gd(e)).join(", "):gd(l[0])} is not registered${i?" for gridId: "+o:""}. ${h} Check if you have registered the module:
22`;return`${u}
23${(e=>{let t=e.map(e=>`import { ${gd(e)} } from '${gr[e]?"ag-grid-enterprise":"ag-grid-community"}';`);return e.some(e=>"IntegratedCharts"===e||"Sparklines"===e)&&t.push("import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';"),`import { ModuleRegistry } from 'ag-grid-community'; 
24${t.join(" \n")} 
25
26ModuleRegistry.registerModules([ ${e.map(e=>gd(e,!0)).join(", ")} ]); 
27
28For more info see: ${tq}/modules/`})(l)}`+(s?` 
29
30${s}`:"")},gc=e=>`${e} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.
31
32import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';
33import { ModuleRegistry } from 'ag-grid-community';
34import { ${e} } from 'ag-grid-enterprise';
35    
36ModuleRegistry.registerModules([${e}.with(AgChartsEnterpriseModule)]);
37    `,gg={1:()=>"`rowData` must be an array",2:({nodeId:e})=>`Duplicate node id '${e}' detected from getRowId callback, this could cause issues in your grid.`,3:()=>"Calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.",4:({id:e})=>`Could not find row id=${e}, data item was not found for this id`,5:({data:e})=>["Could not find data item as object was not found.",e," Consider using getRowId to help the Grid find matching row data"],6:()=>"'groupHideOpenParents' only works when specifying specific columns for 'colDef.showRowGroup'",7:()=>"Pivoting is not supported with aligned grids as it may produce different c
37olumns in each grid.",8:({key:e})=>`Unknown key for navigation ${e}`,9:({variable:e})=>`No value for ${e?.cssName}. This usually means that the grid has been initialised before styles have been loaded. The default value of ${e?.defaultValue} will be used and updated when styles load.`,10:({eventType:e})=>`As of v33, the '${e}' event is deprecated. Use the global 'modelUpdated' event to determine when row children have changed.`,11:()=>"No gridOptions provided to createGrid",12:({colKey:e})=>["column ",e," not found"],13:()=>"Could not find rowIndex, this means tasks are being executed on a rowNode that has been removed from the grid.",14:({groupPrefix:e})=>`Row IDs cannot start with ${e}, this is a reserved prefix for AG Grid's row grouping feature.`,15:({expression:e})=>["value should be either a string or a function",e],16:({expression:e,params:t,e:i})=>["Processing of the expression failed","Expression = ",e,"Params = ",t,"Exception = ",i],17:()=>"you need either field or valueSetter set on colDef for editing to work",18:()=>"alignedGrids contains an undefined option.",19:()=>"alignedGrids - No api found on the linked grid.",20:()=>`You may want to configure via a callback to avoid setup race conditions:
38                     "alignedGrids: () => [linkedGrid]"`,21:()=>"pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.",22:({key:e})=>`${e} is an initial property and cannot be updated.`,23:()=>"The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.",24:()=>"row height must be a number if not using standard row model",25:({id:e})=>["The getRowId callback must return a string. The ID ",e," is being cast to a string."],26:({fnName:e,preDestroyLink:t})=>`Grid API function ${e}() cannot be called as the grid has been destroyed.
39 Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.
40 To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${t}`,27:({fnName:e,module:t})=>`API function '${e}' not registered to module '${t}'`,28:()=>"setRowCount cannot be used while using row grouping.",29:()=>"tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?",30:({toIndex:e})=>["tried to insert columns in invalid location, toIndex = ",e,"remember that you should not count the moving columns when calculating the new index"],31:()=>"infinite loop in resizeColumnSets",32:()=>"applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.",33:()=>"stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON.",34:({key:e})=>`the column type '${e}' is a default column type and cannot be overridden.`,35:()=>"Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type.",36:({t:e})=>"colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes",37:()=>"Changing the column pinning status is not allowed with domLayout='print'",38:({iconName:e})=>`provided icon '${e}' needs to be a string or a function`,39:()=>"Applying column order broke a group where columns should be married together. Applying new order has been discarded.",40:({e,method:t})=>`${e}
41AG Grid: Unable to use the Clipboard API (navigator.clipboard.${t}()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.`,41:()=>"Browser did not allow document.execCommand('copy'). Ensure 'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons.",42:()=>"Browser does not support document.execCommand('copy') for clipboard operations",43:({iconName:e})=>`As of v33, icon '${e}' is deprecated. Use the icon CSS name instead.`,44:()=>'Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.',45:({parentCellDataType:e})=>`The data type definition ${e} does not exist.`,46:()=>'The "baseDataType" property of a data type definition must match that of its parent.',47:({cellDataType:e})=>`Missing data type definition - "${e}"`,48:({property:e})=>`Cell data type is "object" but no Value ${e} has been provided. Please either provide an object data type definition with a Value ${e}, or set "colDef.value${e}"`,49:({methodName:e})=>`Framework component is missing the method ${e}()`,50:({compName:e})=>`Could not find component ${e}, did you forget to configure this component?`,51:()=>"Export cancelled. Export is not allowed as per your configuration.",52:()=>"There is no `window` associated with the current `document`",53:()=>"unknown value type during csv conversion",54:()=>"Could not find document body, it is needed for drag and drop and context menu.",55:()=>"addRowDropZone - A container target needs to be provided",56:()=>"addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.",57:()=>"unable to show popup filter, filter instantiation failed",58:()=>"no values found for select cellEditor",59:()=>"cannot select pinned rows",60:()=>"cannot select node until it has finished loading",61:()=>"since version v32.2.0, rowNode.isFullWidthCell() has been deprecated. Instead check `rowNode.detail` followed by the user provided `isFullWidthRow` grid option.",62:({colId:e})=>`setFilterModel() - no column found for colId: ${e}`,63:({colId:e})=>`setFilterModel() - unable to fully apply model, filtering disabled for colId: ${e}`,64:({colId:e})=>`setFilterModel() - unable to fully apply model, unable to create filter for colId: ${e}`,65:()=>"filter missing setModel method, which is needed for setFilterModel",66:()=>"filter API missing getModel method, which is needed for getFilterModel",67:()=>"Filter is missing isFilterActive() method",68:()=>"Column Filter API methods have been disabled as Advanced Filters are enabled.",69:({guiFromFilter:e})=>`getGui method from filter returned ${e}; it should be a DOM element.`,70:({newFilter:e})=>`Grid option quickFilterText only supports string inputs, received: ${typeof e}`,71:()=>"debounceMs is ignored when apply button is present",72:({keys:e})=>["ignoring FilterOptionDef as it doesn't contain one of ",e],73:()=>"invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'",74:()=>"no filter options for filter",75:()=>"Unknown button type specified",76:({filterModelType:e})=>['Unexpected type of filter "',e,'", it looks like the filter was configured with incorrect Filter Options'],77:()=>"Filter model is missing 'conditions'",78:()=>'Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.',79:()=>'"filterParams.maxNumConditions" must be greater than or equal to zero.',80:()=>'"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.',81:()=>'"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".',82:({param:e})=>`DateFilter ${e} is not a number`,83:()=>"DateFilter minValidYear should be <= maxValidYear",84:()=>"DateFilter minValidDate should be <= maxValidDate",85:()=>"DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.",86:()=>"DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.",87:()=>"DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.",88:({index:e})=>`Invalid row index for ensureIndexVisible: ${e}`,89:()=>"A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)",90:()=>"datasource is missing getRows method",91:()=>"Filter is missing method doesFilterPass",92:()=>"AnimationFrameService called but animation frames are off",93:()=>"cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`",94:({paginationPageSizeOption:e,pageSizeSet:t,pageSizesSet:i,pageSizeOptions:o})=>`'paginationPageSize=${e}'${t?"":" (default value)"}, but ${e} is not included in${i?"":" the default"} paginationPageSizeSelector=[${o?.join(", ")}].`,95:({paginationPageSizeOption:e,paginationPageSizeSelector:t})=>`Either set '${t}' to an array that includes ${e} or to 'false' to disable the page size selector.`,96:({id:e,data:t})=>
41["Duplicate ID",e,"found for pinned row with data",t,"When `getRowId` is defined, it must return unique IDs for all pinned rows. Use the `rowPinned` parameter."],97:({colId:e})=>`cellEditor for column ${e} is missing getGui() method`,98:()=>"popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.",99:()=>"Since v32, `api.hideOverlay()` does not hide the loading overlay when `loading=true`. Set `loading=false` instead.",101:({propertyName:e,componentName:t,agGridDefaults:i,jsComps:o})=>{let r=[],s=go({inputValue:t,allSuggestions:[...Object.keys(i??[]).filter(e=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(e)),...Object.keys(o??[]).filter(e=>!!o[e])],hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return r.push(`Could not find '${t}' component. It was configured as "${e}: '${t}'" but it wasn't found in the list of registered components.
42`),s.length>0&&r.push(`         Did you mean: [${s.slice(0,3)}]?
43`),r.push("If using a custom component check it has been registered correctly."),r},102:()=>"selectAll: 'filtered' only works when gridOptions.rowModelType='clientSide'",103:()=>"Invalid selection state. When using client-side row model, the state must conform to `string[]`.",104:({value:e,param:t})=>`Numeric value ${e} passed to ${t} param will be interpreted as ${e} seconds. If this is intentional use "${e}s" to silence this warning.`,105:({e})=>["chart rendering failed",e],106:()=>`Theming API and Legacy Themes are both used in the same page. A Theming API theme has been provided to the 'theme' grid option, but the file (ag-grid.css) is also included and will cause styling issues. Remove ag-grid.css from the page. See the migration guide: ${tq}/theming-migration/`,107:({key:e,value:t})=>`Invalid value for theme param ${e} - ${t}`,108:({e})=>["chart update failed",e],109:({inputValue:e,allSuggestions:t})=>{let i=go({inputValue:e,allSuggestions:t,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return[`Could not find '${e}' aggregate function. It was configured as "aggFunc: '${e}'" but it wasn't found in the list of registered aggregations.`,i.length>0?`         Did you mean: [${i.slice(0,3)}]?`:"","If using a custom aggregation function check it has been registered correctly."].join("\n")},110:()=>"groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup",111:()=>"Invalid selection state. When `groupSelects` is enabled, the state must conform to `IServerSideGroupSelectionState`.",113:()=>"Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values",114:({component:e})=>`Could not find component with name of ${e}. Is it in Vue.components?`,116:()=>"Invalid selection state. The state must conform to `IServerSideSelectionState`.",117:()=>"selectAll must be of boolean type.",118:()=>"Infinite scrolling must be enabled in order to set the row count.",119:()=>"Unable to instantiate filter",120:()=>"MultiFloatingFilterComp expects MultiFilter as its parent",121:()=>"a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (see AG Grid docs) or b) to toString() on the object to return a key",122:()=>"could not find the document, document is empty",123:()=>"Advanced Filter is only supported with the Client-Side Row Model or Server-Side Row Model.",124:()=>"No active charts to update.",125:({chartId:e})=>`Unable to update chart. No active chart found with ID: ${e}.`,126:()=>"unable to restore chart as no chart model is provided",127:({allRange:e})=>`unable to create chart as ${e?"there are no columns in the grid":"no range is selected"}.`,128:({feature:e})=>`${e} is only available if using 'multiRow' selection mode.`,129:({feature:e,rowModel:t})=>`${e} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${t}.`,130:()=>'cannot multi select unless selection mode is "multiRow"',132:()=>"Row selection features are not available unless `rowSelection` is enabled.",133:({iconName:e})=>`icon '${e}' function should return back a string or a dom object`,134:({iconName:e})=>`Did not find icon '${e}'`,135:()=>"Data type of the new value does not match the cell data type of the column",136:()=>"Unable to update chart as the 'type' is missing. It must be either 'rangeChartUpdate', 'pivotChartUpdate', or 'crossFilterChartUpdate'.",137:({type:e,currentChartType:t})=>`Unable to update chart as a '${e}' update type is not permitted on a ${t}.`,138:({chartType:e})=>`invalid chart type supplied: ${e}`,139:({customThemeName:e})=>`a custom chart theme with the name ${e} has been supplied but not added to the 'chartThemes' list`,140:({name:e})=>`no stock theme exists with the name '${e}' and no custom chart theme with that name was supplied to 'customChartThemes'`,141:()=>"cross filtering with row grouping is not supported.",142:()=>"cross filtering is only supported in the client side row model.",143:({panel:e})=>`'${e}' is not a valid Chart Tool Panel name`,144:({type:e})=>`Invalid charts data panel group name supplied: '${e}'`,145:({group:e})=>`As of v32, only one charts customize panel group can be expanded at a time. '${e}' will not be expanded.`,146:({comp:e})=>`Unable to instantiate component '${e}' as its module hasn't been loaded. Add 'ValidationModule' to see which module is required.`,147:({group:e})=>`Invalid charts customize panel group name supplied: '${e}'`,148:({group:e})=>`invalid chartGroupsDef config '${e}'`,149:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,150:()=>"'seriesChartTypes' are required when the 'customCombo' chart type is specified.",151:({chartType:e})=>`invalid chartType '${e}' supplied in 'seriesChartTypes', converting to 'line' instead.`,152:({colId:e})=>`no 'seriesChartType' found for colId = '${e}', defaulting to 'line'.`,153:({chartDataType:e})=>`unexpected chartDataType value '${e}' supplied, instead use 'category', 'series' or 'excluded'`,154:({colId:e})=>`cross filtering requires a 'agSetColumnFilter' or 'agMultiColumnFilter' to be defined on the column with id: ${e}`,155:({option:e})=>`'${e}' is not a valid Chart Toolbar Option`,156:({panel:e})=>`Invalid panel in chartToolPanelsDef.panels: '${e}'`,157:({unrecognisedGroupIds:e})=>["unable to find group(s) for supplied groupIds:",e],158:()=>"can not expand a column item that does not represent a column group header",159:()=>"Invalid params supplied to createExcelFileForExcel() - `ExcelExportParams.data` is empty.",160:()=>"Export cancelled. Export is not allowed as per your configuration.",161:()=>"The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel
43()'",162:({id:e,dataType:t})=>`Unrecognized data type for excel export [${e}.dataType=${t}]`,163:({featureName:e})=>`Excel table export does not work with ${e}. The exported Excel file will not contain any Excel tables.
44 Please turn off ${e} to enable Excel table exports.`,164:()=>"Unable to add data table to Excel sheet: A table already exists.",165:()=>"Unable to add data table to Excel sheet: Missing required parameters.",166:({unrecognisedGroupIds:e})=>["unable to find groups for these supplied groupIds:",e],167:({unrecognisedColIds:e})=>["unable to find columns for these supplied colIds:",e],168:()=>"detailCellRendererParams.template should be function or string",169:()=>'Reference to eDetailGrid was missing from the details template. Please add data-ref="eDetailGrid" to the template.',170:({providedStrategy:e})=>`invalid cellRendererParams.refreshStrategy = ${e} supplied, defaulting to refreshStrategy = 'rows'.`,171:()=>"could not find detail grid options for master detail, please set gridOptions.detailCellRendererParams.detailGridOptions",172:()=>"could not find getDetailRowData for master / detail, please set gridOptions.detailCellRendererParams.getDetailRowData",173:({group:e})=>`invalid chartGroupsDef config '${e}'`,174:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,175:({menuTabName:e,itemsToConsider:t})=>[`Trying to render an invalid menu item '${e}'. Check that your 'menuTabs' contains one of `,t],176:({key:e})=>`unknown menu item type ${e}`,177:()=>"valid values for cellSelection.handle.direction are 'x', 'y' and 'xy'. Default to 'xy'.",178:({colId:e})=>`column ${e} is not visible`,179:()=>"totalValueGetter should be either a function or a string (expression)",180:()=>"agRichSelectCellEditor requires cellEditorParams.values to be set",181:()=>"agRichSelectCellEditor cannot have `multiSelect` and `allowTyping` set to `true`. AllowTyping has been turned off.",182:()=>'you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data',183:()=>"Group Column Filter only works on group columns. Please use a different filter.",184:({parentGroupData:e,childNodeData:t})=>["duplicate group keys for row data, keys should be unique",[e,t]],185:({data:e})=>["getDataPath() should not return an empty path",[e]],186:({rowId:e,rowData:t,duplicateRowsData:i})=>["duplicate group keys for row data, keys should be unique",e,t,...i??[]],187:({rowId:e,firstData:t,secondData:i})=>[`Duplicate node id ${e}. Row IDs are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.`,"first instance",t,"second instance",i],188:e=>`getRowId callback must be provided for Server Side Row Model ${e?.feature||"selection"} to work correctly.`,189:({startRow:e})=>`invalid value ${e} for startRow, the value should be >= 0`,190:({rowGroupId:e,data:t})=>["null and undefined values are not allowed for server side row model keys",e?`column = ${e}`:"","data is ",t],194:({method:e})=>`calling gridApi.${e}() is only possible when using rowModelType=\`clientSide\`.`,195:({justCurrentPage:e})=>`selecting just ${e?"current page":"filtered"} only works when gridOptions.rowModelType='clientSide'`,196:({key:e})=>`Provided ids must be of string type. Invalid id provided: ${e}`,197:()=>"`toggledNodes` must be an array of string ids.",199:()=>"getSelectedNodes and getSelectedRows functions cannot be used with select all functionality with the server-side row model. Use `api.getServerSideSelectionState()` instead.",200:gu,201:({rowModelType:e})=>`Could not find row model for rowModelType = ${e}`,202:()=>"`getSelectedNodes` and `getSelectedRows` functions cannot be used with `groupSelectsChildren` and the server-side row model. Use `api.getServerSideSelectionState()` instead.",203:()=>"Server Side Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.",204:()=>"Server Side Row Model does not support Auto Row Height and Cache Purging. Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.",205:({duplicateIdText:e})=>`Unable to display rows as duplicate row ids (${e}) were returned by the getRowId callback. Please modify the getRowId callback to provide unique ids.`,206:()=>"getRowId callback must be implemented for transactions to work. Transaction was ignored.",207:()=>'The Set Filter Parameter "defaultToNothingSelected" value was ignored because it does not work when "excelMode" is used.',208:()=>"Set Filter Value Formatter must return string values. Please ensure the Set Filter Value Formatter returns string values for complex objects.",209:()=>`Set Filter Key Creator is returning null for provided values and provided values are primitives. Please provide complex objects. See ${tq}/filter-set-filter-list/#filter-value-types`,210:()=>"Set Filter has a Key Creator, but provided values are primitives. Did 
44you mean to provide complex objects?",211:()=>"property treeList=true for Set Filter params, but you did not provide a treeListPathGetter or values of type Date.",212:()=>"please review all your toolPanel components, it seems like at least one of them doesn't have an id",213:()=>"Advanced Filter does not work with Filters Tool Panel. Filters Tool Panel has been disabled.",214:({key:e})=>`unable to lookup Tool Panel as invalid key supplied: ${e}`,215:({key:e,defaultByKey:t})=>`the key ${e} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(t??{}).join(",")}`,216:({name:e})=>`Missing component for '${e}'`,217:({invalidColIds:e})=>["unable to find grid columns for the supplied colDef(s):",e],218:({property:e,defaultOffset:t})=>`${e} must be a number, the value you provided is not a valid number. Using the default of ${t}px.`,219:({property:e})=>`Property ${e} does not exist on the target object.`,220:({lineDash:e})=>`'${e}' is not a valid 'lineDash' option.`,221:()=>"agAggregationComponent should only be used with the client and server side row model.",222:()=>"agFilteredRowCountComponent should only be used with the client side row model.",223:()=>"agSelectedRowCountComponent should only be used with the client and server side row model.",224:()=>"agTotalAndFilteredRowCountComponent should only be used with the client side row model.",225:()=>"agTotalRowCountComponent should only be used with the client side row model.",226:()=>"viewport is missing init method.",227:()=>"menu item icon must be DOM node or string",228:({menuItemOrString:e})=>`unrecognised menu item ${e}`,230:()=>"detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://www.ag-grid.com/react-data-grid/master-detail-custom-detail/",231:()=>"As of v32, using custom components with `reactiveCustomComponents = false` is deprecated.",232:()=>"Using both rowData and v-model. rowData will be ignored.",233:({methodName:e})=>`Framework component is missing the method ${e}()`,234:()=>'Group Column Filter does not work with the colDef property "field". This property will be ignored.',235:()=>'Group Column Filter does not work with the colDef property "filterValueGetter". This property will be ignored.',236:()=>'Group Column Filter does not work with the colDef property "filterParams". This property will be ignored.',237:()=>"Group Column Filter does not work with Tree Data enabled. Please disable Tree Data, or use a different filter.",238:()=>"setRowCount can only accept a positive row count.",239:()=>'Theming API and CSS File Themes are both used in the same page. In v33 we released the Theming API as the new default method of styling the grid. See the migration docs https://www.ag-grid.com/react-data-grid/theming-migration/. Because no value was provided to the `theme` grid option it defaulted to themeQuartz. But the file (ag-grid.css) is also included and will cause styling issues. Either pass the string "legacy" to the theme grid option to use v32 style themes, or remove ag-grid.css from the page to use Theming API.',240:({theme:e})=>`theme grid option must be a Theming API theme object or the string "legacy", received: ${e}`,243:()=>"Failed to deserialize state - each provided state object must be an object.",244:()=>"Failed to deserialize state - `selectAllChildren` must be a boolean value or undefined.",245:()=>"Failed to deserialize state - `toggledNodes` must be an array.",246:()=>"Failed to deserialize state - Every `toggledNode` requires an associated string id.",247:()=>`Row selection state could not be parsed due to invalid data. Ensure all child state has toggledNodes or does not conform with the parent rule. 
45Please rebuild the selection state and reapply it.`,248:()=>"SetFloatingFilter expects SetFilter as its parent",249:()=>"Must supply a Value Formatter in Set Filter params when using a Key Creator",250:()=>"Must supply a Key Creator in Set Filter params when `treeList = true` on a group column, and Tree Data or Row Grouping is enabled.",251:({chartType:e})=>
45`AG Grid: Unable to create chart as an invalid chartType = '${e}' was supplied.`,252:()=>"cannot get grid to draw rows when it is in the middle of drawing rows. \nYour code probably called a grid API method while the grid was in the render stage. \nTo overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). \nTo see what part of your code that caused the refresh check this stacktrace.",253:({version:e})=>["Illegal version string: ",e],254:()=>"Cannot create chart: no chart themes available.",255:({point:e})=>`Lone surrogate U+${e?.toString(16).toUpperCase()} is not a scalar value`,256:()=>"Unable to initialise. See validation error, or load ValidationModule if missing.",257:()=>gc("IntegratedChartsModule"),258:()=>gc("SparklinesModule"),259:({part:e})=>`the argument to theme.withPart must be a Theming API part object, received: ${e}`,260:({propName:e,compName:t,gridScoped:i,gridId:o,rowModelType:r})=>gu({reasonOrId:`AG Grid '${e}' component: ${t}`,moduleName:uP[t],gridId:o,gridScoped:i,rowModelType:r}),261:()=>"As of v33, `column.isHovered()` is deprecated. Use `api.isColumnHovered(column)` instead.",262:()=>'As of v33, icon key "smallDown" is deprecated. Use "advancedFilterBuilderSelect" for Advanced Filter Builder dropdown, "selectOpen" for Select cell editor and dropdowns (e.g. Integrated Charts menu), "richSelectOpen" for Rich Select cell editor.',263:()=>'As of v33, icon key "smallLeft" is deprecated. Use "panelDelimiterRtl" for Row Group Panel / Pivot Panel, "subMenuOpenRtl" for sub-menus.',264:()=>'As of v33, icon key "smallRight" is deprecated. Use "panelDelimiter" for Row Group Panel / Pivot Panel, "subMenuOpen" for sub-menus.',265:({colId:e})=>`Unable to infer chart data type for column '${e}' if first data entry is null. Please specify "chartDataType", or a "cellDataType" in the column definition. For more information, see ${tq}/integrated-charts-range-chart#coldefchartdatatype .`,266:()=>'As of v33.1, using "keyCreator" with the Rich Select Editor has been deprecated. It now requires the "formatValue" callback to convert complex data to strings.',267:()=>"Detail grids can not use a different theme to the master grid, the `theme` detail grid option will be ignored.",268:()=>"Transactions aren't supported with tree data when using treeDataChildrenField",269:()=>"When `masterSelects: 'detail'`, detail grids must be configured with multi-row selection",270:({id:e,parentId:t})=>`Cycle detected for row with id='${e}' and parent id='${t}'. Resetting the parent for row with id='${e}' and showing it as a root-level node.`,271:({id:e,parentId:t})=>`Parent row not found for row with id='${e}' and parent id='${t}'. Showing row with id='${e}' as a root-level node.`,272:()=>ga(),273:({providedId:e,usedId:t})=>`Provided column id '${e}' was already in use, ensure all column and group ids are unique. Using '${t}' instead.`,274:({prop:e})=>{let t=`Since v33, ${e} has been deprecated.`;switch(e){case"maxComponentCreationTimeMs":t+=" This property is no longer required and so will be removed in a future version.";break;case"setGridApi":t+=" This method is not called by AG Grid. To access the GridApi see: https://ag-grid.com/react-data-grid/grid-interface/#grid-api ";break;case"children":t+=" For multiple versions AgGridReact does not support children."}return t},275:gh,276:()=>"Row Numbers Row Resizer cannot be used when Grid Columns have `autoHeight` enabled.",277:({colId:e})=>`'enableFilterHandlers' is set to true, but column '${e}' does not have 'filter.doesFilterPass' or 'filter.handler' set.`,278:({colId:e})=>`Unable to create filter handler for column '${e}'`,279:e=>{},280:({colId:e})=>`'name' must be provided for custom filter components for column '${e}`,281:({colId:e})=>`Filter for column '${e}' does not have 'filterParams.buttons', but the new Filters Tool Panel has buttons configured. Either configure buttons for the filter, or disable buttons on the Filters Tool Panel.`,282:()=>"New filter tool panel requires `enableFilterHandlers: true`.",283:()=>"As of v34, use the same method on the filter handler (`api.getColumnFilterHandler(colKey)`) instead.",284:()=>"As of v34, filters are active when they have a model. Use `api.getColumnFilterModel()` instead.",285:()=>"As of v34, use (`api.getColumnFilterModel()`) instead.",286:()=>"As of v34, use (`api.setColumnFilterModel()`) instead.",287:()=>"`api.doFilterAction()` requires `enableFilterHandlers = true",288:()=>"`api.getColumnFilterModel(key, true)` requires `enableFilterHandlers = true",289:({rowModelType:e})=>`Row Model '${e}' is not supported with Batch Editing`,290:({rowIndex:e,rowPinned:t})=>`Row with index '${e}' and pinned state '${t}' not found`,291:()=>"License Key being set multiple times with different values. This can result in an incorrect license key being used,",292:({colId:e})=>`The Multi Filter for column '${e}' has buttons configured against the child filters. When 'enableFilterHandlers=true', buttons must instead be provided against the parent Multi Filter params. The child filter buttons will be ignored.`,293:()=>"The grid was initialised detached from the DOM and was then inserted into a Shadow Root. Theme styles are probably broken. Pass the themeStyleContainer grid option to let the grid know where in the document to insert theme CSS.",294:()=>"When using the `agRichSelectCellEditor` setting `filterListAsync = true` requires `allowTyping = true` and the `values()` callback must return a Promise of filtered values.",295:({blockedService:e})=>`colDef.allowFormula is not supported with ${e}. Formulas has been turned off.`,296:()=>"Since v35, `api.hideOverlay()` does not hide the overlay when `activeOverlay` is set. Set `activeOverlay=null` instead.",297:()=>'`api.hideOverlay()` does not hide the no matching rows overlay as it is only controlled by grid state. Set `suppressOverlays=["noMatchingRows"] to not show it.'};function gp(e,t){let i=gg[e];if(!i)return[`Missing error text for error id ${e}!`];let o=i(t),r=tZ(e,t),s=`
46See ${r}`;return Array.isArray(o)?o.concat(s):[o,s]}var gm={1:"Charting Aggregation",2:"pivotResultFields",3:"setTooltip"},gf=class{constructor(e="javascript"){this.frameworkName=e,this.renderingEngine="vanilla",this.batchFrameworkComps=!1,this.wrapIncoming=e=>e(),this.wrapOutgoing=e=>e(),this.baseDocLink=`${tD}/${this.frameworkName}-data-grid`,tq=this.baseDocLink}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return this.baseDocLink+(e?"/"+e:"")}},gC=new WeakMap,gv=new WeakMap;function gw(e,t,i){let o;if(!t)return t0(11),{};if(!i?.setThemeOnGridDiv){let t=e2({tag:"div"});t.style.height="100%",e.appendChild(t),e=t,o=()=>e.remove()}return new gy().create(e,t,t=>{let i=new l1(e);t.createBean(i)},void 0,i,o)}var gb=1,gy=class{create(e,t,i,o,r,s){let n=tE.applyGlobalGridOptions(t),l=n.gridId??String(gb++),a=this.getRegisteredModules(r,l,n.rowModelType),d=this.createBeansList(n.rowModelType,a,l),h=this.createProvidedBeans(e,n,r);if(!d)return;
46let u=new n_({providedBeanInstances:h,beanClasses:d,id:l,beanInitComparator:nK,beanDestroyComparator:nj,derivedBeans:[n$],destroyCallback:()=>{gv.delete(c),gC.delete(e),delete tL[l],s?.()}});this.registerModuleFeatures(u,a),i(u),u.getBean("syncSvc").start(),o?.(u);let c=u.getBean("gridApi");return gC.set(e,c),gv.set(c,e),c}getRegisteredModules(e,t,i){tG(gi,void 0,!0),e?.modules?.forEach(e=>tG(e,t));var o=gS(i);let r=tL[t]??{};return[...Object.values(tI.all??{}),...Object.values(r.all??{}),...Object.values(tI[o]??{}),...Object.values(r[o]??{})]}registerModuleFeatures(e,t){let i=e.getBean("registry"),o=e.getBean("apiFunctionSvc");for(let e of t){i.registerModule(e);let t=e.apiFunctions;if(t)for(let e of Object.keys(t))o?.addFunction(e,t[e])}}createProvidedBeans(e,t,i){let o=i?i.frameworkOverrides:null;P(o)&&(o=new gf);let r={gridOptions:t,eGridDiv:e,eRootDiv:e,globalListener:i?i.globalListener:null,globalSyncListener:i?i.globalSyncListener:null,frameworkOverrides:o};return i?.providedBeanInstances&&Object.assign(r,i.providedBeanInstances),r}createBeansList(e,t,i){let o={clientSide:"ClientSideRowModel",infinite:"InfiniteRowModel",serverSide:"ServerSideRowModel",viewport:"ViewportRowModel"},r=gS(e),s=o[r];if(!s)return void t1(201,{rowModelType:r},`Unknown rowModelType ${r}.`);if(!tB)return void t1(272,void 0,ga());if(!e){let e=Object.entries(o).filter(([e,t])=>tO(t,i,e));if(1==e.length){let[t,i]=e[0];if(t!==r){let e={moduleName:i,rowModelType:t};t1(275,e,gh(e));return}}}if(!tO(s,i,r)){let e=tV,t=`rowModelType = '${r}'`,o=e?`Unable to use ${t} as that requires the ag-grid-enterprise script to be included.
47`:`Missing module ${s}Module for rowModelType ${r}.`;t1(200,{reasonOrId:t,moduleName:s,gridScoped:tH,gridId:i,rowModelType:r,isUmd:e},o);return}let n=new Set;for(let e of t)for(let t of e.beans??[])n.add(t);return Array.from(n)}};function gS(e){return e??"clientSide"}function gR(e){if("string"==typeof e)try{e=document.querySelector(`[grid-id="${e}"]`)?.parentElement??document.querySelector(e)?.firstElementChild??document.getElementById(e)?.firstElementChild}catch{e=null}return e?gC.get(e):void 0}function gE(e){return gv.get(e)}function gx(e,t=!1){let i=[],o=[],r=[],s=[],n=[],l=[],a=[],d=[],h=[],u=0;for(let t=0;t<e.length;t++){let{colId:c,sort:g,sortType:p,sortIndex:m,rowGroup:f,rowGroupIndex:C,aggFunc:v,pivot:w,pivotIndex:b,pinned:y,hide:S,width:R,flex:E}=e[t];h.push(c),g&&(i[m??u++]={colId:c,sort:g,type:p}),f&&(o[C??0]=c),"string"==typeof v&&r.push({colId:c,aggFunc:v}),w&&(s[b??0]=c),y&&("right"===y?l:n).push(c),S&&a.push(c),(null!=E||R)&&d.push({colId:c,flex:E??void 0,width:null===R?void 0:R})}return{sort:i.length?{sortModel:gF(i)}:void 0,rowGroup:o.length?{groupColIds:gF(o)}:void 0,aggregation:r.length?{aggregationModel:r}:void 0,pivot:s.length||t?{pivotMode:t,pivotColIds:gF(s)}:void 0,columnPinning:n.length||l.length?{leftColIds:n,rightColIds:l}:void 0,columnVisibility:a.length?{hiddenColIds:a}:void 0,columnSizing:d.length?{columnSizingModel:d}:void 0,columnOrder:h.length?{orderedColIds:h}:void 0}}function gF(e){return e.filter(e=>void 0!=e)}function gP(e){let t=[];for(let{groupId:i,open:o}of e)o&&t.push(i);return t.length?{openColumnGroupIds:t}:void 0}function gD(e){return{columnGroup:gP(e)}}var gM={moduleName:"AlignedGrids",version:tU,beans:[class extends tc{constructor(){super(...arguments),this.beanName="alignedGridsSvc",this.consuming=!1}getAlignedGridApis(){let e=this.gos.get("alignedGrids")??[],t="function"==typeof e;return"function"==typeof e&&(e=e()),e.map(e=>{if(!e){t0(18),t||t0(20);return}return this.isGridApi(e)?e:"current"in e?e.current?.api:(e.api||t0(19),e.api)}).filter(e=>!!e&&!e.isDestroyed())}isGridApi(e){return!!e&&!!e.dispatchEvent}postConstruct(){let e=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:e,columnVisible:e,columnPinned:e,columnGroupOpened:e,columnResized:e,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:e})=>this.onColumnEvent(e),alignedGridScroll:({event:e})=>this.onScrollEvent(e)})}fireEvent(e){if(!this.consuming)for(let t of this.getAlignedGridApis())t.isDestroyed()||t.dispatchEvent(e)}onEvent(e){this.consuming=!0,e(),this.consuming=!1}fireColumnEvent(e){this.fireEvent({type:"alignedGridColumn",event:e})}fireScrollEvent(e){"horizontal"===e.direction&&this.fireEvent({type:"alignedGridScroll",event:e})}onScrollEvent(e){this.onEvent(()=>
47{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(e.left,!0)})}extractDataFromEvent(e,t){let i=[];return e.columns?e.columns.forEach(e=>{i.push(t(e))}):e.column&&i.push(t(e.column)),i}getMasterColumns(e){return this.extractDataFromEvent(e,e=>e)}getColumnIds(e){return this.extractDataFromEvent(e,e=>e.getColId())}onColumnEvent(e){this.onEvent(()=>{switch(e.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":this.processColumnEvent(e);break;case"columnGroupOpened":this.processGroupOpenedEvent(e);break;case"columnPivotChanged":tX(21)}})}processGroupOpenedEvent(e){let{colGroupSvc:t}=this.beans;if(t)for(let i of e.columnGroups){let e=null;i&&(e=t.getProvidedColGroup(i.getGroupId())),(!i||e)&&t.setColumnGroupOpened(e,i.isExpanded(),"alignedGridChanged")}}processColumnEvent(e){let t=e.column,i=null,o=this.beans,{colResize:r,ctrlsSvc:s,colModel:n}=o;if(t&&(i=n.getColDefCol(t.getColId())),t&&!i)return;let l=this.getMasterColumns(e);switch(e.type){case"columnMoved":oO(o,{state:e.api.getColumnState().map(e=>({colId:e.colId})),applyOrder:!0},"alignedGridChanged");break;case"columnVisible":oO(o,{state:e.api.getColumnState().map(e=>({colId:e.colId,hide:e.hide}))},"alignedGridChanged");break;case"columnPinned":oO(o,{state:e.api.getColumnState().map(e=>({colId:e.colId,pinned:e.pinned}))},"alignedGridChanged");break;case"columnResized":{let t={};for(let e of l)t[e.getId()]={key:e.getColId(),newWidth:e.getActualWidth()};for(let i of e.flexColumns??[])t[i.getId()]&&delete t[i.getId()];r?.setColumnWidths(Object.values(t),!1,e.finished,"alignedGridChanged")}}let a=s.getGridBodyCtrl().isVerticalScrollShowing();for(let e of this.getAlignedGridApis())e.setGridOption("alwaysShowVerticalScroll",a)}}],dependsOn:[dy]};function gk(e,t,i="auto"){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureColumnVisible(t,i),"ensureVisible")}function gT(e,t,i){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureIndexVisible(t,i),"ensureVisible")}var gA={moduleName:"RowApi",version:tU,apiFunctions:{redrawRows:function(e,t={}){let i=t?t.rowNodes:void 0;e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.redrawRows(i))},setRowNodeExpanded:function e(t,i,o,r,s){i&&(r&&i.parent&&-1!==i.parent.level&&e(t,i.parent,o,r,s),i.setExpanded(o,void 0,s))},getRowNode:function(e,t){return e.rowModel.getRowNode(t)},addRenderedRowListener:function(e,t,i,o){e.rowRenderer.addRenderedRowListener(t,i,o)},getRenderedNodes:function(e){return e.rowRenderer.getRenderedNodes()},forEachNode:function(e,t,i){e.rowModel.forEachNode(t,i)},getFirstDisplayedRowIndex:function(e){return e.rowRenderer.firstRenderedRow},getLastDisplayedRowIndex:function(e){return e.rowRenderer.lastRenderedRow},getDisplayedRowAtIndex:function(e,t){return e.rowModel.getRow(t)},getDisplayedRowCount:function(e){return e.rowModel.getRowCount()}}},gI={moduleName:"ScrollApi",version:tU,apiFunctions:{getVerticalPixelRange:function(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()},getHorizontalPixelRange:function(e){return e.ctrlsSvc.getScrollFeature().getHScrollPosition()},ensureColumnVisible:gk,ensureIndexVisible:gT,ensureNodeVisible:function(e,t,i=null){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureNodeVisible(t,i),"ensureVisible")}}};function gL(e){e.rowModel?.onRowHeightChanged()}function gB(e){if(e.rowAutoHeight?.active)return void tX(3);e.rowModel?.resetRowHeights()}var gH={moduleName:"CsrmSsrmSharedApi",version:tU,apiFunctions:{expandAll:function(e){e.expansionSvc?.expandAll(!0)},collapseAll:function(e){e.expansionSvc?.expandAll(!1)}}},gV={moduleName:"RowModelSharedApi",version:tU,apiFunctions:{onRowHeightChanged:gL,resetRowHeights:gB}},gG={moduleName:"SsrmInfiniteSharedApi",version:tU,apiFunctions:{setRowCount:function(e,t,i){let o=np(e);if(o)return e.rowGroupColsSvc?.columns.length===0?t<0?void t0(238):void o.setRowCount(t,i):void t0(28);ng(e)?.setRowCount(t,i)},getCacheBlockState:function(e){return t7(e.gos)?e.rowModel.getBlockStates():e.rowNodeBlockLoader?.getBlockState()??{}},isLastRowIndexKnown:function(e){return e.rowModel.isLastRowIndexKnown()}}},gO=class extends tc{constructor(e){super(),this.rootNode=e,this.nextId=0,this.allNodesMap={},gz(e)}getRowNode(e){return this.allNodesMap[e]}setNewRowData(e){this.dispatchRowDataUpdateStarted(e),this.destroyAllNodes();let t=gz(this.rootNode),i=Array(e.length);t._leafs=i;let o=0,r=this.beans.groupStage?.getNestedDataGetter(),s=r?new Set:null,n=(e,t)=>{let l=e.level+1;for(let a=0,d=t.length;a<d;++a){let d=t[a];if(!d)continue;let h=this.createRowNode(d,l,o);if(i[o++]=h,s&&!s.has(d)){s.add(d),h.treeParent=e;let t=r(d);t&&n(h,t)}}};n(t,e),i.length=o}destroyAllNodes(){let{selectionSvc:e,pinnedRowModel:t,groupStage:i}=this.beans;e?.reset("rowDataChanged"),t?.isManual()&&t.reset(),i?.clearNonLeafs();let o=this.rootNode._leafs;if(o)for(let e=0,t=o.length;e<t;++e)o[e]._destroy(!1);this.allNodesMap=Object.create(null),this.nextId=0}setImmutableRowData(e,t){let{rootNode:i,gos:o}=this;this.dispatchRowDataUpdateStarted(t);let r=iw(o),s=e.changedRowNodes,{adds:n,updates:l}=s,a=new Set,d=[],h=this.beans.groupStage?.getNestedDataGetter(),u=!!o.get("suppressMaintainUnsortedOrder")&&void 0,c=-1,g=!1,p=(e,t)=>{if(!u&&void 0!==u){let t=e.sourceRowIndex;u=t<=c,c=t}e.data!==t&&(e.updateData(t),n.has(e)||l.add(e),!e.selectable&&e.isSelected()&&d.push(e))},m=(e,t,i)=>{for(let o=0,s=t.length;o<s;++o){let s=t[o];if(!s)continue;let l=this.getRowNode(r({data:s,level:i}));if(l?(p(l,s),g||(g=!!h&&l.treeParent!==e)):(l=this.createRowNode(s,i),n.add(l)),!h||a.has(l)){a.add(l);continue}a.add(l),l.treeParent=e;let d=h(s);d&&m(l,d,i+1)}};m(i,t,0);let f=this.deleteUnusedNodes(a,s,d,!!e.animate)||u||n.size>0;if(f){let e=i._leafs??(i._leafs=[]);void 0===u?g$(e,a,s):g_(e,a)&&(s.reordered=!0)}(f||g||l.size)&&(e.rowDataUpdated=!0,this.deselect(d))}deleteUnusedNodes(e,{removals:t},i,o){let r=this.rootNode._leafs;for(let s=0,n=r.length;s<n;s++){let n=r[s];!e.has(n)&&this.destroyNode(n,o)&&(t.push(n),n.isSelected()&&i.push(n))}return t.length>0}updateRowData(e,t,i){if(this.dispatchRowDataUpdateStarted(e.add),this.beans.groupStage?.getNestedDataGetter())return tX(268),{remove:[],update:[],add:[]};let o=[],r=iw(this.gos),s=this.executeRemove(r,e,t,o,i),n=this.executeUpdate(r,e,t,o),l=this.executeAdd(e,t);return this.deselect(o),{remove:s,update:n,add:l}}executeRemove(e,{remove:t},{adds:i,updates:o,removals:r},s,n){let l=this.rootNode._leafs,a=l?.length,d=t?.length;if(!d||!a)return[];let h=0,u=a,c=0,g=Array(d);for(let l=0;l<d;++l){let a=this.lookupNode(e,t[l]);if(!a)continue;let d=a.sourceRowIndex;d<u&&(u=d),d>c&&(c=d),g[h++]=a,this.destroyNode(a,n)&&(a.isSelected()&&s.push(a),i.delete(a)||(o.delete(a),r.push(a)))}return g.length=h,h&&gU(l,u,c),g}executeUpdate(e,{update:t},{adds:i,updates:o},r){let s=t?.length;if(!s)return[];let n=Array(s),l=0;for(let a=0;a<s;a++){let s=t[a],d=this.lookupNode(e,s);d&&(d.updateData(s),!d.selectable&&d.isSelected()&&r.push(d),n[l++]=d,i.has(d)||o.add(d))}return n.length=l,n}executeAdd(e,t){var i;let o=(i=this.rootNode)._leafs??(i._leafs=[]),r=o.length,s=e.add,n=s?.length;if(!n)return[];let l=r+n,a=this.sanitizeAddIndex(o,e.addIndex);if(a<r){for(let e=r-1,t=l-1;e>=a;--e){let i=o[e];i.sourceRowIndex=t,o[t--]=i}t.reordered=!0}
47o.length=l;let d=Array(n),h=t.adds;for(let e=0;e<n;e++){let t=this.createRowNode(s[e],0,a);h.add(t),o[a]=t,d[e]=t,a++}return d}dispatchRowDataUpdateStarted(e){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e?.length?e[0]:null})}deselect(e){let t="rowDataChanged",i=this.beans.selectionSvc;e.length&&i?.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),i?.updateGroupsFromChildrenSelections?.(t),e.length&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:t,selectedNodes:i?.getSelectedNodes()??null,serverSideState:null})}createRowNode(e,t,i){let o=new nb(this.beans);o.parent=this.rootNode,o.level=t,o.group=!1,o.expanded=!1,null!=i&&(o.sourceRowIndex=i),o.setDataAndId(e,String(this.nextId++));let r=o.id,s=this.allNodesMap;return s[r]&&tX(2,{nodeId:r}),s[r]=o,o}destroyNode(e,t){if(!e._destroy(t))return!1;let i=e.id,o=this.allNodesMap;return o[i]===e&&delete o[i],!0}lookupNode(e,t){if(!e)return gW(this.rootNode._leafs,t);let i=e({data:t,level:0}),o=this.allNodesMap[i];return o||(t0(4,{id:i}),null)}sanitizeAddIndex(e,t){let i=e.length;if("number"!=typeof t||t<0||t>=i||Number.isNaN(t))return i;t=Math.ceil(t);let o=this.gos;return t>0&&o.get("treeData")&&o.get("getDataPath")&&(t=gN(e,t)),t}},gN=(e,t)=>{for(let i=0,o=e.length;i<o;i++){let o=e[i];if(o?.rowIndex==t-1)return i+1}return t},gz=e=>{e.group=!0,e.level=-1,e.id="ROOT_NODE_ID",e._leafs?.length!==0&&(e._leafs=[]);let t=[],i=[],o=[],r=[];e.childrenAfterGroup=t,e.childrenAfterSort=i,e.childrenAfterAggFilter=o,e.childrenAfterFilter=r;let s=e.sibling;return s&&(s.childrenAfterGroup=t,s.childrenAfterSort=i,s.childrenAfterAggFilter=o,s.childrenAfterFilter=r,s.childrenMapped=e.childrenMapped),e.updateHasChildren(),e},gW=(e,t)=>{if(e)for(let i=0,o=e.length;i<o;i++){let o=e[i];if(o.data===t)return o}return t0(5,{data:t}),null},gU=(e,t,i)=>{t=Math.max(0,t);for(let o=t,r=e.length;o<r;++o){let r=e[o];o<=i&&r.destroyed||(r.sourceRowIndex=t,e[t++]=r)}e.length=t},g_=(e,t)=>{e.length=t.size;let i=0,o=!1,r=!1;for(let s of t){let t=s.sourceRowIndex;t===i?r||(r=o):(t>=0?r=!0:o=!0,s.sourceRowIndex=i,e[i]=s),++i}return r},g$=(e,t,{adds:i})=>{let o=e.length,r=t.size;r>o&&(e.length=r);let s=0;for(let t=0;t<o;++t){let i=e[t];!i.destroyed&&(s!==t&&(i.sourceRowIndex=s,e[s]=i),++s)}for(let t of i)t.sourceRowIndex<0&&(t.sourceRowIndex=s,e[s++]=t);e.length=s};function gq(e){let t=e.sibling;t&&(t.childrenAfterFilter=e.childrenAfterFilter)}var gK=class extends tc{constructor(){super(...arguments),this.beanName="filterStage",this.step="filter",this.refreshProps=["excludeChildrenWhenTreeDataFiltering"]}wireBeans(e){this.filterManager=e.filterManager}execute(e){let t=!!this.filterManager?.isChildFilterPresent();this.beans.formula?.active?this.softFilter(t,e):this.filterNodes(t,e)}filterNodes(e,t){let i=(t,i)=>{t.hasChildren()&&e&&!i?t.childrenAfterFilter=t.childrenAfterGroup.filter(e=>{let t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,i=e.data&&this.filterManager.doesRowPassFilter({rowNode:e});return t||i}):t.childrenAfterFilter=t.childrenAfterGroup,gq(t)};if(this.doingTreeDataFiltering()){let e=(t,o)=>{if(t.childrenAfterGroup)for(let r=0;r<t.childrenAfterGroup.length;r++){let s=t.childrenAfterGroup[r],n=o||this.filterManager.doesRowPassFilter({rowNode:s});s.childrenAfterGroup?e(t.childrenAfterGroup[r],n):i(s,n)}i(t,o)};t.executeFromRootNode(t=>e(t,!1))}else t.forEachChangedNodeDepthFirst(e=>i(e,!1),!0)}softFilter(e,t){let i=t=>{if(t.childrenAfterFilter=t.childrenAfterGroup,t.hasChildren())for(let i of t.childrenAfterGroup)i.softFiltered=e&&!(i.data&&this.filterManager.doesRowPassFilter({rowNode:i}));gq(t)};t.forEachChangedNodeDepthFirst(i,!0)}doingTreeDataFiltering(){let{gos:e}=this;return e.get("treeData")&&!e.get("excludeChildrenWhenTreeDataFiltering")}},gj=e=>{let t=e.childrenAfterSort,i=e.sibling;if(i&&(i.childrenAfterSort=t),t)for(let e=0,i=t.length-1;e<=i;e++){let o=t[e],r=0===e,s=e===i;o.firstChild!==r&&(o.firstChild=r,o.dispatchRowEvent("firstChildChanged")),o.lastChild!==s&&(o.lastChild=s,o.dispatchRowEvent("lastChildChanged")),o.childIndex!==e&&(o.childIndex=e,o.dispatchRowEvent("childIndexChanged"))}},gY=class extends tc{constructor(){super(...arguments),this.beanName="sortStage",this.step="sort",this.refreshPro
47ps=["postSortRows","groupDisplayType","accentedSort"]}execute(e,t){let i,o=this.beans.sortSvc.getSortOptions(),r=o.length>0&&!!t&&this.gos.get("deltaSort"),{gos:s,colModel:n,rowGroupColsSvc:l,rowNodeSorter:a,rowRenderer:d,showRowGroupCols:h}=this.beans,u=s.get("groupMaintainOrder"),c=n.getCols().some(e=>e.isRowGroupActive()),g=l?.columns,p=n.isPivotMode(),m=s.getCallback("postSortRows"),f=!1,C=s=>{let n=p&&s.leafGroup,l=u&&c&&!s.leafGroup;l&&(i??(i=this.shouldSortContainsGroupCols(o)),l&&(l=!i));let d=null;if(l){let e=!1;if(g){let t=s.level+1;t<g.length&&(e=g[t].wasSortExplicitlyRemoved)}e||(d=gQ(s))}else!o.length||n||(d=r&&t?((e,t,i,o,r)=>{let s=t.childrenAfterSort,n=t.childrenAfterAggFilter;if(!n)return s&&s.length>0?s:[];let l=n.length;if(l<=1)return s?.length===l&&(0===l||s[0]===n[0])?s:n.slice();if(!s||l<=4)return e.doFullSortInPlace(n.slice(),r);let a=new Map,{updates:d,adds:h}=i,u=[];for(let e=0;e<l;++e){let t=n[e];d.has(t)||h.has(t)||!o.canSkip(t)?(a.set(t,~e),u.push(t)):a.set(t,e)}let c=u.length;return 0===c?l===s.length?s:((e,t,i)=>{let o=0;i.length=t.size;for(let r=0,s=e.length;r<s;++r){let s=e[r];t.has(s)&&(i[o++]=s)}return i.length=o,i})(s,a,u):(u.sort((t,i)=>e.compareRowNodes(r,t,i)||~a.get(t)-~a.get(i)),c===l)?u:((e,t,i,o,r,s)=>{let n,l=Array(s),a=0,d=i[0],h=-1,u=0,c=0,g=i.length,p=o.length;for(;;){if(h<0){if(u>=p)break;if(n=o[u++],(h=r.get(n)??-1)<0)continue}if(0>(e.compareRowNodes(t,d,n)||~r.get(d)-h)){if(l[c++]=d,++a>=g)break;d=i[a]}else l[c++]=n,h=-1}for(;a<g;)l[c++]=i[a++];if(h<0)return l;for(l[c++]=n;u<p;){let e=o[u++];r.get(e)>=0&&(l[c++]=e)}return l})(e,r,u,s,a,l)})(a,s,t,e,o):a.doFullSortInPlace(s.childrenAfterAggFilter.slice(),o));
47d||(d=s.childrenAfterAggFilter?.slice()??[]),f||(f=s.childrenAfterSort?.[0]!==d[0]),s.childrenAfterSort=d,gj(s),m&&m({nodes:s.childrenAfterSort})};if(e?.forEachChangedNodeDepthFirst(C),f&&s.get("groupHideOpenParents")){let e=h?.columns;e?.length&&d.refreshCells({columns:e,force:!0})}}shouldSortContainsGroupCols(e){let t=e.length;if(!t)return!1;if(iu(this.gos)){for(let i=0;i<t;++i){let t=e[i].column;if(t.isPrimary()&&t.isRowGroupActive())return!0}return!1}for(let i=0;i<t;++i)if(e[i].column.getColDef().showRowGroup)return!0;return!1}},gQ=e=>{let t=e.childrenAfterSort,i=e.childrenAfterAggFilter,o=t?.length,r=i?.length;if(!o||!r)return null;let s=Array(r),n=new Set;for(let e=0;e<r;++e)n.add(i[e]);let l=0;for(let e=0;e<o;++e){let i=t[e];n.delete(i)&&(s[l++]=i)}if(0===n.size&&l===o)return t;for(let e of n)s[l++]=e;return s.length=l,s},gZ=class extends tc{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.rowCountReady=!1,this.nodeManager=void 0,this.rowsToDisplay=[],this.formulaRows=[],this.stages=null,this.asyncTransactions=null,this.asyncTransactionsTimer=0,this.started=!1,this.refreshingData=!1,this.rowDataUpdatedPending=!1,this.refreshingModel=!1,this.pendingNewData=!1,this.noKeepRenderedRows=!1,this.noKeepUndoRedoStack=!1,this.noAnimate=!1,this.rowNodesCountReady=!1,this.stagesRefreshPro
47ps=new Map,this.onRowHeightChanged_debounced=tv(this,this.onRowHeightChanged.bind(this),100)}postConstruct(){let e=new nb(this.beans);this.rootNode=e,this.nodeManager=this.createBean(new gO(e));let t=()=>{this.beans.groupStage?.invalidateGroupCols(),this.refreshModel({step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")})};this.addManagedEventListeners({newColumnsLoaded:t,columnRowGroupChanged:t,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:()=>this.refreshModel({step:"pivot"}),columnPivotModeChanged:()=>this.refreshModel({step:"group"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),stylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this),rowExpansionStateChanged:this.onRowGroupOpened.bind(this)}),this.addPropertyListeners()}addPropertyListeners(){let{beans:e,stagesRefreshProps:t}=this,i=[e.groupStage,e.filterStage,e.pivotStage,e.aggStage,e.sortStage,e.filterAggStage,e.flattenStage].filter(e=>!!e);this.stages=i;for(let e=i.length-1;e>=0;--e)for(let o of i[e].refreshProps)t.set(o,e);this.addManagedPropertyListeners([...t.keys(),"rowData"],e=>{let t=e.changeSet?.properties;t&&this.onPropChange(t)}),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights())}start(){this.started=!0,this.rowNodesCountReady?this.refreshModel({step:"group",rowDataUpdated:!0,newData:!0}):this.setInitialData()}setInitialData(){this.gos.get("rowData")&&this.onPropChange(["rowData"])}ensureRowHeightsValid(e,t,i,o){let r,s=!1;do{r=!1;let n=this.getRowIndexAtPixel(e),l=this.getRowIndexAtPixel(t),a=Math.max(n,i),d=Math.min(l,o);for(let e=a;e<=d;e++){let t=this.getRow(e);if(t.rowHeightEstimated){let e=io(this.beans,t);t.setRowHeight(e.height),r=!0,s=!0}}r&&this.setRowTopAndRowIndex()}while(r);return s}onPropChange(e){let t,{nodeManager:i,gos:o,beans:r}=this,s=r.groupStage;if(!i)return;let n=new Set(e),l=s?.onPropChange(n);n.has("rowData")?t=o.get("rowData"):l&&(t=s?.extractData()),t&&!Array.isArray(t)&&(t=null,tX(1));let a={step:"nothing",changedProps:n};if(t){let e=!l&&!this.isEmpty()&&t.length>0&&o.exists("getRowId")&&!o.get("resetRowDataOnUpdate");this.refreshingData=!0,e?(a.keepRenderedRows=!0,a.animate=!o.get("suppressAnimationFrame"),a.changedRowNodes=new aC,i.setImmutableRowData(a,t)):(a.rowDataUpdated=!0,a.newData=!0,i.setNewRowData(t),this.rowNodesCountReady=!0)}let d=a.rowDataUpdated?"group":this.getRefreshedStage(e);d&&(a.step=d,this.refreshModel(a))}
47getRefreshedStage(e){let{stages:t,stagesRefreshProps:i}=this;if(!t)return null;let o=t.length,r=o;for(let t=0,o=e.length;t<o&&r;++t)r=Math.min(r,i.get(e[t])??r);return r<o?t[r].step:null}setRowTopAndRowIndex(e){let{beans:t,rowsToDisplay:i}=this,o=t.environment.getDefaultRowHeight(),r=0,s=t9(this.gos,"normal");for(let n=0,l=i.length;n<l;++n){let l=i[n],a=l.id;if(null!=a&&e?.add(a),null==l.rowHeight){let e=io(t,l,s,o);l.setRowHeight(e.height,e.estimated)}l.setRowTop(r),l.setRowIndex(n),r+=l.rowHeight}if(this.beans.formula?.active){let e=this.formulaRows;for(let t=0,i=e.length;t<i;++t)e[t].formulaRowIndex=t}}clearRowTopAndRowIndex(e,t){let i=e.active,o=e=>{e?.id==null||t.has(e.id)||e.clearRowTopAndRowIndex()},r=e=>{o(e),o(e.detailNode),o(e.sibling);let t=e.childrenAfterGroup;if(!e.hasChildren()||!t)return;let s=-1==e.level;if(!(i&&!s&&!e.expanded))for(let e=0,i=t.length;e<i;++e)r(t[e])},s=this.rootNode;s&&r(s)}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay.length}getTopLevelRowCount(){let{rootNode:e,rowsToDisplay:t}=this;if(!e||!t.length)return 0;if(t[0]===e)return 1;let i=+!!e.sibling?.displayed;return(e.childrenAfterSort?.length??0)+i}getTopLevelRowDisplayedIndex(e){let{beans:t,rootNode:i,rowsToDisplay:o}=this;if(!i||!o.length||o[0]===i)return e;let r=i.childrenAfterSort,s=e=>{let t=r[e];if(this.gos.get("groupHideOpenParents"))for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},n=t.footerSvc;return n?n?.getTopDisplayIndex(o,e,r,s):s(e)}getTopLevelIndexFromDisplayedIndex(e){let{rootNode:t,rowsToDisplay:i}=this;if(!t||!i.length||i[0]===t)return e;let o=this.getRow(e);o.footer&&(o=o.sibling);let r=o.parent;for(;r&&r!==t;)r=(o=r).parent;let s=t.childrenAfterSort?.indexOf(o)??-1;return s>=0?s:e}getRowBounds(e){let t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){this.refreshModel({step:"map",keepRenderedRows:!0,animate:id(this.gos)})}onFilterChanged({afterDataChange:e,columns:t}){if(!e){let e=0===t.length||t.some(e=>e.isPrimary());this.refreshModel({step:e?"filter":"filter_aggregates",keepRenderedRows:!0,animate:id(this.gos)})}}onSortChanged(){this.refreshModel({step:"sort",keepRenderedRows:!0,animate:id(this.gos)})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.beans.colModel.isPivotActive()?"pivot":"aggregate"})}createChangePath(e){let t=new aS(!1,this.rootNode);return t.active=e,t}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;let{changedRowNodes:t,newData:i,rowDataUpdated:o}=e;return!!t&&!i&&!!o&&!t.removals.length&&!t.adds.size}reMapRows(){if(this.refreshingModel||this.refreshingData){this.noKeepRenderedRows=!0,this.noKeepUndoRedoStack=!0,this.noAnimate=!0;return}this.refreshModel({step:"map",keepRenderedRows:!1,keepUndoRedoStack:!1,animate:!1})}refreshModel(e){let{nodeManager:t,eventSvc:i,started:o}=this;if(!t)return;let r=!!e.rowDataUpdated,s=e.changedPath??(e.changedPath=this.createChangePath(!e.newData&&r));if(o&&r&&i.dispatchEvent({type:"rowDataUpdated"}),this.deferRefresh(e)){this.setPendingRefreshFlags(e),this.rowDataUpdatedPending||(this.rowDataUpdatedPending=r);return}this.rowDataUpdatedPending&&(this.rowDataUpdatedPending=!1,e.step="group"),this.updateRefreshParams(e);let n=!1;this.refreshingModel=!0;try{this.executeRefresh(e,s,r),n=!0}finally{this.refreshingData=!1,this.refreshingModel=!1,n||this.setPendingRefreshFlags(e)}this.clearPendingRefreshFlags(),i.dispatchEvent({type:"modelUpdated",animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack})}executeRefresh(e,t,i){let{beans:o}=this;switch(o.masterDetailSvc?.refreshModel(e),i&&"group"!==e.step&&o.colFilter?.refreshModel(),e.step){case"group":this.doGrouping(e);case"filter":this.doFilter(t);case"pivot":this.doPivot(t);case"aggregate":this.doAggregate(t);case"filter_aggregates":this.doFilterAggregates(t);case"sort":this.doSort(t,e.changedRowNodes);case"map":this.doRowsToDisplay()}let r=new Set;this.setRowTopAndRowIndex(r),this.clearRowTopAndRowIndex(t,r),this.updateRefreshParams(e)}deferRefresh(e){return!!this.refreshingModel||!!this.beans.colModel.changeEventsDispat
47ching||(this.isSuppressModelUpdateAfterUpdateTransaction(e)?(this.started&&(this.refreshingData=!1),!0):!this.started)}setPendingRefreshFlags(e){this.pendingNewData||(this.pendingNewData=!!e.newData),this.noKeepRenderedRows||(this.noKeepRenderedRows=!e.keepRenderedRows),this.noKeepUndoRedoStack||(this.noKeepUndoRedoStack=!e.keepUndoRedoStack),this.noAnimate||(this.noAnimate=!e.animate)}clearPendingRefreshFlags(){this.pendingNewData=!1,this.noKeepRenderedRows=!1,this.noKeepUndoRedoStack=!1,this.noAnimate=!1}updateRefreshParams(e){e.newData=this.pendingNewData||!!e.newData,e.keepRenderedRows=!this.noKeepRenderedRows&&!!e.keepRenderedRows,e.keepUndoRedoStack=!this.noKeepUndoRedoStack&&!!e.keepUndoRedoStack,e.animate=!this.noAnimate&&!!e.animate}isEmpty(){return!this.rootNode?._leafs?.length||!this.beans.colModel?.ready}isRowsToRender(){return this.rowsToDisplay.length>0}getOverlayType(){let{beans:e,gos:t}=this;if(this.rootNode?._leafs?.length){if(e.filterManager?.isAnyFilterPresent()&&0===this.getRowCount())return"noMatchingRows"}else if(this.rowCountReady||(t.get("rowData")?.length??0)==0)return"noRows";return null}getNodesInRangeForSelection(e,t){let i=!1,o=!1,r=[],s=iO(this.gos);return this.forEachNodeAfterFilterAndSort(n=>{if(!o){if(i&&(n===t||n===e)&&(o=!0,s&&n.group))return void gJ(r,n);if(!i){if(n!==t&&n!==e)return;i=!0,t===e&&(o=!0)}n.group&&s||r.push(n)}}),r}getTopLevelNodes(){return this.rootNode?.childrenAfterGroup??null}getRow(e){return this.rowsToDisplay[e]}getFormulaRow(e){return this.formulaRows[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){let t=this.rowsToDisplay,i=t.length;if(this.isEmpty()||0===i)return -1;let o=0,r=i-1;if(e<=0)return 0;if(t[r].rowTop<=e)return r;let s=-1,n=-1;for(;;){let i=Math.floor((o+r)/2),l=t[i];if(this.isRowInPixel(l,e)||(l.rowTop<e?o=i+1:l.rowTop>e&&(r=i-1),s===o&&n===r))return i;s=o,n=r}}isRowInPixel(e,t){let i=e.rowTop,o=i+e.rowHeight;return i<=t&&o>t}forEachLeafNode(e){let t=this.rootNode?._leafs;if(t)for(let i=0,o=t.length;i<o;++i)e(t[i],i)}forEachNode(e,t=!1){this.depthFirstSearchRowNodes(e,t)}forEachDisplayedNode(e){let t=this.rowsToDisplay;for(let i=0,o=t.length;i<o;++i)e(t[i],i)}forEachNodeAfterFilter(e,t=!1){this.depthFirstSearchRowNodes(e,t,e=>e.childrenAfterAggFilter)}forEachNodeAfterFilterAndSort(e,t=!1){this.depthFirstSearchRowNodes(e,t,e=>e.childrenAfterSort)}forEachPivotNode(e,t,i){let{colModel:o,rowGroupColsSvc:r}=this.beans;if(!o.isPivotMode())return;if(!r?.columns.length)return void e(this.rootNode,0);let s=i?"childrenAfterSort":"childrenAfterGroup";this.depthFirstSearchRowNodes(e,t,e=>e.leafGroup?null:e[s])}depthFirstSearchRowNodes(e,t=!1,i=e=>e.childrenAfterGroup,o=this.rootNode,r=0){let s=r;if(!o)return s;let n=o===this.rootNode;if(n||e(o,s++),o.hasChildren()&&!o.footer){let r=i(o);if(r){let l=this.beans.footerSvc;for(let a of(s=l?.addTotalRows(s,o,e,t,n,"top")??s,r))s=this.depthFirstSearchRowNodes(e,t,i,a,s);return l?.addTotalRows(s,o,e,t,n,"bottom")??s}}return s}doAggregate(e){this.rootNode&&this.beans.aggStage?.execute(e)}doFilterAggregates(e){let t=this.rootNode,i=this.beans.filterAggStage;if(i)return void i.execute(e);t.childrenAfterAggFilter=t.childrenAfterFilter}doSort(e,t){let i=this.beans.sortStage;if(i)return void i.execute(e,t);e.forEachChangedNodeDepthFirst(e=>{e.childrenAfterSort=e.childrenAfterAggFilter.slice(0),gj(e)})}doGrouping(e){let t=this.rootNode;if(!t)return;let i=this.beans.groupStage,o=i?.execute(e);if(void 0===o){let e=t._leafs;t.childrenAfterGroup=e,t.updateHasChildren();let i=t.sibling;i&&(i.childrenAfterGroup=e)}(o||e.rowDataUpdated)&&this.beans.colFilter?.refreshModel(),!this.rowCountReady&&this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEventOnce({type:"rowCountReady"}))}doFilter(e){let t=this.beans.filterStage;if(t)return void t.execute(e);e.forEachChangedNodeDepthFirst(e=>{e.childrenAfterFilter=e.childrenAfterGroup,gq(e)},!0)}doPivot(e){this.beans.pivotStage?.execute(e)}getRowNode(e){let t=this.nodeManager?.getRowNode(e);return"object"==typeof t?t:this.beans.groupStage?.getNonLeaf(e)}batchUpdateRowData(e,t){if(!this.asyncTransactionsTimer){this.asyncTransactions=[];let e=this.gos.get("asyncTransactionWaitMillis");this.asyncTransactionsTimer=setTimeout(()=>this.executeBatchUpdateRowData(),e)}this.asyncTransactions.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){let e=this.asyncTransactionsTimer;e&&(clearTimeout(e),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){let{nodeManager:e,beans:t,eventSvc:i,asyncTransactions:o}=this;if(!e)return;t.valueCache?.onDataChanged();let r=[],s=[],n=new aC,l=!this.gos.get("suppressAnimationFrame");for(let{rowDataTransaction:t,callback:i}of o??[]){this.rowNodesCountReady=!0,this.refreshingData=!0;let o=e.updateRowData(t,n,l);r.push(o),i&&s.push(i.bind(null,o))}this.commitTransactions(n,l),s.length>0&&setTimeout(()=>{for(let e=0,t=s.length;e<t;e++)s[e]()},0),r.length>0&&i.dispatchEvent({type:"asyncTransactionsFlushed",results:r}),this.asyncTransactionsTimer=0,this.asyncTransactions=null}updateRowData(e){let t=this.nodeManager;if(!t)return null;this.beans.valueCache?.onDataChanged(),this.rowNodesCountReady=!0;let i=new aC,o=!this.gos.get("suppressAnimationFrame");this.refreshingData=!0;let r=t.updateRowData(e,i,o);return this.commitTransactions(i,o),r}commitTransactions(e,t){this.refreshModel({step:"group",rowDataUpdated:!0,keepRenderedRows:!0,animate:t,changedRowNodes:e,changedPath:this.createChangePath(!0)})}doRowsToDisplay(){let{rootNode:e,beans:t}=this;if(t.formula?.active){let t=e?.childrenAfterSort??[];for(let e of(this.formulaRows=t,this.rowsToDisplay=t.filter(e=>!e.softFiltered),this.rowsToDisplay))e.setUiLevel(0);return}let i=t.flattenStage;if(i){this.rowsToDisplay=i.execute();return}let o=this.rootNode.childrenAfterSort??[];for(let e of o)e.setUiLevel(0);this.rowsToDisplay=o}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepUndoRedoStack:!0})}resetRowHeights(){let e=this.rootNode;if(!e)return;let t=this.resetRowHeightsForAllRowNodes();e.setRowHeight(e.rowHeight,!0);let i=e.sibling;i?.setRowHeight(i.rowHeight,!0),t&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{t.setRowHeight(t.rowHeight,!0);let i=t.detailNode;i?.setRowHeight(i.rowHeight,!0);let o=t.sibling;o?.setRowHeight(o.rowHeight,!0),e=!0}),e}onGridStylesChanges(e){e.rowHeightChanged&&!this.beans.rowAutoHeight?.active&&this.resetRowHeights()}onGridReady(){this.started||this.setInitialData()}destroy(){super.destroy(),this.nodeManager=this.destroyBean(this.nodeManager),this.started=!1,this.rootNode=null,this.rowsToDisplay=[],this.asyncTransactions=null,this.stages=null,this.stagesRefreshPro
47ps.clear(),clearTimeout(this.asyncTransactionsTimer)}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}},gJ=(e,t)=>{let i=t.childrenAfterGroup;if(i)for(let t=0,o=i.length;t<o;++t){let o=i[t];o.data&&e.push(o),o.group&&gJ(e,o)}},gX={moduleName:"ClientSideRowModel",version:tU,rowModels:["clientSide"],beans:[gZ,gY],dependsOn:[c5]},g0={moduleName:"ClientSideRowModelApi",version:tU,apiFunctions:{onGroupExpandedOrCollapsed:function(e){e.expansionSvc?.onGroupExpandedOrCollapsed()},refreshClientSideRowModel:function(e,t){let i=nc(e);i&&(t&&"everything"!==t||(t="group"),i.refreshModel({step:t,keepRenderedRows:!0,animate:!e.gos.get("suppressAnimationFrame")}))},isRowDataEmpty:function(e){return nc(e)?.isEmpty()??!0},forEachLeafNode:function(e,t){nc(e)?.forEachLeafNode(t)},forEachNodeAfterFilter:function(e,t){nc(e)?.forEachNodeAfterFilter(t)},forEachNodeAfterFilterAndSort:function(e,t){nc(e)?.forEachNodeAfterFilterAndSort(t)},applyTransaction:function(e,t){return e.frameworkOverrides.wrapIncoming(()=>nc(e)?.updateRowData(t))},applyTransactionAsync:function(e,t,i){e.frameworkOverrides.wrapIncoming(()=>nc(e)?.batchUpdateRowData(t,i))},flushAsyncTransactions:function(e){e.frameworkOverrides.wrapIncoming(()=>nc(e)?.flushAsyncTransactions())},getBestCostNodeSelection:function(e){return e.selectionSvc?.getBestCostNodeSelection()},resetRowHeights:gB,onRowHeightChanged:gL},dependsOn:[gH,gV]};function g1({colAutosize:e,visibleCols:t},i,o){Array.isArray(i)?e?.autoSizeCols({colKeys:i,skipHeader:o,source:"api"}):e?.autoSizeCols({...i,colKeys:i.colIds??t.allCols,source:"api"})}var g3=class extends tc{constructor(){super(...arguments),this.beanName="colAutosize",this.timesDelayed=0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}postConstruct(){let{gos:e}=this,t=e.get("autoSizeStrategy");if(t){let i=!1,o=t.type;if("fitGridWidth"===o||"fitProvidedWidth"===o)i=!0;else if("fitCellContents"===o){this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered(t)});let o=e.get("rowData");i=null!=o&&o.length>0&&t8(e)}i&&this.beans.colDelayRenderSvc?.hideColumns(o)}}autoSizeCols(e){let{eventSvc:t,visibleCols:i,colModel:o}=this.beans;g4(this.beans,!0),this.innerAutoSizeCols(e).then(r=>{let s=e=>oG(t,Array.from(e),!0,"autosizeColumns");if(!e.scaleUpToFitGridWidth)return g4(this.beans,!1),s(r);let n=g2(this.beans),l=e.colKeys.filter(e=>!o.getCol(e)?.getColDef().suppressAutoSize&&!op(e)&&!i.leftCols.some(t=>ob(t,e))&&!i.rightCols.some(t=>ob(t,e)));this.sizeColumnsToFit(n,e.source,!0,{defaultMaxWidth:e.defaultMaxWidth,defaultMinWidth:e.defaultMinWidth,columnLimits:e.columnLimits?.map(e=>({...e,key:e.colId})),colKeys:l,onlyScaleUp:!0,animate:!1}),g4(this.beans,!1),s(r)})}innerAutoSizeCols(e){return new Promise((t,i)=>{if(this.shouldQueueResizeOperations)return this.pushResizeOperation(()=>this.innerAutoSizeCols(e).then(t,i));let{colKeys:o,skipHeader:r,skipHeaderGroups:s,stopAtGroup:n,defaultMaxWidth:l,defaultMinWidth:a,columnLimits:d=[],source:h="api"}=e,{animationFrameSvc:u,renderStatus:c,colModel:g,autoWidthCalc:p,visibleCols:m}=this.beans;if(u?.flushAllFrames(),this.timesDelayed<5&&c&&(!c.areHeaderCellsRendered()||!c.areCellsRendered())){this.timesDelayed++,setTimeout(()=>{this.isAlive()&&this.innerAutoSizeCols(e).then(t,i)});return}this.timesDelayed=0;let f=new Set,C=-1,v=Object.fromEntries(d.map(({colId:e,...t})=>[e,t])),w=r??this.gos.get("skipHeaderOnAutoSize"),b=s??w;for(;0!==C;){C=0;let e=[];for(let t of o){if(!t||om(t))continue;let i=g.getCol(t);if(!i||f.has(i)||i.getColDef().suppressAutoSize)continue;let o=p.getPreferredWidthForColumn(i,w);if(o>0){let e=v[i.colId]??{};e.minWidth??(e.minWidth=a),e.maxWidth??(e.maxWidth=l);let t=function(e,t,i={}){let o=i.minWidth??e.getMinWidth();t<o&&(t=o);let r=i.maxWidth??e.getMaxWidth();return t>r&&(t=r),t}(i,o,e);i.setActualWidth(t,h),f.add(i),C++}e.push(i)}e.length&&m.refresh(h)}b||this.autoSizeColumnGroupsByColumns(o,h,n),t(f)})}autoSizeColumn(e,t,i){this.autoSizeCols({colKeys:[e],skipHeader:i,skipHeaderGroups:!0,source:t})}autoSizeColumnGroupsByColumns(e,t,i){let o,{colModel:r,ctrlsSvc:s}=this.beans,n=new Set;for(let t of r.getColsForKeys(e)){let e=t.getParent();for(;e&&e!=i;)e.isPadding()||n.add(e),e=e.getParent()}for(let e of n){for(let t of s.getHeaderRowContainerCtrls())if(o=t.getHeaderCtrlForColumn(e))break;o?.resizeLeafColumnsToFit(t)}
47}autoSizeAllColumns(e){if(this.shouldQueueResizeOperations)return void this.pushResizeOperation(()=>this.autoSizeAllColumns(e));this.autoSizeCols({colKeys:this.beans.visibleCols.allCols,...e})}addColumnAutosizeListeners(e,t){let i=this.gos.get("skipHeaderOnAutoSize"),o=()=>{this.autoSizeColumn(t,"uiColumnResized",i)};e.addEventListener("dblclick",o);let r=new nz(e);return r.addEventListener("doubleTap",o),()=>{e.removeEventListener("dblclick",o),r.destroy()}}addColumnGroupResize(e,t,i){let o=this.gos.get("skipHeaderOnAutoSize"),r=()=>{let e=[];for(let i of t.getDisplayedLeafColumns())i.getColDef().suppressAutoSize||e.push(i.getColId());e.length>0&&this.autoSizeCols({colKeys:e,skipHeader:o,stopAtGroup:t,source:"uiColumnResized"}),i()};return e.addEventListener("dblclick",r),()=>e.removeEventListener("dblclick",r)}sizeColumnsToFitGridBody(e,t){if(!this.isAlive())return;let i=g2(this.beans);if(i>0)return void this.sizeColumnsToFit(i,"sizeColumnsToFit",!1,e);void 0===t?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,100)},0):100===t?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,500)},100):500===t?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,-1)},500):tX(29)}sizeColumnsToFit(e,t="sizeColumnsToFit",i,o){if(this.shouldQueueResizeOperations)return void this.pushResizeOperation(()=>this.sizeColumnsToFit(e,t,i,o));let{beans:r}=this,s=o?.animate??!0;s&&g4(r,!0);let n={};for(let{key:e,...t}of o?.columnLimits??[])n["string"==typeof e?e:e.getColId()]=t;let l=r.visibleCols.allCols;if(e<=0||!l.length)return;let a=oh(l);if(o?.onlyScaleUp&&a>e||e===a&&l.every(e=>{if(e.colDef.suppressSizeToFit)return!0;let t=n?.[e.getId()],i=t?.minWidth??o?.defaultMinWidth,r=t?.maxWidth??o?.defaultMaxWidth,s=e.getActualWidth();return(null==i||s>=i)&&(null==r||s<=r)}))return;let d=[],h=[];for(let e of l){let t=o?.colKeys?.some(t=>ob(e,t))??!0;e.getColDef().suppressSizeToFit||!t?h.push(e):d.push(e)}let u=d.slice(0),c=!1,g=e=>{y(d,e),h.push(e)},p={};for(let e of d){o?.onlyScaleUp&&(p[e.getColId()]=e.getActualWidth()),e.resetActualWidth(t);let i=n?.[e.getId()],r=i?.minWidth??o?.defaultMinWidth??-1/0,s=i?.maxWidth??o?.defaultMaxWidth??1/0,l=e.getActualWidth(),a=Math.max(Math.min(l,s),r);a!=l&&e.setActualWidth(a,t,!0)}for(;!c;){c=!0;let i=e-oh(h);if(i<=0)for(let e of d){let i=n?.[e.getId()]?.minWidth??o?.defaultMinWidth??e.minWidth;e.setActualWidth(i,t,!0)}else{let e=i/oh(d),r=i;for(let i=d.length-1;i>=0;i--){let s=d[i],l=s.getColId(),a=p[l],h=n?.[l],u=h?.minWidth??o?.defaultMinWidth??a,m=h?.maxWidth??o?.defaultMaxWidth,f=Math.max(u??-1/0,s.getMinWidth()),C=Math.min(m??1/0,s.getMaxWidth()),v=Math.round(s.getActualWidth()*e);v<f?(v=f,g(s),c=!1):v>C?(v=C,g(s),c=!1):0===i&&(v=r),s.setActualWidth(v,t,!0),r-=v}}}for(let e of u)e.fireColumnWidthChangedEvent(t);let m=r.visibleCols;m.setLeftValues(t),m.updateBodyWidths(),!i&&(oG(this.eventSvc,u,!0,t),s&&g4(r,!1))}applyAutosizeStrategy(){let{gos:e,colDelayRenderSvc:t}=this.beans,i=e.get("autoSizeStrategy");(i?.type==="fitGridWidth"||i?.type==="fitProvidedWidth")&&setTimeout(()=>{if(!this.isAlive())return;let e=i.type;if("fitGridWidth"===e){let{columnLimits:e,defaultMinWidth:t,defaultMaxWidth:o}=i,r=e?.map(({colId:e,minWidth:t,maxWidth:i})=>({key:e,minWidth:t,maxWidth:i}));this.sizeColumnsToFitGridBody({defaultMinWidth:t,defaultMaxWidth:o,columnLimits:r})}else"fitProvidedWidth"===e&&this.sizeColumnsToFit(i.width,"sizeColumnsToFit");t?.revealColumns(e)})}onFirstDataRendered({colIds:e,...t}){setTimeout(()=>{if(!this.isAlive())return;let i="autosizeColumns";e?this.autoSizeCols({...t,source:i,colKeys:e}):this.autoSizeAllColumns({...t,source:i}),this.beans.colDelayRenderSvc?.revealColumns(t.type)})}processResizeOperations(){for(let e of(this.shouldQueueResizeOperations=!1,this.resizeOperationQueue))e();this.resizeOperationQueue=[]}pushResizeOperation(e){this.resizeOperationQueue.push(e)}destroy(){this.resizeOperationQueue.length=0,super.destroy()}};function g2({ctrlsSvc:e,scrollVisibleSvc:t}){let i=e.getGridBodyCtrl(),o=i.isVerticalScrollShowing()?t.getScrollbarWidth():0;return ek(i.eGridBody)-o}var g6="ag-animate-autosize";function g4({ctrlsSvc:e,gos:t}
47,i){if(!t.get("animateColumnResizing")||t.get("enableRtl")||!e.isAlive())return;let o=e.getGridBodyCtrl().eGridBody.classList;i?o.add(g6):o.remove(g6)}var g5={moduleName:"ColumnAutoSize",version:tU,beans:[g3],apiFunctions:{sizeColumnsToFit:function(e,t){"number"==typeof t?e.colAutosize?.sizeColumnsToFit(t,"api"):e.colAutosize?.sizeColumnsToFitGridBody(t)},autoSizeColumns:g1,autoSizeAllColumns:function(e,t){t&&"object"==typeof t?g1(e,t):e.colAutosize?.autoSizeAllColumns({source:"api",skipHeader:t})}},dependsOn:[aq],css:[":where(.ag-ltr) :where(.ag-animate-autosize){.ag-cell,.ag-header-cell,.ag-header-group-cell{transition:width .2s ease-in-out,left .2s ease-in-out}}:where(.ag-rtl) :where(.ag-animate-autosize){.ag-cell,.ag-header-cell,.ag-header-group-cell{transition:width .2s ease-in-out,right .2s ease-in-out}}"]},g8=class extends tc{constructor(e,t){super(),this.columns=e,this.element=t,this.destroyManagedListeners=[],this.enableFeature=e=>{let{beans:t,gos:i,element:o,columns:r}=this,s=t.colHover;if(e??!!i.get("columnHoverHighlight"))this.destroyManagedListeners=this.addManagedElementListeners(o,{mouseover:s.setMouseOver.bind(s,r),mouseout:s.clearMouseOver.bind(s)});else{for(let e of this.destroyManagedListeners)e();this.destroyManagedListeners=[]}}}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{this.enableFeature(e)}),this.enableFeature()}destroy(){super.destroy(),this.destroyManagedListeners=null}},g7={moduleName:"ColumnHover",version:tU,beans:[class extends tc{constructor(){super(...arguments),this.beanName="colHover"}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{e||this.clearMouseOver()})}setMouseOver(e){this.updateState(e)}clearMouseOver(){this.updateState(null)}isHovered(e){if(!this.gos.get("columnHoverHighlight"))return!1;let t=this.selectedColumns;return!!t&&t.indexOf(e)>=0}addHeaderColumnHoverListener(e,t,i){let o=()=>{let e=this.isHovered(i);t.toggleCss("ag-column-hover",e)};e.addManagedEventListeners({columnHoverChanged:o}),o()}onCellColumnHover(e,t){if(!t)return;let i=this.isHovered(e);t.toggleCss("ag-column-hover",i)}addHeaderFilterColumnHoverListener(e,t,i,o){this.createHoverFeature(e,[i],o);let r=()=>{let e=this.isHovered(i);t.toggleCss("ag-column-hover",e)};e.addManagedEventListeners({columnHoverChanged:r}),r()}createHoverFeature(e,t,i){e.createManagedBean(new g8(t,i))}updateState(e){this.selectedColumns=e,this.eventSvc.dispatchEvent({type:"columnHoverChanged"})}}],apiFunctions:{isColumnHovered:function(e,t){return!!e.colHover?.isHovered(t)}}},g9={moduleName:"SharedExport",version:tU,beans:[class extends tc{constructor(){super(...arguments),this.beanName="gridSerializer"}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel,this.rowModel=e.rowModel,this.pinnedRowModel=e.pinnedRowModel}serialize(e,t={}){let{allColumns:i,columnKeys:o,skipRowGroups:r,exportRowNumbers:s}=t,n=this.getColumnsToExport({allColumns:i,skipRowGroups:r,columnKeys:o,exportRowNumbers:s});return[this.prepareSession(n),this.prependContent(t),this.exportColumnGroups(t,n),this.exportHeaders(t,n),this.processPinnedTopRows(t,n),this.processRows(t,n),this.processPinnedBottomRows(t,n),this.appendContent(t)].reduce((e,t)=>t(e),e).parse()}processRow(e,t,i,o){let r=t.shouldRowBeSkipped||(()=>!1),s=null!=t.rowPositions||!!t.onlySelected,n=this.gos.get("groupHideOpenParents")&&!s,l=this.colModel.isPivotMode()?o.leafGroup:!o.group,a=!!o.footer,d=1===o.allChildrenCount&&o.childrenAfterGroup?.length===1&&ib(this.gos,o);if(!l&&!a&&(t.skipRowGroups||d||n)||t.onlySelected&&!o.isSelected()||t.skipPinnedTop&&"top"===o.rowPinned||t.skipPinnedBottom&&"bottom"===o.rowPinned||o.stub||-1===o.level&&!l&&!a||r(iK(this.gos,{node:o})))return;let h=e.onNewBodyRow(o);if(i.forEach((e,t)=>{h.onColumn(e,t,o)}),t.getCustomContentBelowRow){let i=t.getCustomContentBelowRow(iK(this.gos,{node:o}));i&&e.addCustomContent(i)}}appendContent(e){return t=>{let i=e.appendContent;return i&&t.addCustomContent(i),t}}prependContent(e){return t=>{let i=e.prependContent;return i&&t.addCustomContent(i),t}}prepareSession(e){return t=>(t.prepare(e),t)}exportColumnGroups(e,t){return i=>{if(!e.skipColumnGroupHeaders){let o=new aJ,{colGroupSvc:r}=this.beans,s=r?r.createColumnGroups({columns:t,idCreator:o,pinned:null,isStandaloneStructure:!0}):t;this.recursivelyAddHeaderGroups(s,i,e.processGroupHeaderCallback)}return i}}exportHeaders(e,t){return i=>{if(!e.skipColumnHeaders){let e=i.onNewHeaderRow();t.forEach((t,i)=>{e.onColumn(t,i,void 0)})}return i}}processPinnedTopRows(e,t){return i=>{let o=this.processRow.bind(this,i,e,t);return e.rowPositions?e.rowPositions.filter(e=>"top"===e.rowPinned).sort((e,t)=>
47e.rowIndex-t.rowIndex).map(e=>this.pinnedRowModel?.getPinnedTopRow(e.rowIndex)).forEach(o):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("top",o),i}}processRows(e,t){return i=>{let o=this.rowModel,r=t8(this.gos,o),s=t7(this.gos,o),n=!r&&e.onlySelected,l=this.processRow.bind(this,i,e,t),{exportedRows:a="filteredAndSorted"}=e;if(e.rowPositions)e.rowPositions.filter(e=>null==e.rowPinned).sort((e,t)=>e.rowIndex-t.rowIndex).map(e=>o.getRow(e.rowIndex)).forEach(l);else if(this.colModel.isPivotMode())r?o.forEachPivotNode(l,!0,"filteredAndSorted"===a):s?o.forEachNodeAfterFilterAndSort(l,!0):o.forEachNode(l);else if(e.onlySelectedAllPages||n){let e=this.beans.selectionSvc?.getSelectedNodes()??[];this.replicateSortedOrder(e),e.forEach(l)}else"all"===a?o.forEachNode(l):r||s?o.forEachNodeAfterFilterAndSort(l,!0):o.forEachNode(l);return i}}replicateSortedOrder(e){let{sortSvc:t,rowNodeSorter:i}=this.beans;if(!t||!i)return;let o=t.getSortOptions(),r=(e,t)=>null!=e.rowIndex&&null!=t.rowIndex?e.rowIndex-t.rowIndex:e.level===t.level?e.parent?.id===t.parent?.id?i.compareRowNodes(o,e,t)||(e.rowIndex??-1)-(t.rowIndex??-1):r(e.parent,t.parent):e.level>t.level?r(e.parent,t):r(e,t.parent);e.sort(r)}processPinnedBottomRows(e,t){return i=>{let o=this.processRow.bind(this,i,e,t);return e.rowPositions?e.rowPositions.filter(e=>"bottom"===e.rowPinned).sort((e,t)=>e.rowIndex-t.rowIndex).map(e=>this.pinnedRowModel?.getPinnedBottomRow(e.rowIndex)).forEach(o):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("bottom",o),i}}getColumnsToExport(e){let{allColumns:t=!1,skipRowGroups:i=!1,exportRowNumbers:o=!1,columnKeys:r}=e,{colModel:s,gos:n,visibleCols:l}=this,a=s.isPivotMode(),d=e=>!og(e)&&(!op(e)||o);if(r?.length)return s.getColsForKeys(r).filter(d);let h=n.get("treeData");return(t&&!a?s.getCols():l.allCols).filter(e=>d(e)&&(!i||!!h||!oc(e)))}recursivelyAddHeaderGroups(e,t,i){let o=[];for(let t of e)if(t.getChildren)for(let e of t.getChildren()??[])o.push(e);e.length>0&&o$(e[0])&&this.doAddHeaderHeader(t,e,i),o&&o.length>0&&this.recursivelyAddHeaderGroups(o,t,i)}doAddHeaderHeader(e,t,i){let o=e.onNewHeaderGroupingRow(),r=0;for(let e of t){let t;t=i?i(iK(this.gos,{columnGroup:e})):this.beans.colNames.getDisplayNameForColumnGroup(e,"header");let s=(e.isExpandable()?e.getLeafColumns():[]).reduce((e,t,i,o)=>{let r=v(e);return"open"===t.getColumnGroupShow()?r&&null==r[1]||(r=[i],e.push(r)):r&&null==r[1]&&(r[1]=i-1),i===o.length-1&&r&&null==r[1]&&(r[1]=i),e},[]);o.onColumn(e,t||"",r++,e.getLeafColumns().length-1,s)}}}]},pe=class extends tc{getFileName(e){let t=this.getDefaultFileExtension();return e?.length||(e=this.getDefaultFileName()),e.includes(".")?e:`${e}.${t}`}getData(e){return this.beans.gridSerializer.serialize(this.createSerializingSession(e),e)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}};function pt(e,t){let i=document.defaultView||window;if(!i)return void tX(52);let o=document.createElement("a"),r=i.URL.createObjectURL(t);o.setAttribute("href",r),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:i})),o.remove(),i.setTimeout(()=>{i.URL.revokeObjectURL(r)},0)}var pi=class{constructor(e){this.valueFrom="data";let{colModel:t,rowGroupColsSvc:i,colNames:o,valueSvc:r,gos:s,processCellCallback:n,processHeaderCallback:l,processGroupHeaderCallback:a,processRowGroupCallback:d,valueFrom:h}=e;this.colModel=t,this.rowGroupColsSvc=i,this.colNames=o,this.valueSvc=r,this.gos=s,this.processCellCallback=n,this.processHeaderCallback=l,this.processGroupHeaderCallback=a,this.processRowGroupCallback=d,h&&(this.valueFrom=h)}prepare(e){}extractHeaderValue(e){return this.getHeaderName(this.processHeaderCallback,e)??""}extractRowCellValue(e){let{column:t,node:i,currentColumnIndex:o,accumulatedRowIndex:r,type:s,useRawFormula:n}=e,l=0===o&&iv(this.gos,i,this.colModel.isPivotMode());if(this.processRowGroupCallback&&(this.gos.get("treeData")||i.group)&&(t.isRowGroupDisplayed(i.rowGroupColumn?.getColId()??"")||l))return{value:this.processRowGroupCallback(iK(this.gos,{column:t,node:i}))??""};if(this.processCellCallback)return{value:this.processCellCallback(iK(this.gos,{accumulatedRowIndex:r,column:t,node:i,value:this.valueSvc.getValueForDisplay({column:t,node:i,from:this.valueFrom}).value,type:s,parseValue:e=>this.valueSvc.parseValue(t,i,e,this.valueSvc.getValue(t,i,this.valueFrom)),formatValue:e=>this.valueSvc.formatValue(t,i,e)??e}))??""};let a=this.gos.get("treeData"),d=this.valueSvc,h=-1===i.level&&i.footer,u=!0===t.colDef.showRowGroup&&(i.group||a);if(!h&&(l||u)){let e="",o=i;for(;o&&-1!==o.level;){let{value:i,valueFormatted:r}
47=d.getValueForDisplay({column:l?void 0:t,node:o,includeValueFormatted:!0,exporting:!0,from:this.valueFrom});e=` -> ${r??i??""}${e}`,o=o.parent}return{value:e,valueFormatted:e}}let{value:c,valueFormatted:g}=d.getValueForDisplay({column:t,node:i,includeValueFormatted:!0,exporting:!0,useRawFormula:n,from:this.valueFrom});return{value:c??"",valueFormatted:g}}getHeaderName(e,t){return e?e(iK(this.gos,{column:t})):this.colNames.getDisplayNameForColumn(t,"csv",!0)}},po=class extends pi{constructor(e){super(e),this.config=e,this.isFirstLine=!0,this.result="";let{suppressQuotes:t,columnSeparator:i}=e;this.suppressQuotes=t,this.columnSeparator=i}addCustomContent(e){e&&("string"==typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach(e=>{this.beginNewLine(),e.forEach((e,t)=>{0!==t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e.data.value||""),e.mergeAcross&&this.appendEmptyCells(e.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(e,t,i,o){0!=i&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(o)}appendEmptyCells(e){for(let t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(e,t){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,t,i){0!=t&&(this.result+=this.columnSeparator);let o=this.extractRowCellValue({column:e,node:i,currentColumnIndex:t,accumulatedRowIndex:t,type:"csv",useRawFormula:!1});this.result+=this.putInQuotes(o.valueFormatted??o.value)}putInQuotes(e){let t;return this.suppressQuotes?e:null==e?'""':("string"==typeof e?t=e:"function"==typeof e.toString?t=e.toString():(tX(53),t=""),'"'+t.replace(/"/g,'""')+'"')}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1}},pr={moduleName:"CsvExport",version:tU,beans:[class extends pe{constructor(){super(...arguments),this.beanName="csvCreator"}getMergedParams(e){return Object.assign({},this.gos.get("defaultCsvExportParams"),e)}export(e){if(this.isExportSuppressed())return void tX(51);let t=()=>{let t=this.getMergedParams(e),i=new Blob(["\uFEFF",this.getData(t)],{type:"text/plain"}),o=t.fileName,r="function"==typeof o?o(iK(this.gos,{})):o;pt(this.getFileName(r),i)},{overlays:i}=this.beans;i?i.showExportOverlay(t):t()}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,t=!1){let i=t?Object.assign({},e):this.getMergedParams(e);return this.getData(i)}getDefaultFileExtension(){return"csv"}createSerializingSession(e){let{colModel:t,colNames:i,rowGroupColsSvc:o,valueSvc:r,gos:s}=this.beans,{processCellCallback:n,processHeaderCallback:l,processGroupHeaderCallback:a,processRowGroupCallback:d,suppressQuotes:h,columnSeparator:u,valueFrom:c}=e;return new po({colModel:t,colNames:i,valueSvc:r,gos:s,processCellCallback:n||void 0,processHeaderCallback:l||void 0,processGroupHeaderCallback:a||void 0,processRowGroupCallback:d||void 0,suppressQuotes:h||!1,columnSeparator:u||",",rowGroupColsSvc:o,valueFrom:c})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}}],apiFunctions:{getDataAsCsv:function(e,t){return e.csvCreator?.getDataAsCsv(t)},exportDataAsCsv:function(e,t){e.csvCreator?.exportDataAsCsv(t)}},dependsOn:[g9]},ps=class extends tu{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(e,t){let i="title",o=this.ctrl.getGui();o&&(null!=e&&(""!=e||t)?o.setAttribute(i,e):o.removeAttribute(i))}updateTooltipText(){let{getTooltipValue:e}=this.ctrl;e&&(this.tooltip=e())}createTooltipFeatureIfNeeded(){if(null==this.tooltipManager){let e=this.beans.registry.createDynamicBean("tooltipStateManager",!0,this.ctrl,()=>this.tooltip);e&&(this.tooltipManager=this.createBean(e,this.beans.context))}}attemptToShowTooltip(){this.tooltipManager?.prepareToShowTooltip()}attemptToHideTooltip(){this.tooltipManager?.hideTooltip()}setTooltipAndRefresh(e){this.tooltip=e,this.refreshTooltip()}refreshTooltip(e){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)):(this.setBrowserTooltip(e?"":null,e),this.createTooltipFeatureIfNeeded())}destroy(){this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context),super.destroy()}},pn=!1,pl=class extends tu{constructor(e,t){super(),this.tooltipCtrl=e,this.getTooltipValue=t,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}wireBeans(e){this.popupSvc=e.popupSvc}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");let e=this.tooltipCtrl.getGui();0===this.tooltipTrigger&&this.addManagedListeners(e,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),1===this.tooltipTrigger&&this.addManagedListeners(e,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(e,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(e,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(e){return Math.max(200,this.gos.get(e))}getTooltipDelay(e){return this.tooltipCtrl[`getTooltip${e}DelayOverride`]?.()??this.getGridOptionsTooltipDelay(`tooltip${e}Delay`)}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){let e=this.gos.get("tooltipTrigger");return e&&"hover"!==e?1:0}onMouseEnter(e){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),rQ()||(pn?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(e)},100):this.prepareToShowTooltip(e))}onMouseMove(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&2===this.state&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(e){let t=e.relatedTarget,i=this.tooltipCtrl.getGui(),o=this.tooltipComp?.getGui();this.isInteractingWithTooltip||i.contains(t)||this.interactionEnabled&&o?.contains(t)||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(e){if(0!=this.state||pn)return;let t=0;e&&(t=this.isLastTooltipHiddenRecently()?this.getTooltipDelay("SwitchShow"):this.getTooltipDelay("Show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.state=1}isLastTooltipHiddenRecently(){return Date.now()-f<1e3}setToDoNothing(e){e||2!==this.state||this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.clearEventHandlers(),this.onDocumentKeyDownCallback&&(this.onDocumentKeyDownCallback(),this.onDocumentKeyDownCallback=void 0),this.clearTimeouts(),this.state=0,this.lastMouseEvent=null}showTooltip(){let e=this.getTooltipValue(),t=this.tooltipCtrl;if(!F(e)||t.shouldDisplayTooltip&&!t.shouldDisplayTooltip())return void this.setToDoNothing();let i=this.gos.addCommon({location:t.getLocation?.()??"UNKNOWN",value:e,hideTooltipCallback:()=>this.hideTooltip(!0),...t.getAdditionalParams?.()});this.state=2,this.tooltipInstanceCount++;let o=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.createTooltipComp(i,o)}hideTooltip(e){(e||!this.isInteractingWithTooltip)&&(this.tooltipComp&&(this.destroyTooltipComp(),f=Date.now()),this.eventSvc.dispatchEvent({type:"tooltipHide",parentGui:this.tooltipCtrl.getGui()}),e&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(e,t){if(2!==this.state||this.tooltipInstanceCount!==e)return void this.destroyBean(t);let i=t.getGui();this.tooltipComp=t,i.classList.contains("ag-tooltip")||i.classList.add("ag-tooltip-custom"),0===this.tooltipTrigger&&i.classList.add("ag-tooltip-animate"),this.interactionEnabled&&i.classList.add("ag-tooltip-interactive");let o=this.getLocaleTextFunc(),r=this.popupSvc?.addPopup({eChild:i,ariaLabel:o("ariaLabelTooltip","Tooltip")});if(r&&(this.tooltipPopupDestroyFunc=r.hideFunc),this.positionTooltip(),1===this.tooltipTrigger){let e=()=>this.setToDoNothing();[this.onBodyScrollEventCallback]=this.addManagedEventListeners({bodyScroll:e}),this.setEventHandlers(e)}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(i,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(N(this.beans),{keydown:e=>{i.contains(e?.target)||this.onKeyDown()}}),1===this.tooltipTrigger&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(i,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:i,parentGui:this.tooltipCtrl.getGui()}),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,this.lockService())}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}isTooltipFocused(){let e=this.tooltipComp?.getGui(),t=O(this.beans);return!!e&&e.contains(t)}onTooltipFocusOut(e){let t=this.tooltipCtrl.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,t.contains(e.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){let e={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupSvc?.positionPopupUnderMouseEvent({...e,mouseEvent:this.lastMouseEvent}):this.popupSvc?.positionPopupByComponent({...e,eventSource:this.tooltipCtrl.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5})}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");let e=this.tooltipPopupDestroyFunc,t=this.tooltipComp,i=1e3*(0===this.tooltipTrigger);window.setTimeout(()=>{e(),this.destroyBean(t)},i),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){for(let e of[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener])e&&e();this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){pn=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},100)}unlockService(){pn=!1,this.clearInteractiveTimeout()}startHideTimeout(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("Hide"))}clearShowTimeout(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)}clearHideTimeout(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)}clearInteractiveTimeout(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}},pa=class extends ps{constructor(e,t,i){super(e,i),this.highlightTracker=t,this.onHighlight=this.onHighlight.bind(this)}
47postConstruct(){super.postConstruct(),this.wireHighlightListeners()}wireHighlightListeners(){this.addManagedPropertyListener("tooltipTrigger",({currentValue:e})=>{this.setTooltipMode(e)}),this.setTooltipMode(this.gos.get("tooltipTrigger")),this.highlightTracker.addEventListener("itemHighlighted",this.onHighlight)}onHighlight(e){1===this.tooltipMode&&(e.highlighted?this.attemptToShowTooltip():this.attemptToHideTooltip())}setTooltipMode(e="focus"){this.tooltipMode=+("focus"===e)}destroy(){this.highlightTracker.removeEventListener("itemHighlighted",this.onHighlight),super.destroy()}},pd=class extends s6{constructor(){super({tag:"div",cls:"ag-tooltip"})}init(e){let{value:t}=e,i=this.getGui();i.textContent=L(t);let o=e.location.replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase();i.classList.add(`ag-${o}-tooltip`)}},ph=0,pu=class extends tu{constructor(){super(...arguments),this.beanName="popupSvc",this.popupList=[]}postConstruct(){this.addManagedEventListeners({stylesChanged:this.handleThemeChange.bind(this)})}getPopupParent(){let e=this.gos.get("popupParent");return e||this.getDefaultPopupParent()}positionPopupUnderMouseEvent(e){let{ePopup:t,nudgeX:i,nudgeY:o,skipObserver:r}=e;this.positionPopup({ePopup:t,nudgeX:i,nudgeY:o,keepWithinBounds:!0,skipObserver:r,updatePosition:()=>this.calculatePointerAlign(e.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,e.type,e.ePopup,null,e.mouseEvent)})}calculatePointerAlign(e){let t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}positionPopupByComponent(e){let{ePopup:t,nudgeX:i,nudgeY:o,keepWithinBounds:r,eventSource:s,alignSide:n="left",position:l="over",type:a}=e,d=s.getBoundingClientRect(),h=this.getParentRect();this.setAlignedTo(s,t);let u=()=>{let i,r=d.left-h.left;return"right"===n&&(r-=t.offsetWidth-d.width),"over"===l?(i=d.top-h.top,this.setAlignedStyles(t,"over")):(this.setAlignedStyles(t,"under"),i="under"===this.shouldRenderUnderOrAbove(t,d,h,e.nudgeY||0)?d.top-h.top+d.height:d.top-t.offsetHeight-2*(o||0)-h.top),{x:r,y:i}};this.positionPopup({ePopup:t,nudgeX:i,nudgeY:o,keepWithinBounds:r,updatePosition:u,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,a,t,s,null)})}positionPopupForMenu(e){let{eventSource:t,ePopup:i,event:o}=e,r=t.getBoundingClientRect(),s=this.getParentRect();this.setAlignedTo(t,i);let n=!1,l=()=>{let e,t=this.keepXYWithinBounds(i,r.top-s.top,0),o=i.clientWidth>0?i.clientWidth:200;n||(i.style.minWidth=`${o}px`,n=!0);let l=s.right-s.left-o;return this.gos.get("enableRtl")?((e=d())<0&&(e=a(),this.setAlignedStyles(i,"left")),e>l&&(e=0,this.setAlignedStyles(i,"right"))):((e=a())>l&&(e=d(),this.setAlignedStyles(i,"right")),e<0&&(e=0,this.setAlignedStyles(i,"left"))),{x:e,y:t};function a(){return r.right-s.left-2}function d(){return r.left-s.left-o}};this.positionPopup({ePopup:i,keepWithinBounds:!0,updatePosition:l,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,"subMenu",i,t,o instanceof MouseEvent?o:void 0)})}shouldRenderUnderOrAbove(e,t,i,o){let r=i.bottom-t.bottom,s=t.top-i.top,n=e.offsetHeight+o;return r>n?"under":s>n||s>r?"above":"under"}setAlignedStyles(e,t){let i=this.getPopupIndex(e);if(-1===i)return;let{alignedToElement:o}=this.popupList[i];if(o){for(let t of["right","left","over","above","under"])o.classList.remove(`ag-has-popup-positioned-${t}`),e.classList.remove(`ag-popup-positioned-${t}`);t&&(o.classList.add(`ag-has-popup-positioned-${t}`),e.classList.add(`ag-popup-positioned-${t}`))}}setAlignedTo(e,t){let i=this.getPopupIndex(t);-1!==i&&(this.popupList[i].alignedToElement=e)}positionPopup(e){let{ePopup:t,keepWithinBounds:i,nudgeX:o,nudgeY:r,skipObserver:s,updatePosition:n}=e,l={width:0,height:0},a=(s=!1)=>{let{x:a,y:d}=n();(!s||t.clientWidth!==l.width||t.clientHeight!==l.height)&&(l.width=t.clientWidth,l.height=t.clientHeight,o&&(a+=o),r&&(d+=r),i&&(a=this.keepXYWithinBounds(t,a,1),d=this.keepXYWithinBounds(t,d,0)),t.style.left=`${a}px`,t.style.top=`${d}px`,e.postProcessCallback&&e.postProcessCallback())};if(a(),!s){let e=eX(this.beans,t,()=>a(!0));setTimeout(()=>e(),200)}}getParentRect(){let e=N(this.beans),t=this.getPopupParent();return t===e.body?t=e.documentElement:"static"===getComputedStyle(t).position&&(t=t.offsetParent),eI(t)}
47keepXYWithinBounds(e,t,i){let o=0===i,r=o?"top":"left",s=N(this.beans),n=s.documentElement,l=this.getPopupParent(),a=e.getBoundingClientRect(),d=l.getBoundingClientRect(),h=s.documentElement.getBoundingClientRect(),u=l===s.body,c=Math.ceil(a[o?"height":"width"]),g=u?(o?eT:eA)(n)+n[o?"scrollTop":"scrollLeft"]:l[o?"clientHeight":"clientWidth"];return u&&(g-=Math.abs(h[r]-d[r])),Math.min(Math.max(t,0),Math.max(g-c,0))}addPopup(e){let{eChild:t,ariaLabel:i,ariaOwns:o,alwaysOnTop:r,positionCallback:s,anchorToElement:n}=e,l=this.getPopupIndex(t);if(-1!==l)return{hideFunc:this.popupList[l].hideFunc};this.initialisePopupPosition(t);let a=this.createPopupWrapper(t,!!r,i,o),d=this.addEventListenersToPopup({...e,wrapperEl:a});return s&&s(),this.addPopupToPopupList(t,a,d,n),{hideFunc:d}}initialisePopupPosition(e){let t=this.getPopupParent().getBoundingClientRect();F(e.style.top)||(e.style.top=`${-1*t.top}px`),F(e.style.left)||(e.style.left=`${-1*t.left}px`)}createPopupWrapper(e,t,i,o){let r=this.getPopupParent(),{environment:s,gos:n}=this.beans,l=e2({tag:"div"});return(s.applyThemeClasses(l),l.classList.add("ag-popup"),e.classList.add(n.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),e.hasAttribute("role")||K(e,"dialog"),i)?Y(e,i):o&&(e.id||(e.id=`popup-component-${ph}`),_(o,"owns",e.id)),l.appendChild(e),r.appendChild(l),t?this.setAlwaysOnTop(e,!0):this.bringPopupToFront(e),l}addEventListenersToPopup(e){let t=this.beans,i=N(t),{wrapperEl:o,eChild:r,closedCallback:s,afterGuiAttached:n,closeOnEsc:l,modal:a,ariaOwns:d}=e,h=!1,u=e=>{o.contains(O(t))&&(e.key!==oK.ESCAPE||this.isStopPropagation(e)||p({keyboardEvent:e}))},c=e=>p({mouseEvent:e}),g=e=>p({touchEvent:e}),p=(e={})=>{let{mouseEvent:t,touchEvent:n,keyboardEvent:l,forceHide:a}=e;!a&&(this.isEventFromCurrentPopup({mouseEvent:t,touchEvent:n},r)||h)||(h=!0,o.remove(),i.removeEventListener("keydown",u),i.removeEventListener("mousedown",c),i.removeEventListener("touchstart",g),i.removeEventListener("contextmenu",c),this.eventSvc.removeListener("dragStarted",c),s&&s(t||n||l),this.removePopupFromPopupList(r,d))};return n&&n({hidePopup:p}),window.setTimeout(()=>{l&&i.addEventListener("keydown",u),a&&(i.addEventListener("mousedown",c),this.eventSvc.addListener("dragStarted",c),i.addEventListener("touchstart",g),i.addEventListener("contextmenu",c))},0),p}addPopupToPopupList(e,t,i,o){this.popupList.push({element:e,wrapper:t,hideFunc:i,instanceId:ph,isAnchored:!!o}),o&&this.setPopupPositionRelatedToElement(e,o),ph+=1}getPopupIndex(e){return this.popupList.findIndex(t=>t.element===e)}setPopupPositionRelatedToElement(e,t){let i=this.getPopupIndex(e);if(-1===i)return;let o=this.popupList[i];if(o.stopAnchoringPromise&&o.stopAnchoringPromise.then(e=>e&&e()),o.stopAnchoringPromise=void 0,o.isAnchored=!1,!t)return;let r=this.keepPopupPositionedRelativeTo({element:t,ePopup:e,hidePopup:o.hideFunc});return o.stopAnchoringPromise=r,o.isAnchored=!0,r}removePopupFromPopupList(e,t){this.setAlignedStyles(e,null),this.setPopupPositionRelatedToElement(e,null),t&&_(t,"owns",null),this.popupList=this.popupList.filter(t=>t.element!==e)}keepPopupPositionedRelativeTo(e){let t=this.getPopupParent(),i=t.getBoundingClientRect(),{element:o,ePopup:r}=e,s=o.getBoundingClientRect(),n=e=>Number.parseInt(e.substring(0,e.length-1),10),l=(e,t)=>{let o=i[e]-s[e],l=n(r.style[e]);return{initialDiff:o,lastDiff:o,initial:l,last:l,direction:t}},a=l("top",0),d=l("left",1),h=this.beans.frameworkOverrides;return new oQ(i=>{h.wrapIncoming(()=>{var s;(s=()=>{let i=t.getBoundingClientRect(),s=o.getBoundingClientRect();if(0==s.top&&0==s.left&&0==s.height&&0==s.width)return void e.hidePopup();let l=(e,t)=>{let o=n(r.style[t]);e.last!==o&&(e.initial=o,e.last=o);let l=i[t]-s[t];if(l!=e.lastDiff){let i=this.keepXYWithinBounds(r,e.initial+e.initialDiff-l,e.direction);r.style[t]=`${i}px`,e.last=i}e.lastDiff=l};l(a,"top"),l(d,"left")},new oQ(e=>{e(window.setInterval(s,200))})).then(e=>{i(()=>{null!=e&&window.clearInterval(e)})})},"popupPositioning")})}isEventFromCurrentPopup(e,t){let{mouseEvent:i,touchEvent:o}=e,r=i||o;if(!r)return!1;let s=this.getPopupIndex(t);if(-1===s)return!1;for(let e=s;e<this.popupList.length;e++)if(e7(this.popupList[e].element,r))return!0;return this.isElementWithinCustomPopup(r.target)}isElementWithinCustomPopup(e){let t=N(this.beans);for(;e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||null===e.parentElement)return!0;e=e.parentElement}return!1}getWrapper(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null}setAlwaysOnTop(e,t){let i=this.getWrapper(e);i&&(i.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(i))}bringPopupToFront(e){let t=this.getPopupParent(),i=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),o=i.length,r=this.getWrapper(e);if(!r||o<=1||!t.contains(e))return;let s=[],n=[];for(let e of i)e!==r&&(e.classList.contains("ag-always-on-top")?n.push(e):s.push(e));let l=[],a=n.length,d=r.classList.contains("ag-always-on-top")||!a?[...s,...n,r]:[...s,r,...n];for(let e=0;e<=o;e++){let o=d[e];if(i[e]!==d[e]&&o!==r){for(let e of o.querySelectorAll("div"))0!==e.scrollTop&&l.push([e,e.scrollTop]);0===e?t.prepend(o):d[e-1].after(o)}}for(;l.length;){let e=l.pop();e[0].scrollTop=e[1]}}handleThemeChange(e){if(e.themeChanged){let e=this.beans.environment;for(let t of this.popupList)e.applyThemeClasses(t.wrapper)}}},pc={moduleName:"Popup",version:tU,beans:[class extends pu{getDefaultPopupParent(){return this.beans.ctrlsSvc.get("gridCtrl").getGui()}callPostProcessPopup(e,t,i,o,r){let s=this.gos.getCallback("postProcessPopup");if(s){let{column:n,rowNode:l}=e??{};s({column:n,rowNode:l,ePopup:i,type:t,eventSource:o,mouseEvent:r})}}getActivePopups(){return this.popupList.map(e=>e.element)}hasAnchoredPopup(){return this.popupList.some(e=>e.isAnchored)}isStopPropagation(e){return so(e)}}]};function pg(e){return"whenTruncated"===e.get("tooltipShowMode")}function pp(e,t){return pg(e)?e_(t):void 0}var pm=(e,t,i)=>{let{editModelSvc:o}=e,r=o?.getCellValidationModel()?.getCellValidation(t)?.errorMessages,s=o?.getRowValidationModel().getRowValidation(t)?.errorMessages,n=r||s;return n?.length?n.join(i("tooltipValidationErrorSeparator",". ")):void 0},pf={moduleName:"Tooltip",version:tU,beans:[class extends tc{constructor(){super(...arguments),this.beanName="tooltipSvc"}setupHeaderTooltip(e,t,i,o){e&&t.destroyBean(e);let r=this.gos,s=pg(r),{column:n,eGui:l}=t,a=n.getColDef();o||!s||a.headerComponent||(o=e_(()=>l.querySelector(".ag-header-cell-text")));let d="header",h=this.beans.colNames.getDisplayNameForColumn(n,"header",!0),u=i??h,c={getGui:()=>l,getLocation:()=>d,getTooltipValue:()=>i??a?.headerTooltipValueGetter?.(iK(r,{location:d,colDef:a,column:n,value:u,valueFormatted:h}
47))??a?.headerTooltip,shouldDisplayTooltip:o,getAdditionalParams:()=>({column:n,colDef:n.getColDef()})},g=this.createTooltipFeature(c);return g&&(g=t.createBean(g),t.setRefreshFunction("tooltip",()=>g.refreshTooltip())),g}setupHeaderGroupTooltip(e,t,i,o){e&&t.destroyBean(e);let r=this.gos,s=pg(r),{column:n,eGui:l}=t,a=n.getColGroupDef();o||!s||a?.headerGroupComponent||(o=e_(()=>l.querySelector(".ag-header-group-text")));let d="headerGroup",h=this.beans.colNames.getDisplayNameForColumnGroup(n,"header"),u=i??h,c={getGui:()=>l,getLocation:()=>d,getTooltipValue:()=>i??a?.headerTooltipValueGetter?.(iK(r,{location:d,colDef:a,column:n,value:u,valueFormatted:h}))??a?.headerTooltip,shouldDisplayTooltip:o,getAdditionalParams:()=>{let e={column:n};return a&&(e.colDef=a),e}},g=this.createTooltipFeature(c);return g?t.createBean(g):g}enableCellTooltipFeature(e,t,i){let{beans:o}=this,{column:r,rowNode:s}=e,n=((e,t,i)=>{let{editSvc:o}=e,{column:r}=t,s=((e,t)=>{if(pg(e.gos)){if(t.isCellRenderer()){let e=t.column.getColDef();if(!(e.showRowGroup||"agGroupCellRenderer"===e.cellRenderer))return;return e_(()=>{let e=t.eGui;return e.querySelector(".ag-group-value")||e.querySelector(".ag-cell-value")||e})}return e_(()=>{let e=t.eGui;return 0===e.children.length?e:e.querySelector(".ag-cell-value")})}})(e,t),n=()=>!o?.isEditing(t)&&(!s||!!r.isTooltipEnabled()&&s());return{shouldDisplayDefault:n,shouldDisplayColumnTooltip:n,shouldDisplayCustomTooltip:i??n}})(o,e,i),l=this.getLocaleTextFunc(),a=null,d=()=>a=(({beans:e,ctrl:t,value:i,displayFunctions:o,translate:r})=>{let{editSvc:s,formula:n,gos:l}=e,{column:a,rowNode:d}=t;if(n?.active&&a.isAllowFormula()){let e=n.getFormulaError(a,d);if(e){let t,i;return{value:(t=e,i=r,"function"==typeof t.getTranslatedMessage?t.getTranslatedMessage(i):t.message),location:"cellFormula",shouldDisplay:()=>!!n?.getFormulaError(a,d)}}}if(!s?.isEditing(t)){let i=pm(e,t,r);if(i)return{value:i,location:"cellEditor",shouldDisplay:()=>!s?.isEditing(t)&&!!pm(e,t,r)}}let{shouldDisplayCustomTooltip:h,shouldDisplayColumnTooltip:u}=o;if(null!=i)return{value:i,location:"cell",shouldDisplay:h};let c=a.getColDef(),g=d.data;if(c.tooltipField&&F(g))return{value:du(g,c.tooltipField,a.isTooltipFieldContainsDots()),location:"cell",shouldDisplay:u};let p=c.tooltipValueGetter;return p?{value:p(iK(l,{location:"cell",colDef:a.getColDef(),column:a,rowIndex:t.cellPosition.rowIndex,node:d,data:d.data,value:t.value,valueFormatted:t.valueFormatted})),location:"cell",shouldDisplay:u}:null})({beans:o,ctrl:e,value:t,displayFunctions:n,translate:l});return this.createTooltipFeature({getGui:()=>e.eGui,getLocation:()=>a?.location??"cell",getTooltipValue:()=>d()?.value,shouldDisplayTooltip:()=>{let e=a??d();return!!e&&(!e.shouldDisplay||e.shouldDisplay())},getAdditionalParams:()=>({column:r,colDef:r.getColDef(),rowIndex:e.cellPosition.rowIndex,node:s,data:s.data,valueFormatted:e.valueFormatted})},o)}setupFullWidthRowTooltip(e,t,i,o){let r=this.beans,s=r.context;e&&t.destroyBean(e,s);let n=this.createTooltipFeature({getGui:()=>t.getFullWidthElement(),getTooltipValue:()=>i,getLocation:()=>
47"fullWidthRow",shouldDisplayTooltip:o},r);if(n)return t.createBean(n,s)}setupCellEditorTooltip(e,t){let{beans:i}=this,{context:o}=i,r=t.getValidationElement?.(!0)||!t.isPopup?.()&&e.eGui;if(!r)return;let s=this.createTooltipFeature({getGui:()=>r,getTooltipValue:()=>pm(i,e,this.getLocaleTextFunc()),getLocation:()=>"cellEditor",shouldDisplayTooltip:()=>{let{editModelSvc:e}=i,t=e?.getRowValidationModel()?.getRowValidationMap(),o=e?.getCellValidationModel()?.getCellValidationMap(),r=!!t&&t.size>0,s=!!o&&o.size>0;return r||s}},i);if(s)return e.createBean(s,o)}initCol(e){let{colDef:t}=e;e.tooltipEnabled=F(t.tooltipField)||F(t.tooltipValueGetter)||F(t.tooltipComponent)}createTooltipFeature(e,t){return this.beans.registry.createDynamicBean("tooltipFeature",!1,e,t)}}],dynamicBeans:{tooltipFeature:ps,highlightTooltipFeature:pa,tooltipStateManager:class extends pl{createTooltipComp(e,t){var i;let o=(i=this.beans.userCompFactory,i.getCompDetails(e.colDef,rp,"agTooltipComponent",e,!0));o?.newAgStackInstance().then(t)}setEventHandlers(e){[this.onColumnMovedEventCallback]=this.addManagedEventListeners({columnMoved:e})}clearEventHandlers(){this.onColumnMovedEventCallback?.(),this.onColumnMovedEventCallback=void 0}}},userComponents:{agTooltipComponent:pd},dependsOn:[pc],css:[".ag-tooltip{background-color:var(--ag-tooltip-background-color);border:var(--ag-tooltip-border);border-radius:var(--ag-border-radius);color:var(--ag-tooltip-text-color);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;white-space:normal;z-index:99999;&:where(.ag-cell-editor-tooltip),&:where(.ag-cell-formula-tooltip){background-color:var(--ag-tooltip-error-background-color);border:var(--ag-tooltip-error-border);color:var(--ag-tooltip-error-text-color);font-weight:500}}.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip-custom:where(:not(.ag-tooltip-interactive)),.ag-tooltip:where(:not(.ag-tooltip-interactive)){pointer-events:none}.ag-tooltip-animate{transition:opacity 1s;&:where(.ag-tooltip-hiding){opacity:0}}"]},pC=class{constructor(e){this.cellValueChanges=e}},pv=class extends pC{constructor(e,t,i,o){super(e),this.initialRange=t,this.finalRange=i,this.ranges=o}},pw=class{constructor(e){this.actionStack=[],this.maxStackSize=e||10,this.actionStack=Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},pb=class extends tc{constructor(){super(...arguments),this.beanName="undoRedo",this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.batchEditing=!1,this.bulkEditing=!1,this.onCellValueChanged=e=>{let t={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},i=null!==this.activeCellEdit&&sd(this.activeCellEdit,t),o=null!==this.activeRowEdit&&su(this.activeRowEdit,t);if(!(i||o||this.isPasting||this.isRangeInAction))return;let{rowPinned:r,rowIndex:s,column:n,oldValue:l,value:a}=e,d={rowPinned:r,rowIndex:s,columnId:n.getColId(),newValue:a,oldValue:l};this.cellValueChanges.push(d)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}postConstruct(){let{gos:e,ctrlsSvc:t}=this.beans;if(!e.get("undoRedoCellEditing"))return;let i=e.get("undoRedoCellEditingLimit");if(i<=0)return;this.undoStack=new pw(i),this.redoStack=new pw(i),this.addListeners();let o=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:e=>{e.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:o,newColumnsLoaded:o,columnGroupOpened:o,columnRowGroupChanged:o,columnMoved:o,columnPinned:o,columnVisible:o,rowDragEnd:o}),t.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl})}getCurrentUndoStackSize(){return this.undoStack?.getCurrentStackSize()??0}getCurrentRedoStackSize(){return this.redoStack?.getCurrentStackSize()??0}undo(e){let{eventSvc:t,undoStack:i,redoStack:o}=this;t.dispatchEvent({type:"undoStarted",source:e});let r=this.undoRedo(i,o,"initialRange","oldValue","undo");t.dispatchEvent({type:"undoEnded",source:e,operationPerformed:r})}redo(e){let{eventSvc:t,undoStack:i,redoStack:o}=this;t.dispatchEvent({type:"redoStarted",source:e});let r=this.undoRedo(o,i,"finalRange","newValue","redo");t.dispatchEvent({type:"redoEnded",source:e,operationPerformed:r})}undoRedo(e,t,i,o,r){if(!e)return!1;let s=e.pop();return!!s?.cellValueChanges&&(this.processAction(s,e=>e[o],r),s instanceof pv?this.processRange(s.ranges||[s[i]]):this.processCell(s.cellValueChanges),t.push(s),!0)}processAction(e,t,i){for(let o of e.cellValueChanges){let{rowIndex:e,rowPinned:r,columnId:s}=o,n={rowIndex:e,rowPinned:r},l=sp(this.beans,n);l.displayed&&l.setDataValue(s,t(o),i)}}processRange(e){let t,i=this.beans.rangeSvc;i.removeAllCellRanges(!0),e.forEach((o,r)=>
47{if(!o)return;let s=o.startRow,n=o.endRow;r===e.length-1&&(t={rowPinned:s.rowPinned,rowIndex:s.rowIndex,columnId:o.startColumn.getColId()},this.setLastFocusedCell(t));let l={rowStartIndex:s.rowIndex,rowStartPinned:s.rowPinned,rowEndIndex:n.rowIndex,rowEndPinned:n.rowPinned,columnStart:o.startColumn,columns:o.columns};i.addCellRange(l)})}processCell(e){let t=e[0],{rowIndex:i,rowPinned:o}=t,r=sp(this.beans,{rowIndex:i,rowPinned:o}),s={rowPinned:t.rowPinned,rowIndex:r.rowIndex,columnId:t.columnId};this.setLastFocusedCell(s)}setLastFocusedCell(e){let{rowIndex:t,columnId:i,rowPinned:o}=e,{colModel:r,focusSvc:s,rangeSvc:n}=this.beans,l=r.getCol(i);if(!l)return;let{scrollFeature:a}=this.gridBodyCtrl;a.ensureIndexVisible(t),a.ensureColumnVisible(l);let d={rowIndex:t,column:l,rowPinned:o};s.setFocusedCell({...d,forceBrowserFocus:!0}),n?.setRangeToCell(d)}addListeners(){this.addManagedEventListeners({rowEditingStarted:e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}},rowEditingStopped:()=>{let e=new pC(this.cellValueChanges);this.pushActionsToUndoStack(e),this.activeRowEdit=null},cellEditingStarted:e=>{this.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}},cellEditingStopped:e=>{if(this.activeCellEdit=null,e.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){let e=new pC(this.cellValueChanges);this.pushActionsToUndoStack(e)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{let e=new pC(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:e=>{let t=new pv(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(t),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let e,{rangeSvc:t,gos:i}=this.beans;e=t&&ik(i)?new pv(this.cellValueChanges,void 0,void 0,[...t.getCellRanges()]):new pC(this.cellValueChanges),this.pushActionsToUndoStack(e),this.isRangeInAction=!1},batchEditingStarted:()=>this.startBigChange("batchEditing"),batchEditingStopped:({changes:e})=>this.stopBigChange("batchEditing",e),bulkEditingStarted:()=>this.startBigChange("bulkEditing"),bulkEditingStopped:({changes:e})=>this.stopBigChange("bulkEditing",e)})}startBigChange(e){this.updateBigChange(e,!0)}updateBigChange(e,t){"bulkEditing"===e?this.bulkEditing=t:this.batchEditing=t}stopBigChange(e,t){if("bulkEditing"===e&&!this.bulkEditing||"batchEditing"===e&&!this.batchEditing||(this.updateBigChange(e,!1),t?.length===0))return;let i=new pC(t??[]);this.pushActionsToUndoStack(i),this.cellValueChanges=[]}pushActionsToUndoStack(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()}},py={tag:"div",cls:"ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit",children:[{tag:"ag-checkbox",ref:"eEditor",role:"presentation"}]},pS=class extends s4{constructor(){super(py,[nd]),this.eEditor=oZ}initialiseEditor(e){let t=e.value??void 0,i=this.eEditor;i.setValue(t),i.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(t),this.addManagedListeners(i,{fieldValueChanged:e=>this.setAriaLabel(e.selected)})}getValue(){return this.eEditor.getValue()}focusIn(){this.eEditor.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){let t=this.getLocaleTextFunc(),i=ew(t,e),o=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eEditor.setInputAriaLabel(`${o} (${i})`)}getValidationElement(e){return e?this.params.eGridCell:this.eEditor.getInputElement()}getValidationErrors(){let{params:e}=this,{getValidationErrors:t}=e,i=this.getValue();return t?t({value:i,internalErrors:null,cellEditorParams:e}):null}},pR=class extends nl{constructor(e,t="ag-text-field",i="text"){super(e,t,i)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){let i=this.eInput;return i.value!==e&&(i.value=F(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}setCustomValidity(e){let t=this.eInput,i=e.length>0;t.setCustomValidity(e),i&&t.reportValidity(),J(t,i)}preventDisallowedCharacters(){let e=RegExp(`[${this.config.allowedCharPattern}]`);this.addManagedListeners(this.eInput,{keydown:t=>{ld(t)&&t.key&&!e.test(t.key)&&t.preventDefault()},paste:t=>{let i=t.clipboardData?.getData("text");i?.split("").some(t=>!e.test(t))&&t.preventDefault()}})}},pE={selector:"AG-INPUT-TEXT-FIELD",component:pR},px=class extends pR{constructor(e){super(e,"ag-date-field","date")}
47postConstruct(){super.postConstruct();let e=rK();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){O(this.beans)===this.eInput&&e.preventDefault()}setMin(e){let t=e instanceof Date?dr(e??null,!!this.includeTime)??void 0:e;return this.min===t||(this.min=t,eZ(this.eInput,"min",t)),this}setMax(e){let t=e instanceof Date?dr(e??null,!!this.includeTime)??void 0:e;return this.max===t||(this.max=t,eZ(this.eInput,"max",t)),this}setStep(e){return this.step===e||(this.step=e,eZ(this.eInput,"step",e)),this}setIncludeTime(e){return this.includeTime===e||(this.includeTime=e,super.setInputType(e?"datetime-local":"date"),e&&this.setStep(1)),this}getDate(){if(this.eInput.validity.valid)return dh(this.getValue())??void 0}setDate(e,t){this.setValue(dr(e??null,this.includeTime),t)}},pF={selector:"AG-INPUT-DATE-FIELD",component:px},pP=class extends s4{constructor(e){super(),this.cellEditorInput=e,this.eEditor=oZ}initialiseEditor(e){let t,{cellEditorInput:i}=this;this.setTemplate({tag:"div",cls:"ag-cell-edit-wrapper",children:[i.getTemplate()]},i.getAgComponents());let{eEditor:o}=this,{cellStartedEdit:r,eventKey:s,suppressPreventDefault:n}=e;o.getInputElement().setAttribute("title",""),i.init(o,e);let l=!0;r?(this.focusAfterAttached=!0,s===oK.BACKSPACE||s===oK.DELETE?t="":s&&1===s.length?n?l=!1:t=s:(t=i.getStartValue(),s!==oK.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=i.getStartValue()),l&&null!=t&&o.setStartValue(t),this.addGuiEventListener("keydown",e=>{let{key:t}=e;(t===oK.PAGE_UP||t===oK.PAGE_DOWN)&&e.preventDefault()})}afterGuiAttached(){let e=this.getLocaleTextFunc(),t=this.eEditor;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;rK()||t.getFocusableElement().focus();let i=t.getInputElement();this.highlightAllOnFocus?i.select():this.cellEditorInput.setCaret?.()}focusIn(){let{eEditor:e}=this,t=e.getFocusableElement(),i=e.getInputElement();t.focus(),i.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){return this.cellEditorInput.getValidationErrors()}},pD={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},pM=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return pD}getAgComponents(){return[pF]}init(e,t){this.eEditor=e,this.params=t;let{min:i,max:o,step:r,colDef:s}=t;null!=i&&e.setMin(i),null!=o&&e.setMax(o),null!=r&&e.setStep(r),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(s.cellDataType),null!=this.includeTime&&e.setIncludeTime(this.includeTime)}getValidationErrors(){let e=this.eEditor.getInputElement().valueAsDate,{params:t}=this,{min:i,max:o,getValidationErrors:r}=t,s=[],n=this.getLocaleTextFunc();if(e instanceof Date&&!isNaN(e.getTime())){if(i){let t=i instanceof Date?i:new Date(i);if(e<t){let e=t.toLocaleDateString();s.push(n("minDateValidation",`Date must be after ${e}`,[e]))}}if(o){let t=o instanceof Date?o:new Date(o);if(e>t){let e=t.toLocaleDateString();s.push(n("maxDateValidation",`Date must be before ${e}`,[e]))}}}return(s.length||(s=null),r)?r({value:e,cellEditorParams:t,internalErrors:s}):s}getValue(){let{eEditor:e,params:t}=this,i=e.getDate();return F(i)||F(t.value)?i??null:t.value}getStartValue(){let{value:e}=this.params;if(e instanceof Date)return dr(e,this.includeTime??!1)}},pk={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},pT=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return pk}getAgComponents(){return[pF]}init(e,t){this.eEditor=e,this.params=t;let{min:i,max:o,step:r,colDef:s}=t;null!=i&&e.setMin(i),null!=o&&e.setMax(o),null!=r&&e.setStep(r),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(s.cellDataType),null!=this.includeTime&&e.setIncludeTime(this.includeTime)}getValidationErrors(){let{eEditor:e,params:t}=this,i=e.getInputElement().value,o=this.formatDate(this.parseDate(i??void 0)),{min:r,max:s,getValidationErrors:n}=t,l=[];if(o){let e=new Date(o),t=this.getLocaleTextFunc();if(r){let i=new Date(r);if(e<i){let e=i.toLocaleDateString();l.push(t("minDateValidation",`Date must be after ${e}`,[e]))}}if(s){let i=new Date(s);if(e>i){let e=i.toLocaleDateString();l.push(t("maxDateValidation",`Date must be before ${e}`,[e]))}}}return(l.length||(l=null),n)?n({value:this.getValue(),cellEditorParams:t,internalErrors:l}):l}getValue(){let{params:e,eEditor:t}=this,i=this.formatDate(t.getDate());return F(i)||F(e.value)?e.parseValue(i??""):e.value}getStartValue(){return dr(this.parseDate(this.params.value??void 0)??null,this.includeTime??!1)}parseDate(e){let t=this.getDataTypeService();return t?t.getDateParserFunction(this.params.column)(e):dh(e)??void 0}formatDate(e){let t=this.getDataTypeService();return t?t.getDateFormatterFunction(this.params.column)(e):dr(e??null,this.includeTime??!1)??void 0}},pA=class extends nl{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){let i=super.setValue(e,t);return this.eInput.value=e,i}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},pI={selector:"AG-INPUT-TEXT-AREA",component:pA},pL={tag:"div",cls:"ag-large-text",children:[{tag:"ag-input-text-area",ref:"eEditor",cls:"ag-large-text-input"}]},pB=class extends s4{constructor(){super(pL,[pI]),this.eEditor=oZ}initialiseEditor(e){let t,{eEditor:i}=this,{cellStartedEdit:o,eventKey:r,maxLength:s,cols:n,rows:l}=e;this.focusAfterAttached=o,i.getInputElement().setAttribute("title",""),i.setMaxLength(s||200).setCols(n||60).setRows(l||10),o?(this.focusAfterAttached=!0,r===oK.BACKSPACE||r===oK.DELETE?t="":r&&1===r.length?t=r:(t=this.getStartValue(e),r!==oK.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),null!=t&&i.setValue(t,!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}getStartValue(e){let{value:t}=e;return t?.toString()??t}onKeyDown(e){let t=e.key;(t===oK.LEFT||t===oK.UP||t===oK.RIGHT||t===oK.DOWN||e.shiftKey&&t===oK.ENTER)&&e.stopPropagation()}afterGuiAttached(){let{eEditor:e,focusAfterAttached:t,highlightAllOnFocus:i}=this,o=this.getLocaleTextFunc();e.setInputAriaLabel(o("ariaInputEditor","Input Editor")),t&&(e.getFocusableElement().focus(),i&&e.getInputElement().select())}getValue(){let{eEditor:e,params:t}=this,{value:i}=t,o=e.getValue();return F(o)||F(i)?t.parseValue(o):i}
47getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){let{params:e}=this,{maxLength:t,getValidationErrors:i}=e,o=this.getLocaleTextFunc(),r=this.getValue(),s=[];return("string"==typeof r&&null!=t&&r.length>t&&s.push(o("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),s.length||(s=null),i)?i({value:r,internalErrors:s,cellEditorParams:e}):s}},pH=class extends pR{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct();let e=this.eInput;this.addManagedListeners(e,{blur:()=>{let t=Number.parseFloat(e.value),i=isNaN(t)?"":this.normalizeValue(t.toString());this.value!==i&&this.setValue(i)},wheel:this.onWheel.bind(this)}),e.step="any";let{precision:t,min:i,max:o,step:r}=this.config;"number"==typeof t&&this.setPrecision(t),"number"==typeof i&&this.setMin(i),"number"==typeof o&&this.setMax(o),"number"==typeof r&&this.setStep(r)}onWheel(e){O(this.beans)===this.eInput&&e.preventDefault()}normalizeValue(e){return""===e?"":(null!=this.precision&&(e=this.adjustPrecision(e)),e)}adjustPrecision(e,t){let i=this.precision;if(null==i)return e;if(t)return Number.parseFloat(Number.parseFloat(e).toFixed(i)).toString();let o=String(e).split(".");if(o.length>1){if(o[1].length<=i)return e;else if(i>0)return`${o[0]}.${o[1].slice(0,i)}`}return o[0]}setMin(e){return this.min===e||(this.min=e,eZ(this.eInput,"min",e)),this}setMax(e){return this.max===e||(this.max=e,eZ(this.eInput,"max",e)),this}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e||(this.step=e,eZ(this.eInput,"step",e)),this}setValue(e,t){return this.setValueOrInputValue(e=>super.setValue(e,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(e=>super.setValue(e,!0),e=>{this.eInput.value=e},e)}setValueOrInputValue(e,t,i){if(F(i)){let o=this.isScientificNotation(i);if(o&&this.eInput.validity.valid)return e(i);if(!o){i=this.adjustPrecision(i);let e=this.normalizeValue(i);o=i!=e}if(o)return t(i)}return e(i)}getValue(e=!1){let t=this.eInput;if(!t.validity.valid&&!e)return;let i=t.value;return this.isScientificNotation(i)?this.adjustPrecision(i,!0):super.getValue()}isScientificNotation(e){return"string"==typeof e&&e.includes("e")}},pV={selector:"AG-INPUT-NUMBER-FIELD",component:pH},pG={tag:"ag-input-number-field",ref:"eEditor",cls:"ag-cell-editor"},pO=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return pG}getAgComponents(){return[pV]}init(e,t){this.eEditor=e,this.params=t;let{max:i,min:o,precision:r,step:s}=t;null!=i&&e.setMax(i),null!=o&&e.setMin(o),null!=r&&e.setPrecision(r),null!=s&&e.setStep(s);let n=e.getInputElement();t.preventStepping?e.addManagedElementListeners(n,{keydown:this.preventStepping}):t.showStepperButtons&&n.classList.add("ag-number-field-input-stepper")}getValidationErrors(){let{params:e}=this,{min:t,max:i,getValidationErrors:o}=e,r=this.eEditor.getInputElement().valueAsNumber,s=this.getLocaleTextFunc(),n=[];return("number"==typeof r&&(null!=t&&r<t&&n.push(s("minValueValidation",`Must be greater than or equal to ${t}.`,[String(t)])),null!=i&&r>i&&n.push(s("maxValueValidation",`Must be less than or equal to ${i}.`,[String(i)]))),n.length||(n=null),o)?o({value:r,cellEditorParams:e,internalErrors:n}):n}preventStepping(e){(e.key===oK.UP||e.key===oK.DOWN)&&e.preventDefault()}getValue(){let{eEditor:e,params:t}=this,i=e.getValue();if(!F(i)&&!F(t.value))return t.value;let o=t.parseValue(i);if(null==o)return o;if("string"==typeof o){if(""===o)return null;o=Number(o)}return isNaN(o)?null:o}getStartValue(){return this.params.value}setCaret(){rK()&&this.eEditor.getInputElement().focus({preventScroll:!0})}},pN=class extends o6{constructor(e,t,i){super(((e,t)=>({tag:"div",cls:`ag-list-item ag-${e}-list-item`,attrs:{role:"option"},children:[{tag:"span",cls:`ag-list-item-text ag-${e}-list-item-text`,ref:"eText",children:t}]}))(e,t)),this.label=t,this.value=i,this.eText=oZ}postConstruct(){this.createTooltip(),this.addEventListeners()}setHighlighted(e){let t=this.getGui();t.classList.toggle("ag-active-item",e),ep(t,e),this.dispatchLocalEvent({type:"itemHighlighted",highlighted:e})}getHeight(){return this.getGui().clientHeight}setIndex(e,t){let i=this.getGui();en(i,e),es(i,t)}createTooltip(){let e=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("highlightTooltipFeature",!1,{getTooltipValue:()=>this.label,getGui:()=>this.getGui(),getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>e$(this.eText)},this));e&&(this.tooltipFeature=e)}addEventListeners(){let e=this.getParentComponent();e&&(this.addGuiEventListener("mouseover",()=>{e.highlightItem(this)}),this.addGuiEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation(),e.setValue(this.value)}))}},pz=class extends o6{constructor(e="default"){super({tag:"div",cls:`ag-list ag-${e}-list`}),this.cssIdentifier=e,this.options=[],this.listItems=[],this.highlightedItem=null,this.registerCSS(".ag-list-item{align-items:center;display:flex;height:var(--ag-list-item-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.ag-active-item{background-color:var(--ag-row-hover-color)}}")}postConstruct(){let e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()})}handleKeyDown(e){let t=e.key;switch(t){case oK.ENTER:if(this.highlightedItem){let e=this.listItems.indexOf(this.highlightedItem);this.setValueByIndex(e)}else this.setValue(this.getValue());break;case oK.DOWN:case oK.UP:e.preventDefault(),this.navigate(t);break;case oK.PAGE_DOWN:case oK.PAGE_UP:case oK.PAGE_HOME:case oK.PAGE_END:e.preventDefault(),this.navigateToPage(t)}}addOptions(e){for(let t of e)this.addOption(t);return this}addOption(e){let{value:t,text:i}=e,o=i??t;return this.options.push({value:t,text:o}),this.renderOption(t,o),this.updateIndices(),this}clearOptions(){for(let e of(this.options=[],this.reset(!0),this.listItems))e.destroy();eH(this.getGui()),this.listItems=[],this.refreshAriaRole()}updateOptions(e){let t=this.options!==e;return t&&(this.clearOptions(),this.addOptions(e)),t}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(t),this;let i=this.options.findIndex(t=>t.value===e);if(-1!==i){let e=this.options[i];this.value=e.value,this.displayValue=e.text,this.highlightItem(this.listItems[i]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();let e=this.options.findIndex(e=>e.value===this.value);-1!==e&&this.highlightItem(this.listItems[e])}highlightItem(e){let t=e.getGui();if(!eO(t))return;this.clearHighlighted(),e.setHighlighted(!0),this.highlightedItem=e;let{scrollTop:i,clientHeight:o}=this.getGui(),{offsetTop:r,offsetHeight:s}=t;(r+s>i+o||r<i)&&t.scrollIntoView({block:"nearest"})}hideItemTooltip(){this.highlightedItem?.tooltipFeature?.attemptToHideTooltip()}destroy(){this.hideItemTooltip(),super.destroy()}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}clearHighlighted(){this.highlightedItem?.setHighlighted(!1),this.highlightedItem=null}renderOption(e,t){let i=new pN(this.cssIdentifier,t,e);i.setParentComponent(this);let o=this.createManagedBean(i);this.listItems.push(o),this.getGui().appendChild(o.getGui())}navigate(e){let t,i=e===oK.DOWN,{listItems:o,highlightedItem:r}=this;if(r){let e=o.indexOf(r)+(i?1:-1);e=Math.min(Math.max(e,0),o.length-1),t=o[e]}else t=i?o[0]:v(o);this.highlightItem(t)}navigateToPage(e){let{listItems:t,highlightedItem:i}=this;if(!i||0===t.length)return;let o=t.indexOf(i),r=this.options.length-1,s=t[0].getHeight(),n=Math.floor(this.getGui().clientHeight/s),l=-1;e===oK.PAGE_HOME?l=0:e===oK.PAGE_END?l=r:e===oK.PAGE_DOWN?l=Math.min(o+n,r):e===oK.PAGE_UP&&(l=Math.max(o-n,0)),-1!==l&&this.highlightItem(t[l])}refreshAriaRole(){K(this.getGui(),0===this.options.length?"presentation":"listbox")}updateIndices(){this.refreshAriaRole();let e=this.listItems,t=e.length;e.forEach((e,i)=>{e.setIndex(i+1,t)})}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},pW={tag:"div",cls:"ag-picker-field",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-picker-field-wrapper ag-picker-collapsed",children:[{tag:"div",ref:"eDisplayField",cls:"ag-picker-field-display"},{tag:"div",ref:"eIcon",cls:"ag-picker-field-icon",attrs:{"aria-hidden":"true"}}]}]},pU=class extends nn{constructor(e){if(super(e,e?.template||pW,e?.agComponents||[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=oZ,this.eWrapper=oZ,this.eDisplayField=oZ,this.eIcon=oZ,this.registerCSS(".ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-picker-field-wrapper{background-color:var(--ag-picker-button-background-color);border:var(--ag-picker-button-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}}.ag-picker-field-wrapper:where(.ag-picker-has-focus),.ag-picker-field-wrapper:where(:focus-within){background-color:var(--ag-picker-button-focus-background-color);border:var(--ag-picker-button-focus-border);box-shadow:var(--ag-focus-shadow);&:where(.invalid){box-shadow:var(--ag-focus-error-shadow)}}.ag-picker-field-wrapper:disabled{opacity:.5}"),this.ariaRole=e?.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;let{pickerGap:t,maxPickerHeight:i,variableWidth:o,minPickerWidth:r,maxPickerWidth:s}=e;null!=t&&(this.pickerGap=t),this.variableWidth=!!o,null!=i&&this.setPickerMaxHeight(i),null!=r&&this.setPickerMinWidth(r),null!=s&&this.setPickerMaxWidth(s)}
47postConstruct(){super.postConstruct(),this.setupAria();let e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);let t=this.getAriaElement();this.addManagedElementListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});let{pickerIcon:i,inputWidth:o}=this.config;if(i){let e=this.beans.iconSvc.createIconNoSpan(i);e&&this.eIcon.appendChild(e)}null!=o&&this.setInputWidth(o)}setupAria(){let e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),eo(e,!1),this.ariaRole&&K(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){let t=this.getFocusableElement();if(t!==this.eWrapper&&e?.target===t)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case oK.UP:case oK.DOWN:case oK.ENTER:case oK.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case oK.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker())}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());let e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){let e=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));let t=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:i,pickerAriaLabelValue:o,modalPicker:r=!0},maxPickerHeight:s,minPickerWidth:n,maxPickerWidth:l,variableWidth:a,beans:d,eWrapper:h}=this,u={modal:r,eChild:e,closeOnEsc:!0,closedCallback:()=>{let e=z(d);this.beforeHidePicker(),e&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(i,o),anchorToElement:h};e.style.position="absolute";let c=d.popupSvc,g=c.addPopup(u);a?(n&&(e.style.minWidth=n),e.style.width=eY(eA(h)),l&&(e.style.maxWidth=l)):eq(e,l??eA(h));let p=s??`${eM(c.getPopupParent())}px`;return e.style.setProperty("max-height",p),this.alignPickerToComponent(),g.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;let{pickerGap:e,config:{pickerType:t},beans:{popupSvc:i,gos:o},eWrapper:r,pickerComponent:s}=this,n=o.get("enableRtl")?"right":"left";i.positionPopupByComponent({type:t,eventSource:r,ePopup:s.getGui(),position:"under",alignSide:n,keepWithinBounds:!0,nudgeY:e})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);let e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(e){if(!this.isAlive())return;eo(this.getAriaElement(),e);let t=this.eWrapper.classList;t.toggle("ag-picker-expanded",e),t.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){this.pickerComponent?.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)}hidePicker(){this.hideCurrentPicker&&(this.hideCurrentPicker(),this.dispatchLocalEvent({type:"pickerHidden"}))}setInputWidth(e){return eq(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return"number"==typeof e&&(e=`${e}px`),this.minPickerWidth=null==e?void 0:e,this}setPickerMaxWidth(e){return"number"==typeof e&&(e=`${e}px`),this.maxPickerWidth=null==e?void 0:e,this}setPickerMaxHeight(e){return"number"==typeof e&&(e=`${e}px`),this.maxPickerHeight=null==e?void 0:e,this}destroy(){this.hidePicker(),super.destroy()}},p_=class extends pU{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.registerCSS(".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}
47.ag-select:where(:not(.ag-cell-editor,.ag-label-align-top)){min-height:var(--ag-list-item-height)}:where(.ag-select){.ag-picker-field-wrapper{cursor:default;padding-left:var(--ag-spacing);padding-right:var(--ag-spacing)}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}.ag-select-list{background-color:var(--ag-picker-list-background-color);border:var(--ag-picker-list-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow:hidden auto}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}:where(.ag-ltr) .ag-select-list-item{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-select-list-item{padding-right:var(--ag-spacing)}.ag-select-list-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}")}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:e_(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");let{options:e,value:t,placeholder:i}=this.config;null!=e&&this.addOptions(e),null!=t&&this.setValue(t,!0),i&&null==t&&(this.eDisplayField.textContent=i),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){let e=this.createBean(new pz("select"));this.listComponent=e,e.setParentComponent(this);let t=e.getAriaElement(),i=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",i),eC(this.getAriaElement(),t),e.addManagedElementListeners(e.getGui(),{mousedown:e=>{e?.preventDefault()}}),e.addManagedListeners(e,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})},fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}beforeHidePicker(){this.listComponent?.hideItemTooltip(),super.beforeHidePicker()}onKeyDown(e){let{key:t}=e;switch(t===oK.TAB&&this.hidePicker(),t){case oK.ENTER:case oK.UP:case oK.DOWN:case oK.PAGE_UP:case oK.PAGE_DOWN:case oK.PAGE_HOME:case oK.PAGE_END:e.preventDefault(),this.isPickerDisplayed?this.listComponent?.handleKeyDown(e):super.onKeyDown(e);break;case oK.ESCAPE:super.onKeyDown(e);break;case oK.SPACE:this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e)}}showPicker(){let e=this.listComponent;e&&(super.showPicker(),e.refreshHighlighted())}addOptions(e){for(let t of e)this.addOption(t);return this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){return this.listComponent?.clearOptions(),this.setValue(void 0,!0),this}updateOptions(e){return this.listComponent?.updateOptions(e)&&this.setValue(void 0,!0),this}setValue(e,t,i){let{listComponent:o,config:{placeholder:r},eDisplayField:s,tooltipFeature:n}=this;if(this.value===e||!o||(i||o.setValue(e,!0),o.getValue()===this.getValue()))return this;let l=o.getDisplayValue();return null==l&&r&&(l=r),s.textContent=l,n?.setTooltipAndRefresh(l??null),super.setValue(e,t)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},p$={selector:"AG-SELECT",component:p_},pq={tag:"div",cls:"ag-cell-edit-wrapper",children:[{tag:"ag-select",ref:"eEditor",cls:"ag-cell-editor"}]},pK=class extends s4{constructor(){super(pq,[p$]),this.eEditor=oZ,this.startedByEnter=!1}wireBeans(e){this.valueSvc=e.valueSvc}initialiseEditor(e){this.focusAfterAttached=e.cellStartedEdit;let{eEditor:t,valueSvc:i,gos:o}=this,{values:r,value:s,eventKey:n}=e;if(P(r))return void tX(58);this.startedByEnter=null!=n&&n===oK.ENTER;let l=!1;r.forEach(o=>{let r={value:o},n=i.formatValue(e.column,null,o);r.text=null!=n?n:o,t.addOption(r),l=l||s===o}),l?t.setValue(e.value,!0):e.values.length&&t.setValue(e.values[0],!0);let{valueListGap:a,valueListMaxWidth:d,valueListMaxHeight:h}=e;null!=a&&t.setPickerGap(a),null!=h&&t.setPickerMaxHeight(h),null!=d&&t.setPickerMaxWidth(d),"fullRow"!==o.get("editType")&&this.addManagedListeners(this.eEditor,{selectedItem:()=>e.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eEditor.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eEditor.showPicker()})}focusIn(){this.eEditor.getFocusableElement().focus()}getValue(){return this.eEditor.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getAriaElement()}getValidationErrors(){let{params:e}=this,{values:t,getValidationErrors:i}=e,o=this.getValue(),r=[];if(t&&!t.includes(o)){let e=this.getLocaleTextFunc();
47r.push(e("invalidSelectionValidation","Invalid selection."))}else r=null;return i?i({value:o,internalErrors:r,cellEditorParams:e}):r}},pj={tag:"ag-input-text-field",ref:"eEditor",cls:"ag-cell-editor"},pY=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return pj}getAgComponents(){return[pE]}init(e,t){this.eEditor=e,this.params=t;let i=t.maxLength;null!=i&&e.setMaxLength(i)}getValidationErrors(){let{params:e}=this,{maxLength:t,getValidationErrors:i}=e,o=this.getValue(),r=this.getLocaleTextFunc(),s=[];return(null!=t&&"string"==typeof o&&o.length>t&&s.push(r("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),s.length||(s=null),i)?i({value:o,cellEditorParams:e,internalErrors:s}):s}getValue(){let{eEditor:e,params:t}=this,i=e.getValue();return F(i)||F(t.value)?t.parseValue(i):t.value}getStartValue(){let e=this.params;return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value}setCaret(){rK()&&this.eEditor.getInputElement().focus({preventScroll:!0});let e=this.eEditor,t=e.getValue(),i=F(t)&&t.length||0;i&&e.getInputElement().setSelectionRange(i,i)}},pQ=class extends pP{constructor(){super(new pY(()=>this.getLocaleTextFunc()))}},pZ={tag:"div",cls:"ag-popup-editor",attrs:{tabindex:"-1"}},pJ=class extends s6{constructor(e){super(pZ),this.params=e}postConstruct(){ia(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){let e=this.getGui(),t=this.params,i=e=>{lC(this.gos,e,t.node,t.column,!0)||t.onKeyDown(e)};this.addManagedElementListeners(e,{keydown:i})}};function pX(e,t){return e.editModelSvc?.hasEdits(t,{withOpenEditor:!0})??!1}function p0(e,t){let i=t.column,o=t.rowNode,r=i.getColDef();if(!o)return pX(e,t);let s=r.editable;if(o.group){let s=r.groupRowEditable;if(null!=s)return!!i.isColumnFunc(o,s)||pX(e,t)}return!!i.isColumnFunc(o,s)||pX(e,t)}var p1=(e,t=!1)=>{if(void 0!==e)return ce(e)||t&&"editing"===e.state};function p3(e,t,i=!1){return p1(e.editModelSvc?.getEdit(t),i)}var p2=(e,t,i)=>{if(e)for(let o=0,r=e.length;o<r;++o){let r=e[o];if(r.data&&(p1(t?.getEdit({rowNode:r,column:i}))||p1(t?.getEdit({rowNode:r.pinnedSibling,column:i})))||p2(r.childrenAfterGroup,t,i))return!0}};function p6(e,t){let{column:i,rowNode:o}=t;return(!e.gos.get("groupTotalRow")||!!o?.footer)&&p2(o?.childrenAfterGroup,e.editModelSvc,i)}function p4(e,{rowNode:t,column:i}){if(t=t.pinnedSibling)return p1(e.editModelSvc?.getEdit({rowNode:t,column:i}))}var p5=class extends tc{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}setComp(e){this.cellComp=e,this.applyCellStyles()}applyCellStyles(){let{cellCtrl:e,editSvc:t,beans:i}=this;if(t?.isBatchEditing()&&t.isEditing()){let t=p3(i,e)||p6(i,e)||p4(i,e);this.applyBatchingStyle(t)}else this.applyBatchingStyle(!1);let o=!!this.editModelSvc?.getCellValidationModel().hasCellValidation(this.cellCtrl);this.cellComp.toggleCss("ag-cell-editing-error",o)}applyBatchingStyle(e){this.cellComp.toggleCss("ag-cell-editing",e??!1),this.cellComp.toggleCss("ag-cell-batch-edit",(e&&this.editSvc?.isBatchEditing())??!1)}},p8=class extends tc{constructor(e,t){super(),this.rowCtrl=e,this.beans=t,this.gos=t.gos,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}applyRowStyles(){let{rowCtrl:e,editModelSvc:t,beans:i}=this,o=e.rowNode,r=t?.getEditRow(o),s=this.editModelSvc?.getRowValidationModel().hasRowValidation({rowNode:o});if(!r&&o.pinnedSibling&&(o=o.pinnedSibling,r=t?.getEditRow(o)),r){let e=Array.from(r.keys()).some(e=>{let t={rowNode:o,column:e};return p3(i,t,!0)||p6(i,t)||p4(i,t)});this.applyStyle(s,e);return}this.applyStyle(s)}applyStyle(e=!1,t=!1){let i=!!this.editSvc?.isBatchEditing(),o="fullRow"===this.gos.get("editType");this.rowCtrl?.forEachGui(void 0,({rowComp:r})=>{r.toggleCss("ag-row-editing",o&&t),r.toggleCss("ag-row-batch-edit",o&&t&&i),r.toggleCss("ag-row-inline-editing",t),r.toggleCss("ag-row-not-inline-editing",!t),r.toggleCss("ag-row-editing-invalid",o&&t&&e)})}},p7=new Set(["undo","redo","paste","bulk","rangeSvc"]),p9=new Set(["ui","api"]),me={paste:"api",rangeSvc:"api",fillHandle:"api",cellClear:"api",bulk:"api"},mt=new Set(Object.keys(me)),mi=new Set(["paste","rangeSvc","cellClear","redo","undo"]),mo={cancel:!0,source:"api"},mr={cancel:!1,source:"api"},ms={checkSiblings:!0},mn={force:!0,suppressFlash:!0},ml=class extends tc{constructor(){super(...arguments),this.beanName="editSvc",this.committing=!1,this.batch=!1,this.batchStartDispatched=!1,this.stopping=!1,this.rangeSelectionWhileEditing=0}postConstruct(){let{beans:e}=this;this.model=e.editModelSvc,this.valueSvc=e.valueSvc,this.rangeSvc=e.rangeSvc,this.addManagedPropertyListener("editType",({currentValue:e})=>{this.stopEditing(void 0,mo),this.createStrategy(e)});let t=()=>{let t=new Set(e.colModel.getCols()),i=new Set(e.editModelSvc.getEditMap(!0).keys());(({editModelSvc:e}
47,t,i)=>{for(let o of t)e?.getEditRow(o)?.forEach((t,r)=>!i.has(r)&&e.removeEdits({rowNode:o,column:r}))})(e,(({rowModel:e,pinnedRowModel:t,editModelSvc:i},o)=>{let r=new Set;for(let s of(e.forEachNode(e=>o.has(e)&&r.add(e)),t?.forEachPinnedRow("top",e=>o.has(e)&&r.add(e)),t?.forEachPinnedRow("bottom",e=>o.has(e)&&r.add(e)),o))r.has(s)||i.removeEdits({rowNode:s});return r})(e,i),t)},i=()=>{let t=this.model.getCellValidationModel().getCellValidationMap().size>0,i=this.model.getRowValidationModel().getRowValidationMap().size>0;return t||i?this.stopEditing(void 0,mo):this.isEditing()&&(this.batch?cd(e,this.model.getEditPositions()):this.stopEditing(void 0,mr)),!1};this.addManagedEventListeners({columnPinned:t,columnVisible:t,columnRowGroupChanged:t,rowExpansionStateChanged:t,pinnedRowsChanged:t,displayedRowsChanged:t,sortChanged:i,filterChanged:i,cellFocused:this.onCellFocused.bind(this)})}isBatchEditing(){return this.batch}startBatchEditing(){this.batch||(this.batch=!0,this.batchStartDispatched=!1,this.stopEditing(void 0,mo))}stopBatchEditing(e){this.batch&&(e&&this.stopEditing(void 0,e),this.batchStartDispatched&&this.dispatchBatchStopped(new Map,!1),this.batch=!1,this.batchStartDispatched=!1)}ensureBatchStarted(){this.batch&&!this.batchStartDispatched&&(this.batchStartDispatched=!0,this.dispatchBatchEvent("batchEditingStarted",new Map))}createStrategy(e){let{beans:t,gos:i,strategy:o}=this,r=ma(i,e);if(o){if(o.beanName===r)return o;this.destroyStrategy()}return this.strategy=this.createOptionalManagedBean(t.registry.createDynamicBean(r,!0))}destroyStrategy(){this.strategy&&(this.strategy.destroy(),this.strategy=this.destroyBean(this.strategy))}shouldStartEditing(e,t,i,o="ui"){let r=function(e,{column:t},i,o,r="ui"){var s,n;if(i instanceof KeyboardEvent&&(i.key===oK.TAB||i.key===oK.ENTER||i.key===oK.F2||i.key===oK.BACKSPACE&&o))return!0;if(i?.shiftKey&&e.rangeSvc?.getCellRanges().length!=0)return!1;let l=t?.getColDef(),a=(s=e.gos,n=l,!0===s.get("suppressClickEdit")?0:!0===s.get("singleClickEdit")||n?.singleClickEdit?1:2),d=i?.type;return"click"===d&&i?.detail===1&&1===a||"dblclick"===d&&i?.detail===2&&2===a||"api"===r&&!!o}(this.beans,e,t,i,o);return r&&(this.strategy??(this.strategy=this.createStrategy())),r}shouldStopEditing(e,t,i="ui"){return this.strategy?.shouldStop(e,t,i)??null}shouldCancelEditing(e,t,i="ui"){return this.strategy?.shouldCancel(e,t,i)??null}validateEdit(){var e=this.beans;cp(e,!0);let t=e.editModelSvc?.getCellValidationModel().getCellValidationMap();if(!t)return null;let i=[];return t.forEach((e,t)=>{e.forEach(({errorMessages:e},o)=>{i.push({column:o,rowIndex:t.rowIndex,rowPinned:t.rowPinned,messages:e??null})})}),i}isEditing(e,t){return this.model.hasEdits(e??void 0,t??ms)}isRowEditing(e,t){return!!e&&this.model.hasRowEdits(e,t)}enableRangeSelectionWhileEditing(){this.beans.rangeSvc&&this.gos.get("cellSelection")&&this.rangeSelectionWhileEditing++}disableRangeSelectionWhileEditing(){this.rangeSelectionWhileEditing=Math.max(0,this.rangeSelectionWhileEditing-1)}isRangeSelectionEnabledWhileEditing(){return this.rangeSelectionWhileEditing>0}startEditing(e,t){let{startedEdit:i=!0,event:o=null,source:r="ui",ignoreEventKey:s=!1,silent:n}=t;if(this.strategy??(this.strategy=this.createStrategy()),!(t.editable??this.isCellEditable(e,"api")))return;let l=u5(this.beans,e);if(l&&!l.comp){t.editable=void 0,l.onCompAttachedFuncs.push(()=>this.startEditing(e,t));return}let a=this.shouldStartEditing(e,o,i,r);if(!1===a&&"api"!==r){this.isEditing(e)&&this.stopEditing();return}!this.batch&&this.shouldStopEditing(e,void 0,r)&&!t.continueEditing&&this.stopEditing(void 0,{source:r}),a&&this.ensureBatchStarted(),this.strategy.start({position:e,event:o,source:r,ignoreEventKey:s,startedEdit:i,silent:n})}stopEditing(e,t){let i=this.prepareStopContext(e,t);if(!i)return!1;this.stopping=!0;let o=!1,{edits:r}=i;try{let s=this.processStopRequest(i);return o||(o=s.res),r=s.edits,this.finishStopEditing({...i,edits:r,params:t,position:e,res:o}),o}finally{this.rangeSelectionWhileEditing=0,this.stopping=!1}}prepareStopContext(e,t){let{event:i=null,cancel:o=!1,source:r="ui",forceCancel:s=!1,forceStop:n=!1,commit:l=!1}=t||{};if(mt.has(r)&&this.batch)return this.bulkRefresh(e),null;let a=this.committing?me[r]:r;if(!(this.committing||this.isEditing(e)||this.batch&&this.model.hasEdits(e,ms))||!this.strategy||this.stopping)return null;let d=u5(this.beans,e);d&&(d.onEditorAttachedFuncs=[]);let h=!o&&(!!this.shouldStopEditing(e,i,a)||(this.committing||"paste"===r)&&!this.batch)||n,u=o&&!!this.shouldCancelEditing(e,i,a)||s;return{cancel:o,cellCtrl:d,edits:this.model.getEditMap(!0),event:i??null,forceCancel:s,forceStop:n,commit:l,position:e,source:r,treatAsSource:a,willCancel:u,willStop:h}}processStopRequest(e){let{event:t,position:i,willCancel:o,willStop:r}=e;return r||o?this.handleStopOrCancel(e):this.shouldHandleMidBatchKey(t,i)?{res:!1,edits:this.handleMidBatchKey(t,i,e)}:(cn(this.beans,{persist:!0}),this.batch&&this.strategy?.cleanupEditors(i),{res:!1,edits:this.model.getEditMap()})}handleStopOrCancel(e){let{beans:t,model:i}=this,{cancel:o,commit:r,edits:s,event:n,source:l,willCancel:a,willStop:d}=e;cn(t,{persist:!this.batch||!a,isCancelling:a||o,isStopping:d});
47let h=i.getEditMap(),u=a||this.batch&&!r?[]:this.processEdits(h,l);for(let t of(o?this.strategy?.stopCancelled(e.forceCancel):this.strategy?.stopCommitted(n,r),this.clearValidationIfNoOpenEditors(),u))i.clearEditValue(t);for(let e of(this.bulkRefresh(void 0,s),i.getEditPositions(h))){let i=u5(t,e),o=ce(e);i?.refreshCell({force:!0,suppressFlash:!o})}return{res:d,edits:h}}shouldHandleMidBatchKey(e,t){return e instanceof KeyboardEvent&&this.batch&&!!this.strategy?.midBatchInputsAllowed(t)&&this.isEditing(t,{withOpenEditor:!0})}handleMidBatchKey(e,t,i){let{beans:o,model:r}=this,{cellCtrl:s,edits:n}=i,{key:l}=e,a=l===oK.ENTER,d=l===oK.ESCAPE,h=l===oK.TAB;if(a||h||d){if(a||h)cn(o,{persist:!0});else if(d&&s){let{rowNode:e,column:t}=s;if(this.batch&&e&&t){let i={rowNode:e,column:t};cd(o,[i],{silent:!0}),this.model.stop(i,!0,!0),u5(o,i)?.refreshCell(mn)}else this.revertSingleCellEdit(s)}return this.batch?this.strategy?.cleanupEditors():cd(o,r.getEditPositions(),{event:e,cancel:d}),e.preventDefault(),this.bulkRefresh(t,n,{suppressFlash:!0}),r.getEditMap()}return n}finishStopEditing({cellCtrl:e,edits:t,params:i,position:o,res:r,commit:s,forceCancel:n,willCancel:l,willStop:a}){let d=this.beans;r&&o&&(!this.batch||s)&&this.model.removeEdits(o),this.navigateAfterEdit(i,e?.cellPosition),cr(d),this.clearValidationIfNoOpenEditors(),this.bulkRefresh();let{rowRenderer:h,formula:u}=d;if(l&&h.refreshRows({rowNodes:Array.from(t.keys())}),this.batch){u?u.refreshFormulas(!0):h.refreshRows({suppressFlash:!0,force:!0});let e=a&&s;(e||l&&n)&&this.dispatchBatchStopped(t,e)}}dispatchBatchStopped(e,t){let i;t&&(i=function(e){let t=new Map;for(let[i,o]of e){let e=new Map;for(let[t,i]of o)ce(i)&&e.set(t,i);e.size>0&&t.set(i,e)}return t}(e)).size>0&&this.ensureBatchStarted(),this.batchStartDispatched&&(this.batchStartDispatched=!1,this.dispatchBatchEvent("batchEditingStopped",i??new Map))}clearValidationIfNoOpenEditors(){this.model.hasEdits(void 0,{withOpenEditor:!0})||(this.model.getCellValidationModel().clearCellValidationMap(),this.model.getRowValidationModel().clearRowValidationMap())}navigateAfterEdit(e,t){if(!e||!t)return;let{event:i,suppressNavigateAfterEdit:o}=e;if(!(i instanceof KeyboardEvent)||o)return;let{key:r,shiftKey:s}=i,n=this.gos.get("enterNavigatesVerticallyAfterEdit");if(r!==oK.ENTER||!n)return;let l=s?oK.UP:oK.DOWN;this.beans.navigation?.navigateToNextCell(null,l,t,!1)}processEdits(e,t){let i=Array.from(e.keys()),o=this.model.getCellValidationModel().getCellValidationMap().size>0||this.model.getRowValidationModel().getRowValidationMap().size>0,r=[];for(let s of i){let i=e.get(s);for(let e of i.keys()){let n=i.get(e),l={rowNode:s,column:e};if(ce(n)&&!o){let i=u5(this.beans,l);this.setNodeDataValue(s,e,n.pendingValue,i,t)||r.push(l)}}}return r}setNodeDataValue(e,t,i,o,r="edit"){let s=p9.has(r)?"edit":r;o&&(o.suppressRefreshCell=!0),this.committing=!0;try{return e.setDataValue(t,i,s)}finally{this.committing=!1,o&&(o.suppressRefreshCell=!1)}}syncEditAfterCommit(e,t){let i=this.model.getEdit(e);i&&"editing"!==i.state&&(t?this.beans.editModelSvc?.setEdit(e,{sourceValue:this.valueSvc.getValue(e.column,e.rowNode,"data")}):this.model.clearEditValue(e))}setEditMap(e,t){var i;this.strategy??(this.strategy=this.createStrategy()),this.strategy?.setEditMap(e,t),this.bulkRefresh();let o=mn;t?.forceRefreshOfEditCellsOnly&&(o={...{rowNodes:(i=e)?Array.from(i.keys()):void 0,columns:i?[...new Set(Array.from(i.values()).flatMap(e=>Array.from(e.keys())))]:void 0},...mn}),this.beans.rowRenderer.refreshCells(o)}dispatchEditValuesChanged({rowNode:e,column:t},i={}){if(!e||!t||!i)return;let{pendingValue:o,sourceValue:r}=i,{rowIndex:s,rowPinned:n,data:l}=e;this.beans.eventSvc.dispatchEvent({type:"cellEditValuesChanged",node:e,rowIndex:s,rowPinned:n,column:t,source:"api",data:l,newValue:o,oldValue:r,value:o,colDef:t.getColDef()})}bulkRefresh(e={},t,i={}){let{beans:o,gos:r}=this,{editModelSvc:s,rowModel:n}=o;t8(r,n)&&(e.rowNode&&e.column?this.refCell(e,this.model.getEdit(e),i):t&&s?.getEditMap(!1)?.forEach((e,t)=>{for(let o of e.keys())this.refCell({rowNode:t,column:o},e.get(o),i)}))}refCell({rowNode:e,column:t},i,o={}){let{beans:r,gos:s}=this,n=new Set([e]),l=new Set,a=e.pinnedSibling;a&&n.add(a);let d=e.sibling;d&&l.add(d);let h=e.parent;for(;h;)h.sibling?.footer&&s.get("groupTotalRow")||!h.parent&&h.sibling&&s.get("grandTotalRow")?l.add(h.sibling):l.add(h),h=
47h.parent;for(let e of n)this.dispatchEditValuesChanged({rowNode:e,column:t},i);for(let e of n)u5(r,{rowNode:e,column:t})?.refreshCell(o);for(let e of l)u5(r,{rowNode:e,column:t})?.refreshCell(o)}stopAllEditing(e=!1,t="ui"){this.isEditing()&&this.stopEditing(void 0,{cancel:e,source:t})}isCellEditable(e,t="ui"){let{gos:i,beans:o}=this,r=e.rowNode,s=e.column.getColDef();if(r.group&&null==s.groupRowEditable){if(i.get("treeData")){if(!r.data&&!i.get("enableGroupEdit"))return!1}else if(!i.get("enableGroupEdit"))return!1}let n="fullRow"===ma(i)?function(e,t,i="ui"){let o=p0(e,t);if(o||"ui"===i)return o;let{rowNode:r,column:s}=t;for(let t of e.colModel.getCols())if(t!==s&&p0(e,{rowNode:r,column:t}))return!0;return!1}(o,e,t):p0(o,e);return n&&(this.strategy??(this.strategy=this.createStrategy())),n}cellEditingInvalidCommitBlocks(){return"block"===this.gos.get("invalidEditValueMode")}checkNavWithValidation(e,t,i=!0){if(this.hasValidationErrors(e)){let o=u5(this.beans,e);return this.cellEditingInvalidCommitBlocks()?(t?.preventDefault?.(),i&&(o&&!o.hasBrowserFocus()&&o.focusCell(),o?.comp?.getCellEditor()?.focusIn?.()),"block-stop"):(o&&this.revertSingleCellEdit(o),"revert-continue")}return"continue"}revertSingleCellEdit(e,t=!1){let i=u5(this.beans,e);i?.comp?.getCellEditor()&&(cd(this.beans,[e],{silent:!0}),this.model.clearEditValue(e),ct(this.beans,e,{silent:!0}),cp(this.beans),i?.refreshCell(mn),t&&(i?.focusCell(),i?.comp?.getCellEditor()?.focusIn?.()))}hasValidationErrors(e){cp(this.beans);let t=u5(this.beans,e);t&&(t.refreshCell(mn),t.rowCtrl.rowEditStyleFeature?.applyRowStyles());let i=!1;return e?.rowNode?(i||(i=this.model.getRowValidationModel().hasRowValidation({rowNode:e.rowNode})),e.column&&(i||(i=this.model.getCellValidationModel().hasCellValidation({rowNode:e.rowNode,column:e.column})))):(i||(i=this.model.getCellValidationModel().getCellValidationMap().size>0),i||(i=this.model.getRowValidationModel().getRowValidationMap().size>0)),i}moveToNextCell(e,t,i,o="ui"){let r,s=this.isEditing(),n=s&&"block-stop"===this.checkNavWithValidation(void 0,i);return e instanceof cS&&s&&(r=this.strategy?.moveToNextEditingCell(e,t,i,o,n)),null===r||!1!==(r=r||!!this.beans.focusSvc.focusedHeader)||n||this.stopEditing(),r}getPendingEditValue(e,t,i){if("data"===i||"batch"===i&&!this.batch)return;let o=this.model.getEdit({rowNode:e,column:t},ms);if(!o||this.stopping&&!this.batch&&!o.editorState?.cellStartedEditing)return;if("edit"===i){let e=o.editorValue;if(null!=e&&e!==u9)return e}let r=o.pendingValue;if(r!==u9)return r}getCellDataValue(e){let t=this.model.getEdit(e,ms);if(t){let e=t.pendingValue;if(e!==u9)return e;let i=t.sourceValue;if(null!=i)return i}return this.valueSvc.getValue(e.column,e.rowNode,"data")}addStopEditingWhenGridLosesFocus(e){!function(e,t,i){let{gos:o,popupSvc:r}=t;if(!o.get("stopEditingWhenCellsLoseFocus"))return;let s=e=>{let s=e.relatedTarget;if(null===rZ(s))return void u8(t);let n=i.some(e=>e.contains(s))&&o.isElementInThisInstance(s);n||(n=!!r&&(r.getActivePopups().some(e=>e.contains(s))||r.isElementWithinCustomPopup(s))),n||u8(t)};for(let t of i)e.addManagedElementListeners(t,{focusout:s})}(this,this.beans,e)}createPopupEditorWrapper(e){return new pJ(e)}batchResetToSourceValue(e){if(!this.batch)return!1;let t=this.model.getEdit(e);if(!t)return!1;let{pendingValue:i,sourceValue:o,state:r}=t;return i!==o&&"editing"!==r&&(this.dispatchEditValuesChanged(e,{...t,pendingValue:o}),this.beans.editModelSvc?.removeEdits(e),this.bulkRefresh(e),!0)}setDataValue(e,t,i){try{let o,r=this.batch,s=this.isEditing(r?void 0:e);if((!s||this.committing)&&!mi.has(i)||!s&&!r&&"paste"===i)return;let n=this.beans;if(this.strategy??(this.strategy=this.createStrategy()),o=r?"ui":this.committing?i??"api":"api",!i||p7.has(i))return this.applyDirectValue(e,t,i);let l=this.applyExistingEdit(e,t,i,o);if(void 0!==l)return l;return cl(n,e,t,i,void 0,{persist:!0}),this.ensureBatchStarted(),this.stopEditing(e,{source:o,suppressNavigateAfterEdit:!0}),!0}finally{this.committing=!1}}applyExistingEdit(e,t,i,o){let r=this.model.getEdit(e);if(r)return r.pendingValue!==t&&(r.sourceValue!==t?(cl(this.beans,e,t,i,void 0,{persist:!0}),this.ensureBatchStarted(),this.stopEditing(e,{source:o,suppressNavigateAfterEdit:!0})):(this.beans.editModelSvc?.removeEdits(e),this.ensureBatchStarted(),this.dispatchEditValuesChanged(e,{...r,pendingValue:t})),!0)}applyDirectValue(e,t,i){let o=this.beans;if(this.batch)return cl(o,e,t,i,void 0,{persist:!0}),this.cleanupEditors(),cr(o),this.ensureBatchStarted(),this.bulkRefresh(),!0;cl(o,e,t,i,void 0,{persist:!0});let r=u5(o,e),s=this.setNodeDataValue(e.rowNode,e.column,t,r,i);return this.syncEditAfterCommit(e,s),u5(o,e)?.refreshCell(mn),s}handleColDefChanged(e){!function(e,t){let i=t.comp?.getCellEditor();if(!i?.refresh)return;let{eventKey:o,cellStartedEdit:r}
47=t.editCompDetails.params,{column:s}=t,n=co(e,t,o,r),l=s.getColDef(),a=rx(e.userCompFactory,l,n);i.refresh(cs(a.params,o))}(this.beans,e)}destroy(){this.model.clear(),this.destroyStrategy(),super.destroy()}prepDetailsDuringBatch(e,t){let{model:i}=this;if(!this.batch||!i.hasRowEdits(e.rowNode,ms))return;let{rowNode:o}=e,{compDetails:r,valueToDisplay:s}=t;if(r){let{params:e}=r;return e.data=i.getEditRowDataValue(o,ms),{compDetails:r}}return{valueToDisplay:s}}cleanupEditors(){this.strategy?.cleanupEditors()}dispatchCellEvent(e,t,i,o){this.strategy?.dispatchCellEvent(e,t,i,o)}dispatchBatchEvent(e,t){this.eventSvc.dispatchEvent(this.createBatchEditEvent(e,t))}createBatchEditEvent(e,t){return iK(this.gos,{type:e,..."batchEditingStopped"===e?{changes:this.toEventChangeList(t)}:{}})}toEventChangeList(e){return this.model.getEditPositions(e).map(e=>({rowIndex:e.rowNode.rowIndex,rowPinned:e.rowNode.rowPinned,columnId:e.column.getColId(),newValue:e.pendingValue,oldValue:e.sourceValue}))}applyBulkEdit({rowNode:e,column:t},i){if(!i||0===i.length)return;let{beans:o,rangeSvc:r,valueSvc:s}=this,{formula:n}=o;cn(o,{persist:!0});let l=this.model.getEditMap(!0),a=l.get(e)?.get(t)?.pendingValue,d=!1;this.batch||(this.eventSvc.dispatchEvent({type:"bulkEditingStarted"}),d=!0);let h=n?.isFormula(a)??!1;i.forEach(e=>{let t=e.columns.some(e=>e?.isAllowFormula());if(r?.forEachRowInRange(e,i=>{let r=sp(o,i);if(void 0===r)return;let d=l.get(r)??new Map,u=a;for(let t of e.columns){if(!t)continue;let e=!!h&&t.isAllowFormula();if(this.isCellEditable({rowNode:r,column:t},"api")){let e=s.getValue(t,r,"data",!0),i=s.parseValue(t,r??null,u,e);Number.isNaN(i)&&(i=null),d.set(t,{editorValue:void 0,pendingValue:i,sourceValue:e,state:"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}e&&(u=n?.updateFormulaByOffset({value:u,columnDelta:1}))}d.size>0&&l.set(r,d),h&&t&&(a=n?.updateFormulaByOffset({value:a,rowDelta:1}))}),this.setEditMap(l),this.batch){this.cleanupEditors(),cr(o),this.ensureBatchStarted(),this.bulkRefresh();return}this.committing=!0;try{this.stopEditing(void 0,{source:"bulk"})}finally{this.committing=!1,d&&this.eventSvc.dispatchEvent({type:"bulkEditingStopped",changes:this.toEventChangeList(l)})}}),this.bulkRefresh();let u=u5(o,{rowNode:e,column:t});u&&u.focusCell(!0)}createCellStyleFeature(e){return new p5(e,this.beans)}
47createRowStyleFeature(e){return new p8(e,this.beans)}setEditingCells(e,t){let{beans:i}=this,{colModel:o,valueSvc:r}=i,s=new Map;for(let{colId:n,column:l,colKey:a,rowIndex:d,rowPinned:h,newValue:u,state:c}of e){let e=n?o.getCol(n):a?o.getCol(a):l;if(!e)continue;let g=sp(i,{rowIndex:d,rowPinned:h});if(!g)continue;let p=r.getValue(e,g,"data",!0);if(!t?.forceRefreshOfEditCellsOnly&&!ce({pendingValue:u,sourceValue:p})&&"editing"!==c)continue;let m=s.get(g);m||(m=new Map,s.set(g,m)),void 0===u&&(u=u9),m.set(e,{editorValue:void 0,pendingValue:u,sourceValue:p,state:c??"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}this.setEditMap(s,t)}onCellFocused(e){let t=u5(this.beans,e);if(!t||!this.isEditing(t,ms))return;let i=this.model.getEdit(t);if(!i||!ce(i))return;let o=this.getLocaleTextFunc()("ariaPendingChange","Pending Change");this.beans.ariaAnnounce?.announceValue(o,"pendingChange")}allowedFocusTargetOnValidation(e){return u5(this.beans,e)}};function ma(e,t){return t??e.get("editType")??"singleCell"}var md=class extends tc{postConstruct(){this.model=this.beans.editModelSvc,this.editSvc=this.beans.editSvc,this.addManagedEventListeners({cellFocused:this.onCellFocusChanged?.bind(this),cellFocusCleared:this.onCellFocusChanged?.bind(this)})}clearEdits(e){this.model.clearEditValue(e)}onCellFocusChanged(e){let t,i=e.previousParams,{editSvc:o,beans:r}=this,s="cellFocused"===e.type?e.sourceEvent:null;i&&(t=u5(r,i));let{gos:n,editModelSvc:l}=r,a="cellFocusCleared"===e.type;if(o.isEditing(void 0,{withOpenEditor:!0})){let{column:t,rowIndex:d,rowPinned:h}=e,u={column:t,rowNode:sp(r,{rowIndex:d,rowPinned:h})},c="block"===n.get("invalidEditValueMode");if(c)return;let g=!c,p=!!l?.getCellValidationModel().hasCellValidation(u);!i&&!a||o.stopEditing(void 0,{cancel:g&&p,source:a&&g?"api":void 0,event:s})||(o.isBatchEditing()?o.cleanupEditors():o.stopEditing(void 0,{source:"api"}))}t?.refreshCell({suppressFlash:!0,force:!0})}stopCancelled(e){let t=this.editSvc.isBatchEditing()&&!e;for(let e of this.model.getEditPositions())ch(this.beans,e,{cancel:!0},u5(this.beans,e)),this.model.stop(e,t,!0);return!0}stopCommitted(e,t){let i=this.model.getEditPositions(),o={all:[],pass:[],fail:[]};for(let e of i)o.all.push(e),(this.model.getCellValidationModel().getCellValidation(e)?.errorMessages?.length??0)>0?o.fail.push(e):o.pass.push(e);let r=this.processValidationResults(o),s=this.editSvc.isBatchEditing()&&!t;for(let t of r.destroy)ch(this.beans,t,{event:e},u5(this.beans,t)),this.model.stop(t,s,!1);for(let e of r.keep){let t=u5(this.beans,e);!this.editSvc.cellEditingInvalidCommitBlocks()&&t&&this.editSvc.revertSingleCellEdit(t)}return!0}cleanupEditors({rowNode:e}={},t){cn(this.beans,{persist:!1});let i=this.model.getEditPositions(),o=[];if(e)for(let t of i)t.rowNode!==e&&o.push(t);else for(let e of i)o.push(e);cd(this.beans,o),cr(this.beans,t)}setFocusOutOnEditor(e){e.comp?.getCellEditor()?.focusOut?.()}setFocusInOnEditor(e){let t=e.comp,i=t?.getCellEditor();if(i?.focusIn)i.focusIn();else{let i="fullRow"===this.beans.gos.get("editType");e.focusCell(i),e.onEditorAttachedFuncs.push(()=>t?.getCellEditor()?.focusIn?.())}}setupEditors(e){let{event:t,ignoreEventKey:i=!1,startedEdit:o,position:r,cells:s=this.model.getEditPositions()}=e,n=t instanceof KeyboardEvent&&!i&&t.key||void 0;!function(e,t,i,o,r,s){0===t.length&&i?.rowNode&&i?.column&&ct(e,i,{key:o,event:r,cellStartedEdit:s});let{valueSvc:n,editSvc:l,editModelSvc:a}=e,{rowNode:d,column:h}=i??{};for(let u of t){let{rowNode:t,column:c}=u,g=u5(e,u);if(!g){if(t&&c){let r=n.getValue(c,t,"data"),s=(i?.rowNode===t&&i?.column===c&&o||void 0)??l?.getCellDataValue(u)??n.getValueForDisplay({column:c,node:t,from:"edit"})?.value??r??u9;a?.setEdit(u,{pendingValue:ca(e,s,!1,c),sourceValue:r,state:"editing"})}continue}let p=s&&d===g.rowNode&&g.column===h;ct(e,{rowNode:d,column:g.column},{key:p?o:null,event:p?r:null,cellStartedEdit:p&&s})}}(this.beans,s,r,n,t,o)}dispatchCellEvent(e,t,i,o){let r=u5(this.beans,e);r&&this.eventSvc.dispatchEvent({...r.createEvent(t??null,i),...o})}dispatchRowEvent(e,t,i){if(i)return;let o=u4(this.beans,e);o&&this.eventSvc.dispatchEvent(o.createRowEvent(t))}shouldStop(e,t,i="ui"){let o=this.editSvc.isBatchEditing();return!!o&&"api"===i||(!o||"ui"!==i&&"edit"!==i)&&("api"===i||(t instanceof KeyboardEvent&&!o?t.key===oK.ENTER:null))}shouldCancel(e,t,i="ui"){let o=this.editSvc.isBatchEditing();return t instanceof KeyboardEvent&&!o&&t.key===oK.ESCAPE||!!o&&"api"===i||"api"===i}setEditMap(e,t){t?.update||this.editSvc.stopEditing(void 0,{cancel:!0,source:"api"});let i=[];if(e.forEach((e,t)=>{e.forEach((e,o)=>{"editing"===e.state&&i.push({...e,rowNode:t,column:o})})}),t?.update&&(e=new Map([...this.model.getEditMap(),...e])),this.model?.setEditMap(e),i.length>0){let e=i.at(-1),t=e.pendingValue===u9?void 0:e.pendingValue;this.start({position:e,event:new KeyboardEvent("keydown",{key:t}),source:"api"});let o=u5(this.beans,e);o&&this.setFocusInOnEditor(o)}}destroy(){this.cleanupEditors(),super.destroy()}},mh=class extends md{constructor(){super(...arguments),this.beanName="fullRow",this.startedRows=[]}shouldStop(e,t,i="ui"){let{rowNode:o}=e||{};if(!u4(this.beans,{rowNode:this.rowNode}))return!0;let r=super.shouldStop({rowNode:this.rowNode},t,i);return null!==r?r:!!this.rowNode&&o!==this.rowNode}midBatchInputsAllowed({rowNode:e}){return!!e&&this.model.hasEdits({rowNode:e})}clearEdits(e){this.model.clearEditValue(e)}start(e){let{position:t,silent:i,startedEdit:o,event:r,ignoreEventKey:s}=e,{rowNode:n}=t;this.rowNode!==n&&super.cleanupEditors(t);let l=this.beans.visibleCols.allCols,a=[],d=[];for(let e of l)e.isCellEditable(n)&&d.push(e);if(0!=d.length){for(let e of(this.dispatchRowEvent({rowNode:n},"rowEditingStarted",i),this.startedRows.push(n),d)){let t={rowNode:n,column:e};a.push(t),this.model.hasEdits(t)||this.model.start(t)}this.rowNode=n,this.setupEditors({cells:a,position:t,startedEdit:o,event:r,ignoreEventKey:s})}}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stopCancelled(e){let{rowNode:t}=this;return(!t||!!this.model.hasRowEdits(t))&&(super.stopCancelled(e),this.cleanupEditors({rowNode:t}
47,!0),this.rowNode=void 0,!0)}stopCommitted(e,t){let{rowNode:i}=this;if(i&&!this.model.hasRowEdits(i))return!1;let o=[];if(this.model.getEditMap().forEach((e,t)=>{if(e&&0!==e.size){for(let i of e.values())if(ce(i)){o.push(t);break}}}),cp(this.beans),"block-stop"===this.editSvc.checkNavWithValidation({rowNode:i}))return!1;if(super.stopCommitted(e,t),t||!this.editSvc.isBatchEditing())for(let e of o)this.dispatchRowEvent({rowNode:e},"rowValueChanged");return this.cleanupEditors({rowNode:i},!0),this.rowNode=void 0,!0}onCellFocusChanged(e){let{rowIndex:t}=e,i=e.previousParams;if(i?.rowIndex===t||e.sourceEvent instanceof KeyboardEvent||this.beans.editSvc?.isRangeSelectionEnabledWhileEditing())return;let o=u5(this.beans,i);"block"===this.gos.get("invalidEditValueMode")&&o&&(this.model.getCellValidationModel().getCellValidation(o)||this.model.getRowValidationModel().getRowValidation(o))||super.onCellFocusChanged(e)}cleanupEditors(e={},t){for(let i of(super.cleanupEditors(e,t),this.startedRows))this.dispatchRowEvent({rowNode:i},"rowEditingStopped"),this.destroyEditorsForRow(i);this.startedRows.length=0}destroyEditorsForRow(e){let t=u4(this.beans,{rowNode:e});if(!t)return;let i={};for(let e of t.getAllCellCtrls())e.comp?.getCellEditor()&&ch(this.beans,e,i,e)}moveToNextEditingCell(e,t,i,o="ui",r=!1){let s,n=e.cellPosition;this.model.suspend(!0);try{s=this.beans.navigation?.findNextCellToFocusOn(n,{backwards:t,startEditing:!0,skipToNextEditableCell:!1})}finally{this.model.suspend(!1)}if(!1===s)return null;if(null==s)return!1;let l=s.cellPosition,a=e.isCellEditable(),d=s.isCellEditable(),h=l&&n.rowIndex===l.rowIndex&&n.rowPinned===l.rowPinned;a&&this.setFocusOutOnEditor(e),this.restoreEditors();let u=this.gos.get("suppressStartEditOnTab");return d&&!r?u?s.focusCell(!0,i):(s.comp?.getCellEditor()||ct(this.beans,s,{event:i,cellStartedEdit:!0}),this.setFocusInOnEditor(s),s.focusCell(!1,i)):(d&&r&&this.setFocusInOnEditor(s),s.focusCell(!0,i)),h||r||(this.editSvc?.stopEditing({rowNode:e.rowNode},{event:i,forceStop:!0}),this.editSvc?.isRowEditing(e.rowNode,{withOpenEditor:!0})&&this.cleanupEditors(s,!0),u?s.focusCell(!0,i):this.editSvc.startEditing(s,{startedEdit:!0,event:i,source:o,ignoreEventKey:!0,editable:d||void 0})),e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}
47restoreEditors(){this.model.getEditMap().forEach((e,t)=>e.forEach(({state:e},i)=>{if("editing"!==e)return;let o=u5(this.beans,{rowNode:t,column:i});o&&!o.comp?.getCellEditor()&&ct(this.beans,o,{silent:!0})}))}destroy(){super.destroy(),this.rowNode=void 0,this.startedRows.length=0}},mu={moduleName:"EditCore",version:tU,beans:[u3,ml],apiFunctions:{getEditingCells:function(e){let t=e.editModelSvc?.getEditMap(),i=[];return t?.forEach((e,t)=>{let{rowIndex:o,rowPinned:r}=t;e.forEach((e,t)=>{let{editorValue:s,pendingValue:n,sourceValue:l,state:a}=e,d=ce(e),h=s??n;h===u9&&(h=void 0);let u={newValue:h,oldValue:l,state:a,column:t,colId:t.getColId(),colKey:t.getColId(),rowIndex:o,rowPinned:r},c="editing"===a;(c||!c&&d)&&i.push(u)})}),i},getEditRowValues:function(e,t){return e.editModelSvc?.getEditRowDataValue(t,{checkSiblings:!0})},getCellEditorInstances:(e,t={})=>{let i=e.rowRenderer.getCellCtrls(t.rowNodes,t.columns),o=Array(i.length),r=0;for(let e=0,t=i.length;e<t;++e){let t=i[e],s=t.comp?.getCellEditor();s&&(o[r++]=u1(s))}return o.length=r,o},startEditingCell:function(e,t){let{key:i,colKey:o,rowIndex:r,rowPinned:s}=t,{editSvc:n,colModel:l}=e,a=l.getCol(o);if(!a)return void tX(12,{colKey:o});let d=sp(e,{rowIndex:r,rowPinned:s||null,column:a});if(!d)return void tX(290,{rowIndex:r,rowPinned:s});n?.isCellEditable({rowNode:d,column:a},"api")&&(null==s&&gT(e,r),gk(e,o),n?.startEditing({rowNode:d,column:a},{event:i?new KeyboardEvent("keydown",{key:i}):void 0,source:"api",editable:!0}))},stopEditing:function(e,t=!1){let{editSvc:i}=e;if(i?.isBatchEditing()){if(t)for(let t of e.editModelSvc?.getEditPositions()??[])"editing"===t.state&&i.revertSingleCellEdit(t);else cn(e,{persist:!0});cd(e,void 0,{cancel:t})}else i?.stopEditing(void 0,{cancel:t,source:"edit",forceStop:!t,forceCancel:t})},isEditing:function(e,t){let i=u5(e,t);return!!e.editSvc?.isEditing(i)},validateEdit:function(e){return e.editSvc?.validateEdit()||null}},dynamicBeans:{singleCell:class extends md{constructor(){super(...arguments),this.beanName="singleCell"}shouldStop(e,t,i="ui"){let o=super.shouldStop(e,t,i);if(null!==o)return o;let r=e?.rowNode,s=e?.column,n=this.rowNode,l=this.column;return(!n||!l)&&r&&s?null:n!==r||l!==s||!n&&!l&&this.model.hasEdits(void 0,{withOpenEditor:!0})}midBatchInputsAllowed(e){return this.model.hasEdits(e)}start(e){let{position:t,startedEdit:i,event:o,ignoreEventKey:r}=e;(this.rowNode!==t.rowNode||this.column!==t.column)&&super.cleanupEditors(),this.rowNode=t.rowNode,this.column=t.column,this.model.start(t),this.setupEditors({cells:[t],position:t,startedEdit:i,event:o,ignoreEventKey:r})}dispatchRowEvent(e,t,i){}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stopCancelled(e){return super.stopCancelled(e),this.clearPosition()}stopCommitted(e,t){return super.stopCommitted(e,t),this.clearPosition()}clearPosition(){return this.rowNode=void 0,this.column=void 0,!0}onCellFocusChanged(e){let{colModel:t,editSvc:i}=this.beans,{rowIndex:o,column:r,rowPinned:s}=e,n=sp(this.beans,{rowIndex:o,rowPinned:s}),l=u7(r),a=t.getCol(l),d=e.previousParams;if(d){let e=u7(d.column);if(d?.rowIndex===o&&e===l&&d?.rowPinned===s)return}"cellFocused"==e.type&&(i?.isRangeSelectionEnabledWhileEditing()||i?.isEditing({rowNode:n,column:a},{withOpenEditor:!0}))||super.onCellFocusChanged(e)}moveToNextEditingCell(e,t,i,o="ui",r=!1){let s,n=this.beans.focusSvc.getFocusedCell();n&&(e=sm(this.beans,n)??e);let l=e.cellPosition,a="fullRow"===this.beans.gos.get("editType");a&&this.model.suspend(!0),r||(e.eGui.focus(),this.editSvc?.stopEditing(e,{source:this.editSvc?.isBatchEditing()?"ui":"api",event:i}));try{s=this.beans.navigation?.findNextCellToFocusOn(l,{backwards:t,startEditing:!0})}finally{a&&this.model.suspend(!1)}if(!1===s)return null;if(null==s)return!1;let d=s.cellPosition,h=e.isCellEditable(),u=s.isCellEditable(),c=d&&l.rowIndex===d.rowIndex&&l.rowPinned===d.rowPinned;h&&!r&&this.setFocusOutOnEditor(e);let g=this.gos.get("suppressStartEditOnTab");if(c||r||(super.cleanupEditors(s,!0),g?s.focusCell(!0,i):this.editSvc.startEditing(s,{startedEdit:!0,event:i,source:o,ignoreEventKey:!0,editable:u})),u&&!r){if(s.focusCell(!1,i),g)s.focusCell(!0,i);else if(!s.comp?.getCellEditor()){let e=this.editSvc?.isEditing(s,{withOpenEditor:!0});
47ct(this.beans,s,{event:i,cellStartedEdit:!0,silent:e}),this.setFocusInOnEditor(s),this.cleanupEditors(s)}}else u&&r&&this.setFocusInOnEditor(s),s.focusCell(!0,i);return e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}destroy(){super.destroy(),this.rowNode=void 0,this.column=void 0}},fullRow:mh},dependsOn:[pc,pf],css:[".ag-cell-inline-editing{border:var(--ag-cell-editing-border)!important;border-radius:var(--ag-border-radius);box-shadow:var(--ag-cell-editing-shadow);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-wrapper,:where(.ag-cell-editor) .ag-input-field-input,:where(.ag-cell-editor) .ag-wrapper{height:100%;line-height:normal;min-height:100%;width:100%}&.ag-cell-editing-error{border-color:var(--ag-invalid-color)!important}}:where(.ag-popup-editor) .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{display:block;height:auto;padding:var(--ag-cell-horizontal-padding)}:where(.ag-rtl .ag-large-text-input) .ag-text-area-input{resize:none}:where(.ag-ltr) .ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-checkbox-edit{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-row.ag-row-editing-invalid .ag-cell-inline-editing){opacity:.8}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}"]},mc={moduleName:"UndoRedoEdit",version:tU,beans:[pb],apiFunctions:{undoCellEditing:function(e){e.undoRedo?.undo("api")},redoCellEditing:function(e){e.undoRedo?.redo("api")},getCurrentUndoSize:function(e){return e.undoRedo?.getCurrentUndoStackSize()??0},getCurrentRedoSize:function(e){return e.undoRedo?.getCurrentRedoStackSize()??0}},dependsOn:[mu]},mg={moduleName:"TextEditor",version:tU,userComponents:{agCellEditor:pQ,agTextCellEditor:pQ},dependsOn:[mu]},mp={moduleName:"NumberEditor",version:tU,userComponents:{agNumberCellEditor:{classImp:class extends pP{constructor(){super(new pO(()=>this.getLocaleTextFunc()))}}}},dependsOn:[mu]},mm={moduleName:"DateEditor",version:tU,userComponents:{agDateCellEditor:class extends pP{constructor(){super(new pM(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}},agDateStringCellEditor:class extends pP{constructor(){super(new pT(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}}},dependsOn:[mu]},mf={moduleName:"CheckboxEditor",version:tU,userComponents:{agCheckboxCellEditor:pS},dependsOn:[mu]},mC={moduleName:"SelectEditor",version:tU,userComponents:{agSelectCellEditor:pK},dependsOn:[mu]},mv={moduleName:"LargeTextEditor",version:tU,userComponents:{agLargeTextCellEditor:pB},dependsOn:[mu]},mw={moduleName:"CustomEditor",version:tU,dependsOn:[mu]},mb={agSetColumnFilter:"agSetColumnFilterHandler",agMultiColumnFilter:"agMultiColumnFilterHandler",agGroupColumnFilter:"agGroupColumnFilterHandler",agNumberColumnFilter:"agNumberColumnFilterHandler",agBigIntColumnFilter:"agBigIntColumnFilterHandler",agDateColumnFilter:"agDateColumnFilterHandler",agTextColumnFilter:"agTextColumnFilterHandler"},my=new Set(Object.values(mb));function mS(e,t){let i=e.filterUi;if(!i)return null;if(i.created)return i.promise;if(t)return null;let o=i.create(i.refreshed);return i.created=!0,i.promise=o,o}function mR(e,t,i,o,r,s,n){return t.refresh?.({...i,model:o,source:s,additionalEventAttributes:n}),e().then(e=>{if(e){let{filter:t,filterParams:i}=e;mE(t,i,o,r,s,n)}})}function mE(e,t,i,o,r,s){e?.refresh?.({...t,model:i,state:o,source:r,additionalEventAttributes:s})}function mx(e,t,i,o){let r=e();r?.created&&r.promise.then(e=>{let s=t();mE(e,r.filterParams,s,i()??{model:s},"ui",o)})}function mF(e){let t,i,o=!1,{action:r,filterParams:s,getFilterUi:n,getModel:l,getState:a,updateState:d,updateModel:h,processModelToApply:u}=e;switch(r){case"apply":{let e=a();i=e?.model??null,u&&(i=u(i)),t={state:e?.state,model:i},o=!0;break}case"clear":t={model:null},s?.buttons?.includes("apply")||(o=!0,i=null);break;case"reset":t={model:null},o=!0,i=null;break;case"cancel":t={model:l()}}d(t),o?h(i):mx(n,l,a,{fromAction:r})}function mP(e,t){return e[t]??null}var mD=class extends sJ{constructor(){super(...arguments),this.iconCreated=!1}wireComp(e,t,i,o,r){this.comp=e;let s=s_(this,this.beans.context,r);this.eButtonShowMainFilter=i,this.eFloatingFilterBody=o,this.setGui(t,s),this.setupActive(),this.refreshHeaderStyles(),this.setupWidth(s),this.setupLeft(s),this.setupHover(s),this.setupFocus(s),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(s),this.setupUi(),s.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(s);let n=()=>this.onColDefChanged(s);s.addManagedListeners(this.column,{colDefChanged:n}),s.addManagedEventListeners({filterSwitched:({column:e})=>{e===this.column&&n()}}),s.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetail
47s=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}getHeaderClassParams(){let{column:e,beans:t}=this,i=e.colDef;return iK(t.gos,{colDef:i,column:e,floatingFilter:!0})}setupActive(){let e=this.column.getColDef(),t=!!e.filter,i=!!e.floatingFilter;this.active=t&&i}setupUi(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!this.active||this.iconCreated)return;let e=o1("filter",this.beans,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(e){e.createManagedBean(new ss(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){let e=this.getLocaleTextFunc();Y(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){let{beans:t}=this;if(O(t)===this.eGui)return;let i=r8(t,this.eGui,null,e.shiftKey);if(i){t.headerNavigation?.scrollToColumn(this.column),e.preventDefault(),i.focus();return}let o=this.findNextColumnWithFloatingFilter(e.shiftKey);o&&t.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:o},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){let t=this.beans.visibleCols,i=this.column;do if(!(i=e?t.getColBefore(i):t.getColAfter(i)))break;while(!i.getColDef().filter||!i.getColDef().floatingFilter);return i}handleKeyDown(e){super.handleKeyDown(e);let t=this.getWrapperHasFocus();switch(e.key){case oK.UP:case oK.DOWN:case oK.LEFT:case oK.RIGHT:if(t)return;si(e);case oK.ENTER:t&&r5(this.eGui)&&e.preventDefault();break;case oK.ESCAPE:t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;let t=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),i=!!e.relatedTarget&&eP(e.relatedTarget,"ag-floating-filter");if(t&&i&&e.target===this.eGui){let e=this.lastFocusEvent,t=!!(e&&e.key===oK.TAB);if(e&&t){let t=e.shiftKey;r5(this.eGui,t)}}this.focusThis()}setupHover(e){this.beans.colHover?.addHeaderFilterColumnHoverListener(e,this.comp,this.column,this.eGui)}setupLeft(e){let t=new s$(this.column,this.eGui,this.beans);e.createManagedBean(t)}setupFilterButton(){this.suppressFilterButton=!this.beans.menuSvc?.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!iW(this.gos)}setupUserComp(){if(!this.active)return;let e=this.beans.colFilter?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}showParentFilter(){let e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.beans.menuSvc?.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(e){if(!this.active)return;let{beans:{colFilter:t},column:i,gos:o}=this,r=e=>{if(e?.source==="filterDestroyed"&&(!this.isAlive()||!t?.isAlive()))return;let r=this.comp.getFloatingFilterComp();r&&r.then(r=>{if(r){if(o.get("enableFilterHandlers")){let t="filter";e?.afterFloatingFilter?t="ui":e?.afterDataChange?t="dataChanged":e?.source==="api"&&(t="api"),this.updateFloatingFilterParams(this.userCompDetails,t);return}let s=t?.getCurrentFloatingFilterParentModel(i),n=e?{...e,columns:e.columns??[],source:"api"===e.source?"api":"columnFilter"}:null;r.onParentModelChanged(s,n)}})};[this.destroySyncListener]=e.addManagedListeners(i,{filterChanged:r}),t?.isFilterActive(i)&&r(null)}setupWidth(e){let t=()=>{let e=`${this.column.getActualWidth()}px`;this.comp.setWidth(e)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupFilterChangedListener(e){this.active&&([this.destroyFilterChangedListener]=e.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){if(!this.suppressFilterButton&&this.comp){let e=!!this.beans.filterManager?.is
47FilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(e){let t=this.active;this.setupActive();let i=!t&&this.active;t&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());let o=this.beans.colFilter,r=this.active?o?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,s=this.comp.getFloatingFilterComp();s&&r?s.then(t=>{!t||o?.areFilterCompsDifferent(this.userCompDetails??null,r)?this.updateCompDetails(e,r,i):this.updateFloatingFilterParams(r,"colDef")}):this.updateCompDetails(e,r,i)}updateCompDetails(e,t,i){this.isAlive()&&(this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),i&&(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)))}updateFloatingFilterParams(e,t){if(!e)return;let i=e.params;this.comp.getFloatingFilterComp()?.then(e=>{"function"==typeof e?.refresh&&(this.gos.get("enableFilterHandlers")&&(i={...i,model:mP(this.beans.colFilter?.model??{},this.column.getColId()),source:t}),e.refresh(i))})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};function mM(e,t,i){e.menuVisible!==t&&(e.menuVisible=t,e.dispatchColEvent("menuVisibleChanged",i))}function mk(e){let{enterpriseMenuFactory:t,filterMenuFactory:i,gos:o}=e;return t&&iW(o)?t:i}var mT={moduleName:"SharedMenu",version:tU,beans:[class extends tc{constructor(){super(...arguments),this.beanName="menuSvc"}postConstruct(){let{enterpriseMenuFactory:e,filterMenuFactory:t}=this.beans;this.activeMenuFactory=e??t}showColumnMenu(e){this.showColumnMenuCommon(this.activeMenuFactory,e,"columnMenu")}showFilterMenu(e){this.showColumnMenuCommon(mk(this.beans),e,e.containerType,!0)}showHeaderContextMenu(e,t,i){this.activeMenuFactory?.showMenuAfterContextMenuEvent(e,t,i)}hidePopupMenu(){this.beans.contextMenuSvc?.hideActiveMenu(),this.activeMenuFactory?.hideActiveMenu()}hideFilterMenu(){mk(this.beans)?.hideActiveMenu()}isColumnMenuInHeaderEnabled(e){let{suppressHeaderMenuButton:t}=e.getColDef();return!t&&!!this.activeMenuFactory?.isMenuEnabled(e)&&(iW(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){return!e.getColDef().suppressHeaderFilterButton&&!!this.beans.filterManager?.isFilterAllowed(e)}isHeaderContextMenuEnabled(e){let t=e&&iJ(e)?e.getColDef():e?.getColGroupDef();return!t?.suppressHeaderContextMenu&&"new"===this.gos.get("columnMenu")}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){let e=!this.isSuppressMenuHide();return!(rQ()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!iW(this.gos)&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){return!!this.beans.filterManager?.isFilterAllowed(e)&&!iW(this.gos)&&!this.isFilterMenuInHeaderEnabled(e)&&!this.isFloatingFilterButtonDisplayed(e)}isFloatingFilterButtonEnabled(e){return!e.getColDef().suppressFloatingFilterButton}isFloatingFilterButtonDisplayed(e){return!!e.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(e)}isSuppressMenuHide(){let e=this.gos,t=e.get("suppressMenuHide");return iW(e)?!!e.exists("suppressMenuHide")&&t:t}showColumnMenuCommon(e,t,i,o){let{positionBy:r,onClosedCallback:s}=t,n=t.column;if("button"===r){let{buttonElement:r}=t;e?.showMenuAfterButtonClick(n,r,i,s,o)}else if("mouse"===r){let{mouseEvent:r}=t;e?.showMenuAfterMouseEvent(n,r,i,s,o)}else if(n){let t=this.beans,r=t.ctrlsSvc;r.getScrollFeature().ensureColumnVisible(n,"auto"),e0(t,()=>{let t=r.getHeaderRowContainerCtrl(n.getPinned())?.getHeaderCtrlForColumn(n);t&&e?.showMenuAfterButtonClick(n,t.getAnchorElementForMenu(o),i,s,o)})}}}],apiFunctions:{showColumnMenu:function(e,t){let i=e.colModel.getCol(t);if(!i)return void t0(12,{colKey:t});e.menuSvc?.showColumnMenu({column:i,positionBy:"auto"})},hidePopupMenu:function(e){e.menuSvc?.hidePopupMenu()}}},mA={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},mI=["january","february","march","april","may","june","july","august","september","october","november","december"];function mL(e,t){return null==e?-1:null==t?1:Number.parseFloat(e)-Number.parseFloat(t)}function mB(e,t){if(null==e)return -1;if(null==t)return 1;let i=a9(e),o=a9(t);return null!=i&&null!=o?i===o?0:i>o?1:-1:String(e).localeCompare(String(t))}function mH(e){return e instanceof Date&&!isNaN(e.getTime())}var mV={number:()=>void 0,bigint:()=>void 0,boolean:()=>({maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(e,t)=>
47t,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,t)=>!1===t,numberOfInputs:0}]}),date:()=>({isValidDate:mH}),dateString:({dataTypeDefinition:e})=>({comparator:(t,i)=>{let o=e.dateParser(i);return null==i||o<t?-1:+(o>t)},isValidDate:t=>"string"==typeof t&&mH(e.dateParser(t))}),dateTime:e=>mV.date(e),dateTimeString:e=>mV.dateString(e),object:()=>void 0,text:()=>void 0},mG={number:()=>({comparator:mL}),bigint:()=>({comparator:mB}),boolean:({t:e})=>({valueFormatter:t=>F(t.value)?e(String(t.value),t.value?"True":"False"):e("blanks","(Blanks)")}),date:({formatValue:e,t})=>({valueFormatter:i=>{let o=e(i);return F(o)?o:t("blanks","(Blanks)")},treeList:!0,treeListFormatter:(e,i)=>{if("NaN"===e)return t("invalidDate","Invalid Date");if(1===i&&null!=e){let i=mI[Number(e)-1];return t(i,mA[i])}return e??t("blanks","(Blanks)")},treeListPathGetter:e=>ds(e,!1)}),dateString:({formatValue:e,dataTypeDefinition:t,t:i})=>({valueFormatter:t=>{let o=e(t);return F(o)?o:i("blanks","(Blanks)")},treeList:!0,treeListPathGetter:e=>ds(t.dateParser(e??void 0),!1),treeListFormatter:(e,t)=>{if(1===t&&null!=e){let t=mI[Number(e)-1];return i(t,mA[t])}return e??i("blanks","(Blanks)")}}),dateTime:e=>{let t=mG.date(e);return t.treeListPathGetter=ds,t},dateTimeString(e){let t=e.dataTypeDefinition.dateParser,i=mG.dateString(e);return i.treeListPathGetter=e=>ds(t(e??void 0)),i},object:({formatValue:e,t})=>({valueFormatter:i=>{let o=e(i);return F(o)?o:t("blanks","(Blanks)")}}),text:()=>void 0};function mO(e,t,i,o,r,s,n){let l=i,a="agSetColumnFilter"===e;l||"object"!==o.baseDataType||a||(l=({column:e,node:t})=>r({column:e,node:t,value:s.valueSvc.getValue(e,t,"data")}));let d=(0,(a?mG:mV)[o.baseDataType])({dataTypeDefinition:o,formatValue:r,t:n});return{filterParams:"object"==typeof t?{...d,...t}:d,filterValueGetter:l}}var mN={boolean:"agTextColumnFilter",date:"agDateColumnFilter",dateString:"agDateColumnFilter",dateTime:"agDateColumnFilter",dateTimeString:"agDateColumnFilter",bigint:"agBigIntColumnFilter",number:"agNumberColumnFilter",object:"agTextColumnFilter",text:"agTextColumnFilter"},mz={boolean:"agTextColumnFloatingFilter",date:"agDateColumnFloatingFilter",dateString:"agDateColumnFloatingFilter",dateTime:"agDateColumnFloatingFilter",dateTimeString:"agDateColumnFloatingFilter",bigint:"agBigIntColumnFloatingFilter",number:"agNumberColumnFloatingFilter",object:"agTextColumnFloatingFilter",text:"agTextColumnFloatingFilter"};function mW(e,t=!1){return(t?mz:mN)[e??"text"]}function mU(e,t,i){if(null==t)return null;let o=null,{compName:r,jsComp:s,fwComp:n}=rt(e,t,rm);return r?o=({agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agBigIntColumnFilter:"agBigIntColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"})[r]:null==s&&null==n&&!0===t.filter&&(o=i()),o}var m_={filterHandler:()=>({doesFilterPass:()=>!0})};function m$(e,t,i,o){return!e.isPrimary()||!!e.isValueActive()&&!i&&(!!t||o)}var mq=class extends tc{constructor(){super(...arguments),this.beanName="colFilter",this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.modelUpdates=[],this.columnModelUpdates=[],this.state=new Map,this.handlerMap={...mb},this.isGlobalButtons=!1,this.activeFilterComps=new Set}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.addManagedPropertyListener("pivotMode",this.onPivotModeChanged.bind(this));let e=this.gos,t={...e.get("initialState")?.filter?.filterModel??{}};this.initialModel=t,this.model={...t},e.get("enableFilterHandlers")||delete this.handlerMap.agMultiColumnFilter}refreshModel(){this.onNewRowsLoaded("rowDataUpdated")}setModel(e,t="api",i){let{colModel:o,dataTypeSvc:r,filterManager:s}=this.beans;if(r?.isPendingInference)return void this.modelUpdates.push({model:e,source:t});let n=[],l=this.getModel(!0);if(e){let t=new Set(Object.keys(e));
47this.allColumnFilters.forEach((i,o)=>{let r=e[o];n.push(this.setModelOnFilterWrapper(i,r)),t.delete(o)}),t.forEach(t=>{let i=o.getColDefCol(t)||o.getCol(t);if(!i)return void tX(62,{colId:t});if(!i.isFilterAllowed())return void tX(63,{colId:t});let r=this.getOrCreateFilterWrapper(i,!0);if(!r)return void tX(64,{colId:t});n.push(this.setModelOnFilterWrapper(r,e[t],!0))})}else this.model={},this.allColumnFilters.forEach(e=>{n.push(this.setModelOnFilterWrapper(e,null))});oQ.all(n).then(()=>{let e=this.getModel(!0),o=[];this.allColumnFilters.forEach((t,i)=>{M(l?l[i]:null,e?e[i]:null)||o.push(t.column)}),o.length>0?s?.onFilterChanged({columns:o,source:t}):i&&this.updateActive("filterChanged")})}getModel(e){let t={},{allColumnFilters:i,initialModel:o,beans:{colModel:r}}=this;if(i.forEach((e,i)=>{let o=this.getModelFromFilterWrapper(e);F(o)&&(t[i]=o)}),!e)for(let e of Object.keys(o)){let s=o[e];F(s)&&!i.has(e)&&r.getCol(e)?.isFilterAllowed()&&(t[e]=s)}return t}setState(e,t,i="api"){if(this.state.clear(),t)for(let e of Object.keys(t)){let i=t[e];this.state.set(e,{model:mP(this.model,e),state:i})}this.setModel(e,i,!0)}getState(){let e=this.state;if(!e.size)return;let t={},i=!1;return e.forEach((e,o)=>{let r=e.state;null!=r&&(i=!0,t[o]=r)}),i?t:void 0}getModelFromFilterWrapper(e){let t=e.column.getColId();if(e.isHandler)return mP(this.model,t);let i=e.filter;return i?"function"!=typeof i.getModel?(tX(66),null):i.getModel():mP(this.initialModel,t)}isFilterPresent(){return this.activeColumnFilters.length>0}isAggFilterPresent(){return!!this.activeAggregateFilters.length}disableFilters(){this.initialModel={};let{allColumnFilters:e}=this;return!!e.size&&(e.forEach(e=>this.disposeFilterWrapper(e,"advancedFilterEnabled")),!0)}updateActiveFilters(){let{colModel:e,gos:t}=this.beans,i=!!ic(t),o=[],r=[],s=(t,s,n)=>{s&&(m$(t,e.isPivotMode(),e.isPivotActive(),i)?o.push(n):r.push(n))},n=[];return this.allColumnFilters.forEach(e=>{let t=e.column,i=t.getColId();if(e.isHandler)n.push(oQ.resolve().then(()=>{s(t,this.isHandlerActive(t),{colId:i,isHandler:!0,handler:e.handler,handlerParams:e.handlerParams})}));else{let o=mS(e);o&&n.push(o.then(e=>{s(t,!!e&&(e.isFilterActive?e.isFilterActive():(tX(67),!1)),{colId:i,isHandler:!1,comp:e})}))}}),oQ.all(n).then(()=>{this.activeAggregateFilters=o,this.activeColumnFilters=r})}updateFilterFlagInColumns(e,t){let i=[];return this.allColumnFilters.forEach(o=>{let r=o.column;if(o.isHandler)i.push(oQ.resolve().then(()=>{this.setColFilterActive(r,this.isHandlerActive(r),e,t)}));else{let s=mS(o);s&&i.push(s.then(i=>{this.setColFilterActive(r,i.isFilterActive(),e,t)}))}}),this.beans.groupFilter?.updateFilterFlags(e,t),oQ.all(i)}doFiltersPass(e,t,i){let{data:o,aggData:r}=e,s=i?this.activeAggregateFilters:this.activeColumnFilters,n=i?r:o,l=this.model;for(let i=0;i<s.length;i++){let o=s[i],{colId:r,isHandler:a}=o;if(r!==t)if(a){let{handler:t,handlerParams:i}=o;if(!t.doesFilterPass({node:e,data:n,model:mP(l,r),handlerParams:i}))return!1}else{let t=o.comp;if("function"!=typeof t.doesFilterPass){t0(91);continue}if(!t.doesFilterPass({node:e,data:n}))return!1}}return!0}getHandlerParams(e){let t=this.allColumnFilters.get(e.getColId());return t?.isHandler?t.handlerParams:void 0}callOnFilterChangedOutsideRenderCycle(e){let{rowRenderer:t,filterManager:i}=this.beans,o=()=>{this.isAlive()&&i?.onFilterChanged(e)};t.isRefreshInProgress()?setTimeout(o,0):o()}updateBeforeFilterChanged(e={}){let{column:t,additionalEventAttributes:i}=e,o=t?.getColId();return this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",i).then(()=>{this.allColumnFilters.forEach(e=>{let{column:t,isHandler:i}=e;o!==t.getColId()&&(i&&e.handler.onAnyFilterChanged?.(),mS(e,i)?.then(e=>{"function"==typeof e?.onAnyFilterChanged&&e.onAnyFilterChanged()}))}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){return!this.gos.get("allowShowChangeAfterFilter")&&this.processingFilterChange}onNewRowsLoaded(e){let t=[];this.allColumnFilters.forEach(e=>{let i=e.isHandler;i&&e.handler.onNewRowsLoaded?.();let o=mS(e,i);o&&t.push(o.then(e=>{e.onNewRowsLoaded?.()}))}),oQ.all(t).then(()=>this.updateActive(e,{afterDataChange:!0}))}updateActive(e,t){this.updateFilterFlagInColumns(e,t).then(()=>this.updateActiveFilters())}createGetValue(e,t){let{filterValueSvc:i,colModel:o}=this.beans;return(r,s)=>{let n=s?o.getCol(s):e;return n?i.getValue(n,r,t):void 0}}isFilterActive(e){let t=this.cachedFilter(e);if(t?.isHandler)return this.isHandlerActive(e);let i=t?.filter;return i?i.isFilterActive():null!=mP(this.initialModel,e.getColId())}isHandlerActive(e){let t=F(mP(this.model,e.getColId()));if(t)return t;let i=this.beans.groupFilter;return!!i?.isGroupFilter(e)&&i.isFilterActive(e)}getOrCreateFilterUi(e){let t=this.getOrCreateFilterWrapper(e,!0);return t?mS(t):null}getFilterUiForDisplay(e){let t=this.getOrCreateFilterWrapper(e,!0);if(!t)return null;let i=mS(t);return i?i.then(e=>({comp:e,params:t.filterUi.filterParams,isHandler:t.isHandler})):null}getHandler(e,t){let i=this.getOrCreateFilterWrapper(e,t);return i?.isHandler?i.handler:void 0}getOrCreateFilterWrapper(e,t){if(!e.isFilterAllowed())return;let i=this.cachedFilter(e);return!i&&t&&(i=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,i)),i}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}getDefaultFilter(e,t=!1){return this.getDefaultFilterFromDataType(()=>this.beans.dataTypeSvc?.getBaseDataType(e),t)}getDefaultFilterFromDataType(e,t=!1){return iz(this.gos)?t?"agSetColumnFloatingFilter":"agSetColumnFilter":mW(e(),t)}getDefaultFloatingFilter(e){return this.getDefaultFilter(e,!0)}createFilterComp(e,t,i,o,r,s){let n=()=>{let n=o(this.createFilterCompParams(e,r,s),r);return rF(this.beans.userCompFactory,t,n,i)},l=n();
47return l?{compDetails:l,createFilterUi:e=>(e?n():l).newAgStackInstance()}:null}createFilterInstance(e,t,i,o){let r=this.beans.selectableFilter;r?.isSelectable(t)&&(t=r.getFilterDef(e,t));let{handler:s,handlerParams:n,handlerGenerator:l}=this.createHandler(e,t,i)??{},a=this.createFilterComp(e,t,i,o,!!s,"init");if(!a)return{compDetails:null,createFilterUi:null,handler:s,handlerGenerator:l,handlerParams:n};let{compDetails:d,createFilterUi:h}=a;return this.isGlobalButtons&&(d.params?.buttons?.length||tX(281,{colId:e.getColId()})),{compDetails:d,handler:s,handlerGenerator:l,handlerParams:n,createFilterUi:h}}createBaseFilterParams(e,t){let{filterManager:i,rowModel:o}=this.beans;return iK(this.gos,{column:e,colDef:e.getColDef(),getValue:this.createGetValue(e),doesRowPassOtherFilter:t?()=>!0:t=>i?.doesRowPassOtherFilters(e.getColId(),t)??!0,rowModel:o})}createFilterCompParams(e,t,i,o){let r=this.filterChangedCallbackFactory(e),s=this.createBaseFilterParams(e,o);if(s.filterChangedCallback=r,s.filterModifiedCallback=o?()=>{}:t=>this.filterModified(e,t),t){let t=e.getColId(),o=mP(this.model,t);s.model=o,s.state=this.state.get(t)??{model:o},s.onModelChange=(i,o)=>{this.updateStoredModel(t,i),this.refreshHandlerAndUi(e,i,"ui",!1,o).then(()=>{r({...o,source:"columnFilter"})})},s.onStateChange=t=>{this.updateState(e,t),this.updateOrRefreshFilterUi(e)},s.onAction=(t,i,o)=>{this.updateModel(e,t,i),this.dispatchLocalEvent({type:"filterAction",column:e,action:t,event:o})},s.getHandler=()=>this.getHandler(e,!0),s.onUiChange=t=>this.filterUiChanged(e,t),s.source=i}return s}createFilterUiForHandler(e,t){return t?{created:!1,create:t,filterParams:e.params,compDetails:e}:null}createFilterUiLegacy(e,t,i){let o=t(),r={created:!0,create:t,filterParams:e.params,compDetails:e,promise:o};return o.then(i),r}createFilterWrapper(e){let{compDetails:t,handler:i,handlerGenerator:o,handlerParams:r,createFilterUi:s}=this.createFilterInstance(e,e.getColDef(),this.getDefaultFilter(e),e=>e),n=e.getColId();if(i)return delete this.initialModel[n],i.init?.({...r,source:"init",model:mP(this.model,n)}),{column:e,isHandler:!0,handler:i,handlerGenerator:o,handlerParams:r,filterUi:this.createFilterUiForHandler(t,s)};if(s){let i={column:e,filterUi:null,isHandler:!1};return i.filterUi=this.createFilterUiLegacy(t,s,e=>{i.filter=e??void 0}),i}return{column:e,filterUi:null,isHandler:!1}}createHandlerFunc(e,t,i){let o,r,s,{gos:n,frameworkOverrides:l,registry:a}=this.beans,d=n.get("enableFilterHandlers"),h=d?(e=>{let t=e.filter;if(re(t)){let e=t.handler;return e||((o=t.doesFilterPass)?()=>({doesFilterPass:o}):void 0)}return"string"==typeof t?t:void 0})(t):void 0,u=e=>()=>this.createBean(a.createDynamicBean(e,!0));if("string"==typeof h){let e=n.get("filterHandlers")?.[h];null!=e?r=e:my.has(h)&&(r=u(h),s=h)}else r=h;if(!r){let e,{compName:o,jsComp:n,fwComp:a}=rt(l,t,rm);o?e=o:null==n&&null==a&&!0===t.filter&&(e=i),(s=this.handlerMap[e])&&(r=u(s))}if(!r){if(!d)return;return t8(n)&&tX(277,{colId:e.getColId()}),m_}return{filterHandler:r,handlerNameOrCallback:o??s}}createHandler(e,t,i){let o=this.createHandlerFunc(e,t,i);if(!o)return;let r=rD(this.beans.userCompFactory,t,this.createFilterCompParams(e,!0,"init")),{handlerNameOrCallback:s,filterHandler:n}=o,{handler:l,handlerParams:a}=this.createHandlerFromFunc(e,n,r);return{handler:l,handlerParams:a,handlerGenerator:s??n}}createHandlerFromFunc(e,t,i){let o=e.getColDef();return{handler:t(iK(this.gos,{column:e,colDef:o}
47)),handlerParams:this.createHandlerParams(e,i)}}createHandlerParams(e,t){let i=e.getColDef(),o=e.getColId(),r=this.filterChangedCallbackFactory(e);return iK(this.gos,{colDef:i,column:e,getValue:this.createGetValue(e),doesRowPassOtherFilter:e=>this.beans.filterManager?.doesRowPassOtherFilters(o,e)??!0,onModelChange:(t,i)=>{this.updateStoredModel(o,t),this.refreshHandlerAndUi(e,t,"handler",!1,i).then(()=>{r({...i,source:"columnFilter"})})},onModelAsStringChange:()=>{e.dispatchColEvent("filterChanged","filterChanged"),this.dispatchLocalEvent({type:"filterModelAsStringChanged",column:e})},filterParams:t})}onColumnsChanged(){let e=[],{colModel:t,filterManager:i,groupFilter:o}=this.beans;this.allColumnFilters.forEach((i,o)=>{let r;(r=i.column.isPrimary()?t.getColDefCol(o):t.getCol(o))&&r===i.column||(e.push(i.column),this.disposeFilterWrapper(i,"columnChanged"),this.disposeColumnListener(o))});let r=o&&e.every(e=>o.isGroupFilter(e));e.length>0&&!r&&i?.onFilterChanged({columns:e,source:"api"})}isFilterAllowed(e){if(!e.isFilterAllowed())return!1;let t=this.beans.groupFilter;return!t?.isGroupFilter(e)||t.isFilterAllowed(e)}getFloatingFilterCompDetails(e,t){let{userCompFactory:i,frameworkOverrides:o,selectableFilter:r,gos:s}=this.beans,n=t=>{let i=this.getOrCreateFilterUi(e);i?.then(e=>{t(u1(e))})},l=e.getColDef(),a=r?.isSelectable(l)?r.getFilterDef(e,l):l,d=mU(o,a,()=>this.getDefaultFloatingFilter(e))??"agReadOnlyFloatingFilter",h=s.get("enableFilterHandlers"),u=rD(i,a,this.createFilterCompParams(e,h,"init",!0)),c=iK(s,{column:e,filterParams:u,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:n,showParentFilter:t});if(h){let t=e.getColId(),i=this.filterChangedCallbackFactory(e);c.onUiChange=t=>this.floatingFilterUiChanged(e,t),c.model=mP(this.model,t),c.onModelChange=(o,r)=>{this.updateStoredModel(t,o),this.refreshHandlerAndUi(e,o,"floating",!0,r).then(()=>{i({...r,source:"columnFilter"})})},c.getHandler=()=>this.getHandler(e,!0),c.source="init"}return rP(i,l,c,d)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilterUi(e,t,i,o){let r="paramsUpdated";if(e.isHandler){let s=t.getColId();delete this.initialModel[s],this.state.delete(s);let n=e.filterUi;e.filterUi=this.createFilterUiForHandler(i,o);let l=this.eventSvc;n?.created?n.promise.then(e=>{this.destroyBean(e),l.dispatchEvent({type:"filterDestroyed",source:r,column:t})}):l.dispatchEvent({type:"filterHandlerDestroyed",source:r,column:t})}else this.destroyFilter(t,r)}destroyFilter(e,t="api"){let i=e.getColId(),o=this.allColumnFilters.get(i);this.disposeColumnListener(i),delete this.initialModel[i],o&&this.disposeFilterWrapper(o,t).then(t=>{t&&this.isAlive()&&this.beans.filterManager?.onFilterChanged({columns:[e],source:"api"})})}disposeColumnListener(e){let t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())}disposeFilterWrapper(e,t){let i=!1,{column:o,isHandler:r,filterUi:s}=e,n=o.getColId();r&&(i=this.isHandlerActive(o),this.destroyBean(e.handler),delete this.model[n],this.state.delete(n));let l=()=>{this.setColFilterActive(o,!1,"filterDestroyed"),this.allColumnFilters.delete(n),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:t,column:o})};if(s)if(s.created)return s.promise.then(e=>(i=r?i:!!e?.isFilterActive(),this.destroyBean(e),l(),i));else l();return oQ.resolve(i)}filterChangedCallbackFactory(e){return t=>{this.callOnFilterChangedOutsideRenderCycle({additionalEventAttributes:t,columns:[e],column:e,source:t?.source??"columnFilter"})}}filterParamsChanged(e,t="api"){let i=this.allColumnFilters.get(e);if(!i)return;let o=this.beans,r=i.column,s=r.getColDef(),n=r.isFilterAllowed(),l=this.getDefaultFilter(r),a=o.selectableFilter,d=a?.isSelectable(s)?a.getFilterDef(r,s):s,h=n?this.createHandlerFunc(r,d,this.getDefaultFilter(r)):void 0,u=!!h,c=i.isHandler;if(c!=u)return void this.destroyFilter(r,"paramsUpdated");let{compDetails:g,createFilterUi:p}=(n?this.createFilterComp(r,d,l,e=>e,u,"colDef"):null)??{compDetails:null,createFilterUi:null},m=g?.params??rD(o.userCompFactory,d,this.createFilterCompParams(r,u,"colDef"));if(c){let o=h?.handlerNameOrCallback??h?.filterHandler,s=mP(this.model,e);if(i.handlerGenerator!=o){let n=i.handler,{handler:l,handlerParams:a}=this.createHandlerFromFunc(r,h.filterHandler,m);i.handler=l,i.handlerParams=a,i.handlerGenerator=o,delete this.model[e],l.init?.({...a,source:"init",model:null}),this.destroyBean(n),null!=s&&this.beans.filterManager?.onFilterChanged({columns:[r],source:t})}else{let e=this.createHandlerParams(r,g?.params);i.handlerParams=e,i.handler.refresh?.({...e,source:"colDef",model:s})}}
47if(this.areFilterCompsDifferent(i.filterUi?.compDetails??null,g)||!i.filterUi||!g)return void this.destroyFilterUi(i,r,g,p);i.filterUi.filterParams=m,mS(i,c)?.then(e=>{!1===(!e?.refresh||e.refresh(m))?this.destroyFilterUi(i,r,g,p):this.dispatchLocalEvent({type:"filterParamsChanged",column:r,params:m})})}refreshHandlerAndUi(e,t,i,o,r){let s=this.cachedFilter(e);if(!s)return o&&this.getOrCreateFilterWrapper(e,!0),oQ.resolve();if(!s.isHandler)return oQ.resolve();let{filterUi:n,handler:l,handlerParams:a}=s;return mR(()=>{if(n){let{created:e,filterParams:t}=n;if(e)return n.promise.then(e=>e?{filter:e,filterParams:t}:void 0);n.refreshed=!0}return oQ.resolve(void 0)},l,a,t,this.state.get(e.getColId())??{model:t},i,r)}setColumnFilterWrapper(e,t){let i=e.getColId();this.allColumnFilters.set(i,t),this.allColumnListeners.set(i,this.addManagedListeners(e,{colDefChanged:()=>this.filterParamsChanged(i)})[0])}areFilterCompsDifferent(e,t){if(!t||!e)return!0;let{componentClass:i}=e,{componentClass:o}=t;return!(i===o||i?.render&&o?.render&&i.render===o.render)}hasFloatingFilters(){return this.beans.colModel.getCols().some(e=>e.getColDef().floatingFilter)}getFilterInstance(e){let t=this.beans.colModel.getColDefCol(e);if(!t)return Promise.resolve(void 0);let i=this.getOrCreateFilterUi(t);return i?new Promise(e=>{i.then(t=>{e(u1(t))})}):Promise.resolve(null)}processFilterModelUpdateQueue(){this.modelUpdates.forEach(({model:e,source:t})=>this.setModel(e,t)),this.modelUpdates=[],this.columnModelUpdates.forEach(({key:e,model:t,resolve:i})=>{this.setModelForColumn(e,t).then(()=>i())}),this.columnModelUpdates=[]}getModelForColumn(e,t){if(t){let{state:t,model:i}=this,o=e.getColId(),r=t.get(o);return r?r.model??null:mP(i,o)}let i=this.cachedFilter(e);return i?this.getModelFromFilterWrapper(i):null}setModelForColumn(e,t){if(this.beans.dataTypeSvc?.isPendingInference){let i=()=>{},o=new Promise(e=>{i=e});return this.columnModelUpdates.push({key:e,model:t,resolve:i}),o}return new Promise(i=>{this.setModelForColumnLegacy(e,t).then(e=>i(e))})}getStateForColumn(e){return this.state.get(e)??{model:mP(this.model,e)}}setModelForColumnLegacy(e,t){let i=this.beans.colModel.getColDefCol(e),o=i?this.getOrCreateFilterWrapper(i,!0):null;return o?this.setModelOnFilterWrapper(o,t):oQ.resolve()}setColDefPropsForDataType(e,t,i){let o,r,s=e.filter,n=!0===s?this.getDefaultFilterFromDataType(()=>t.baseDataType):s;if("string"!=typeof n)return;let l=this.beans,{filterParams:a,filterValueGetter:d}=e;"agMultiColumnFilter"===n?{filterParams:o,filterValueGetter:r}
47=l.multiFilter?.getParamsForDataType(a,d,t,i)??{}:{filterParams:o,filterValueGetter:r}=mO(n,a,d,t,i,l,this.getLocaleTextFunc()),e.filterParams=o,r&&(e.filterValueGetter=r)}setColFilterActive(e,t,i,o){e.filterActive!==t&&(e.filterActive=t,e.dispatchColEvent("filterActiveChanged",i)),e.dispatchColEvent("filterChanged",i,o)}setModelOnFilterWrapper(e,t,i){return new oQ(o=>{if(e.isHandler){let r=e.column,s=r.getColId(),n=this.model[s];return(this.updateStoredModel(s,t),i&&t===n)?void o():void this.refreshHandlerAndUi(r,t,"api").then(()=>o())}let r=mS(e);if(r)return void r.then(e=>{if("function"!=typeof e?.setModel){tX(65),o();return}(e.setModel(t)||oQ.resolve()).then(()=>o())});o()})}updateStoredModel(e,t){F(t)?this.model[e]=t:delete this.model[e];let i=this.state.get(e),o={model:t,state:i?.state};this.state.set(e,o)}filterModified(e,t){this.getOrCreateFilterUi(e)?.then(i=>{this.eventSvc.dispatchEvent({type:"filterModified",column:e,filterInstance:i,...t})})}filterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"filterUiChanged",column:e,...t})}floatingFilterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"floatingFilterUiChanged",column:e,...t})}updateModel(e,t,i){let o=e.getColId(),r=this.cachedFilter(e),s=()=>r?.filterUi;mF({action:t,filterParams:r?.filterUi?.filterParams,getFilterUi:s,getModel:()=>mP(this.model,o),getState:()=>this.state.get(o),updateState:t=>this.updateState(e,t),updateModel:e=>s()?.filterParams?.onModelChange(e,{...i,fromAction:t}),processModelToApply:r?.isHandler?r.handler.processModelToApply?.bind(r.handler):void 0})}updateAllModels(e,t){let i=[];this.allColumnFilters.forEach((t,o)=>{let r=this.beans.colModel.getColDefCol(o);r&&mF({action:e,filterParams:t.filterUi?.filterParams,getFilterUi:()=>t.filterUi,getModel:()=>mP(this.model,o),getState:()=>this.state.get(o),updateState:e=>this.updateState(r,e),updateModel:t=>{this.updateStoredModel(o,t),this.dispatchLocalEvent({type:"filterAction",column:r,action:e}),i.push(this.refreshHandlerAndUi(r,t,"ui"))},processModelToApply:t?.isHandler?t.handler.processModelToApply?.bind(t.handler):void 0})}),i.length&&oQ.all(i).then(()=>{this.callOnFilterChangedOutsideRenderCycle({source:"columnFilter",additionalEventAttributes:t,columns:[]})})}updateOrRefreshFilterUi(e){let t=e.getColId();mx(()=>this.cachedFilter(e)?.filterUi,()=>mP(this.model,t),()=>this.state.get(t))}updateState(e,t){this.state.set(e.getColId(),t),this.dispatchLocalEvent({type:"filterStateChanged",column:e,state:t})}canApplyAll(){let{state:e,model:t,activeFilterComps:i}=this;for(let e of i)if("COLUMN_MENU"===e.source)return!1;let o=!1;for(let i of e.keys()){let r=e.get(i);if(!1===r.valid)return!1;(r.model??null)!==mP(t,i)&&(o=!0)}return o}hasUnappliedModel(e){let{model:t,state:i}=this;return(i.get(e)?.model??null)!==mP(t,e)}setGlobalButtons(e){this.isGlobalButtons=e,this.dispatchLocalEvent({type:"filterGlobalButtons",isGlobal:e})}shouldKeepStateOnDetach(e,t){if("newFiltersToolPanel"===t)return!0;let i=this.beans.filterPanelSvc;return!!i?.isActive&&!!i.getState(e.getColId())}onPivotModeChanged(e){let{colModel:t,pivotColsSvc:i}=this.beans,o=!!ic(this.gos),r=e.currentValue,s=r?this.activeColumnFilters:this.activeAggregateFilters,n=r?this.activeAggregateFilters:this.activeColumnFilters,l=[];for(let e of s){let s=t.getColById(e.colId),a=r&&!!i?.columns.length;s&&r===m$(s,r,a,o)&&(n.push(e),l.push(e))}S(s,l)}destroy(){super.destroy(),this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"gridDestroyed")),this.allColumnListeners.clear(),this.state.clear(),this.activeFilterComps.clear()}},mK=class extends tc{constructor(){super(...arguments),this.beanName="filterManager",this.advFilterModelUpdateQueue=[]}wireBeans(e){this.quickFilter=e.quickFilter,this.advancedFilter=e.advancedFilter,this.colFilter=e.colFilter}postConstruct(){let e=this.refreshFiltersForAggregations.bind(this),t=this.updateAdvFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:e,columnPivotChanged:e,columnPivotModeChanged:e,newColumnsLoaded:t,columnVisible:t,advancedFilterEnabledChanged:({enabled:e})=>this.onAdvFilterEnabledChanged(e),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],()=>{this.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",()=>{this.updateAggFiltering(),this.onFilterChanged()}),this.quickFilter&&this.addManagedListeners(this.quickFilter,{quickFilterChanged:()=>this.onFilterChanged({source:"quickFilter"})});let{gos:i}=this;this.alwaysPassFilter=i.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",()=>{this.alwaysPassFilter=i.get("alwaysPassFilter"),this.onFilterChanged({source:"api"})})}isExternalFilterPresentCallback(){let e=this.gos.getCallback("isExternalFilterPresent");return"function"==typeof e&&e({})}doesExternalFilterPass(e){let t=this.gos.get("doesExternalFilterPass");return"function"==typeof t&&t(e)}setFilterState(e,t,i="api"){this.isAdvFilterEnabled()||this.colFilter?.setState(e,t,i)}setFilterModel(e,t="api",i){if(this.isAdvFilterEnabled()){i||this.warnAdvFilters();return}this.colFilter?.setModel(e,t)}getFilterModel(){return this.colFilter?.getModel()??{}}getFilterState(){return this.colFilter?.getState()}isColumnFilterPresent(){return!!this.colFilter?.isFilterPresent()}isAggregateFilterPresent(){return!!this.colFilter?.isAggFilterPresent()}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.externalFilterPresent||this.isAdvFilterPresent()}isAnyFilterPresent(){return this.isChildFilterPresent()||this.isAggregateFilterPresent()}isAdvFilterPresent(){return this.isAdvFilterEnabled()&&this.advancedFilter.isFilterPresent()}onAdvFilterEnabledChanged(e){e?this.colFilter?.disableFilters()&&this.onFilterChanged({source:"advancedFilter"}):this.advancedFilter?.isFilterPresent()&&(this.advancedFilter.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvFilterEnabled(){return!!this.advancedFilter?.isEnabled()}isAdvFilterHeaderActive(){return this.isAdvFilterEnabled()&&this.advancedFilter.isHeaderActive()}refreshFiltersForAggregations(){ic(this.gos)&&this.isAnyFilterPresent()&&this.onFilterChanged()}onFilterChanged(e={}){let{source:t,additionalEventAttributes:i,columns:o=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(e):oQ.resolve()).then(()=>{let e={source:t,type:"filterChanged",columns:o};i&&tS(e,i),this.eventSvc.dispatchEvent(e),this.colFilter?.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){return!!this.colFilter?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilter?.isFilterPresent()}updateAggFiltering(){this.aggFiltering=!!ic(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.beans.colModel.isPivotMode())&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassOtherFilters(e,t){return this.doesRowPassFilter({rowNode:t,colIdToSkip:e})}doesRowPassAggregateFilters(e){let{rowNode:t}=e;return!!this.alwaysPassFilter?.(t)||!(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.isAggregateFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip,!0))}doesRowPassFilter(e){let{rowNode:t}=e;return!!this.alwaysPassFilter?.(t)||!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.externalFilterPresent&&!this.doesExternalFilterPass(t)||this.isColumnFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip)||this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(t))}isFilterAllowed(e){return!this.isAdvFilterEnabled()&&!!this.colFilter?.isFilterAllowed(e)}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getModel():null}
47setAdvFilterModel(e,t="api"){if(this.isAdvFilterEnabled()){if(this.beans.dataTypeSvc?.isPendingInference)return void this.advFilterModelUpdateQueue.push(e);this.advancedFilter.setModel(e??null),this.onFilterChanged({source:t})}}toggleAdvFilterBuilder(e,t){this.isAdvFilterEnabled()&&this.advancedFilter.getCtrl().toggleFilterBuilder({source:t,force:e})}updateAdvFilterColumns(){this.isAdvFilterEnabled()&&this.advancedFilter.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){return!this.isAdvFilterEnabled()&&!!this.colFilter?.hasFloatingFilters()}getColumnFilterInstance(e){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve(void 0)):this.colFilter?.getFilterInstance(e)??Promise.resolve(void 0)}warnAdvFilters(){tX(68)}setupAdvFilterHeaderComp(e){this.advancedFilter?.getCtrl().setupHeaderComp(e)}getHeaderRowCount(){return+!!this.isAdvFilterHeaderActive()}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){for(let e of this.advFilterModelUpdateQueue)this.setAdvFilterModel(e);this.advFilterModelUpdateQueue=[]}setColumnFilterModel(e,t){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve()):this.colFilter?.setModelForColumn(e,t)??Promise.resolve()}},mj=class extends tc{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(e){this.popupSvc=e.popupSvc}hideActiveMenu(){this.hidePopup?.()}showMenuAfterMouseEvent(e,t,i,o){(!e||e.isColumn)&&this.showPopup(e,o=>{this.popupSvc?.positionPopupUnderMouseEvent({additionalParams:{column:e},type:i,mouseEvent:t,ePopup:o})},i,t.target,iW(this.gos),o)}showMenuAfterButtonClick(e,t,i,o){if(e&&!e.isColumn)return;let r=-1,s="left",n=iW(this.gos);!n&&this.gos.get("enableRtl")&&(r=1,s="right");let l=n?void 0:4*r,a=n?void 0:4;this.showPopup(e,o=>{this.popupSvc?.positionPopupByComponent({type:i,eventSource:t,ePopup:o,nudgeX:l,nudgeY:a,alignSide:s,keepWithinBounds:!0,position:"under",additionalParams:{column:e}})},i,t,n,o)}showPopup(e,t,i,o,r,s){let n,l=e?this.createBean(new rN(e,"COLUMN_MENU")):void 0;if(this.activeMenu=l,!l?.hasFilter()||!e)return void t0(57);let a=e2({tag:"div",cls:`ag-menu${!r?" ag-filter-menu":""}`,role:"presentation"});[this.tabListener]=this.addManagedElementListeners(a,{keydown:e=>this.trapFocusWithin(e,a)}),a.appendChild(l?.getGui());let d=iU(this.gos)?o??this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,h=t=>{mM(e,!1,"contextMenu");let r=t instanceof KeyboardEvent;if(this.tabListener&&(this.tabListener=this.tabListener()),r&&o&&eO(o)){let e=r7(o);e?.focus({preventScroll:!0})}l?.afterGuiDetached(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,i,e),s?.()},u=this.getLocaleTextFunc(),c=r&&"columnFilter"!==i?u("ariaLabelColumnMenu","Column Menu"):u("ariaLabelColumnFilter","Column Filter"),g=this.popupSvc?.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:h,positionCallback:()=>t(a),anchorToElement:d,ariaLabel:c});g&&(this.hidePopup=n=g.hideFunc),l.afterInit().then(()=>{t(a),l.afterGuiAttached({container:i,hidePopup:n})}),mM(e,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,i,e)}trapFocusWithin(e,t){e.key!==oK.TAB||e.defaultPrevented||r8(this.beans,t,!1,e.shiftKey)||(e.preventDefault(),r5(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,i){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:t,column:i??null,columnGroup:null})}isMenuEnabled(e){return e.isFilterAllowed()&&(e.getColDef().menuTabs??["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}},mY=class extends tc{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(e,t,i){if(!t)return;let o=e.getColDef(),{selectableFilter:r,valueSvc:s,formula:n}=this.beans,l=i??r?.getFilterValueGetter(e.getColId())??o.filterValueGetter;if(l)return this.executeFilterValueGetter(l,t.data,e,t,o);let a=s.getValue(e,t,"data");return e.isAllowFormula()&&n?.isFormula(a)?n.resolveValue(e,t):a}executeFilterValueGetter(e,t,i,o,r){let{expressionSvc:s,valueSvc:n}=this.beans,l=iK(this.gos,{data:t,node:o,column:i,colDef:r,getValue:n.getValueCallback.bind(n,o)});return"function"==typeof e?e(l):s?.evaluate(e,l)}},mQ={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eFloatingFilterText"}]},mZ=class extends o5{constructor(){super(mQ,[pE]),this.eFloatingFilterText=oZ}init(e){this.params=e;let t=this.beans.colNames.getDisplayNameForColumn(e.column,"header",!0);if(this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${t} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`),this.gos.get("enableFilterHandlers")){let t=e.getHandler();if(t.getModelAsString){let i=t.getModelAsString(e.model);this.eFloatingFilterText.setValue(i)}}}onParentModelChanged(e){if(null==e)return void this.eFloatingFilterText.setValue("");this.params.parentFilterInstance(t=>{if(t.getModelAsString){let i=t.getModelAsString(e);this.eFloatingFilterText.setValue(i)}})}refresh(e){this.init(e)}},mJ=class extends na{constructor(e){super(e,"ag-radio-button","radio")}isSelected(){return this.eInput.checked}toggle(){!this.eInput.disabled&&(this.isSelected()||this.setValue(!0))}addInputListeners(){super.addInputListeners(),this.addManagedEventListeners({checkboxChanged:this.onChange.bind(this)})}onChange(e){let t=this.eInput;e.selected&&e.name&&t.name&&t.name===e.name&&e.id&&t.id!==e.id&&this.setValue(!1,!0)}},mX={selector:"AG-RADIO-BUTTON",component:mJ},m0=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions??t,this.mapCustomOptions(),this.defaultOption=this.getDefaultItem(e.defaultOption)}refresh(e,t){let i=e.filterOptions??t;this.filterOptions!==i&&(this.filterOptions=i,this.customFilterOptions={},this.mapCustomOptions()),this.defaultOption=this.getDefaultItem(e.defaultOption)}mapCustomOptions(){let{filterOptions:e}=this;if(e){for(let t of e)if("string"!=typeof t){if(![["displayKey"],["displayName"],["predicate","test"]].every(e=>!!e.some(e=>null!=t[e])||(tX(72,{keys:e}),!1))){this.filterOptions=e.filter(e=>e===t)||[];continue}
47this.customFilterOptions[t.displayKey]=t}}}getDefaultItem(e){let{filterOptions:t}=this;if(e)return e;if(t.length>=1){let e=t[0];if("string"==typeof e)return e;if(e.displayKey)return e.displayKey;tX(73)}else tX(74)}getCustomOption(e){return this.customFilterOptions[e]}};function m1(e,t,i){return null==i?e.splice(t):e.splice(t,i)}function m3(e){return null==e||"string"==typeof e&&0===e.trim().length}var m2=new Set(["empty","notBlank","blank","today","yesterday","tomorrow","thisWeek","lastWeek","nextWeek","thisMonth","lastMonth","nextMonth","thisQuarter","lastQuarter","nextQuarter","thisYear","lastYear","nextYear","yearToDate","last7Days","last30Days","last90Days","last6Months","last12Months","last24Months"]);function m6(e,t){let i=t.getCustomOption(e);if(i){let{numberOfInputs:e}=i;return null!=e?e:1}return e&&m2.has(e)?0:"inRange"===e?2:1}var m4=class extends sn{constructor(e,t,i){super(e,"simple-filter"),this.mapValuesFromModel=t,this.defaultOptions=i,this.eTypes=[],this.eJoinPanels=[],this.eJoinAnds=[],this.eJoinOrs=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}setParams(e){super.setParams(e);let t=new m0;this.optionsFactory=t,t.init(e,this.defaultOptions),this.commonUpdateSimpleParams(e),this.createOption(),this.createMissingConditionsAndOperators()}updateParams(e,t){this.optionsFactory.refresh(e,this.defaultOptions),super.updateParams(e,t),this.commonUpdateSimpleParams(e)}commonUpdateSimpleParams(e){var t;this.setNumConditions(e),this.defaultJoinOperator="AND"===(t=e.defaultJoinOperator)||"OR"===t?t:"AND",this.filterPlaceholder=e.filterPlaceholder,this.createFilterListOptions(),eZ(this.getGui(),"tabindex",this.isReadOnly()?"-1":null)}onFloatingFilterChanged(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged("immediately",!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach((t,i)=>{let o=0===i?e:this.optionsFactory.defaultOption;t.setValue(o,!0)})}getModelFromUi(){let e=this.getUiCompleteConditions();return 0===e.length?null:this.maxNumConditions>1&&e.length>1?{filterType:this.filterType,operator:this.getJoinOperator(),conditions:e}:e[0]}getConditionTypes(){return this.eTypes.map(e=>e.getValue())}getConditionType(e){return this.eTypes[e].getValue()}getJoinOperator(){let{eJoinOrs:e,defaultJoinOperator:t}=this;return 0===e.length?t:!0===e[0].getValue()?"OR":"AND"}areNonNullModelsEqual(e,t){let i=!e.operator,o=!t.operator;return(!!i||!o)&&(!i||!!o)&&(i?this.areSimpleModelsEqual(e,t):e.operator===t.operator&&w(e.conditions,t.conditions,(e,t)=>this.areSimpleModelsEqual(e,t)))}setModelIntoUi(e,t){if(null==e)return this.resetUiToDefaults(t),oQ.resolve();if(e.operator){var i,o;let t,r=e.conditions;null==r&&(r=[],tX(77));let s=(i=r,o=this.maxNumConditions,(t=i.length)>o&&(i.splice(o),tX(78),t=o),t),n=this.getNumConditions();if(s<n)this.removeConditionsAndOperators(s);else if(s>n)for(let e=n;e<s;e++)this.createJoinOperatorPanel(),this.createOption();let l="OR"===e.operator;this.eJoinAnds.forEach(e=>e.setValue(!l,!0)),this.eJoinOrs.forEach(e=>e.setValue(l,!0)),r.forEach((e,t)=>{this.eTypes[t].setValue(e.type,!0),this.setConditionIntoUi(e,t)})}else this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(e.type,!0),this.setConditionIntoUi(e,0);return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.updateUiVisibility(),t||this.params.onUiChange(this.getUiChangeEventParams()),oQ.resolve()}setNumConditions(e){let t=e.maxNumConditions??2;t<1&&(tX(79),t=1),this.maxNumConditions=t;let i=e.numAlwaysVisibleConditions??1;i<1&&(tX(80),i=1),i>t&&(tX(81),i=t),this.numAlwaysVisibleConditions=i}createOption(){let e=this.getGui(),t=this.createManagedBean(new p_);this.eTypes.push(t),t.addCss("ag-filter-select"),e.appendChild(t.getGui());let i=this.createEValue();this.eConditionBodies.push(i),e.appendChild(i),this.putOptionsIntoDropdown(t),this.resetType(t);let o=this.getNumConditions()-1;this.forEachPositionInput(o,e=>this.resetInput(e)),this.addChangedListeners(t,o)}createJoinOperatorPanel(){let e=e2({tag:"div",cls:"ag-filter-condition"});this.eJoinPanels.push(e);
47let t=this.createJoinOperator(this.eJoinAnds,e,"and"),i=this.createJoinOperator(this.eJoinOrs,e,"or");this.getGui().appendChild(e);let o=this.eJoinPanels.length-1,r=this.joinOperatorId++;this.resetJoinOperatorAnd(t,o,r),this.resetJoinOperatorOr(i,o,r),this.isReadOnly()||(t.onValueChange(this.listener),i.onValueChange(this.listener))}createJoinOperator(e,t,i){let o=this.createManagedBean(new mJ);e.push(o);let r="ag-filter-condition-operator";return o.addCss(r),o.addCss(`${r}-${i}`),t.appendChild(o.getGui()),o}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map(e=>"string"==typeof e?this.createBoilerplateListOption(e):this.createCustomListOption(e))}putOptionsIntoDropdown(e){let{filterListOptions:t}=this;for(let i of t)e.addOption(i);e.setDisabled(t.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){let{displayKey:t}=e,i=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:i?this.getLocaleTextFunc()(i.displayKey,i.displayName):this.translate(t)}}createBodyTemplate(){return null}getAgComponents(){return[]}updateUiVisibility(){let e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)}updateNumConditions(){let e=-1,t=!0;for(let i=0;i<this.getNumConditions();i++)this.isConditionUiComplete(i)?e=i:t=!1;if(this.shouldAddNewConditionAtEnd(t))this.createJoinOperatorPanel(),this.createOption();else{let t=this.lastUiCompletePosition??this.getNumConditions()-2;if(e<t){this.removeConditionsAndOperators(t+1);let i=e+1,o=t-i;o>0&&this.removeConditionsAndOperators(i,o),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,t){this.eTypes.forEach((t,i)=>{let o=this.isConditionDisabled(i,e);t.setDisabled(o||this.filterListOptions.length<=1),1===i&&(eF(this.eJoinPanels[0],o),this.eJoinAnds[0].setDisabled(o),this.eJoinOrs[0].setDisabled(o))}),this.eConditionBodies.forEach((e,t)=>{eE(e,this.isConditionBodyVisible(t))});let i=(t??this.getJoinOperator())==="OR";for(let e of this.eJoinAnds)e.setValue(!i,!0);for(let e of this.eJoinOrs)e.setValue(i,!0);this.forEachInput((t,i,o,r)=>{this.setElementDisplayed(t,i<r),this.setElementDisabled(t,this.isConditionDisabled(o,e))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){if(e>=this.getNumConditions())return;let{eTypes:i,eConditionBodies:o,eJoinPanels:r,eJoinAnds:s,eJoinOrs:n}=this;this.removeComponents(i,e,t),this.removeElements(o,e,t),this.removeEValues(e,t);let l=Math.max(e-1,0);this.removeElements(r,l,t),this.removeComponents(s,l,t),this.removeComponents(n,l,t)}removeElements(e,t,i){for(let o of m1(e,t,i))eV(o)}removeComponents(e,t,i){for(let o of m1(e,t,i))eV(o.getGui()),this.destroyBean(o)}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!e?.suppressFocus){let e;if(!this.isReadOnly()){let t=this.getInputs(0)[0];e=t instanceof nl&&this.isConditionBodyVisible(0)?t.getInputElement():this.eTypes[0]?.getFocusableElement()}(e??this.getGui()).focus({preventScroll:!0})}}shouldKeepInvalidInputState(){return!1}afterGuiDetached(){super.afterGuiDetached();let e=this.params;if(this.beans.colFilter?.shouldKeepStateOnDetach(e.column)||this.shouldKeepInvalidInputState())return;e.onStateChange({model:e.model});let t=-1,i=-1,o=!1,r=this.getJoinOperator();for(let e=this.getNumConditions()-1;e>=0;e--)if(this.isConditionUiComplete(e))-1===t&&(t=e,i=e);else{let r=e>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(e-1),s=e<t;(r||s)&&(this.removeConditionsAndOperators(e,1),o=!0,s&&i--)}let s=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),s=!0),this.shouldAddNewConditionAtEnd(i===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),s=!0),s&&this.updateConditionStatusesAndValues(i,r),o&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=i}getModelAsString(e){return this.params.getHandler()?.getModelAsString?.(e)??""}resetPlaceholder(){let e=this.getLocaleTextFunc(),{filterPlaceholder:t,eTypes:i}=this;this.forEachInput((o,r,s,n)=>{if(!(o instanceof nl))return;let l=0===r&&n>1?e("ariaFilterFromValue","Filter from value"):0===r?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value"),a=rV(this,t,0===r&&n>1?"inRangeStart":0===r?"filterOoo":"inRangeEnd",i[s].getValue());o.setInputPlaceholder(a),o.setInputAriaLabel(l)})}setElementValue(e,t,i){e instanceof nl&&e.setValue(null!=t?String(t):null,!0)}setElementDisplayed(e,t){oJ(e)&&eE(e.getGui(),t)}setElementDisabled(e,t){oJ(e)&&eF(e.getGui(),t)}attachElementOnChange(e,t){e instanceof nl&&e.onValueChange(t)}
47forEachInput(e){this.getConditionTypes().forEach((t,i)=>{this.forEachPositionTypeInput(i,t,e)})}forEachPositionInput(e,t){let i=this.getConditionType(e);this.forEachPositionTypeInput(e,i,t)}forEachPositionTypeInput(e,t,i){let o=m6(t,this.optionsFactory),r=this.getInputs(e);for(let t=0;t<r.length;t++){let s=r[t];null!=s&&i(s,t,e,o)}}isConditionDisabled(e,t){return!!this.isReadOnly()||0!==e&&e>t+1}isConditionBodyVisible(e){return m6(this.getConditionType(e),this.optionsFactory)>0}isConditionUiComplete(e){return!(e>=this.getNumConditions()||"empty"===this.getConditionType(e)||this.getValues(e).some(e=>null==e)||this.positionHasInvalidInputs(e))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){let e=[];for(let t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(e){this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(e=>this.resetType(e)),this.eJoinAnds.forEach((e,t)=>this.resetJoinOperatorAnd(e,t,this.joinOperatorId+t)),this.eJoinOrs.forEach((e,t)=>this.resetJoinOperatorOr(e,t,this.joinOperatorId+t)),this.joinOperatorId++,this.forEachInput(e=>this.resetInput(e)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,this.updateUiVisibility(),e||this.params.onUiChange(this.getUiChangeEventParams())}resetType(e){let t=this.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(t).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,i){this.resetJoinOperator(e,t,"AND"===this.defaultJoinOperator,this.translate("andCondition"),i)}resetJoinOperatorOr(e,t,i){this.resetJoinOperator(e,t,"OR"===this.defaultJoinOperator,this.translate("orCondition"),i)}resetJoinOperator(e,t,i,o,r){this.updateJoinOperatorDisabled(e.setValue(i,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${r}`).setLabel(o),t)}updateJoinOperatorsDisabled(){let e=(e,t)=>this.updateJoinOperatorDisabled(e,t);this.eJoinAnds.forEach(e),this.eJoinOrs.forEach(e)}updateJoinOperatorDisabled(e,t){e.setDisabled(this.isReadOnly()||t>0)}resetInput(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())}setConditionIntoUi(e,t){let i=this.mapValuesFromModel(e,this.optionsFactory);this.forEachInput((e,o,r)=>{r===t&&this.setElementValue(e,null!=i[o]?i[o]:null)})}setValueFromFloatingFilter(e){this.forEachInput((t,i,o)=>{this.setElementValue(t,0===i&&0===o?e:null,!0)})}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,e=>{this.attachElementOnChange(e,this.listener)}))}hasInvalidInputs(){return!1}positionHasInvalidInputs(e){return!1}isReadOnly(){return!!this.params.readOnly}},m5=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function m8(e){return e?.allowedCharPattern??null}function m7(e,t){let{filter:i,filterTo:o,type:r}=e||{};return[a9(i),a9(o)].slice(0,m6(r,t))}var m9=class extends m4{constructor(){super("bigintFilter",m7,m5),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="bigint",this.defaultDebounceMs=500}afterGuiAttached(e){super.afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!rj()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}refreshInputValidation(){for(let e=0;e<this.eValuesFrom.length;e++){let t=this.eValuesFrom[e],i=this.eValuesTo[e];this.refreshInputPairValidation(t,i)}}refreshInputPairValidation(e,t,i=!1){let{bigintParser:o}=this.params,r=this.getParsedValue(e,o),s=this.getParsedValue(t,o),n=this.isInvalidValue(e,r),l=this.isInvalidValue(t,s),a=i?e:t,d=i?t:e,h=i?n:l,u=i?l:n,c="";if(h)c=this.getLocaleTextFunc()("invalidBigInt","Invalid BigInt");else if(!n&&!l){var g,p,m;let o=(g=r,p=s,m=i,null!=g&&null!=p&&g>=p?`strict${m?"Max":"Min"}ValueValidation`:null);o&&(c=this.translate(o,[String(i?t.getValue():e.getValue())]))}a.setCustomValidity(c),u||d.setCustomValidity(""),c.length>0&&this.beans.ariaAnnounce.announceValue(c,"dateFilter")}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}refresh(e){let t=super.refresh(e),{state:i,additionalEventAttributes:o}=e,r=this.state,s=o?.fromAction;return(s&&"apply"!=s||i.model!==r.model||!this.areStatesEqual(i.state,r.state))&&this.refreshInputValidation(),t}setElementValue(e,t,i){super.setElementValue(e,t,i),null===t&&e.setCustomValidity("")}createEValue(){let{params:e,eValuesFrom:t,eValuesTo:i}=this,o=m8(e),r=e2({tag:"div",cls:"ag-filter-body",role:"presentation"}),s=this.createFromToElement(r,t,"from",o),n=this.createFromToElement(r,i,"to",o),l=(e,t,i)=>()=>this.refreshInputPairValidation(e,t,i),a=l(s,n,!0);s.onValueChange(a),s.addGuiEventListener("focusin",a);let d=l(s,n,!1);return n.onValueChange(d),n.addGuiEventListener("focusin",d),r}createFromToElement(e,t,i,o){let r=this.createManagedBean(o?new pR({allowedCharPattern:o}):new pR);return r.addCss(`ag-filter-${i}`),r.addCss("ag-filter-filter"),t.push(r),e.appendChild(r.getGui()),r}removeEValues(e,t){let i=i=>this.removeComponents(i,e,t);
47i(this.eValuesFrom),i(this.eValuesTo)}getValues(e){let t=[];return this.forEachPositionInput(e,(e,i,o,r)=>{i<r&&t.push(a9(e.getValue()??null))}),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}createCondition(e){let t=this.getConditionType(e),i={filterType:this.filterType,type:t},o=this.getValues(e);return o.length>0&&(i.filter=String(o[0])),o.length>1&&(i.filterTo=String(o[1])),i}removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}getInputs(e){let{eValuesFrom:t,eValuesTo:i}=this;return e>=t.length?[null,null]:[t[e],i[e]]}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>e||(e=!t.getInputElement().validity.valid)),e}positionHasInvalidInputs(e){let t=!1;return this.forEachPositionInput(e,e=>t||(t=!e.getInputElement().validity.valid)),t}canApply(e){return!this.hasInvalidInputs()}getParsedValue(e,t){let i=e.getValue();return null==i||"string"==typeof i&&""===i.trim()?null:t?t(i):a9(i)}isInvalidValue(e,t){let i=e.getValue();return null!=i&&""!==String(i).trim()&&null===t}},fe=class extends tc{constructor(e,t){super(),this.mapValuesFromModel=e,this.defaultOptions=t}init(e){let t=e.filterParams,i=new m0;this.optionsFactory=i,i.init(t,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(i,t)),this.updateParams(e),this.validateModel(e)}refresh(e){if("colDef"===e.source){let t=e.filterParams,i=this.optionsFactory;i.refresh(t,this.defaultOptions),this.filterModelFormatter.updateParams({optionsFactory:i,filterParams:t}),this.updateParams(e)}this.validateModel(e)}updateParams(e){this.params=e}doesFilterPass(e){let t=e.model;if(null==t)return!0;let{operator:i}=t,o=[];i?o.push(...t.conditions??[]):o.push(t);let r=this.params.getValue(e.node);return o[i&&"OR"===i?"some":"every"](t=>this.individualConditionPasses(e,t,r))}getModelAsString(e,t){return this.filterModelFormatter.getModelAsString(e,t)??""}validateModel(e){let{model:t,filterParams:{filterOptions:i,maxNumConditions:o}}=e;if(null==t)return;let r=rz(t)?t.conditions:[t],s=i?.map(e=>"string"==typeof e?e:e.displayKey)??this.defaultOptions;if(!(!r||r.every(e=>void 0!==s.find(t=>t===e.type)))){this.params={...e,model:null},e.onModelChange(null);return}let n=!1,l=this.filterType;if((r&&!r.every(e=>e.filterType===l)||t.filterType!==l)&&(r=r.map(e=>({...e,filterType:l})),n=!0),"number"==typeof o&&r&&r.length>o&&(r=r.slice(0,o),n=!0),n){let i=r.length>1?{...t,filterType:l,conditions:r}:{...r[0],filterType:l};this.params={...e,model:i},e.onModelChange(i)}}individualConditionPasses(e,t,i){let o=this.optionsFactory,r=this.mapValuesFromModel(t,o),s=function(e,t,i){if(null==e)return;let{predicate:o}=e;if(null!=o&&!t.some(e=>null==e))return o(t,i)}(o.getCustomOption(t.type),r,i);return null!=s?s:null==i?this.evaluateNullValue(t.type):this.evaluateNonNullValue(r,i,t,e)}},ft=class extends fe{evaluateNullValue(e){let{includeBlanksInEquals:t,includeBlanksInNotEqual:i,includeBlanksInGreaterThan:o,includeBlanksInLessThan:r,includeBlanksInRange:s}=this.params.filterParams;switch(e){case"equals":if(t)return!0;break;case"notEqual":if(i)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(o)return!0;break;case"lessThan":case"lessThanOrEqual":if(r)return!0;break;case"inRange":if(s)return!0;break;case"blank":return!0}return!1}evaluateNonNullValue(e,t,i){let o=i.type;if(!this.isValid(t))return"notEqual"===o||"notBlank"===o;let r=this.comparator(),s=null!=e[0]?r(e[0],t):0;switch(o){case"equals":return 0===s;case"notEqual":return 0!==s;case"greaterThan":return s>0;case"greaterThanOrEqual":return s>=0;case"lessThan":return s<0;case"lessThanOrEqual":return s<=0;case"inRange":{let i=r(e[1],t);return this.params.filterParams.inRangeInclusive?s>=0&&i<=0:s>0&&i<0}case"blank":return m3(t);case"notBlank":return!m3(t);default:return tX(76,{filterModelType:o}),!0}}},fi={equals:"Equals",notEqual:"NotEqual",greaterThan:"GreaterThan",greaterThanOrEqual:"GreaterThanOrEqual",lessThan:"LessThan",lessThanOrEqual:"LessThanOrEqual",inRange:"InRange"},fo={contains:"Contains",notContains:"NotContains",equals:"TextEquals",notEqual:"TextNotEqual",startsWith:"StartsWith",endsWith:"EndsWith",inRange:"InRange"},fr=class extends tc{constructor(e,t,i){super(),this.optionsFactory=e,this.filterParams=t,this.valueFormatter=i}getModelAsString(e,t){let i=this.getLocaleTextFunc(),o="filterToolPanel"===t;if(!e)return o?rL(this,"filterSummaryInactive"):null;if(null!=e.operator){let i=(e.conditions??[]).map(e=>this.getModelAsString(e,t)),o="AND"===e.operator?"andCondition":"orCondition";return i.join(` ${rL(this,o)} `)}{if("blank"===e.type||"notBlank"===e.type)return o?rL(this,"blank"===e.type?"filterSummaryBlank":"filterSummaryNotBlank"):i(e.type,e.type);let{displayKey:t,displayName:r,numberOfInputs:s}=this.optionsFactory.getCustomOption(e.type)||{};return t&&r&&0===s?i(t,r):this.conditionToString(e,o,"inRange"===e.type||2===s,t,r)}}updateParams(e){let{optionsFactory:t,filterParams:i}=e;this.optionsFactory=t,this.filterParams=i}conditionForToolPanel(e,t,i,o,r,s){let n,l=this.getTypeKey(e);if(l&&(n=rL(this,l)),r&&s&&(n=this.getLocaleTextFunc()(r,s)),null!=n)if(t)return`${n} ${rL(this,"filterSummaryInRangeValues",[i(),o()])}`;else return`${n} ${i()}`;return null}getTypeKey(e){let t=this.filterTypeKeys[e];return t?`filterSummary${t}`:null}formatValue(e){let t=this.valueFormatter;return t?t(e??null)??"":String(e)}},fs=class extends fr{constructor(e,t){super(e,t,t.bigintFormatter),this.filterTypeKeys=fi}conditionToString(e,t,i,o,r){let{filter:s,filterTo:n,type:l}=e,a=this.formatValue.bind(this),d=a9(s),h=a9(n);if(t){let e=this.conditionForToolPanel(l,i,()=>a(d),()=>a(h),o,r);if(null!=e)return e}return i?`${a(d)}-${a(h)}`:null!=s?a(d):`${l}`}},fn=class extends ft{constructor(){super(m7,m5),this.filterType="bigint",this.FilterModelFormatterClass=fs}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return null!==a9(e)}},fl=class extends tc{constructor(e){super(),this.params=e,this.eInput=oZ,this.onValueChanged=()=>{}}setupGui(e){this.eInput=this.createManagedBean(new pR(this.params?.config));let t=this.eInput.getGui();e.appendChild(t);let i=e=>this.onValueChanged(e);this.addManagedListeners(t,{input:i,keydown:i})}setEditable(e){this.eInput.setDisabled(!e)}getValue(){return this.eInput.getValue()}setValue(e,t){this.eInput.setValue(e,t)}setValueChangedListener(e){this.onValueChanged=e}setParams({ariaLabel:e,autoComplete:t,placeholder:i}){let{eInput:o}=this;o.setInputAriaLabel(e),void 0!==t&&o.setAutoComplete(t),o.toggleCss("ag-floating-filter-search-icon",!!i),o.setInputPlaceholder(i)}};function fa(e){let t=e?.trim();return""===t?e:t}function fd(e,t){let{filter:i,filterTo:o,type:r}=e||{};return[i||null,o||null].slice(0,m6(r,t))}var fh=class extends o5{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(e){let t;if(!e){this.lastType=this.optionsFactory.defaultOption;return}t=e.operator?e.conditions[0]:e,this.lastType=t.type}canWeEditAfterModelFromParentFilter(e){return e?!e.operator&&this.isTypeEditable(e.type):this.isTypeEditable(this.lastType)}init(e){this.params=e;let t=this.gos.get("enableFilterHandlers");this.reactive=t,this.setParams(e),t&&this.onModelUpdated(e.model)}
47setParams(e){let t=new m0;this.optionsFactory=t,t.init(e.filterParams,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(t,e.filterParams)),this.setSimpleParams(e,!1)}setSimpleParams(e,t=!0){let i=this.optionsFactory.defaultOption;t||(this.lastType=i),this.readOnly=!!e.filterParams.readOnly;let o=this.isTypeEditable(i);this.setEditable(o)}refresh(e){this.params=e;let t=this.reactive;if(t&&"colDef"!==e.source||this.updateParams(e),t){let{source:t,model:i}=e;if("dataChanged"===t||"ui"===t)return;this.onModelUpdated(i)}}updateParams(e){let t=this.optionsFactory;t.refresh(e.filterParams,this.defaultOptions),this.setSimpleParams(e),this.filterModelFormatter.updateParams({optionsFactory:t,filterParams:e.filterParams})}onParentModelChanged(e,t){t?.afterFloatingFilter||t?.afterDataChange||this.onModelUpdated(e)}isTypeEditable(e){return!!e&&!this.readOnly&&1===m6(e,this.optionsFactory)}getAriaLabel(e){let t=this.beans.colNames.getDisplayNameForColumn(e,"header",!0);return`${t} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}},fu={tag:"div",ref:"eFloatingFilterInputContainer",cls:"ag-floating-filter-input",role:"presentation"},fc=class extends fh{constructor(){super(...arguments),this.eFloatingFilterInputContainer=oZ,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(fu)}onModelUpdated(e){this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.inputSvc.setValue(this.filterModelFormatter.getModelAsString(e))}setParams(e){this.setupFloatingFilterInputService(e),super.setParams(e),this.setTextInputParams(e)}setupFloatingFilterInputService(e){this.inputSvc=this.createFloatingFilterInputService(e),this.inputSvc.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(e){let{inputSvc:t,defaultDebounceMs:i,readOnly:o}=this,{filterPlaceholder:r,column:s,browserAutoComplete:n,filterParams:l}=e,a=this.lastType??this.optionsFactory.defaultOption,d=e.filterParams.filterPlaceholder,h=!0===r?rV(this,d,"filterOoo",a):r||void 0;if(t.setParams({ariaLabel:this.getAriaLabel(s),autoComplete:n??!1,placeholder:h}),this.applyActive=rH(l),!o){let e=rB(l,i);t.setValueChangedListener(tv(this,this.syncUpWithParentFilter.bind(this),e))}}updateParams(e){super.updateParams(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){let{inputSvc:t}=this,i=t.getValue();eH(this.eFloatingFilterInputContainer),this.destroyBean(t),this.setupFloatingFilterInputService(e),t.setValue(i,!0)}syncUpWithParentFilter(e){let t=e.key===oK.ENTER,i=this.reactive;if(i&&this.params.onUiChange(),this.applyActive&&!t)return;let{inputSvc:o,params:r,lastType:s}=this,n=o.getValue();if(r.filterParams.trimInput&&(n=fa(n),o.setValue(n,!0)),i){let e=r.model,t=this.convertValue(n),i=null==t?null:{...e??{filterType:this.filterType,type:s??this.optionsFactory.defaultOption},filter:t};r.onModelChange(i,{afterFloatingFilter:!0})}else r.parentFilterInstance(e=>{e?.onFloatingFilterChanged(s||null,n||null)})}convertValue(e){return e||null}setEditable(e){this.inputSvc.setEditable(e)}},fg=class extends fc{constructor(){super(...arguments),this.FilterModelFormatterClass=fs,this.filterType="bigint",this.defaultOptions=m5}updateParams(e){let t=e.filterParams;m8(t)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),this.bigintParser=t?.bigintParser,super.updateParams(e)}createFloatingFilterInputService(e){let t=e.filterParams;this.allowedCharPattern=m8(t),this.bigintParser=t?.bigintParser;let i=this.allowedCharPattern?{allowedCharPattern:this.allowedCharPattern}:void 0;return this.createManagedBean(new fl({config:i}))}convertValue(e){return null==e||""===e?null:this.bigintParser?this.bigintParser(e):a9(e)}},fp=".ag-input-field-input",fm=class{constructor(e,t,i,o,r,s){this.context=e,this.eParent=r,this.alive=!0,this.debouncedReport=tv({isAlive:()=>this.alive},ff,500),this.timeoutHandle=null;let n=t.getCompDetails(i,ro,"agDateInput",o,!0);n?.newAgStackInstance().then(t=>{if(!this.alive)return void e.destroyBean(t);if(this.dateComp=t,!t)return;r.appendChild(t.getGui()),t?.afterGuiAttached?.();let{tempValue:i,disabled:o}=this;i&&t.setDate(i),null!=o&&t.setDisabled?.(o),s?.(this)})}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(e){let t=this.dateComp;t?t.setDate(e):this.tempValue=e}setDisabled(e){let t=this.dateComp;t?t.setDisabled?.(e):this.disabled=e}setDisplayed(e){eE(this.eParent,e)}setInputPlaceholder(e){this.dateComp?.setInputPlaceholder?.(e)}setInputAriaLabel(e){this.dateComp?.setInputAriaLabel?.(e)}afterGuiAttached(e){this.dateComp?.afterGuiAttached?.(e)}updateParams(e){this.dateComp?.refresh?.(e)}setCustomValidity(e,t=!1){let i=this.dateComp?.getGui().querySelector(fp);
47if(i&&"setCustomValidity"in i){let o=e.length>0;i.setCustomValidity(e),o?t?this.timeoutHandle=this.debouncedReport(i):ff(i):this.timeoutHandle&&window.clearTimeout(this.timeoutHandle),J(i,o)}}getValidity(){return this.dateComp?.getGui().querySelector(fp)?.validity}};function ff(e){e.reportValidity()}var fC=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"];function fv(e,t){let{dateFrom:i,dateTo:o,type:r}=e||{};return[i&&dh(i,void 0,!0)||null,o&&dh(o,void 0,!0)||null].slice(0,m6(r,t))}var fw=1/0,fb=class extends m4{constructor(){super("dateFilter",fv,fC),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=1e3,this.maxValidYear=fw,this.minValidDate=null,this.maxValidDate=null,this.filterType="date"}afterGuiAttached(e){super.afterGuiAttached(e),this.dateConditionFromComps[0].afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!rj()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}commonUpdateSimpleParams(e){super.commonUpdateSimpleParams(e);let t=(t,i)=>{let o=e[t];if(null!=o)if(!isNaN(o))return null==o?i:Number(o);else tX(82,{param:t});return i},i=t("minValidYear",1e3),o=t("maxValidYear",fw);this.minValidYear=i,this.maxValidYear=o,i>o&&tX(83);let{minValidDate:r,maxValidDate:s}=e,n=r instanceof Date?r:dh(r);this.minValidDate=n;let l=s instanceof Date?s:dh(s);this.maxValidDate=l,n&&l&&n>l&&tX(84)}refreshInputValidation(){for(let e=0;e<this.dateConditionFromComps.length;e++)this.refreshInputPairValidation(e,!1,!0)}refreshInputPairValidation(e,t=!1,i=!1){var o,r,s;let{dateConditionFromComps:n,dateConditionToComps:l,beans:a}=this,d=n[e],h=l[e],u=d.getDate(),c=h.getDate(),g=(o=u,r=c,s=t,null!=o&&null!=r&&o>=r?`${s?"max":"min"}DateValidation`:null),p=g?this.translate(g,[String(t?c:u)]):"",m=!rj()&&!i;(t?d:h).setCustomValidity(p,m),(t?h:d).setCustomValidity("",m),p.length>0&&a.ariaAnnounce.announceValue(p,"dateFilter")}createDateCompWrapper(e,t,i){let{beans:{userCompFactory:o,context:r,gos:s},params:n}=this,l="from"===i,a=new fm(r,o,n.colDef,iK(s,{onDateChanged:()=>{this.refreshInputPairValidation(t,l),this.onUiChanged()},onFocusIn:()=>this.refreshInputPairValidation(t,l),filterParams:n,location:"filter"}),e);return this.addDestroyFunc(()=>a.destroy()),a}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}setElementValue(e,t){e.setDate(t),t||e.setCustomValidity("")}setElementDisplayed(e,t){e.setDisplayed(t)}setElementDisabled(e,t){e.setDisabled(t)}createEValue(){let e=e2({tag:"div",cls:"ag-filter-body"});return this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e}createFromToElement(e,t,i,o){let r=e2({tag:"div",cls:`ag-filter-${o} ag-filter-date-${o}`});t.push(r),e.appendChild(r),i.push(this.createDateCompWrapper(r,t.length-1,o))}removeEValues(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),m1(this.eConditionPanelsFrom,e,t),m1(this.eConditionPanelsTo,e,t)}removeDateComps(e,t,i){for(let o of m1(e,t,i))o.destroy()}isValidDateValue(e){if(null===e)return!1;let{minValidDate:t,maxValidDate:i,minValidYear:o,maxValidYear:r}=this;if(t){if(e<t)return!1}else if(e.getUTCFullYear()<o)return!1;if(i){if(e>i)return!1}else if(e.getUTCFullYear()>r)return!1;return!0}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>e||(e=null!=t.getDate()&&!(t.getValidity()?.valid??!0))),e}positionHasInvalidInputs(e){let t=!1;return this.forEachPositionInput(e,e=>t||(t=!(e.getValidity()?.valid??!0))),t}canApply(e){return!this.hasInvalidInputs()}isConditionUiComplete(e){if(!super.isConditionUiComplete(e))return!1;let t=!0;return this.forEachPositionInput(e,(e,i,o,r)=>{t&&!(i>=r)&&t&&(t=this.isValidDateValue(e.getDate()))}),t}areSimpleModelsEqual(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type}createCondition(e){let t=this.getConditionType(e),i={},{params:o,filterType:r}=this,s=this.getValues(e),n=o.useIsoSeparator?"T":" ";return s.length>0&&(i.dateFrom=dr(s[0],!0,n)),s.length>1&&(i.dateTo=dr(s[1],!0,n)),{dateFrom:null,dateTo:null,filterType:r,type:t,...i}}
47removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}resetPlaceholder(){let e=this.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),i=e("ariaFilterValue","Filter Value");this.forEachInput(e=>{e.setInputPlaceholder(t),e.setInputAriaLabel(i)})}getInputs(e){let{dateConditionFromComps:t,dateConditionToComps:i}=this;return e>=t.length?[null,null]:[t[e],i[e]]}getValues(e){let t=[];return this.forEachPositionInput(e,(e,i,o,r)=>{i<r&&t.push(e.getDate())}),t}translate(e,t){let i=e;return"lessThan"===e?i="before":"greaterThan"===e&&(i="after"),super.translate(i,t)}},fy=class extends fr{constructor(e,t){super(e,t,e=>{let{dataTypeSvc:i,valueSvc:o}=this.beans,r=t.column,s=i?.getDateFormatterFunction(r),n=s?s(e??void 0):e;return o.formatValue(r,null,n)}),this.filterTypeKeys=fi}conditionToString(e,t,i,o,r){let{type:s}=e,n=dh(e.dateFrom),l=dh(e.dateTo),a=this.filterParams.inRangeFloatingFilterDateFormat,d=t?this.formatValue.bind(this):e=>(function(e,t){if(null==t)return dr(e,!1);let i=di(e.getFullYear(),4),o={YYYY:()=>i.slice(i.length-4,i.length),YY:()=>i.slice(i.length-2,i.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>dl[e.getMonth()],MMM:()=>dl[e.getMonth()].slice(0,3),MM:()=>di(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${dn(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${dn(e.getDate())}`,DD:()=>di(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>da[e.getDay()],ddd:()=>da[e.getDay()].slice(0,3),dd:()=>da[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${dn(e.getDay())}`,d:()=>`${e.getDay()}`},r=RegExp(Object.keys(o).join("|"),"g");return t.replace(r,e=>e in o?o[e]():e)})(e,a),h=()=>null!==n?d(n):"null",u=()=>null!==l?d(l):"null";if(null==n&&null==l)return rL(this,s);if(t){let e=this.conditionForToolPanel(s,i,h,u,o,r);if(null!=e)return e}return i?`${h()}-${u()}`:null!=n?d(n):`${s}`}};function fS(e,t){return t<e?-1:+(t>e)}var fR=class extends ft{constructor(){super(fv,fC),this.filterType="date",this.FilterModelFormatterClass=fy,this.filterTypeToRangeCache=new Map}getOrRefreshRangeCacheItem(e,t){let{filterTypeToRangeCache:i}=this,o=Date.now(),r=i.get(e);if(r&&r.expires<o&&(r=void 0),!r){let[s,n]=t(new Date(o),new Date(o));r={from:s,to:n,expires:fD(new Date(o)).getTime()-o},i.set(e,r)}return r}comparator(){return this.params.filterParams.comparator??fS}isValid(e){let t=this.params.filterParams.isValidDate;return!t||t(e)}evaluateNonNullValue(e,t,i){let o=i.type,r=this.comparator();if(!this.isValid(t))return"notEqual"===o||"notBlank"===o;let s=f$[o];if(s){let{from:e,to:i}=this.getOrRefreshRangeCacheItem(o,s);return r(e,t)>=0&&0>r(i,t)}return super.evaluateNonNullValue(e,t,i)}},fE=null,fx=e=>(e.setHours(0,0,0,0),e),fF=e=>{let t=e.getDay(),i=(()=>{let e;if(null!=fE)return fE;let t="undefined"==typeof navigator?void 0:navigator.languages?.[0]??navigator.language;if(t&&"undefined"!=typeof Intl&&"function"==typeof Intl.Locale)try{let i=new Intl.Locale(t).getWeekInfo?.();e=i?.firstDay}catch{e=void 0}return fE=null==e?1:e%7})();return e.setDate(e.getDate()-(t-i+7)%7),fx(e)},fP=(e,t=1)=>(e.setDate(e.getDate()-t),e),fD=e=>(e.setDate(e.getDate()+1),fx(e)),fM=e=>(fF(e),e.setDate(e.getDate()+6),fD(e)),fk=e=>(e.setDate(1),fx(e)),fT=e=>(e.setDate(1),e.setMonth(e.getMonth()+1),fx(e)),fA=e=>{let t=Math.floor(e.getMonth()/3);return e.setMonth(3*t),fk(e)},fI=e=>{let t=Math.floor(e.getMonth()/3);return e.setMonth(3*t+2),fT(e)},fL=e=>(e.setMonth(0,1),fx(e)),fB=e=>(e.setMonth(12,0),fD(e)),fH=e=>fP(e),fV=e=>fH(fF(e)),fG=e=>fH(fk(e)),fO=e=>fH(fA(e)),fN=(e,t)=>[fx(e),fD(t)],fz=(e,t)=>[fF(e),fM(t)],fW=(e,t)=>[fk(e),fT(t)],fU=(e,t)=>[fA(e),fI(t)],f_=(e,t)=>[fL(e),fB(t)],f$={today:fN,yesterday:(e,t)=>fN(fH(e),fH(t)),tomorrow:(e,t)=>(e.setDate(e.getDate()+1),t.setDate(t.getDate()+1),fN(e,t)),thisWeek:fz,lastWeek:(e,t)=>fz(fV(e),fV(t)),nextWeek:(e,t)=>(e.setDate(e.getDate()+7),t.setDate(t.getDate()+7),fz(e,t)),thisMonth:fW,lastMonth:(e,t)=>fW(fG(e),fG(t)),nextMonth:(e,t)=>(e.setMonth(e.getMonth()+1),t.setMonth(t.getMonth()+1),fW(e,t)),thisQuarter:fU,lastQuarter:(e,t)=>fU(fO(e),fO(t)),nextQuarter:(e,t)=>(e.setMonth(e.getMonth()+3),t.setMonth(t.getMonth()+3),fU(e,t)),thisYear:f_,lastYear:(e,t)=>
47(e.setFullYear(e.getFullYear()-1),t.setFullYear(t.getFullYear()-1),f_(e,t)),nextYear:(e,t)=>(e.setFullYear(e.getFullYear()+1),t.setFullYear(t.getFullYear()+1),f_(e,t)),yearToDate:(e,t)=>[fL(e),fD(t)],last7Days:(e,t)=>[fx(fP(e,7)),fD(t)],last30Days:(e,t)=>[fx(fP(e,30)),fD(t)],last90Days:(e,t)=>[fx(fP(e,90)),fD(t)],last6Months:(e,t)=>(e.setFullYear(e.getFullYear()-1),e.setMonth(e.getMonth()+6),[fx(e),fD(t)]),last12Months:(e,t)=>(e.setFullYear(e.getFullYear()-1),[fx(e),fD(t)]),last24Months:(e,t)=>(e.setFullYear(e.getFullYear()-2),[fx(e),fD(t)]),setStartOfDay:fx,setStartOfWeek:fF,setStartOfNextDay:fD,setStartOfNextWeek:fM,setStartOfMonth:fk,setStartOfNextMonth:fT,setStartOfQuarter:fA,setStartOfNextQuarter:fI,setStartOfYear:fL,setStartOfNextYear:fB,setPreviousDay:fH,setPreviousWeek:fV,setPreviousMonth:fG,setPreviousQuarter:fO},fq={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eReadOnlyText"},{tag:"div",ref:"eDateWrapper",cls:"ag-date-floating-filter-wrapper"}]},fK=class extends fh{constructor(){super(fq,[pE]),this.eReadOnlyText=oZ,this.eDateWrapper=oZ,this.FilterModelFormatterClass=fy,this.filterType="date",this.defaultOptions=fC}setParams(e){super.setParams(e),this.createDateComponent();let t=this.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(t("ariaDateFilterInput","Date Filter Input"))}updateParams(e){super.updateParams(e),this.dateComp.updateParams(this.getDateComponentParams()),this.updateCompOnModelChange(e.currentParentModel())}updateCompOnModelChange(e){let t=!this.readOnly&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(t),t){let t=e?dh(e.dateFrom):null;this.dateComp.setDate(t),this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){eE(this.eDateWrapper,e),eE(this.eReadOnlyText.getGui(),!e)}onModelUpdated(e){super.setLastTypeFromModel(e),this.updateCompOnModelChange(e)}onDateChanged(){let e=this.dateComp.getDate();if(this.reactive){let t=this.params;t.onUiChange();let i=t.model,o=dr(e),r=null==o?null:{...i??{filterType:this.filterType,type:this.lastType??this.optionsFactory.defaultOption},dateFrom:o};t.onModelChange(r,{afterFloatingFilter:!0})}else this.params.parentFilterInstance(t=>{t?.onFloatingFilterChanged(this.lastType||null,e)})}getDateComponentParams(){let{filterParams:e}=this.params,t=rB(e,this.defaultDebounceMs);return iK(this.gos,{onDateChanged:tv(this,this.onDateChanged.bind(this),t),filterParams:e,location:"floatingFilter"})}createDateComponent(){let{beans:{context:e,userCompFactory:t},eDateWrapper:i,params:{column:o}}=this;this.dateComp=new fm(e,t,o.getColDef(),this.getDateComponentParams(),i,e=>{e.setInputAriaLabel(this.getAriaLabel(o))}),this.addDestroyFunc(()=>this.dateComp.destroy())}},fj={tag:"div",cls:"ag-filter-filter",children:[{tag:"ag-input-text-field",ref:"eDateInput",cls:"ag-date-filter"}]},fY=class extends o5{constructor(){super(fj,[pE]),this.eDateInput=oZ,this.isApply=!1,this.applyOnFocusOut=!1}init(e){this.params=e,this.setParams(e);let t=this.eDateInput.getInputElement();this.addManagedListeners(t,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||t.focus({preventScroll:!0})},input:this.handleInput.bind(this,!1),change:this.handleInput.bind(this,!0),focusout:this.handleFocusOut.bind(this),focusin:this.handleFocusIn.bind(this)})}handleInput(e){if(!this.eDateInput.isDisabled()){if(this.isApply){this.applyOnFocusOut=!e,e&&this.params.onDateChanged();return}e||this.params.onDateChanged()}}handleFocusOut(){this.applyOnFocusOut&&(this.applyOnFocusOut=!1,this.params.onDateChanged())}handleFocusIn(){this.params.onFocusIn?.()}setParams(e){let t=this.eDateInput.getInputElement(),i=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=i&&rK();let{minValidYear:o,maxValidYear:r,minValidDate:s,maxValidDate:n,buttons:l,includeTime:a,colDef:d}=e.filterParams||{},h=this.beans.dataTypeSvc,u=a??h?.getDateIncludesTimeFlag?.(d.cellDataType)??!1;i?u?(t.type="datetime-local",t.step="1"):t.type="date":t.type="text";let c=fQ(s,o,!0),g=fQ(n,r,!1);c&&g&&c.getTime()>g.getTime()&&tX(87),c&&(t.min=dr(c,u)),g&&(t.max=dr(g,u)),this.isApply="floatingFilter"===e.location&&!!l?.includes("apply")}refresh(e){this.params=e,this.setParams(e)}getDate(){return dh(this.eDateInput.getValue())}setDate(e){let t=this.params.filterParams.colDef.cellDataType,i=this.beans.dataTypeSvc?.getDateIncludesTimeFlag(t)??!1;this.eDateInput.setValue(dr(e,i))}setInputPlaceholder(e){this.eDateInput.setInputPlaceholder(e)}setInputAriaLabel(e){this.eDateInput.setAriaLabel(e)}setDisabled(e){this.eDateInput.setDisabled(e)}afterGuiAttached(e){e?.suppressFocus||this.eDateInput.getInputElement().focus({preventScroll:!0})}shouldUseBrowserDatePicker(e){return e?.filterParams?.browserDatePicker??!0}};function fQ(e,t,i){return(e&&t&&tX(i?85:86),e instanceof Date)?e:e?dh(e):t?dh(`${t}-${i?"01-01":"12-31"}`):null}var fZ=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function fJ(e){return e?.allowedCharPattern??null}function fX(e){return null==e||isNaN(e)?null:e}function f0(e,t){let{filter:i,filterTo:o,type:r}=e||{};return[fX(i),fX(o)].slice(0,m6(r,t))}var f1=class extends m4{constructor(){super("numberFilter",f0,fZ),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="number",this.defaultDebounceMs=500}afterGuiAttached(e){super.afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!rj()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}refreshInputValidation(){for(let e=0;e<this.eValuesFrom.length;
47e++){let t=this.eValuesFrom[e],i=this.eValuesTo[e];this.refreshInputPairValidation(t,i)}}refreshInputPairValidation(e,t,i=!1){var o,r,s;let n=this.params.numberParser,l=f2(n,e),a=f2(n,t),d=(o=l,r=a,s=i,null!=o&&null!=r&&o>=r?`strict${s?"Max":"Min"}ValueValidation`:null),h=d?this.translate(d,[String(i?a:l)]):"";(i?e:t).setCustomValidity(h),(i?t:e).setCustomValidity(""),h.length>0&&this.beans.ariaAnnounce.announceValue(h,"dateFilter")}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}refresh(e){let t=super.refresh(e),{state:i,additionalEventAttributes:o}=e,r=this.state,s=o?.fromAction;return(s&&"apply"!=s||i.model!==r.model||!this.areStatesEqual(i.state,r.state))&&this.refreshInputValidation(),t}setElementValue(e,t,i){let{numberFormatter:o}=this.params,r=!i&&o?o(t??null):t;super.setElementValue(e,r),null===r&&e.setCustomValidity("")}createEValue(){let{params:e,eValuesFrom:t,eValuesTo:i}=this,o=fJ(e),r=e2({tag:"div",cls:"ag-filter-body",role:"presentation"}),s=this.createFromToElement(r,t,"from",o),n=this.createFromToElement(r,i,"to",o),l=(e,t,i)=>()=>this.refreshInputPairValidation(e,t,i),a=l(s,n,!0);s.onValueChange(a),s.addGuiEventListener("focusin",a);let d=l(s,n,!1);return n.onValueChange(d),n.addGuiEventListener("focusin",d),r}createFromToElement(e,t,i,o){let r=this.createManagedBean(o?new pR({allowedCharPattern:o}):new pH);return r.addCss(`ag-filter-${i}`),r.addCss("ag-filter-filter"),t.push(r),e.appendChild(r.getGui()),r}removeEValues(e,t){let i=i=>this.removeComponents(i,e,t);i(this.eValuesFrom),i(this.eValuesTo)}getValues(e){let t=[];return this.forEachPositionInput(e,(e,i,o,r)=>{i<r&&t.push(fX(f3(this.params.numberParser,e.getValue())))}),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}createCondition(e){let t=this.getConditionType(e),i={filterType:this.filterType,type:t},o=this.getValues(e);return o.length>0&&(i.filter=o[0]),o.length>1&&(i.filterTo=o[1]),i}
47removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}getInputs(e){let{eValuesFrom:t,eValuesTo:i}=this;return e>=t.length?[null,null]:[t[e],i[e]]}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>e||(e=!t.getInputElement().validity.valid)),e}positionHasInvalidInputs(e){let t=!1;return this.forEachPositionInput(e,e=>t||(t=!e.getInputElement().validity.valid)),t}canApply(e){return!this.hasInvalidInputs()}};function f3(e,t){if("number"==typeof t)return t;let i=x(t);return(null!=i&&""===i.trim()&&(i=null),e)?e(i):null==i||"-"===i.trim()?null:Number.parseFloat(i)}function f2(e,t){return fX(f3(e,t.getValue(!0)))}var f6=class extends fr{constructor(e,t){super(e,t,t.numberFormatter),this.filterTypeKeys=fi}conditionToString(e,t,i,o,r){let{filter:s,filterTo:n,type:l}=e,a=this.formatValue.bind(this);if(t){let e=this.conditionForToolPanel(l,i,()=>a(s),()=>a(n),o,r);if(null!=e)return e}return i?`${a(s)}-${a(n)}`:null!=s?a(s):`${l}`}},f4=class extends ft{constructor(){super(f0,fZ),this.filterType="number",this.FilterModelFormatterClass=f6}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return!isNaN(e)}},f5=class extends tc{constructor(){super(...arguments),this.onValueChanged=()=>{},this.numberInputActive=!0}setupGui(e){this.eNumberInput=this.createManagedBean(new pH),this.eTextInput=this.createManagedBean(new pR),this.eTextInput.setDisabled(!0);let t=this.eNumberInput.getGui(),i=this.eTextInput.getGui();e.appendChild(t),e.appendChild(i),this.setupListeners(t,e=>this.onValueChanged(e)),this.setupListeners(i,e=>this.onValueChanged(e))}setEditable(e){this.numberInputActive=e,this.eNumberInput.setDisplayed(this.numberInputActive),this.eTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(e){this.eNumberInput.setAutoComplete(e),this.eTextInput.setAutoComplete(e)}getValue(){return this.getActiveInputElement().getValue()}setValue(e,t){this.getActiveInputElement().setValue(e,t)}getActiveInputElement(){return this.numberInputActive?this.eNumberInput:this.eTextInput}setValueChangedListener(e){this.onValueChanged=e}
47setupListeners(e,t){this.addManagedListeners(e,{input:t,keydown:t})}setParams({ariaLabel:e,autoComplete:t,placeholder:i}){this.setAriaLabel(e),void 0!==t&&this.setAutoComplete(t),this.setPlaceholder(this.eNumberInput,i),this.setPlaceholder(this.eTextInput,i)}setPlaceholder(e,t){e.toggleCss("ag-floating-filter-search-icon",!!t),e.setInputPlaceholder(t)}setAriaLabel(e){this.eNumberInput.setInputAriaLabel(e),this.eTextInput.setInputAriaLabel(e)}},f8=class extends fc{constructor(){super(...arguments),this.FilterModelFormatterClass=f6,this.filterType="number",this.defaultOptions=fZ}updateParams(e){fJ(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.updateParams(e)}createFloatingFilterInputService(e){return(this.allowedCharPattern=fJ(e.filterParams),this.allowedCharPattern)?this.createManagedBean(new fl({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new f5)}convertValue(e){return e?Number(e):null}},f7=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],f9=class extends m4{constructor(){super("textFilter",fd,f7),this.filterType="text",this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}createCondition(e){let t=this.getConditionType(e),i={filterType:this.filterType,type:t},o=this.getValues(e);return o.length>0&&(i.filter=o[0]),o.length>1&&(i.filterTo=o[1]),i}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){let{eValuesFrom:t,eValuesTo:i}=this;return e>=t.length?[null,null]:[t[e],i[e]]}getValues(e){let t=[];return this.forEachPositionInput(e,(e,i,o,r)=>{i<r&&t.push(x(e.getValue()))}),t}createEValue(){let e=e2({tag:"div",cls:"ag-filter-body",role:"presentation"}),{eValuesFrom:t,eValuesTo:i}=this;return this.createFromToElement(e,t,"from"),this.createFromToElement(e,i,"to"),e}createFromToElement(e,t,i){let o=this.createManagedBean(new pR);o.addCss(`ag-filter-${i}`),o.addCss("ag-filter-filter"),t.push(o),e.appendChild(o.getGui())}removeEValues(e,t){let i=i=>this.removeComponents(i,e,t),{eValuesFrom:o,eValuesTo:r}=this;i(o),i(r)}},Ce=class extends fr{constructor(){super(...arguments),this.filterTypeKeys=fo}conditionToString(e,t,i,o,r){let{filter:s,filterTo:n,type:l}=e;if(t){let e=e=>()=>rL(this,"filterSummaryTextQuote",[e]),t=this.conditionForToolPanel(l,i,e(s),e(n),o,r);if(null!=t)return t}return i?`${s}-${n}`:null!=s?`${s}`:`${l}`}},Ct=({filterOption:e,value:t,filterText:i})=>{if(null==i)return!1;switch(e){case"contains":return t.includes(i);case"notContains":return!t.includes(i);case"equals":return t===i;case"notEqual":return t!=i;case"startsWith":return 0===t.indexOf(i);case"endsWith":{let e=t.lastIndexOf(i);return e>=0&&e===t.length-i.length}default:return!1}},Ci=e=>e,Co=e=>null==e?null:e.toString().toLowerCase(),Cr=class extends fe{constructor(){super(fd,f7),this.filterType="text",this.FilterModelFormatterClass=Ce}updateParams(e){super.updateParams(e);let t=e.filterParams;this.matcher=t.textMatcher??Ct,this.formatter=t.textFormatter??(t.caseSensitive?Ci:Co)}evaluateNullValue(e){return!!e&&["notEqual","notContains","blank"].indexOf(e)>=0}evaluateNonNullValue(e,t,i,o){let r=e.map(e=>this.formatter(e))||[],s=this.formatter(t),{api:n,colDef:l,column:a,context:d,filterParams:{textFormatter:h}}=this.params;if("blank"===i.type)return m3(t);if("notBlank"===i.type)return!m3(t);let u={api:n,colDef:l,column:a,context:d,node:o.node,data:o.data,filterOption:i.type,value:s,textFormatter:h};return r.some(e=>this.matcher({...u,filterText:e}))}processModelToApply(e){if(e&&this.params.filterParams.trimInput){let t=e=>{let t={...e},{filter:i,filterTo:o}=e;return i&&(t.filter=fa(i)??null),o&&(t.filterTo=fa(o)??null),t};return rz(e)?{...e,conditions:e.conditions.map(t)}:t(e)}return e}},Cs=class extends fc{constructor(){super(...arguments),this.FilterModelFormatterClass=Ce,this.filterType="text",this.defaultOptions=f7}createFloatingFilterInputService(){return this.createManagedBean(new fl)}},Cn=class extends tc{constructor(){super(...arguments),this.beanName="quickFilter",this.quickFilter=null,this.quickFilterParts=null}postConstruct(){let e=this.resetCache.bind(this),t=this.gos;this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:e,columnRowGroupChanged:e,columnVisible:()=>{t.get("includeHiddenColumnsInQuickFilter")||this.resetCache()}}),this.addManagedPropertyListener("quickFilterText",e=>this.setFilter(e.currentValue)),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],()=>this.onColumnConfigChanged()),this.quickFilter=this.parseFilter(t.get("quickFilterText")),this.parser=t.get("quickFilterParser"),this.matcher=t.get("quickFilterMatcher"),this.setFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],()=>this.setParserAndMatcher())}refreshCols(){let{autoColSvc:e,colModel:t,gos:i,pivotResultCols:o}=this.beans,r=t.isPivotMode(),s=e?.getColumns(),n=t.getColDefCols(),l=(r&&!i.get("applyQuickFilterBeforePivotOrAgg")?o?.getPivotResultCols()?.list:n)??[];s&&(l=l.concat(s)),this.colsToUse=i.get("includeHiddenColumnsInQuickFilter")?l:l.filter(e=>e.isVisible()||e.isRowGroupActive())}isFilterPresent(){return null!==this.quickFilter}doesRowPass(e){let t=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassMatcher(t,e):this.quickFilterParts.every(i=>t?this.doesRowPassCache(e,i):this.doesRowPassNoCache(e,i))}resetCache(){this.beans.rowModel.forEachNode(e=>e.quickFilterAggregateText=null)}getText(){return this.gos.get("quickFilterText")}setFilterParts(){let{quickFilter:e,parser:t}=this;e?this.quickFilterParts=t?t(e):e.split(" "):this.quickFilterParts=null}parseFilter(e){return F(e)?e.toUpperCase():null}setFilter(e){if(null!=e&&"string"!=typeof e)return void tX(70,{newFilter:e});let t=this.parseFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setParserAndMatcher(){let e=this.gos.get("quickFilterParser"),t=this.gos.get("quickFilterMatcher"),i=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,i&&(this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onColumnConfigChanged(){this.refreshCols(),this.resetCache(),this.isFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassNoCache(e,t){return this.colsToUse.some(i=>{let o=this.getTextForColumn(i,e);return F(o)&&o.includes(t)})}doesRowPassCache(e,t){return this.checkGenerateAggText(e),e.quickFilterAggregateText.includes(t)}doesRowPassMatcher(e,t){let i;e?(this.checkGenerateAggText(t),i=t.quickFilterAggregateText):i=this.getAggText(t);let{quickFilterParts:o,matcher:r}=this;return r(o,i)}checkGenerateAggText(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getAggText(e))}getTextForColumn(e,t){let i=this.beans.filterValueSvc.getValue(e,t),o=e.getColDef();if(o.getQuickFilterText){let r=iK(this.gos,{value:i,node:t,data:t.data,column:e,colDef:o});i=o.getQuickFilterText(r)}return F(i)?i.toString().toUpperCase():null}getAggText(e){let t=[];for(let i of this.colsToUse){let o=this.getTextForColumn(i,e);
47F(o)&&t.push(o)}return t.join("\n")}},Cl={moduleName:"FilterCore",version:tU,beans:[mK],apiFunctions:{isAnyFilterPresent:function(e){return!!e.filterManager?.isAnyFilterPresent()},onFilterChanged:function(e,t="api"){e.filterManager?.onFilterChanged({source:t})}},css:[".ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;:where(.ag-set-filter-group-closed-icon),:where(.ag-set-filter-group-indeterminate-icon),:where(.ag-set-filter-group-opened-icon){cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper{min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>:where(.ag-date-floating-filter-wrapper),>:where(.ag-floating-filter-input),>:where(.ag-input-field){flex:1 1 auto}:where(.ag-input-field-input[type=date]),:where(.ag-input-field-input[type=datetime-local]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-date-floating-filter-wrapper{display:flex}.ag-set-floating-filter-input :where(.ag-input-field-input)[disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{align-items:unset;background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:solid var(--ag-border-width) var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}
47:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:var(--ag-widget-container-vertical-padding);:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}"],dependsOn:[{moduleName:"ClientSideRowModelFilter",version:tU,rowModels:["clientSide"],beans:[gK]}]},Ca={moduleName:"FilterValue",version:tU,beans:[mY]},Cd={moduleName:"ColumnFilter",version:tU,beans:[mq,mj],dynamicBeans:{headerFilterCellCtrl:mD},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:function(e){let t=e.filterManager;return!!t?.isColumnFilterPresent()||!!t?.isAggregateFilterPresent()},getColumnFilterInstance:function(e,t){return e.filterManager?.getColumnFilterInstance(t)??Promise.resolve(void 0)},destroyFilter:function(e,t){let i=e.colModel.getColDefCol(t);if(i)return e.colFilter?.destroyFilter(i,"api")},setFilterModel:function(e,t){e.frameworkOverrides.wrapIncoming(()=>e.filterManager?.setFilterModel(t))},getFilterModel:function(e){return e.filterManager?.getFilterModel()??{}},getColumnFilterModel:function(e,t,i){let{gos:o,colModel:r,colFilter:s}=e;i&&!o.get("enableFilterHandlers")&&(tX(288),i=!1);let n=r.getColDefCol(t);return n?s?.getModelForColumn(n,i)??null:null},setColumnFilterModel:function(e,t,i){return e.filterManager?.setColumnFilterModel(t,i)??Promise.resolve()},showColumnFilter:function(e,t){let i=e.colModel.getCol(t);if(!i)return void t0(12,{colKey:t});e.menuSvc?.showFilterMenu({column:i,containerType:"columnFilter",positionBy:"auto"})},hideColumnFilter:function(e){e.menuSvc?.hideFilterMenu()},getColumnFilterHandler:function(e,t){let i=e.colModel.getCol(t);return i?e.colFilter?.getHandler(i,!0):void t0(12,{colKey:t})},doFilterAction:function(e,t){let{colModel:i,colFilter:o,gos:r}=e;if(!r.get("enableFilterHandlers"))return void tX(287);let{colId:s,action:n}=t;if(s){let e=i.getColById(s);e&&o?.updateModel(e,n)}else o?.updateAllModels(n)}},dependsOn:[Cl,pc,Ca,mT]},Ch={moduleName:"CustomFilter",version:tU,userComponents:{agReadOnlyFloatingFilter:mZ},dependsOn:[Cd]},Cu={moduleName:"TextFilter",version:tU,dependsOn:[Cd],userComponents:{agTextColumnFilter:{classImp:f9,params:{useForm:!0}},agTextColumnFloatingFilter:Cs},dynamicBeans:{agTextColumnFilterHandler:Cr}},Cc={moduleName:"NumberFilter",version:tU,dependsOn:[Cd],userComponents:{agNumberColumnFilter:{classImp:f1,params:{useForm:!0}},agNumberColumnFloatingFilter:f8},dynamicBeans:{agNumberColumnFilterHandler:f4}},Cg={moduleName:"BigIntFilter",version:tU,dependsOn:[Cd],userComponents:{agBigIntColumnFilter:{classImp:m9,params:{useForm:!0}},agBigIntColumnFloatingFilter:fg},dynamicBeans:{agBigIntColumnFilterHandler:fn}},Cp={moduleName:"DateFilter",version:tU,dependsOn:[Cd],userComponents:{agDateColumnFilter:{classImp:fb,params:{useForm:!0}},agDateInput:fY,agDateColumnFloatingFilter:fK},dynamicBeans:{agDateColumnFilterHandler:fR}},Cm={moduleName:"QuickFilter",version:tU,apiFunctions:{isQuickFilterPresent:function(e){return!!e.quickFilter?.isFilterPresent()},getQuickFilter:function(e){return e.quickFilter?.getText()},resetQuickFilter:function(e){e.quickFilter?.resetCache()}},dependsOn:[{moduleName:"QuickFilterCore",version:tU,rowModels:["clientSide"],beans:[Cn],dependsOn:[Cl,Ca]}]},Cf={moduleName:"ExternalFilter",version:tU,dependsOn:[Cl]},CC=class extends tc{constructor(e,t,i){super(),this.id=e,this.parentCache=t,this.params=i,this.state="needsLoading",this.version=0,this.startRow=e*i.blockSize,this.endRow=this.startRow+i.blockSize}load(){this.state="loading",this.loadFromDatasource()}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}pageLoadFailed(e){this.isRequestMostRecentAndLive(e)&&(this.state="failed"),this.dispatchLocalEvent({type:"loadComplete"})}
47pageLoaded(e,t,i){this.successCommon(e,{rowData:t,rowCount:i})}isRequestMostRecentAndLive(e){let t=e===this.version,i=this.isAlive();return t&&i}successCommon(e,t){this.dispatchLocalEvent({type:"loadComplete"}),this.isRequestMostRecentAndLive(e)&&(this.state="loaded",this.processServerResult(t))}postConstruct(){this.rowNodes=[];let{params:{blockSize:e,rowHeight:t},startRow:i,beans:o,rowNodes:r}=this;for(let s=0;s<e;s++){let e=i+s,n=new nb(o);n.setRowHeight(t),n.uiLevel=0,n.setRowIndex(e),n.setRowTop(t*e),r.push(n)}}getBlockStateJson(){let{id:e,startRow:t,endRow:i,state:o}=this;return{id:""+e,state:{blockNumber:e,startRow:t,endRow:i,pageStatus:o}}}setDataAndId(e,t,i){F(t)?e.setDataAndId(t,i.toString()):e.setDataAndId(void 0,void 0)}loadFromDatasource(){let e=this.createLoadParams();if(P(this.params.datasource.getRows))return void tX(90);window.setTimeout(()=>{this.params.datasource.getRows(e)},0)}createLoadParams(){let{startRow:e,endRow:t,version:i,params:{sortModel:o,filterModel:r},gos:s}=this;return iK(s,{startRow:e,endRow:t,successCallback:this.pageLoaded.bind(this,i),failCallback:this.pageLoadFailed.bind(this,i),sortModel:o,filterModel:r})}forEachNode(e,t,i){this.rowNodes.forEach((o,r)=>{this.startRow+r<i&&e(o,t.value++)})}getRow(e,t=!1){t||(this.lastAccessed=this.params.lastAccessedSequence.value++);let i=e-this.startRow;return this.rowNodes[i]}processServerResult(e){let{rowNodes:t,beans:i}=this;t.forEach((o,r)=>{let s=e.rowData?e.rowData[r]:void 0;!o.id&&o.alreadyRendered&&s&&(t[r]=new nb(i),t[r].setRowIndex(o.rowIndex),t[r].setRowTop(o.rowTop),t[r].setRowHeight(o.rowHeight),o._destroy(!0)),this.setDataAndId(t[r],s,this.startRow+r)});let o=null!=e.rowCount&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,o)}destroy(){let e=this.rowNodes;for(let t=0,i=e.length;t<i;t++)e[t]._destroy(!1);e.length=0,super.destroy()}},Cv=class extends tc{constructor(e){super(),this.params=e,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=e.initialRowCount}getRow(e,t=!1){let i=Math.floor(e/this.params.blockSize),o=this.blocks[i];if(!o){if(t)return;o=this.createBlock(i)}return o.getRow(e)}createBlock(e){let t=this.params,i=this.createBean(new CC(e,this,t));return this.blocks[i.id]=i,this.blockCount++,this.purgeBlocksIfNeeded(i),t.rowNodeBlockLoader.addBlock(i),i}refreshCache(){if(0==this.blockCount)return void this.purgeCache();for(let e of this.getBlocksInOrder())e.setStateWaitingToLoad();this.params.rowNodeBlockLoader.checkBlockToLoad()}destroy(){for(let e of this.getBlocksInOrder())this.destroyBlock(e);super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(e,t){this.isAlive()&&(tM(this.gos,`InfiniteCache - onPageLoaded: page = ${e.id}, lastRow = ${t}`),this.checkRowCount(e,t),this.onCacheUpdated())}purgeBlocksIfNeeded(e){let t=this.getBlocksInOrder().filter(t=>t!=e);t.sort((e,t)=>t.lastAccessed-e.lastAccessed);let i=this.params.maxBlocksInCache>0,o=i?this.params.maxBlocksInCache-1:null;t.forEach((e,t)=>{if("needsLoading"===e.state&&t>=1||i&&t>=o){if(!(this.isBlockCurrentlyDisplayed(e)||this.isBlockFocused(e)))this.removeBlockFromCache(e)}})}isBlockFocused(e){let t=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!t||null!=t.rowPinned)return!1;let{startRow:i,endRow:o}=e;return t.rowIndex>=i&&t.rowIndex<o}isBlockCurrentlyDisplayed(e){let{startRow:t,endRow:i}=e;return this.beans.rowRenderer.isRangeInRenderedViewport(t,i-1)}removeBlockFromCache(e){e&&this.destroyBlock(e)}checkRowCount(e,t){if("number"==typeof t&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){let{blockSize:t,overflowSize:i}=this.params,o=(e.id+1)*t+i;this.rowCount<o&&(this.rowCount=o)}}setRowCount(e,t){this.rowCount=e,F(t)&&(this.lastRowIndexKnown=t),!this.lastRowIndexKnown&&this.rowCount%this.params.blockSize==0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(e){let t={value:0};for(let i of this.getBlocksInOrder())i.forEachNode(e,t,this.rowCount)}getBlocksInOrder(){return Object.values(this.blocks).sort((e,t)=>e.id-t.id)}destroyBlock(e){delete this.blocks[e.id],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)}
47onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventSvc.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){let e=[];for(let t of this.getBlocksInOrder())t.id*this.params.blockSize>=this.rowCount&&e.push(t);if(e.length>0)for(let t of e)this.destroyBlock(t)}purgeCache(){for(let e of this.getBlocksInOrder())this.removeBlockFromCache(e);this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(e,t){let i=[],o=-1,r=!1,s={value:0},n=!1;for(let l of this.getBlocksInOrder())if(!n){if(r&&o+1!==l.id){n=!0;continue}o=l.id,l.forEachNode(o=>{let s=o===e||o===t;(r||s)&&i.push(o),s&&(r=!r)},s,this.rowCount)}return n||r?[]:i}},Cw={moduleName:"InfiniteRowModel",version:tU,apiFunctions:{refreshInfiniteCache:function(e){ng(e)?.refreshCache()},purgeInfiniteCache:function(e){ng(e)?.purgeCache()},getInfiniteRowCount:function(e){return ng(e)?.getRowCount()}},dependsOn:[{moduleName:"InfiniteRowModelCore",version:tU,rowModels:["infinite"],beans:[class extends tc{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null}getRowBounds(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}}ensureRowHeightsValid(){return!1}postConstruct(){if("infinite"!==this.gos.get("rowModelType"))return;let e=this.beans,t=new nb(e);this.rootNode=t,t.level=-1,this.rowHeight=ir(e),this.addEventListeners(),this.addDestroyFunc(()=>this.destroyCache())}start(){this.setDatasource(this.gos.get("datasource"))}destroy(){this.destroyDatasource(),super.destroy(),this.rootNode=null}destroyDatasource(){this.datasource&&(this.destroyBean(this.datasource),this.beans.rowRenderer.datasourceChanged(),this.datasource=null)}addEventListeners(){this.addManagedEventListeners({filterChanged:this.reset.bind(this),sortChanged:this.reset.bind(this),newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.dispatchModelUpdatedEvent.bind(this)}),this.addManagedPropertyListener("datasource",()=>this.setDatasource(this.gos.get("datasource"))),this.addManagedPropertyListener("cacheBlockSize",()=>this.resetCache()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=ir(this.beans),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onColumnEverything(){this.cacheParams&&M(this.cacheParams.sortModel,this.beans.sortSvc?.getSortModel()??[])||this.reset()}getType(){return"infinite"}setDatasource(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getOverlayType(){let e=this.infiniteCache;return e?.getRowCount()===0?this.beans.filterManager?.isAnyFilterPresent()?"noMatchingRows":"noRows":null}getNodesInRangeForSelection(e,t){return this.infiniteCache?.getRowNodesInRange(e,t)??[]}reset(){if(this.datasource)null==iw(this.gos)&&this.beans.selectionSvc?.reset("rowDataChanged"),this.resetCache()}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){this.destroyCache();let e=this.beans,{filterManager:t,sortSvc:i,rowNodeBlockLoader:o,eventSvc:r,gos:s}=e;this.cacheParams={datasource:this.datasource,filterModel:t?.getFilterModel()??{},sortModel:i?.getSortModel()??[],rowNodeBlockLoader:o,initialRowCount:s.get("infiniteInitialRowCount"),maxBlocksInCache:s.get("maxBlocksInCache"),rowHeight:ir(e),overflowSize:s.get("cacheOverflowSize"),blockSize:s.get("cacheBlockSize"),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new Cv(this.cacheParams)),r.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(e=>{e.setRowHeight(this.rowHeight),e.setRowTop(this.rowHeight*e.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(e){let t=this.infiniteCache;if(t&&!(e>=t.getRowCount()))return t.getRow(e)}getRowNode(e){let t;return this.forEachNode(i=>{i.id===e&&(t=i)}),t}forEachNode(e){this.infiniteCache?.forEachNodeDeep(e)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}getRowIndexAtPixel(e){if(0!==this.rowHeight){let t=Math.floor(e/this.rowHeight),i=this.getRowCount()-1;return t>i?i:t}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(e){return!!this.getRowNode(e.id)}refreshCache(){this.infiniteCache?.refreshCache()}purgeCache(){this.infiniteCache?.purgeCache()}isLastRowIndexKnown(){return this.infiniteCache?.isLastRowIndexKnown()??!1}setRowCount(e,t){this.infiniteCache?.setRowCount(e,t)}resetRowHeights(){}onRowHeightChanged(){}},class extends tc{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=iy(this.gos);let e=this.gos.get("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=tv(this,this.performCheckBlocksToLoad.bind(this),e))}
47addBlock(e){this.blocks.push(e),e.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){y(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad()}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)return void tM(this.gos,"RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");let e=null!=this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:1,t=this.blocks.filter(e=>"needsLoading"===e.state).slice(0,e);for(let e of(this.activeBlockLoadsCount+=t.length,t))e.load();this.printCacheStatus()}getBlockState(){let e={};return this.blocks.forEach(t=>{let{id:i,state:o}=t.getBlockStateJson();e[i]=o}),e}printCacheStatus(){tM(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}}]},gG]},Cb={moduleName:"EventApi",version:tU,apiFunctions:{addEventListener:function(e,t,i){e.apiEventSvc?.addListener(t,i)},addGlobalListener:function(e,t){e.apiEventSvc?.addGlobalListener(t)},removeEventListener:function(e,t,i){e.apiEventSvc?.removeListener(t,i)},removeGlobalListener:function(e,t){e.apiEventSvc?.removeGlobalListener(t)}},beans:[class extends tc{constructor(){super(...arguments),this.beanName="apiEventSvc",this.syncListeners=new Map,this.asyncListeners=new Map,this.syncGlobalListeners=new Set,this.globalListenerPairs=new Map}postConstruct(){this.wrapSvc=this.beans.frameworkOverrides.createGlobalEventListenerWrapper?.()}addListener(e,t){let i=this.wrapSvc?.wrap(e,t)??t,o=!ux.has(e),r=o?this.asyncListeners:this.syncListeners;r.has(e)||r.set(e,new Set),r.get(e).add(i),this.eventSvc.addListener(e,i,o)}removeListener(e,t){let i=this.wrapSvc?.unwrap(e,t)??t,o=this.asyncListeners.get(e),r=!!o?.delete(i);r||this.syncListeners.get(e)?.delete(i),this.eventSvc.removeListener(e,i,r)}addGlobalListener(e){let t=this.wrapSvc?.wrapGlobal(e)??e,i=(e,i)=>{ux.has(e)&&t(e,i)},o=(e,i)=>{ux.has(e)||t(e,i)};this.globalListenerPairs.set(e,{syncListener:i,asyncListener:o});let r=this.eventSvc;r.addGlobalListener(i,!1),r.addGlobalListener(o,!0)}removeGlobalListener(e){let{eventSvc:t,wrapSvc:i,globalListenerPairs:o}=this,r=i?.unwrapGlobal(e)??e;if(o.has(r)){let{syncListener:i,asyncListener:s}=o.get(r);t.removeGlobalListener(i,!1),t.removeGlobalListener(s,!0),o.delete(e)}else this.syncGlobalListeners.delete(r),t.removeGlobalListener(r,!1)}destroyEventListeners(e,t){e.forEach((e,i)=>{e.forEach(e=>this.eventSvc.removeListener(i,e,t)),e.clear()}),e.clear()}destroyGlobalListeners(e,t){for(let i of e)this.eventSvc.removeGlobalListener(i,t);e.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncListeners,!1),this.destroyEventListeners(this.asyncListeners,!0),this.destroyGlobalListeners(this.syncGlobalListeners,!1);let{globalListenerPairs:e,eventSvc:t}=this;e.forEach(({syncListener:e,asyncListener:i})=>{t.removeGlobalListener(e,!1),t.removeGlobalListener(i,!0)}),e.clear()}}]},Cy=class extends tc{constructor(){super(...arguments),this.beanName="localeSvc"}getLocaleTextFunc(){let e=this.gos,t=e.getCallback("getLocaleText");return t?td(t):th(e.get("localeText"))}},CS={moduleName:"Locale",version:tU,beans:[Cy]};function CR(e){var t;return(e={...e}).version||(e.version="32.1.0"),"32.1.0"===e.version&&((t=e).cellSelection=function(e,t){if(e&&"object"==typeof e)return e[t]}(t,"rangeSelection"),e=t),e.version=tU,e}var CE={moduleName:"GridState",version:tU,beans:[class extends tc{constructor(){super(...arguments),this.beanName="stateSvc",this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=tv(this,()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=tv(this,()=>{this.beans.gos.get("ssrmExpandAllAffectsAllRows")?(this.updateCachedState("ssrmRowGroupExpansion",this.getRowGroupExpansionState()),this.updateCachedState("rowGroupExpansion",void 0)):(this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState()),this.updateCachedState("ssrmRowGroupExpansion",void 0))},0),this.onRowSelectedDebounced=tv(this,()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}
47postConstruct(){let{gos:e,ctrlsSvc:t,colDelayRenderSvc:i}=this.beans;this.isClientSideRowModel=t8(e);let o=CR(e.get("initialState")??{}),r=o.partialColumnState;delete o.partialColumnState,this.cachedState=o;let s=this.suppressEventsAndDispatchInitEvent.bind(this);t.whenReady(this,()=>s(()=>this.setupStateOnGridReady(o))),(o.columnOrder||o.columnVisibility||o.columnSizing||o.columnPinning||o.columnGroup)&&i?.hideColumns("columnState");let[n,l,a]=this.addManagedEventListeners({newColumnsLoaded:({source:e})=>{"gridInitializing"===e&&(n(),s(()=>{this.setupStateOnColumnsInitialised(o,!!r),i?.revealColumns("columnState")}))},rowCountReady:()=>{l?.(),s(()=>this.setupStateOnRowCountReady(o))},firstDataRendered:()=>{a?.(),s(()=>this.setupStateOnFirstDataRendered(o))}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setState(e,t){let i=CR(e);delete i.partialColumnState,this.cachedState=i,this.startSuppressEvents();let o=t?new Set(t):void 0;this.setGridReadyState(i,"api",o),this.setColumnsInitialisedState(i,"api",!!o,o),this.setRowCountState(i,"api",o),setTimeout(()=>{this.isAlive()&&this.setFirstDataRenderedState(i,"api",o),this.stopSuppressEvents("api")})}setGridReadyState(e,t,i){"api"!==t||i?.has("sideBar")||this.beans.sideBar?.comp?.setState(e.sideBar),this.updateCachedState("sideBar",this.getSideBarState())}setupStateOnGridReady(e){this.setGridReadyState(e,"gridInitializing");let t=()=>this.updateCachedState("sideBar",this.getSideBarState());this.addManagedEventListeners({toolPanelVisibleChanged:t,sideBarUpdated:t})}updateColumnAndGroupState(){this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState())}setColumnsInitialisedState(e,t,i,o){this.setColumnState(e,t,i,o),this.setColumnGroupState(e,t,o),this.updateColumnAndGroupState()}setupStateOnColumnsInitialised(e,t){this.setColumnsInitialisedState(e,"gridInitializing",t);let i=e=>()=>this.updateColumnState([e]);this.addManagedEventListeners({columnValueChanged:i("aggregation"),columnMoved:i("columnOrder"),columnPinned:i("columnPinning"),columnResized:i("columnSizing"),columnVisible:i("columnVisibility"),columnPivotChanged:i("pivot"),columnPivotModeChanged:i("pivot"),columnRowGroupChanged:i("rowGroup"),sortChanged:i("sort"),newColumnsLoaded:this.updateColumnAndGroupState.bind(this),columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setRowCountState(e,t,i){let{filter:o,rowGroupExpansion:r,ssrmRowGroupExpansion:s,rowSelection:n,pagination:l,rowPinning:a}=e,d=(e,o)=>!i?.has(e)&&(o||"api"===t);d("filter",o)&&this.setFilterState(o),d("rowGroupExpansion",r)&&this.setRowGroupExpansionState(s,r,t),d("rowSelection",n)&&this.setRowSelectionState(n,t),d("pagination",l)&&this.setPaginationState(l,t),d("rowPinning",a)&&this.setRowPinningState(a);let h=this.updateCachedState.bind(this);h("filter",this.getFilterState()),this.beans.gos.get("ssrmExpandAllAffectsAllRows")?(h("ssrmRowGroupExpansion",this.getRowGroupExpansionState()),h("rowGroupExpansion",void 0)):(h("rowGroupExpansion",this.getRowGroupExpansionState()),h("ssrmRowGroupExpansion",void 0)),h("rowSelection",this.getRowSelectionState()),h("pagination",this.getPaginationState())}setupStateOnRowCountReady(e){this.setRowCountState(e,"gridInitializing");let t=this.updateCachedState.bind(this),i=()=>{this.updateRowGroupExpansionStateTimer=0,this.beans.gos.get("ssrmExpandAllAffectsAllRows")?(t("ssrmRowGroupExpansion",this.getRowGroupExpansionState()),t("rowGroupExpansion",void 0)):(t("rowGroupExpansion",this.getRowGroupExpansionState()),t("ssrmRowGroupExpansion",void 0))},o=()=>t("filter",this.getFilterState()),{gos:r,colFilter:s,selectableFilter:n}=this.beans;this.addManagedEventListeners({filterChanged:o,rowExpansionStateChanged:this.onRowGroupOpenedDebounced,expandOrCollapseAll:i,columnRowGroupChanged:i,rowDataUpdated:()=>{(0!==r.get("groupDefaultExpanded")||r.get("isGroupOpenByDefault"))&&(this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(i)))},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:e=>{(e.newPage||e.newPageSize)&&t("pagination",this.getPaginationState())},pinnedRowsChanged:()=>t("rowPinning",this.getRowPinningState())}),s&&this.addManagedListeners(s,{filterStateChanged:o}),n&&this.addManagedListeners(n,{selectedFilterChanged:o})}setFirstDataRenderedState(e,t,i){let{scroll:o,cellSelection:r,focusedCell:s,columnOrder:n}=e,l=(e,o)=>!i?.has(e)&&(o||"api"===t);l("focusedCell",s)&&this.setFocusedCellState(s),l("cellSelection",r)&&this.setCellSelectionState(r),l("scroll",o)&&this.setScrollState(
47o),this.setColumnPivotState(!!n?.orderedColIds,t);let a=this.updateCachedState.bind(this);a("sideBar",this.getSideBarState()),a("focusedCell",this.getFocusedCellState());let d=this.getRangeSelectionState();a("rangeSelection",d),a("cellSelection",d),a("scroll",this.getScrollState())}setupStateOnFirstDataRendered(e){this.setFirstDataRenderedState(e,"gridInitializing");let t=this.updateCachedState.bind(this),i=()=>t("focusedCell",this.getFocusedCellState());this.addManagedEventListeners({cellFocused:i,cellFocusCleared:i,cellSelectionChanged:e=>{if(e.finished){let e=this.getRangeSelectionState();t("rangeSelection",e),t("cellSelection",e)}},bodyScrollEnd:()=>t("scroll",this.getScrollState())})}getColumnState(){let e=this.beans;return gx(oW(e),e.colModel.isPivotMode())}setColumnState(e,t,i,o){let{sort:r,rowGroup:s,aggregation:n,pivot:l,columnPinning:a,columnVisibility:d,columnSizing:h,columnOrder:u}=e,c=!1,g=(e,i)=>{let r=!o?.has(e)&&!!(i||"api"===t);return c||(c=r),r},p={},m=e=>{let t=p[e];return t||(t={colId:e},p[e]=t),t},f={},C=g("sort",r);C&&r?.sortModel.forEach(({colId:e,sort:t},i)=>{let o=m(e);o.sort=t,o.sortIndex=i}),(C||!i)&&(f.sort=null,f.sortIndex=null);let v=g("rowGroup",s);v&&s?.groupColIds.forEach((e,t)=>{let i=m(e);i.rowGroup=!0,i.rowGroupIndex=t}),(v||!i)&&(f.rowGroup=null,f.rowGroupIndex=null);let w=g("aggregation",n);w&&n?.aggregationModel.forEach(({colId:e,aggFunc:t})=>{m(e).aggFunc=t}),(w||!i)&&(f.aggFunc=null);let b=g("pivot",l);b&&(l?.pivotColIds.forEach((e,t)=>{let i=m(e);i.pivot=!0,i.pivotIndex=t}),this.gos.updateGridOptions({options:{pivotMode:!!l?.pivotMode},source:t})),(b||!i)&&(f.pivot=null,f.pivotIndex=null);let y=g("columnPinning",a);if(y){for(let e of a?.leftColIds??[])m(e).pinned="left";for(let e of a?.rightColIds??[])m(e).pinned="right"}(y||!i)&&(f.pinned=null);let S=g("columnVisibility",d);if(S)for(let e of d?.hiddenColIds??[])m(e).hide=!0;(S||!i)&&(f.hide=null);let R=g("columnSizing",h);if(R)for(let{colId:e,flex:t,width:i}of h?.columnSizingModel??[]){let o=m(e);o.flex=t??null,o.width=i}(R||!i)&&(f.flex=null);let E=u?.orderedColIds,x=!!E?.length&&!o?.has("columnOrder"),F=x?E.map(e=>m(e)):Object.values(p);(F.length||c)&&(this.columnStates=F,oO(this.beans,{state:F,applyOrder:x,defaultState:f},t))}setColumnPivotState(e,t){let i=this.columnStates;this.columnStates=void 0;let o=this.columnGroupStates;this.columnGroupStates=void 0;let r=this.beans,{pivotResultCols:s,colGroupSvc:n}=r;if(s?.isPivotResultColsPresent()){if(i){let o=[];for(let e of i)s.getPivotResultCol(e.colId)&&o.push(e);oO(r,{state:o,applyOrder:e},t)}o&&n?.setColumnGroupState(o,t)}}getColumnGroupState(){let e=this.beans.colGroupSvc;if(e)return gP(e.getColumnGroupState())}setColumnGroupState(e,t,i){let o=this.beans.colGroupSvc;if(!o||i?.has("columnGroup")||"api"!==t&&!Object.prototype.hasOwnProperty.call(e,"columnGroup"))return;let r=new Set(e.columnGroup?.openColumnGroupIds),s=o.getColumnGroupState().map(({groupId:e})=>{let t=r.has(e);return t&&r.delete(e),{groupId:e,open:t}});for(let e of r)s.push({groupId:e,open:!0});s.length&&(this.columnGroupStates=s),o.setColumnGroupState(s,t)}getFilterState(){let{filterManager:e,selectableFilter:t}=this.beans,i=e?.getFilterModel();i&&0===Object.keys(i).length&&(i=void 0);let o=e?.getFilterState(),r=e?.getAdvFilterModel()??void 0,s=t?.getState();return i||r||o||s?{filterModel:i,columnFilterState:o,advancedFilterModel:r,selectableFilters:s}:void 0}setFilterState(e){let{filterManager:t,selectableFilter:i}=this.beans,{filterModel:o,columnFilterState:r,advancedFilterModel:s,selectableFilters:n}=e??{filterModel:null,columnFilterState:null,advancedFilterModel:null};void 0!==n&&i?.setState(n??{}),(void 0!==o||void 0!==r)&&t?.setFilterState(o??null,r??null,"columnFilter"),void 0!==s&&t?.setAdvFilterModel(s??null,"advancedFilter")}getRangeSelectionState(){let e=this.beans.rangeSvc?.getCellRanges().map(e=>{let{id:t,type:i,startRow:o,endRow:r,columns:s,startColumn:n}=e;return{id:t,type:i,startRow:o,endRow:r,colIds:s.map(e=>e.getColId()),startColId:n.getColId()}});return e?.length?{cellRanges:e}:void 0}setCellSelectionState(e){let{gos:t,rangeSvc:i,colModel:o,visibleCols:r}=this.beans;if(!ik(t)||!i)return;let s=[];for(let t of e?.cellRanges??[]){let e=[];
47for(let i of t.colIds){let t=o.getCol(i);t&&e.push(t)}if(!e.length)continue;let i=o.getCol(t.startColId);if(!i){let t=r.allCols,o=new Set(e);i=t.find(e=>o.has(e))}s.push({...t,columns:e,startColumn:i})}i.setCellRanges(s)}getScrollState(){if(!this.isClientSideRowModel)return;let e=this.beans.ctrlsSvc.getScrollFeature(),{left:t}=e?.getHScrollPosition()??{left:0},{top:i}=e?.getVScrollPosition()??{top:0};return i||t?{top:i,left:t}:void 0}setScrollState(e){if(!this.isClientSideRowModel)return;let{top:t,left:i}=e??{top:0,left:0},{frameworkOverrides:o,rowRenderer:r,animationFrameSvc:s,ctrlsSvc:n}=this.beans;o.wrapIncoming(()=>{n.get("center").setCenterViewportScrollLeft(i),n.getScrollFeature()?.setVerticalScrollPosition(t),r.redraw({afterScroll:!0}),s?.flushAllFrames()})}getSideBarState(){return this.beans.sideBar?.comp?.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;let e=this.beans.focusSvc.getFocusedCell();if(e){let{column:t,rowIndex:i,rowPinned:o}=e;return{colId:t.getColId(),rowIndex:i,rowPinned:o}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;let{focusSvc:t,colModel:i}=this.beans;if(!e)return void t.clearFocusedCell();let{colId:o,rowIndex:r,rowPinned:s}=e;t.setFocusedCell({column:i.getCol(o),rowIndex:r,rowPinned:s,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){let{pagination:e,gos:t}=this.beans;if(!e)return;let i=e.getCurrentPage(),o=t.get("paginationAutoPageSize")?void 0:e.getPageSize();if(i||o)return{page:i,pageSize:o}}setPaginationState(e,t){let{pagination:i,gos:o}=this.beans;if(!i)return;let{pageSize:r,page:s}=e??{page:0,pageSize:o.get("paginationPageSize")},n="gridInitializing"===t;r&&!o.get("paginationAutoPageSize")&&i.setPageSize(r,n?"initialState":"pageSizeSelector"),"number"==typeof s&&(n?i.setPage(s):i.goToPage(s))}getRowSelectionState(){let e=this.beans.selectionSvc;if(!e)return;let t=e.getSelectionState();return t&&(Array.isArray(t)||!1!==t.selectAll&&!1!==t.selectAllChildren||t?.toggledNodes?.length)?t:void 0}setRowSelectionState(e,t){this.beans.selectionSvc?.setSelectionState(e,t,"api"===t)}getRowGroupExpansionState(){let{expansionSvc:e}=this.beans;if(e)return e.getExpansionState()}getRowPinningState(){return this.beans.pinnedRowModel?.getPinnedState()}setRowPinningState(e){let t=this.beans.pinnedRowModel;e?t?.setPinnedState(e):t?.reset()}setRowGroupExpansionState(e,t,i){let o=this.beans.expansionSvc;o&&o.setExpansionState(t??{expandedRowGroupIds:[],collapsedRowGroupIds:[]},i)}updateColumnState(e){let t=this.getColumnState(),i=!1,o=this.cachedState;for(let e of Object.keys(t))M(t[e],o[e])||(i=!0);this.cachedState={...o,...t},i&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){let i=this.cachedState[e];this.setCachedStateValue(e,t),M(t,i)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState={...this.cachedState,[e]:t}}refreshStaleState(){let e=this.staleStateKeys;for(let t of e)"rowSelection"===t&&this.setCachedStateValue(t,this.getRowSelectionState());e.clear()}dispatchStateUpdateEvent(e){if(!this.suppressEvents){for(let t of e)this.queuedUpdateSources.add(t);this.dispatchStateUpdateEventDebounced()}}dispatchQueuedStateUpdateEvents(){let e=this.queuedUpdateSources,t=Array.from(e);e.clear(),this.eventSvc.dispatchEvent({type:"stateUpdated",sources:t,state:this.cachedState})}startSuppressEvents(){this.suppressEvents=!0,this.beans.colAnimation?.setSuppressAnimation(!0)}stopSuppressEvents(e){setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(this.beans.colAnimation?.setSuppressAnimation(!1),this.dispatchStateUpdateEvent([e]))})}suppressEventsAndDispatchInitEvent(e){this.startSuppressEvents(),e(),this.stopSuppressEvents("gridInitializing")}}],apiFunctions:{getState:function(e){return e.stateSvc?.getState()??{}},setState:function(e,t,i){return e.stateSvc?.setState(t,i)}}},Cx=class extends tc{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowsCtrl=e.center;let t=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:t,scrollVisibilityChanged:t}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||null==this.centerRowsCtrl}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;let e=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(e>0){let t=this.beans,i=()=>{let i=Math.floor(e/Math.max(ir(t),1));t.pagination.setPageSize(i,"autoCalculated")};this.isBodyRendered?tv(this,i,50)():(i(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}};function CF(e,t){if("number"!=typeof e)return"";let i=t(),o=i("thousandSeparator",","),r=i("decimalSeparator",".");return e.toString().replace(".",r).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${o}`)}var CP="paginationPageSizeSelector",CD={tag:"span",cls:"ag-paging-page-size"},CM={selector:"AG-PAGE-SIZE-SELECTOR",component:class extends o5{constructor(){super(CD),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>
47{if(!this.selectPageSizeComp)return;let e=this.selectPageSizeComp.getValue();if(!e)return;let t=Number(e);isNaN(t)||t<1||t===this.pagination.getPageSize()||(this.pagination.setPageSize(t,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(e){this.pagination=e.pagination}postConstruct(){this.addManagedPropertyListener(CP,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:e=>this.handlePaginationChanged(e)})}handlePaginationChanged(e){if(!this.selectPageSizeComp||!e?.newPageSize)return;let t=this.pagination.getPageSize();this.getPageSizeSelectorValues().includes(t)?this.selectPageSizeComp.setValue(t.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(e){if(this.selectPageSizeComp&&!e&&this.reset(),e&&(this.reloadPageSizesSelector(),!this.selectPageSizeComp))return}reset(){eH(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&!1!==this.gos.get(CP)}reloadPageSizesSelector(){let e=this.getPageSizeSelectorValues(),t=this.pagination.getPageSize(),i=!t||!e.includes(t);if(i){let i=this.gos.exists("paginationPageSize"),o=!0!==this.gos.get(CP);tX(94,{pageSizeSet:i,pageSizesSet:o,pageSizeOptions:e,paginationPageSizeOption:t}),o||tX(95,{paginationPageSizeOption:t,paginationPageSizeSelector:CP}),e.unshift("")}let o=String(i?"":t);this.selectPageSizeComp?(w(this.pageSizeOptions,e)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)),this.pageSizeOptions=e),this.selectPageSizeComp.setValue(o,!0)):this.createPageSizeSelectorComp(e,o),this.hasEmptyOption=i}createPageSizeSelectOptions(e){return e.map(e=>({value:String(e)}))}createPageSizeSelectorComp(e,t){let i=this.getLocaleTextFunc(),o=i("pageSizeSelectorLabel","Page Size:"),r=i("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new p_).addOptions(this.createPageSizeSelectOptions(e)).setValue(t).setAriaLabel(r).setLabel(o).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){let e=this.gos.get(CP);return Array.isArray(e)&&e?.length?[...e].sort((e,t)=>e-t):[20,50,100]}destroy(){this.toggleSelectDisplay(!1),super.destroy()}}},Ck={selector:"AG-PAGINATION",component:class extends lX{constructor(){super(),this.btFirst=oZ,this.btPrevious=oZ,this.btNext=oZ,this.btLast=oZ,this.lbRecordCount=oZ,this.lbFirstRowOnPage=oZ,this.lbLastRowOnPage=oZ,this.lbCurrent=oZ,this.lbTotal=oZ,this.pageSizeComp=oZ,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1,this.registerCSS(".ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;flex-wrap:wrap-reverse;gap:calc(var(--ag-spacing)*4);justify-content:flex-end;min-height:var(--ag-pagination-panel-height);padding:calc(var(--ag-spacing)*.5) var(--ag-cell-horizontal-padding);row-gap:calc(var(--ag-spacing)*.5);@container (width < 600px){justify-content:center}}:where(.ag-paging-page-size) .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel,.ag-paging-row-summary-panel{margin:calc(var(--ag-spacing)*.5)}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}.ag-paging-button{cursor:pointer;position:relative;&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-weight:500}.ag-paging-description{line-height:0}")}wireBeans(e){this.rowModel=e.rowModel,this.pagination=e.pagination,this.ariaAnnounce=e.ariaAnnounce}postConstruct(){let e=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[CM]);let{btFirst:t,btPrevious:i,btNext:o,btLast:r}=this;this.activateTabIndex([t,i,o,r]),t.insertAdjacentElement("afterbegin",o1(e?"last":"first",this.beans)),i.insertAdjacentElement("afterbegin",o1(e?"next":"previous",this.beans)),o.insertAdjacentElement("afterbegin",o1(e?"previous":"next",this.beans)),r.insertAdjacentElement("afterbegin",o1(e?"first":"last",this.beans)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],()=>this.onPageSizeRelatedOptionsChange()),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:e=>this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(e):sy(this.beans,e),forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(e){this.allowFocusInnerElement=e}onPaginationChanged(){let e=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(e),e&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){if(!this.areListenersSetup){for(let e of(this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)}),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}])){let{el:t,fn:i}=e;this.addManagedListeners(t,{click:i,keydown:e=>{(e.key===oK.ENTER||e.key===oK.SPACE)&&(e.preventDefault(),i())}})}sb(this.beans,this,this.getGui()),this.areListenersSetup=!0}}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}formatNumber(e){let t=this.gos.getCallback("paginationNumberFormatter");return t?t({value:e}):CF(e,this.getLocaleTextFunc.bind(this))}getTemplate(){let e=this.getLocaleTextFunc(),t=`ag-${this.getCompId()}`;return{tag:"div",cls:"ag-paging-panel ag-unselectable",attrs:{id:`${t}`},children:[{tag:"ag-page-size-selector",ref:"pageSizeComp"},{tag:"span",cls:"ag-paging-row-summary-panel",children:[{tag:"span",ref:"lbFirstRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-first-row`}},{tag:"span",attrs:{id:`${t}-to`},children:e("to","to")},{tag:"span",ref:"lbLastRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-last-row`}},{tag:"span",attrs:{id:`${t}-of`},children:e("of","of")},{tag:"span",ref:"lbRecordCount",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-row-count`}}]},{tag:"span",cls:"ag-paging-page-summary-panel",role:"presentation",children:[{tag:"div",ref:"btFirst",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("firstPage","First Page")}},{tag:"div",ref:"btPrevious",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("previousPage","Previous Page")}},{tag:"span",cls:"ag-paging-description",children:[{tag:"span",attrs:{id:`${t}-start-page`},children:e("page","Page")},{tag:"span",ref:"lbCurrent",cls:"ag-paging-number",attrs:{id:`${t}-start-page-number`}},{tag:"span",attrs:{id:`${t}-of-page`},children:e("of","of")},{tag:"span",ref:"lbTotal",cls:"ag-paging-number",attrs:{id:`${t}-of-page-number`}}]},{tag:"div",ref:"btNext",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("nextPage","Next Page")}},{tag:"div",ref:"btLast",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("lastPage","Last Page")}}]}]}}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}enableOrDisableButtons(){let e=this.pagination.getCurrentPage(),t=this.rowModel.isLastRowIndexKnown(),i=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);let o=this.isZeroPagesToDisplay();this.nextButtonDisabled=e===i-1||o,this.lastButtonDisabled=!t||o||e===i-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){ee(e,t),e.classList.toggle("ag-disabled",t)}isZeroPagesToDisplay(){let e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages();return e&&0===t}updateLabels(){let e,t,i,o,r,s=this.rowModel.isLastRowIndexKnown(),n=this.pagination.getTotalPages(),l=this.pagination.getMasterRowCount(),a=s?l:null,d=this.pagination.getCurrentPage(),h=this.pagination.getPageSize();this.isZeroPagesToDisplay()?e=t=0:(t=(e=h*d+1)+h-1,s&&t>a&&(t=a));let u=e+h-1,c=this.formatNumber(e);this.lbFirstRowOnPage.textContent=c;let g=this.getLocaleTextFunc();i=!s&&l<u?g("pageLastRowUnknown","?"):this.formatNumber(t),this.lbLastRowOnPage.textContent=i;let p=n>0,m=this.formatNumber(p?d+1:0);if(this.lbCurrent.textContent=m,s)o=this.formatNumber(n),r=this.formatNumber(a);else{let e=g("more","more");o=e,r=e}this.lbTotal.textContent=o,this.lbRecordCount.textContent=r,this.announceAriaStatus(c,i,r,m,o)}announceAriaStatus(e,t,i,o,r){let s=this.getLocaleTextFunc(),n=s("page","Page"),l=s("to","to"),a=s("of","of"),d=`${e} ${l} ${t} ${a} ${i}`,h=`${n} ${o} ${a} ${r}`;d!==this.ariaRowStatus&&(this.ariaRowStatus=d,this.ariaAnnounce?.announceValue(d,"paginationRow")),h!==this.ariaPageStatus&&(this.ariaPageStatus=h,this.ariaAnnounce?.announceValue(h,"paginationPage"))}}},CT={moduleName:"Pagination",version:tU,beans:[class extends tc{constructor(){super(...arguments),this.beanName="pagination",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDis
47playedRowIndex=0,this.masterRowCount=0}postConstruct(){let e=this.gos;this.active=e.get("pagination"),this.pageSizeFromGridOptions=e.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return Ck}isPaginateChildRows(){let e=this.gos;return!!(e.get("groupHideParentOfSingleChild")||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren"))||e.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(e){let t=this.currentPage;if(!this.active||t===e||"number"!=typeof t)return;let{editSvc:i}=this.beans;i?.isEditing()&&(i.isBatchEditing()?i.cleanupEditors():i.stopEditing(void 0,{source:"api"})),this.currentPage=e,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0})}goToPageWithIndex(e){if(!this.active)return;let t=e;this.paginateChildRows||(t=this.beans.rowModel.getTopLevelIndexFromDisplayedIndex?.(e)??e),this.goToPage(Math.floor(t/this.pageSize))}isRowInPage(e){return!this.active||e>=this.topDisplayedRowIndex&&e<=this.bottomDisplayedRowIndex}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){let e=Math.floor(this.beans.rowModel.getRowCount()/this.pageSize);this.goToPage(e)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){return F(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:F(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:F(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:F(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:100}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(void 0===this.pageSizeAutoCalculated)return;let e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(e,t){let i=this.pageSize;switch(t){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,0!==this.currentPage&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"gridOptions":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,0!==this.currentPage&&this.goToFirstPage()}i!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){let e=this.totalPages;this.currentPage>=e&&(this.currentPage=e-1);let t=this.currentPage;(!isFinite(t)||isNaN(t)||t<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){let e=this.beans.rowModel,t=e.getTopLevelRowCount();if(this.masterRowCount=t,t<=0)return void this.setZeroRows();let i=this.pageSize,o=t-1;this.totalPages=Math.floor(o/i)+1,this.adjustCurrentPageIfInvalid();let r=this.currentPage,s=i*(r+1)-1;if(s>o&&(s=o),this.topDisplayedRowIndex=e.getTopLevelRowDisplayedIndex(i*r),s===o)this.bottomDisplayedRowIndex=e.getRowCount()-1;else{let t=e.getTopLevelRowDisplayedIndex(s+1);this.bottomDisplayedRowIndex=t-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){let e=this.beans.rowModel.getRowCount();if(this.masterRowCount=e,0===e)return void this.setZeroRows();let{pageSize:t,currentPage:i}=this,o=e-1;this.totalPages=Math.floor(o/t)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=t*i,this.bottomDis
47playedRowIndex=t*(i+1)-1,this.bottomDisplayedRowIndex>o&&(this.bottomDisplayedRowIndex=o)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.beans.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(e){let{keepRenderedRows:t=!1,newPage:i=!1,newPageSize:o=!1}=e;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:i,newPageSize:o,keepRenderedRows:t})}},Cx],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:function(e){return e.rowModel.isLastRowIndexKnown()},paginationGetPageSize:function(e){return e.pagination?.getPageSize()??100},paginationGetCurrentPage:function(e){return e.pagination?.getCurrentPage()??0},paginationGetTotalPages:function(e){return e.pagination?.getTotalPages()??1},paginationGetRowCount:function(e){return e.pagination?e.pagination.getMasterRowCount():e.rowModel.getRowCount()},paginationGoToNextPage:function(e){e.pagination?.goToNextPage()},paginationGoToPreviousPage:function(e){e.pagination?.goToPreviousPage()},paginationGoToFirstPage:function(e){e.pagination?.goToFirstPage()},paginationGoToLastPage:function(e){e.pagination?.goToLastPage()},paginationGoToPage:function(e,t){e.pagination?.goToPage(t)}},dependsOn:[pc]},CA={moduleName:"PinnedRow",version:tU,beans:[nO],css:[".ag-row-pinned-source{background-color:var(--ag-pinned-source-row-background-color);color:var(--ag-pinned-source-row-text-color);font-weight:var(--ag-pinned-source-row-font-weight)}.ag-row-pinned-manual{background-color:var(--ag-pinned-row-background-color);color:var(--ag-pinned-row-text-color);font-weight:var(--ag-pinned-row-font-weight)}"],apiFunctions:{getPinnedTopRowCount:function(e){return e.pinnedRowModel?.getPinnedTopRowCount()??0},getPinnedBottomRowCount:function(e){return e.pinnedRowModel?.getPinnedBottomRowCount()??0},getPinnedTopRow:function(e,t){return e.pinnedRowModel?.getPinnedTopRow(t)},getPinnedBottomRow:function(e,t){return e.pinnedRowModel?.getPinnedBottomRow(t)},forEachPinnedRow:function(e,t,i){return e.pinnedRowModel?.forEachPinnedRow(t,i)}},icons:{rowPin:"pin",rowPinTop:"pinned-top",rowPinBottom:"pinned-bottom",rowUnpin:"un-pin"}},CI={tag:"span",children:[{tag:"span",ref:"eDelta",cls:"ag-value-change-delta"},{tag:"span",ref:"eValue",cls:"ag-value-change-value"}]},CL=class extends o5{constructor(){super(CI),this.eValue=oZ,this.eDelta=oZ,this.refreshCount=0}init(e){this.refresh(e,!0)}showDelta(e,t){let i=Math.abs(t),o=e.formatValue(i),r=F(o)?o:i,s=t>=0,n=this.eDelta;s?n.textContent="↑"+r:n.textContent="↓"+r,n.classList.toggle("ag-value-change-delta-up",s),n.classList.toggle("ag-value-change-delta-down",!s)}setTimerToRemoveDelta(){this.refreshCount++;let e=this.refreshCount;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.hideDeltaValue()},2e3)})}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),eH(this.eDelta)}refresh(e,t=!1){let{value:i,valueFormatted:o}=e,{eValue:r,lastValue:s,beans:n}=this;if(i===s||(F(o)?r.textContent=o:F(i)?r.textContent=i:eH(r),n.filterManager?.isSuppressFlashingCellsBecauseFiltering()))return!1;let l=i&&"object"==typeof i&&"toNumber"in i?i.toNumber():i,a=s&&"object"==typeof s&&"toNumber"in s?s.toNumber():s;return l!==a&&("number"==typeof l&&"number"==typeof a&&this.showDelta(e,l-a),s&&r.classList.add("ag-value-change-value-highlight"),t||this.setTimerToRemoveDelta(),this.lastValue=i,!0)}},CB={tag:"span",children:[{tag:"span",ref:"eCurrent",cls:"ag-value-slide-current"}]},CH=class extends o5{constructor(){super(CB),this.eCurrent=oZ,this.refreshCount=0,this.registerCSS(".ag-value-slide-out{opacity:1}:where(.ag-ltr) .ag-value-slide-out{margin-right:5px;transition:opacity 3s,margin-right 3s}:where(.ag-rtl) .ag-value-slide-out{margin-left:5px;transition:opacity 3s,margin-left 3s}:where(.ag-ltr,.ag-rtl) .ag-value-slide-out{transition-timing-function:linear}.ag-value-slide-out-end{opacity:0}
47:where(.ag-ltr) .ag-value-slide-out-end{margin-right:10px}:where(.ag-rtl) .ag-value-slide-out-end{margin-left:10px}")}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;let e=this.refreshCount;this.ePrevious?.remove();let{beans:t,eCurrent:i}=this,o=e2({tag:"span",cls:"ag-value-slide-previous ag-value-slide-out"});this.ePrevious=o,o.textContent=i.textContent,this.getGui().insertBefore(o,i),t.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(()=>{e===this.refreshCount&&(this.ePrevious?.remove(),this.ePrevious=null)},3e3)})}refresh(e,t=!1){let i=e.value;if(P(i)&&(i=""),i===this.lastValue||this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering())return!1;t||this.addSlideAnimation(),this.lastValue=i;let o=this.eCurrent;return F(e.valueFormatted)?o.textContent=e.valueFormatted:F(e.value)?o.textContent=i:eH(o),!0}},CV={moduleName:"HighlightChanges",version:tU,beans:[class extends tc{constructor(){super(...arguments),this.beanName="cellFlashSvc",this.nextAnimationTime=null,this.nextAnimationCycle=null,this.animations={highlight:new Map,"data-changed":new Map}}animateCell(e,t,i=this.beans.gos.get("cellFlashDuration"),o=this.beans.gos.get("cellFadeDuration")){let r=this.animations[t];r.delete(e);let s=Date.now(),n=s+i;r.set(e,{phase:"flash",flashEndTime:n,fadeEndTime:s+i+o});let l=`ag-cell-${t}`,a=`${l}-animation`,{comp:d,eGui:{style:h}}=e;d.toggleCss(l,!0),d.toggleCss(a,!1),h.removeProperty("transition"),h.removeProperty("transition-delay"),this.nextAnimationTime&&n+15<this.nextAnimationTime&&(clearTimeout(this.nextAnimationCycle),this.nextAnimationCycle=null,this.nextAnimationTime=null),this.nextAnimationCycle||(this.beans.frameworkOverrides.wrapIncoming(()=>{this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),i)}),this.nextAnimationTime=n)}advanceAnimations(){let e=Date.now(),t=null;for(let i of Object.keys(this.animations)){let o=this.animations[i],r=`ag-cell-${i}`,s=`${r}-animation`;for(let[i,n]of o){if(!i.isAlive()||!i.comp){o.delete(i);continue}let{phase:l,flashEndTime:a,fadeEndTime:d}=n,h="flash"===l?a:d;if(!(e+15>=h)){t=Math.min(h,t??1/0);continue}let{comp:u,eGui:{style:c}}=i;switch(l){case"flash":u.toggleCss(r,!1),u.toggleCss(s,!0),c.transition=`background-color ${d-a}ms`,c.transitionDelay=`${a-e}ms`,t=Math.min(d,t??1/0),n.phase="fade";break;case"fade":u.toggleCss(r,!1),u.toggleCss(s,!1),c.removeProperty("transition"),c.removeProperty("transition-delay"),o.delete(i)}}}null==t?(this.nextAnimationTime=null,this.nextAnimationCycle=null):t&&(this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),t-e),this.nextAnimationTime=t)}onFlashCells(e,t){if(!e.comp)return;let i=sa(e.cellPosition);t.cells[i]&&this.animateCell(e,"highlight")}flashCell(e,t){this.animateCell(e,"data-changed",t?.flashDuration,t?.fadeDuration)}destroy(){for(let e of Object.keys(this.animations))this.animations[e].clear()}}],userComponents:{agAnimateShowChangeCellRenderer:CL,agAnimateSlideCellRenderer:CH},apiFunctions:{flashCells:function(e,t={}){let{cellFlashSvc:i}=e;i&&e.frameworkOverrides.wrapIncoming(()=>{for(let o of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns))i.flashCell(o,t)})}}},CG={moduleName:"RenderApi",version:tU,apiFunctions:{setGridAriaProperty:function(e,t,i){if(!t)return;let o=e.ctrlsSvc.getGridBodyCtrl().eGridBody,r=`aria-${t}`;null===i?o.removeAttribute(r):o.setAttribute(r,i)},refreshCells:function(e,t={}){e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.refreshCells(t))},refreshHeader:function(e){e.frameworkOverrides.wrapIncoming(()=>{for(let t of e.ctrlsSvc.getHeaderRowContainerCtrls())t.refresh()})},isAnimationFrameQueueEmpty:function(e){return e.animationFrameSvc?.isQueueEmpty()??!0},flushAllAnimationFrames:function(e){e.animationFrameSvc?.flushAllFrames()},getSizesForCurrentTheme:function(e){return{rowHeight:ir(e),headerHeight:sk(e)}},getCellRendererInstances:function(e,t={}){let i=[];for(let o of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns)){let e=o.getCellRenderer();null!=e&&i.push(u1(e))}if(t.columns?.length)return i;let o=[],r=cZ(t.rowNodes);for(let t of e.rowRenderer.getAllRowCtrls()){if(r&&!cJ(t.rowNode,r)||!t.isFullWidth())continue;let e=t.getFullWidthCellRenderers();for(let t=0;t<e.length;t++){let i=e[t];null!=i&&o.push(u1(i))}}return[...o,...i]}}},CO={moduleName:"RowAutoHeight",version:tU,beans:[class extends tc{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1,this._debouncedCalculateRowHeights=tv(this,this.calculateRowHeights.bind(this),1)}requestCheckAutoHeight(){this.wasEverActive&&this._debouncedCalculateRowHeights()}calculateRowHeights(){let{visibleCols:e,rowModel:t,rowSpanSvc:i,pinnedRowModel:o}=this.beans,r=e.autoHeightCols,s=!1,n=e=>{let t=e.__autoHeights,o=io(this.beans,e).height;for(let s of r){let r=t?.[s.getColId()],n=i?.getCellSpan(s,e);if(n){if(n.getLastNode()!==e)continue;if(!(r=i?.getCellSpan(s,e)?.getLastNodeAutoHeight()))return}if(null==r){if(this.colSpanSkipCell(s,e))continue;return}o=Math.max(r,o)}o!==e.rowHeight&&(e.setRowHeight(o),s=!0)};o?.forEachPinnedRow?.("top",n),o?.forEachPinnedRow?.("bottom",n),t.forEachDisplayedNode?.(n),s&&t.onRowHeightChanged?.()}setRowAutoHeight(e,t,i){if(e.__autoHeights??(e.__autoHeights={}),void 0==t)return void delete e.__autoHeights[i.getId()];let o=e.__autoHeights[i.getId()];e.__autoHeights[i.getId()]=t,o!==t&&this.requestCheckAutoHeight()}
47colSpanSkipCell(e,t){let{colModel:i,colViewport:o,visibleCols:r}=this.beans;if(!i.colSpanActive)return!1;let s=[];switch(e.getPinned()){case"left":s=r.getLeftColsForRow(t);break;case"right":s=r.getRightColsForRow(t);break;case null:s=o.getColsWithinViewport(t)}return!s.includes(e)}setupCellAutoHeight(e,t,i){if(!e.column.isAutoHeight()||!t)return!1;this.wasEverActive=!0;let o=t.parentElement,{rowNode:r,column:s}=e,n=this.beans,l=a=>{if(this.beans.editSvc?.isEditing(e)||!e.isAlive()||!i.isAlive())return;let{paddingTop:d,paddingBottom:h,borderBottomWidth:u,borderTopWidth:c}=eD(o),g=t.offsetHeight+(d+h+u+c);if(a<5){let e=N(n),i=!e?.contains(t),o=0==g;if(i||o)return void window.setTimeout(()=>l(a+1),0)}this.setRowAutoHeight(r,g,s)},a=()=>l(0);a();let d=eX(n,t,a);return i.addDestroyFunc(()=>{d(),this.setRowAutoHeight(r,void 0,s)}),!0}setAutoHeightActive(e){this.active=e.list.some(e=>e.isVisible()&&e.isAutoHeight())}areRowsMeasured(){if(!this.active)return!0;let e=this.beans.rowRenderer.getAllRowCtrls(),t=null;for(let{rowNode:i}of e)if((!t||this.beans.colModel.colSpanActive)&&(t=this.beans.colViewport.getColsWithinViewport(i).filter(e=>e.isAutoHeight())),0!==t.length){if(!i.__autoHeights)return!1;for(let e of t){let t=i.__autoHeights[e.getColId()];if(!t||i.rowHeight<t)return!1}}return!0}}]},CN=class{constructor(e,t){this.col=e,this.firstNode=t,this.cellSpan=!0,this.spannedNodes=new Set,this.addSpannedNode(t)}reset(){this.spannedNodes.clear(),this.addSpannedNode(this.firstNode)}addSpannedNode(e){this.spannedNodes.add(e),this.lastNode=e}getLastNode(){return this.lastNode}getCellHeight(){return this.lastNode.rowTop+this.lastNode.rowHeight-this.firstNode.rowTop-1}doesSpanContain(e){return e.column===this.col&&e.rowPinned==this.firstNode.rowPinned&&this.firstNode.rowIndex<=e.rowIndex&&e.rowIndex<=this.lastNode.rowIndex}getLastNodeAutoHeight(){let e=this.firstNode.__autoHeights?.[this.col.getColId()];if(null==e)return;let t=0;for(let e of this.spannedNodes)e!==this.lastNode&&(t+=e.rowHeight);return e-t}},Cz=class extends tc{constructor(e){super(),this.column=e}buildCache(e){let t,{column:i,beans:{gos:o,pinnedRowModel:r,rowModel:s,valueSvc:n,pagination:l}}=this,{colDef:a}=i,d=this.getNodeMap(e),h=new Map,u=o.getCallback("isFullWidthRow"),c=a.equals,g=a.spanRows,p="function"==typeof g,m=null,f=null,C=(e,i)=>{m=e,f=null,t=i},v=e=>{let r=!e.isExpandable()&&!e.group&&!e.detail&&(!u||!u({rowNode:e}));if(null==e.rowIndex||!r)return void C(null,null);if(null==m||e.level!==m.level||e.footer||f&&e.rowIndex-1!==f?.getLastNode().rowIndex)return void C(e,n.getValue(i,e,"data"));let s=n.getValue(i,e,"data");if(p){if(!g(iK(o,{valueA:t,nodeA:m,valueB:s,nodeB:e,column:i,colDef:a})))return void C(e,s)}else if(c?!c(t,s):t!==s)return void C(e,s);if(!f){let e=d?.get(m);e?.firstNode===m?(e.reset(),f=e):f=new CN(i,m),h.set(m,f)}f.addSpannedNode(e),h.set(e,f)};switch(e){case"center":s.forEachDisplayedNode?.(e=>{(!l||l.isRowInPage(e.rowIndex))&&v(e)}),this.centerValueNodeMap=h;break;case"top":r?.forEachPinnedRow("top",v),this.topValueNodeMap=h;break;case"bottom":r?.forEachPinnedRow("bottom",v),this.bottomValueNodeMap=h}}isCellSpanning(e){return!!this.getCellSpan(e)}getCellSpan(e){return this.getNodeMap(e.rowPinned).get(e)}getNodeMap(e){switch(e){case"top":return this.topValueNodeMap;case"bottom":return this.bottomValueNodeMap;default:return this.centerValueNodeMap}}},CW=class extends tc{constructor(){super(...arguments),this.beanName="rowSpanSvc",this.spanningColumns=new Map,this.debouncePinnedEvent=tv(this,this.dispatchCellsUpdatedEvent.bind(this,!0),0),this.debounceModelEvent=tv(this,this.dispatchCellsUpdatedEvent.bind(this,!1),0),this.pinnedTimeout=null,this.modelTimeout=null}postConstruct(){let e=this.onRowDataUpdated.bind(this),t=this.buildPinnedCaches.bind(this);this.addManagedEventListeners({paginationChanged:this.buildModelCaches.bind(this),pinnedRowDataChanged:t,pinnedRowsChanged:t,rowNodeDataChanged:e,cellValueChanged:e})}register(e){let{gos:t}=this.beans;if(!t.get("enableCellSpan")||this.spanningColumns.has(e))return;let i=this.createManagedBean(new Cz(e));this.spanningColumns.set(e,i),i.buildCache("top"),i.buildCache("bottom"),i.buildCache("center"),this.debouncePinnedEvent(),this.debounceModelEvent()}dispatchCellsUpdatedEvent(e){this.dispatchLocalEvent({type:"spannedCellsUpdated",pinned:e})}deregister(e){this.spanningColumns.delete(e)}onRowDataUpdated({node:e}){let{spannedRowRenderer:t}=this.beans;if(e.rowPinned){if(null!=this.pinnedTimeout)return;this.pinnedTimeout=window.setTimeout(()=>{this.pinnedTimeout=null,this.buildPinnedCaches(),t?.createCtrls("top"),t?.createCtrls("bottom")},0);return}null==this.modelTimeout&&(this.modelTimeout=window.setTimeout(()=>{this.modelTimeout=null,this.buildModelCaches(),t?.createCtrls("center")},0))}buildModelCaches(){null!=this.modelTimeout&&clearTimeout(this.modelTimeout),this.spanningColumns.forEach(e
47=>e.buildCache("center")),this.debounceModelEvent()}buildPinnedCaches(){null!=this.pinnedTimeout&&clearTimeout(this.pinnedTimeout),this.spanningColumns.forEach(e=>{e.buildCache("top"),e.buildCache("bottom")}),this.debouncePinnedEvent()}isCellSpanning(e,t){let i=this.spanningColumns.get(e);return!!i&&i.isCellSpanning(t)}getCellSpanByPosition(e){let t,{pinnedRowModel:i,rowModel:o}=this.beans,r=e.column,s=e.rowIndex,n=this.spanningColumns.get(r);if(n){switch(e.rowPinned){case"top":t=i?.getPinnedTopRow(s);break;case"bottom":t=i?.getPinnedBottomRow(s);break;default:t=o.getRow(s)}if(t)return n.getCellSpan(t)}}getCellStart(e){let t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.firstNode.rowIndex}:e}getCellEnd(e){let t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.getLastNode().rowIndex}:e}getCellSpan(e,t){let i=this.spanningColumns.get(e);if(i)return i.getCellSpan(t)}forEachSpannedColumn(e,t){for(let[i,o]of this.spanningColumns)o.isCellSpanning(e)&&t(i,o.getCellSpan(e))}destroy(){super.destroy(),this.spanningColumns.clear()}},CU=class extends cS{constructor(e,t,i){super(e.col,e.firstNode,i,t),this.cellSpan=e,this.SPANNED_CELL_CSS_CLASS="ag-spanned-cell"}setComp(e,t,i,o,r,s,n){this.eWrapper=i,super.setComp(e,t,i,o,r,s,n),this.setAriaRowSpan(),this.refreshAriaRowIndex()}isCellSpanning(){return!0}getCellSpan(){return this.cellSpan}refreshAriaRowIndex(){let{eGui:e,rowNode:t}=this;e&&null!=t.rowIndex&&ea(e,t.rowIndex)}setAriaRowSpan(){$(this.eGui,"rowspan",this.cellSpan.spannedNodes.size)}setFocusedCellPosition(e){this.focusedCellPosition=e}getFocusedCellPosition(){return this.focusedCellPosition??this.cellPosition}checkCellFocused(){let e=this.beans.focusSvc.getFocusedCell();return!!e&&this.cellSpan.doesSpanContain(e)}applyStaticCssClasses(){super.applyStaticCssClasses(),this.comp.toggleCss(this.SPANNED_CELL_CSS_CLASS,!0)}onCellFocused(e){let{beans:t}=this;if(sR(t)){this.focusedCellPosition=void 0;return}let i=this.isCellFocused();i||(this.focusedCellPosition=void 0),e&&i&&(this.focusedCellPosition={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column}),super.onCellFocused(e)}getRootElement(){return this.eWrapper}},C_=class extends cP{onRowIndexChanged(){for(let e of(super.onRowIndexChanged(),this.getAllCellCtrls()))e.refreshAriaRowIndex()}getInitialRowClasses(e){return["ag-spanned-row"]}getNewCellCtrl(e){let t=this.beans.rowSpanSvc?.getCellSpan(e,this.rowNode);if(t&&t.firstNode===this.rowNode)return new CU(t,this,this.beans)}isCorrectCtrlForSpan(e){let t=this.beans.rowSpanSvc?.getCellSpan(e.column,this.rowNode);return!!t&&t.firstNode===this.rowNode&&e.getCellSpan()===t}onRowHeightChanged(){}refreshFirstAndLastRowStyles(){}addHoverFunctionality(){}resetHoveredStatus(){}},C$={moduleName:"CellSpan",version:tU,beans:[CW,class extends tc{constructor(){super(...arguments),this.beanName="spannedRowRenderer",this.topCtrls=new Map,this.bottomCtrls=new Map,this.centerCtrls=new Map}postConstruct(){this.addManagedEventListeners({displayedRowsChanged:this.createAllCtrls.bind(this)})}createAllCtrls(){this.createCtrls("top"),this.createCtrls("bottom"),this.createCtrls("center")}createCtrls(e){let{rowSpanSvc:t}=this.beans,i=this.getCtrlsMap(e),o=i.size,r=this.getAllRelevantRowControls(e),s=new Map,n=!1;for(let e of r)e.isAlive()&&t?.forEachSpannedColumn(e.rowNode,(e,t)=>{if(s.has(t.firstNode))return;let o=i.get(t.firstNode);if(o){s.set(t.firstNode,o),i.delete(t.firstNode);return}n=!0;let r=new C_(t.firstNode,this.beans,!1,!1,!1);s.set(t.firstNode,r)});this.setCtrlsMap(e,s);let l=s.size===o;if(n||!l){for(let e of i.values())e.destroyFirstPass(!0),e.destroySecondPass();this.dispatchLocalEvent({type:"spannedRowsUpdated",ctrlsKey:e})}}getAllRelevantRowControls(e){let{rowRenderer:t}=this.beans;switch(e){case"top":return t.topRowCtrls;case"bottom":return t.bottomRowCtrls;case"center":return t.allRowCtrls}}getCellByPosition(e){let{rowSpanSvc:t}=this.beans,i=t?.getCellSpanByPosition(e);if(!i)return;let o=this.getCtrlsMap(e.rowPinned).get(i.firstNode);if(o)return o.getAllCellCtrls().find(t=>t.column===e.column)}getCtrls(e){return[...this.getCtrlsMap(e).values()]}destroyRowCtrls(e){for(let t of this.getCtrlsMap(e).values())t.de
47stroyFirstPass(!0),t.destroySecondPass();this.setCtrlsMap(e,new Map)}getCtrlsMap(e){switch(e){case"top":return this.topCtrls;case"bottom":return this.bottomCtrls;default:return this.centerCtrls}}setCtrlsMap(e,t){switch(e){case"top":this.topCtrls=t;break;case"bottom":this.bottomCtrls=t;break;default:this.centerCtrls=t}}destroy(){super.destroy(),this.destroyRowCtrls("top"),this.destroyRowCtrls("bottom"),this.destroyRowCtrls("center")}}]},Cq=class extends tc{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",e=>{this.onSelectionOptionsChanged(e.currentValue,e.previousValue,ow(e.source))}),this.addManagedPropertyListener("selectionColumnDef",this.updateColumns.bind(this))}addColumns(e){let t=this.columns;null!=t&&(e.list=t.list.concat(e.list),e.tree=t.tree.concat(e.tree),ov(e))}createColumns(e,t){let i=()=>{ou(this.beans,this.columns?.tree),this.columns=null},o=e.treeDepth,r=this.columns?.treeDepth??-1,s=this.generateSelectionCols();if(oC(s,this.columns?.list??[])&&r==o)return;i();let{colGroupSvc:n}=this.beans,l=n?.findDepth(e.tree)??0,a=n?.balanceTreeForAutoCols(s,l)??[];this.columns={list:s,tree:a,treeDepth:l,map:{}},t(e=>e?[...s,...e.filter(e=>!og(e))]:null)}updateColumns(e){let t=ow(e.source),{beans:i}=this;for(let o of this.columns?.list??[]){let r=this.createSelectionColDef(e.currentValue);o.setColDef(r,null,t),oO(i,{state:[oy(r,o.colId)]},t)}}getColumn(e){return this.columns?.list.find(t=>ob(t,e))??null}getColumns(){return this.columns?.list??null}isSelectionColumnEnabled(){let{gos:e,beans:t}=this,i=e.get("rowSelection");if("object"!=typeof i||!ie(e))return!1;let o=(t.autoColSvc?.getColumns()?.length??0)>0;if("autoGroupColumn"===i.checkboxLocation&&o)return!1;let r=!!iR(i),s=iE(i);return r||s}createSelectionColDef(e){let{gos:t}=this,i=e??t.get("selectionColumnDef"),o=t.get("enableRtl"),{rowSpan:r,spanRows:s,...n}=i??{};return{width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:o?"right":"left",comparator(e,t,i,o){let r=i.isSelected();return r===o.isSelected()?0:r?1:-1},editable:!1,suppressFillHandle:!0,suppressAutoSize:!0,pinned:null,...n,colId:on,chartDataType:"excluded"}}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];let e=this.createSelectionColDef(),t=e.colId;this.gos.validateColDef(e,t,!0);let i=new i1(e,null,t,!1);return this.createBean(i),[i]}onSelectionOptionsChanged(e,t,i){let o=t&&"string"!=typeof t?iR(t):void 0,r=e&&"string"!=typeof e?iR(e):void 0,s=t&&"string"!=typeof t?iE(t):void 0,n=e&&"string"!=typeof e?iE(e):void 0,l=ix(e),a=ix(t);(o!==r||s!==n||l!==a)&&this.beans.colModel.refreshAll(i)}destroy(){ou(this.beans,this.columns?.tree),super.destroy()}refreshVisibility(e,t,i){if(!this.columns?.list.length)return;let o=e.length+t.length+i.length;if(0===o)return;let r=this.columns.list[0];if(r.isVisible())(this.beans.rowNumbersSvc?.getColumn(ol)?2:1)===o&&(()=>{let o;switch(r.pinned){case"left":case!0:o=e;break;case"right":o=i;break;default:o=t}o&&y(o,r)})()}},CK={tag:"div",cls:"ag-selection-checkbox",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},Cj=class extends o5{constructor(){super(CK,[nd]),this.eCheckbox=oZ}postConstruct(){this.eCheckbox.setPassive(!0)}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){let e=this.getLocaleTextFunc(),{rowNode:t,eCheckbox:i}=this,o=t.isSelected(),r=ew(e,o),[s,n]=t.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],l=e(s,n);i.setValue(o,!0),i.setInputAriaLabel(`${l} (${r})`)}init(e){if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getWrapperElement(),{dblclick:si,click:e=>{si(e),this.eCheckbox.isDisabled()||this.beans.selectionSvc?.handleSelectionEvent(e,this.rowNode,"checkboxSelected")}}),this.addManagedListeners(this.rowNode,{rowSelected:this.onSelectionChanged.bind(this),dataChanged:this.onDataChanged.bind(this),selectableChanged:this.onSelectableChanged.bind(this)}),this.addManagedPropertyListener("rowSelection",({currentValue:e,previousValue:t})=>{("object"==typeof e?iF(e):void 0)!==("object"==typeof t?iF(t):void 0)&&this.onSelectableChanged()}),iL(this.gos)||"function"==typeof this.getIsVisible()){let e=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e}),this.addManagedListeners(this.rowNode,{dataChanged:e,cellChanged:e}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){let e,{column:t,rowNode:i,overrides:o,gos:r}=this,s=i.selectable,n=this.getIsVisible();if("function"==typeof n){let r=o?.callbackParams;if(t){let o=t.createColumnFunctionCallbackParams(i);e=n({...r,...o})}else e=n({...r,node:i,data:i.data})}else e=n??!1;let l=s&&!e||!s&&e,a=s||e,d=r.get("rowSelection"),h=d&&"string"!=typeof d?!iF(d):!!t?.getColDef().showDisabledCheckboxes;this.setVisible(a&&(!l||h)),this.setDisplayed(a&&(!l||h)),a&&this.eCheckbox.setDisabled(l),o?.removeHidden&&this.setDisplayed(a)}getIsVisible(){let e=this.overrides;if(e)return e.isVisible;let t=this.gos.get("rowSelection");return t&&"string"!=typeof t?iR(t):this.column?.getColDef()?.checkboxSelection}},CY=class{constructor(e,t){this.rowModel=e,this.pinnedRowModel=t,this.selectAll=!1,this.rootId=null,this.endId=null,this.cachedRange=[]}reset(){this.rootId=null,this.endId=null,this.cachedRange.length=0}setRoot(e){this.rootId=e.id,this.endId=null,this.cachedRange.length=0}setEndRange(e){this.endId=e.id,this.cachedRange.length=0}getRange(){if(0===this.cachedRange.length){let e=this.getRoot(),t=this.getEnd();if(null==e||null==t)return this.cachedRange;this.cachedRange=this.getNodesInRange(e,t)??[]}return this.cachedRange}isInRange(e){return null!==this.rootId&&this.getRange().some(t=>t.id===e.id)}getRoot(e){return this.rootId?this.getRowNode(this.rootId):e?(this.setRoot(e),e):void 0}getEnd(){if(this.endId)return this.getRowNode(this.endId)}getRowNode(e){let t,{rowModel:i,pinnedRowModel:o}=this;return t??(t=i.getRowNode(e)),o?.isManual()&&(t??(t=o.getPinnedRowById(e,"top")),t??(t=o.getPinnedRowById(e,"bottom"))),t}truncate(e){let t=this.getRange();if(0===t.length)return{keep:[],discard:[]};let i=t[0].id===this.rootId,o=t.findIndex(t=>t.id===e.id);if(!(o>-1))return{keep:t,discard:[]};{let r=t.slice(0,o),s=t.slice(o+1);return this.setEndRange(e),i?{keep:r,discard:s}:{keep:s,discard:r}}}extend(e,t=!1){let i=this.getRoot();if(null==i){let i=this.getRange().slice();return t&&e.depthFirstSearch(e=>!e.group&&i.push(e)),i.push(e),this.setRoot(e),{keep:i,discard:[]}}let o=this.getNodesInRange(i,e);if(!o)return this.setRoot(e),{keep:[e],discard:[]};if(o.find(e=>e.id===this.endId))return this.setEndRange(e),{keep:this.getRange(),discard:[]};{let t=this.getRange().slice();return this.setEndRange(e),{keep:this.getRange(),discard:t}}}getNodesInRange(e,t){let{pinnedRowModel:i,rowModel:o}=this;if(!i?.isManual())return o.getNodesInRangeForSelection(e,t);if("top"===e.rowPinned&&!t.rowPinned)return cC(i,"top",e,void 0).concat(o.getNodesInRangeForSelection(o.getRow(0),t)??[]);if("bottom"===e.rowPinned&&!t.rowPinned){let r=cC(i,"bottom",void 0,e),s=o.getRowCount(),n=o.getRow(s-1);return(o.getNodesInRangeForSelection(t,n)??[]).concat(r)}if(!e.rowPinned&&!t.rowPinned)return o.getNodesInRangeForSelection(e,t);if("top"===e.rowPinned&&"top"===t.rowPinned)return cC(i,"top",e,t);if("bottom"===e.rowPinned&&"top"===t.rowPinned){let r=cC(i,"top",t,void 0),s=cC(i,"bottom",void 0,e),n=o.getRow(0),l=o.getRow(o.getRowCount()-1);return r.concat(o.getNodesInRangeForSelection(n,l)??[]).concat(s)}if(!e.rowPinned&&"top"===t.rowPinned)return cC(i,"top",t,void 0).concat(o.getNodesInRangeForSelection(o.getRow(0),e)??[]);if("top"===e.rowPinned&&"bottom"===t.rowPinned){let r=cC(i,"top",e,void 0),s=cC(i,"bottom",void 0,t),n=o.getRow(0),l=o.getRow(o.getRowCount()-1);return r.concat(o.getNodesInRangeForSelection(n,l)??[]).concat(s)}if("bottom"===e.rowPinned&&"bottom"===t.rowPinned)return cC(i,"bottom",e,t);if(!e.rowPinned&&"bottom"===t.rowPinned){let r=cC(i,"bottom",void 0,t),s=o.getRow(o.getRowCount());return(o.getNodesInRangeForSelection(e,s)??[]).concat(r)}return null}},CQ=class extends tc{constructor(e){super(),this.column=e,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(e){let t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains(O(this.beans))&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e;let t=this.createManagedBean(new na);this.cbSelectAll=t,t.addCss("ag-header-select-all"),K(t.getGui(),"presentation"),this.showOrHideSelectAll();let i=this.updateStateOfCheckbox.bind(this);this.addManagedEventListeners({newColumnsLoaded:()=>this.showOrHideSelectAll(),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:i,paginationChanged:i,modelUpdated:i}),this.addManagedPropertyListener("rowSelection",({currentValue:e,previousValue:t})=>{let i=e=>"string"!=typeof e&&e&&"singleRow"!==e.mode?e.selectAll:void 0;i(e)!==i(t)&&this.showOrHideSelectAll(),this.updateStateOfCheckbox()}),this.addManagedListeners(t,{fieldValueChanged:this.onCbSelectAll.bind(this)}),t.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onDisplayedColumnsChanged(e){this.isAlive()&&this.showOrHideSelectAll("uiColumnMoved"===e.source)}showOrHideSelectAll(e=!1){let t=this.isCheckboxSelection();this.cbSelectAllVisible=t,this.cbSelectAll.setDisplayed(t),t&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel(e)}updateStateOfCheckbox(){if(!this.cbSelectAllVisible||this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;let e=this.getSelectAllMode(),t=this.beans.selectionSvc,i=this.cbSelectAll,o=t.getSelectAllState(e);i.setValue(o);let r=t.hasNodesToSelect(e);i.setDisabled(!r),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(e=!1){let t=this.getLocaleTextFunc(),{headerCellCtrl:i,cbSelectAll:o,cbSelectAllVisible:r}=this,s=ew(t,o.getValue()),n=t("ariaRowSelectAll","Press Space to toggle all rows selection");i.setAriaDescriptionProperty("selectAll",r?`${n} (${s})`:null),o.setInputAriaLabel(t("ariaHeaderSelection","Column with Header Selection")),e||i.announceAriaDescription()}checkSelectionType(e){return!!iH(this.gos)||(tX(128,{feature:e}),!1)}checkRightRowModelType(e){let{gos:t,rowModel:i}=this.beans;return!!(t8(t)||t7(t))||(tX(129,{feature:e,rowModel:i.getType()}),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;let e=this.cbSelectAll.getValue(),t=this.getSelectAllMode(),i="uiSelectAll";"currentPage"===t?i="uiSelectAllCurrentPage":"filtered"===t&&(i="uiSelectAllFiltered");let o={source:i,selectAll:t},r=this.beans.selectionSvc;
47e?r.selectAllRowNodes(o):r.deselectAllRowNodes(o)}isCheckboxSelection(){let{column:e,gos:t,beans:i}=this,o="object"==typeof t.get("rowSelection")?"headerCheckbox":"headerCheckboxSelection";return CZ(i,e)&&this.checkRightRowModelType(o)&&this.checkSelectionType(o)}getSelectAllMode(){let e=iG(this.gos,!1);if(e)return e;let{headerCheckboxSelectionCurrentPageOnly:t,headerCheckboxSelectionFilteredOnly:i}=this.column.getColDef();return t?"currentPage":i?"filtered":"all"}destroy(){super.destroy(),this.cbSelectAll=void 0,this.headerCellCtrl=void 0}};function CZ({gos:e,selectionColSvc:t},i){let o=e.get("rowSelection"),r=i.getColDef(),{headerCheckboxSelection:s}=r,n=!1;if("object"==typeof o){let e=og(i),r=oc(i);("autoGroupColumn"===ix(o)&&r||e&&t?.isSelectionColumnEnabled())&&(n=iE(o))}else n="function"==typeof s?s(iK(e,{column:i,colDef:r})):!!s;return n}var CJ=class extends tc{postConstruct(){let{gos:e,beans:t}=this;this.selectionCtx=new CY(t.rowModel,t.pinnedRowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>{let t=iL(e);t!==this.isRowSelectable&&(this.isRowSelectable=t,this.updateSelectable())}),this.isRowSelectable=iL(e),this.addManagedEventListeners({cellValueChanged:e=>this.updateRowSelectable(e.node),rowNodeDataChanged:e=>this.updateRowSelectable(e.node)})}destroy(){super.destroy(),this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new Cj}createSelectAllFeature(e){if(CZ(this.beans,e))return new CQ(e)}isMultiSelect(){return iH(this.gos)}onRowCtrlSelected(e,t,i){let o=!!e.rowNode.isSelected();e.forEachGui(i,e=>{e.rowComp.toggleCss("ag-row-selected",o);let i=e.element;ep(i,o),i.contains(O(this.beans))&&t(e)})}announceAriaRowSelection(e){if(this.isRowSelectionBlocked(e))return;let t=e.isSelected(),i=this.beans.editSvc?.isEditing({rowNode:e});if(!e.selectable||i)return;let o=this.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${t?"deselect":"select"} this row`);this.beans.ariaAnnounce?.announceValue(o,"rowSelection")}isRowSelectionBlocked(e){return!e.selectable||e.rowPinned&&!cf(e)||!ie(this.gos)}updateRowSelectable(e,t){let i=e.rowPinned&&e.pinnedSibling?e.pinnedSibling.selectable:this.isRowSelectable?.(e)??!0;return this.setRowSelectable(e,i,t),i}setRowSelectable(e,t,i){if(e.selectable!==t&&(e.selectable=t,e.dispatchRowEvent("selectableChanged"),!i)){if(iO(this.gos)){let t=this.calculateSelectedFromChildren(e);this.setNodesSelected({nodes:[e],newValue:t??!1,source:"selectableChanged"});return}e.isSelected()&&!e.selectable&&this.setNodesSelected({nodes:[e],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(e){let t=!1,i=!1;if(!e.childrenAfterGroup?.length)return e.selectable?e.__selected:null;for(let o=0;o<e.childrenAfterGroup.length;o++){let r=e.childrenAfterGroup[o],s=r.isSelected();if(!r.selectable){let e=this.calculateSelectedFromChildren(r);if(null===e)continue;s=e}switch(s){case!0:t=!0;break;case!1:i=!0;break;default:return}}if(!t||!i)return!!t||!i&&(e.selectable?e.__selected:null)}selectRowNode(e,t,i,o="api"){if(t&&e.destroyed)return!1;let r=!e.selectable&&t,s=e.__selected===t;if(r||s)return!1;e.__selected=t,e.dispatchRowEvent("rowSelected");let n=e.sibling;n&&n.footer&&n.__localEventService&&n.dispatchRowEvent("rowSelected");let l=e.pinnedSibling;return l?.rowPinned&&l.__localEventService&&l.dispatchRowEvent("rowSelected"),this.eventSvc.dispatchEvent({...ny(e,this.gos,"rowSelected"),event:i||null,source:o}),!0}isCellCheckboxSelection(e,t){let i=this.gos.get("rowSelection");if(!i||"string"==typeof i)return e.isColumnFunc(t,e.colDef.checkboxSelection);{let o=og(e)&&iR(i);return e.isColumnFunc(t,o)}}inferNodeSelections(e,t,i,o){let{gos:r,selectionCtx:s}=this,n=e.isSelected(),l=iO(r),a=function(e){let t=iI(e);return!0===t||"enableSelection"===t}(r),d=function(e){let t=iI(e);return!0===t||"enableDeselection"===t}(r),h=this.isMultiSelect(),u="rowClicked"===o;if(u&&!(a||d))return null;if(t&&i&&h){let t=s.getRoot();if(!t)return null;if(!t.isSelected())return{select:[],deselect:s.extend(e,l).keep,reset:!1};{let t=s.isInRange(e)?s.truncate(e):s.extend(e,l);return{deselect:t.discard,select:t.keep,reset:!1}}}if(t&&h){let t=s.selectAll?this.beans.rowModel.getRow(0):void 0,i=s.getRoot(t),o=s.isInRange(e)?s.truncate(e):s.extend(e,l);return{select:o.keep,deselect:o.discard,reset:s.selectAll||!!(i&&!i.isSelected())}}if(i){if(u){let t=!n;return(!t||a)&&(t||d)?(s.setRoot(e),{node:e,newValue:t,clearSelection:!1}):null}return s.setRoot(e),{node:e,newValue:!n,clearSelection:!h}}{s.setRoot(e);let t=function(e){let t=e.get("rowSelection");return"string"==typeof t?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??
47!1}(r),i="filteredDescendants"===iV(r),o=u&&(!t||!a);if(i&&void 0===n&&t8(r))return{node:e,newValue:!1,checkFilteredNodes:!0,clearSelection:!h||o};if(u){let i=n?!t:a;return(i!==n||o)&&(!i||a)&&(i||d)?{node:e,newValue:i,clearSelection:!h||o,keepDescendants:e.group&&l}:null}return{node:e,newValue:!n,clearSelection:!h||o}}}},CX=class extends CJ{constructor(){super(...arguments),this.beanName="selectionSvc",this.selectedNodes=new Map,this.detailSelection=new Map,this.masterSelectsDetail=!1}postConstruct(){super.postConstruct();let{gos:e}=this;this.mode=iB(e),this.groupSelectsDescendants=iO(e),this.groupSelectsFiltered="filteredDescendants"===iV(e),this.masterSelectsDetail="detail"===iN(e),this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],()=>{let t=iO(e),i=iB(e),o="filteredDescendants"===iV(e);this.masterSelectsDetail="detail"===iN(e),(t!==this.groupSelectsDescendants||o!==this.groupSelectsFiltered||i!==this.mode)&&(this.deselectAllRowNodes({source:"api"}),this.groupSelectsDescendants=t,this.groupSelectsFiltered=o,this.mode=i)}),this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(e,t,i){if(this.isRowSelectionBlocked(t))return 0;let o=this.inferNodeSelections(t,e.shiftKey,e.metaKey||e.ctrlKey,i);if(null==o)return 0;if(this.selectionCtx.selectAll=!1,"select"in o)return o.reset?this.resetNodes():this.selectRange(o.deselect,!1,i),this.selectRange(o.select,!0,i);{let t=o.checkFilteredNodes?function e(t){let i=!1===t.isSelected(),o=t.childrenAfterFilter?.some(e)??!1;return i||o}(o.node):o.newValue;return this.setNodesSelected({nodes:[o.node],newValue:t,clearSelection:o.clearSelection,keepDescendants:o.keepDescendants,event:e,source:i})}}setNodesSelected({newValue:e,clearSelection:t,suppressFinishActions:i,nodes:o,event:r,source:s,keepDescendants:n=!1}){if(0===o.length)return 0;let{gos:l}=this;if(!ie(l)&&e)return tX(132),0;if(o.length>1&&!this.isMultiSelect())return tX(130),0;let a=0;for(let t=0;t<o.length;t++){let i=o[t],n=C0(i);if(n.rowPinned&&!cf(n)){tX(59);continue}if(void 0===n.id){tX(60);continue}(!e||!i.destroyed)&&(!(this.groupSelectsFiltered&&n.group&&!l.get("treeData"))&&this.selectRowNode(n,e,r,s)&&(this.detailSelection.delete(n.id),a++),this.groupSelectsDescendants&&n.childrenAfterGroup?.length&&(a+=this.selectChildren(n,e,s)))}return!i&&(1===o.length&&"api"===s&&this.selectionCtx.setRoot(C0(o[0])),e&&(t||!this.isMultiSelect())&&(a+=this.clearOtherNodes(C0(o[0]),n,s)),a>0&&(this.updateGroupsFromChildrenSelections(s),this.dispatchSelectionChanged(s))),a}selectRange(e,t,i){let o=0;return e.forEach(e=>{let r=C0(e);(!r.group||!this.groupSelectsDescendants)&&this.selectRowNode(r,t,void 0,i)&&o++}),o>0&&(this.updateGroupsFromChildrenSelections(i),this.dispatchSelectionChanged(i)),o}selectChildren(e,t,i){let o=this.groupSelectsFiltered?e.childrenAfterAggFilter:e.childrenAfterGroup;return o?this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,source:i,nodes:o}):0}getSelectedNodes(){return Array.from(this.selectedNodes.values())}getSelectedRows(){let e=[];return this.selectedNodes.forEach(t=>t.data&&e.push(t.data)),e}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(e){let t=new Map;this.selectedNodes.forEach((i,o)=>{e(i)&&t.set(o,i)}),this.selectedNodes=t}updateGroupsFromChildrenSelections(e,t){if(!this.groupSelectsDescendants)return!1;let{gos:i,rowModel:o}=this.beans;if(!t8(i,o))return!1;let r=o.rootNode;if(!r)return!1;t||((t=new aS(!0,r)).active=!1);let s=!1;return t.forEachChangedNodeDepthFirst(t=>{if(t!==r){let i=this.calculateSelectedFromChildren(t);s=this.selectRowNode(t,null!==i&&i,void 0,e)||s}}),s}clearOtherNodes(e,t,i){let o=new Map,r=0;return this.selectedNodes.forEach(s=>{let n=s.id==e.id;if((!t||!function(e,t){let i=t.parent;for(;i;){if(i===e)return!0;i=i.parent}return!1}(e,s))&&!n){let e=this.selectedNodes.get(s.id);r+=this.setNodesSelected({nodes:[e],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:i}),this.groupSelectsDescendants&&s.parent&&o.set(s.parent.id,s.parent)}}
47),o.forEach(e=>{let t=this.calculateSelectedFromChildren(e);this.selectRowNode(e,null!==t&&t,void 0,i)}),r}onRowSelected(e){let t=e.node;this.groupSelectsDescendants&&t.group||(t.isSelected()?this.selectedNodes.set(t.id,t):this.selectedNodes.delete(t.id))}syncInRowNode(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)}createDaemonNode(e){if(!e.id)return;let t=new nb(this.beans);return t.id=e.id,t.data=e.data,t.__selected=e.__selected,t.level=e.level,t}syncInOldRowNode(e,t){t&&e.id!==t.id&&this.selectedNodes.get(t.id)==e&&this.selectedNodes.set(t.id,t)}syncInNewRowNode(e){this.selectedNodes.has(e.id)?(e.__selected=!0,this.selectedNodes.set(e.id,e)):e.__selected=!1}reset(e){let t=this.getSelectionCount();this.resetNodes(),t&&this.dispatchSelectionChanged(e)}resetNodes(){this.selectedNodes.forEach(e=>{this.selectRowNode(e,!1)}),this.selectedNodes.clear()}getBestCostNodeSelection(){let{gos:e,rowModel:t}=this.beans;if(!t8(e,t))return;let i=t.getTopLevelNodes();if(null===i)return;let o=[];return!function e(t){for(let i=0,r=t.length;i<r;i++){let r=t[i];r.isSelected()?o.push(r):r.group&&r.childrenAfterGroup&&e(r.childrenAfterGroup)}}(i),o}isEmpty(){return 0===this.getSelectionCount()}deselectAllRowNodes({source:e,selectAll:t}){let i=t8(this.gos),o=!1,r=t=>{let i=this.selectRowNode(C0(t),!1,void 0,e);o||(o=i)};if("currentPage"===t||"filtered"===t){if(!i)return void t0(102);this.getNodesToSelect(t).forEach(r)}else this.selectedNodes.forEach(r),this.reset(e);if(this.selectionCtx.selectAll=!1,i&&this.groupSelectsDescendants){let t=this.updateGroupsFromChildrenSelections(e);o||(o=t)}o&&this.dispatchSelectionChanged(e)}getSelectedCounts(e){let t=0,i=0;return this.getNodesToSelect(e).forEach(e=>{(!this.groupSelectsDescendants||!e.group)&&(e.isSelected()?t++:e.selectable&&i++)}),{selectedCount:t,notSelectedCount:i}}getSelectAllState(e){let{selectedCount:t,notSelectedCount:i}=this.getSelectedCounts(e);return C1(t,i)??null}hasNodesToSelect(e){return this.getNodesToSelect(e).filter(e=>e.selectable).length>0}getNodesToSelect(e){if(!this.canSelectAll())return[];let t=[],i=e=>t.push(e);if("currentPage"===e)return this.forEachNodeOnPage(e=>{if(!e.group)return void i(e);if(!e.expanded&&!e.footer){let t=e=>{i(e),e.childrenAfterFilter?.forEach(t)};t(e);return}this.groupSelectsDescendants||i(e)}),t;let o=this.beans.rowModel;return"filtered"===e?o.forEachNodeAfterFilter(i):o.forEachNode(i),t}forEachNodeOnPage(e){let{pageBounds:t,rowModel:i}=this.beans,o=t.getFirstRow(),r=t.getLastRow();for(let t=o;t<=r;t++){let o=i.getRow(t);o&&e(o)}}selectAllRowNodes(e){let{gos:t,selectionCtx:i}=this;if(!ie(t))return void tX(132);if(iP(t)&&!iH(t))return void tX(130);if(!this.canSelectAll())return;let{source:o,selectAll:r}=e,s=!1;if(this.getNodesToSelect(r).forEach(e=>{let t=this.selectRowNode(C0(e),!0,void 0,o);s||(s=t)}),i.selectAll=!0,t8(t)&&this.groupSelectsDescendants){let e=this.updateGroupsFromChildrenSelections(o);s||(s=e)}s&&this.dispatchSelectionChanged(o)}getSelectionState(){return this.isEmpty()?null:Array.from(this.selectedNodes.keys())}setSelectionState(e,t,i){if(e||(e=[]),!Array.isArray(e))return void t0(103);let o=new Set(e),r=[];this.beans.rowModel.forEachNode(e=>{o.has(e.id)&&r.push(e)}),i&&this.resetNodes(),this.setNodesSelected({newValue:!0,nodes:r,source:t})}canSelectAll(){return t8(this.beans.gos)}updateSelectable(e){let{gos:t,rowModel:i}=this.beans;if(!ie(t))return;let o="selectableChanged",r=void 0!==e,s=t8(t)&&this.groupSelectsDescendants,n=[],l=e=>{if(!r||e.group){if(s&&e.group){let t=e.childrenAfterGroup?.some(e=>e.selectable)??!1;this.setRowSelectable(e,t,!0);return}!this.updateRowSelectable(e,!0)&&e.isSelected()&&n.push(e)}};if(s){if(void 0===e){let t=i.rootNode;e=t?new aS(!1,t):void 0}e?.forEachChangedNodeDepthFirst(l,!r,!r)}else i.forEachNode(l);n.length&&this.setNodesSelected({nodes:n,newValue:!1,source:o}),!r&&s&&this.updateGroupsFromChildrenSelections?.(o)}updateSelectableAfterGrouping(e){this.updateSelectable(e),this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections?.("rowGroupChanged",e)&&this.dispatchSelectionChanged("rowGroupChanged")}refreshMasterNodeState(e,t){let i,o;if(!this.masterSelectsDetail)return;let r=e.detailNode?.detailGridInfo?.api;if(!r)return;let s=(i=0,o=0,r.forEachNode(e=>{e.isSelected()?i++:e.selectable&&o++}),C1(i,o));e.isSelected()!==s&&this.selectRowNode(e,s,t,"masterDetail")&&this.dispatchSelectionChanged("masterDetail"),s||this.detailSelection.set(e.id,new Set(r.getSelectedNodes().map(e=>e.id)))}setDetailSelectionState(e,t,i){if(this.masterSelectsDetail){if(!iH(t))return void tX(269);switch(e.isSelected()){case!0:i.selectAll();break;case!1:i.deselectAll();break;case void 0:{let t=this.detailSelection.get(e.id);if(t){let e=[];for(let o of t){let t=i.getRowNode(o);t&&e.push(t)}i.setNodesSelected({nodes:e,newValue:!0,source:"masterDetail"})}}}}}dispatchSelectionChanged(e){this.eventSvc.dispatchEvent({type:"selectionChanged",source:e,selectedNodes:this.getSelectedNodes(),serverSideState:null})}};function C0(e){return cf(e)?e.pinnedSibling:e.footer?e.sibling:e}function C1(e,t){return(0!==e||0!==t)&&(e>0&&t>0?void 0:e>0)}var C3={moduleName:"SharedRowSelection",version:tU,beans:[Cq],css:[':where(.ag-selection-checkbox) .ag-checkbox-input-wrapper:before{content:"";cursor:pointer;inset:-8px;position:absolute}'],apiFunctions:{setNodesSelected:function(e,t){if(!t.nodes.every(e=>e.rowPinned&&!cf(e)?(tX(59),!1):void 0!==e.id||(tX(60),!1)))return;let{nodes:i,source:o,newValue:r}=t;
47e.selectionSvc?.setNodesSelected({nodes:i,source:o??"api",newValue:r})},selectAll:function(e,t,i="apiSelectAll"){e.selectionSvc?.selectAllRowNodes({source:i,selectAll:t})},deselectAll:function(e,t,i="apiSelectAll"){e.selectionSvc?.deselectAllRowNodes({source:i,selectAll:t})},selectAllFiltered:function(e,t="apiSelectAllFiltered"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"filtered"})},deselectAllFiltered:function(e,t="apiSelectAllFiltered"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"filtered"})},selectAllOnCurrentPage:function(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"currentPage"})},deselectAllOnCurrentPage:function(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"currentPage"})},getSelectedNodes:function(e){return e.selectionSvc?.getSelectedNodes()??[]},getSelectedRows:function(e){return e.selectionSvc?.getSelectedRows()??[]}}},C2={moduleName:"RowSelection",version:tU,rowModels:["clientSide","infinite","viewport"],beans:[CX],dependsOn:[C3]},C6=class extends tc{constructor(e,t){super(),this.cellCtrl=e,this.staticClasses=[],this.beans=t,this.column=e.column}setComp(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){let{column:e,cellComp:t}=this,i=e.colDef,o=i.cellClassRules,r=this.getCellClassParams(e,i);cR(this.beans.expressionSvc,o===this.cellClassRules?void 0:this.cellClassRules,o,r,e=>t.toggleCss(e,!0),e=>t.toggleCss(e,!1)),this.cellClassRules=o}applyUserStyles(){let e,t=this.column,i=t.colDef,o=i.cellStyle;o&&(e="function"==typeof o?o(this.getCellClassParams(t,i)):o)&&this.cellComp.setUserStyles(e)}applyClassesFromColDef(){let{column:e,cellComp:t}=this,i=e.colDef,o=this.getCellClassParams(e,i);for(let e of this.staticClasses)t.toggleCss(e,!1);let r=this.beans.cellStyles.getStaticCellClasses(i,o);for(let e of(this.staticClasses=r,r))t.toggleCss(e,!0)}getCellClassParams(e,t){let{value:i,rowNode:o}=this.cellCtrl;return iK(this.beans.gos,{value:i,data:o.data,node:o,colDef:t,column:e,rowIndex:o.rowIndex})}},C4={moduleName:"CellStyle",version:tU,beans:[class extends tc{constructor(){super(...arguments),this.beanName="cellStyles"}processAllCellClasses(e,t,i,o){cR(this.beans.expressionSvc,void 0,e.cellClassRules,t,i,o),this.processStaticCellClasses(e,t,i)}getStaticCellClasses(e,t){let i,{cellClass:o}=e;return o?("string"==typeof(i="function"==typeof o?o(t):o)&&(i=[i]),i||[]):[]}createCellCustomStyleFeature(e){return new C6(e,this.beans)}processStaticCellClasses(e,t,i){this.getStaticCellClasses(e,t).forEach(e=>{i(e)})}}]},C5={moduleName:"RowStyle",version:tU,beans:[cx]},C8={enableBrowserTooltips:!0,tooltipTrigger:!0,tooltipMouseTrack:!0,tooltipShowMode:!0,tooltipInteraction:!0,defaultColGroupDef:!0,suppressAutoSize:!0,skipHeaderOnAutoSize:!0,autoSizeStrategy:!0,components:!0,stopEditingWhenCellsLoseFocus:!0,undoRedoCellEditing:!0,undoRedoCellEditingLimit:!0,excelStyles:!0,cacheQuickFilter:!0,customChartThemes:!0,chartThemeOverrides:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressTouch:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,dragAndDropImageComponent:!0,overlayComponent:!0,suppressOverlays:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginationPageSizeSelector:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,groupLockGroupColumns:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,maxBlocksInCache:!0,maxConcurrentDatasourceRequests:!0,blockLoadDebounceMillis:!0,serverSideOnlyRefreshFilteredGroups:!0,serverSidePivotResultFieldSeparator:!0,viewportRowModelPageSize:!0,viewportRowModelBufferSize:!0,debounceVerticalScrollbar:!0,suppressAnimationFrame:!0,suppressPreventDefaultOnMouseWheel:!0,scrollbarWidth:!0,icons:!0,suppressRowTransform:!0,gridId:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,renderingMode:!0,columnMenu:!0,suppressSetFilterByDefault:!0,getDataPath:!0,enableCellSpan:!0,enableFilterHandlers:!0,filterHandlers:!0},C7="clientSide",C9="serverSide",ve="infinite",vt={onGroupExpandedOrCollapsed:[C7],refreshClientSideRowModel:[C7],isRowDataEmpty:[C7],forEac
vendor: 5,564 bytes, line 47
47hLeafNode:[C7],forEachNodeAfterFilter:[C7],forEachNodeAfterFilterAndSort:[C7],resetRowHeights:[C7,C9],applyTransaction:[C7],applyTransactionAsync:[C7],flushAsyncTransactions:[C7],getBestCostNodeSelection:[C7],getServerSideSelectionState:[C9],setServerSideSelectionState:[C9],applyServerSideTransaction:[C9],applyServerSideTransactionAsync:[C9],applyServerSideRowData:[C9],retryServerSideLoads:[C9],flushServerSideAsyncTransactions:[C9],refreshServerSide:[C9],getServerSideGroupLevelState:[C9],refreshInfiniteCache:[ve],purgeInfiniteCache:[ve],getInfiniteRowCount:[ve],isLastRowIndexKnown:[ve,C9],expandAll:[C7,C9],collapseAll:[C7,C9],onRowHeightChanged:[C7,C9],setRowCount:[ve,C9],getCacheBlockState:[ve,C9]},vi={showLoadingOverlay:{version:"v32",message:'`showLoadingOverlay` is deprecated. Use the grid option "loading"=true instead or setGridOption("loading", true).'},clearRangeSelection:{version:"v32.2",message:"Use `clearCellSelection` instead."},getInfiniteRowCount:{version:"v32.2",old:"getInfiniteRowCount()",new:"getDisplayedRowCount()"},selectAllFiltered:{version:"v33",old:"selectAllFiltered()",new:'selectAll("filtered")'},deselectAllFiltered:{version:"v33",old:"deselectAllFiltered()",new:'deselectAll("filtered")'},selectAllOnCurrentPage:{version:"v33",old:"selectAllOnCurrentPage()",new:'selectAll("currentPage")'},deselectAllOnCurrentPage:{version:"v33",old:"deselectAllOnCurrentPage()",new:'deselectAll("currentPage")'}},vo={detailCellRendererCtrl:"SharedMasterDetail",dndSourceComp:"DragAndDrop",fillHandle:"CellSelection",groupCellRendererCtrl:"GroupCellRenderer",headerFilterCellCtrl:"ColumnFilter",headerGroupCellCtrl:"ColumnGroup",rangeHandle:"CellSelection",tooltipFeature:"Tooltip",highlightTooltipFeature:"Tooltip",tooltipStateManager:"Tooltip",groupStrategy:"RowGrouping",treeGroupStrategy:"TreeData",rowNumberRowResizer:"RowNumbers",singleCell:"EditCore",fullRow:"EditCore",agSetColumnFilterHandler:"SetFilter",agMultiColumnFilterHandler:"MultiFilter",agGroupColumnFilterHandler:"GroupFilter",agNumberColumnFilterHandler:"NumberFilter",agBigIntColumnFilterHandler:"BigIntFilter",agDateColumnFilterHandler:"DateFilter",agTextColumnFilterHandler:"TextFilter"},vr={expanded:1,contracted:1,"tree-closed":1,"tree-open":1,"tree-indeterminate":1,pin:1,"eye-slash":1,arrows:1,left:1,right:1,group:1,aggregation:1,pivot:1,"not-allowed":1,chart:1,cross:1,cancel:1,tick:1,first:1,previous:1,next:1,last:1,linked:1,unlinked:1,"color-picker":1,loading:1,menu:1,"menu-alt":1,filter:1,"filter-add":1,columns:1,maximize:1,minimize:1,copy:1,cut:1,paste:1,grip:1,save:1,csv:1,excel:1,"small-down":1,"small-left":1,"small-right":1,"small-up":1,asc:1,desc:1,aasc:1,adesc:1,none:1,up:1,down:1,plus:1,minus:1,settings:1,"checkbox-checked":1,"checkbox-indeterminate":1,"checkbox-unchecked":1,"radio-button-on":1,"radio-button-off":1,eye:1,"column-arrow":1,"un-pin":1,"pinned-top":1,"pinned-bottom":1,"chevron-up":1,"chevron-down":1,"chevron-left":1,"chevron-right":1,edit:1},vs={chart:"MenuCore",cancel:"EnterpriseCore",first:"Pagination",previous:"Pagination",next:"Pagination",last:"Pagination",linked:"IntegratedCharts",loadingMenuItems:"MenuCore",unlinked:"IntegratedCharts",menu:"ColumnHeaderComp",legacyMenu:"ColumnMenu",filter:"ColumnFilter",filterActive:"ColumnFilter",filterAdd:"NewFiltersToolPanel",filterCardCollapse:"NewFiltersToolPanel",filterCardExpand:"NewFiltersToolPanel",filterCardEditing:"NewFiltersToolPanel",filterTab:"ColumnMenu",filtersToolPanel:"FiltersToolPanel",columns:["MenuCore"],columnsToolPanel:["ColumnsToolPanel"],maximize:"EnterpriseCore",minimize:"EnterpriseCore",save:"MenuCore",columnGroupOpened:"ColumnGroupHeaderComp",columnGroupClosed:"ColumnGroupHeaderComp",accordionOpen:"EnterpriseCore",accordionClosed:"EnterpriseCore",accordionIndeterminate:"EnterpriseCore",columnSelectClosed:["ColumnsToolPanel","ColumnMenu"],columnSelectOpen:["ColumnsToolPanel","ColumnMenu"],columnSelectIndeterminate:["ColumnsToolPanel","ColumnMenu"],columnMovePin:"SharedDragAndDrop",columnMoveHide:"SharedDragAndDrop",columnMoveMove:"SharedDragAndDrop",columnMoveLeft:"SharedDragAndDrop",columnMoveRight:"SharedDragAndDrop",columnMoveGroup:"SharedDragAndDrop",columnMoveValue:"SharedDragAndDrop",columnMovePivot:"SharedDragAndDrop",dropNotAllowed:"SharedDragAndDrop",ensureColumnVisible:["ColumnsToolPanel","ColumnMenu"],groupContracted:"GroupCellRenderer",groupExpanded:"GroupCellRenderer",setFilterGroupClosed:"SetFilter",setFilterGroupOpen:"SetFilter",setFilterGroupIndeterminate:"SetFilter",setFilterLoading:"SetFilter",close:"EnterpriseCore",check:"MenuItem",colorPicker:"CommunityCore",groupLoading:"LoadingCellRenderer",overlayLoading:"Overlay",overlayExporting:"Overlay",menuAlt:"ColumnHeaderComp",menuPin:"MenuCore",menuValue:"MenuCore",menuAddRowGroup:["MenuCore","ColumnsToolPanel"],menuRemoveRowGroup:["MenuCore","ColumnsToolPanel"],clipboardCopy:"MenuCore",clipboardCut:"MenuCore",clipboardPaste:"MenuCore",pivotPanel:["ColumnsToolPanel","RowGroupingPanel"],rowGroupPanel:["ColumnsToolPanel","RowGroupingPanel"],valuePanel:"ColumnsToolPanel",columnDrag:"EnterpriseCore",rowDrag:["RowDrag","DragAndDrop"],csvExport:"MenuCore",excelExport:"MenuCore",smallDown:"CommunityCore",selectOpen:"CommunityCore",richSelectOpen:"RichSelect",richSelectRemove:"RichSelect",richSelectLoading:"RichSelect",smallLeft:"CommunityCore",smallRight:"CommunityCore",subMenuOpen:"MenuItem",subMenuOpenRtl:"MenuItem",panelDelimiter:"RowGroupingPanel",panelDelimiterRtl:"RowGroupingPanel",smallUp:"CommunityCore",sortAscending:["MenuCore","Sort"],sortDe
47scending:["MenuCore","Sort"],sortAbsoluteAscending:["MenuCore","Sort"],sortAbsoluteDescending:["MenuCore","Sort"],sortUnSort:["MenuCore","Sort"],advancedFilterBuilder:"AdvancedFilter",advancedFilterBuilderDrag:"AdvancedFilter",advancedFilterBuilderInvalid:"AdvancedFilter",advancedFilterBuilderMoveUp:"AdvancedFilter",advancedFilterBuilderMoveDown:"AdvancedFilter",advancedFilterBuilderAdd:"AdvancedFilter",advancedFilterBuilderRemove:"AdvancedFilter",advancedFilterBuilderSelectOpen:"AdvancedFilter",chartsMenu:"IntegratedCharts",chartsMenuEdit:"IntegratedCharts",chartsMenuAdvancedSettings:"IntegratedCharts",chartsMenuAdd:"IntegratedCharts",chartsColorPicker:"IntegratedCharts",chartsThemePrevious:"IntegratedCharts",chartsThemeNext:"IntegratedCharts",chartsDownload:"IntegratedCharts",checkboxChecked:"CommunityCore",checkboxIndeterminate:"CommunityCore",checkboxUnchecked:"CommunityCore",radioButtonOn:"CommunityCore",radioButtonOff:"CommunityCore",rowPin:"PinnedRow",rowUnpin:"PinnedRow",rowPinBottom:"PinnedRow",rowPinTop:"PinnedRow"},vn=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"]),vl=class extends tc{constructor(){super(...arguments),this.beanName="validation"}wireBeans(e){this.gridOptions=e.gridOptions,t$=gp}warnOnInitialPropertyUpdate(e,t){"api"===e&&C8[t]&&tX(22,{key:t})}processGridOptions(e){this.processOptions(e,{objectName:"gridOptions",allProperties:[...uO(),...Object.values(uF)],propertyExceptions:["api"],docsUrl:"grid-options/",deprecations:{suppressLoadingOverlay:{version:"32",message:"Use `loading`=false instead."},enableFillHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeSelection:{version:"32.2",message:"Use `cellSelection = true` instead."},suppressMultiRangeSelection:{version:"32.2",message:"Use `cellSelection.suppressMultiRanges` instead."},suppressClearOnFillReduction:{version:"32.2",message:"Use `cellSelection.handle.suppressClearOnFillReduction` instead."},fillHandleDirection:{version:"32.2",message:"Use `cellSelection.handle.direction` instead."},fillOperation:{version:"32.2",message:"Use `cellSelection.handle.setFillValue` instead."},suppressRowClickSelection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},suppressRowDeselection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},rowMultiSelectWithClick:{version:"32.2",message:"Use `rowSelection.enableSelectionWithoutKeys` instead."},groupSelectsChildren:{version:"32.2",message:'Use `rowSelection.groupSelects = "descendants"` instead.'},groupSelectsFiltered:{version:"32.2",message:'Use `rowSelection.groupSelects = "filteredDescendants"` instead.'},isRowSelectable:{version:"32.2",message:"Use `selectionOptions.isRowSelectable` instead."},suppressCopySingleCellRanges:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},suppressCopyRowsToClipboard:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},onRangeSelectionChanged:{version:"32.2",message:"Use `onCellSelectionChanged` instead."},onRangeDeleteStart:{version:"32.2",message:"Use `onCellSelectionDeleteStart` instead."},onRangeDeleteEnd:{version:"32.2",message:"Use `onCellSelectionDeleteEnd` instead."},suppressBrowserResizeObserver:{version:"32.2",message:"The grid always uses the browser's ResizeObserver, this grid option has no effect."},onColumnEverythingChanged:{version:"32.2",message:"Either use `onDisplayedColumnsChanged` which is fired at the same time, or use one of the more specific column events."},groupRemoveSingleChildren:{version:"33",message:"Use `groupHideParentOfSingleChild` instead."},groupRemoveLowestSingleChildren:{version:"33",message:'Use `groupHideParentOfSingleChild: "leafGroupsOnly"` instead.'},suppressRowGroupHidesColumns:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressHideOnGroup"` instead.'},suppressMakeColumnVisibleAfterUnGroup:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressShowOnUngroup"` instead.'},unSortIcon:{version:"33",message:"Use `defaultColDef.unSortIcon` instead."},sortingOrder:{version:"33",message:"Use `defaultColDef.sortingOrder` instead."},suppressPropertyNamesCheck:{version:"33",message:"`gridOptions` and `columnDefs` both have a `context` property that should be used for arbitrary user data. This means that column definitions and gridOptions should only contain valid properties making this property redundant."},suppressAdvancedFilterEval:{version:"34",message:"Advanced filter no longer uses function evaluation, so this option has no effect."}},validations:(()=>{let e={autoSizePadding:{validate:({autoSizePadding:e})=>uN("autoSizePadding",e,0)},cacheBlockSize:{supportedRowModels:["serverSide","infinite"],validate:({cacheBlockSize:e})=>uN("cacheBlockSize",e,1)},cacheOverflowSize:{validate:({cacheOverflowSize:e})=>uN("cacheOverflowSize",e,1)}
47,datasource:{supportedRowModels:["infinite"]},domLayout:{validate:e=>{let t=e.domLayout,i=["autoHeight","normal","print"];return t&&!i.includes(t)?`domLayout must be one of [${i.join()}], currently it's ${t}`:null}},enableFillHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeSelection:{dependencies:{rowDragEntireRow:{required:[!1,void 0]}}},enableRowPinning:{supportedRowModels:["clientSide"],validate:({enableRowPinning:e,pinnedTopRowData:t,pinnedBottomRowData:i})=>e&&(t||i)?"Manual row pinning cannot be used together with pinned row data. Either set `enableRowPinning` to `false`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":null},isRowPinnable:{supportedRowModels:["clientSide"],validate:({enableRowPinning:e,isRowPinnable:t,pinnedTopRowData:i,pinnedBottomRowData:o})=>t&&(i||o)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinnable`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!e&&t?"`isRowPinnable` requires `enableRowPinning` to be set.":null},isRowPinned:{supportedRowModels:["clientSide"],validate:({enableRowPinning:e,isRowPinned:t,pinnedTopRowData:i,pinnedBottomRowData:o})=>t&&(i||o)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinned`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!e&&t?"`isRowPinned` requires `enableRowPinning` to be set.":null},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupHideOpenParents:{supportedRowModels:["clientSide","serverSide"],dependencies:{groupTotalRow:{required:[void 0,"bottom"]},treeData:{required:[void 0,!1],reason:"Tree Data has values at the group level so it doesn't make sense to hide them."}}},groupHideParentOfSingleChild:{dependencies:{groupHideOpenParents:{required:[void 0,!1]}}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveSingleChildren:{required:[void 0,!1]}}},groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveLowestSingleChildren:{required:[void 0,!1]}}},groupSelectsChildren:{dependencies:{rowSelection:{required:["multiple"]}}},groupHierarchyConfig:{validate({groupHierarchyConfig:e={}},t,i){for(let t of Object.keys(e))i.validation?.validateColDef(e[t]);return null}},icons:{validate:({icons:e})=>{if(e){if(e.smallDown)return t6(262);if(e.smallLeft)return t6(263);if(e.smallRight)return t6(264)}return null}},infiniteInitialRowCount:{validate:({infiniteInitialRowCount:e})=>uN("infiniteInitialRowCount",e,1)},initialGroupOrderComparator:{supportedRowModels:["clientSide"]},ssrmExpandAllAffectsAllRows:{validate:e=>{if("boolean"==typeof e.ssrmExpandAllAffectsAllRows){if("serverSide"!==e.rowModelType)return"'ssrmExpandAllAffectsAllRows' is only supported with the Server Side Row Model.";if(e.ssrmExpandAllAffectsAllRows&&"function"!=typeof e.getRowId)return"'getRowId' callback must be provided for Server Side Row Model grouping to work correctly."}return null}},keepDetailRowsCount:{validate:({keepDetailRowsCount:e})=>uN("keepDetailRowsCount",e,1)},paginationPageSize:{validate:({paginationPageSize:e})=>uN("paginationPageSize",e,1)},paginationPageSizeSelector:{validate:e=>{let t=e.paginationPageSizeSelector;return"boolean"==typeof t||null==t||t.length?null:`'paginationPageSizeSelector' cannot be an empty array.
48                    If you want to hide the page size selector, set paginationPageSizeSelector to false.`}},pivotMode:{dependencies:{treeData:{required:[!1,void 0],reason:"Pivot Mode is not supported with Tree Data."}}},quickFilterText:{supportedRowModels:["clientSide"]},rowBuffer:{validate:({rowBuffer:e})=>uN("rowBuffer",e,0)},rowClass:{validate:e=>"function"==typeof e.rowClass?"rowClass should not be a function, please use getRowClass instead":null},rowData:{supportedRowModels:["clientSide"]},rowDragManaged:{supportedRowModels:["clientSide"],dependencies:{pagination:{required:[!1,void 0]}}},rowSelection:{validate:({rowSelection:e})=>e&&"string"==typeof e?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':e&&"object"!=typeof e?"Expected `RowSelectionOptions` object for the `rowSelection` property.":e&&"multiRow"!==e.mode&&"singleRow"!==e.mode?`Selection mode "${e.mode}
48" is invalid. Use one of 'singleRow' or 'multiRow'.`:null},rowStyle:{validate:e=>{let t=e.rowStyle;return t&&"function"==typeof t?"rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead":null}},serverSideDatasource:{supportedRowModels:["serverSide"]},serverSideInitialRowCount:{supportedRowModels:["serverSide"],validate:({serverSideInitialRowCount:e})=>uN("serverSideInitialRowCount",e,1)},serverSideOnlyRefreshFilteredGroups:{supportedRowModels:["serverSide"]},serverSideSortAllLevels:{supportedRowModels:["serverSide"]},sortingOrder:{validate:e=>{let t=e.sortingOrder;if(Array.isArray(t)&&t.length>0){let e=t.filter(e=>!i3(e));if(e.length>0)return`sortingOrder must be an array of type (SortDirection | SortDef)[], incorrect items are: ${e.map(e=>"string"==typeof e||null==e?tY(e):JSON.stringify(e))}]`}else if(!Array.isArray(t)||!t.length)return`sortingOrder must be an array with at least one element, currently it's ${t}`;return null}},tooltipHideDelay:{validate:e=>e.tooltipHideDelay&&e.tooltipHideDelay<0?"tooltipHideDelay should not be lower than 0":null},tooltipShowDelay:{validate:e=>e.tooltipShowDelay&&e.tooltipShowDelay<0?"tooltipShowDelay should not be lower than 0":null},tooltipSwitchShowDelay:{validate:e=>e.tooltipSwitchShowDelay&&e.tooltipSwitchShowDelay<0?"tooltipSwitchShowDelay should not be lower than 0":null},treeData:{supportedRowModels:["clientSide","serverSide"],validate:e=>{let t=e.rowModelType??"clientSide";switch(t){case"clientSide":{let{treeDataChildrenField:t,treeDataParentIdField:i,getDataPath:o,getRowId:r}=e;if(!t&&!i&&!o)return"treeData requires either 'treeDataChildrenField' or 'treeDataParentIdField' or 'getDataPath' in the clientSide row model.";if(t){if(o)return"Cannot use both 'treeDataChildrenField' and 'getDataPath' at the same time.";if(i)return"Cannot use both 'treeDataChildrenField' and 'treeDataParentIdField' at the same time."}if(i){if(!r)return"getRowId callback not provided, tree data with parent id cannot be built.";if(o)return"Cannot use both 'treeDataParentIdField' and 'getDataPath' at the same time."}break}case"serverSide":{let i=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${t} row model.`;return e.isServerSideGroup&&e.getServerSideGroupKey?null:i}}return null}},viewportDatasource:{supportedRowModels:["viewport"]},viewportRowModelBufferSize:{validate:({viewportRowModelBufferSize:e})=>uN("viewportRowModelBufferSize",e,0)},viewportRowModelPageSize:{validate:({viewportRowModelPageSize:e})=>uN("viewportRowModelPageSize",e,1)},rowDragEntireRow:{dependencies:{cellSelection:{required:[void 0]}}},autoGroupColumnDef:{validate:({autoGroupColumnDef:e,showOpenedGroup:t})=>e?.field&&t?"autoGroupColumnDef.field and showOpenedGroup are not supported when used together.":e?.valueGetter&&t?"autoGroupColumnDef.valueGetter and showOpenedGroup are not supported when used together.":null},renderingMode:{validate:e=>{let t=e.renderingMode,i=["default","legacy"];return t&&!i.includes(t)?`renderingMode must be one of [${i.join()}], currently it's ${t}`:null}},autoSizeStrategy:{validate:({autoSizeStrategy:e})=>{if(!e)return null;let t=e.type;return"fitCellContents"!==t&&"fitGridWidth"!==t&&"fitProvidedWidth"!==t?`Invalid Auto-size strategy. \`autoSizeStrategy\` must be one of ${["fitCellContents","fitGridWidth","fitProvidedWidth"].map(e=>'"'+e+'"').join(", ")}, currently it's ${t}`:"fitProvidedWidth"===t&&"number"!=typeof e.width?`When using the 'fitProvidedWidth' auto-size strategy, must provide a numeric \`width\`. You provided ${e.width}`:null}}},t={};for(let e of uV)t[e]={expectedType:"boolean"};for(let e of uL)t[e]={expectedType:"number"};return tS(t,e),t})()})}validateApiFunction(e,t){return function(e,t,i){let o=vi[e];if(o){let{version:i,new:r,old:s,message:n}=o,l=s??e;return(...e)=>{let o=r?`Please use ${r} instead. `:"";return tk(`Since ${i} api.${l} is deprecated. ${o}${n??""}`),t.apply(t,e)}}let r=vt[e];return r?(...o)=>{let s=i.rowModel.getType();return r.includes(s)?t.apply(t,o):void tT(`api.${e} can only be called when gridOptions.rowModelType is ${r.join(" or ")}`)}:t}(e,t,this.beans)}missingUserComponent(e,t,i,o){let r=uP[t];r?this.gos.assertModuleRegistered(r,`AG Grid '${e}' component: ${t}`):tX(101,{propertyName:e,componentName:t,agGridDefaults:i,jsComps:o})}missingDynamicBean(e){let t=vo[e];
48return t?t6(200,{...this.gos.getModuleErrorParams(),moduleName:t,reasonOrId:e}):void 0}checkRowEvents(e){va.has(e)&&tX(10,{eventType:e})}validateIcon(e){if(vn.has(e)&&tX(43,{iconName:e}),vr[e])return;let t=vs[e];if(t)return void t0(200,{reasonOrId:`icon '${e}'`,moduleName:t,gridScoped:tH,gridId:this.beans.context.getId(),rowModelType:this.gos.get("rowModelType"),additionalText:"Alternatively, use the CSS icon name directly."});tX(134,{iconName:e})}isProvidedUserComp(e){return!!uP[e]}validateColDef(e){this.processOptions(e,{objectName:"colDef",allProperties:Object.keys(uk),docsUrl:"column-properties/",deprecations:{checkboxSelection:{version:"32.2",message:"Use `rowSelection.checkboxes` in `GridOptions` instead."},headerCheckboxSelection:{version:"32.2",message:"Use `rowSelection.headerCheckbox = true` in `GridOptions` instead."},headerCheckboxSelectionFilteredOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "filtered"` in `GridOptions` instead.'},headerCheckboxSelectionCurrentPageOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "currentPage"` in `GridOptions` instead.'},showDisabledCheckboxes:{version:"32.2",message:"Use `rowSelection.hideDisabledCheckboxes = true` in `GridOptions` instead."},rowGroupingHierarchy:{version:"34.3",message:"Use `colDef.groupHierarchy` instead."}},validations:{autoHeight:{supportedRowModels:["clientSide","serverSide"],validate:(e,{paginationAutoPageSize:t})=>t?"colDef.autoHeight is not supported with paginationAutoPageSize.":null},allowFormula:{supportedRowModels:["clientSide"]},cellRendererParams:{validate:e=>(null!=e.rowGroup||null!=e.rowGroupIndex||"agGroupCellRenderer"===e.cellRenderer)&&"checkbox"in e.cellRendererParams?'Since v33.0, `cellRendererParams.checkbox` has been deprecated. Use `rowSelection.checkboxLocation = "autoGroupColumn"` instead.':null},flex:{validate:(e,t)=>t.autoSizeStrategy?"colDef.flex is not supported with gridOptions.autoSizeStrategy":null},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(e,{rowSelection:t})=>"multiple"===t?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(e,{rowSelection:t})=>"multiple"===t?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(e,{rowSelection:t})=>"multiple"===t?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerValueGetter:{validate:e=>{let t=e.headerValueGetter;return"function"==typeof t||"string"==typeof t?null:"headerValueGetter must be a function or a valid string expression"}},icons:{validate:({icons:e})=>{if(e){if(e.smallDown)return t6(262);if(e.smallLeft)return t6(263);if(e.smallRight)return t6(264)}return null}},sort:{validate:e=>i4(e.sort)||i2(e.sort)?null:`sort must be of type (SortDirection | SortDef), currently it is ${"object"==typeof e.sort?JSON.stringify(e.sort):tY(e.sort)}`},initialSort:{validate:e=>i4(e.initialSort)||i2(e.initialSort)?null:`initialSort must be of non-null type (SortDirection | SortDef), currently it is ${"object"==typeof e.initialSort?JSON.stringify(e.initialSort):tY(e.initialSort)}`},sortingOrder:{validate:e=>{let t=e.sortingOrder;if(Array.isArray(t)&&t.length>0){let e=t.filter(e=>!(i4(e)||i2(e)));if(e.length>0)return`sortingOrder must be an array of type non-null (SortDirection | SortDef)[], incorrect items are: [${e.map(e=>"string"==typeof e||null==e?tY(e):JSON.stringify(e)).join(", ")}]`}else if(!Array.isArray(t)||!t.length)return`sortingOrder must be an array with at least one element, currently it is [${t}]`;return null}},type:{validate:e=>{let t=e.type;return t instanceof Array?t.some(e=>"string"!=typeof e)?"if colDef.type is supplied an array it should be of type 'string[]'":null:"string"==typeof t?null:"colDef.type should be of type 'string' | 'string[]'"}},rowSpan:{validate:(e,{suppressRowTransform:t})=>t?null:"colDef.rowSpan requires suppressRowTransform to be enabled."},spanRows:{dependencies:{editable:{required:[!1,void 0]},rowDrag:{required:[!1,void 0]},colSpan:{required:[void 0]},rowSpan:{required:[void 0]}},validate:(e,{rowSelection:t,cellSelection:i,suppressRowTransform:o,enableCellSpan:r,rowDragEntireRow:s,enableCellTextSelection:n})=>"object"==typeof t&&t?.mode==="singleRow"&&t?.enableClickSelection?"colDef.spanRows is not supported with rowSelection.clickSelection":i?"colDef.spanRows is not supported with cellSelection.":o?"colDef.spanRows is not supported with suppressRowTransform.":r?s?"colDef.spanRows is not supported with rowDragEntireRow.":n?"colDef.spanRows is not supported with enableCellTextSelection.":null:"colDef.spanRows requires enableCellSpan to be enabled."},groupHierarchy:{validate(e,{groupHierarchyConfig:t={}},i){let o=new Set(["year","quarter","month","formattedMonth","day","hour","minute","second"]),r=[];for(let s of e.groupHierarchy??[]){if("object"==typeof s){i.validation?.validateColDef(s);continue}o.has(s)||s in t||r.push(uD(s))}if(r.length>0){let e=`The following parts of colDef.groupHierarchy are not recognised: ${r.join(", ")}.`,t=`Choose one of ${[...o].map(uD).join(", ")}, or define your own parts in gridOptions.groupHierarchyConfig.`;return`${e}
49${t}`}return null}}}})}processOptions(e,t){let{validations:i,deprecations:o,allProperties:r,propertyExceptions:s,objectName:n,docsUrl:l}=t;r&&!0!==this.gridOptions.suppressPropertyNamesCheck&&this.checkProperties(e,[...s??[],...Object.keys(o)],r,n,l);let a=new Set;if(Object.keys(e).forEach(t=>{let r=o[t];if(r){let{message:e,version:i}=r;a.add(`As of v${i}, ${String(t)} is deprecated. ${e??""}`)}let s=e[t];if(null==s||!1===s)return;let n=i[t];if(!n)return;let{dependencies:l,validate:d,supportedRowModels:h,expectedType:u}=n;if(u){let e=typeof s;if(e!==u)return void a.add(`${String(t)} should be of type '${u}' but received '${e}' (${s}).`)}if(h){let e=this.gridOptions.rowModelType??"clientSide";if(!h.includes(e))return void a.add(`${String(t)} is not supported with the '${e}' row model. It is only valid with: ${h.join(", ")}.`)}if(l){let i=this.checkForRequiredDependencies(t,l,e);if(i)return void a.add(i)}if(d){let t=d(e,this.gridOptions,this.beans);if(t)return void a.add(t)}}),a.size>0)for(let e of a)tk(e)}
49checkForRequiredDependencies(e,t,i){let o=Object.entries(t).filter(([e,t])=>{let o=i[e];return!t.required.includes(o)});return 0===o.length?null:o.map(([t,i])=>`'${String(e)}' requires '${t}' to be one of [${i.required.map(e=>null===e?"null":void 0===e?"undefined":e).join(", ")}]. ${i.reason??""}`).join("\n           ")}checkProperties(e,t,i,o,r){let s=function(e,t,i){let o={},r=e.filter(e=>!t.some(t=>t===e));if(r.length>0)for(let e of r)o[e]=go({inputValue:e,allSuggestions:i}).values;return o}(Object.getOwnPropertyNames(e),["__ob__","__v_skip","__metadata__",...t,...i],i),n=Object.keys(s);for(let e of n){let t=s[e],r=`invalid ${o} property '${e}' did you mean any of these: ${t.slice(0,8).join(", ")}.`;i.includes("context")&&(r+=`
50If you are trying to annotate ${o} with application data, use the '${o}.context' property instead.`),tk(r)}if(n.length>0&&r){let e=this.beans.frameworkOverrides.getDocLink(r);tk(`to see all the valid ${o} properties please check: ${e}`)}}},va=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]),vd={moduleName:"Validation",version:tU,beans:[vl]},vh={moduleName:"AllCommunity",version:tU,dependsOn:[gX,pr,Cw,vd,mg,mp,mm,mf,mC,mv,mw,mc,Cu,Cc,Cg,Cp,Ch,Cm,Cf,CE,gM,CT,dy,gA,gI,CG,g5,aL,CA,C2,ge,C4,g7,C5,Cb,gt,CV,pf,CS,CO,aA,g0,C$]};function vu(e,t={}){return[e,Object.keys(t).map(e=>{let i=t[e];return null!=i?`${e}=${i}`:null}).filter(Boolean).join(";")].filter(e=>e.length>0).join(":")}var vc={grid:e=>vu("ag-grid-root",{gridId:e}),headerGroupCell:e=>vu("ag-header-group-cell",{colId:e}),headerCell:e=>vu("ag-header-cell",{colId:e}),headerCheckbox:e=>vu("ag-header-selection-checkbox",{colId:e}),headerFilterButton:e=>vu("ag-header-cell-filter-button",{colId:e}),floatingFilter:e=>vu("ag-floating-filter",{colId:e}),floatingFilterButton:e=>vu("ag-floating-filter-button",{colId:e}),headerCellMenuButton:e=>vu("ag-header-cell-menu-button",{colId:e}),headerResizeHandle:e=>vu("ag-header-cell-resize",{colId:e}),filterInstancePickerDisplay:e=>vu(`ag-${e.source}-picker-display`,vp(e)),numberFilterInstanceInput:e=>vu(`ag-${e.source}-number-input`,vp(e)),textFilterInstanceInput:e=>vu(`ag-${e.source}-text-input`,vp(e)),dateFilterInstanceInput:e=>vu(`ag-${e.source}-date-input`,vp(e)),setFilterInstanceMiniFilterInput:e=>vu(`ag-${e.source}-set-filter-mini-filter-input`,"filter-toolpanel"===e.source?{label:e.colLabel}:{colId:e.colId}),setFilterInstanceItem:(e,t)=>vu(`ag-${e.source}-set-filter-item`,"filter-toolpanel"===e.source?{colLabel:e.colLabel,itemLabel:t}:{colId:e.colId,itemLabel:t}),setFilterApplyPanelButton:(e,t)=>vu(`ag-${e.source}-set-filter-apply-panel-button`,"filter-toolpanel"===e.source?{colLabel:e.colLabel,buttonLabel:t}:{colId:e.colId,buttonLabel:t}),filterConditionRadioButton:(e,t)=>vu(`ag-${e.source}-filter-condition-radio-button`,"filter-toolpanel"===e.source?{colLabel:e.colLabel,buttonLabel:t}:{colId:e.colId,buttonLabel:t}),advancedFilterInput:()=>vu("ag-advanced-filter-input"),advancedFilterButton:e=>vu("ag-advanced-filter-button",{label:e}),advancedFilterBuilderButton:()=>vu("ag-advanced-filter-builder-button"),advancedFilterPanelMaximiseButton:()=>vu("ag-advanced-filter-builder-panel-maximise"),advancedFilterPanelCloseButton:()=>vu("ag-advanced-filter-builder-panel-close"),advancedFilterPill:e=>vu("ag-advanced-filter-builder-pill",{label:e}),advancedFilterBuilderAddItemButton:()=>vu("ag-advanced-filter-builder-add-item-button"),rowNode:e=>vu("ag-row",{"row-id":e}),cell:(e,t)=>vu("ag-cell",{"row-id":e,colId:t}),autoGroupCell:e=>vc.cell(e,os),checkbox:(e,t)=>vu("ag-selection-checkbox",{"row-id":e,colId:t}),selectionColumnCheckbox:e=>vc.checkbox(e,on),autoGroupColumnCheckbox:e=>vc.checkbox(e,os),dragHandle:(e,t)=>vu("ag-drag-handle",{"row-id":e,colId:t}),groupContracted:(e,t)=>vu("ag-group-contracted",{"row-id":e,colId:t}),groupExpanded:(e,t)=>vu("ag-group-expanded",{"row-id":e,colId:t}),autoGroupContracted:e=>vc.groupContracted(e,os),autoGroupExpanded:e=>vc.groupExpanded(e,os),rowNumber:e=>vc.cell(e,ol),menu:()=>vu("ag-menu"),menuOption:e=>vu("ag-menu-option",{option:e}),sideBar:()=>vu("ag-side-bar"),sideBarButton:e=>vu("ag-side-button",{label:e}),columnToolPanel:()=>
50vu("ag-column-panel"),pivotModeSelect:()=>vu("ag-pivot-mode-select"),columnPanelSelectHeaderCheckbox:()=>vu("ag-column-panel-select-header-checkbox"),columnPanelSelectHeaderFilter:()=>vu("ag-column-panel-select-header-filter"),columnSelectListItemGroupClosedIcon:e=>vu("ag-column-select-list-item-group-closed-icon",{label:e}),columnSelectListItemCheckbox:e=>vu("ag-column-select-list-item-checkbox",{label:e}),columnSelectListItemDragHandle:e=>vu("ag-column-select-list-item-drag-handle",{label:e}),columnDropCellDragHandle:(e,t,i)=>vu("ag-column-drop-cell-drag-handle",{source:e,area:t,label:i}),columnDropCellCancelButton:(e,t,i)=>vu("ag-column-drop-cell-cancel",{source:e,area:t,label:i}),columnDropArea:(e,t)=>vu("ag-column-drop-area",{source:e,name:t}),filterToolPanel:()=>vu("ag-filter-panel"),filterToolPanelAddFilterButton:()=>vu("ag-filter-panel-add-filter-button"),filterToolPanelFilterTypeSelector:e=>vu("ag-filter-panel-filter-type-selector",{colLabel:e}),filterToolPanelSearchInput:()=>vu("ag-filter-toolpanel-search-input"),filterToolPanelGroup:e=>vu("ag-filter-toolpanel-group",{title:e}),filterToolPanelGroupCollapsedIcon:e=>vu("ag-filter-toolpanel-group-collapsed-icon",{title:e}),statusBarTotalAndFilteredRowCount:()=>vu("ag-status-bar-total-and-filtered-row-count"),statusBarTotalRowCount:()=>vu("ag-status-bar-total-row-count"),statusBarFilteredRowCount:()=>vu("ag-status-bar-filtered-row-count"),statusBarSelectedRowCount:()=>vu("ag-status-bar-selected-row-count"),statusBarAggregations:()=>vu("ag-status-bar-aggregations"),paginationPanelSizePickerDisplay:e=>vu("ag-pagination-page-size-picker-field-display",{value:e}),paginationPanelFirstRowOnPage:e=>vu("ag-paging-row-summary-panel-first-row-on-page",{value:e}),paginationPanelLastRowOnPage:e=>vu("ag-paging-row-summary-panel-last-row-on-page",{value:e}),paginationPanelRecordCount:e=>vu("ag-paging-row-summary-panel-record-count",{value:e}),paginationSummaryPanelButton:e=>vu("ag-paging-page-summary-panel-btn",{label:e}),paginationSummaryPanelCurrentPage:e=>vu("ag-paging-page-summary-panel-current-page",{value:e}),paginationSummaryPanelTotalPage:e=>vu("ag-paging-page-summary-panel-total-page",{value:e}),fillHandle:()=>vu("ag-fill-handle"),columnChooserCloseButton:()=>vu("ag-column-chooser-close-button"),columnChooserSearchBarCheckbox:()=>vu("ag-column-chooser-header-checkbox"),columnChooserSearchBarFilter:()=>vu("ag-column-chooser-searchbar-filter"),columnChooserListItemGroupClosedIcon:e=>vu("ag-column-chooser-list-item-group-closed-icon",{label:e}),columnChooserListItemCheckbox:e=>vu("ag-column-chooser-list-item-checkbox",{label:e}),columnChooserListItemDragHandle:e=>vu("ag-column-chooser-list-item-drag-handle",{label:e}),overlay:()=>vu("ag-overlay")},vg=e=>{let t={};for(let i of Object.keys(vc))t[i]=(...t)=>e(vc[i](...t));return t};function vp(e){var t,i;return t="floating-filter"!==e.source?{index:0,...e}:e,i={colLabel:"label"},Object.fromEntries(Object.entries(t).reduce((e,[t,o])=>(null!==i[t]&&e.push([i[t]??t,o]),e),[]))}var vm="data-testid";function vf(e,t){e?.setAttribute(vm,t)}var vC={moduleName:"Testing",version:tU,beans:[class extends tc{constructor(){super(...arguments),this.beanName="testIdSvc"}postConstruct(){let e=tv(this,()=>this.setupAllTestIds(),500),t=tv(this,()=>{this.setupAllTestIds(),e()},0);this.addManagedEventListeners({firstDataRendered:t,displayedRowsChanged:t,displayedColumnsChanged:t,displayedColumnsWidthChanged:t,virtualColumnsChanged:t,columnMenuVisibleChanged:t,contextMenuVisibleChanged:t,advancedFilterBuilderVisibleChanged:t,fieldPickerValueSelected:t,modelUpdated:t,sideBarUpdated:t,pinnedHeightChanged:t,gridReady:t,overlayExclusiveChanged:t,rowGroupOpened:t,scrollVisibilityChanged:t,gridSizeChanged:t,filterOpened:t,filterChanged:t,cellSelectionChanged:t})}setupAllTestIds(){let e=G(this.beans),t=l7(this.beans);vf(e.querySelector(`[grid-id="${t}"]`),vc.grid(t)),e.querySelectorAll(".ag-header-group-cell").forEach(e=>{vf(e,vc.headerGroupCell(e.getAttribute("col-id")))}),e.querySelectorAll(".ag-header-cell").forEach(e=>{let t=e.getAttribute("col-id"),i=e.classList.contains("ag-floating-filter")?vc.floatingFilter(t):vc.headerCell(t);vf(e,i),vf(e.querySelector(".ag-header-cell-filter-button"),vc.headerFilterButton(t)),vf(e.querySelector(".ag-header-cell-menu-button"),vc.headerCellMenuButton(t)),vf(e.querySelector(".ag-header-cell-resize"),vc.headerResizeHandle(t)),vf(e.querySelector(".ag-checkbox input[type=checkbox]"),vc.headerCheckbox(t)),vf(e.querySelector(".ag-floating-filter-button button"),vc.floatingFilterButton(t)),this.setupFilterInstance(e.querySelector(".ag-floating-filter-body"),{source:"floating-filter",colId:t})});let i=e.querySelector(".ag-filter-menu");this.setupFilterInstance(i,{source:"column-filter"}),vf(e.querySelector(".ag-advanced-filter input[type=text]"),vc.advancedFilterInput()),e.querySelectorAll(".ag-advanced-filter-buttons button").forEach(e
vendor: 4,317 bytes, line 50
50=>{vf(e,vc.advancedFilterButton(e.textContent))}),vf(e.querySelector("button.ag-advanced-filter-builder-button"),vc.advancedFilterBuilderButton()),e.querySelectorAll('.ag-panel[aria-label="Advanced Filter"] .ag-panel-title-bar-button').forEach((e,t)=>{vf(e,0===t?vc.advancedFilterPanelMaximiseButton():vc.advancedFilterPanelCloseButton())}),e.querySelectorAll('.ag-panel[aria-lable="Advanced Filter"] .ag-advanced-filter-builder-pill').forEach(e=>{vf(e,vc.advancedFilterPill(e.querySelector(".ag-picker-field-display")?.textContent))}),vf(e.querySelector('.ag-panel[aria-label="Advanced Filter"] .ag-advanced-filter-builder-item-button'),vc.advancedFilterBuilderAddItemButton()),e.querySelectorAll(".ag-row").forEach(e=>{let t=e.getAttribute("row-id");vf(e,vc.rowNode(t)),e.querySelectorAll(".ag-cell").forEach(e=>{let i=e.getAttribute("col-id");vf(e,vc.cell(t,i)),vf(e.querySelector(".ag-selection-checkbox input[type=checkbox]"),vc.checkbox(t,i)),vf(e.querySelector(".ag-drag-handle"),vc.dragHandle(t,i)),vf(e.querySelector(".ag-group-contracted"),vc.groupContracted(t,i)),vf(e.querySelector(".ag-group-expanded"),vc.groupExpanded(t,i))})}),e.querySelectorAll(".ag-menu-list").forEach(e=>{vf(e,vc.menu()),e.querySelectorAll(".ag-menu-option").forEach(e=>{vf(e,vc.menuOption(e.querySelector(".ag-menu-option-text")?.textContent))})}),e.querySelectorAll(".ag-side-bar").forEach(e=>{vf(e,vc.sideBar()),e.querySelectorAll(".ag-side-button button").forEach(e=>{vf(e,vc.sideBarButton(e.querySelector(".ag-side-button-label")?.textContent))}),e.querySelectorAll(".ag-column-panel").forEach(e=>{vf(e,vc.columnToolPanel()),vf(e.querySelector(".ag-pivot-mode-select input[type=checkbox]"),vc.pivotModeSelect()),vf(e.querySelector(".ag-column-select-header-checkbox input[type=checkbox]"),vc.columnPanelSelectHeaderCheckbox()),vf(e.querySelector(".ag-column-select-header-filter-wrapper input[type=text]"),vc.columnPanelSelectHeaderFilter()),e.querySelectorAll(".ag-column-select-list").forEach(e=>{e.querySelectorAll(".ag-column-select-virtual-list-item").forEach(e=>{let t=e.getAttribute("aria-label");vf(e.querySelector(".ag-column-group-closed-icon"),vc.columnSelectListItemGroupClosedIcon(t)),vf(e.querySelector(".ag-column-select-checkbox input[type=checkbox]"),vc.columnSelectListItemCheckbox(t)),vf(e.querySelector(".ag-drag-handle"),vc.columnSelectListItemDragHandle(t))})}),this.setupColumnDropArea(e,"toolbar")}),e.querySelectorAll(".ag-filter-panel").forEach(e=>{vf(e,vc.filterToolPanel()),vf(e.querySelector("button.ag-filter-add-button"),vc.filterToolPanelAddFilterButton()),e.querySelectorAll(".ag-filter-card").forEach(e=>{let t=e.querySelector(".ag-filter-card-title")?.textContent;vf(e.querySelector(".ag-filter-type-select"),vc.filterToolPanelFilterTypeSelector(t)),e.querySelectorAll(".ag-filter").forEach(e=>this.setupFilterInstance(e,{source:"filter-toolpanel",colLabel:t}))})}),e.querySelectorAll(".ag-filter-toolpanel").forEach(e=>{vf(e.querySelector(".ag-filter-toolpanel-search-input input[type=text]"),vc.filterToolPanelSearchInput()),e.querySelectorAll(".ag-filter-toolpanel-group").forEach(e=>{let t=e.querySelector(".ag-filter-toolpanel-group-title")?.textContent;vf(e,vc.filterToolPanelGroup(t)),vf(e.querySelector(".ag-filter-toolpanel-group-title-bar-icon .ag-icon-tree-closed"),vc.filterToolPanelGroupCollapsedIcon(t));let i=e.querySelector(".ag-filter-toolpanel-instance-filter");i&&this.setupFilterInstance(i,{source:"filter-toolpanel",colLabel:t})})})}),vf(e.querySelector(".ag-status-bar .ag-status-panel-total-and-filtered-row-count"),vc.statusBarTotalAndFilteredRowCount()),vf(e.querySelector(".ag-status-bar .ag-status-panel-total-row-count"),vc.statusBarTotalRowCount()),vf(e.querySelector(".ag-status-bar .ag-status-panel-filtered-row-count"),vc.statusBarFilteredRowCount()),vf(e.querySelector(".ag-status-bar .ag-status-panel-selected-row-count"),vc.statusBarSelectedRowCount()),vf(e.querySelector(".ag-status-bar .ag-status-panel-filtered-row-count"),vc.statusBarAggregations()),e.querySelectorAll(".ag-paging-panel").forEach(e=>{vf(e.querySelector(".ag-paging-page-size .ag-picker-field-display"),vc.paginationPanelSizePickerDisplay(e.querySelector(".ag-paging-page-size .ag-picker-field-display")?.textContent)),e.querySelectorAll(".ag-paging-row-summary-panel-number").forEach(e
50=>{switch(e.getAttribute("data-ref")){case"lbFirstRowOnPage":vf(e,vc.paginationPanelFirstRowOnPage(e.textContent));break;case"lbLastRowOnPage":vf(e,vc.paginationPanelLastRowOnPage(e.textContent));break;case"lbRecordCount":vf(e,vc.paginationPanelRecordCount(e.textContent))}}),e.querySelectorAll(".ag-paging-page-summary-panel .ag-button").forEach(e=>{vf(e,vc.paginationSummaryPanelButton(e.getAttribute("aria-label")?.toLowerCase()))}),e.querySelectorAll(".ag-paging-page-summary-panel .ag-paging-number").forEach(e=>{switch(e.getAttribute("data-ref")){case"lbCurrent":vf(e,vc.paginationSummaryPanelCurrentPage(e.textContent));break;case"lbTotal":vf(e,vc.paginationSummaryPanelTotalPage(e.textContent))}})}),vf(e.querySelector(".ag-fill-handle"),vc.fillHandle()),e.querySelectorAll('.ag-panel[aria-label="Choose Columns"]').forEach(e=>{vf(e.querySelector(".ag-panel-title-bar-button-icon"),vc.columnChooserCloseButton()),vf(e.querySelector('.ag-column-select-header-checkbox input[type="checkbox"]'),vc.columnChooserSearchBarCheckbox()),vf(e.querySelector('.ag-column-select-header-filter-wrapper input[type="text"]'),vc.columnChooserSearchBarFilter()),e.querySelectorAll(".ag-column-select-list").forEach(e=>{e.querySelectorAll(".ag-column-select-virtual-list-item").forEach(e=>{let t=e.getAttribute("aria-label");vf(e.querySelector(".ag-column-group-closed-icon"),vc.columnChooserListItemGroupClosedIcon(t)),vf(e.querySelector(".ag-column-select-checkbox input[type=checkbox]"),vc.columnChooserListItemCheckbox(t)),vf(e.querySelector(".ag-drag-handle"),vc.columnChooserListItemDragHandle(t))})})}),vf(e.querySelector(".ag-overlay-wrapper"),vc.overlay());let o=e.querySelector(".ag-column-drop-wrapper");o&&this.setupColumnDropArea(o,"panel")}setupFilterInstance(e,t){if(!e)return;e.querySelectorAll(".ag-filter-select .ag-picker-field-display").forEach(e=>{vf(e,vc.filterInstancePickerDisplay(t))});let i="floating-filter"===t.source?".ag-floating-filter-body":".ag-filter-body";e.querySelectorAll(`${i} .ag-input-field:not(.ag-hidden) input[type="number"]`).forEach((e,i,o)=>{let r=o.length>1?{...t,index:i}:t;vf(e,vc.numberFilterInstanceInput(r))}),e.querySelectorAll(`${i} .ag-input-field:not(.ag-hidden) input[type="text"]`).forEach((e,i,o)=>{let r=o.length>1?{...t,index:i}:t;vf(e,vc.textFilterInstanceInput(r))}),e.querySelectorAll(`${i} .ag-input-field:not(.ag-hidden) input[type="date"]`).forEach((e,i,o)=>{let r=o.length>1?{...t,index:i}:t;vf(e,vc.dateFilterInstanceInput(r))}),vf(e.querySelector('.ag-mini-filter input[type="text"]'),vc.setFilterInstanceMiniFilterInput(t)),e.querySelectorAll(".ag-set-filter-list .ag-set-filter-item").forEach(e=>{let i=e.querySelector(".ag-checkbox-label")?.textContent;vf(e.querySelector('input[type="checkbox"]'),vc.setFilterInstanceItem(t,i))}),e.querySelectorAll(".ag-filter-apply-panel button").forEach(e=>{vf(e,vc.setFilterApplyPanelButton(t,e.textContent))}),e.querySelectorAll(".ag-filter-condition .ag-radio-button").forEach(e=>{let i=e.querySelector(".ag-radio-button-label")?.textContent;vf(e.querySelector("input[type=radio]"),vc.filterConditionRadioButton(t,i))})}setupColumnDropArea(e,t){e.querySelectorAll(".ag-column-drop").forEach(e=>{let i=e.querySelector(".ag-column-drop-list")?.getAttribute("aria-label");vf(e,vc.columnDropArea(t,i)),e.querySelectorAll(".ag-column-drop-cell").forEach(e=>{let o=e.querySelector(".ag-column-drop-cell-text")?.textContent;vf(e.querySelector(".ag-drag-handle"),vc.columnDropCellDragHandle(t,i,o)),vf(e.querySelector(".ag-column-drop-cell-button .ag-icon-cancel"),vc.columnDropCellCancelButton(t,i,o))})})}}]};function vv({testIdAttribute:e}={}){e&&(vm=e),tW.registerModules([vC])}var vw=class extends tc{constructor(){super(...arguments),this.dispatchColumnChangedEvent=oV,this.columns=[],this.columnIndexMap={},this.updateIndexMap=()=>{this.columnIndexMap={},this.columns.forEach((e,t)=>this.columnIndexMap[e.getId()]=t)}}wireBeans(e){this.colModel=e.colModel,this.aggFuncSvc=e.aggFuncSvc,this.visibleCols=e.visibleCols,this.groupHierarchCols=e.groupHierarchyColSvc}sortColumns(e){let{groupHierarchCols:t}=this;this.columns.sort((i,o)=>t?.compareVirtualColumns(i,o)??e(i,o)),this.updateIndexMap()}setColumns(e,t){this.setColList(e,this.columns,this.eventName,!0,!0,this.columnProcessors.set,t)}addColumns(e,t){this.updateColList(e,this.columns,!0,!0,this.columnProcessors.add,this.eventName,t)}
50removeColumns(e,t){this.updateColList(e,this.columns,!1,!0,this.columnProcessors.remove,this.eventName,t)}getColumnIndex(e){return this.columnIndexMap[e]}setColList(e=[],t,i,o,r,s,n){let l=this.colModel.getCols();if(!l||0===l.length)return;let a=new Map;for(let i of(t.forEach((e,t)=>a.set(e,t)),t.length=0,e)){let e=this.colModel.getColDefCol(i);e&&t.push(e)}for(let e of(t.forEach((e,t)=>{let i=a.get(e);if(void 0===i)return void a.set(e,0);o&&i!==t||a.delete(e)}),this.updateIndexMap(),this.colModel.getColDefCols()??[])){let i=t.indexOf(e)>=0;s(e,i,n)}r&&this.colModel.refreshCols(!1,n),this.visibleCols.refresh(n),this.dispatchColumnChangedEvent(this.eventSvc,i,[...a.keys()],n)}updateColList(e=[],t,i,o,r,s,n){if(!e||0===e.length)return;let l=!1,a=new Set;for(let o of e){if(!o)continue;let e=this.colModel.getColDefCol(o);if(e){if(a.add(e),i){if(t.indexOf(e)>=0)continue;t.push(e)}else{let i=t.indexOf(e);if(i<0)continue;for(let e=i+1;e<t.length;e++)a.add(t[e]);y(t,e)}r(e,i,n),l=!0}}if(!l)return;this.updateIndexMap(),o&&this.colModel.refreshCols(!1,n),this.visibleCols.refresh(n);let d=Array.from(a);this.eventSvc.dispatchEvent({type:s,columns:d,column:1===d.length?d[0]:null,source:n})}extractCols(e,t=[]){let i=this.columns,o=[],r=[],{setFlagFunc:s,getIndexFunc:n,getInitialIndexFunc:l,getValueFunc:a,getInitialValueFunc:d}=this.columnExtractors;for(let e of this.colModel.getColDefCols()??[]){let s=!t.includes(e),h=e.getColDef(),u=a(h),c=d(h),g=n(h),p=l(h),m=void 0!==g,f=void 0!==c,C=void 0!==p;(void 0!==u?u:m?null!==g&&g>=0:s?f?c:!!C&&null!=p&&p>=0:i.indexOf(e)>=0)&&((s?null!=g||null!=p:null!=g)?o.push(e):r.push(e))}let h=e=>{let t=e.getColDef();return n(t)??l(t)};o.sort((e,t)=>h(e)-h(t));let u=[],c=this.groupHierarchCols,g=e=>{c?c.expandColumnInto(u,e):u.push(e)};for(let e of(o.forEach(g),i))r.indexOf(e)>=0&&g(e);for(let e of r)0>u.indexOf(e)&&g(e);for(let t of i)0>u.indexOf(t)&&s(t,!1,e);for(let t of u)0>i.indexOf(t)&&s(t,!0,e);return this.columns=u,this.updateIndexMap(),this.columns}restoreColumnOrder(e,t){let i=this.columns,o=this.colModel.getColDefCols();if(!i.length||!o)return e;let r=Object.keys(t),s=new Set(r),n=new Set(r),l=new Set(i.map(e=>{let t=e.getColId();return n.delete(t),t}).concat(r)),a=[],d={},h=0;for(let e=0;e<o.length;e++){let t=o[e].getColId();l.has(t)&&(a.push(t),d[t]=h++)}let u=1e3,c=!1,g=0,p=this.columnOrdering.enableProp,m=this.columnOrdering.initialEnableProp,f=this.columnOrdering.indexProp,C=this.columnOrdering.initialIndexProp,v=e=>{let i=d[e];for(let e=g;e<i;e++){let i=a[e];n.has(i)&&(t[i][f]=u++,n.delete(i))}g=i};for(let o of i){let i=o.getColId();if(s.has(i))v(i),t[i][f]=u++;else{let r=o.getColDef();if(null===r[f]||void 0===r[f]&&null==r[C]){if(!c)if(r[p]||void 0===r[p]&&r[m])v(i);else{for(let e of n)t[e][f]=u+d[e];u+=a.length,c=!0}e[i]||(e[i]={colId:i}),e[i][f]=u++}}}return e}},vb=class{wrap(e,t,i,o){let r=this.createWrapper(e,o);for(let e of t??[])this.createMethod(r,e,!0);for(let e of i??[])this.createMethod(r,e,!1);return r}createMethod(e,t,i){e.addMethod(t,this.createMethodProxy(e,t,i))}createMethodProxy(e,t,i){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(i&&tX(49,{methodName:t}),null)}}},vy=class extends lQ{constructor(e){super(e,sr)}},vS=class extends lZ{constructor(e){super(e,sr)}},vR={tag:"div",cls:"ag-content-editable-field",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-content-editable-field-input",attrs:{contenteditable:"plaintext-only"}}]},vE=class extends nn{constructor(e){super(e,vR,[],e?.className),this.eLabel=oZ,this.eWrapper=oZ,this.renderValueToElement=e?.renderValueToElement??!0,this.registerCSS(".ag-content-editable-field{align-items:center;display:flex}.ag-content-editable-field-input{background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);cursor:text;display:block;flex:1 1 auto;line-height:normal;outline:none;overflow:auto;overflow-y:hidden;padding:0 var(--ag-input-padding-start);white-space:nowrap;-ms-overflow-style:none!important;scrollbar-width:none!important}.ag-content-editable-field-input::-webkit-scrollbar{display:none!important}.ag-wrapper.ag-content-editable-field-input{line-height:var(--ag-internal-content-line-height)}.ag-content-editable-field-input:where(:focus,:focus-within){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color)}:where(.ag-content-editable-field.ag-disabled .ag-content-editable-field-input){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}.ag-content-editable-field-input:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}")}
50postConstruct(){super.postConstruct(),this.setupEditable(),this.setupAria(),this.addManagedElementListeners(this.eWrapper,{input:()=>this.syncValueFromDom(),blur:()=>this.syncValueFromDom(!0)}),this.renderValueToElement&&null!=this.value&&this.refreshDisplayedValue(this.value)}setupAria(){let e=this.getAriaElement();K(e,this.config.ariaRole??"textbox"),e.setAttribute("tabindex",this.gos.get("tabIndex").toString())}setupEditable(){let e=this.config.contentEditable??"plaintext-only";!1===e?this.eWrapper.removeAttribute("contenteditable"):!0===e?this.eWrapper.setAttribute("contenteditable","true"):this.eWrapper.setAttribute("contenteditable",e)}setValue(e,t){let i=super.setValue(e,t);return this.renderValueToElement&&!t&&this.refreshDisplayedValue(e),i}setRenderValueToElement(e){this.renderValueToElement=e}setDisplayedValue(e){this.refreshDisplayedValue(e??"")}getContentElement(){return this.eWrapper}refreshDisplayedValue(e){this.eWrapper.textContent=e??""}syncValueFromDom(e){super.setValue(this.eWrapper.textContent??"",e)}getFocusableElement(){return this.eWrapper}},vx={selector:"AG-CONTENT-EDITABLE-FIELD",component:vE},vF=class extends na{constructor(e){super(e,"ag-toggle-button"),this.registerCSS('.ag-toggle-button{flex:none;min-width:unset;width:unset}.ag-toggle-button-input-wrapper{background-color:var(--ag-toggle-button-off-background-color);border-radius:calc(var(--ag-toggle-button-height)*.5);flex:none;height:var(--ag-toggle-button-height);max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);position:relative;transition:background-color .1s;:where(.ag-toggle-button-input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-toggle-button-height);margin:0;max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);opacity:0}&.ag-checked{background-color:var(--ag-toggle-button-on-background-color)}&.ag-disabled{opacity:.5}}.ag-toggle-button-input-wrapper:before{background-color:var(--ag-toggle-button-switch-background-color);border-radius:100%;content:"";display:block;height:calc(var(--ag-toggle-button-height) - var(--ag-toggle-button-switch-inset)*2);left:var(--ag-toggle-button-switch-inset);pointer-events:none;position:absolute;top:var(--ag-toggle-button-switch-inset);transition:left .1s;width:calc(var(--ag-toggle-button-height) - var(--ag-toggle-button-switch-inset)*2)}.ag-toggle-button-input-wrapper.ag-checked:before{left:calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-switch-inset))}.ag-toggle-button-input-wrapper:focus-within{box-shadow:var(--ag-focus-shadow)}')}setValue(e,t){return super.setValue(e,t),this.toggleCss("ag-selected",this.getValue()),this}},vP={selector:"AG-TOGGLE-BUTTON",component:vF}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.