@talxis/base-controls 1.2406.16 → 1.2407.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/dist/Grid-574c3822.js +1 -0
  2. package/dist/components/DateTime/DateTime.js +1 -1
  3. package/dist/components/DateTime/components/Calendar.d.ts +8 -3
  4. package/dist/components/DateTime/components/Calendar.js +1 -0
  5. package/dist/components/DateTime/hooks/useDateTime.d.ts +29 -4
  6. package/dist/components/DateTime/hooks/useDateTime.js +1 -0
  7. package/dist/components/DateTime/index.d.ts +3 -0
  8. package/dist/components/DateTime/index.js +1 -0
  9. package/dist/components/DateTime/interfaces.d.ts +4 -25
  10. package/dist/components/DateTime/interfaces.js +1 -0
  11. package/dist/components/DateTime/styles.d.ts +1 -4
  12. package/dist/components/DateTime/styles.js +1 -0
  13. package/dist/components/DateTime/translations.d.ts +19 -3
  14. package/dist/components/DateTime/translations.js +1 -0
  15. package/dist/components/Decimal/Decimal.js +1 -1
  16. package/dist/components/Decimal/components/ArrowButtons.d.ts +10 -0
  17. package/dist/components/Decimal/components/ArrowButtons.js +1 -0
  18. package/dist/components/Decimal/components/styles.d.ts +20 -0
  19. package/dist/components/Decimal/components/styles.js +1 -0
  20. package/dist/components/Decimal/index.d.ts +2 -0
  21. package/dist/components/Decimal/index.js +1 -0
  22. package/dist/components/Decimal/interfaces.d.ts +5 -5
  23. package/dist/components/Decimal/interfaces.js +1 -0
  24. package/dist/components/Duration/Duration.js +1 -1
  25. package/dist/components/Duration/index.d.ts +2 -0
  26. package/dist/components/Duration/index.js +1 -0
  27. package/dist/components/Duration/interfaces.d.ts +6 -24
  28. package/dist/components/Duration/interfaces.js +1 -0
  29. package/dist/components/Duration/translations.d.ts +26 -2
  30. package/dist/components/Duration/translations.js +1 -0
  31. package/dist/components/Grid/Grid.d.ts +1 -3
  32. package/dist/components/Grid/Grid.js +1 -10
  33. package/dist/components/Grid/GridContext.d.ts +3 -0
  34. package/dist/components/Grid/GridContext.js +1 -0
  35. package/dist/components/Grid/constants.js +1 -0
  36. package/dist/components/Grid/core/components/AgGrid/AgGrid.js +1 -0
  37. package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/EmptyRecords.js +1 -0
  38. package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/styles.js +1 -0
  39. package/dist/components/Grid/core/components/AgGrid/components/LoadingOverlay/LoadingOverlay.js +1 -0
  40. package/dist/components/Grid/core/components/AgGrid/components/LoadingOverlay/styles.js +1 -0
  41. package/dist/components/Grid/core/components/AgGrid/controllers/useAgGridController.d.ts +1 -1
  42. package/dist/components/Grid/core/components/AgGrid/controllers/useAgGridController.js +1 -0
  43. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.d.ts +1 -1
  44. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js +1 -0
  45. package/dist/components/Grid/core/components/AgGrid/styles.d.ts +14 -4
  46. package/dist/components/Grid/core/components/AgGrid/styles.js +1 -0
  47. package/dist/components/Grid/core/components/Cell/Commands/Commands.d.ts +1 -1
  48. package/dist/components/Grid/core/components/Cell/Commands/Commands.js +1 -0
  49. package/dist/components/Grid/core/components/Cell/Commands/Icon.js +1 -0
  50. package/dist/components/Grid/core/components/Cell/Commands/styles.js +1 -0
  51. package/dist/components/Grid/core/components/Cell/Commands/useCommands.d.ts +1 -1
  52. package/dist/components/Grid/core/components/Cell/Commands/useCommands.js +1 -0
  53. package/dist/components/Grid/core/components/Cell/EditableCell/EditableCell.d.ts +1 -1
  54. package/dist/components/Grid/core/components/Cell/EditableCell/EditableCell.js +1 -0
  55. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyCell.js +1 -0
  56. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/ReadOnlyOptionSet.d.ts +1 -1
  57. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/ReadOnlyOptionSet.js +1 -0
  58. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/styles.js +1 -0
  59. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/styles.js +1 -0
  60. package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.js +1 -0
  61. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.js +1 -0
  62. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.js +1 -0
  63. package/dist/components/Grid/core/components/ColumnHeader/styles.js +1 -0
  64. package/dist/components/Grid/core/components/Component/Component.d.ts +4 -4
  65. package/dist/components/Grid/core/components/Component/Component.js +1 -0
  66. package/dist/components/Grid/core/components/Component/controller/useComponentController.d.ts +5 -5
  67. package/dist/components/Grid/core/components/Component/controller/useComponentController.js +1 -0
  68. package/dist/components/Grid/core/components/Component/model/Component.d.ts +3 -4
  69. package/dist/components/Grid/core/components/Component/model/Component.js +1 -0
  70. package/dist/components/Grid/core/components/Dialog/Constants.js +1 -0
  71. package/dist/components/Grid/core/components/Dialog/Styles.js +1 -0
  72. package/dist/components/Grid/core/components/Dialog/index.js +1 -0
  73. package/dist/components/Grid/core/components/Dialog/interfaces/index.d.ts +6 -0
  74. package/dist/components/Grid/core/components/Dialog/interfaces/index.js +1 -0
  75. package/dist/components/Grid/core/components/Save/Save.js +1 -0
  76. package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.js +1 -0
  77. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/RecordGrids/RecordGrids.js +1 -0
  78. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/RecordGrids/styles.js +1 -0
  79. package/dist/components/Grid/core/components/Save/components/ChangeEditor/styles.js +1 -0
  80. package/dist/components/Grid/core/components/Save/hooks/useSave.js +1 -0
  81. package/dist/components/Grid/core/components/Save/styles.js +1 -0
  82. package/dist/components/Grid/core/controllers/useGridController.js +1 -0
  83. package/dist/components/Grid/core/enums/ConditionOperator.js +1 -0
  84. package/dist/components/Grid/core/enums/DataType.d.ts +1 -0
  85. package/dist/components/Grid/core/enums/DataType.js +1 -0
  86. package/dist/components/Grid/core/hooks/useGridInstance.js +1 -0
  87. package/dist/components/Grid/core/hooks/useRefreshCallback.js +1 -0
  88. package/dist/components/Grid/core/hooks/useRerender.js +1 -0
  89. package/dist/components/Grid/core/interfaces/IGridColumn.js +1 -0
  90. package/dist/components/Grid/core/interfaces/IGridContext.js +1 -0
  91. package/dist/components/Grid/core/model/Grid.d.ts +5 -6
  92. package/dist/components/Grid/core/model/Grid.js +1 -0
  93. package/dist/components/Grid/core/model/GridDependency.d.ts +3 -3
  94. package/dist/components/Grid/core/model/GridDependency.js +1 -0
  95. package/dist/components/Grid/core/model/Metadata.d.ts +1 -1
  96. package/dist/components/Grid/core/model/Metadata.js +1 -0
  97. package/dist/components/Grid/core/services/RecordUpdateService/controllers/useRecordUpdateServiceController.js +1 -0
  98. package/dist/components/Grid/core/services/RecordUpdateService/model/RecordUpdateService.js +1 -0
  99. package/dist/components/Grid/filtering/components/FilterCallout/FilterCallout.js +1 -0
  100. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionOperator/ConditionOperator.js +1 -0
  101. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.js +1 -0
  102. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.js +1 -0
  103. package/dist/components/Grid/filtering/components/FilterCallout/styles.js +1 -0
  104. package/dist/components/Grid/filtering/constants.js +1 -0
  105. package/dist/components/Grid/filtering/controller/useColumnFilterConditionController.js +1 -0
  106. package/dist/components/Grid/filtering/model/Condition.d.ts +1 -1
  107. package/dist/components/Grid/filtering/model/Condition.js +1 -0
  108. package/dist/components/Grid/filtering/model/Filtering.js +1 -0
  109. package/dist/components/Grid/filtering/utils/FilteringUtilts.js +1 -0
  110. package/dist/components/Grid/index.d.ts +2 -0
  111. package/dist/components/Grid/index.js +1 -0
  112. package/dist/components/Grid/interfaces.d.ts +6 -233
  113. package/dist/components/Grid/interfaces.js +1 -0
  114. package/dist/components/Grid/paging/components/Paging/Paging.js +1 -0
  115. package/dist/components/Grid/paging/components/Paging/styles.js +1 -0
  116. package/dist/components/Grid/paging/controllers/usePagingController.js +1 -0
  117. package/dist/components/Grid/paging/model/Paging.js +1 -0
  118. package/dist/components/Grid/selection/controllers/useSelectionController.js +1 -0
  119. package/dist/components/Grid/selection/model/Selection.d.ts +1 -1
  120. package/dist/components/Grid/selection/model/Selection.js +1 -0
  121. package/dist/components/Grid/sorting/Sorting.d.ts +1 -1
  122. package/dist/components/Grid/sorting/Sorting.js +1 -0
  123. package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js +1 -0
  124. package/dist/components/Grid/sorting/components/SortingContextualMenu/styles.js +1 -0
  125. package/dist/components/Grid/sorting/controllers/useColumnSortingController.d.ts +1 -1
  126. package/dist/components/Grid/sorting/controllers/useColumnSortingController.js +1 -0
  127. package/dist/components/Grid/translations.d.ts +306 -2
  128. package/dist/components/Grid/translations.js +1 -0
  129. package/dist/components/Grid/validation/controllers/useRecordValidationController.d.ts +1 -1
  130. package/dist/components/Grid/validation/controllers/useRecordValidationController.js +1 -0
  131. package/dist/components/Grid/validation/model/ColumnValidation.js +1 -0
  132. package/dist/components/Lookup/Lookup.js +1 -1
  133. package/dist/components/Lookup/components/RecordCreator.js +1 -0
  134. package/dist/components/Lookup/components/TargetSelector.d.ts +2 -3
  135. package/dist/components/Lookup/components/TargetSelector.js +1 -0
  136. package/dist/components/Lookup/hooks/useFetchXml.d.ts +1 -1
  137. package/dist/components/Lookup/hooks/useFetchXml.js +1 -0
  138. package/dist/components/Lookup/hooks/useLoadedEntities.js +1 -0
  139. package/dist/components/Lookup/hooks/useLookup.d.ts +35 -5
  140. package/dist/components/Lookup/hooks/useLookup.js +1 -0
  141. package/dist/components/Lookup/index.d.ts +3 -0
  142. package/dist/components/Lookup/index.js +1 -0
  143. package/dist/components/Lookup/interfaces.d.ts +5 -23
  144. package/dist/components/Lookup/interfaces.js +1 -0
  145. package/dist/components/Lookup/styles.d.ts +8 -15
  146. package/dist/components/Lookup/styles.js +1 -0
  147. package/dist/components/Lookup/translations.d.ts +30 -2
  148. package/dist/components/Lookup/translations.js +1 -0
  149. package/dist/components/MultiSelectOptionSet/MultiSelectOptionSet.js +1 -1
  150. package/dist/components/MultiSelectOptionSet/index.d.ts +2 -0
  151. package/dist/components/MultiSelectOptionSet/index.js +1 -0
  152. package/dist/components/MultiSelectOptionSet/interfaces.d.ts +5 -4
  153. package/dist/components/MultiSelectOptionSet/interfaces.js +1 -0
  154. package/dist/components/OptionSet/OptionSet.js +1 -1
  155. package/dist/components/OptionSet/index.d.ts +2 -0
  156. package/dist/components/OptionSet/index.js +1 -0
  157. package/dist/components/OptionSet/interfaces.d.ts +5 -6
  158. package/dist/components/OptionSet/interfaces.js +1 -0
  159. package/dist/components/TextField/TextField.js +1 -1
  160. package/dist/components/TextField/index.d.ts +2 -0
  161. package/dist/components/TextField/index.js +1 -0
  162. package/dist/components/TextField/interfaces.d.ts +4 -5
  163. package/dist/components/TextField/interfaces.js +1 -0
  164. package/dist/components/TwoOptions/TwoOptions.js +1 -1
  165. package/dist/components/TwoOptions/index.js +1 -0
  166. package/dist/components/TwoOptions/interfaces.d.ts +3 -4
  167. package/dist/components/TwoOptions/interfaces.js +1 -0
  168. package/dist/constants.js +1 -0
  169. package/dist/hooks/index.d.ts +6 -1
  170. package/dist/hooks/index.js +1 -1
  171. package/dist/hooks/useControl.d.ts +23 -0
  172. package/dist/hooks/useControl.js +1 -0
  173. package/dist/hooks/useControlSizing.d.ts +5 -0
  174. package/dist/hooks/useControlSizing.js +1 -0
  175. package/dist/hooks/useControlTheme.d.ts +3 -0
  176. package/dist/hooks/useControlTheme.js +1 -0
  177. package/dist/hooks/useFocusIn.d.ts +1 -1
  178. package/dist/hooks/useFocusIn.js +1 -1
  179. package/dist/hooks/{useInputBasedComponent.d.ts → useInputBasedControl.d.ts} +6 -6
  180. package/dist/hooks/useInputBasedControl.js +1 -0
  181. package/dist/index.d.ts +793 -14
  182. package/dist/index.js +1 -0
  183. package/dist/interfaces/context.d.ts +9 -7
  184. package/dist/interfaces/context.js +1 -0
  185. package/dist/interfaces/index.js +1 -0
  186. package/dist/interfaces/parameters.d.ts +6 -2
  187. package/dist/interfaces/parameters.js +1 -0
  188. package/dist/interfaces/property.d.ts +1 -1
  189. package/dist/interfaces/property.js +1 -0
  190. package/dist/interfaces/theme.d.ts +6 -0
  191. package/dist/interfaces/theme.js +1 -0
  192. package/dist/utils/Numeral.d.ts +1 -1
  193. package/dist/{Numeral-a0284afb.js → utils/Numeral.js} +1 -1
  194. package/dist/utils/Theme.d.ts +4 -0
  195. package/dist/utils/Theme.js +1 -0
  196. package/dist/utils/index.d.ts +2 -0
  197. package/dist/utils/index.js +1 -0
  198. package/package.json +25 -26
  199. package/dist/Lookup-4b87c562.js +0 -1
  200. package/dist/components/Lookup/lib.d.ts +0 -1164
  201. package/dist/components/TextField/hooks/useTextField.d.ts +0 -1
  202. package/dist/hooks/useComponent.d.ts +0 -15
  203. package/dist/hooks/useComponent.js +0 -1
  204. package/dist/hooks/useComponentSizing.d.ts +0 -5
  205. package/dist/hooks/useComponentSizing.js +0 -1
  206. package/dist/hooks/useInputBasedComponent.js +0 -1
  207. package/dist/types/index.d.ts +0 -3
@@ -1,10 +1 @@
1
- import{jsx as e,Fragment as t,jsxs as n}from"react/jsx-runtime";import*as i from"react";import o,{createContext as r,memo as a,forwardRef as s,useContext as l,useRef as d,useState as c,useImperativeHandle as g,useLayoutEffect as u,useCallback as h,useMemo as p,useEffect as m,createElement as v,Component as f}from"react";import{useComponent as C}from"../../hooks/useComponent.js";import{_ as w,L as y}from"../../Lookup-4b87c562.js";import b from"validator/lib/isEmail";import E from"validator/lib/isURL";import S from"dayjs";import D from"fast-deep-equal/es6";import T from"numeral";import{N as R}from"../../Numeral-a0284afb.js";import A,{createPortal as x}from"react-dom";import{renderToStaticMarkup as M}from"react-dom/server";import{mergeStyleSets as N,keyframes as P,useTheme as I,TooltipHost as L,Icon as F,Checkbox as _,Image as O,Callout as k,IconButton as G,PrimaryButton as z,Button as V,ContextualMenuItemType as H,ContextualMenu as B,CommandBarButton as W,Label as U,DialogFooter as j,Spinner as K,SpinnerSize as Y,MessageBar as $,MessageBarType as Q}from"@fluentui/react";import{DateTime as q}from"../DateTime/DateTime.js";import{Decimal as X}from"../Decimal/Decimal.js";import{MultiSelectOptionSet as Z}from"../MultiSelectOptionSet/MultiSelectOptionSet.js";import{OptionSet as J}from"../OptionSet/OptionSet.js";import{TextField as ee}from"../TextField/TextField.js";import{TwoOptions as te}from"../TwoOptions/TwoOptions.js";import{Duration as ne}from"../Duration/Duration.js";import{Link as ie}from"@fluentui/react/lib/components/Link/Link";import{Text as oe}from"@fluentui/react/lib/Text";import"external-svg-loader";import{CommandBar as re}from"@talxis/react-components/dist/components/CommandBar";import{FileAttribute as ae}from"@talxis/client-libraries";import se from"color";import{ComboBox as le}from"@talxis/react-components/dist/components/ComboBox";import{useDebounce as de}from"use-debounce";import{useStateValues as ce}from"@talxis/react-components/dist/hooks";import{CommandBar as ge}from"@fluentui/react/lib/components/CommandBar/CommandBar";import{Dialog as ue}from"@fluentui/react/lib/Dialog";import{getTheme as he,mergeStyles as pe}from"@fluentui/react/lib/Styling";import{Icon as me}from"@fluentui/react/lib/components/Icon/Icon";import"merge-anything";import"liquidjs";import"../../hooks/useComponentSizing.js";import"@talxis/react-components/dist/components/TagPicker";import"../../hooks/useMouseOver.js";import"@fluentui/react/lib/components/Button/CommandBarButton/CommandBarButton";import"../../hooks/useFocusIn.js";import"../../hooks/useInputBasedComponent.js";import"dayjs/plugin/utc";import"dayjs/plugin/customParseFormat";import"@fluentui/react/lib/utilities/ThemeProvider/useTheme";import"@fluentui/react/lib/Calendar";import"@talxis/react-components/dist/components/TimePicker";import"@talxis/react-components/dist/components/DatePicker";import"@talxis/react-components/dist/components/TextField";const ve="_talxis_gridRibbonButtons";class GridDependency{constructor(e){this._refreshCallbacks=new Map,this._grid=e}addRefreshCallback(e,t){this._refreshCallbacks.set(e,t)}removeRefreshCallback(e){this._refreshCallbacks.delete(e)}onDependenciesUpdated(){}_triggerRefreshCallbacks(){for(const e of this._refreshCallbacks.values())e()}get _dataset(){return this._grid.dataset}get _pcfContext(){return this._grid.pcfContext}}var fe,Ce;!function(e){e[e.None=-1]="None",e[e.Equal=0]="Equal",e[e.NotEqual=1]="NotEqual",e[e.GreaterThan=2]="GreaterThan",e[e.LessThan=3]="LessThan",e[e.GreaterEqual=4]="GreaterEqual",e[e.LessEqual=5]="LessEqual",e[e.Like=6]="Like",e[e.NotLike=7]="NotLike",e[e.In=8]="In",e[e.NotIn=9]="NotIn",e[e.Null=12]="Null",e[e.NotNull=13]="NotNull",e[e.Yesterday=14]="Yesterday",e[e.Today=15]="Today",e[e.Tomorrow=16]="Tomorrow",e[e.Last7Days=17]="Last7Days",e[e.Next7Days=18]="Next7Days",e[e.LastWeek=19]="LastWeek",e[e.ThisWeek=20]="ThisWeek",e[e.LastMonth=22]="LastMonth",e[e.ThisMonth=23]="ThisMonth",e[e.On=25]="On",e[e.OnOrBefore=26]="OnOrBefore",e[e.OnOrAfter=27]="OnOrAfter",e[e.LastYear=28]="LastYear",e[e.ThisYear=29]="ThisYear",e[e.LastXDays=33]="LastXDays",e[e.NextXDays=34]="NextXDays",e[e.LastXMonths=37]="LastXMonths",e[e.NextXMonths=38]="NextXMonths",e[e.Contains=49]="Contains",e[e.BeginWith=54]="BeginWith",e[e.DoesNotBeginWith=55]="DoesNotBeginWith",e[e.EndsWith=56]="EndsWith",e[e.DoesNotEndWith=57]="DoesNotEndWith",e[e.InFiscalPeriodAndYear=70]="InFiscalPeriodAndYear",e[e.Above=75]="Above",e[e.Under=76]="Under",e[e.NotUnder=77]="NotUnder",e[e.AboveOrEqual=78]="AboveOrEqual",e[e.UnderOrEqual=79]="UnderOrEqual",e[e.ContainValues=87]="ContainValues",e[e.DoesNotContainValues=88]="DoesNotContainValues"}(fe||(fe={})),function(e){e.SINGLE_LINE_TEXT="SingleLine.Text",e.SINGLE_LINE_TEXT_AREA="SingleLine.TextArea",e.SINGLE_LINE_EMAIL="SingleLine.Email",e.SINGLE_LINE_PHONE="SingleLine.Phone",e.SINGLE_LINE_URL="SingleLine.URL",e.MULTIPLE="Multiple",e.WHOLE_NONE="Whole.None",e.DECIMAL="Decimal",e.FP="FP",e.DATE_AND_TIME_DATE_AND_TIME="DateAndTime.DateAndTime",e.DATE_AND_TIME_DATE_ONLY="DateAndTime.DateOnly",e.CURRENCY="Currency",e.OPTIONSET="OptionSet",e.MULTI_SELECT_OPTIONSET="MultiSelectPicklist",e.TWO_OPTIONS="TwoOptions",e.LOOKUP_SIMPLE="Lookup.Simple",e.LOOKUP_OWNER="Lookup.Owner",e.WHOLE_LANGUAGE="Whole.Language",e.WHOLE_DURATION="Whole.Duration",e.WHOLE_TIMEZONE="Whole.TimeZone",e.FILE="File",e.IMAGE="Image"}(Ce||(Ce={}));class ColumnValidation extends GridDependency{constructor(e,t,n){super(e),this._column=t,this._forceNullCheck=null!=n&&n}validate(e){const t=this._isNull(e);if(this._column.isRequired||this._forceNullCheck){if(t)return[!1,this._labels["validation-input-value"]()]}else if(t)return[!0,""];switch(this._column.dataType){case Ce.WHOLE_NONE:case Ce.DECIMAL:case Ce.CURRENCY:case Ce.WHOLE_DURATION:if("string"==typeof e)return[!1,this._labels["validation-number"]()];break;case Ce.SINGLE_LINE_EMAIL:if(!b(e=`${e}`))return[!1,this._labels["validation-email"]()];break;case Ce.SINGLE_LINE_URL:if(!E(e=`${e}`))return[!1,this._labels["validation-url"]()];break;case Ce.DATE_AND_TIME_DATE_AND_TIME:case Ce.DATE_AND_TIME_DATE_ONLY:if(!S(e).isValid())return[!1,this._labels["validation-date"]()];break;default:if(!e)return[!1,this._labels["validation-input-value"]()]}return[!0,""]}_isNull(e){return void 0===e||(null===e||(""===e||(0===(null==e?void 0:e.length)||void 0)))}get _labels(){return this._grid.labels}}const we=[{type:fe.None,key:"condition-none"},{type:fe.Equal,key:"condition-equal"},{type:fe.NotEqual,key:"condition-notequal"},{type:fe.GreaterThan,key:"condition-greaterthan"},{type:fe.LessThan,key:"condition-lessthan"},{type:fe.GreaterEqual,key:"condition-greaterequal"},{type:fe.LessEqual,key:"condition-lessequal"},{type:fe.Like,key:"condition-like"},{type:fe.NotLike,key:"condition-notlike"},{type:fe.In,key:"condition-in"},{type:fe.NotIn,key:"condition-notin"},{type:fe.Null,key:"condition-null"},{type:fe.NotNull,key:"condition-notnull"},{type:fe.Yesterday,key:"condition-yesterday"},{type:fe.Today,key:"condition-today"},{type:fe.Tomorrow,key:"condition-tomorrow"},{type:fe.Last7Days,key:"condition-last7days"},{type:fe.Next7Days,key:"condition-next7days"},{type:fe.LastWeek,key:"condition-lastweek"},{type:fe.ThisWeek,key:"condition-thisweek"},{type:fe.LastMonth,key:"condition-lastmonth"},{type:fe.ThisMonth,key:"condition-thismonth"},{type:fe.On,key:"condition-on"},{type:fe.OnOrBefore,key:"condition-onorbefore"},{type:fe.OnOrAfter,key:"condition-onorafter"},{type:fe.LastYear,key:"condition-lastyear"},{type:fe.ThisYear,key:"condition-thisyear"},{type:fe.LastXDays,key:"condition-lastxdays"},{type:fe.NextXDays,key:"condition-nextxdays"},{type:fe.LastXMonths,key:"condition-lastxmonths"},{type:fe.NextXMonths,key:"condition-nextxmonths"},{type:fe.Contains,key:"condition-contains"},{type:fe.BeginWith,key:"condition-beginwith"},{type:fe.DoesNotBeginWith,key:"condition-doesnotbeginwith"},{type:fe.EndsWith,key:"condition-endswith"},{type:fe.DoesNotEndWith,key:"condition-doesnotendwith"},{type:fe.InFiscalPeriodAndYear,key:"condition-infiscalperiodandyear"},{type:fe.Above,key:"condition-above"},{type:fe.Under,key:"condition-under"},{type:fe.NotUnder,key:"condition-notunder"},{type:fe.AboveOrEqual,key:"condition-aboveorequal"},{type:fe.UnderOrEqual,key:"condition-underorequal"},{type:fe.ContainValues,key:"condition-containvalues"},{type:fe.DoesNotContainValues,key:"condition-doesnotcontainvalues"}];class FilteringUtils{static condition(){return{operator:e=>({textFieldOperators:we.filter((e=>{switch(e.type){case fe.Equal:case fe.NotEqual:case fe.Like:case fe.NotLike:case fe.BeginWith:case fe.DoesNotBeginWith:case fe.EndsWith:case fe.DoesNotEndWith:case fe.NotNull:case fe.Null:return!0;default:return!1}})),numberOperators:we.filter((e=>{switch(e.type){case fe.Equal:case fe.NotEqual:case fe.GreaterThan:case fe.GreaterEqual:case fe.LessThan:case fe.LessEqual:case fe.NotNull:case fe.Null:return!0;default:return!1}})),dateOperators:we.filter((e=>{switch(e.type){case fe.On:case fe.OnOrAfter:case fe.OnOrBefore:case fe.Today:case fe.Yesterday:case fe.Tomorrow:case fe.ThisWeek:case fe.ThisMonth:case fe.ThisYear:case fe.Next7Days:case fe.NextXDays:case fe.NextXMonths:case fe.LastWeek:case fe.Last7Days:case fe.LastMonth:case fe.LastYear:case fe.LastXDays:case fe.LastXMonths:case fe.NotNull:case fe.Null:return!0;default:return!1}})),multipleOptionSetOperators:we.filter((e=>{switch(e.type){case fe.Equal:case fe.NotEqual:case fe.ContainValues:case fe.DoesNotContainValues:case fe.Null:case fe.NotNull:return!0;default:return!1}})),fileOperators:we.filter((e=>{switch(e.type){case fe.Null:case fe.NotNull:return!0;default:return!1}})),allowsOnlyFreeText:(()=>{switch(e){case fe.BeginWith:case fe.DoesNotBeginWith:case fe.EndsWith:case fe.DoesNotEndWith:case fe.Like:case fe.NotLike:return!0}return!1})(),allowsOnlyNumber:(()=>{switch(e){case fe.LastXDays:case fe.LastXMonths:case fe.NextXMonths:case fe.NextXDays:return!0}return!1})(),doesNotAllowValue:(()=>{switch(e){case fe.Null:case fe.NotNull:case fe.Today:case fe.Yesterday:case fe.Tomorrow:case fe.ThisWeek:case fe.ThisMonth:case fe.ThisYear:case fe.LastWeek:case fe.Last7Days:case fe.LastMonth:case fe.LastYear:case fe.Next7Days:return!0;default:return!1}})()}),value:e=>({isEditable:(()=>{switch(e){case fe.Null:case fe.NotNull:case fe.Today:case fe.Yesterday:case fe.Tomorrow:case fe.ThisMonth:case fe.ThisWeek:case fe.InFiscalPeriodAndYear:case fe.Next7Days:case fe.LastWeek:case fe.Last7Days:case fe.LastMonth:case fe.LastYear:return!1}return!0})(),isManuallyEditable:(()=>{switch(e){case fe.Like:case fe.NotLike:case fe.BeginWith:case fe.DoesNotBeginWith:case fe.EndsWith:case fe.DoesNotEndWith:case fe.LastXDays:case fe.LastXMonths:case fe.NextXMonths:case fe.NextXDays:return!0}return!1})()})}}}class Condition extends GridDependency{constructor(e,t){switch(super(e),this._isAppliedToDataset=!1,this._conditionExpression={},this._conditionUtils=FilteringUtils.condition(),this._isValid=!0,this._initialized=!1,this._column=Object.assign({},t),this._column.dataType){case Ce.SINGLE_LINE_EMAIL:case Ce.SINGLE_LINE_URL:this._column.dataType=Ce.SINGLE_LINE_TEXT}return new Proxy(this,{get:(e,t)=>{if("init"!==t&&!e._initialized)throw new Error("Condition has not been initialized. Make sure to call the init() method on the condition object before any operations.");return"function"==typeof e[t]?e[t].bind(e):e[t]}})}init(){return w(this,void 0,void 0,(function*(){return this._inicializationPromise||(this._inicializationPromise=new Promise((e=>w(this,void 0,void 0,(function*(){const[t,n]=yield this._getConditionFromFilterExpression();n?(this._isAppliedToDataset=!0,this._conditionExpression=t.get(n)):this._conditionExpression=this._getDefault(),this._conditionExpression.conditionOperator=this._operatorDecorator(this._conditionExpression.conditionOperator,this._conditionExpression.value,!0),this._conditionExpression.value=this._valueDecorator(this._conditionExpression.conditionOperator,this._conditionExpression.value,!0),this._conditionExpression.attributeName=yield this._attributeNameDecorator(this._conditionExpression.conditionOperator,this._conditionExpression.attributeName,!0),e(!0),this._initialized=!0}))))),this._inicializationPromise}))}get isRemoved(){return this._isRemoved}get column(){return this._column}get isAppliedToDataset(){return this._isAppliedToDataset}get isValid(){return this._isValid}getExpression(){return w(this,void 0,void 0,(function*(){const e=Object.assign({},this._conditionExpression);return e.conditionOperator=this._operatorDecorator(this._conditionExpression.conditionOperator,this._conditionExpression.value),e.value=this._valueDecorator(this._conditionExpression.conditionOperator,this._conditionExpression.value),e.attributeName=yield this._attributeNameDecorator(this._conditionExpression.conditionOperator,this._conditionExpression.attributeName),e}))}save(){return w(this,void 0,void 0,(function*(){if(!(yield this.value.isValid()))return this._isValid=!1,this._triggerRefreshCallbacks(),!1;const e=this._filterExpression;if(this._isAppliedToDataset||this._isRemoved){const[t,n]=yield this._getConditionFromFilterExpression();t.delete(n),e.conditions=[...t.values()]}return this._isRemoved||e.conditions.push(yield this.getExpression()),this._dataset.filtering.setFilter(e),!0}))}remove(){this._isRemoved=!0}clear(){this._inicializationPromise=void 0}get operator(){return{get:()=>this._get("operator"),set:e=>{const t=this._conditionExpression.conditionOperator;this._set("operator",e,null);if(this._conditionUtils.value(e).isManuallyEditable!==this._conditionUtils.value(t).isManuallyEditable)switch(this._column.dataType){case Ce.MULTI_SELECT_OPTIONSET:case Ce.OPTIONSET:case Ce.TWO_OPTIONS:case Ce.LOOKUP_SIMPLE:case Ce.LOOKUP_OWNER:case Ce.DATE_AND_TIME_DATE_AND_TIME:case Ce.DATE_AND_TIME_DATE_ONLY:this._conditionExpression.value=""}}}}get value(){return{get:()=>this._get("value"),set:e=>this._set("value",void 0,e),isValid:()=>w(this,void 0,void 0,(function*(){if(this._conditionUtils.operator(this.operator.get()).doesNotAllowValue)return!0;const[e,t]=yield new ColumnValidation(this._grid,this._column,!0).validate(yield this.value.get());return e}))}}_get(e){return"operator"===e?this._conditionExpression.conditionOperator:this._conditionExpression.value}_set(e,t,n){this._isValid=!0,"operator"===e?this._conditionExpression.conditionOperator=t:this._conditionExpression.value=n,this._triggerRefreshCallbacks()}_attributeNameDecorator(e,t,n){return w(this,void 0,void 0,(function*(){if(!this._conditionUtils.value(e).isManuallyEditable)return t;switch(this._column.dataType){case Ce.OPTIONSET:case Ce.TWO_OPTIONS:case Ce.LOOKUP_OWNER:case Ce.LOOKUP_SIMPLE:return n?t.endsWith("name")?t.slice(0,-4):t:t.endsWith("name")?t:`${t}name`;default:return t}}))}_valueDecorator(e,t,n){switch(e){case fe.BeginWith:case fe.DoesNotBeginWith:return n?t.slice(0,-1):`${t}%`;case fe.EndsWith:case fe.DoesNotEndWith:return n?t.slice(1):`%${t}`;case fe.Like:case fe.NotLike:return n?t.slice(1,-1):`%${t}%`;default:return t}}_operatorDecorator(e,t,n){switch(this._column.dataType){case Ce.MULTI_SELECT_OPTIONSET:case Ce.OPTIONSET:case Ce.TWO_OPTIONS:case Ce.LOOKUP_OWNER:case Ce.LOOKUP_SIMPLE:if("string"!=typeof t){if(n)switch(e){case fe.In:return fe.Equal;case fe.NotIn:return fe.NotEqual}switch(e){case fe.Equal:return fe.In;case fe.NotEqual:return fe.NotIn}}else switch(e){case fe.In:return fe.Equal;case fe.NotIn:return fe.NotEqual}}return e}_getDefault(){const e={attributeName:this._column.attributeName,conditionOperator:fe.Equal,entityAliasName:this._column.entityAliasName,value:""};switch(this._column.dataType){case Ce.DATE_AND_TIME_DATE_AND_TIME:case Ce.DATE_AND_TIME_DATE_ONLY:e.conditionOperator=fe.On;break;case Ce.IMAGE:case Ce.FILE:e.conditionOperator=fe.NotNull}return e}get _filterExpression(){var e;return null!==(e=structuredClone(this._dataset.filtering.getFilter()))&&void 0!==e?e:{conditions:[],filterOperator:0}}_getConditionFromFilterExpression(){return w(this,void 0,void 0,(function*(){const e=new Map(this._filterExpression.conditions.map((e=>[e.attributeName,e])));for(const t of e.values()){if((yield this._attributeNameDecorator(t.conditionOperator,t.attributeName,!0))===this._column.attributeName)return[e,t.attributeName]}return[e,""]}))}}class Filtering extends GridDependency{constructor(){super(...arguments),this._conditions=new Map}save(){return w(this,void 0,void 0,(function*(){const e=this._filterExpression;for(const t of this._conditions.values()){if(!t.value.isValid())return!1;const n=yield t.getExpression();(t.isAppliedToDataset||t.isRemoved)&&(e.conditions=this._filterExpression.conditions.filter((e=>this._getColumnKeyFromCondition(e)!==t.column.key))),t.isRemoved||e.conditions.push(n)}return this.clear(),this._dataset.filtering.setFilter(e),this._dataset.refresh(),!0}))}clear(){this._conditions.clear()}condition(e){return w(this,void 0,void 0,(function*(){const t=e.key;this._conditions.get(t)||this._conditions.set(t,new Condition(this._grid,e));const n=new Proxy(this._conditions.get(t),{get:(e,t)=>"save"===t?()=>w(this,void 0,void 0,(function*(){const t=yield e.save();return t&&(this._conditions.delete(e.column.key),this._dataset.refresh()),t})):("clear"===t&&this._conditions.delete(e.column.key),"function"==typeof e[t]?e[t].bind(e):e[t])});return yield n.init(),n}))}get _filterExpression(){var e;return null!==(e=structuredClone(this._grid.dataset.filtering.getFilter()))&&void 0!==e?e:{conditions:[],filterOperator:0}}_getColumnKeyFromCondition(e){return e.entityAliasName?`${e.entityAliasName}.${e.attributeName}`:e.attributeName}}class Paging$1 extends GridDependency{get pageNumber(){return this._dataset.paging.pageNumber}get pageSize(){return this._dataset.paging.pageSize}get totalResultCount(){return this._dataset.paging.totalResultCount}get hasPreviousPage(){return this._dataset.paging.hasPreviousPage}get hasNextPage(){return this._dataset.paging.hasNextPage}get pageFirstRecordOrder(){return(this.pageNumber-1)*this.pageSize+(0===this.totalResultCount?0:1)}get pageLastRecordOrder(){const e=this.pageNumber*this.pageSize;return e>this.totalResultCount?this.totalResultCount:e}get isEnabled(){var e;return!1!==(null===(e=this._grid.parameters.EnablePagination)||void 0===e?void 0:e.raw)}loadNextPage(){this.loadExactPage(this.pageNumber+1)}loadPreviousPage(){this.loadExactPage(this.pageNumber-1)}loadExactPage(e){this._dataset.paging.loadExactPage(e)}setPageSize(e){var t;this._dataset.paging.setPageSize(e),this._dataset.refresh(),(null===(t=window.TALXIS)||void 0===t?void 0:t.Portal)||this._dataset.refresh()}reset(){this._dataset.paging.reset()}}class Selection extends GridDependency{constructor(){super(...arguments),this._selectedRecordIdsSet=new Set,this.debounceTimer=null}toggle(e,t,n,i){const o=e.getRecordId();this.debounceTimer||(this._selectedRecordIdsSet=new Set(this.selectedRecordIds)),n&&this._selectedRecordIdsSet.clear(),!1===t?this._selectedRecordIdsSet.delete(o):("single"===this.type&&this._selectedRecordIdsSet.clear(),this._selectedRecordIdsSet.add(o)),null!==this.debounceTimer&&clearTimeout(this.debounceTimer),i?this._setSelectedRecords():this.debounceTimer=setTimeout((()=>{this._setSelectedRecords()}),0)}get selectedRecordIds(){return this._dataset.getSelectedRecordIds()}get allRecordsSelected(){return this.selectedRecordIds.length===this._dataset.sortedRecordIds.length}get type(){var e,t;switch(null===(e=this._grid.props.parameters.SelectableRows)||void 0===e?void 0:e.raw){case void 0:case null:return"multiple";case"none":return;default:return null===(t=this._grid.props.parameters.SelectableRows)||void 0===t?void 0:t.raw}}clear(){this._grid.dataset.setSelectedRecordIds([])}selectAll(){this._grid.dataset.setSelectedRecordIds(this._dataset.sortedRecordIds)}_setSelectedRecords(){this._grid.dataset.setSelectedRecordIds([...this._selectedRecordIdsSet.values()]),this.debounceTimer=null,this._selectedRecordIdsSet=new Set}}class Sorting extends GridDependency{get(e){return{value:this._dataset.sorting.find((t=>t.name===e.key)),sort:t=>{var n;const i=new Map(this._dataset.sorting.map((e=>[e.name,e])));for((null===(n=window.TALXIS)||void 0===n?void 0:n.Portal)&&i.clear(),i.set(e.key,{name:e.key,sortDirection:t});this._dataset.sorting.length;)this._dataset.sorting.pop();for(const e of i.values())this._dataset.sorting.push(e);this._dataset.refresh()}}}}var ye,be,Ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Se={exports:{}};
2
- /**
3
- * @license
4
- * Lodash <https://lodash.com/>
5
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
6
- * Released under MIT license <https://lodash.com/license>
7
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
8
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
9
- */
10
- ye=Se,be=Se.exports,function(){var e,t="Expected a function",n="__lodash_hash_undefined__",i="__lodash_placeholder__",o=16,r=32,a=64,s=128,l=256,d=1/0,c=9007199254740991,g=NaN,u=4294967295,h=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",r],["partialRight",a],["rearg",l]],p="[object Arguments]",m="[object Array]",v="[object Boolean]",f="[object Date]",C="[object Error]",w="[object Function]",y="[object GeneratorFunction]",b="[object Map]",E="[object Number]",S="[object Object]",D="[object Promise]",T="[object RegExp]",R="[object Set]",A="[object String]",x="[object Symbol]",M="[object WeakMap]",N="[object ArrayBuffer]",P="[object DataView]",I="[object Float32Array]",L="[object Float64Array]",F="[object Int8Array]",_="[object Int16Array]",O="[object Int32Array]",k="[object Uint8Array]",G="[object Uint8ClampedArray]",z="[object Uint16Array]",V="[object Uint32Array]",H=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U=/&(?:amp|lt|gt|quot|#39);/g,j=/[&<>"']/g,K=RegExp(U.source),Y=RegExp(j.source),$=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ee=/[\\^$.*+?()[\]{}|]/g,te=RegExp(ee.source),ne=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,re=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,se=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,ue=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,pe=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,fe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ce=/($^)/,we=/['\n\r\u2028\u2029\\]/g,Se="\\ud800-\\udfff",De="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Te="\\u2700-\\u27bf",Re="a-z\\xdf-\\xf6\\xf8-\\xff",Ae="A-Z\\xc0-\\xd6\\xd8-\\xde",xe="\\ufe0e\\ufe0f",Me="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ne="['’]",Pe="["+Se+"]",Ie="["+Me+"]",Le="["+De+"]",Fe="\\d+",_e="["+Te+"]",Oe="["+Re+"]",ke="[^"+Se+Me+Fe+Te+Re+Ae+"]",Ge="\\ud83c[\\udffb-\\udfff]",ze="[^"+Se+"]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",He="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+Ae+"]",We="\\u200d",Ue="(?:"+Oe+"|"+ke+")",je="(?:"+Be+"|"+ke+")",Ke="(?:['’](?:d|ll|m|re|s|t|ve))?",Ye="(?:['’](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+Le+"|"+Ge+")?",Qe="["+xe+"]?",qe=Qe+$e+"(?:"+We+"(?:"+[ze,Ve,He].join("|")+")"+Qe+$e+")*",Xe="(?:"+[_e,Ve,He].join("|")+")"+qe,Ze="(?:"+[ze+Le+"?",Le,Ve,He,Pe].join("|")+")",Je=RegExp(Ne,"g"),et=RegExp(Le,"g"),tt=RegExp(Ge+"(?="+Ge+")|"+Ze+qe,"g"),nt=RegExp([Be+"?"+Oe+"+"+Ke+"(?="+[Ie,Be,"$"].join("|")+")",je+"+"+Ye+"(?="+[Ie,Be+Ue,"$"].join("|")+")",Be+"?"+Ue+"+"+Ke,Be+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fe,Xe].join("|"),"g"),it=RegExp("["+We+Se+De+xe+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,st={};st[I]=st[L]=st[F]=st[_]=st[O]=st[k]=st[G]=st[z]=st[V]=!0,st[p]=st[m]=st[N]=st[v]=st[P]=st[f]=st[C]=st[w]=st[b]=st[E]=st[S]=st[T]=st[R]=st[A]=st[M]=!1;var lt={};lt[p]=lt[m]=lt[N]=lt[P]=lt[v]=lt[f]=lt[I]=lt[L]=lt[F]=lt[_]=lt[O]=lt[b]=lt[E]=lt[S]=lt[T]=lt[R]=lt[A]=lt[x]=lt[k]=lt[G]=lt[z]=lt[V]=!0,lt[C]=lt[w]=lt[M]=!1;var dt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,gt=parseInt,ut="object"==typeof Ee&&Ee&&Ee.Object===Object&&Ee,ht="object"==typeof self&&self&&self.Object===Object&&self,pt=ut||ht||Function("return this")(),mt=be&&!be.nodeType&&be,vt=mt&&ye&&!ye.nodeType&&ye,ft=vt&&vt.exports===mt,Ct=ft&&ut.process,wt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||Ct&&Ct.binding&&Ct.binding("util")}catch(e){}}(),yt=wt&&wt.isArrayBuffer,bt=wt&&wt.isDate,Et=wt&&wt.isMap,St=wt&&wt.isRegExp,Dt=wt&&wt.isSet,Tt=wt&&wt.isTypedArray;function Rt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function At(e,t,n,i){for(var o=-1,r=null==e?0:e.length;++o<r;){var a=e[o];t(i,a,n(a),e)}return i}function xt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function Mt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Nt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function Pt(e,t){for(var n=-1,i=null==e?0:e.length,o=0,r=[];++n<i;){var a=e[n];t(a,n,e)&&(r[o++]=a)}return r}function It(e,t){return!(null==e||!e.length)&&Bt(e,t,0)>-1}function Lt(e,t,n){for(var i=-1,o=null==e?0:e.length;++i<o;)if(n(t,e[i]))return!0;return!1}function Ft(e,t){for(var n=-1,i=null==e?0:e.length,o=Array(i);++n<i;)o[n]=t(e[n],n,e);return o}function _t(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e}function Ot(e,t,n,i){var o=-1,r=null==e?0:e.length;for(i&&r&&(n=e[++o]);++o<r;)n=t(n,e[o],o,e);return n}function kt(e,t,n,i){var o=null==e?0:e.length;for(i&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Gt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var zt=Kt("length");function Vt(e,t,n){var i;return n(e,(function(e,n,o){if(t(e,n,o))return i=n,!1})),i}function Ht(e,t,n,i){for(var o=e.length,r=n+(i?1:-1);i?r--:++r<o;)if(t(e[r],r,e))return r;return-1}function Bt(e,t,n){return t==t?function(e,t,n){for(var i=n-1,o=e.length;++i<o;)if(e[i]===t)return i;return-1}(e,t,n):Ht(e,Ut,n)}function Wt(e,t,n,i){for(var o=n-1,r=e.length;++o<r;)if(i(e[o],t))return o;return-1}function Ut(e){return e!=e}function jt(e,t){var n=null==e?0:e.length;return n?Qt(e,t)/n:g}function Kt(t){return function(n){return null==n?e:n[t]}}function Yt(t){return function(n){return null==t?e:t[n]}}function $t(e,t,n,i,o){return o(e,(function(e,o,r){n=i?(i=!1,e):t(n,e,o,r)})),n}function Qt(t,n){for(var i,o=-1,r=t.length;++o<r;){var a=n(t[o]);a!==e&&(i=i===e?a:i+a)}return i}function qt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Xt(e){return e?e.slice(0,vn(e)+1).replace(ne,""):e}function Zt(e){return function(t){return e(t)}}function Jt(e,t){return Ft(t,(function(t){return e[t]}))}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,i=e.length;++n<i&&Bt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&Bt(t,e[n],0)>-1;);return n}function on(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}var rn=Yt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),an=Yt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function sn(e){return"\\"+dt[e]}function ln(e){return it.test(e)}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function gn(e,t){for(var n=-1,o=e.length,r=0,a=[];++n<o;){var s=e[n];s!==t&&s!==i||(e[n]=i,a[r++]=n)}return a}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return ln(e)?function(e){for(var t=tt.lastIndex=0;tt.test(e);)++t;return t}(e):zt(e)}function mn(e){return ln(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function vn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var fn=Yt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),Cn=function ie(ye){var be,Ee=(ye=null==ye?pt:Cn.defaults(pt.Object(),ye,Cn.pick(pt,rt))).Array,Se=ye.Date,De=ye.Error,Te=ye.Function,Re=ye.Math,Ae=ye.Object,xe=ye.RegExp,Me=ye.String,Ne=ye.TypeError,Pe=Ee.prototype,Ie=Te.prototype,Le=Ae.prototype,Fe=ye["__core-js_shared__"],_e=Ie.toString,Oe=Le.hasOwnProperty,ke=0,Ge=(be=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||""))?"Symbol(src)_1."+be:"",ze=Le.toString,Ve=_e.call(Ae),He=pt._,Be=xe("^"+_e.call(Oe).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=ft?ye.Buffer:e,Ue=ye.Symbol,je=ye.Uint8Array,Ke=We?We.allocUnsafe:e,Ye=cn(Ae.getPrototypeOf,Ae),$e=Ae.create,Qe=Le.propertyIsEnumerable,qe=Pe.splice,Xe=Ue?Ue.isConcatSpreadable:e,Ze=Ue?Ue.iterator:e,tt=Ue?Ue.toStringTag:e,it=function(){try{var e=pr(Ae,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=ye.clearTimeout!==pt.clearTimeout&&ye.clearTimeout,ut=Se&&Se.now!==pt.Date.now&&Se.now,ht=ye.setTimeout!==pt.setTimeout&&ye.setTimeout,mt=Re.ceil,vt=Re.floor,Ct=Ae.getOwnPropertySymbols,wt=We?We.isBuffer:e,zt=ye.isFinite,Yt=Pe.join,wn=cn(Ae.keys,Ae),yn=Re.max,bn=Re.min,En=Se.now,Sn=ye.parseInt,Dn=Re.random,Tn=Pe.reverse,Rn=pr(ye,"DataView"),An=pr(ye,"Map"),xn=pr(ye,"Promise"),Mn=pr(ye,"Set"),Nn=pr(ye,"WeakMap"),Pn=pr(Ae,"create"),In=Nn&&new Nn,Ln={},Fn=Hr(Rn),_n=Hr(An),On=Hr(xn),kn=Hr(Mn),Gn=Hr(Nn),zn=Ue?Ue.prototype:e,Vn=zn?zn.valueOf:e,Hn=zn?zn.toString:e;function Bn(e){if(os(e)&&!Ya(e)&&!(e instanceof Kn)){if(e instanceof jn)return e;if(Oe.call(e,"__wrapped__"))return Br(e)}return new jn(e)}var Wn=function(){function t(){}return function(n){if(!is(n))return{};if($e)return $e(n);t.prototype=n;var i=new t;return t.prototype=e,i}}();function Un(){}function jn(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function Kn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=u,this.__views__=[]}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Qn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new $n(e);this.size=t.size}function Zn(e,t){var n=Ya(e),i=!n&&Ka(e),o=!n&&!i&&Xa(e),r=!n&&!i&&!o&&us(e),a=n||i||o||r,s=a?qt(e.length,Me):[],l=s.length;for(var d in e)!t&&!Oe.call(e,d)||a&&("length"==d||o&&("offset"==d||"parent"==d)||r&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||br(d,l))||s.push(d);return s}function Jn(t){var n=t.length;return n?t[qi(0,n-1)]:e}function ei(e,t){return Gr(Io(e),di(t,0,e.length))}function ti(e){return Gr(Io(e))}function ni(t,n,i){(i!==e&&!Wa(t[n],i)||i===e&&!(n in t))&&si(t,n,i)}function ii(t,n,i){var o=t[n];Oe.call(t,n)&&Wa(o,i)&&(i!==e||n in t)||si(t,n,i)}function oi(e,t){for(var n=e.length;n--;)if(Wa(e[n][0],t))return n;return-1}function ri(e,t,n,i){return pi(e,(function(e,o,r){t(i,e,n(e),r)})),i}function ai(e,t){return e&&Lo(t,Fs(t),e)}function si(e,t,n){"__proto__"==t&&it?it(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function li(t,n){for(var i=-1,o=n.length,r=Ee(o),a=null==t;++i<o;)r[i]=a?e:Ms(t,n[i]);return r}function di(t,n,i){return t==t&&(i!==e&&(t=t<=i?t:i),n!==e&&(t=t>=n?t:n)),t}function ci(t,n,i,o,r,a){var s,l=1&n,d=2&n,c=4&n;if(i&&(s=r?i(t,o,r,a):i(t)),s!==e)return s;if(!is(t))return t;var g=Ya(t);if(g){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Oe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return Io(t,s)}else{var u=fr(t),h=u==w||u==y;if(Xa(t))return Ro(t,l);if(u==S||u==p||h&&!r){if(s=d||h?{}:wr(t),!l)return d?function(e,t){return Lo(e,vr(e),t)}(t,function(e,t){return e&&Lo(t,_s(t),e)}(s,t)):function(e,t){return Lo(e,mr(e),t)}(t,ai(s,t))}else{if(!lt[u])return r?t:{};s=function(e,t,n){var i,o=e.constructor;switch(t){case N:return Ao(e);case v:case f:return new o(+e);case P:return function(e,t){var n=t?Ao(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case L:case F:case _:case O:case k:case G:case z:case V:return xo(e,n);case b:return new o;case E:case A:return new o(e);case T:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new o;case x:return i=e,Vn?Ae(Vn.call(i)):{}}}(t,u,l)}}a||(a=new Xn);var m=a.get(t);if(m)return m;a.set(t,s),ds(t)?t.forEach((function(e){s.add(ci(e,n,i,e,t,a))})):rs(t)&&t.forEach((function(e,o){s.set(o,ci(e,n,i,o,t,a))}));var C=g?e:(c?d?sr:ar:d?_s:Fs)(t);return xt(C||t,(function(e,o){C&&(e=t[o=e]),ii(s,o,ci(e,n,i,o,t,a))})),s}function gi(t,n,i){var o=i.length;if(null==t)return!o;for(t=Ae(t);o--;){var r=i[o],a=n[r],s=t[r];if(s===e&&!(r in t)||!a(s))return!1}return!0}function ui(n,i,o){if("function"!=typeof n)throw new Ne(t);return Fr((function(){n.apply(e,o)}),i)}function hi(e,t,n,i){var o=-1,r=It,a=!0,s=e.length,l=[],d=t.length;if(!s)return l;n&&(t=Ft(t,Zt(n))),i?(r=Lt,a=!1):t.length>=200&&(r=en,a=!1,t=new qn(t));e:for(;++o<s;){var c=e[o],g=null==n?c:n(c);if(c=i||0!==c?c:0,a&&g==g){for(var u=d;u--;)if(t[u]===g)continue e;l.push(c)}else r(t,g,i)||l.push(c)}return l}Bn.templateSettings={escape:$,evaluate:Q,interpolate:q,variable:"",imports:{_:Bn}},Bn.prototype=Un.prototype,Bn.prototype.constructor=Bn,jn.prototype=Wn(Un.prototype),jn.prototype.constructor=jn,Kn.prototype=Wn(Un.prototype),Kn.prototype.constructor=Kn,Yn.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},Yn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Yn.prototype.get=function(t){var i=this.__data__;if(Pn){var o=i[t];return o===n?e:o}return Oe.call(i,t)?i[t]:e},Yn.prototype.has=function(t){var n=this.__data__;return Pn?n[t]!==e:Oe.call(n,t)},Yn.prototype.set=function(t,i){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=Pn&&i===e?n:i,this},$n.prototype.clear=function(){this.__data__=[],this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=oi(t,e);return!(n<0||(n==t.length-1?t.pop():qe.call(t,n,1),--this.size,0))},$n.prototype.get=function(t){var n=this.__data__,i=oi(n,t);return i<0?e:n[i][1]},$n.prototype.has=function(e){return oi(this.__data__,e)>-1},$n.prototype.set=function(e,t){var n=this.__data__,i=oi(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(An||$n),string:new Yn}},Qn.prototype.delete=function(e){var t=ur(this,e).delete(e);return this.size-=t?1:0,t},Qn.prototype.get=function(e){return ur(this,e).get(e)},Qn.prototype.has=function(e){return ur(this,e).has(e)},Qn.prototype.set=function(e,t){var n=ur(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,n),this},qn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new $n,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $n){var i=n.__data__;if(!An||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qn(i)}return n.set(e,t),this.size=n.size,this};var pi=Oo(Ei),mi=Oo(Si,!0);function vi(e,t){var n=!0;return pi(e,(function(e,i,o){return n=!!t(e,i,o)})),n}function fi(t,n,i){for(var o=-1,r=t.length;++o<r;){var a=t[o],s=n(a);if(null!=s&&(l===e?s==s&&!gs(s):i(s,l)))var l=s,d=a}return d}function Ci(e,t){var n=[];return pi(e,(function(e,i,o){t(e,i,o)&&n.push(e)})),n}function wi(e,t,n,i,o){var r=-1,a=e.length;for(n||(n=yr),o||(o=[]);++r<a;){var s=e[r];t>0&&n(s)?t>1?wi(s,t-1,n,i,o):_t(o,s):i||(o[o.length]=s)}return o}var yi=ko(),bi=ko(!0);function Ei(e,t){return e&&yi(e,t,Fs)}function Si(e,t){return e&&bi(e,t,Fs)}function Di(e,t){return Pt(t,(function(t){return es(e[t])}))}function Ti(t,n){for(var i=0,o=(n=Eo(n,t)).length;null!=t&&i<o;)t=t[Vr(n[i++])];return i&&i==o?t:e}function Ri(e,t,n){var i=t(e);return Ya(e)?i:_t(i,n(e))}function Ai(t){return null==t?t===e?"[object Undefined]":"[object Null]":tt&&tt in Ae(t)?function(t){var n=Oe.call(t,tt),i=t[tt];try{t[tt]=e;var o=!0}catch(e){}var r=ze.call(t);return o&&(n?t[tt]=i:delete t[tt]),r}(t):function(e){return ze.call(e)}(t)}function xi(e,t){return e>t}function Mi(e,t){return null!=e&&Oe.call(e,t)}function Ni(e,t){return null!=e&&t in Ae(e)}function Pi(t,n,i){for(var o=i?Lt:It,r=t[0].length,a=t.length,s=a,l=Ee(a),d=1/0,c=[];s--;){var g=t[s];s&&n&&(g=Ft(g,Zt(n))),d=bn(g.length,d),l[s]=!i&&(n||r>=120&&g.length>=120)?new qn(s&&g):e}g=t[0];var u=-1,h=l[0];e:for(;++u<r&&c.length<d;){var p=g[u],m=n?n(p):p;if(p=i||0!==p?p:0,!(h?en(h,m):o(c,m,i))){for(s=a;--s;){var v=l[s];if(!(v?en(v,m):o(t[s],m,i)))continue e}h&&h.push(m),c.push(p)}}return c}function Ii(t,n,i){var o=null==(t=Nr(t,n=Eo(n,t)))?t:t[Vr(Jr(n))];return null==o?e:Rt(o,t,i)}function Li(e){return os(e)&&Ai(e)==p}function Fi(t,n,i,o,r){return t===n||(null==t||null==n||!os(t)&&!os(n)?t!=t&&n!=n:function(t,n,i,o,r,a){var s=Ya(t),l=Ya(n),d=s?m:fr(t),c=l?m:fr(n),g=(d=d==p?S:d)==S,u=(c=c==p?S:c)==S,h=d==c;if(h&&Xa(t)){if(!Xa(n))return!1;s=!0,g=!1}if(h&&!g)return a||(a=new Xn),s||us(t)?or(t,n,i,o,r,a):function(e,t,n,i,o,r,a){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N:return!(e.byteLength!=t.byteLength||!r(new je(e),new je(t)));case v:case f:case E:return Wa(+e,+t);case C:return e.name==t.name&&e.message==t.message;case T:case A:return e==t+"";case b:var s=dn;case R:var l=1&i;if(s||(s=un),e.size!=t.size&&!l)return!1;var d=a.get(e);if(d)return d==t;i|=2,a.set(e,t);var c=or(s(e),s(t),i,o,r,a);return a.delete(e),c;case x:if(Vn)return Vn.call(e)==Vn.call(t)}return!1}(t,n,d,i,o,r,a);if(!(1&i)){var w=g&&Oe.call(t,"__wrapped__"),y=u&&Oe.call(n,"__wrapped__");if(w||y){var D=w?t.value():t,M=y?n.value():n;return a||(a=new Xn),r(D,M,i,o,a)}}return!!h&&(a||(a=new Xn),function(t,n,i,o,r,a){var s=1&i,l=ar(t),d=l.length,c=ar(n),g=c.length;if(d!=g&&!s)return!1;for(var u=d;u--;){var h=l[u];if(!(s?h in n:Oe.call(n,h)))return!1}var p=a.get(t),m=a.get(n);if(p&&m)return p==n&&m==t;var v=!0;a.set(t,n),a.set(n,t);for(var f=s;++u<d;){var C=t[h=l[u]],w=n[h];if(o)var y=s?o(w,C,h,n,t,a):o(C,w,h,t,n,a);if(!(y===e?C===w||r(C,w,i,o,a):y)){v=!1;break}f||(f="constructor"==h)}if(v&&!f){var b=t.constructor,E=n.constructor;b==E||!("constructor"in t)||!("constructor"in n)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(v=!1)}return a.delete(t),a.delete(n),v}(t,n,i,o,r,a))}(t,n,i,o,Fi,r))}function _i(t,n,i,o){var r=i.length,a=r,s=!o;if(null==t)return!a;for(t=Ae(t);r--;){var l=i[r];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++r<a;){var d=(l=i[r])[0],c=t[d],g=l[1];if(s&&l[2]){if(c===e&&!(d in t))return!1}else{var u=new Xn;if(o)var h=o(c,g,d,t,n,u);if(!(h===e?Fi(g,c,3,o,u):h))return!1}}return!0}function Oi(e){return!(!is(e)||(t=e,Ge&&Ge in t))&&(es(e)?Be:pe).test(Hr(e));var t}function ki(e){return"function"==typeof e?e:null==e?al:"object"==typeof e?Ya(e)?Wi(e[0],e[1]):Bi(e):ml(e)}function Gi(e){if(!Rr(e))return wn(e);var t=[];for(var n in Ae(e))Oe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function zi(e){if(!is(e))return function(e){var t=[];if(null!=e)for(var n in Ae(e))t.push(n);return t}(e);var t=Rr(e),n=[];for(var i in e)("constructor"!=i||!t&&Oe.call(e,i))&&n.push(i);return n}function Vi(e,t){return e<t}function Hi(e,t){var n=-1,i=Qa(e)?Ee(e.length):[];return pi(e,(function(e,o,r){i[++n]=t(e,o,r)})),i}function Bi(e){var t=hr(e);return 1==t.length&&t[0][2]?xr(t[0][0],t[0][1]):function(n){return n===e||_i(n,e,t)}}function Wi(t,n){return Sr(t)&&Ar(n)?xr(Vr(t),n):function(i){var o=Ms(i,t);return o===e&&o===n?Ns(i,t):Fi(n,o,3)}}function Ui(t,n,i,o,r){t!==n&&yi(n,(function(a,s){if(r||(r=new Xn),is(a))!function(t,n,i,o,r,a,s){var l=Ir(t,i),d=Ir(n,i),c=s.get(d);if(c)ni(t,i,c);else{var g=a?a(l,d,i+"",t,n,s):e,u=g===e;if(u){var h=Ya(d),p=!h&&Xa(d),m=!h&&!p&&us(d);g=d,h||p||m?Ya(l)?g=l:qa(l)?g=Io(l):p?(u=!1,g=Ro(d,!0)):m?(u=!1,g=xo(d,!0)):g=[]:ss(d)||Ka(d)?(g=l,Ka(l)?g=ys(l):is(l)&&!es(l)||(g=wr(d))):u=!1}u&&(s.set(d,g),r(g,d,o,a,s),s.delete(d)),ni(t,i,g)}}(t,n,s,i,Ui,o,r);else{var l=o?o(Ir(t,s),a,s+"",t,n,r):e;l===e&&(l=a),ni(t,s,l)}}),_s)}function ji(t,n){var i=t.length;if(i)return br(n+=n<0?i:0,i)?t[n]:e}function Ki(e,t,n){t=t.length?Ft(t,(function(e){return Ya(e)?function(t){return Ti(t,1===e.length?e[0]:e)}:e})):[al];var i=-1;t=Ft(t,Zt(gr()));var o=Hi(e,(function(e,n,o){var r=Ft(t,(function(t){return t(e)}));return{criteria:r,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){for(var i=-1,o=e.criteria,r=t.criteria,a=o.length,s=n.length;++i<a;){var l=Mo(o[i],r[i]);if(l)return i>=s?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Yi(e,t,n){for(var i=-1,o=t.length,r={};++i<o;){var a=t[i],s=Ti(e,a);n(s,a)&&to(r,Eo(a,e),s)}return r}function $i(e,t,n,i){var o=i?Wt:Bt,r=-1,a=t.length,s=e;for(e===t&&(t=Io(t)),n&&(s=Ft(e,Zt(n)));++r<a;)for(var l=0,d=t[r],c=n?n(d):d;(l=o(s,c,l,i))>-1;)s!==e&&qe.call(s,l,1),qe.call(e,l,1);return e}function Qi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var o=t[n];if(n==i||o!==r){var r=o;br(o)?qe.call(e,o,1):po(e,o)}}return e}function qi(e,t){return e+vt(Dn()*(t-e+1))}function Xi(e,t){var n="";if(!e||t<1||t>c)return n;do{t%2&&(n+=e),(t=vt(t/2))&&(e+=e)}while(t);return n}function Zi(e,t){return _r(Mr(e,t,al),e+"")}function Ji(e){return Jn(Ws(e))}function eo(e,t){var n=Ws(e);return Gr(n,di(t,0,n.length))}function to(t,n,i,o){if(!is(t))return t;for(var r=-1,a=(n=Eo(n,t)).length,s=a-1,l=t;null!=l&&++r<a;){var d=Vr(n[r]),c=i;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(r!=s){var g=l[d];(c=o?o(g,d,l):e)===e&&(c=is(g)?g:br(n[r+1])?[]:{})}ii(l,d,c),l=l[d]}return t}var no=In?function(e,t){return In.set(e,t),e}:al,io=it?function(e,t){return it(e,"toString",{configurable:!0,enumerable:!1,value:il(t),writable:!0})}:al;function oo(e){return Gr(Ws(e))}function ro(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var r=Ee(o);++i<o;)r[i]=e[i+t];return r}function ao(e,t){var n;return pi(e,(function(e,i,o){return!(n=t(e,i,o))})),!!n}function so(e,t,n){var i=0,o=null==e?i:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;i<o;){var r=i+o>>>1,a=e[r];null!==a&&!gs(a)&&(n?a<=t:a<t)?i=r+1:o=r}return o}return lo(e,t,al,n)}function lo(t,n,i,o){var r=0,a=null==t?0:t.length;if(0===a)return 0;for(var s=(n=i(n))!=n,l=null===n,d=gs(n),c=n===e;r<a;){var g=vt((r+a)/2),u=i(t[g]),h=u!==e,p=null===u,m=u==u,v=gs(u);if(s)var f=o||m;else f=c?m&&(o||h):l?m&&h&&(o||!p):d?m&&h&&!p&&(o||!v):!p&&!v&&(o?u<=n:u<n);f?r=g+1:a=g}return bn(a,4294967294)}function co(e,t){for(var n=-1,i=e.length,o=0,r=[];++n<i;){var a=e[n],s=t?t(a):a;if(!n||!Wa(s,l)){var l=s;r[o++]=0===a?0:a}}return r}function go(e){return"number"==typeof e?e:gs(e)?g:+e}function uo(e){if("string"==typeof e)return e;if(Ya(e))return Ft(e,uo)+"";if(gs(e))return Hn?Hn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ho(e,t,n){var i=-1,o=It,r=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Lt;else if(r>=200){var d=t?null:Zo(e);if(d)return un(d);a=!1,o=en,l=new qn}else l=t?[]:s;e:for(;++i<r;){var c=e[i],g=t?t(c):c;if(c=n||0!==c?c:0,a&&g==g){for(var u=l.length;u--;)if(l[u]===g)continue e;t&&l.push(g),s.push(c)}else o(l,g,n)||(l!==s&&l.push(g),s.push(c))}return s}function po(e,t){return null==(e=Nr(e,t=Eo(t,e)))||delete e[Vr(Jr(t))]}function mo(e,t,n,i){return to(e,t,n(Ti(e,t)),i)}function vo(e,t,n,i){for(var o=e.length,r=i?o:-1;(i?r--:++r<o)&&t(e[r],r,e););return n?ro(e,i?0:r,i?r+1:o):ro(e,i?r+1:0,i?o:r)}function fo(e,t){var n=e;return n instanceof Kn&&(n=n.value()),Ot(t,(function(e,t){return t.func.apply(t.thisArg,_t([e],t.args))}),n)}function Co(e,t,n){var i=e.length;if(i<2)return i?ho(e[0]):[];for(var o=-1,r=Ee(i);++o<i;)for(var a=e[o],s=-1;++s<i;)s!=o&&(r[o]=hi(r[o]||a,e[s],t,n));return ho(wi(r,1),t,n)}function wo(t,n,i){for(var o=-1,r=t.length,a=n.length,s={};++o<r;){var l=o<a?n[o]:e;i(s,t[o],l)}return s}function yo(e){return qa(e)?e:[]}function bo(e){return"function"==typeof e?e:al}function Eo(e,t){return Ya(e)?e:Sr(e,t)?[e]:zr(bs(e))}var So=Zi;function Do(t,n,i){var o=t.length;return i=i===e?o:i,!n&&i>=o?t:ro(t,n,i)}var To=dt||function(e){return pt.clearTimeout(e)};function Ro(e,t){if(t)return e.slice();var n=e.length,i=Ke?Ke(n):new e.constructor(n);return e.copy(i),i}function Ao(e){var t=new e.constructor(e.byteLength);return new je(t).set(new je(e)),t}function xo(e,t){var n=t?Ao(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Mo(t,n){if(t!==n){var i=t!==e,o=null===t,r=t==t,a=gs(t),s=n!==e,l=null===n,d=n==n,c=gs(n);if(!l&&!c&&!a&&t>n||a&&s&&d&&!l&&!c||o&&s&&d||!i&&d||!r)return 1;if(!o&&!a&&!c&&t<n||c&&i&&r&&!o&&!a||l&&i&&r||!s&&r||!d)return-1}return 0}function No(e,t,n,i){for(var o=-1,r=e.length,a=n.length,s=-1,l=t.length,d=yn(r-a,0),c=Ee(l+d),g=!i;++s<l;)c[s]=t[s];for(;++o<a;)(g||o<r)&&(c[n[o]]=e[o]);for(;d--;)c[s++]=e[o++];return c}function Po(e,t,n,i){for(var o=-1,r=e.length,a=-1,s=n.length,l=-1,d=t.length,c=yn(r-s,0),g=Ee(c+d),u=!i;++o<c;)g[o]=e[o];for(var h=o;++l<d;)g[h+l]=t[l];for(;++a<s;)(u||o<r)&&(g[h+n[a]]=e[o++]);return g}function Io(e,t){var n=-1,i=e.length;for(t||(t=Ee(i));++n<i;)t[n]=e[n];return t}function Lo(t,n,i,o){var r=!i;i||(i={});for(var a=-1,s=n.length;++a<s;){var l=n[a],d=o?o(i[l],t[l],l,i,t):e;d===e&&(d=t[l]),r?si(i,l,d):ii(i,l,d)}return i}function Fo(e,t){return function(n,i){var o=Ya(n)?At:ri,r=t?t():{};return o(n,e,gr(i,2),r)}}function _o(t){return Zi((function(n,i){var o=-1,r=i.length,a=r>1?i[r-1]:e,s=r>2?i[2]:e;for(a=t.length>3&&"function"==typeof a?(r--,a):e,s&&Er(i[0],i[1],s)&&(a=r<3?e:a,r=1),n=Ae(n);++o<r;){var l=i[o];l&&t(n,l,o,a)}return n}))}function Oo(e,t){return function(n,i){if(null==n)return n;if(!Qa(n))return e(n,i);for(var o=n.length,r=t?o:-1,a=Ae(n);(t?r--:++r<o)&&!1!==i(a[r],r,a););return n}}function ko(e){return function(t,n,i){for(var o=-1,r=Ae(t),a=i(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(r[l],l,r))break}return t}}function Go(t){return function(n){var i=ln(n=bs(n))?mn(n):e,o=i?i[0]:n.charAt(0),r=i?Do(i,1).join(""):n.slice(1);return o[t]()+r}}function zo(e){return function(t){return Ot(el(Ks(t).replace(Je,"")),e,"")}}function Vo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Wn(e.prototype),i=e.apply(n,t);return is(i)?i:n}}function Ho(t){return function(n,i,o){var r=Ae(n);if(!Qa(n)){var a=gr(i,3);n=Fs(n),i=function(e){return a(r[e],e,r)}}var s=t(n,i,o);return s>-1?r[a?n[s]:s]:e}}function Bo(n){return rr((function(i){var o=i.length,r=o,a=jn.prototype.thru;for(n&&i.reverse();r--;){var s=i[r];if("function"!=typeof s)throw new Ne(t);if(a&&!l&&"wrapper"==dr(s))var l=new jn([],!0)}for(r=l?r:o;++r<o;){var d=dr(s=i[r]),c="wrapper"==d?lr(s):e;l=c&&Dr(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[dr(c[0])].apply(l,c[3]):1==s.length&&Dr(s)?l[d]():l.thru(s)}return function(){var e=arguments,t=e[0];if(l&&1==e.length&&Ya(t))return l.plant(t).value();for(var n=0,r=o?i[n].apply(this,e):t;++n<o;)r=i[n].call(this,r);return r}}))}function Wo(t,n,i,o,r,a,l,d,c,g){var u=n&s,h=1&n,p=2&n,m=24&n,v=512&n,f=p?e:Vo(t);return function e(){for(var s=arguments.length,C=Ee(s),w=s;w--;)C[w]=arguments[w];if(m)var y=cr(e),b=on(C,y);if(o&&(C=No(C,o,r,m)),a&&(C=Po(C,a,l,m)),s-=b,m&&s<g){var E=gn(C,y);return qo(t,n,Wo,e.placeholder,i,C,E,d,c,g-s)}var S=h?i:this,D=p?S[t]:t;return s=C.length,d?C=Pr(C,d):v&&s>1&&C.reverse(),u&&c<s&&(C.length=c),this&&this!==pt&&this instanceof e&&(D=f||Vo(D)),D.apply(S,C)}}function Uo(e,t){return function(n,i){return function(e,t,n,i){return Ei(e,(function(e,o,r){t(i,n(e),o,r)})),i}(n,e,t(i),{})}}function jo(t,n){return function(i,o){var r;if(i===e&&o===e)return n;if(i!==e&&(r=i),o!==e){if(r===e)return o;"string"==typeof i||"string"==typeof o?(i=uo(i),o=uo(o)):(i=go(i),o=go(o)),r=t(i,o)}return r}}function Ko(e){return rr((function(t){return t=Ft(t,Zt(gr())),Zi((function(n){var i=this;return e(t,(function(e){return Rt(e,i,n)}))}))}))}function Yo(t,n){var i=(n=n===e?" ":uo(n)).length;if(i<2)return i?Xi(n,t):n;var o=Xi(n,mt(t/pn(n)));return ln(n)?Do(mn(o),0,t).join(""):o.slice(0,t)}function $o(t){return function(n,i,o){return o&&"number"!=typeof o&&Er(n,i,o)&&(i=o=e),n=vs(n),i===e?(i=n,n=0):i=vs(i),function(e,t,n,i){for(var o=-1,r=yn(mt((t-e)/(n||1)),0),a=Ee(r);r--;)a[i?r:++o]=e,e+=n;return a}(n,i,o=o===e?n<i?1:-1:vs(o),t)}}function Qo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ws(t),n=ws(n)),e(t,n)}}function qo(t,n,i,o,s,l,d,c,g,u){var h=8&n;n|=h?r:a,4&(n&=~(h?a:r))||(n&=-4);var p=[t,n,s,h?l:e,h?d:e,h?e:l,h?e:d,c,g,u],m=i.apply(e,p);return Dr(t)&&Lr(m,p),m.placeholder=o,Or(m,t,n)}function Xo(e){var t=Re[e];return function(e,n){if(e=ws(e),(n=null==n?0:bn(fs(n),292))&&zt(e)){var i=(bs(e)+"e").split("e");return+((i=(bs(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Zo=Mn&&1/un(new Mn([,-0]))[1]==d?function(e){return new Mn(e)}:gl;function Jo(e){return function(t){var n=fr(t);return n==b?dn(t):n==R?hn(t):function(e,t){return Ft(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function er(n,d,c,g,u,h,p,m){var v=2&d;if(!v&&"function"!=typeof n)throw new Ne(t);var f=g?g.length:0;if(f||(d&=-97,g=u=e),p=p===e?p:yn(fs(p),0),m=m===e?m:fs(m),f-=u?u.length:0,d&a){var C=g,w=u;g=u=e}var y=v?e:lr(n),b=[n,d,c,g,u,C,w,h,p,m];if(y&&function(e,t){var n=e[1],o=t[1],r=n|o,a=r<131,d=o==s&&8==n||o==s&&n==l&&e[7].length<=t[8]||384==o&&t[7].length<=t[8]&&8==n;if(!a&&!d)return e;1&o&&(e[2]=t[2],r|=1&n?0:4);var c=t[3];if(c){var g=e[3];e[3]=g?No(g,c,t[4]):c,e[4]=g?gn(e[3],i):t[4]}(c=t[5])&&(g=e[5],e[5]=g?Po(g,c,t[6]):c,e[6]=g?gn(e[5],i):t[6]),(c=t[7])&&(e[7]=c),o&s&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=r}(b,y),n=b[0],d=b[1],c=b[2],g=b[3],u=b[4],!(m=b[9]=b[9]===e?v?0:n.length:yn(b[9]-f,0))&&24&d&&(d&=-25),d&&1!=d)E=8==d||d==o?function(t,n,i){var o=Vo(t);return function r(){for(var a=arguments.length,s=Ee(a),l=a,d=cr(r);l--;)s[l]=arguments[l];var c=a<3&&s[0]!==d&&s[a-1]!==d?[]:gn(s,d);return(a-=c.length)<i?qo(t,n,Wo,r.placeholder,e,s,c,e,e,i-a):Rt(this&&this!==pt&&this instanceof r?o:t,this,s)}}(n,d,m):d!=r&&33!=d||u.length?Wo.apply(e,b):function(e,t,n,i){var o=1&t,r=Vo(e);return function t(){for(var a=-1,s=arguments.length,l=-1,d=i.length,c=Ee(d+s),g=this&&this!==pt&&this instanceof t?r:e;++l<d;)c[l]=i[l];for(;s--;)c[l++]=arguments[++a];return Rt(g,o?n:this,c)}}(n,d,c,g);else var E=function(e,t,n){var i=1&t,o=Vo(e);return function t(){return(this&&this!==pt&&this instanceof t?o:e).apply(i?n:this,arguments)}}(n,d,c);return Or((y?no:Lr)(E,b),n,d)}function tr(t,n,i,o){return t===e||Wa(t,Le[i])&&!Oe.call(o,i)?n:t}function nr(t,n,i,o,r,a){return is(t)&&is(n)&&(a.set(n,t),Ui(t,n,e,nr,a),a.delete(n)),t}function ir(t){return ss(t)?e:t}function or(t,n,i,o,r,a){var s=1&i,l=t.length,d=n.length;if(l!=d&&!(s&&d>l))return!1;var c=a.get(t),g=a.get(n);if(c&&g)return c==n&&g==t;var u=-1,h=!0,p=2&i?new qn:e;for(a.set(t,n),a.set(n,t);++u<l;){var m=t[u],v=n[u];if(o)var f=s?o(v,m,u,n,t,a):o(m,v,u,t,n,a);if(f!==e){if(f)continue;h=!1;break}if(p){if(!Gt(n,(function(e,t){if(!en(p,t)&&(m===e||r(m,e,i,o,a)))return p.push(t)}))){h=!1;break}}else if(m!==v&&!r(m,v,i,o,a)){h=!1;break}}return a.delete(t),a.delete(n),h}function rr(t){return _r(Mr(t,e,$r),t+"")}function ar(e){return Ri(e,Fs,mr)}function sr(e){return Ri(e,_s,vr)}var lr=In?function(e){return In.get(e)}:gl;function dr(e){for(var t=e.name+"",n=Ln[t],i=Oe.call(Ln,t)?n.length:0;i--;){var o=n[i],r=o.func;if(null==r||r==e)return o.name}return t}function cr(e){return(Oe.call(Bn,"placeholder")?Bn:e).placeholder}function gr(){var e=Bn.iteratee||sl;return e=e===sl?ki:e,arguments.length?e(arguments[0],arguments[1]):e}function ur(e,t){var n,i,o=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function hr(e){for(var t=Fs(e),n=t.length;n--;){var i=t[n],o=e[i];t[n]=[i,o,Ar(o)]}return t}function pr(t,n){var i=function(t,n){return null==t?e:t[n]}(t,n);return Oi(i)?i:e}var mr=Ct?function(e){return null==e?[]:(e=Ae(e),Pt(Ct(e),(function(t){return Qe.call(e,t)})))}:Cl,vr=Ct?function(e){for(var t=[];e;)_t(t,mr(e)),e=Ye(e);return t}:Cl,fr=Ai;function Cr(e,t,n){for(var i=-1,o=(t=Eo(t,e)).length,r=!1;++i<o;){var a=Vr(t[i]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}return r||++i!=o?r:!!(o=null==e?0:e.length)&&ns(o)&&br(a,o)&&(Ya(e)||Ka(e))}function wr(e){return"function"!=typeof e.constructor||Rr(e)?{}:Wn(Ye(e))}function yr(e){return Ya(e)||Ka(e)||!!(Xe&&e&&e[Xe])}function br(e,t){var n=typeof e;return!!(t=null==t?c:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function Er(e,t,n){if(!is(n))return!1;var i=typeof t;return!!("number"==i?Qa(n)&&br(t,n.length):"string"==i&&t in n)&&Wa(n[t],e)}function Sr(e,t){if(Ya(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!gs(e))||Z.test(e)||!X.test(e)||null!=t&&e in Ae(t)}function Dr(e){var t=dr(e),n=Bn[t];if("function"!=typeof n||!(t in Kn.prototype))return!1;if(e===n)return!0;var i=lr(n);return!!i&&e===i[0]}(Rn&&fr(new Rn(new ArrayBuffer(1)))!=P||An&&fr(new An)!=b||xn&&fr(xn.resolve())!=D||Mn&&fr(new Mn)!=R||Nn&&fr(new Nn)!=M)&&(fr=function(t){var n=Ai(t),i=n==S?t.constructor:e,o=i?Hr(i):"";if(o)switch(o){case Fn:return P;case _n:return b;case On:return D;case kn:return R;case Gn:return M}return n});var Tr=Fe?es:wl;function Rr(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function Ar(e){return e==e&&!is(e)}function xr(t,n){return function(i){return null!=i&&i[t]===n&&(n!==e||t in Ae(i))}}function Mr(t,n,i){return n=yn(n===e?t.length-1:n,0),function(){for(var e=arguments,o=-1,r=yn(e.length-n,0),a=Ee(r);++o<r;)a[o]=e[n+o];o=-1;for(var s=Ee(n+1);++o<n;)s[o]=e[o];return s[n]=i(a),Rt(t,this,s)}}function Nr(e,t){return t.length<2?e:Ti(e,ro(t,0,-1))}function Pr(t,n){for(var i=t.length,o=bn(n.length,i),r=Io(t);o--;){var a=n[o];t[o]=br(a,i)?r[a]:e}return t}function Ir(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Lr=kr(no),Fr=ht||function(e,t){return pt.setTimeout(e,t)},_r=kr(io);function Or(e,t,n){var i=t+"";return _r(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return xt(h,(function(n){var i="_."+n[0];t&n[1]&&!It(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(re);return t?t[1].split(ae):[]}(i),n)))}function kr(t){var n=0,i=0;return function(){var o=En(),r=16-(o-i);if(i=o,r>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(e,arguments)}}function Gr(t,n){var i=-1,o=t.length,r=o-1;for(n=n===e?o:n;++i<n;){var a=qi(i,r),s=t[a];t[a]=t[i],t[i]=s}return t.length=n,t}var zr=function(e){var t=ka(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(J,(function(e,n,i,o){t.push(i?o.replace(de,"$1"):n||e)})),t}));function Vr(e){if("string"==typeof e||gs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Hr(e){if(null!=e){try{return _e.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Br(e){if(e instanceof Kn)return e.clone();var t=new jn(e.__wrapped__,e.__chain__);return t.__actions__=Io(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Wr=Zi((function(e,t){return qa(e)?hi(e,wi(t,1,qa,!0)):[]})),Ur=Zi((function(t,n){var i=Jr(n);return qa(i)&&(i=e),qa(t)?hi(t,wi(n,1,qa,!0),gr(i,2)):[]})),jr=Zi((function(t,n){var i=Jr(n);return qa(i)&&(i=e),qa(t)?hi(t,wi(n,1,qa,!0),e,i):[]}));function Kr(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=null==n?0:fs(n);return o<0&&(o=yn(i+o,0)),Ht(e,gr(t,3),o)}function Yr(t,n,i){var o=null==t?0:t.length;if(!o)return-1;var r=o-1;return i!==e&&(r=fs(i),r=i<0?yn(o+r,0):bn(r,o-1)),Ht(t,gr(n,3),r,!0)}function $r(e){return null!=e&&e.length?wi(e,1):[]}function Qr(t){return t&&t.length?t[0]:e}var qr=Zi((function(e){var t=Ft(e,yo);return t.length&&t[0]===e[0]?Pi(t):[]})),Xr=Zi((function(t){var n=Jr(t),i=Ft(t,yo);return n===Jr(i)?n=e:i.pop(),i.length&&i[0]===t[0]?Pi(i,gr(n,2)):[]})),Zr=Zi((function(t){var n=Jr(t),i=Ft(t,yo);return(n="function"==typeof n?n:e)&&i.pop(),i.length&&i[0]===t[0]?Pi(i,e,n):[]}));function Jr(t){var n=null==t?0:t.length;return n?t[n-1]:e}var ea=Zi(ta);function ta(e,t){return e&&e.length&&t&&t.length?$i(e,t):e}var na=rr((function(e,t){var n=null==e?0:e.length,i=li(e,t);return Qi(e,Ft(t,(function(e){return br(e,n)?+e:e})).sort(Mo)),i}));function ia(e){return null==e?e:Tn.call(e)}var oa=Zi((function(e){return ho(wi(e,1,qa,!0))})),ra=Zi((function(t){var n=Jr(t);return qa(n)&&(n=e),ho(wi(t,1,qa,!0),gr(n,2))})),aa=Zi((function(t){var n=Jr(t);return n="function"==typeof n?n:e,ho(wi(t,1,qa,!0),e,n)}));function sa(e){if(!e||!e.length)return[];var t=0;return e=Pt(e,(function(e){if(qa(e))return t=yn(e.length,t),!0})),qt(t,(function(t){return Ft(e,Kt(t))}))}function la(t,n){if(!t||!t.length)return[];var i=sa(t);return null==n?i:Ft(i,(function(t){return Rt(n,e,t)}))}var da=Zi((function(e,t){return qa(e)?hi(e,t):[]})),ca=Zi((function(e){return Co(Pt(e,qa))})),ga=Zi((function(t){var n=Jr(t);return qa(n)&&(n=e),Co(Pt(t,qa),gr(n,2))})),ua=Zi((function(t){var n=Jr(t);return n="function"==typeof n?n:e,Co(Pt(t,qa),e,n)})),ha=Zi(sa),pa=Zi((function(t){var n=t.length,i=n>1?t[n-1]:e;return i="function"==typeof i?(t.pop(),i):e,la(t,i)}));function ma(e){var t=Bn(e);return t.__chain__=!0,t}function va(e,t){return t(e)}var fa=rr((function(t){var n=t.length,i=n?t[0]:0,o=this.__wrapped__,r=function(e){return li(e,t)};return!(n>1||this.__actions__.length)&&o instanceof Kn&&br(i)?((o=o.slice(i,+i+(n?1:0))).__actions__.push({func:va,args:[r],thisArg:e}),new jn(o,this.__chain__).thru((function(t){return n&&!t.length&&t.push(e),t}))):this.thru(r)})),Ca=Fo((function(e,t,n){Oe.call(e,n)?++e[n]:si(e,n,1)})),wa=Ho(Kr),ya=Ho(Yr);function ba(e,t){return(Ya(e)?xt:pi)(e,gr(t,3))}function Ea(e,t){return(Ya(e)?Mt:mi)(e,gr(t,3))}var Sa=Fo((function(e,t,n){Oe.call(e,n)?e[n].push(t):si(e,n,[t])})),Da=Zi((function(e,t,n){var i=-1,o="function"==typeof t,r=Qa(e)?Ee(e.length):[];return pi(e,(function(e){r[++i]=o?Rt(t,e,n):Ii(e,t,n)})),r})),Ta=Fo((function(e,t,n){si(e,n,t)}));function Ra(e,t){return(Ya(e)?Ft:Hi)(e,gr(t,3))}var Aa=Fo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),xa=Zi((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Er(e,t[0],t[1])?t=[]:n>2&&Er(t[0],t[1],t[2])&&(t=[t[0]]),Ki(e,wi(t,1),[])})),Ma=ut||function(){return pt.Date.now()};function Na(t,n,i){return n=i?e:n,n=t&&null==n?t.length:n,er(t,s,e,e,e,e,n)}function Pa(n,i){var o;if("function"!=typeof i)throw new Ne(t);return n=fs(n),function(){return--n>0&&(o=i.apply(this,arguments)),n<=1&&(i=e),o}}var Ia=Zi((function(e,t,n){var i=1;if(n.length){var o=gn(n,cr(Ia));i|=r}return er(e,i,t,n,o)})),La=Zi((function(e,t,n){var i=3;if(n.length){var o=gn(n,cr(La));i|=r}return er(t,i,e,n,o)}));function Fa(n,i,o){var r,a,s,l,d,c,g=0,u=!1,h=!1,p=!0;if("function"!=typeof n)throw new Ne(t);function m(t){var i=r,o=a;return r=a=e,g=t,l=n.apply(o,i)}function v(e){return g=e,d=Fr(C,i),u?m(e):l}function f(t){var n=t-c;return c===e||n>=i||n<0||h&&t-g>=s}function C(){var e=Ma();if(f(e))return w(e);d=Fr(C,function(e){var t=i-(e-c);return h?bn(t,s-(e-g)):t}(e))}function w(t){return d=e,p&&r?m(t):(r=a=e,l)}function y(){var t=Ma(),n=f(t);if(r=arguments,a=this,c=t,n){if(d===e)return v(c);if(h)return To(d),d=Fr(C,i),m(c)}return d===e&&(d=Fr(C,i)),l}return i=ws(i)||0,is(o)&&(u=!!o.leading,s=(h="maxWait"in o)?yn(ws(o.maxWait)||0,i):s,p="trailing"in o?!!o.trailing:p),y.cancel=function(){d!==e&&To(d),g=0,r=c=a=d=e},y.flush=function(){return d===e?l:w(Ma())},y}var _a=Zi((function(e,t){return ui(e,1,t)})),Oa=Zi((function(e,t,n){return ui(e,ws(t)||0,n)}));function ka(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new Ne(t);var i=function(){var t=arguments,o=n?n.apply(this,t):t[0],r=i.cache;if(r.has(o))return r.get(o);var a=e.apply(this,t);return i.cache=r.set(o,a)||r,a};return i.cache=new(ka.Cache||Qn),i}function Ga(e){if("function"!=typeof e)throw new Ne(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ka.Cache=Qn;var za=So((function(e,t){var n=(t=1==t.length&&Ya(t[0])?Ft(t[0],Zt(gr())):Ft(wi(t,1),Zt(gr()))).length;return Zi((function(i){for(var o=-1,r=bn(i.length,n);++o<r;)i[o]=t[o].call(this,i[o]);return Rt(e,this,i)}))})),Va=Zi((function(t,n){var i=gn(n,cr(Va));return er(t,r,e,n,i)})),Ha=Zi((function(t,n){var i=gn(n,cr(Ha));return er(t,a,e,n,i)})),Ba=rr((function(t,n){return er(t,l,e,e,e,n)}));function Wa(e,t){return e===t||e!=e&&t!=t}var Ua=Qo(xi),ja=Qo((function(e,t){return e>=t})),Ka=Li(function(){return arguments}())?Li:function(e){return os(e)&&Oe.call(e,"callee")&&!Qe.call(e,"callee")},Ya=Ee.isArray,$a=yt?Zt(yt):function(e){return os(e)&&Ai(e)==N};function Qa(e){return null!=e&&ns(e.length)&&!es(e)}function qa(e){return os(e)&&Qa(e)}var Xa=wt||wl,Za=bt?Zt(bt):function(e){return os(e)&&Ai(e)==f};function Ja(e){if(!os(e))return!1;var t=Ai(e);return t==C||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ss(e)}function es(e){if(!is(e))return!1;var t=Ai(e);return t==w||t==y||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ts(e){return"number"==typeof e&&e==fs(e)}function ns(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}function is(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function os(e){return null!=e&&"object"==typeof e}var rs=Et?Zt(Et):function(e){return os(e)&&fr(e)==b};function as(e){return"number"==typeof e||os(e)&&Ai(e)==E}function ss(e){if(!os(e)||Ai(e)!=S)return!1;var t=Ye(e);if(null===t)return!0;var n=Oe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&_e.call(n)==Ve}var ls=St?Zt(St):function(e){return os(e)&&Ai(e)==T},ds=Dt?Zt(Dt):function(e){return os(e)&&fr(e)==R};function cs(e){return"string"==typeof e||!Ya(e)&&os(e)&&Ai(e)==A}function gs(e){return"symbol"==typeof e||os(e)&&Ai(e)==x}var us=Tt?Zt(Tt):function(e){return os(e)&&ns(e.length)&&!!st[Ai(e)]},hs=Qo(Vi),ps=Qo((function(e,t){return e<=t}));function ms(e){if(!e)return[];if(Qa(e))return cs(e)?mn(e):Io(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=fr(e);return(t==b?dn:t==R?un:Ws)(e)}function vs(e){return e?(e=ws(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fs(e){var t=vs(e),n=t%1;return t==t?n?t-n:t:0}function Cs(e){return e?di(fs(e),0,u):0}function ws(e){if("number"==typeof e)return e;if(gs(e))return g;if(is(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=is(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=he.test(e);return n||me.test(e)?gt(e.slice(2),n?2:8):ue.test(e)?g:+e}function ys(e){return Lo(e,_s(e))}function bs(e){return null==e?"":uo(e)}var Es=_o((function(e,t){if(Rr(t)||Qa(t))Lo(t,Fs(t),e);else for(var n in t)Oe.call(t,n)&&ii(e,n,t[n])})),Ss=_o((function(e,t){Lo(t,_s(t),e)})),Ds=_o((function(e,t,n,i){Lo(t,_s(t),e,i)})),Ts=_o((function(e,t,n,i){Lo(t,Fs(t),e,i)})),Rs=rr(li),As=Zi((function(t,n){t=Ae(t);var i=-1,o=n.length,r=o>2?n[2]:e;for(r&&Er(n[0],n[1],r)&&(o=1);++i<o;)for(var a=n[i],s=_s(a),l=-1,d=s.length;++l<d;){var c=s[l],g=t[c];(g===e||Wa(g,Le[c])&&!Oe.call(t,c))&&(t[c]=a[c])}return t})),xs=Zi((function(t){return t.push(e,nr),Rt(ks,e,t)}));function Ms(t,n,i){var o=null==t?e:Ti(t,n);return o===e?i:o}function Ns(e,t){return null!=e&&Cr(e,t,Ni)}var Ps=Uo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ze.call(t)),e[t]=n}),il(al)),Is=Uo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ze.call(t)),Oe.call(e,t)?e[t].push(n):e[t]=[n]}),gr),Ls=Zi(Ii);function Fs(e){return Qa(e)?Zn(e):Gi(e)}function _s(e){return Qa(e)?Zn(e,!0):zi(e)}var Os=_o((function(e,t,n){Ui(e,t,n)})),ks=_o((function(e,t,n,i){Ui(e,t,n,i)})),Gs=rr((function(e,t){var n={};if(null==e)return n;var i=!1;t=Ft(t,(function(t){return t=Eo(t,e),i||(i=t.length>1),t})),Lo(e,sr(e),n),i&&(n=ci(n,7,ir));for(var o=t.length;o--;)po(n,t[o]);return n})),zs=rr((function(e,t){return null==e?{}:function(e,t){return Yi(e,t,(function(t,n){return Ns(e,n)}))}(e,t)}));function Vs(e,t){if(null==e)return{};var n=Ft(sr(e),(function(e){return[e]}));return t=gr(t),Yi(e,n,(function(e,n){return t(e,n[0])}))}var Hs=Jo(Fs),Bs=Jo(_s);function Ws(e){return null==e?[]:Jt(e,Fs(e))}var Us=zo((function(e,t,n){return t=t.toLowerCase(),e+(n?js(t):t)}));function js(e){return Js(bs(e).toLowerCase())}function Ks(e){return(e=bs(e))&&e.replace(fe,rn).replace(et,"")}var Ys=zo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),$s=zo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Qs=Go("toLowerCase"),qs=zo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Xs=zo((function(e,t,n){return e+(n?" ":"")+Js(t)})),Zs=zo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Go("toUpperCase");function el(t,n,i){return t=bs(t),(n=i?e:n)===e?function(e){return ot.test(e)}(t)?function(e){return e.match(nt)||[]}(t):function(e){return e.match(se)||[]}(t):t.match(n)||[]}var tl=Zi((function(t,n){try{return Rt(t,e,n)}catch(e){return Ja(e)?e:new De(e)}})),nl=rr((function(e,t){return xt(t,(function(t){t=Vr(t),si(e,t,Ia(e[t],e))})),e}));function il(e){return function(){return e}}var ol=Bo(),rl=Bo(!0);function al(e){return e}function sl(e){return ki("function"==typeof e?e:ci(e,1))}var ll=Zi((function(e,t){return function(n){return Ii(n,e,t)}})),dl=Zi((function(e,t){return function(n){return Ii(e,n,t)}}));function cl(e,t,n){var i=Fs(t),o=Di(t,i);null!=n||is(t)&&(o.length||!i.length)||(n=t,t=e,e=this,o=Di(t,Fs(t)));var r=!(is(n)&&"chain"in n&&!n.chain),a=es(e);return xt(o,(function(n){var i=t[n];e[n]=i,a&&(e.prototype[n]=function(){var t=this.__chain__;if(r||t){var n=e(this.__wrapped__),o=n.__actions__=Io(this.__actions__);return o.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,_t([this.value()],arguments))})})),e}function gl(){}var ul=Ko(Ft),hl=Ko(Nt),pl=Ko(Gt);function ml(e){return Sr(e)?Kt(Vr(e)):function(e){return function(t){return Ti(t,e)}}(e)}var vl=$o(),fl=$o(!0);function Cl(){return[]}function wl(){return!1}var yl,bl=jo((function(e,t){return e+t}),0),El=Xo("ceil"),Sl=jo((function(e,t){return e/t}),1),Dl=Xo("floor"),Tl=jo((function(e,t){return e*t}),1),Rl=Xo("round"),Al=jo((function(e,t){return e-t}),0);return Bn.after=function(e,n){if("function"!=typeof n)throw new Ne(t);return e=fs(e),function(){if(--e<1)return n.apply(this,arguments)}},Bn.ary=Na,Bn.assign=Es,Bn.assignIn=Ss,Bn.assignInWith=Ds,Bn.assignWith=Ts,Bn.at=Rs,Bn.before=Pa,Bn.bind=Ia,Bn.bindAll=nl,Bn.bindKey=La,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ya(e)?e:[e]},Bn.chain=ma,Bn.chunk=function(t,n,i){n=(i?Er(t,n,i):n===e)?1:yn(fs(n),0);var o=null==t?0:t.length;if(!o||n<1)return[];for(var r=0,a=0,s=Ee(mt(o/n));r<o;)s[a++]=ro(t,r,r+=n);return s},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,o=[];++t<n;){var r=e[t];r&&(o[i++]=r)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Ee(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return _t(Ya(n)?Io(n):[n],wi(t,1))},Bn.cond=function(e){var n=null==e?0:e.length,i=gr();return e=n?Ft(e,(function(e){if("function"!=typeof e[1])throw new Ne(t);return[i(e[0]),e[1]]})):[],Zi((function(t){for(var i=-1;++i<n;){var o=e[i];if(Rt(o[0],this,t))return Rt(o[1],this,t)}}))},Bn.conforms=function(e){return function(e){var t=Fs(e);return function(n){return gi(n,e,t)}}(ci(e,1))},Bn.constant=il,Bn.countBy=Ca,Bn.create=function(e,t){var n=Wn(e);return null==t?n:ai(n,t)},Bn.curry=function t(n,i,o){var r=er(n,8,e,e,e,e,e,i=o?e:i);return r.placeholder=t.placeholder,r},Bn.curryRight=function t(n,i,r){var a=er(n,o,e,e,e,e,e,i=r?e:i);return a.placeholder=t.placeholder,a},Bn.debounce=Fa,Bn.defaults=As,Bn.defaultsDeep=xs,Bn.defer=_a,Bn.delay=Oa,Bn.difference=Wr,Bn.differenceBy=Ur,Bn.differenceWith=jr,Bn.drop=function(t,n,i){var o=null==t?0:t.length;return o?ro(t,(n=i||n===e?1:fs(n))<0?0:n,o):[]},Bn.dropRight=function(t,n,i){var o=null==t?0:t.length;return o?ro(t,0,(n=o-(n=i||n===e?1:fs(n)))<0?0:n):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?vo(e,gr(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?vo(e,gr(t,3),!0):[]},Bn.fill=function(t,n,i,o){var r=null==t?0:t.length;return r?(i&&"number"!=typeof i&&Er(t,n,i)&&(i=0,o=r),function(t,n,i,o){var r=t.length;for((i=fs(i))<0&&(i=-i>r?0:r+i),(o=o===e||o>r?r:fs(o))<0&&(o+=r),o=i>o?0:Cs(o);i<o;)t[i++]=n;return t}(t,n,i,o)):[]},Bn.filter=function(e,t){return(Ya(e)?Pt:Ci)(e,gr(t,3))},Bn.flatMap=function(e,t){return wi(Ra(e,t),1)},Bn.flatMapDeep=function(e,t){return wi(Ra(e,t),d)},Bn.flatMapDepth=function(t,n,i){return i=i===e?1:fs(i),wi(Ra(t,n),i)},Bn.flatten=$r,Bn.flattenDeep=function(e){return null!=e&&e.length?wi(e,d):[]},Bn.flattenDepth=function(t,n){return null!=t&&t.length?wi(t,n=n===e?1:fs(n)):[]},Bn.flip=function(e){return er(e,512)},Bn.flow=ol,Bn.flowRight=rl,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var o=e[t];i[o[0]]=o[1]}return i},Bn.functions=function(e){return null==e?[]:Di(e,Fs(e))},Bn.functionsIn=function(e){return null==e?[]:Di(e,_s(e))},Bn.groupBy=Sa,Bn.initial=function(e){return null!=e&&e.length?ro(e,0,-1):[]},Bn.intersection=qr,Bn.intersectionBy=Xr,Bn.intersectionWith=Zr,Bn.invert=Ps,Bn.invertBy=Is,Bn.invokeMap=Da,Bn.iteratee=sl,Bn.keyBy=Ta,Bn.keys=Fs,Bn.keysIn=_s,Bn.map=Ra,Bn.mapKeys=function(e,t){var n={};return t=gr(t,3),Ei(e,(function(e,i,o){si(n,t(e,i,o),e)})),n},Bn.mapValues=function(e,t){var n={};return t=gr(t,3),Ei(e,(function(e,i,o){si(n,i,t(e,i,o))})),n},Bn.matches=function(e){return Bi(ci(e,1))},Bn.matchesProperty=function(e,t){return Wi(e,ci(t,1))},Bn.memoize=ka,Bn.merge=Os,Bn.mergeWith=ks,Bn.method=ll,Bn.methodOf=dl,Bn.mixin=cl,Bn.negate=Ga,Bn.nthArg=function(e){return e=fs(e),Zi((function(t){return ji(t,e)}))},Bn.omit=Gs,Bn.omitBy=function(e,t){return Vs(e,Ga(gr(t)))},Bn.once=function(e){return Pa(2,e)},Bn.orderBy=function(t,n,i,o){return null==t?[]:(Ya(n)||(n=null==n?[]:[n]),Ya(i=o?e:i)||(i=null==i?[]:[i]),Ki(t,n,i))},Bn.over=ul,Bn.overArgs=za,Bn.overEvery=hl,Bn.overSome=pl,Bn.partial=Va,Bn.partialRight=Ha,Bn.partition=Aa,Bn.pick=zs,Bn.pickBy=Vs,Bn.property=ml,Bn.propertyOf=function(t){return function(n){return null==t?e:Ti(t,n)}},Bn.pull=ea,Bn.pullAll=ta,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?$i(e,t,gr(n,2)):e},Bn.pullAllWith=function(t,n,i){return t&&t.length&&n&&n.length?$i(t,n,e,i):t},Bn.pullAt=na,Bn.range=vl,Bn.rangeRight=fl,Bn.rearg=Ba,Bn.reject=function(e,t){return(Ya(e)?Pt:Ci)(e,Ga(gr(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,o=[],r=e.length;for(t=gr(t,3);++i<r;){var a=e[i];t(a,i,e)&&(n.push(a),o.push(i))}return Qi(e,o),n},Bn.rest=function(n,i){if("function"!=typeof n)throw new Ne(t);return Zi(n,i=i===e?i:fs(i))},Bn.reverse=ia,Bn.sampleSize=function(t,n,i){return n=(i?Er(t,n,i):n===e)?1:fs(n),(Ya(t)?ei:eo)(t,n)},Bn.set=function(e,t,n){return null==e?e:to(e,t,n)},Bn.setWith=function(t,n,i,o){return o="function"==typeof o?o:e,null==t?t:to(t,n,i,o)},Bn.shuffle=function(e){return(Ya(e)?ti:oo)(e)},Bn.slice=function(t,n,i){var o=null==t?0:t.length;return o?(i&&"number"!=typeof i&&Er(t,n,i)?(n=0,i=o):(n=null==n?0:fs(n),i=i===e?o:fs(i)),ro(t,n,i)):[]},Bn.sortBy=xa,Bn.sortedUniq=function(e){return e&&e.length?co(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?co(e,gr(t,2)):[]},Bn.split=function(t,n,i){return i&&"number"!=typeof i&&Er(t,n,i)&&(n=i=e),(i=i===e?u:i>>>0)?(t=bs(t))&&("string"==typeof n||null!=n&&!ls(n))&&!(n=uo(n))&&ln(t)?Do(mn(t),0,i):t.split(n,i):[]},Bn.spread=function(e,n){if("function"!=typeof e)throw new Ne(t);return n=null==n?0:yn(fs(n),0),Zi((function(t){var i=t[n],o=Do(t,0,n);return i&&_t(o,i),Rt(e,this,o)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?ro(e,1,t):[]},Bn.take=function(t,n,i){return t&&t.length?ro(t,0,(n=i||n===e?1:fs(n))<0?0:n):[]},Bn.takeRight=function(t,n,i){var o=null==t?0:t.length;return o?ro(t,(n=o-(n=i||n===e?1:fs(n)))<0?0:n,o):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?vo(e,gr(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?vo(e,gr(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,n,i){var o=!0,r=!0;if("function"!=typeof e)throw new Ne(t);return is(i)&&(o="leading"in i?!!i.leading:o,r="trailing"in i?!!i.trailing:r),Fa(e,n,{leading:o,maxWait:n,trailing:r})},Bn.thru=va,Bn.toArray=ms,Bn.toPairs=Hs,Bn.toPairsIn=Bs,Bn.toPath=function(e){return Ya(e)?Ft(e,Vr):gs(e)?[e]:Io(zr(bs(e)))},Bn.toPlainObject=ys,Bn.transform=function(e,t,n){var i=Ya(e),o=i||Xa(e)||us(e);if(t=gr(t,4),null==n){var r=e&&e.constructor;n=o?i?new r:[]:is(e)&&es(r)?Wn(Ye(e)):{}}return(o?xt:Ei)(e,(function(e,i,o){return t(n,e,i,o)})),n},Bn.unary=function(e){return Na(e,1)},Bn.union=oa,Bn.unionBy=ra,Bn.unionWith=aa,Bn.uniq=function(e){return e&&e.length?ho(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?ho(e,gr(t,2)):[]},Bn.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?ho(t,e,n):[]},Bn.unset=function(e,t){return null==e||po(e,t)},Bn.unzip=sa,Bn.unzipWith=la,Bn.update=function(e,t,n){return null==e?e:mo(e,t,bo(n))},Bn.updateWith=function(t,n,i,o){return o="function"==typeof o?o:e,null==t?t:mo(t,n,bo(i),o)},Bn.values=Ws,Bn.valuesIn=function(e){return null==e?[]:Jt(e,_s(e))},Bn.without=da,Bn.words=el,Bn.wrap=function(e,t){return Va(bo(t),e)},Bn.xor=ca,Bn.xorBy=ga,Bn.xorWith=ua,Bn.zip=ha,Bn.zipObject=function(e,t){return wo(e||[],t||[],ii)},Bn.zipObjectDeep=function(e,t){return wo(e||[],t||[],to)},Bn.zipWith=pa,Bn.entries=Hs,Bn.entriesIn=Bs,Bn.extend=Ss,Bn.extendWith=Ds,cl(Bn,Bn),Bn.add=bl,Bn.attempt=tl,Bn.camelCase=Us,Bn.capitalize=js,Bn.ceil=El,Bn.clamp=function(t,n,i){return i===e&&(i=n,n=e),i!==e&&(i=(i=ws(i))==i?i:0),n!==e&&(n=(n=ws(n))==n?n:0),di(ws(t),n,i)},Bn.clone=function(e){return ci(e,4)},Bn.cloneDeep=function(e){return ci(e,5)},Bn.cloneDeepWith=function(t,n){return ci(t,5,n="function"==typeof n?n:e)},Bn.cloneWith=function(t,n){return ci(t,4,n="function"==typeof n?n:e)},Bn.conformsTo=function(e,t){return null==t||gi(e,t,Fs(t))},Bn.deburr=Ks,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=Sl,Bn.endsWith=function(t,n,i){t=bs(t),n=uo(n);var o=t.length,r=i=i===e?o:di(fs(i),0,o);return(i-=n.length)>=0&&t.slice(i,r)==n},Bn.eq=Wa,Bn.escape=function(e){return(e=bs(e))&&Y.test(e)?e.replace(j,an):e},Bn.escapeRegExp=function(e){return(e=bs(e))&&te.test(e)?e.replace(ee,"\\$&"):e},Bn.every=function(t,n,i){var o=Ya(t)?Nt:vi;return i&&Er(t,n,i)&&(n=e),o(t,gr(n,3))},Bn.find=wa,Bn.findIndex=Kr,Bn.findKey=function(e,t){return Vt(e,gr(t,3),Ei)},Bn.findLast=ya,Bn.findLastIndex=Yr,Bn.findLastKey=function(e,t){return Vt(e,gr(t,3),Si)},Bn.floor=Dl,Bn.forEach=ba,Bn.forEachRight=Ea,Bn.forIn=function(e,t){return null==e?e:yi(e,gr(t,3),_s)},Bn.forInRight=function(e,t){return null==e?e:bi(e,gr(t,3),_s)},Bn.forOwn=function(e,t){return e&&Ei(e,gr(t,3))},Bn.forOwnRight=function(e,t){return e&&Si(e,gr(t,3))},Bn.get=Ms,Bn.gt=Ua,Bn.gte=ja,Bn.has=function(e,t){return null!=e&&Cr(e,t,Mi)},Bn.hasIn=Ns,Bn.head=Qr,Bn.identity=al,Bn.includes=function(e,t,n,i){e=Qa(e)?e:Ws(e),n=n&&!i?fs(n):0;var o=e.length;return n<0&&(n=yn(o+n,0)),cs(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Bt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=null==n?0:fs(n);return o<0&&(o=yn(i+o,0)),Bt(e,t,o)},Bn.inRange=function(t,n,i){return n=vs(n),i===e?(i=n,n=0):i=vs(i),function(e,t,n){return e>=bn(t,n)&&e<yn(t,n)}(t=ws(t),n,i)},Bn.invoke=Ls,Bn.isArguments=Ka,Bn.isArray=Ya,Bn.isArrayBuffer=$a,Bn.isArrayLike=Qa,Bn.isArrayLikeObject=qa,Bn.isBoolean=function(e){return!0===e||!1===e||os(e)&&Ai(e)==v},Bn.isBuffer=Xa,Bn.isDate=Za,Bn.isElement=function(e){return os(e)&&1===e.nodeType&&!ss(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Qa(e)&&(Ya(e)||"string"==typeof e||"function"==typeof e.splice||Xa(e)||us(e)||Ka(e)))return!e.length;var t=fr(e);if(t==b||t==R)return!e.size;if(Rr(e))return!Gi(e).length;for(var n in e)if(Oe.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Fi(e,t)},Bn.isEqualWith=function(t,n,i){var o=(i="function"==typeof i?i:e)?i(t,n):e;return o===e?Fi(t,n,e,i):!!o},Bn.isError=Ja,Bn.isFinite=function(e){return"number"==typeof e&&zt(e)},Bn.isFunction=es,Bn.isInteger=ts,Bn.isLength=ns,Bn.isMap=rs,Bn.isMatch=function(e,t){return e===t||_i(e,t,hr(t))},Bn.isMatchWith=function(t,n,i){return i="function"==typeof i?i:e,_i(t,n,hr(n),i)},Bn.isNaN=function(e){return as(e)&&e!=+e},Bn.isNative=function(e){if(Tr(e))throw new De("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Oi(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=as,Bn.isObject=is,Bn.isObjectLike=os,Bn.isPlainObject=ss,Bn.isRegExp=ls,Bn.isSafeInteger=function(e){return ts(e)&&e>=-9007199254740991&&e<=c},Bn.isSet=ds,Bn.isString=cs,Bn.isSymbol=gs,Bn.isTypedArray=us,Bn.isUndefined=function(t){return t===e},Bn.isWeakMap=function(e){return os(e)&&fr(e)==M},Bn.isWeakSet=function(e){return os(e)&&"[object WeakSet]"==Ai(e)},Bn.join=function(e,t){return null==e?"":Yt.call(e,t)},Bn.kebabCase=Ys,Bn.last=Jr,Bn.lastIndexOf=function(t,n,i){var o=null==t?0:t.length;if(!o)return-1;var r=o;return i!==e&&(r=(r=fs(i))<0?yn(o+r,0):bn(r,o-1)),n==n?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(t,n,r):Ht(t,Ut,r,!0)},Bn.lowerCase=$s,Bn.lowerFirst=Qs,Bn.lt=hs,Bn.lte=ps,Bn.max=function(t){return t&&t.length?fi(t,al,xi):e},Bn.maxBy=function(t,n){return t&&t.length?fi(t,gr(n,2),xi):e},Bn.mean=function(e){return jt(e,al)},Bn.meanBy=function(e,t){return jt(e,gr(t,2))},Bn.min=function(t){return t&&t.length?fi(t,al,Vi):e},Bn.minBy=function(t,n){return t&&t.length?fi(t,gr(n,2),Vi):e},Bn.stubArray=Cl,Bn.stubFalse=wl,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=Tl,Bn.nth=function(t,n){return t&&t.length?ji(t,fs(n)):e},Bn.noConflict=function(){return pt._===this&&(pt._=He),this},Bn.noop=gl,Bn.now=Ma,Bn.pad=function(e,t,n){e=bs(e);var i=(t=fs(t))?pn(e):0;if(!t||i>=t)return e;var o=(t-i)/2;return Yo(vt(o),n)+e+Yo(mt(o),n)},Bn.padEnd=function(e,t,n){e=bs(e);var i=(t=fs(t))?pn(e):0;return t&&i<t?e+Yo(t-i,n):e},Bn.padStart=function(e,t,n){e=bs(e);var i=(t=fs(t))?pn(e):0;return t&&i<t?Yo(t-i,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Sn(bs(e).replace(ne,""),t||0)},Bn.random=function(t,n,i){if(i&&"boolean"!=typeof i&&Er(t,n,i)&&(n=i=e),i===e&&("boolean"==typeof n?(i=n,n=e):"boolean"==typeof t&&(i=t,t=e)),t===e&&n===e?(t=0,n=1):(t=vs(t),n===e?(n=t,t=0):n=vs(n)),t>n){var o=t;t=n,n=o}if(i||t%1||n%1){var r=Dn();return bn(t+r*(n-t+ct("1e-"+((r+"").length-1))),n)}return qi(t,n)},Bn.reduce=function(e,t,n){var i=Ya(e)?Ot:$t,o=arguments.length<3;return i(e,gr(t,4),n,o,pi)},Bn.reduceRight=function(e,t,n){var i=Ya(e)?kt:$t,o=arguments.length<3;return i(e,gr(t,4),n,o,mi)},Bn.repeat=function(t,n,i){return n=(i?Er(t,n,i):n===e)?1:fs(n),Xi(bs(t),n)},Bn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(t,n,i){var o=-1,r=(n=Eo(n,t)).length;for(r||(r=1,t=e);++o<r;){var a=null==t?e:t[Vr(n[o])];a===e&&(o=r,a=i),t=es(a)?a.call(t):a}return t},Bn.round=Rl,Bn.runInContext=ie,Bn.sample=function(e){return(Ya(e)?Jn:Ji)(e)},Bn.size=function(e){if(null==e)return 0;if(Qa(e))return cs(e)?pn(e):e.length;var t=fr(e);return t==b||t==R?e.size:Gi(e).length},Bn.snakeCase=qs,Bn.some=function(t,n,i){var o=Ya(t)?Gt:ao;return i&&Er(t,n,i)&&(n=e),o(t,gr(n,3))},Bn.sortedIndex=function(e,t){return so(e,t)},Bn.sortedIndexBy=function(e,t,n){return lo(e,t,gr(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=so(e,t);if(i<n&&Wa(e[i],t))return i}return-1},Bn.sortedLastIndex=function(e,t){return so(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return lo(e,t,gr(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=so(e,t,!0)-1;if(Wa(e[n],t))return n}return-1},Bn.startCase=Xs,Bn.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:di(fs(n),0,e.length),t=uo(t),e.slice(n,n+t.length)==t},Bn.subtract=Al,Bn.sum=function(e){return e&&e.length?Qt(e,al):0},Bn.sumBy=function(e,t){return e&&e.length?Qt(e,gr(t,2)):0},Bn.template=function(t,n,i){var o=Bn.templateSettings;i&&Er(t,n,i)&&(n=e),t=bs(t),n=Ds({},n,o,tr);var r,a,s=Ds({},n.imports,o.imports,tr),l=Fs(s),d=Jt(s,l),c=0,g=n.interpolate||Ce,u="__p += '",h=xe((n.escape||Ce).source+"|"+g.source+"|"+(g===q?ce:Ce).source+"|"+(n.evaluate||Ce).source+"|$","g"),p="//# sourceURL="+(Oe.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";t.replace(h,(function(e,n,i,o,s,l){return i||(i=o),u+=t.slice(c,l).replace(we,sn),n&&(r=!0,u+="' +\n__e("+n+") +\n'"),s&&(a=!0,u+="';\n"+s+";\n__p += '"),i&&(u+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),c=l+e.length,e})),u+="';\n";var m=Oe.call(n,"variable")&&n.variable;if(m){if(le.test(m))throw new De("Invalid `variable` option passed into `_.template`")}else u="with (obj) {\n"+u+"\n}\n";u=(a?u.replace(H,""):u).replace(B,"$1").replace(W,"$1;"),u="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}";var v=tl((function(){return Te(l,p+"return "+u).apply(e,d)}));if(v.source=u,Ja(v))throw v;return v},Bn.times=function(e,t){if((e=fs(e))<1||e>c)return[];var n=u,i=bn(e,u);t=gr(t),e-=u;for(var o=qt(i,t);++n<e;)t(n);return o},Bn.toFinite=vs,Bn.toInteger=fs,Bn.toLength=Cs,Bn.toLower=function(e){return bs(e).toLowerCase()},Bn.toNumber=ws,Bn.toSafeInteger=function(e){return e?di(fs(e),-9007199254740991,c):0===e?e:0},Bn.toString=bs,Bn.toUpper=function(e){return bs(e).toUpperCase()},Bn.trim=function(t,n,i){if((t=bs(t))&&(i||n===e))return Xt(t);if(!t||!(n=uo(n)))return t;var o=mn(t),r=mn(n);return Do(o,tn(o,r),nn(o,r)+1).join("")},Bn.trimEnd=function(t,n,i){if((t=bs(t))&&(i||n===e))return t.slice(0,vn(t)+1);if(!t||!(n=uo(n)))return t;var o=mn(t);return Do(o,0,nn(o,mn(n))+1).join("")},Bn.trimStart=function(t,n,i){if((t=bs(t))&&(i||n===e))return t.replace(ne,"");if(!t||!(n=uo(n)))return t;var o=mn(t);return Do(o,tn(o,mn(n))).join("")},Bn.truncate=function(t,n){var i=30,o="...";if(is(n)){var r="separator"in n?n.separator:r;i="length"in n?fs(n.length):i,o="omission"in n?uo(n.omission):o}var a=(t=bs(t)).length;if(ln(t)){var s=mn(t);a=s.length}if(i>=a)return t;var l=i-pn(o);if(l<1)return o;var d=s?Do(s,0,l).join(""):t.slice(0,l);if(r===e)return d+o;if(s&&(l+=d.length-l),ls(r)){if(t.slice(l).search(r)){var c,g=d;for(r.global||(r=xe(r.source,bs(ge.exec(r))+"g")),r.lastIndex=0;c=r.exec(g);)var u=c.index;d=d.slice(0,u===e?l:u)}}else if(t.indexOf(uo(r),l)!=l){var h=d.lastIndexOf(r);h>-1&&(d=d.slice(0,h))}return d+o},Bn.unescape=function(e){return(e=bs(e))&&K.test(e)?e.replace(U,fn):e},Bn.uniqueId=function(e){var t=++ke;return bs(e)+t},Bn.upperCase=Zs,Bn.upperFirst=Js,Bn.each=ba,Bn.eachRight=Ea,Bn.first=Qr,cl(Bn,(yl={},Ei(Bn,(function(e,t){Oe.call(Bn.prototype,t)||(yl[t]=e)})),yl),{chain:!1}),Bn.VERSION="4.17.21",xt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),xt(["drop","take"],(function(t,n){Kn.prototype[t]=function(i){i=i===e?1:yn(fs(i),0);var o=this.__filtered__&&!n?new Kn(this):this.clone();return o.__filtered__?o.__takeCount__=bn(i,o.__takeCount__):o.__views__.push({size:bn(i,u),type:t+(o.__dir__<0?"Right":"")}),o},Kn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),xt(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;Kn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:gr(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),xt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Kn.prototype[e]=function(){return this[n](1).value()[0]}})),xt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Kn.prototype[e]=function(){return this.__filtered__?new Kn(this):this[n](1)}})),Kn.prototype.compact=function(){return this.filter(al)},Kn.prototype.find=function(e){return this.filter(e).head()},Kn.prototype.findLast=function(e){return this.reverse().find(e)},Kn.prototype.invokeMap=Zi((function(e,t){return"function"==typeof e?new Kn(this):this.map((function(n){return Ii(n,e,t)}))})),Kn.prototype.reject=function(e){return this.filter(Ga(gr(e)))},Kn.prototype.slice=function(t,n){t=fs(t);var i=this;return i.__filtered__&&(t>0||n<0)?new Kn(i):(t<0?i=i.takeRight(-t):t&&(i=i.drop(t)),n!==e&&(i=(n=fs(n))<0?i.dropRight(-n):i.take(n-t)),i)},Kn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Kn.prototype.toArray=function(){return this.take(u)},Ei(Kn.prototype,(function(t,n){var i=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),r=Bn[o?"take"+("last"==n?"Right":""):n],a=o||/^find/.test(n);r&&(Bn.prototype[n]=function(){var n=this.__wrapped__,s=o?[1]:arguments,l=n instanceof Kn,d=s[0],c=l||Ya(n),g=function(e){var t=r.apply(Bn,_t([e],s));return o&&u?t[0]:t};c&&i&&"function"==typeof d&&1!=d.length&&(l=c=!1);var u=this.__chain__,h=!!this.__actions__.length,p=a&&!u,m=l&&!h;if(!a&&c){n=m?n:new Kn(this);var v=t.apply(n,s);return v.__actions__.push({func:va,args:[g],thisArg:e}),new jn(v,u)}return p&&m?t.apply(this,s):(v=this.thru(g),p?o?v.value()[0]:v.value():v)})})),xt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var o=this.value();return t.apply(Ya(o)?o:[],e)}return this[n]((function(n){return t.apply(Ya(n)?n:[],e)}))}})),Ei(Kn.prototype,(function(e,t){var n=Bn[t];if(n){var i=n.name+"";Oe.call(Ln,i)||(Ln[i]=[]),Ln[i].push({name:t,func:n})}})),Ln[Wo(e,2).name]=[{name:"wrapper",func:e}],Kn.prototype.clone=function(){var e=new Kn(this.__wrapped__);return e.__actions__=Io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Io(this.__views__),e},Kn.prototype.reverse=function(){if(this.__filtered__){var e=new Kn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Kn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ya(e),i=t<0,o=n?e.length:0,r=function(e,t,n){for(var i=-1,o=n.length;++i<o;){var r=n[i],a=r.size;switch(r.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=yn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=r.start,s=r.end,l=s-a,d=i?s:a-1,c=this.__iteratees__,g=c.length,u=0,h=bn(l,this.__takeCount__);if(!n||!i&&o==l&&h==l)return fo(e,this.__actions__);var p=[];e:for(;l--&&u<h;){for(var m=-1,v=e[d+=t];++m<g;){var f=c[m],C=f.iteratee,w=f.type,y=C(v);if(2==w)v=y;else if(!y){if(1==w)continue e;break e}}p[u++]=v}return p},Bn.prototype.at=fa,Bn.prototype.chain=function(){return ma(this)},Bn.prototype.commit=function(){return new jn(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===e&&(this.__values__=ms(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},Bn.prototype.plant=function(t){for(var n,i=this;i instanceof Un;){var o=Br(i);o.__index__=0,o.__values__=e,n?r.__wrapped__=o:n=o;var r=o;i=i.__wrapped__}return r.__wrapped__=t,n},Bn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Kn){var n=t;return this.__actions__.length&&(n=new Kn(this)),(n=n.reverse()).__actions__.push({func:va,args:[ia],thisArg:e}),new jn(n,this.__chain__)}return this.thru(ia)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Ze&&(Bn.prototype[Ze]=function(){return this}),Bn}();vt?((vt.exports=Cn)._=Cn,mt._=Cn):pt._=Cn}.call(Ee);class RecordUpdateService extends GridDependency{constructor(e){var t;super(e),this._updatedRecords=new Map,this._internalRecordMap=new Map;const n=null===(t=this._grid.state)||void 0===t?void 0:t.__updatedRecords;n&&(null==n?void 0:n.length)>0&&n[0].getRecordId&&(this._updatedRecords=new Map(n.map((e=>{const t=e.clear,n=e.setValue,i=e.save;return e.clear=()=>{this._updatedRecords.delete(e.getRecordId()),t(),this._pcfContext.factory.requestRender()},e.save=()=>w(this,void 0,void 0,(function*(){const t=yield i();return t&&this._updatedRecords.delete(e.getRecordId()),[...e.columns.values()].map((t=>{var n;null===(n=this._internalRecordMap.get(e.getRecordId()))||void 0===n||n.setValue(t.name,e.getValue(t.name))})),t})),e.setValue=(e,t)=>{n(e,t),this._pcfContext.factory.requestRender()},[e.getRecordId(),e]}))))}get updatedRecords(){if(this._isReadOnlyChangeEditor()&&0===this._updatedRecords.size){const e=this._grid.records[0];for(const t of this._grid.columns)this.record(e.getRecordId()).setValue(t.key,e.getValue(t.key),!0)}return[...this._updatedRecords.values()]}get isDirty(){return this._updatedRecords.size>0}get hasInvalidRecords(){return!![...this._updatedRecords.values()].find((e=>{for(const t of e.columns.values())if(!e.isValid(t.name))return!0;return!1}))}record(e){return{get:()=>this._updatedRecords.get(e),setValue:(t,n,i)=>{if(!i&&this._isEqual(t,this._internalRecordMap.get(e).getValue(t),n))return;const o=this._updatedRecords.get(e);if(o)o.columns.set(t,this._getEntityColumnByKey(t));else{const n=Se.exports.cloneDeep(this._internalRecordMap.get(e));this._updatedRecords.set(e,{columns:new Map([[t,this._getEntityColumnByKey(t)]]),getRecordId:()=>e,getValue:t=>{var n;return null===(n=this._internalRecordMap.get(e))||void 0===n?void 0:n.getValue(t)},getFormattedValue:t=>{var n;return null===(n=this._internalRecordMap.get(e))||void 0===n?void 0:n.getFormattedValue(t)},getNamedReference:()=>n.getNamedReference(),getOriginalValue:e=>n.getValue(e),getOriginalFormattedValue:e=>n.getFormattedValue(e),getOriginalFormattedPrimaryNameValue:()=>{let e=this._dataset.columns.find((e=>e.isPrimary));e||(e=this._dataset.columns[0]);let t=n.getFormattedValue(e.name);return t||(t=this._grid.labels["no-name"]()),t},setValue:(t,n)=>{var i;null===(i=this._internalRecordMap.get(e))||void 0===i||i.setValue(t,n)},isValid:t=>{var n;const i=this._grid.columns.find((e=>e.key===t));if(!i)return!0;const[o,r]=new ColumnValidation(this._grid,i).validate(null===(n=this._internalRecordMap.get(e))||void 0===n?void 0:n.getValue(t));return o},clear:()=>{var t;const i=[...this._updatedRecords.get(e).columns.values()];this._updatedRecords.delete(e);for(const o of i)null===(t=this._internalRecordMap.get(e))||void 0===t||t.setValue(o.name,n.getValue(o.name))},save:()=>w(this,void 0,void 0,(function*(){var t;try{yield null===(t=this._internalRecordMap.get(e))||void 0===t?void 0:t.save(),this._updatedRecords.delete(e)}catch(e){return this._grid.pcfContext.navigation.openErrorDialog({message:"An error occurred during saving. Some of you changes might now have been saved.",details:e.message}),!1}return!0}))})}if(!i){const i=this._updatedRecords.get(e);null==i||i.setValue(t,n)}}}}saveAll(){return w(this,void 0,void 0,(function*(){const e=[];for(const t of this._updatedRecords.values())e.push(t.save());return!(yield Promise.all(e)).find((e=>!1===e))}))}clearAll(){return w(this,void 0,void 0,(function*(){for(const e of this._updatedRecords.values())e.clear()}))}onDependenciesUpdated(){for(const[e,t]of Object.entries(this._grid.dataset.records))this._internalRecordMap.set(e,t)}_getEntityColumnByKey(e){const t=this._grid.columns.find((t=>t.key===e));return this._dataset.columns.find((e=>t.entityAliasName?e.name===t.attributeName&&e.alias===t.entityAliasName:e.name===t.attributeName))}_isReadOnlyChangeEditor(){var e;return"read"===(null===(e=this._grid.props.parameters.ChangeEditorMode)||void 0===e?void 0:e.raw)}_isEqual(e,t,n){const i=this._grid.columns.find((t=>t.key===e));return(null==i?void 0:i.dataType)===Ce.CURRENCY&&(R.currency(this._grid.pcfContext.userSettings.numberFormattingInfo),(n=T(n).value())===t)||(t==n||D(t,n))}}class Metadata extends GridDependency{get(e){return w(this,void 0,void 0,(function*(){if(e.entityAliasName){const t=this._grid.dataset.linking.getLinkedEntities().find((t=>t.alias===e.entityAliasName));return yield this._grid.pcfContext.utils.getEntityMetadata(t.name,[e.attributeName])}return yield this._grid.pcfContext.utils.getEntityMetadata(this._grid.dataset.getTargetEntityType(),[e.attributeName])}))}getOptions(e){return w(this,void 0,void 0,(function*(){const t=yield this.get(e),n=t.Attributes.get(e.attributeName).attributeDescriptor.OptionSet;return[t.Attributes.get(e.attributeName).DefaultFormValue,n]}))}}class Grid$1{constructor(e,t){this._columns=[],this._records=[],this._shouldRerender=!1,this._props=e,this._dataset=e.parameters.Grid,this._pcfContext=e.context,this._labels=t,this._dependencies={recordUpdateService:new RecordUpdateService(this),filtering:new Filtering(this),selection:new Selection(this),metadata:new Metadata(this),sorting:new Sorting(this),paging:new Paging$1(this)}}get isNavigationEnabled(){var e;return!1!==(null===(e=this.parameters.EnableNavigation)||void 0===e?void 0:e.raw)}get isEditable(){return!!this._columns.find((e=>e.isEditable))}get parameters(){return this._props.parameters}get error(){return this._dataset.error}get errorMessage(){return this._dataset.errorMessage}get labels(){return this._labels}get dataset(){return this._dataset}get pcfContext(){return this._pcfContext}get props(){return this._props}get columns(){return this._columns}get records(){return this._records}get recordUpdateService(){return this._dependencies.recordUpdateService}get sorting(){return this._dependencies.sorting}get metadata(){return this._dependencies.metadata}get filtering(){return this._dependencies.filtering}get selection(){return this._dependencies.selection}get paging(){return this._dependencies.paging}get shouldRerender(){return this._shouldRerender}get loading(){return this._dataset.loading}get state(){return this._props.state}get useContainerAsHeight(){var e;return!0===(null===(e=this.parameters.UseContainerAsHeight)||void 0===e?void 0:e.raw)}get enableOptionSetColors(){var e;return!0===(null===(e=this.parameters.EnableOptionSetColors)||void 0===e?void 0:e.raw)}get linking(){return this.dataset.linking}get inlineRibbonButtonIds(){var e;const t=null===(e=this.parameters.InlineRibbonButtonIds)||void 0===e?void 0:e.raw;if(t)return t.split(",")}openDatasetItem(e){this._dataset.openDatasetItem(e);const t=this._records.find((t=>t.getRecordId()===e.id.guid));t&&this.selection.toggle(t,!0,!0,!0)}updateDependencies(e){this._props=e,this._dataset=e.parameters.Grid,this._pcfContext=e.context;for(const[e,t]of Object.entries(this._dependencies))t.onDependenciesUpdated();this._shouldRerender=!this.shouldRerender}refreshColumns(){var e,t,n,i,o,r;return w(this,void 0,void 0,(function*(){const a=[];for(const s of this._dataset.columns){const l=null===(e=this._dataset.sorting)||void 0===e?void 0:e.find((e=>e.name===s.name)),d=(null===(t=s.name)||void 0===t?void 0:t.includes("."))?s.name.split(".")[0]:null,c=d?s.name.split(".")[1]:s.name,g=d?`${d}.${c}`:c;switch(s.dataType){case Ce.FILE:case Ce.IMAGE:if(d)continue}const u={entityAliasName:d,attributeName:c,key:d?`${d}.${c}`:c,isPrimary:s.isPrimary,dataType:s.dataType,displayName:s.displayName,isEditable:s.isEditable,isFilterable:this._isColumnFilterable(s),isRequired:s.isRequired,isSortable:this._isColumnSortable(s),isSorted:!!l,isSortedDescending:1===(null==l?void 0:l.sortDirection),width:(null===(o=null===(i=null===(n=this.state)||void 0===n?void 0:n.columnSizing)||void 0===i?void 0:i.columnSizingModel)||void 0===o?void 0:o.find((e=>e.colId===g)).width)||s.visualSizeFactor,isResizable:null===(r=s.isResizable)||void 0===r||r},h=yield this.filtering.condition(u);u.isFiltered=h.isAppliedToDataset,u.isEditable=yield this._isColumnEditable(u),u.isRequired=yield this._isColumnRequired(u),u.key===ve&&(u.isFilterable=!1,u.isSortable=!1),a.push(u)}return void 0!==this.selection.type&&a.unshift({key:"__checkbox",attributeName:"__checkbox",width:45,isResizable:!1}),this._columns=a,a}))}refreshRecords(){const e=[];for(const[t,n]of Object.entries(this._dataset.records))e.push(n);return this._records=e,e}_isColumnEditable(e){var t,n,i;return w(this,void 0,void 0,(function*(){if("boolean"==typeof e.isEditable)return e.isEditable;if(!(null===(t=this._props.parameters.EnableEditing)||void 0===t?void 0:t.raw))return!1;if(e.entityAliasName)return!1;switch(e.dataType){case Ce.FILE:case Ce.IMAGE:return!1}const o=yield this._pcfContext.utils.getEntityMetadata(this._dataset.getTargetEntityType(),[e.attributeName]);return null!==(i=null===(n=o.Attributes.get(e.attributeName))||void 0===n?void 0:n.attributeDescriptor.IsValidForUpdate)&&void 0!==i&&i}))}_isColumnRequired(e){var t,n;return w(this,void 0,void 0,(function*(){if("boolean"==typeof e.isRequired)return e.isRequired;if(!(null===(t=this.parameters.EnableEditing)||void 0===t?void 0:t.raw))return!1;const i=yield this.metadata.get(e),o=null===(n=i.Attributes.get(e.attributeName))||void 0===n?void 0:n.attributeDescriptor.RequiredLevel;return 1===o||2===o}))}_isColumnSortable(e){var t;return!1!==(null===(t=this._props.parameters.EnableSorting)||void 0===t?void 0:t.raw)&&(e.dataType!==Ce.IMAGE&&!e.disableSorting)}_isColumnFilterable(e){var t,n;return!1!==(null===(t=this.props.parameters.EnableFiltering)||void 0===t?void 0:t.raw)&&(null===(n=e.isFilterable)||void 0===n||n)}}var De=Object.defineProperty,Te=Object.defineProperties,Re=Object.getOwnPropertyDescriptor,Ae=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Pe=(e,t,n)=>t in e?De(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ie=(e,t)=>{for(var n in t||(t={}))Me.call(t,n)&&Pe(e,n,t[n]);if(xe)for(var n of xe(t))Ne.call(t,n)&&Pe(e,n,t[n]);return e},Le=(e,t)=>Te(e,Ae(t)),Fe=(e,t)=>{for(var n in t)De(e,n,{get:t[n],enumerable:!0})},_e=(e,t,n,i)=>{for(var o,r=i>1?void 0:i?Re(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&De(t,n,r),r},Oe=(e,t)=>(n,i)=>t(n,i,e),ke={};function Ge(e){return null==e||""===e?null:e}function ze(e,t=!1){return null!=e&&(""!==e||t)}function Ve(e){return!ze(e)}function He(e){return null==e||0===e.length}function Be(e){return null!=e&&"function"==typeof e.toString?e.toString():null}function We(e){if(void 0===e)return;if(null===e||""===e)return null;if("number"==typeof e)return isNaN(e)?void 0:e;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Ue(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"==typeof e?e:/true/i.test(e))}function je(e){if(null!=e&&""!==e)return e}function Ke(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)}function Ye(e,t,n=!1){const i=null==e,o=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),i&&o)return 0;if(i)return-1;if(o)return 1;function r(e,t){return e>t?1:e<t?-1:0}if("string"!=typeof e)return r(e,t);if(!n)return r(e,t);try{return e.localeCompare(t)}catch(n){return r(e,t)}}function $e(e){if(e instanceof Set||e instanceof Map){const t=[];return e.forEach((e=>t.push(e))),t}return Object.values(e)}Fe(ke,{attrToBoolean:()=>Ue,attrToNumber:()=>We,attrToString:()=>je,defaultComparator:()=>Ye,exists:()=>ze,jsonEquals:()=>Ke,makeNull:()=>Ge,missing:()=>Ve,missingOrEmpty:()=>He,toStringOrNull:()=>Be,values:()=>$e});var Qe={};function qe(e,t){if(null!=e)if(Array.isArray(e))for(let n=0;n<e.length;n++)t(n.toString(),e[n]);else for(const[n,i]of Object.entries(e))t(n,i)}function Xe(e){const t={},n=Object.keys(e);for(let i=0;i<n.length;i++){const o=n[i],r=e[o];t[o]=r}return t}function Ze(e,t){if(!e)return;const n=e,i={};return Object.keys(n).forEach((e=>{if(t&&t.indexOf(e)>=0)return;const o=n[e],r=it(o)&&o.constructor===Object;i[e]=r?Ze(o):o})),i}function Je(e){if(!e)return[];const t=Object;if("function"==typeof t.values)return t.values(e);const n=[];for(const t in e)e.hasOwnProperty(t)&&e.propertyIsEnumerable(t)&&n.push(e[t]);return n}function et(e,t,n=!0,i=!1){ze(t)&&qe(t,((t,o)=>{let r=e[t];if(r!==o){if(i){if(null==r&&null!=o){"object"==typeof o&&o.constructor===Object&&(r={},e[t]=r)}}it(o)&&it(r)&&!Array.isArray(r)?et(r,o,n,i):(n||void 0!==o)&&(e[t]=o)}}))}function tt(e,t,n){if(!t||!e)return;if(!n)return e[t];const i=t.split(".");let o=e;for(let e=0;e<i.length;e++){if(null==o)return;o=o[i[e]]}return o}function nt(e,t=[],n){Object.keys(e).forEach((n=>{"object"!=typeof e[n]||t.includes(n)||(e[n]=void 0)}));const i=Object.getPrototypeOf(e),o={};Object.getOwnPropertyNames(i).forEach((e=>{if("function"==typeof i[e]&&!t.includes(e)){const t=()=>{console.warn((e=>`AG Grid: Grid API function ${e}() cannot be called as the grid has been destroyed.\n It is recommended to remove local references to the grid api. Alternatively, check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.\n To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${n}`)(e))};o[e]={value:t,writable:!0}}})),Object.defineProperties(e,o)}function it(e){return"object"==typeof e&&null!==e}Fe(Qe,{cloneObject:()=>Xe,deepCloneDefinition:()=>Ze,getAllValuesInObject:()=>Je,getValueUsingField:()=>tt,isNonNullObject:()=>it,iterateObject:()=>qe,mergeDeep:()=>et,removeAllReferences:()=>nt});var ot={};Fe(ot,{compose:()=>wt,debounce:()=>vt,doOnce:()=>at,errorOnce:()=>lt,executeAfter:()=>mt,executeInAWhile:()=>gt,executeNextVMTurn:()=>pt,getFunctionName:()=>dt,isFunction:()=>ct,noop:()=>yt,throttle:()=>ft,waitUntil:()=>Ct,warnOnce:()=>st});var rt={};function at(e,t){rt[t]||(e(),rt[t]=!0)}function st(e){at((()=>console.warn("AG Grid: "+e)),e)}function lt(e){at((()=>console.error("AG Grid: "+e)),e)}function dt(e){if(e.name)return e.name;const t=/function\s+([^\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function ct(e){return!!(e&&e.constructor&&e.call&&e.apply)}function gt(e){mt(e,400)}var ut=[],ht=!1;function pt(e){ut.push(e),ht||(ht=!0,window.setTimeout((()=>{const e=ut.slice();ut.length=0,ht=!1,e.forEach((e=>e()))}),0))}function mt(e,t=0){e.length>0&&window.setTimeout((()=>e.forEach((e=>e()))),t)}function vt(e,t){let n;return function(...i){const o=this;window.clearTimeout(n),n=window.setTimeout((function(){e.apply(o,i)}),t)}}function ft(e,t){let n=0;return function(...i){const o=(new Date).getTime();o-n<t||(n=o,e.apply(this,i))}}function Ct(e,t,n=100,i){const o=(new Date).getTime();let r=null,a=!1;const s=()=>{const s=(new Date).getTime()-o>n;(e()||s)&&(t(),a=!0,null!=r&&(window.clearInterval(r),r=null),s&&i&&console.warn(i))};s(),a||(r=window.setInterval(s,10))}function wt(...e){return t=>e.reduce(((e,t)=>t(e)),t)}var yt=()=>{},bt=(e=>(e.CommunityCoreModule="@ag-grid-community/core",e.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",e.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",e.CsvExportModule="@ag-grid-community/csv-export",e.EnterpriseCoreModule="@ag-grid-enterprise/core",e.RowGroupingModule="@ag-grid-enterprise/row-grouping",e.ColumnsToolPanelModule="@ag-grid-enterprise/column-tool-panel",e.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",e.MenuModule="@ag-grid-enterprise/menu",e.SetFilterModule="@ag-grid-enterprise/set-filter",e.MultiFilterModule="@ag-grid-enterprise/multi-filter",e.StatusBarModule="@ag-grid-enterprise/status-bar",e.SideBarModule="@ag-grid-enterprise/side-bar",e.RangeSelectionModule="@ag-grid-enterprise/range-selection",e.MasterDetailModule="@ag-grid-enterprise/master-detail",e.RichSelectModule="@ag-grid-enterprise/rich-select",e.GridChartsModule="@ag-grid-enterprise/charts",e.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",e.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",e.ExcelExportModule="@ag-grid-enterprise/excel-export",e.ClipboardModule="@ag-grid-enterprise/clipboard",e.SparklinesModule="@ag-grid-enterprise/sparklines",e.AdvancedFilterModule="@ag-grid-enterprise/advanced-filter",e.AngularModule="@ag-grid-community/angular",e.ReactModule="@ag-grid-community/react",e.VueModule="@ag-grid-community/vue",e))(bt||{}),Et=class _ModuleRegistry{static register(e){_ModuleRegistry.__register(e,!0,void 0)}static registerModules(e){_ModuleRegistry.__registerModules(e,!0,void 0)}static __register(e,t,n){_ModuleRegistry.runVersionChecks(e),void 0!==n?(_ModuleRegistry.areGridScopedModules=!0,void 0===_ModuleRegistry.gridModulesMap[n]&&(_ModuleRegistry.gridModulesMap[n]={}),_ModuleRegistry.gridModulesMap[n][e.moduleName]=e):_ModuleRegistry.globalModulesMap[e.moduleName]=e,_ModuleRegistry.setModuleBased(t)}static __unRegisterGridModules(e){delete _ModuleRegistry.gridModulesMap[e]}static __registerModules(e,t,n){_ModuleRegistry.setModuleBased(t),e&&e.forEach((e=>_ModuleRegistry.__register(e,t,n)))}static isValidModuleVersion(e){const[t,n]=e.version.split(".")||[],[i,o]=_ModuleRegistry.currentModuleVersion.split(".")||[];return t===i&&n===o}static runVersionChecks(e){if(_ModuleRegistry.currentModuleVersion||(_ModuleRegistry.currentModuleVersion=e.version),e.version?_ModuleRegistry.isValidModuleVersion(e)||console.error(`AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '${e.moduleName}' is version ${e.version} but the other modules are version ${this.currentModuleVersion}. Please update all modules to the same version.`):console.error(`AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '${e.moduleName}' is incompatible. Please update all modules to the same version.`),e.validate){const t=e.validate();if(!t.isValid){const e=t;console.error(`AG Grid: ${e.message}`)}}}static setModuleBased(e){void 0===_ModuleRegistry.moduleBased?_ModuleRegistry.moduleBased=e:_ModuleRegistry.moduleBased!==e&&at((()=>{console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/modules/ for more information.")}),"ModulePackageCheck")}static __setIsBundled(){_ModuleRegistry.isBundled=!0}static __assertRegistered(e,t,n){var i;if(this.__isRegistered(e,n))return!0;const o=t+e;let r;if(_ModuleRegistry.isBundled)r=`AG Grid: unable to use ${t} as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle:\n \n <script src="https://cdn.jsdelivr.net/npm/ag-grid-enterprise@AG_GRID_VERSION/dist/ag-grid-enterprise.min.js"><\/script>\n \nFor more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise`;else if(_ModuleRegistry.moduleBased||void 0===_ModuleRegistry.moduleBased){let o=null==(i=Object.entries(bt).find((([t,n])=>n===e)))?void 0:i[0];r=`AG Grid: unable to use ${t} as the ${o} is not registered${_ModuleRegistry.areGridScopedModules?` for gridId: ${n}`:""}. Check if you have registered the module:\n \n import { ModuleRegistry } from '@ag-grid-community/core';\n import { ${o} } from '${e}';\n \n ModuleRegistry.registerModules([ ${o} ]);\n\nFor more info see: https://www.ag-grid.com/javascript-grid/modules/`}else r=`AG Grid: unable to use ${t} as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package:\n \n import 'ag-grid-enterprise';`;return at((()=>{console.warn(r)}),o),!1}static __isRegistered(e,t){var n;return!!_ModuleRegistry.globalModulesMap[e]||!!(null==(n=_ModuleRegistry.gridModulesMap[t])?void 0:n[e])}static __getRegisteredModules(e){return[...$e(_ModuleRegistry.globalModulesMap),...$e(_ModuleRegistry.gridModulesMap[e]||{})]}static __getGridRegisteredModules(e){var t;return $e(null!=(t=_ModuleRegistry.gridModulesMap[e])?t:{})||[]}static __isPackageBased(){return!_ModuleRegistry.moduleBased}};Et.globalModulesMap={},Et.gridModulesMap={},Et.areGridScopedModules=!1;var St=Et;function Dt(e,t,n){const i=It(e.constructor);i.preConstructMethods||(i.preConstructMethods=[]),i.preConstructMethods.push(t)}function Tt(e,t,n){const i=It(e.constructor);i.postConstructMethods||(i.postConstructMethods=[]),i.postConstructMethods.push(t)}function Rt(e,t,n){const i=It(e.constructor);i.preDestroyMethods||(i.preDestroyMethods=[]),i.preDestroyMethods.push(t)}function At(e){return t=>{It(t).beanName=e}}function xt(e){return(t,n,i)=>{Nt(t,e,!1,t,n,null)}}function Mt(e){return(t,n,i)=>{Nt(t,e,!0,t,n,null)}}function Nt(e,t,n,i,o,r){if(null===t)return void console.error("AG Grid: Autowired name should not be null");if("number"==typeof r)return void console.error("AG Grid: Autowired should be on an attribute");const a=It(e.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.agClassAttributes.push({attributeName:o,beanName:t,optional:n})}function Pt(e){return(t,n,i)=>{const o="function"==typeof t?t:t.constructor;let r;if("number"==typeof i){let t;n?(r=It(o),t=n):(r=It(o),t="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[t]||(r.autowireMethods[t]={}),r.autowireMethods[t][i]=e}}}function It(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}var Lt=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={}}setBeans(e,t,n=null,i=null){if(this.frameworkOverrides=t,this.gos=e,n){const t=e.useAsyncEvents();this.addGlobalListener(n,t)}i&&this.addGlobalListener(i,!1)}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,n){const i=t?this.allAsyncListeners:this.allSyncListeners;let o=i.get(e);return!o&&n&&(o=new Set,i.set(e,o)),o}noRegisteredListenersExist(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size}addEventListener(e,t,n=!1){this.getListeners(e,n,!0).add(t)}removeEventListener(e,t,n=!1){const i=this.getListeners(e,n,!1);if(i&&(i.delete(t),0===i.size)){(n?this.allAsyncListeners:this.allSyncListeners).delete(e)}}addGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)}removeGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)}dispatchEvent(e){let t=e;this.gos&&this.gos.addGridCommonParams(t),this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){var n;const i=e.type;if(t&&"event"in e){const t=e.event;t instanceof Event&&(e.eventPath=t.composedPath())}const o=(n,i)=>n.forEach((n=>{if(!i.has(n))return;const o=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming((()=>n(e))):()=>n(e);t?this.dispatchAsync(o):o()})),r=null!=(n=this.getListeners(i,t,!1))?n:new Set,a=new Set(r);a.size>0&&o(a,r);new Set(t?this.globalAsyncListeners:this.globalSyncListeners).forEach((n=>{const o=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming((()=>n(i,e))):()=>n(i,e);t?this.dispatchAsync(o):o()}))}dispatchAsync(e){this.asyncFunctionsQueue.push(e),this.scheduled||(this.frameworkOverrides.wrapIncoming((()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)})),this.scheduled=!0)}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((e=>e()))}};_e([Oe(0,Pt("gridOptionsService")),Oe(1,Pt("frameworkOverrides")),Oe(2,Pt("globalEventListener")),Oe(3,Pt("globalSyncEventListener"))],Lt.prototype,"setBeans",1),Lt=_e([At("eventService")],Lt);var Ft=class{constructor(e){this.frameworkOverrides=e,this.wrappedListeners=new Map,this.wrappedGlobalListeners=new Map}wrap(e){let t=e;return this.frameworkOverrides.shouldWrapOutgoing&&(t=t=>{this.frameworkOverrides.wrapOutgoing((()=>e(t)))},this.wrappedListeners.set(e,t)),t}wrapGlobal(e){let t=e;return this.frameworkOverrides.shouldWrapOutgoing&&(t=(t,n)=>{this.frameworkOverrides.wrapOutgoing((()=>e(t,n)))},this.wrappedGlobalListeners.set(e,t)),t}unwrap(e){var t;return null!=(t=this.wrappedListeners.get(e))?t:e}unwrapGlobal(e){var t;return null!=(t=this.wrappedGlobalListeners.get(e))?t:e}},_t={resizable:!0,sortable:!0},Ot=0;function kt(){return Ot++}var Gt=class _Column{constructor(e,t,n,i){this.instanceId=kt(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.eventService=new Lt,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=i,this.setState(e)}getInstanceId(){return this.instanceId}setState(e){void 0!==e.sort?"asc"!==e.sort&&"desc"!==e.sort||(this.sort=e.sort):"asc"!==e.initialSort&&"desc"!==e.initialSort||(this.sort=e.initialSort);const t=e.sortIndex,n=e.initialSortIndex;void 0!==t?null!==t&&(this.sortIndex=t):null!==n&&(this.sortIndex=n);const i=e.hide,o=e.initialHide;this.visible=void 0!==i?!i:!o,void 0!==e.pinned?this.setPinned(e.pinned):this.setPinned(e.initialPinned);const r=e.flex,a=e.initialFlex;void 0!==r?this.flex=r:void 0!==a&&(this.flex=a)}setColDef(e,t,n){this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),this.eventService.dispatchEvent(this.createColumnEvent("colDefChanged",n))}getUserProvidedColDef(){return this.userProvidedColDef}setParent(e){this.parent=e}getParent(){return this.parent}setOriginalParent(e){this.originalParent=e}getOriginalParent(){return this.originalParent}initialise(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip()}initDotNotation(){const e=this.gos.get("suppressFieldDotNotation");this.fieldContainsDots=ze(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=ze(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!e}initMinAndMaxWidths(){var e,t;const n=this.colDef;this.minWidth=null!=(e=n.minWidth)?e:this.environment.getMinColWidth(),this.maxWidth=null!=(t=n.maxWidth)?t:Number.MAX_SAFE_INTEGER}initTooltip(){this.tooltipEnabled=ze(this.colDef.tooltipField)||ze(this.colDef.tooltipValueGetter)||ze(this.colDef.tooltipComponent)}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){var t,n;const i=null!=(t=e.minWidth)?t:this.environment.getMinColWidth(),o=null!=(n=e.maxWidth)?n:Number.MAX_SAFE_INTEGER;let r;const a=We(e.width),s=We(e.initialWidth);return r=null!=a?a:null!=s?s:200,Math.max(Math.min(r,o),i)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){if(Ve(this.colDef)||Ve(this.colDef.showRowGroup))return!1;const t=!0===this.colDef.showRowGroup,n=this.colDef.showRowGroup===e;return t||n}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}addEventListener(e,t){var n,i;this.frameworkOverrides.shouldWrapOutgoing&&!this.frameworkEventListenerService&&(this.eventService.setFrameworkOverrides(this.frameworkOverrides),this.frameworkEventListenerService=new Ft(this.frameworkOverrides));const o=null!=(i=null==(n=this.frameworkEventListenerService)?void 0:n.wrap(t))?i:t;this.eventService.addEventListener(e,o)}removeEventListener(e,t){var n,i;const o=null!=(i=null==(n=this.frameworkEventListenerService)?void 0:n.unwrap(t))?i:t;this.eventService.removeEventListener(e,o)}createColumnFunctionCallbackParams(e){return this.gos.addGridCommonParams({node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){const t=this.createColumnFunctionCallbackParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1}isCellEditable(e){return!(e.group&&!this.gos.get("enableGroupEdit"))&&this.isColumnFunc(e,this.colDef.editable)}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.isColumnFunc(e,this.colDef.checkboxSelection)}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){var t;return null!=(t=this.colDef[e])?t:_t[e]}isColumnFunc(e,t){if("boolean"==typeof t)return t;if("function"==typeof t){return t(this.createColumnFunctionCallbackParams(e))}return!1}setMoving(e,t){this.moving=e,this.eventService.dispatchEvent(this.createColumnEvent("movingChanged",t))}createColumnEvent(e,t){return this.gos.addGridCommonParams({type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sort}setSort(e,t){this.sort!==e&&(this.sort=e,this.eventService.dispatchEvent(this.createColumnEvent("sortChanged",t))),this.dispatchStateUpdatedEvent("sort")}setMenuVisible(e,t){this.menuVisible!==e&&(this.menuVisible=e,this.eventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",t)))}isMenuVisible(){return this.menuVisible}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return"asc"===this.sort}isSortDescending(){return"desc"===this.sort}isSortNone(){return Ve(this.sort)}isSorting(){return ze(this.sort)}getSortIndex(){return this.sortIndex}setSortIndex(e){this.sortIndex=e,this.dispatchStateUpdatedEvent("sortIndex")}setAggFunc(e){this.aggFunc=e,this.dispatchStateUpdatedEvent("aggFunc")}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.eventService.dispatchEvent(this.createColumnEvent("leftChanged",t)))}isFilterActive(){return this.filterActive}setFilterActive(e,t,n){this.filterActive!==e&&(this.filterActive=e,this.eventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",t)));const i=this.createColumnEvent("filterChanged",t);n&&et(i,n),this.eventService.dispatchEvent(i)}isHovered(){return this.columnHoverService.isHovered(this)}setPinned(e){this.pinned=!0===e||"left"===e?"left":"right"===e?"right":null,this.dispatchStateUpdatedEvent("pinned")}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.eventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",t)))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.eventService.dispatchEvent(this.createColumnEvent("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){const n=!0===e;this.visible!==n&&(this.visible=n,this.eventService.dispatchEvent(this.createColumnEvent("visibleChanged",t))),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){const e=this.getColDef();return!e.suppressSpanHeaderHeight&&!e.autoHeaderHeight}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let n=!0;for(;e;){if(!e.isPadding()){n=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:n}}getColDef(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getDefinition(){return this.colDef}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return this.gos.addGridCommonParams({node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(Ve(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)}getRowSpan(e){if(Ve(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)}setActualWidth(e,t,n=!1){null!=this.minWidth&&(e=Math.max(e,this.minWidth)),null!=this.maxWidth&&(e=Math.min(e,this.maxWidth)),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&"flex"!==t&&"gridInitializing"!==t&&(this.flex=null),n||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.eventService.dispatchEvent(this.createColumnEvent("widthChanged",e))}isGreaterThanMax(e){return null!=this.maxWidth&&e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex||0}setFlex(e){this.flex!==e&&(this.flex=e),this.dispatchStateUpdatedEvent("flex")}setMinimum(e){ze(this.minWidth)&&this.setActualWidth(this.minWidth,e)}setRowGroupActive(e,t){this.rowGroupActive!==e&&(this.rowGroupActive=e,this.eventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",t))),this.dispatchStateUpdatedEvent("rowGroup")}isRowGroupActive(){return this.rowGroupActive}setPivotActive(e,t){this.pivotActive!==e&&(this.pivotActive=e,this.eventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",t))),this.dispatchStateUpdatedEvent("pivot")}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}setValueActive(e,t){this.aggregationActive!==e&&(this.aggregationActive=e,this.eventService.dispatchEvent(this.createColumnEvent("columnValueChanged",t)))}isValueActive(){return this.aggregationActive}isAllowPivot(){return!0===this.colDef.enablePivot}isAllowValue(){return!0===this.colDef.enableValue}isAllowRowGroup(){return!0===this.colDef.enableRowGroup}getMenuTabs(e){st("As of v31.1, 'getMenuTabs' is deprecated. Use 'getColDef().menuTabs ?? defaultValues' instead.");let t=this.getColDef().menuTabs;return null==t&&(t=e),t}dispatchStateUpdatedEvent(e){this.eventService.dispatchEvent({type:_Column.EVENT_STATE_UPDATED,key:e})}};Gt.EVENT_MOVING_CHANGED="movingChanged",Gt.EVENT_LEFT_CHANGED="leftChanged",Gt.EVENT_WIDTH_CHANGED="widthChanged",Gt.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",Gt.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",Gt.EVENT_VISIBLE_CHANGED="visibleChanged",Gt.EVENT_FILTER_CHANGED="filterChanged",Gt.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",Gt.EVENT_SORT_CHANGED="sortChanged",Gt.EVENT_COL_DEF_CHANGED="colDefChanged",Gt.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",Gt.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",Gt.EVENT_PIVOT_CHANGED="columnPivotChanged",Gt.EVENT_VALUE_CHANGED="columnValueChanged",Gt.EVENT_STATE_UPDATED="columnStateUpdated",_e([xt("gridOptionsService")],Gt.prototype,"gos",2),_e([xt("environment")],Gt.prototype,"environment",2),_e([xt("columnHoverService")],Gt.prototype,"columnHoverService",2),_e([xt("frameworkOverrides")],Gt.prototype,"frameworkOverrides",2),_e([Tt],Gt.prototype,"initialise",1);var zt=Gt,Vt=class _ProvidedColumnGroup{constructor(e,t,n,i){this.localEventService=new Lt,this.expandable=!1,this.instanceId=kt(),this.expandableListenerRemoveCallback=null,this.colGroupDef=e,this.groupId=t,this.expanded=!!e&&!!e.openByDefault,this.padding=n,this.level=i}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0)}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}setOriginalParent(e){this.originalParent=e}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;const t={type:_ProvidedColumnGroup.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(t)}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(){const e=[];return this.addLeafColumns(e),e}addLeafColumns(e){this.children&&this.children.forEach((t=>{t instanceof zt?e.push(t):t instanceof _ProvidedColumnGroup&&t.addLeafColumns(e)}))}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach((t=>t.addEventListener("visibleChanged",e))),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach((t=>t.removeEventListener("visibleChanged",e))),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,n=!1;const i=this.findChildrenRemovingPadding();for(let o=0,r=i.length;o<r;o++){const r=i[o];if(!r.isVisible())continue;const a=r.getColumnGroupShow();"open"===a?(e=!0,n=!0):"closed"===a?(t=!0,n=!0):(e=!0,t=!0)}const o=e&&t&&n;if(this.expandable!==o){this.expandable=o;const e={type:_ProvidedColumnGroup.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(e)}}findChildrenRemovingPadding(){const e=[],t=n=>{n.forEach((n=>{n instanceof _ProvidedColumnGroup&&n.isPadding()?t(n.children):e.push(n)}))};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}addEventListener(e,t){this.localEventService.addEventListener(e,t)}removeEventListener(e,t){this.localEventService.removeEventListener(e,t)}};Vt.EVENT_EXPANDED_CHANGED="expandedChanged",Vt.EVENT_EXPANDABLE_CHANGED="expandableChanged",_e([Rt],Vt.prototype,"destroy",1);var Ht=Vt,Bt={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},Wt={};Fe(Wt,{addSafePassiveEventListener:()=>yn,createEventPath:()=>Cn,getCtrlForEventTarget:()=>vn,getEventPath:()=>wn,isElementInEventPath:()=>fn,isEventSupported:()=>mn,isStopPropagationForAgGrid:()=>pn,stopPropagationForAgGrid:()=>hn});var Ut={};function jt(e){return null!=e&&e.length>0}function Kt(e){if(e&&e.length)return e[e.length-1]}function Yt(e,t,n){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every(((e,i)=>n?n(e,t[i]):t[i]===e))}function $t(e,t){return Yt(e,t)}function Qt(e){return e.sort(((e,t)=>e-t))}function qt(e,t){if(e)for(let n=e.length-2;n>=0;n--){const i=e[n]===t,o=e[n+1]===t;i&&o&&e.splice(n+1,1)}}function Xt(e,t){const n=e.indexOf(t);n>=0&&(e[n]=e[e.length-1],e.pop())}function Zt(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}function Jt(e,t){for(let n=0;n<t.length;n++)Xt(e,t[n])}function en(e,t){for(let n=0;n<t.length;n++)Zt(e,t[n])}function tn(e,t,n){e.splice(n,0,t)}function nn(e,t,n){if(null!=e&&null!=t)for(let i=t.length-1;i>=0;i--){tn(e,t[i],n)}}function on(e,t,n){en(e,t),t.slice().reverse().forEach((t=>tn(e,t,n)))}function rn(e,t){return e.indexOf(t)>-1}function an(e){return[].concat.apply([],e)}function sn(e,t){null!=t&&null!=e&&t.forEach((t=>e.push(t)))}function ln(e){return e.map(Be)}function dn(e,t){if(null!=e)for(let n=e.length-1;n>=0;n--)t(e[n],n)}Fe(Ut,{areEqual:()=>Yt,existsAndNotEmpty:()=>jt,flatten:()=>an,forEachReverse:()=>dn,includes:()=>rn,insertArrayIntoArray:()=>nn,insertIntoArray:()=>tn,last:()=>Kt,moveInArray:()=>on,pushAll:()=>sn,removeAllFromArray:()=>en,removeAllFromUnorderedArray:()=>Jt,removeFromArray:()=>Zt,removeFromUnorderedArray:()=>Xt,removeRepeatsFromArray:()=>qt,shallowCompare:()=>$t,sortNumerically:()=>Qt,toStrings:()=>ln});var cn="__ag_Grid_Stop_Propagation",gn=["touchstart","touchend","touchmove","touchcancel","scroll"],un={};function hn(e){e[cn]=!0}function pn(e){return!0===e[cn]}var mn=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return t=>{if("boolean"==typeof un[t])return un[t];const n=document.createElement(e[t]||"div");return un[t="on"+t]=t in n}})();function vn(e,t,n){let i=t;for(;i;){const t=e.getDomData(i,n);if(t)return t;i=i.parentElement}return null}function fn(e,t){return!(!t||!e)&&wn(t).indexOf(e)>=0}function Cn(e){const t=[];let n=e.target;for(;n;)t.push(n),n=n.parentElement;return t}function wn(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():Cn(t)}function yn(e,t,n,i){const o=rn(gn,n)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,n,i,o)}var bn=class _BeanStub{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.lastChangeSetIdLookup={},this.propertyListenerId=0,this.isAlive=()=>!this.destroyed}getFrameworkOverrides(){return this.frameworkOverrides}getContext(){return this.context}destroy(){for(let e=0;e<this.destroyFunctions.length;e++)this.destroyFunctions[e]();this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:_BeanStub.EVENT_DESTROYED})}addEventListener(e,t){this.localEventService||(this.localEventService=new Lt),this.localEventService.addEventListener(e,t)}removeEventListener(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)}dispatchEvent(e){this.localEventService&&this.localEventService.dispatchEvent(e)}addManagedListener(e,t,n){if(this.destroyed)return;e instanceof HTMLElement?yn(this.getFrameworkOverrides(),e,t,n):e.addEventListener(t,n);const i=()=>(e.removeEventListener(t,n),null);return this.destroyFunctions.push(i),()=>(i(),this.destroyFunctions=this.destroyFunctions.filter((e=>e!==i)),null)}setupGridOptionListener(e,t){this.gos.addEventListener(e,t);const n=()=>(this.gos.removeEventListener(e,t),null);return this.destroyFunctions.push(n),()=>(n(),this.destroyFunctions=this.destroyFunctions.filter((e=>e!==n)),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupGridOptionListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const n=e.join("-")+this.propertyListenerId++,i=e=>{if(e.changeSet){if(e.changeSet&&e.changeSet.id===this.lastChangeSetIdLookup[n])return;this.lastChangeSetIdLookup[n]=e.changeSet.id}const i={type:"gridPropertyChanged",changeSet:e.changeSet,source:e.source};t(i)};e.forEach((e=>this.setupGridOptionListener(e,i)))}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createManagedBean(e,t){const n=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),n}createBean(e,t,n){return(t||this.getContext()).createBean(e,n)}destroyBean(e,t){return(t||this.getContext()).destroyBean(e)}destroyBeans(e,t){if(e)for(let n=0;n<e.length;n++)this.destroyBean(e[n],t);return[]}};bn.EVENT_DESTROYED="destroyed",_e([xt("frameworkOverrides")],bn.prototype,"frameworkOverrides",2),_e([xt("context")],bn.prototype,"context",2),_e([xt("eventService")],bn.prototype,"eventService",2),_e([xt("gridOptionsService")],bn.prototype,"gos",2),_e([xt("localeService")],bn.prototype,"localeService",2),_e([xt("environment")],bn.prototype,"environment",2),_e([Rt],bn.prototype,"destroy",1);var En=bn,Sn=class extends En{setBeans(e){this.logger=e.create("ColumnFactory")}createColumnTree(e,t,n,i){const o=new class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=Be(e);let n=0;for(;;){let i;if(e?(i=e,0!==n&&(i+="_"+n)):t?(i=t,0!==n&&(i+="_"+n)):i=n,!this.existingKeys[i])return this.existingKeys[i]=!0,String(i);n++}}},{existingCols:r,existingGroups:a,existingColKeys:s}=this.extractExistingTreeData(n);o.addExistingKeys(s);const l=this.recursivelyCreateColumns(e,0,t,r,o,a,i),d=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+d);const c=this.balanceColumnTree(l,0,d,o);return Dn(null,c,((e,t)=>{e instanceof Ht&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:c,treeDept:d}}extractExistingTreeData(e){const t=[],n=[],i=[];return e&&Dn(null,e,(e=>{if(e instanceof Ht){const t=e;n.push(t)}else{const n=e;i.push(n.getId()),t.push(n)}})),{existingCols:t,existingGroups:n,existingColKeys:i}}createForAutoGroups(e,t){return e.map((e=>this.createAutoGroupTreeItem(t,e)))}createAutoGroupTreeItem(e,t){const n=this.findDepth(e);let i=t;for(let e=n-1;e>=0;e--){const n=new Ht(null,`FAKE_PATH_${t.getId()}}_${e}`,!0,e);this.createBean(n),n.setChildren([i]),i.setOriginalParent(n),i=n}return 0===n&&t.setOriginalParent(null),i}findDepth(e){let t=0,n=e;for(;n&&n[0]&&n[0]instanceof Ht;)t++,n=n[0].getChildren();return t}balanceColumnTree(e,t,n,i){const o=[];for(let r=0;r<e.length;r++){const a=e[r];if(a instanceof Ht){const e=a,r=this.balanceColumnTree(e.getChildren(),t+1,n,i);e.setChildren(r),o.push(e)}else{let r,s;for(let e=n-1;e>=t;e--){const e=i.getUniqueKey(null,null),n=this.createMergedColGroupDef(null),o=new Ht(n,e,!0,t);this.createBean(o),s&&s.setChildren([o]),s=o,r||(r=s)}if(r&&s){o.push(r);if(e.some((e=>e instanceof Ht))){s.setChildren([a]);continue}s.setChildren(e);break}o.push(a)}}return o}findMaxDept(e,t){let n=t;for(let i=0;i<e.length;i++){const o=e[i];if(o instanceof Ht){const e=o,i=this.findMaxDept(e.getChildren(),t+1);n<i&&(n=i)}}return n}recursivelyCreateColumns(e,t,n,i,o,r,a){if(!e)return[];const s=new Array(e.length);for(let l=0;l<s.length;l++){const d=e[l];this.isColumnGroup(d)?s[l]=this.createColumnGroup(n,d,t,i,o,r,a):s[l]=this.createColumn(n,d,i,o,a)}return s}createColumnGroup(e,t,n,i,o,r,a){const s=this.createMergedColGroupDef(t),l=o.getUniqueKey(s.groupId||null,null),d=new Ht(s,l,!1,n);this.createBean(d);const c=this.findExistingGroup(t,r);c&&r.splice(c.idx,1);let g=null==c?void 0:c.group;g&&d.setExpanded(g.isExpanded());const u=this.recursivelyCreateColumns(s.children,n+1,e,i,o,r,a);return d.setChildren(u),d}createMergedColGroupDef(e){const t={};return Object.assign(t,this.gos.get("defaultColGroupDef")),Object.assign(t,e),t}createColumn(e,t,n,i,o){const r=this.findExistingColumn(t,n);r&&(null==n||n.splice(r.idx,1));let a=null==r?void 0:r.column;if(a){const e=this.addColumnDefaultAndTypes(t,a.getColId());a.setColDef(e,t,o),this.applyColumnState(a,e,o)}else{const n=i.getUniqueKey(t.colId,t.field),o=this.addColumnDefaultAndTypes(t,n);a=new zt(o,t,n,e),this.context.createBean(a)}return this.dataTypeService.addColumnListeners(a),a}applyColumnState(e,t,n){const i=We(t.flex);void 0!==i&&e.setFlex(i);if(e.getFlex()<=0){const i=We(t.width);if(null!=i)e.setActualWidth(i,n);else{const t=e.getActualWidth();e.setActualWidth(t,n)}}void 0!==t.sort&&("asc"==t.sort||"desc"==t.sort?e.setSort(t.sort,n):e.setSort(void 0,n));const o=We(t.sortIndex);void 0!==o&&e.setSortIndex(o);const r=Ue(t.hide);void 0!==r&&e.setVisible(!r,n),void 0!==t.pinned&&e.setPinned(t.pinned)}findExistingColumn(e,t){if(t)for(let n=0;n<t.length;n++){const i=t[n].getUserProvidedColDef();if(!i)continue;if(null!=e.colId){if(t[n].getId()===e.colId)return{idx:n,column:t[n]};continue}if(null!=e.field){if(i.field===e.field)return{idx:n,column:t[n]}}else if(i===e)return{idx:n,column:t[n]}}}findExistingGroup(e,t){if(null!=e.groupId)for(let n=0;n<t.length;n++){const i=t[n];if(i.getColGroupDef()&&i.getId()===e.groupId)return{idx:n,group:i}}}addColumnDefaultAndTypes(e,t){const n={};et(n,this.gos.get("defaultColDef"),!1,!0);const i=this.dataTypeService.updateColDefAndGetColumnType(n,e,t);i&&this.assignColumnTypes(i,n),et(n,e,!1,!0);const o=this.gos.get("autoGroupColumnDef"),r=this.gos.isColumnsSortingCoupledToGroup();return e.rowGroup&&o&&r&&et(n,{sort:o.sort,initialSort:o.initialSort},!1,!0),this.dataTypeService.validateColDef(n),n}assignColumnTypes(e,t){if(!e.length)return;const n=Object.assign({},Bt);qe(this.gos.get("columnTypes")||{},((e,t)=>{if(e in n)console.warn(`AG Grid: the column type '${e}' is a default column type and cannot be overridden.`);else{t.type&&st("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."),n[e]=t}})),e.forEach((e=>{const i=n[e.trim()];i?et(t,i,!1,!0):console.warn("AG Grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))}isColumnGroup(e){return void 0!==e.children}};function Dn(e,t,n){if(t)for(let i=0;i<t.length;i++){const o=t[i];o instanceof Ht&&Dn(o,o.getChildren(),n),n(o,e)}}_e([xt("dataTypeService")],Sn.prototype,"dataTypeService",2),_e([Oe(0,Pt("loggerFactory"))],Sn.prototype,"setBeans",1),Sn=_e([At("columnFactory")],Sn);var Tn=class _ColumnGroup{constructor(e,t,n,i){this.displayedChildren=[],this.localEventService=new Lt,this.groupId=t,this.partId=n,this.providedColumnGroup=e,this.pinned=i}static createUniqueId(e,t){return e+"_"+t}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}setParent(e){this.parent=e}getUniqueId(){return _ColumnGroup.createUniqueId(this.groupId,this.partId)}isEmptyGroup(){return 0===this.displayedChildren.length}isMoving(){const e=this.getProvidedColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every((e=>e.isMoving()))}checkLeft(){if(this.displayedChildren.forEach((e=>{e instanceof _ColumnGroup&&e.checkLeft()})),this.displayedChildren.length>0)if(this.gos.get("enableRtl")){const e=Kt(this.displayedChildren).getLeft();this.setLeft(e)}else{const 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.localEventService.dispatchEvent(this.createAgEvent(_ColumnGroup.EVENT_LEFT_CHANGED)))}getPinned(){return this.pinned}createAgEvent(e){return{type:e}}addEventListener(e,t){this.localEventService.addEventListener(e,t)}removeEventListener(e,t){this.localEventService.removeEventListener(e,t)}getGroupId(){return this.groupId}getPartId(){return this.partId}isChildInThisGroupDeepSearch(e){let t=!1;return this.children.forEach((n=>{e===n&&(t=!0),n instanceof _ColumnGroup&&n.isChildInThisGroupDeepSearch(e)&&(t=!0)})),t}getActualWidth(){let e=0;return this.displayedChildren&&this.displayedChildren.forEach((t=>{e+=t.getActualWidth()})),e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;return this.displayedChildren.forEach((t=>{t.isResizable()&&(e=!0)})),e}getMinWidth(){let e=0;return this.displayedChildren.forEach((t=>{e+=t.getMinWidth()||0})),e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){const 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)}addDisplayedLeafColumns(e){this.displayedChildren.forEach((t=>{t instanceof zt?e.push(t):t instanceof _ColumnGroup&&t.addDisplayedLeafColumns(e)}))}addLeafColumns(e){this.children.forEach((t=>{t instanceof zt?e.push(t):t instanceof _ColumnGroup&&t.addLeafColumns(e)}))}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){const e=this.getParent();return this.isPadding()&&e&&e.isPadding()?1+e.getPaddingLevel():0}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;for(;null!=e&&e.isPadding();)e=e.getParent();if(!(!!e&&e.providedColumnGroup.isExpandable()))return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(_ColumnGroup.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((t=>{if(t instanceof _ColumnGroup&&(!t.displayedChildren||!t.displayedChildren.length))return;switch(t.getColumnGroupShow()){case"open":e.providedColumnGroup.isExpanded()&&this.displayedChildren.push(t);break;case"closed":e.providedColumnGroup.isExpanded()||this.displayedChildren.push(t);break;default:this.displayedChildren.push(t)}})),this.localEventService.dispatchEvent(this.createAgEvent(_ColumnGroup.EVENT_DISPLAYED_CHILDREN_CHANGED))}};Tn.EVENT_LEFT_CHANGED="leftChanged",Tn.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",_e([xt("gridOptionsService")],Tn.prototype,"gos",2);var Rn=Tn,An=class{};An.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",An.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",An.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",An.EVENT_PIVOT_MAX_COLUMNS_EXCEEDED="pivotMaxColumnsExceeded",An.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",An.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",An.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",An.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",An.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",An.EVENT_COLUMN_MOVED="columnMoved",An.EVENT_COLUMN_VISIBLE="columnVisible",An.EVENT_COLUMN_PINNED="columnPinned",An.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",An.EVENT_COLUMN_RESIZED="columnResized",An.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",An.EVENT_SUPPRESS_COLUMN_MOVE_CHANGED="suppressMovableColumns",An.EVENT_SUPPRESS_MENU_HIDE_CHANGED="suppressMenuHide",An.EVENT_SUPPRESS_FIELD_DOT_NOTATION="suppressFieldDotNotation",An.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",An.EVENT_COLUMN_HEADER_MOUSE_OVER="columnHeaderMouseOver",An.EVENT_COLUMN_HEADER_MOUSE_LEAVE="columnHeaderMouseLeave",An.EVENT_COLUMN_HEADER_CLICKED="columnHeaderClicked",An.EVENT_COLUMN_HEADER_CONTEXT_MENU="columnHeaderContextMenu",An.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",An.EVENT_ROW_GROUP_OPENED="rowGroupOpened",An.EVENT_ROW_DATA_UPDATED="rowDataUpdated",An.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",An.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",An.EVENT_CHART_CREATED="chartCreated",An.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",An.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",An.EVENT_CHART_DESTROYED="chartDestroyed",An.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",An.EVENT_TOOL_PANEL_SIZE_CHANGED="toolPanelSizeChanged",An.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",An.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",An.EVENT_MODEL_UPDATED="modelUpdated",An.EVENT_CUT_START="cutStart",An.EVENT_CUT_END="cutEnd",An.EVENT_PASTE_START="pasteStart",An.EVENT_PASTE_END="pasteEnd",An.EVENT_FILL_START="fillStart",An.EVENT_FILL_END="fillEnd",An.EVENT_RANGE_DELETE_START="rangeDeleteStart",An.EVENT_RANGE_DELETE_END="rangeDeleteEnd",An.EVENT_UNDO_STARTED="undoStarted",An.EVENT_UNDO_ENDED="undoEnded",An.EVENT_REDO_STARTED="redoStarted",An.EVENT_REDO_ENDED="redoEnded",An.EVENT_KEY_SHORTCUT_CHANGED_CELL_START="keyShortcutChangedCellStart",An.EVENT_KEY_SHORTCUT_CHANGED_CELL_END="keyShortcutChangedCellEnd",An.EVENT_CELL_CLICKED="cellClicked",An.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",An.EVENT_CELL_MOUSE_DOWN="cellMouseDown",An.EVENT_CELL_CONTEXT_MENU="cellContextMenu",An.EVENT_CELL_VALUE_CHANGED="cellValueChanged",An.EVENT_CELL_EDIT_REQUEST="cellEditRequest",An.EVENT_ROW_VALUE_CHANGED="rowValueChanged",An.EVENT_CELL_FOCUSED="cellFocused",An.EVENT_CELL_FOCUS_CLEARED="cellFocusCleared",An.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",An.EVENT_ROW_SELECTED="rowSelected",An.EVENT_SELECTION_CHANGED="selectionChanged",An.EVENT_TOOLTIP_SHOW="tooltipShow",An.EVENT_TOOLTIP_HIDE="tooltipHide",An.EVENT_CELL_KEY_DOWN="cellKeyDown",An.EVENT_CELL_MOUSE_OVER="cellMouseOver",An.EVENT_CELL_MOUSE_OUT="cellMouseOut",An.EVENT_FILTER_CHANGED="filterChanged",An.EVENT_FILTER_MODIFIED="filterModified",An.EVENT_FILTER_OPENED="filterOpened",An.EVENT_ADVANCED_FILTER_BUILDER_VISIBLE_CHANGED="advancedFilterBuilderVisibleChanged",An.EVENT_SORT_CHANGED="sortChanged",An.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",An.EVENT_ROW_CLICKED="rowClicked",An.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",An.EVENT_GRID_READY="gridReady",An.EVENT_GRID_PRE_DESTROYED="gridPreDestroyed",An.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",An.EVENT_VIEWPORT_CHANGED="viewportChanged",An.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",An.EVENT_FIRST_DATA_RENDERED="firstDataRendered",An.EVENT_DRAG_STARTED="dragStarted",An.EVENT_DRAG_STOPPED="dragStopped",An.EVENT_CHECKBOX_CHANGED="checkboxChanged",An.EVENT_ROW_EDITING_STARTED="rowEditingStarted",An.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",An.EVENT_CELL_EDITING_STARTED="cellEditingStarted",An.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",An.EVENT_BODY_SCROLL="bodyScroll",An.EVENT_BODY_SCROLL_END="bodyScrollEnd",An.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",An.EVENT_PAGINATION_CHANGED="paginationChanged",An.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",An.EVENT_STORE_REFRESHED="storeRefreshed",An.EVENT_STATE_UPDATED="stateUpdated",An.EVENT_COLUMN_MENU_VISIBLE_CHANGED="columnMenuVisibleChanged",An.EVENT_CONTEXT_MENU_VISIBLE_CHANGED="contextMenuVisibleChanged",An.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",An.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED="columnContainerWidthChanged",An.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",An.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",An.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",An.EVENT_FLASH_CELLS="flashCells",An.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",An.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",An.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",An.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",An.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",An.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",An.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",An.EVENT_ROW_DRAG_ENTER="rowDragEnter",An.EVENT_ROW_DRAG_MOVE="rowDragMove",An.EVENT_ROW_DRAG_LEAVE="rowDragLeave",An.EVENT_ROW_DRAG_END="rowDragEnd",An.EVENT_GRID_STYLES_CHANGED="gridStylesChanged",An.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",An.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",An.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",An.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",An.EVENT_STORE_UPDATED="storeUpdated",An.EVENT_FILTER_DESTROYED="filterDestroyed",An.EVENT_ROW_DATA_UPDATE_STARTED="rowDataUpdateStarted",An.EVENT_ROW_COUNT_READY="rowCountReady",An.EVENT_ADVANCED_FILTER_ENABLED_CHANGED="advancedFilterEnabledChanged",An.EVENT_DATA_TYPES_INFERRED="dataTypesInferred",An.EVENT_FIELD_VALUE_CHANGED="fieldValueChanged",An.EVENT_FIELD_PICKER_VALUE_SELECTED="fieldPickerValueSelected",An.EVENT_SIDE_BAR_UPDATED="sideBarUpdated";var xn=new Set([An.EVENT_GRID_PRE_DESTROYED,An.EVENT_FILL_START]),Mn="ag-Grid-AutoColumn",Nn=class extends En{createAutoGroupColumns(e){const t=[],n=this.gos.get("treeData");let i=this.gos.isGroupMultiAutoColumn();return n&&i&&(console.warn('AG Grid: you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data'),i=!1),i?e.forEach(((e,n)=>{t.push(this.createOneAutoGroupColumn(e,n))})):t.push(this.createOneAutoGroupColumn()),t}updateAutoGroupColumns(e,t){e.forEach(((e,n)=>this.updateOneAutoGroupColumn(e,n,t)))}createOneAutoGroupColumn(e,t){let n;n=e?`${Mn}-${e.getId()}`:Mn;const i=this.createAutoGroupColDef(n,e,t);i.colId=n;const o=new zt(i,null,n,!0);return this.context.createBean(o),o}updateOneAutoGroupColumn(e,t,n){const i=e.getColDef(),o="string"==typeof i.showRowGroup?i.showRowGroup:void 0,r=null!=o?this.columnModel.getPrimaryColumn(o):void 0,a=this.createAutoGroupColDef(e.getId(),null!=r?r:void 0,t);e.setColDef(a,null,n),this.columnFactory.applyColumnState(e,a,n)}createAutoGroupColDef(e,t,n){let i=this.createBaseColDef(t);if(et(i,this.gos.get("autoGroupColumnDef")),i=this.columnFactory.addColumnDefaultAndTypes(i,e),!this.gos.get("treeData")){Ve(i.field)&&Ve(i.valueGetter)&&Ve(i.filterValueGetter)&&"agGroupColumnFilter"!==i.filter&&(i.filter=!1)}n&&n>0&&(i.headerCheckboxSelection=!1);const o=this.gos.isColumnsSortingCoupledToGroup(),r=i.valueGetter||null!=i.field;return o&&!r&&(i.sortIndex=void 0,i.initialSort=void 0),i}createBaseColDef(e){const t=this.gos.get("autoGroupColumnDef"),n={headerName:this.localeService.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererSelector)||(n.cellRenderer="agGroupCellRenderer"),e){const t=e.getColDef();Object.assign(n,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:t.headerValueGetter}),t.cellRenderer&&Object.assign(n,{cellRendererParams:{innerRenderer:t.cellRenderer,innerRendererParams:t.cellRendererParams}}),n.showRowGroup=e.getColId()}else n.showRowGroup=!0;return n}};_e([xt("columnModel")],Nn.prototype,"columnModel",2),_e([xt("columnFactory")],Nn.prototype,"columnFactory",2),Nn=_e([At("autoGroupColService")],Nn);var Pn={};Fe(Pn,{camelCaseToHumanText:()=>kn,camelCaseToHyphenated:()=>Gn,capitalise:()=>_n,escapeString:()=>On,utf8_encode:()=>Fn});var In=/[&<>"']/g,Ln={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Fn(e){const t=String.fromCharCode;function n(e,n){return t(e>>n&63|128)}function i(e){if(e>=0&&e<=31&&10!==e){return`_x${e.toString(16).toUpperCase().padStart(4,"0")}_`}if(0==(4294967168&e))return t(e);let i="";return 0==(4294965248&e)?i=t(e>>6&31|192):0==(4294901760&e)?(!function(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}(e),i=t(e>>12&15|224),i+=n(e,6)):0==(4292870144&e)&&(i=t(e>>18&7|240),i+=n(e,12),i+=n(e,6)),i+=t(63&e|128),i}const o=function(e){const t=[];if(!e)return[];const n=e.length;let i,o,r=0;for(;r<n;)i=e.charCodeAt(r++),i>=55296&&i<=56319&&r<n?(o=e.charCodeAt(r++),56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),r--)):t.push(i);return t}(e),r=o.length;let a,s=-1,l="";for(;++s<r;)a=o[s],l+=i(a);return l}function _n(e){return e[0].toUpperCase()+e.substring(1).toLowerCase()}function On(e,t){if(null==e)return null;const n=e.toString().toString();return t?n:n.replace(In,(e=>Ln[e]))}function kn(e){if(!e||null==e)return null;return 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(" ")}function Gn(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLocaleLowerCase()}`))}var zn={};function Vn(e){const t=new Map;return e.forEach((e=>t.set(e[0],e[1]))),t}function Hn(e,t){const n=new Map;return e.forEach((e=>n.set(t(e),e))),n}function Bn(e){const t=[];return e.forEach(((e,n)=>t.push(n))),t}Fe(zn,{convertToMap:()=>Vn,keys:()=>Bn,mapById:()=>Hn});var Wn=class extends En{constructor(){super(...arguments),this.primaryHeaderRowCount=0,this.secondaryHeaderRowCount=0,this.gridHeaderRowCount=0,this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.displayedColumnsAndGroupsMap={},this.viewportColumns=[],this.viewportColumnsHash="",this.headerViewportColumns=[],this.viewportColumnsCenter=[],this.headerViewportColumnsCenter=[],this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.autoHeightActiveAtLeastOnce=!1,this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[],this.ready=!1,this.changeEventsDispatching=!1,this.autoGroupsNeedBuilding=!1,this.forceRecreateAutoGroups=!1,this.pivotMode=!1,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.bodyWidthDirty=!0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}init(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation");const e=this.gos.get("pivotMode");this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents"],(e=>this.buildAutoGroupColumns(Un(e.source)))),this.addManagedPropertyListener("autoGroupColumnDef",(e=>this.onAutoGroupColumnDefChanged(Un(e.source)))),this.addManagedPropertyListeners(["defaultColDef","columnTypes","suppressFieldDotNotation"],(e=>this.onSharedColDefChanged(Un(e.source)))),this.addManagedPropertyListener("pivotMode",(e=>this.setPivotMode(this.gos.get("pivotMode"),Un(e.source)))),this.addManagedListener(this.eventService,An.EVENT_FIRST_DATA_RENDERED,(()=>this.onFirstDataRendered()))}buildAutoGroupColumns(e){this.columnDefs&&(this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns(e))}onAutoGroupColumnDefChanged(e){this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns,e)}onSharedColDefChanged(e){this.gridColumns&&(this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns,e),this.createColumnsFromColumnDefs(!0,e))}setColumnDefs(e,t){const n=!!this.columnDefs;this.columnDefs=e,this.createColumnsFromColumnDefs(n,t)}recreateColumnDefs(e){this.onSharedColDefChanged(e)}destroyOldColumns(e,t){const n={};if(!e)return;Dn(null,e,(e=>{n[e.getInstanceId()]=e})),t&&Dn(null,t,(e=>{n[e.getInstanceId()]=null}));const i=Object.values(n).filter((e=>null!=e));this.destroyBeans(i)}destroyColumns(){this.destroyOldColumns(this.primaryColumnTree),this.destroyOldColumns(this.secondaryBalancedTree),this.destroyOldColumns(this.groupAutoColsBalancedTree)}createColumnsFromColumnDefs(e,t){const n=e?this.compareColumnStatesAndDispatchEvents(t):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;const i=this.primaryColumns,o=this.primaryColumnTree,r=this.columnFactory.createColumnTree(this.columnDefs,!0,o,t);this.destroyOldColumns(this.primaryColumnTree,r.columnTree),this.primaryColumnTree=r.columnTree,this.primaryHeaderRowCount=r.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach((e=>this.primaryColumnsMap[e.getId()]=e)),this.extractRowGroupColumns(t,i),this.extractPivotColumns(t,i),this.extractValueColumns(t,i),this.ready=!0;const a=void 0===this.gridColsArePrimary;(this.gridColsArePrimary||a||this.autoGroupsNeedBuilding)&&(this.updateGridColumns(),e&&this.gridColsArePrimary&&!this.gos.get("maintainColumnOrder")&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(t),this.checkViewportColumns()),this.dispatchEverythingChanged(t),this.changeEventsDispatching=!0,n&&n(),this.changeEventsDispatching=!1,this.dispatchNewColumnsLoaded(t)}shouldRowModelIgnoreRefresh(){return this.changeEventsDispatching}dispatchNewColumnsLoaded(e){const t={type:An.EVENT_NEW_COLUMNS_LOADED,source:e};this.eventService.dispatchEvent(t),"gridInitializing"===e&&this.onColumnsReady()}dispatchEverythingChanged(e){const t={type:An.EVENT_COLUMN_EVERYTHING_CHANGED,source:e};this.eventService.dispatchEvent(t)}orderGridColumnsLikePrimary(){const e=this.primaryColumns;if(!e)return;const t=e.filter((e=>this.gridColumns.indexOf(e)>=0)),n=this.gridColumns.filter((e=>t.indexOf(e)<0));this.gridColumns=[...n,...t],this.gridColumns=this.placeLockedColumns(this.gridColumns)}getAllDisplayedAutoHeightCols(){return this.displayedAutoHeightCols}setViewport(){this.gos.get("enableRtl")?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)}checkViewportColumns(e=!1){if(null==this.displayedColumnsCenter)return;if(!this.extractViewport())return;const t={type:An.EVENT_VIRTUAL_COLUMNS_CHANGED,afterScroll:e};this.eventService.dispatchEvent(t)}setViewportPosition(e,t,n=!1){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns(n))}isPivotMode(){return this.pivotMode}isPivotSettingAllowed(e){return!e||!this.gos.get("treeData")||(st("Pivot mode not available with treeData."),!1)}setPivotMode(e,t){if(e===this.pivotMode||!this.isPivotSettingAllowed(this.pivotMode))return;if(this.pivotMode=e,!this.gridColumns)return;this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t);const n={type:An.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(n)}getSecondaryPivotColumn(e,t){if(Ve(this.secondaryColumns))return null;const n=this.getPrimaryColumn(t);let i=null;return this.secondaryColumns.forEach((t=>{const o=t.getColDef().pivotKeys,r=t.getColDef().pivotValueColumn;Yt(o,e)&&r===n&&(i=t)})),i}setBeans(e){this.logger=e.create("columnModel")}setFirstRightAndLastLeftPinned(e){let t,n;this.gos.get("enableRtl")?(t=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,n=this.displayedColumnsRight?Kt(this.displayedColumnsRight):null):(t=this.displayedColumnsLeft?Kt(this.displayedColumnsLeft):null,n=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((i=>{i.setLastLeftPinned(i===t,e),i.setFirstRightPinned(i===n,e)}))}autoSizeColumns(e){if(this.shouldQueueResizeOperations)return void this.resizeOperationQueue.push((()=>this.autoSizeColumns(e)));const{columns:t,skipHeader:n,skipHeaderGroups:i,stopAtGroup:o,source:r="api"}=e;this.animationFrameService.flushAllFrames();const a=[];let s=-1;const l=null!=n?n:this.gos.get("skipHeaderOnAutoSize"),d=null!=i?i:l;for(;0!==s;)s=0,this.actionOnGridColumns(t,(e=>{if(a.indexOf(e)>=0)return!1;const t=this.autoWidthCalculator.getPreferredWidthForColumn(e,l);if(t>0){const n=this.normaliseColumnWidth(e,t);e.setActualWidth(n,r),a.push(e),s++}return!0}),r);d||this.autoSizeColumnGroupsByColumns(t,r,o),this.dispatchColumnResizedEvent(a,!0,"autosizeColumns")}dispatchColumnResizedEvent(e,t,n,i=null){if(e&&e.length){const o={type:An.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:i,finished:t,source:n};this.eventService.dispatchEvent(o)}}dispatchColumnChangedEvent(e,t,n){const i={type:e,columns:t,column:t&&1==t.length?t[0]:null,source:n};this.eventService.dispatchEvent(i)}dispatchColumnMovedEvent(e){const{movedColumns:t,source:n,toIndex:i,finished:o}=e,r={type:An.EVENT_COLUMN_MOVED,columns:t,column:t&&1===t.length?t[0]:null,toIndex:i,finished:o,source:n};this.eventService.dispatchEvent(r)}dispatchColumnPinnedEvent(e,t){if(!e.length)return;const n=1===e.length?e[0]:null,i=this.getCommonValue(e,(e=>e.getPinned())),o={type:An.EVENT_COLUMN_PINNED,pinned:null!=i?i:null,columns:e,column:n,source:t};this.eventService.dispatchEvent(o)}dispatchColumnVisibleEvent(e,t){if(!e.length)return;const n=1===e.length?e[0]:null,i=this.getCommonValue(e,(e=>e.isVisible())),o={type:An.EVENT_COLUMN_VISIBLE,visible:i,columns:e,column:n,source:t};this.eventService.dispatchEvent(o)}autoSizeColumn(e,t,n){e&&this.autoSizeColumns({columns:[e],skipHeader:n,skipHeaderGroups:!0,source:t})}autoSizeColumnGroupsByColumns(e,t,n){const i=new Set;let o;this.getGridColumns(e).forEach((e=>{let t=e.getParent();for(;t&&t!=n;)t.isPadding()||i.add(t),t=t.getParent()}));for(const e of i){for(const t of this.ctrlsService.getHeaderRowContainerCtrls())if(o=t.getHeaderCtrlForColumn(e),o)break;o&&o.resizeLeafColumnsToFit(t)}return[]}autoSizeAllColumns(e,t){if(this.shouldQueueResizeOperations)return void this.resizeOperationQueue.push((()=>this.autoSizeAllColumns(e,t)));const n=this.getAllDisplayedColumns();this.autoSizeColumns({columns:n,skipHeader:t,source:e})}getColumnsFromTree(e){const t=[],n=e=>{for(let i=0;i<e.length;i++){const o=e[i];o instanceof zt?t.push(o):o instanceof Ht&&n(o.getChildren())}};return n(e),t}getAllDisplayedTrees(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null}getPrimaryColumnTree(){return this.primaryColumnTree}getHeaderRowCount(){return this.gridHeaderRowCount}getDisplayedTreeLeft(){return this.displayedTreeLeft}getDisplayedTreeRight(){return this.displayedTreeRight}getDisplayedTreeCentre(){return this.displayedTreeCentre}isColumnDisplayed(e){return this.getAllDisplayedColumns().indexOf(e)>=0}getAllDisplayedColumns(){return this.displayedColumns}getViewportColumns(){return this.viewportColumns}getDisplayedLeftColumnsForRow(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft}getDisplayedRightColumnsForRow(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight}isColSpanActive(){return this.colSpanActive}getDisplayedColumnsForRow(e,t,n,i){const o=[];let r=null;for(let a=0;a<t.length;a++){const s=t[a],l=t.length-a,d=Math.min(s.getColSpan(e),l),c=[s];if(d>1){const e=d-1;for(let n=1;n<=e;n++)c.push(t[a+n]);a+=e}let g;if(n?(g=!1,c.forEach((e=>{n(e)&&(g=!0)}))):g=!0,g){if(0===o.length&&r){!!i&&i(s)&&o.push(r)}o.push(s)}r=s}return o}getViewportCenterColumnsForRow(e){if(!this.colSpanActive)return this.viewportColumnsCenter;const t=this.isColumnVirtualisationSuppressed()?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,t,(e=>{const t=e.getLeft();return ze(t)&&t>this.viewportLeft}))}isColumnAtEdge(e,t){const n=this.getAllDisplayedColumns();if(!n.length)return!1;const i="first"===t;let o;if(e instanceof Rn){const t=e.getDisplayedLeafColumns();if(!t.length)return!1;o=i?t[0]:Kt(t)}else o=e;return(i?n[0]:Kt(n))===o}getAriaColumnIndex(e){let t;return t=e instanceof Rn?e.getLeafColumns()[0]:e,this.ariaOrderColumns.indexOf(t)+1}isColumnInHeaderViewport(e){return!!e.isAutoHeaderHeight()||this.isColumnInRowViewport(e)}isColumnInRowViewport(e){if(e.isAutoHeight())return!0;const t=e.getLeft()||0,n=t+e.getActualWidth(),i=this.viewportLeft-200,o=this.viewportRight+200;return!(t<i&&n<i)&&!(t>o&&n>o)}getDisplayedColumnsLeftWidth(){return this.getWidthOfColsInList(this.displayedColumnsLeft)}getDisplayedColumnsRightWidth(){return this.getWidthOfColsInList(this.displayedColumnsRight)}updatePrimaryColumnList(e,t,n,i,o,r){if(!e||He(e))return;let a=!1;if(e.forEach((e=>{if(!e)return;const o=this.getPrimaryColumn(e);if(o){if(n){if(t.indexOf(o)>=0)return;t.push(o)}else{if(t.indexOf(o)<0)return;Zt(t,o)}i(o),a=!0}})),!a)return;this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(r);const s={type:o,columns:t,column:1===t.length?t[0]:null,source:r};this.eventService.dispatchEvent(s)}setRowGroupColumns(e,t){this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,An.EVENT_COLUMN_ROW_GROUP_CHANGED,!0,this.setRowGroupActive.bind(this),t)}setRowGroupActive(e,t,n){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,n),e&&!this.gos.get("suppressRowGroupHidesColumns")&&this.setColumnsVisible([t],!1,n),e||this.gos.get("suppressMakeColumnVisibleAfterUnGroup")||this.setColumnsVisible([t],!0,n))}addRowGroupColumns(e,t){this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),An.EVENT_COLUMN_ROW_GROUP_CHANGED,t)}removeRowGroupColumns(e,t){this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),An.EVENT_COLUMN_ROW_GROUP_CHANGED,t)}addPivotColumns(e,t){this.updatePrimaryColumnList(e,this.pivotColumns,!0,(e=>e.setPivotActive(!0,t)),An.EVENT_COLUMN_PIVOT_CHANGED,t)}setPivotColumns(e,t){this.setPrimaryColumnList(e,this.pivotColumns,An.EVENT_COLUMN_PIVOT_CHANGED,!0,((e,n)=>{n.setPivotActive(e,t)}),t)}removePivotColumns(e,t){this.updatePrimaryColumnList(e,this.pivotColumns,!1,(e=>e.setPivotActive(!1,t)),An.EVENT_COLUMN_PIVOT_CHANGED,t)}setPrimaryColumnList(e,t,n,i,o,r){if(!this.gridColumns)return;const a=new Map;t.forEach(((e,t)=>a.set(e,t))),t.length=0,ze(e)&&e.forEach((e=>{const n=this.getPrimaryColumn(e);n&&t.push(n)})),t.forEach(((e,t)=>{const n=a.get(e);void 0!==n?i&&n!==t||a.delete(e):a.set(e,0)})),(this.primaryColumns||[]).forEach((e=>{const n=t.indexOf(e)>=0;o(n,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(r),this.dispatchColumnChangedEvent(n,[...a.keys()],r)}setValueColumns(e,t){this.setPrimaryColumnList(e,this.valueColumns,An.EVENT_COLUMN_VALUE_CHANGED,!1,this.setValueActive.bind(this),t)}setValueActive(e,t,n){if(e!==t.isValueActive()&&(t.setValueActive(e,n),e&&!t.getAggFunc()&&this.aggFuncService)){const e=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(e)}}addValueColumns(e,t){this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),An.EVENT_COLUMN_VALUE_CHANGED,t)}removeValueColumns(e,t){this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),An.EVENT_COLUMN_VALUE_CHANGED,t)}normaliseColumnWidth(e,t){const n=e.getMinWidth();ze(n)&&t<n&&(t=n);const i=e.getMaxWidth();return ze(i)&&e.isGreaterThanMax(t)&&(t=i),t}getPrimaryOrGridColumn(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)}setColumnWidths(e,t,n,i){const o=[];e.forEach((e=>{const n=this.getPrimaryOrGridColumn(e.key);if(!n)return;o.push({width:e.newWidth,ratios:[1],columns:[n]});if("shift"===this.gos.get("colResizeDefault")&&(t=!t),t){const t=this.getDisplayedColAfter(n);if(!t)return;const i=n.getActualWidth()-e.newWidth,r=t.getActualWidth()+i;o.push({width:r,ratios:[1],columns:[t]})}})),0!==o.length&&this.resizeColumnSets({resizeSets:o,finished:n,source:i})}checkMinAndMaxWidthsForSet(e){const{columns:t,width:n}=e;let i=0,o=0,r=!0;t.forEach((e=>{const t=e.getMinWidth();i+=t||0;const n=e.getMaxWidth();ze(n)&&n>0?o+=n:r=!1}));return n>=i&&(!r||n<=o)}resizeColumnSets(e){const{resizeSets:t,finished:n,source:i}=e;if(!(!t||t.every((e=>this.checkMinAndMaxWidthsForSet(e))))){if(n){const e=t&&t.length>0?t[0].columns:null;this.dispatchColumnResizedEvent(e,n,i)}return}const o=[],r=[];t.forEach((e=>{const{width:t,columns:n,ratios:a}=e,s={},l={};n.forEach((e=>r.push(e)));let d=!0,c=0;for(;d;){if(c++,c>1e3){console.error("AG Grid: infinite loop in resizeColumnSets");break}d=!1;const e=[];let i=0,o=t;n.forEach(((t,n)=>{if(l[t.getId()])o-=s[t.getId()];else{e.push(t);const o=a[n];i+=o}}));const r=1/i;e.forEach(((n,i)=>{let c;i===e.length-1?c=o:(c=Math.round(a[i]*t*r),o-=c);const g=n.getMinWidth(),u=n.getMaxWidth();ze(g)&&c<g?(c=g,l[n.getId()]=!0,d=!0):ze(u)&&u>0&&c>u&&(c=u,l[n.getId()]=!0,d=!0),s[n.getId()]=c}))}n.forEach((e=>{const t=s[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,i),o.push(e))}))}));const a=o.length>0;let s=[];a&&(s=this.refreshFlexedColumns({resizingCols:r,skipSetLeft:!0}),this.setLeftValues(i),this.updateBodyWidths(),this.checkViewportColumns());const l=r.concat(s);(a||n)&&this.dispatchColumnResizedEvent(l,n,i,s)}setColumnAggFunc(e,t,n){if(!e)return;const i=this.getPrimaryColumn(e);i&&(i.setAggFunc(t),this.dispatchColumnChangedEvent(An.EVENT_COLUMN_VALUE_CHANGED,[i],n))}moveRowGroupColumn(e,t,n){if(this.isRowGroupEmpty())return;const i=this.rowGroupColumns[e],o=this.rowGroupColumns.slice(e,t);this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,i);const r={type:An.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:o,column:1===o.length?o[0]:null,source:n};this.eventService.dispatchEvent(r)}moveColumns(e,t,n,i=!0){if(!this.gridColumns)return;if(this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+t),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");const o=this.getGridColumns(e);!this.doesMovePassRules(o,t)||(on(this.gridColumns,o,t),this.updateDisplayedColumns(n),this.dispatchColumnMovedEvent({movedColumns:o,source:n,toIndex:t,finished:i}),this.columnAnimationService.finish())}doesMovePassRules(e,t){const n=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(n)}doesOrderPassRules(e){return!!this.doesMovePassMarryChildren(e)&&!!this.doesMovePassLockedPositions(e)}getProposedColumnOrder(e,t){const n=this.gridColumns.slice();return on(n,e,t),n}sortColumnsLikeGridColumns(e){if(!e||e.length<=1)return;e.filter((e=>this.gridColumns.indexOf(e)<0)).length>0||e.sort(((e,t)=>this.gridColumns.indexOf(e)-this.gridColumns.indexOf(t)))}doesMovePassLockedPositions(e){let t=0,n=!0;return e.forEach((e=>{const i=(o=e.getColDef().lockPosition)?!0===o||"left"===o?0:2:1;var o;i<t&&(n=!1),t=i})),n}doesMovePassMarryChildren(e){let t=!0;return Dn(null,this.gridBalancedTree,(n=>{if(!(n instanceof Ht))return;const i=n,o=i.getColGroupDef();if(!(o&&o.marryChildren))return;const r=[];i.getLeafColumns().forEach((t=>{const n=e.indexOf(t);r.push(n)}));Math.max.apply(Math,r)-Math.min.apply(Math,r)>i.getLeafColumns().length-1&&(t=!1)})),t}moveColumnByIndex(e,t,n){if(!this.gridColumns)return;const i=this.gridColumns[e];this.moveColumns([i],t,n)}getColumnDefs(){if(!this.primaryColumns)return;const e=this.primaryColumns.slice();return this.gridColsArePrimary?e.sort(((e,t)=>this.gridColumns.indexOf(e)-this.gridColumns.indexOf(t))):this.lastPrimaryOrder&&e.sort(((e,t)=>this.lastPrimaryOrder.indexOf(e)-this.lastPrimaryOrder.indexOf(t))),this.columnDefFactory.buildColumnDefs(e,this.rowGroupColumns,this.pivotColumns)}getBodyContainerWidth(){return this.bodyWidth}getContainerWidth(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}updateBodyWidths(){const e=this.getWidthOfColsInList(this.displayedColumnsCenter),t=this.getWidthOfColsInList(this.displayedColumnsLeft),n=this.getWidthOfColsInList(this.displayedColumnsRight);this.bodyWidthDirty=this.bodyWidth!==e;if(this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n;const i={type:An.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED};this.eventService.dispatchEvent(i);const o={type:An.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(o)}}getValueColumns(){return this.valueColumns?this.valueColumns:[]}getPivotColumns(){return this.pivotColumns?this.pivotColumns:[]}isPivotActive(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode}getRowGroupColumns(){return this.rowGroupColumns?this.rowGroupColumns:[]}getDisplayedCenterColumns(){return this.displayedColumnsCenter}getDisplayedLeftColumns(){return this.displayedColumnsLeft}getDisplayedRightColumns(){return this.displayedColumnsRight}getAllPrimaryColumns(){return this.primaryColumns?this.primaryColumns:null}getSecondaryColumns(){return this.secondaryColumns?this.secondaryColumns:null}getAllColumnsForQuickFilter(){return this.columnsForQuickFilter}getAllGridColumns(){var e;return null!=(e=this.gridColumns)?e:[]}isRowGroupEmpty(){return He(this.rowGroupColumns)}setColumnsVisible(e,t=!1,n){this.applyColumnState({state:e.map((e=>({colId:"string"==typeof e?e:e.getColId(),hide:!t})))},n)}setColumnsPinned(e,t,n){if(!this.gridColumns)return;if(this.gos.isDomLayout("print"))return void console.warn("AG Grid: Changing the column pinning status is not allowed with domLayout='print'");let i;this.columnAnimationService.start(),i=!0===t||"left"===t?"left":"right"===t?"right":null,this.actionOnGridColumns(e,(e=>e.getPinned()!==i&&(e.setPinned(i),!0)),n,(()=>({type:An.EVENT_COLUMN_PINNED,pinned:i,column:null,columns:null,source:n}))),this.columnAnimationService.finish()}actionOnGridColumns(e,t,n,i){if(He(e))return;const o=[];if(e.forEach((e=>{if(!e)return;const n=this.getGridColumn(e);if(!n)return;!1!==t(n)&&o.push(n)})),o.length&&(this.updateDisplayedColumns(n),ze(i)&&i)){const e=i();e.columns=o,e.column=1===o.length?o[0]:null,this.eventService.dispatchEvent(e)}}getDisplayedColBefore(e){const t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n>0?t[n-1]:null}getDisplayedColAfter(e){const t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n<t.length-1?t[n+1]:null}getDisplayedGroupAtDirection(e,t){const n=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),i=e.getDisplayedLeafColumns(),o="After"===t?Kt(i):i[0],r=`getDisplayedCol${t}`;for(;;){const t=this[r](o);if(!t)return null;const i=this.getColumnGroupAtLevel(t,n);if(i!==e)return i}}getColumnGroupAtLevel(e,t){let n,i,o=e.getParent();for(;;){if(n=o.getProvidedColumnGroup().getLevel(),i=o.getPaddingLevel(),n+i<=t)break;o=o.getParent()}return o}isPinningLeft(){return this.displayedColumnsLeft.length>0}isPinningRight(){return this.displayedColumnsRight.length>0}getPrimaryAndSecondaryAndAutoColumns(){return[].concat(this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[])}createStateItemFromColumn(e){const t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,n=e.isPivotActive()?this.pivotColumns.indexOf(e):null,i=e.isValueActive()?e.getAggFunc():null,o=null!=e.getSort()?e.getSort():null,r=null!=e.getSortIndex()?e.getSortIndex():null,a=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:o,sortIndex:r,aggFunc:i,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:n,flex:a}}getColumnState(){if(Ve(this.primaryColumns)||!this.isAlive())return[];const e=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(e),e}orderColumnStateList(e){const t=Vn(this.gridColumns.map(((e,t)=>[e.getColId(),t])));e.sort(((e,n)=>(t.has(e.colId)?t.get(e.colId):-1)-(t.has(n.colId)?t.get(n.colId):-1)))}resetColumnState(e){if(He(this.primaryColumns))return;const t=this.getColumnsFromTree(this.primaryColumnTree),n=[];let i=1e3,o=1e3,r=[];this.groupAutoColumns&&(r=r.concat(this.groupAutoColumns)),t&&(r=r.concat(t)),r.forEach((e=>{const t=this.getColumnStateFromColDef(e);Ve(t.rowGroupIndex)&&t.rowGroup&&(t.rowGroupIndex=i++),Ve(t.pivotIndex)&&t.pivot&&(t.pivotIndex=o++),n.push(t)})),this.applyColumnState({state:n,applyOrder:!0},e)}getColumnStateFromColDef(e){const t=(e,t)=>null!=e?e:null!=t?t:null,n=e.getColDef(),i=t(n.sort,n.initialSort),o=t(n.sortIndex,n.initialSortIndex),r=t(n.hide,n.initialHide),a=t(n.pinned,n.initialPinned),s=t(n.width,n.initialWidth),l=t(n.flex,n.initialFlex);let d=t(n.rowGroupIndex,n.initialRowGroupIndex),c=t(n.rowGroup,n.initialRowGroup);null!=d||null!=c&&0!=c||(d=null,c=null);let g=t(n.pivotIndex,n.initialPivotIndex),u=t(n.pivot,n.initialPivot);null!=g||null!=u&&0!=u||(g=null,u=null);const h=t(n.aggFunc,n.initialAggFunc);return{colId:e.getColId(),sort:i,sortIndex:o,hide:r,pinned:a,width:s,flex:l,rowGroup:c,rowGroupIndex:d,pivot:u,pivotIndex:g,aggFunc:h}}applyColumnState(e,t){if(He(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: 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."),!1;const n=(n,i,o)=>{const r=this.compareColumnStatesAndDispatchEvents(t);this.autoGroupsNeedBuilding=!0;const a=i.slice(),s={},l={},d=[],c=[];let g=0;const u=this.rowGroupColumns.slice(),h=this.pivotColumns.slice();n.forEach((n=>{const i=n.colId||"";if(i.startsWith(Mn))return d.push(n),void c.push(n);const r=o(i);r?(this.syncColumnWithStateItem(r,n,e.defaultState,s,l,!1,t),Zt(a,r)):(c.push(n),g+=1)}));const p=n=>this.syncColumnWithStateItem(n,null,e.defaultState,s,l,!1,t);a.forEach(p);const m=(e,t,n,i)=>{const o=e[n.getId()],r=e[i.getId()],a=null!=o,s=null!=r;if(a&&s)return o-r;if(a)return-1;if(s)return 1;const l=t.indexOf(n),d=t.indexOf(i),c=l>=0;return c&&d>=0?l-d:c?-1:1};this.rowGroupColumns.sort(m.bind(this,s,u)),this.pivotColumns.sort(m.bind(this,l,h)),this.updateGridColumns();const v=this.groupAutoColumns?this.groupAutoColumns.slice():[];return d.forEach((n=>{const i=this.getAutoColumn(n.colId);Zt(v,i),this.syncColumnWithStateItem(i,n,e.defaultState,null,null,!0,t)})),v.forEach(p),this.applyOrderAfterApplyState(e),this.updateDisplayedColumns(t),this.dispatchEverythingChanged(t),r(),{unmatchedAndAutoStates:c,unmatchedCount:g}};this.columnAnimationService.start();let{unmatchedAndAutoStates:i,unmatchedCount:o}=n(e.state||[],this.primaryColumns||[],(e=>this.getPrimaryColumn(e)));return(i.length>0||ze(e.defaultState))&&(o=n(i,this.secondaryColumns||[],(e=>this.getSecondaryColumn(e))).unmatchedCount),this.columnAnimationService.finish(),0===o}applyOrderAfterApplyState(e){if(!e.applyOrder||!e.state)return;let t=[];const n={};e.state.forEach((e=>{if(!e.colId||n[e.colId])return;const i=this.gridColumnsMap[e.colId];i&&(t.push(i),n[e.colId]=!0)}));let i=0;this.gridColumns.forEach((e=>{const o=e.getColId();if(null!=n[o])return;o.startsWith(Mn)?tn(t,e,i++):t.push(e)})),t=this.placeLockedColumns(t),this.doesMovePassMarryChildren(t)?this.gridColumns=t:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}compareColumnStatesAndDispatchEvents(e){const t={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},n=this.getColumnState(),i={};return n.forEach((e=>{i[e.colId]=e})),()=>{const o=this.getPrimaryAndSecondaryAndAutoColumns(),r=(t,n,i,o)=>{if(Yt(n.map(o),i.map(o)))return;const r=new Set(n);i.forEach((e=>{r.delete(e)||r.add(e)}));const a=[...r],s={type:t,columns:a,column:1===a.length?a[0]:null,source:e};this.eventService.dispatchEvent(s)},a=e=>{const t=[];return o.forEach((n=>{const o=i[n.getColId()];o&&e(o,n)&&t.push(n)})),t},s=e=>e.getColId();r(An.EVENT_COLUMN_ROW_GROUP_CHANGED,t.rowGroupColumns,this.rowGroupColumns,s),r(An.EVENT_COLUMN_PIVOT_CHANGED,t.pivotColumns,this.pivotColumns,s);const l=a(((e,t)=>{const n=null!=e.aggFunc,i=n!=t.isValueActive(),o=n&&e.aggFunc!=t.getAggFunc();return i||o}));l.length>0&&this.dispatchColumnChangedEvent(An.EVENT_COLUMN_VALUE_CHANGED,l,e);this.dispatchColumnResizedEvent(a(((e,t)=>e.width!=t.getActualWidth())),!0,e);this.dispatchColumnPinnedEvent(a(((e,t)=>e.pinned!=t.getPinned())),e);this.dispatchColumnVisibleEvent(a(((e,t)=>e.hide==t.isVisible())),e);const d=a(((e,t)=>e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()));d.length>0&&this.sortController.dispatchSortChangedEvents(e,d),this.normaliseColumnMovedEventForColumnState(n,e)}}getCommonValue(e,t){if(!e||0==e.length)return;const n=t(e[0]);for(let i=1;i<e.length;i++)if(n!==t(e[i]))return;return n}normaliseColumnMovedEventForColumnState(e,t){const n=this.getColumnState(),i={};n.forEach((e=>i[e.colId]=e));const o={};e.forEach((e=>{i[e.colId]&&(o[e.colId]=!0)}));const r=e.filter((e=>o[e.colId])),a=n.filter((e=>o[e.colId])),s=[];a.forEach(((e,t)=>{const n=r&&r[t];if(n&&n.colId!==e.colId){const e=this.getGridColumn(n.colId);e&&s.push(e)}})),s.length&&this.dispatchColumnMovedEvent({movedColumns:s,source:t,finished:!0})}syncColumnWithStateItem(e,t,n,i,o,r,a){var s;if(!e)return;const l=(e,i)=>{const o={value1:void 0,value2:void 0};let r=!1;return t&&(void 0!==t[e]&&(o.value1=t[e],r=!0),ze(i)&&void 0!==t[i]&&(o.value2=t[i],r=!0)),!r&&n&&(void 0!==n[e]&&(o.value1=n[e]),ze(i)&&void 0!==n[i]&&(o.value2=n[i])),o},d=l("hide").value1;void 0!==d&&e.setVisible(!d,a);const c=l("pinned").value1;void 0!==c&&e.setPinned(c);const g=null!=(s=e.getColDef().minWidth)?s:this.environment.getMinColWidth(),u=l("flex").value1;if(void 0!==u&&e.setFlex(u),null==u){const t=l("width").value1;null!=t&&null!=g&&t>=g&&e.setActualWidth(t,a)}const h=l("sort").value1;void 0!==h&&("desc"===h||"asc"===h?e.setSort(h,a):e.setSort(void 0,a));const p=l("sortIndex").value1;if(void 0!==p&&e.setSortIndex(p),r||!e.isPrimary())return;const m=l("aggFunc").value1;void 0!==m&&("string"==typeof m?(e.setAggFunc(m),e.isValueActive()||(e.setValueActive(!0,a),this.valueColumns.push(e))):(ze(m)&&console.warn("AG Grid: 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."),e.isValueActive()&&(e.setValueActive(!1,a),Zt(this.valueColumns,e))));const{value1:v,value2:f}=l("rowGroup","rowGroupIndex");void 0===v&&void 0===f||("number"==typeof f||v?(e.isRowGroupActive()||(e.setRowGroupActive(!0,a),this.rowGroupColumns.push(e)),i&&"number"==typeof f&&(i[e.getId()]=f)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,a),Zt(this.rowGroupColumns,e)));const{value1:C,value2:w}=l("pivot","pivotIndex");void 0===C&&void 0===w||("number"==typeof w||C?(e.isPivotActive()||(e.setPivotActive(!0,a),this.pivotColumns.push(e)),o&&"number"==typeof w&&(o[e.getId()]=w)):e.isPivotActive()&&(e.setPivotActive(!1,a),Zt(this.pivotColumns,e)))}getGridColumns(e){return this.getColumns(e,this.getGridColumn.bind(this))}getColumns(e,t){const n=[];return e&&e.forEach((e=>{const i=t(e);i&&n.push(i)})),n}getColumnWithValidation(e){if(null==e)return null;const t=this.getGridColumn(e);return t||console.warn("AG Grid: could not find column "+e),t}getPrimaryColumn(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null}getGridColumn(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)}lookupGridColumn(e){return this.gridColumnsMap[e]}getSecondaryColumn(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null}getColumn(e,t,n){if(!e||!n)return null;if("string"==typeof e&&n[e])return n[e];for(let n=0;n<t.length;n++)if(this.columnsMatch(t[n],e))return t[n];return this.getAutoColumn(e)}getSourceColumnsForGroupColumn(e){const t=e.getColDef().showRowGroup;if(!t)return null;if(!0===t)return this.rowGroupColumns.slice(0);const n=this.getPrimaryColumn(t);return n?[n]:null}getAutoColumn(e){return this.groupAutoColumns&&ze(this.groupAutoColumns)&&!Ve(this.groupAutoColumns)&&this.groupAutoColumns.find((t=>this.columnsMatch(t,e)))||null}columnsMatch(e,t){const n=e===t,i=e.getColDef()===t,o=e.getColId()==t;return n||i||o}getDisplayNameForColumn(e,t,n=!1){if(!e)return null;const i=this.getHeaderName(e.getColDef(),e,null,null,t);return n?this.wrapHeaderNameWithAggFunc(e,i):i}getDisplayNameForProvidedColumnGroup(e,t,n){const i=t?t.getColGroupDef():null;return i?this.getHeaderName(i,null,e,t,n):null}getDisplayNameForColumnGroup(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)}getHeaderName(e,t,n,i,o){const r=e.headerValueGetter;if(r){const a=this.gos.addGridCommonParams({colDef:e,column:t,columnGroup:n,providedColumnGroup:i,location:o});return"function"==typeof r?r(a):"string"==typeof r?this.expressionService.evaluate(r,a):(console.warn("AG Grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?kn(e.field):""}wrapHeaderNameWithAggFunc(e,t){if(this.gos.get("suppressAggFuncInHeader"))return t;const n=e.getColDef().pivotValueColumn;let i,o=null;if(ze(n)){const r=this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&1===this.valueColumns.length,a=void 0!==e.getColDef().pivotTotalColumnIds;if(r&&!a)return t;o=n?n.getAggFunc():null,i=!0}else{const t=e.isValueActive(),n=this.pivotMode||!this.isRowGroupEmpty();t&&n?(o=e.getAggFunc(),i=!0):i=!1}if(i){const e="string"==typeof o?o:"func";return`${this.localeService.getLocaleTextFunc()(e,e)}(${t})`}return t}getColumnGroup(e,t){if(!e)return null;if(e instanceof Rn)return e;const n=this.getAllDisplayedTrees(),i="number"==typeof t;let o=null;return jn(n,!1,(n=>{if(n instanceof Rn){const r=n;let a;a=i?e===r.getGroupId()&&t===r.getPartId():e===r.getGroupId(),a&&(o=r)}})),o}isReady(){return this.ready}extractValueColumns(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,((t,n)=>t.setValueActive(n,e)),(()=>{}),(()=>{}),(e=>{const t=e.aggFunc;return null===t||""===t?null:void 0!==t?!!t:void 0}),(e=>null!=e.initialAggFunc&&""!=e.initialAggFunc)),this.valueColumns.forEach((e=>{const t=e.getColDef();null!=t.aggFunc&&""!=t.aggFunc?e.setAggFunc(t.aggFunc):e.getAggFunc()||e.setAggFunc(t.initialAggFunc)}))}extractRowGroupColumns(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,((t,n)=>t.setRowGroupActive(n,e)),(e=>e.rowGroupIndex),(e=>e.initialRowGroupIndex),(e=>e.rowGroup),(e=>e.initialRowGroup))}extractColumns(e=[],t=[],n,i,o,r,a){const s=[],l=[];(this.primaryColumns||[]).forEach((n=>{const d=e.indexOf(n)<0,c=n.getColDef(),g=Ue(r(c)),u=Ue(a(c)),h=We(i(c)),p=We(o(c));let m;if(m=void 0!==g?g:void 0!==h?null!==h&&h>=0:d?void 0!==u?u:!!(void 0!==p)&&(null!=p&&p>=0):t.indexOf(n)>=0,m){(d?null!=h||null!=p:null!=h)?s.push(n):l.push(n)}}));const d=e=>{const t=i(e.getColDef()),n=o(e.getColDef());return null!=t?t:n};s.sort(((e,t)=>{const n=d(e),i=d(t);return n===i?0:n<i?-1:1}));const c=[].concat(s);return t.forEach((e=>{l.indexOf(e)>=0&&c.push(e)})),l.forEach((e=>{c.indexOf(e)<0&&c.push(e)})),t.forEach((e=>{c.indexOf(e)<0&&n(e,!1)})),c.forEach((e=>{t.indexOf(e)<0&&n(e,!0)})),c}extractPivotColumns(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,((t,n)=>t.setPivotActive(n,e)),(e=>e.pivotIndex),(e=>e.initialPivotIndex),(e=>e.pivot),(e=>e.initialPivot))}resetColumnGroupState(e){if(!this.primaryColumnTree)return;const t=[];Dn(null,this.primaryColumnTree,(e=>{if(e instanceof Ht){const n=e.getColGroupDef(),i={groupId:e.getGroupId(),open:n?n.openByDefault:void 0};t.push(i)}})),this.setColumnGroupState(t,e)}getColumnGroupState(){const e=[];return Dn(null,this.gridBalancedTree,(t=>{t instanceof Ht&&e.push({groupId:t.getGroupId(),open:t.isExpanded()})})),e}setColumnGroupState(e,t){if(!this.gridBalancedTree)return;this.columnAnimationService.start();const n=[];if(e.forEach((e=>{const t=e.groupId,i=e.open,o=this.getProvidedColumnGroup(t);o&&o.isExpanded()!==i&&(this.logger.log("columnGroupOpened("+o.getGroupId()+","+i+")"),o.setExpanded(i),n.push(o))})),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),n.length){const e={type:An.EVENT_COLUMN_GROUP_OPENED,columnGroup:1===Ht.length?n[0]:void 0,columnGroups:n};this.eventService.dispatchEvent(e)}this.columnAnimationService.finish()}setColumnGroupOpened(e,t,n){let i;i=e instanceof Ht?e.getId():e||"",this.setColumnGroupState([{groupId:i,open:t}],n)}getProvidedColumnGroup(e){"string"!=typeof e&&console.error("AG Grid: group key must be a string");let t=null;return Dn(null,this.gridBalancedTree,(n=>{n instanceof Ht&&n.getId()===e&&(t=n)})),t}calculateColumnsForDisplay(){let e;return e=this.pivotMode&&Ve(this.secondaryColumns)?this.gridColumns.filter((e=>{const t=this.groupAutoColumns&&rn(this.groupAutoColumns,e),n=this.valueColumns&&rn(this.valueColumns,e);return t||n})):this.gridColumns.filter((e=>this.groupAutoColumns&&rn(this.groupAutoColumns,e)||e.isVisible())),e}checkColSpanActiveInCols(e){let t=!1;return e.forEach((e=>{ze(e.getColDef().colSpan)&&(t=!0)})),t}calculateColumnsForGroupDisplay(){this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};this.gridColumns.forEach((e=>{const t=e.getColDef(),n=t.showRowGroup;t&&ze(n)&&(this.groupDisplayColumns.push(e),"string"==typeof n?this.groupDisplayColumnsMap[n]=e:!0===n&&this.getRowGroupColumns().forEach((t=>{this.groupDisplayColumnsMap[t.getId()]=e})))}))}getGroupDisplayColumns(){return this.groupDisplayColumns}getGroupDisplayColumnForGroup(e){return this.groupDisplayColumnsMap[e]}updateDisplayedColumns(e){const t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)}isSecondaryColumnsPresent(){return ze(this.secondaryColumns)}setSecondaryColumns(e,t){if(!this.gridColumns)return;const n=e;if(n||!Ve(this.secondaryColumns)){if(n){this.processSecondaryColumnDefinitions(e);const n=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0,t);this.destroyOldColumns(this.secondaryBalancedTree,n.columnTree),this.secondaryBalancedTree=n.columnTree,this.secondaryHeaderRowCount=n.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach((e=>this.secondaryColumnsMap[e.getId()]=e)),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(t)}}processSecondaryColumnDefinitions(e){const t=this.gos.get("processPivotResultColDef"),n=this.gos.get("processPivotResultColGroupDef");if(!t&&!n)return;const i=e=>{e.forEach((e=>{if(ze(e.children)){const t=e;n&&n(t),i(t.children)}else{t&&t(e)}}))};e&&i(e)}updateGridColumns(){const e=this.gridBalancedTree;this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns;if(this.createGroupAutoColumnsIfNeeded()){const e=Vn(this.groupAutoColumns.map((e=>[e,!0])));this.lastPrimaryOrder&&(this.lastPrimaryOrder=this.lastPrimaryOrder.filter((t=>!e.has(t))),this.lastPrimaryOrder=[...this.groupAutoColumns,...this.lastPrimaryOrder]),this.lastSecondaryOrder&&(this.lastSecondaryOrder=this.lastSecondaryOrder.filter((t=>!e.has(t))),this.lastSecondaryOrder=[...this.groupAutoColumns,...this.lastSecondaryOrder])}let t;if(this.secondaryColumns&&this.secondaryBalancedTree){const e=this.secondaryColumns.some((e=>void 0!==this.gridColumnsMap[e.getColId()]));this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,e&&(t=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,t=this.lastPrimaryOrder);if(this.addAutoGroupToGridColumns(),this.orderGridColsLike(t),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.calculateColumnsForGroupDisplay(),this.refreshQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((e=>this.gridColumnsMap[e.getId()]=e)),this.setAutoHeightActive(),!Yt(e,this.gridBalancedTree)){const e={type:An.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(e)}}setAutoHeightActive(){if(this.autoHeightActive=this.gridColumns.filter((e=>e.isAutoHeight())).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;this.gos.isRowModelType("clientSide")||this.gos.isRowModelType("serverSide")||st("autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}}orderGridColsLike(e){if(Ve(e))return;const t=Vn(e.map(((e,t)=>[e,t])));let n=!0;if(this.gridColumns.forEach((e=>{t.has(e)&&(n=!1)})),n)return;const i=Vn(this.gridColumns.map((e=>[e,!0]))),o=e.filter((e=>i.has(e))),r=Vn(o.map((e=>[e,!0]))),a=this.gridColumns.filter((e=>!r.has(e))),s=o.slice();a.forEach((e=>{let t=e.getOriginalParent();if(!t)return void s.push(e);const n=[];for(;!n.length&&t;){t.getLeafColumns().forEach((e=>{const t=s.indexOf(e)>=0,i=n.indexOf(e)<0;t&&i&&n.push(e)})),t=t.getOriginalParent()}if(!n.length)return void s.push(e);const i=n.map((e=>s.indexOf(e))),o=Math.max(...i);tn(s,e,o+1)})),this.gridColumns=s}isPrimaryColumnGroupsPresent(){return this.primaryHeaderRowCount>1}refreshQuickFilterColumns(){var e;let t=null!=(e=this.isPivotMode()&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")?this.secondaryColumns:this.primaryColumns)?e:[];this.groupAutoColumns&&(t=t.concat(this.groupAutoColumns)),this.columnsForQuickFilter=this.gos.get("includeHiddenColumnsInQuickFilter")?t:t.filter((e=>e.isVisible()||e.isRowGroupActive()))}placeLockedColumns(e){const t=[],n=[],i=[];return e.forEach((e=>{const o=e.getColDef().lockPosition;"right"===o?i.push(e):"left"===o||!0===o?t.push(e):n.push(e)})),[...t,...n,...i]}addAutoGroupToGridColumns(){if(Ve(this.groupAutoColumns))return this.destroyOldColumns(this.groupAutoColsBalancedTree),void(this.groupAutoColsBalancedTree=null);this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;const e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.destroyOldColumns(this.groupAutoColsBalancedTree,e),this.groupAutoColsBalancedTree=e,this.gridBalancedTree=e.concat(this.gridBalancedTree)}clearDisplayedAndViewportColumns(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.ariaOrderColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""}updateGroupsAndDisplayedColumns(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();const t={type:An.EVENT_DISPLAYED_COLUMNS_CHANGED};this.eventService.dispatchEvent(t)}deriveDisplayedColumns(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinColumnsAriaOrder(),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter((e=>e.isAutoHeight()))}isAutoRowHeightActive(){return this.autoHeightActive}wasAutoRowHeightEverActive(){return this.autoHeightActiveAtLeastOnce}joinColumnsAriaOrder(){const e=this.getAllGridColumns(),t=[],n=[],i=[];for(const o of e){const e=o.getPinned();e?!0===e||"left"===e?t.push(o):i.push(o):n.push(o)}this.ariaOrderColumns=t.concat(n).concat(i)}joinDisplayedColumns(){this.gos.get("enableRtl")?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)}setLeftValues(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()}setLeftValuesOfColumns(e){if(!this.primaryColumns)return;const t=this.getPrimaryAndSecondaryAndAutoColumns().slice(0),n=this.gos.get("enableRtl");[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((i=>{if(n){let t=this.getWidthOfColsInList(i);i.forEach((n=>{t-=n.getActualWidth(),n.setLeft(t,e)}))}else{let t=0;i.forEach((n=>{n.setLeft(t,e),t+=n.getActualWidth()}))}Jt(t,i)})),t.forEach((t=>{t.setLeft(null,e)}))}setLeftValuesOfGroups(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((e=>{e.forEach((e=>{if(e instanceof Rn){e.checkLeft()}}))}))}derivedDisplayedColumnsFromDisplayedTree(e,t){t.length=0,jn(e,!0,(e=>{e instanceof zt&&t.push(e)}))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||0===this.viewportRight}extractViewportColumns(){this.isColumnVirtualisationSuppressed()?(this.viewportColumnsCenter=this.displayedColumnsCenter,this.headerViewportColumnsCenter=this.displayedColumnsCenter):(this.viewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this)),this.headerViewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this))),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight),this.headerViewportColumns=this.headerViewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)}getVirtualHeaderGroupRow(e,t){let n;switch(e){case"left":n=this.viewportRowLeft[t];break;case"right":n=this.viewportRowRight[t];break;default:n=this.viewportRowCenter[t]}return Ve(n)&&(n=[]),n}calculateHeaderRows(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};const e={};this.headerViewportColumns.forEach((t=>e[t.getId()]=!0));const t=(n,i,o)=>{let r=!1;for(let a=0;a<n.length;a++){const s=n[a];let l=!1;if(s instanceof zt)l=!0===e[s.getId()];else{const e=s.getDisplayedChildren();e&&(l=t(e,i,o+1))}l&&(r=!0,i[o]||(i[o]=[]),i[o].push(s))}return r};t(this.displayedTreeLeft,this.viewportRowLeft,0),t(this.displayedTreeRight,this.viewportRowRight,0),t(this.displayedTreeCentre,this.viewportRowCenter,0)}extractViewport(){this.extractViewportColumns();const e=this.viewportColumns.map((e=>`${e.getId()}-${e.getPinned()||"normal"}`)).join("#"),t=this.viewportColumnsHash!==e;return t&&(this.viewportColumnsHash=e,this.calculateHeaderRows()),t}refreshFlexedColumns(e={}){var t;const n=e.source?e.source:"flex";if(null!=e.viewportWidth&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];let i=-1;if(e.resizingCols){const t=new Set(e.resizingCols);let n=this.displayedColumnsCenter;for(let e=n.length-1;e>=0;e--)if(t.has(n[e])){i=e;break}}let o=0,r=[],a=0,s=0;for(let e=0;e<this.displayedColumnsCenter.length;e++){this.displayedColumnsCenter[e].getFlex()&&e>i?(r.push(this.displayedColumnsCenter[e]),s+=this.displayedColumnsCenter[e].getFlex(),a+=null!=(t=this.displayedColumnsCenter[e].getMinWidth())?t:0):o+=this.displayedColumnsCenter[e].getActualWidth()}if(!r.length)return[];let l=[];o+a>this.flexViewportWidth&&(r.forEach((e=>{var t;return e.setActualWidth(null!=(t=e.getMinWidth())?t:0,n)})),l=r,r=[]);const d=[];let c;e:for(;;){c=this.flexViewportWidth-o;const e=c/s;for(let t=0;t<r.length;t++){const i=r[t],a=e*i.getFlex();let c=0;const g=i.getMinWidth(),u=i.getMaxWidth();if(ze(g)&&a<g?c=g:ze(u)&&a>u&&(c=u),c){i.setActualWidth(c,n),Xt(r,i),s-=i.getFlex(),l.push(i),o+=i.getActualWidth();continue e}d[t]=Math.round(a)}break}let g=c;return r.forEach(((e,t)=>{e.setActualWidth(Math.min(d[t],g),n),l.push(e),g-=d[t]})),e.skipSetLeft||this.setLeftValues(n),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.dispatchColumnResizedEvent(l,!0,n,r),r}sizeColumnsToFit(e,t="sizeColumnsToFit",n,i){var o,r,a,s,l;if(this.shouldQueueResizeOperations)return void this.resizeOperationQueue.push((()=>this.sizeColumnsToFit(e,t,n,i)));const d={};i&&(null==(o=null==i?void 0:i.columnLimits)||o.forEach((e=>{var t=e,{key:n}=t,i=((e,t)=>{var n={};for(var i in e)Me.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&xe)for(var i of xe(e))t.indexOf(i)<0&&Ne.call(e,i)&&(n[i]=e[i]);return n})(t,["key"]);d["string"==typeof n?n:n.getColId()]=i})));const c=this.getAllDisplayedColumns(),g=e===this.getWidthOfColsInList(c);if(e<=0||!c.length||g)return;const u=[],h=[];c.forEach((e=>{!0===e.getColDef().suppressSizeToFit?h.push(e):u.push(e)}));const p=u.slice(0);let m=!1;const v=e=>{Zt(u,e),h.push(e)};for(u.forEach((e=>{var n,o;e.resetActualWidth(t);const r=null==d?void 0:d[e.getId()],a=null!=(n=null==r?void 0:r.minWidth)?n:null==i?void 0:i.defaultMinWidth,s=null!=(o=null==r?void 0:r.maxWidth)?o:null==i?void 0:i.defaultMaxWidth,l=e.getActualWidth();"number"==typeof a&&l<a?e.setActualWidth(a,t,!0):"number"==typeof s&&l>s&&e.setActualWidth(s,t,!0)}));!m;){m=!0;const n=e-this.getWidthOfColsInList(h);if(n<=0)u.forEach((e=>{var n,o;const r=null!=(o=null==(n=null==d?void 0:d[e.getId()])?void 0:n.minWidth)?o:null==i?void 0:i.defaultMinWidth;"number"!=typeof r?e.setMinimum(t):e.setActualWidth(r,t,!0)}));else{const e=n/this.getWidthOfColsInList(u);let o=n;for(let n=u.length-1;n>=0;n--){const c=u[n],g=null==d?void 0:d[c.getId()],h=null!=(r=null==g?void 0:g.minWidth)?r:null==i?void 0:i.defaultMinWidth,p=null!=(a=null==g?void 0:g.maxWidth)?a:null==i?void 0:i.defaultMaxWidth,f=null!=(s=c.getMinWidth())?s:0,C=null!=(l=c.getMaxWidth())?l:Number.MAX_VALUE,w="number"==typeof h&&h>f?h:c.getMinWidth(),y="number"==typeof p&&p<C?p:c.getMaxWidth();let b=Math.round(c.getActualWidth()*e);ze(w)&&b<w?(b=w,v(c),m=!1):ze(y)&&b>y?(b=y,v(c),m=!1):0===n&&(b=o),c.setActualWidth(b,t,!0),o-=b}}}p.forEach((e=>{e.fireColumnWidthChangedEvent(t)})),this.setLeftValues(t),this.updateBodyWidths(),n||this.dispatchColumnResizedEvent(p,!0,t)}buildDisplayedTrees(e){const t=[],n=[],i=[];e.forEach((e=>{switch(e.getPinned()){case"left":t.push(e);break;case"right":n.push(e);break;default:i.push(e)}}));const o=new class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let n;return n="number"!=typeof t?0:t+1,this.existingIds[e]=n,n}};this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(t,o,"left",this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(n,o,"right",this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(i,o,null,this.displayedTreeCentre),this.updateDisplayedMap()}updateDisplayedMap(){this.displayedColumnsAndGroupsMap={};const e=e=>{this.displayedColumnsAndGroupsMap[e.getUniqueId()]=e};jn(this.displayedTreeCentre,!1,e),jn(this.displayedTreeLeft,!1,e),jn(this.displayedTreeRight,!1,e)}isDisplayed(e){return this.displayedColumnsAndGroupsMap[e.getUniqueId()]===e}updateOpenClosedVisibilityInColumnGroups(){jn(this.getAllDisplayedTrees(),!1,(e=>{e instanceof Rn&&e.calculateDisplayedColumns()}))}getGroupAutoColumns(){return this.groupAutoColumns}createGroupAutoColumnsIfNeeded(){const e=this.forceRecreateAutoGroups;if(this.forceRecreateAutoGroups=!1,!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;const t=this.gos.isGroupUseEntireRow(this.pivotMode),n=this.pivotMode?this.gos.get("pivotSuppressAutoColumn"):this.isGroupSuppressAutoColumn();if((this.rowGroupColumns.length>0||this.gos.get("treeData"))&&!n&&!t){const t=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);if(!this.autoColsEqual(t,this.groupAutoColumns)||e)return this.groupAutoColumns=t,!0}else this.groupAutoColumns=null;return!1}isGroupSuppressAutoColumn(){if("custom"===this.gos.get("groupDisplayType"))return!0;return"custom"===this.gos.get("treeDataDisplayType")}autoColsEqual(e,t){return Yt(e,t,((e,t)=>e.getColId()===t.getColId()))}getWidthOfColsInList(e){return e.reduce(((e,t)=>e+t.getActualWidth()),0)}getFirstDisplayedColumn(){const e=this.gos.get("enableRtl"),t=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&t.reverse();for(let n=0;n<t.length;n++){const i=this[t[n]]();if(i.length)return e?Kt(i):i[0]}return null}setColumnHeaderHeight(e,t){if(e.setAutoHeaderHeight(t)){const t={type:An.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,column:e,columns:[e],source:"autosizeColumnHeaderHeight"};this.eventService.dispatchEvent(t)}}getColumnGroupHeaderRowHeight(){return this.isPivotMode()?this.getPivotGroupHeaderHeight():this.getGroupHeaderHeight()}getColumnHeaderRowHeight(){const e=this.isPivotMode()?this.getPivotHeaderHeight():this.getHeaderHeight(),t=this.getAllDisplayedColumns().filter((e=>e.isAutoHeaderHeight())).map((e=>e.getAutoHeaderHeight()||0));return Math.max(e,...t)}getHeaderHeight(){var e;return null!=(e=this.gos.get("headerHeight"))?e:this.environment.getFromTheme(25,"headerHeight")}getFloatingFiltersHeight(){var e;return null!=(e=this.gos.get("floatingFiltersHeight"))?e:this.getHeaderHeight()}getGroupHeaderHeight(){var e;return null!=(e=this.gos.get("groupHeaderHeight"))?e:this.getHeaderHeight()}getPivotHeaderHeight(){var e;return null!=(e=this.gos.get("pivotHeaderHeight"))?e:this.getHeaderHeight()}getPivotGroupHeaderHeight(){var e;return null!=(e=this.gos.get("pivotGroupHeaderHeight"))?e:this.getGroupHeaderHeight()}queueResizeOperations(){this.shouldQueueResizeOperations=!0}processResizeOperations(){this.shouldQueueResizeOperations=!1,this.resizeOperationQueue.forEach((e=>e())),this.resizeOperationQueue=[]}resetColumnDefIntoColumn(e,t){const n=e.getUserProvidedColDef();if(!n)return!1;const i=this.columnFactory.addColumnDefaultAndTypes(n,e.getColId());return e.setColDef(i,n,t),!0}isColumnGroupingLocked(e){const t=this.gos.get("groupLockGroupColumns");if(!e.isRowGroupActive()||0===t)return!1;if(-1===t)return!0;return t>this.rowGroupColumns.findIndex((t=>t.getColId()===e.getColId()))}generateColumnStateForRowGroupAndPivotIndexes(e,t){let n={};const i=(e,t,i,o,r,a)=>{if(!t.length||!this.primaryColumns)return[];const s=Object.keys(e),l=new Set(s),d=new Set(s),c=new Set(t.map((e=>{const t=e.getColId();return d.delete(t),t})).concat(s)),g=[],u={};let h=0;for(let e=0;e<this.primaryColumns.length;e++){const t=this.primaryColumns[e].getColId();c.has(t)&&(g.push(t),u[t]=h++)}let p=1e3,m=!1,v=0;const f=t=>{const n=u[t];for(let t=v;t<n;t++){const n=g[t];d.has(n)&&(e[n][r]=p++,d.delete(n))}v=n};t.forEach((t=>{const s=t.getColId();if(l.has(s))f(s),e[s][r]=p++;else{const l=t.getColDef();if(null===l[r]||void 0===l[r]&&null==l[a]){if(!m){l[i]||void 0===l[i]&&l[o]?f(s):(d.forEach((t=>{e[t][r]=p+u[t]})),p+=g.length,m=!0)}n[s]||(n[s]={colId:s}),n[s][r]=p++}}}))};return i(e,this.rowGroupColumns,"rowGroup","initialRowGroup","rowGroupIndex","initialRowGroupIndex"),i(t,this.pivotColumns,"pivot","initialPivot","pivotIndex","initialPivotIndex"),Object.values(n)}onColumnsReady(){const e=this.gos.get("autoSizeStrategy");if(!e)return;const{type:t}=e;setTimeout((()=>{if("fitGridWidth"===t){const{columnLimits:t,defaultMinWidth:n,defaultMaxWidth:i}=e,o=null==t?void 0:t.map((({colId:e,minWidth:t,maxWidth:n})=>({key:e,minWidth:t,maxWidth:n})));this.ctrlsService.getGridBodyCtrl().sizeColumnsToFit({defaultMinWidth:n,defaultMaxWidth:i,columnLimits:o})}else"fitProvidedWidth"===t&&this.sizeColumnsToFit(e.width,"sizeColumnsToFit")}))}onFirstDataRendered(){const e=this.gos.get("autoSizeStrategy");if("fitCellContents"!==(null==e?void 0:e.type))return;const{colIds:t,skipHeader:n}=e;setTimeout((()=>{t?this.autoSizeColumns({columns:t,skipHeader:n,source:"autosizeColumns"}):this.autoSizeAllColumns("autosizeColumns",n)}))}};function Un(e){return"gridOptionsUpdated"===e?"gridOptionsChanged":e}function jn(e,t,n){if(e)for(let i=0;i<e.length;i++){const o=e[i];if(o instanceof Rn){jn(t?o.getDisplayedChildren():o.getChildren(),t,n)}n(o)}}_e([xt("expressionService")],Wn.prototype,"expressionService",2),_e([xt("columnFactory")],Wn.prototype,"columnFactory",2),_e([xt("displayedGroupCreator")],Wn.prototype,"displayedGroupCreator",2),_e([xt("ctrlsService")],Wn.prototype,"ctrlsService",2),_e([xt("autoWidthCalculator")],Wn.prototype,"autoWidthCalculator",2),_e([xt("columnAnimationService")],Wn.prototype,"columnAnimationService",2),_e([xt("autoGroupColService")],Wn.prototype,"autoGroupColService",2),_e([xt("valueCache")],Wn.prototype,"valueCache",2),_e([xt("animationFrameService")],Wn.prototype,"animationFrameService",2),_e([xt("sortController")],Wn.prototype,"sortController",2),_e([xt("columnDefFactory")],Wn.prototype,"columnDefFactory",2),_e([Mt("aggFuncService")],Wn.prototype,"aggFuncService",2),_e([Tt],Wn.prototype,"init",1),_e([Rt],Wn.prototype,"destroyColumns",1),_e([Oe(0,Pt("loggerFactory"))],Wn.prototype,"setBeans",1),Wn=_e([At("columnModel")],Wn);var Kn=class extends En{createDisplayedGroups(e,t,n,i){const o=this.mapOldGroupsById(i),r=[];let a=e;for(;a.length;){const e=a;a=[];let i=0;const s=s=>{const l=i;i=s;const d=e[l],c=(d instanceof Rn?d.getProvidedColumnGroup():d).getOriginalParent();if(null==c){for(let t=l;t<s;t++)r.push(e[t]);return}const g=this.createColumnGroup(c,t,o,n);for(let t=l;t<s;t++)g.addChild(e[t]);a.push(g)};for(let t=1;t<e.length;t++){const n=e[t],o=(n instanceof Rn?n.getProvidedColumnGroup():n).getOriginalParent(),r=e[i];o!==(r instanceof Rn?r.getProvidedColumnGroup():r).getOriginalParent()&&s(t)}i<e.length&&s(e.length)}return this.setupParentsIntoColumns(r,null),r}createColumnGroup(e,t,n,i){const o=e.getGroupId(),r=t.getInstanceIdForKey(o);let a=n[Rn.createUniqueId(o,r)];return a&&a.getProvidedColumnGroup()!==e&&(a=null),ze(a)?a.reset():(a=new Rn(e,o,r,i),this.context.createBean(a)),a}mapOldGroupsById(e){const t={},n=e=>{e.forEach((e=>{if(e instanceof Rn){const i=e;t[e.getUniqueId()]=i,n(i.getChildren())}}))};return e&&n(e),t}setupParentsIntoColumns(e,t){e.forEach((e=>{if(e.setParent(t),e instanceof Rn){const t=e;this.setupParentsIntoColumns(t.getChildren(),t)}}))}};Kn=_e([At("displayedGroupCreator")],Kn);var Yn={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,excludeHiddenColumnsFromQuickFilter:!0,advancedFilterModel:!0,customChartThemes:!0,chartThemeOverrides:!0,enableChartToolPanelsButton:!0,suppressChartToolPanelsButton:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressParentsInRowNodes:!0,suppressTouch:!0,suppressAsyncEvents:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginationPageSizeSelector:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,suppressAggFuncInHeader:!0,suppressAggAtRootLevel:!0,removePivotHeaderRowWhenSingleValueColumn:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,suppressGroupMaintainValueType:!0,groupLockGroupColumns:!0,rowGroupPanelSuppressSort:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,suppressServerSideInfiniteScroll:!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,functionsPassive:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,columnMenu:!0},$n=class _PropertyKeys{};$n.STRING_PROPERTIES=["rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","grandTotalRow"],$n.OBJECT_PROPERTIES=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","sideBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterModel","advancedFilterParent","advancedFilterBuilderParams","initialState","autoSizeStrategy"],$n.ARRAY_PROPERTIES=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector"],$n.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns"],$n.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupIncludeTotalFooter","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","excludeHiddenColumnsFromQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterMovesDown","enterMovesDownAfterEdit","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","enableChartToolPanelsButton","suppressChartToolPanelsButton","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilterAllLevels","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","serverSideSortOnServer","serverSideFilterOnServer","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","suppressServerSideInfiniteScroll","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","suppressGroupMaintainValueType","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval"],$n.OTHER_PROPERTIES=["suppressStickyTotalRow"],$n.FUNCTIONAL_PROPERTIES=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","fullWidthCellRenderer","loadingCellRenderer","loadingOverlayComponent","noRowsOverlayComponent","detailCellRenderer","quickFilterParser","quickFilterMatcher"],$n.CALLBACK_PROPERTIES=["getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","sendToClipboard","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","groupIncludeFooter","loadingCellRendererSelector","getRowId","groupAggFiltering","chartMenuItems","groupTotalRow"],$n.FUNCTION_PROPERTIES=[...$n.FUNCTIONAL_PROPERTIES,...$n.CALLBACK_PROPERTIES],$n.ALL_PROPERTIES=[...$n.ARRAY_PROPERTIES,...$n.OBJECT_PROPERTIES,...$n.STRING_PROPERTIES,...$n.NUMBER_PROPERTIES,...$n.FUNCTION_PROPERTIES,...$n.BOOLEAN_PROPERTIES,...$n.OTHER_PROPERTIES];var Qn=$n,qn=class _ComponentUtil{static getCallbackForEvent(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}static getGridOptionKeys(){return this.ALL_PROPERTIES_AND_CALLBACKS}static combineAttributesAndGridOptions(e,t){"object"!=typeof e&&(e={});const n=Ie({},e);return _ComponentUtil.getGridOptionKeys().forEach((e=>{const i=t[e];void 0!==i&&i!==_ComponentUtil.VUE_OMITTED_PROPERTY&&(n[e]=i)})),n}static processOnChange(e,t,n){if(!e)return;const i={};let o=!1;if(Object.keys(e).filter((e=>_ComponentUtil.ALL_PROPERTIES_AND_CALLBACKS_SET.has(e))).forEach((t=>{i[t]=e[t],o=!0})),!o)return;t.__internalUpdateGridOptions(i,!0);const r={type:An.EVENT_COMPONENT_STATE_CHANGED};qe(i,((e,t)=>{r[e]=t})),t.dispatchEvent(r)}};qn.EVENTS=$e(An),qn.VUE_OMITTED_PROPERTY="AG-VUE-OMITTED-PROPERTY",qn.EXCLUDED_INTERNAL_EVENTS=[An.EVENT_SCROLLBAR_WIDTH_CHANGED,An.EVENT_CHECKBOX_CHANGED,An.EVENT_HEIGHT_SCALE_CHANGED,An.EVENT_BODY_HEIGHT_CHANGED,An.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED,An.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,An.EVENT_SCROLL_VISIBILITY_CHANGED,An.EVENT_COLUMN_HOVER_CHANGED,An.EVENT_FLASH_CELLS,An.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,An.EVENT_DISPLAYED_ROWS_CHANGED,An.EVENT_LEFT_PINNED_WIDTH_CHANGED,An.EVENT_RIGHT_PINNED_WIDTH_CHANGED,An.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,An.EVENT_STORE_UPDATED,An.EVENT_COLUMN_PANEL_ITEM_DRAG_START,An.EVENT_COLUMN_PANEL_ITEM_DRAG_END,An.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,An.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,An.EVENT_FULL_WIDTH_ROW_FOCUSED,An.EVENT_HEADER_HEIGHT_CHANGED,An.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,An.EVENT_CELL_FOCUS_CLEARED,An.EVENT_GRID_STYLES_CHANGED,An.EVENT_FILTER_DESTROYED,An.EVENT_ROW_DATA_UPDATE_STARTED,An.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,An.EVENT_DATA_TYPES_INFERRED,An.EVENT_FIELD_VALUE_CHANGED,An.EVENT_FIELD_PICKER_VALUE_SELECTED,An.EVENT_SUPPRESS_COLUMN_MOVE_CHANGED,An.EVENT_SUPPRESS_MENU_HIDE_CHANGED,An.EVENT_SUPPRESS_FIELD_DOT_NOTATION,An.EVENT_ROW_COUNT_READY,An.EVENT_SIDE_BAR_UPDATED],qn.PUBLIC_EVENTS=qn.EVENTS.filter((e=>!rn(qn.EXCLUDED_INTERNAL_EVENTS,e))),qn.EVENT_CALLBACKS=qn.EVENTS.map((e=>qn.getCallbackForEvent(e))),qn.BOOLEAN_PROPERTIES=Qn.BOOLEAN_PROPERTIES,qn.ALL_PROPERTIES=Qn.ALL_PROPERTIES,qn.ALL_PROPERTIES_AND_CALLBACKS=[...qn.ALL_PROPERTIES,...qn.EVENT_CALLBACKS],qn.ALL_PROPERTIES_AND_CALLBACKS_SET=new Set(qn.ALL_PROPERTIES_AND_CALLBACKS);var Xn=qn,Zn=class extends En{constructor(){super(...arguments),this.componentsMappedByName={}}setupComponents(e){e&&e.forEach((e=>this.addComponent(e)))}addComponent(e){const t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.componentClass}getComponentClass(e){return this.componentsMappedByName[e]}};Zn=_e([At("agStackComponentsRegistry")],Zn);var Jn={};function ei(e,t,n){null==n||"string"==typeof n&&""==n?ni(e,t):ti(e,t,n)}function ti(e,t,n){e.setAttribute(ii(t),n.toString())}function ni(e,t){e.removeAttribute(ii(t))}function ii(e){return`aria-${e}`}function oi(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function ri(e){let t;return t="asc"===e?"ascending":"desc"===e?"descending":"mixed"===e?"other":"none",t}function ai(e){return parseInt(e.getAttribute("aria-level"),10)}function si(e){return parseInt(e.getAttribute("aria-posinset"),10)}function li(e){return e.getAttribute("aria-label")}function di(e,t){ei(e,"label",t)}function ci(e,t){ei(e,"labelledby",t)}function gi(e,t){ei(e,"describedby",t)}function ui(e,t){ei(e,"live",t)}function hi(e,t){ei(e,"atomic",t)}function pi(e,t){ei(e,"relevant",t)}function mi(e,t){ei(e,"level",t)}function vi(e,t){ei(e,"disabled",t)}function fi(e,t){ei(e,"hidden",t)}function Ci(e,t){ei(e,"activedescendant",t)}function wi(e,t){ti(e,"expanded",t)}function yi(e){ni(e,"expanded")}function bi(e,t){ti(e,"setsize",t)}function Ei(e,t){ti(e,"posinset",t)}function Si(e,t){ti(e,"multiselectable",t)}function Di(e,t){ti(e,"rowcount",t)}function Ti(e,t){ti(e,"rowindex",t)}function Ri(e,t){ti(e,"colcount",t)}function Ai(e,t){ti(e,"colindex",t)}function xi(e,t){ti(e,"colspan",t)}function Mi(e,t){ti(e,"sort",t)}function Ni(e){ni(e,"sort")}function Pi(e,t){ei(e,"selected",t)}function Ii(e,t){ti(e,"checked",void 0===t?"mixed":t)}function Li(e,t){ei(e,"controls",t.id),ci(t,e.id)}function Fi(e,t){return void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}Fe(Jn,{getAriaCheckboxStateName:()=>Fi,getAriaLabel:()=>li,getAriaLevel:()=>ai,getAriaPosInSet:()=>si,getAriaSortState:()=>ri,removeAriaExpanded:()=>yi,removeAriaSort:()=>Ni,setAriaActiveDescendant:()=>Ci,setAriaAtomic:()=>hi,setAriaChecked:()=>Ii,setAriaColCount:()=>Ri,setAriaColIndex:()=>Ai,setAriaColSpan:()=>xi,setAriaControls:()=>Li,setAriaDescribedBy:()=>gi,setAriaDisabled:()=>vi,setAriaExpanded:()=>wi,setAriaHidden:()=>fi,setAriaLabel:()=>di,setAriaLabelledBy:()=>ci,setAriaLevel:()=>mi,setAriaLive:()=>ui,setAriaMultiSelectable:()=>Si,setAriaPosInSet:()=>Ei,setAriaRelevant:()=>pi,setAriaRole:()=>oi,setAriaRowCount:()=>Di,setAriaRowIndex:()=>Ti,setAriaSelected:()=>Pi,setAriaSetSize:()=>bi,setAriaSort:()=>Mi});var _i,Oi,ki,Gi,zi,Vi,Hi,Bi,Wi={};function Ui(){return void 0===_i&&(_i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),_i}function ji(){if(void 0===Oi)if(Ui()){const e=navigator.userAgent.match(/version\/(\d+)/i);e&&(Oi=null!=e[1]?parseFloat(e[1]):0)}else Oi=0;return Oi}function Ki(){if(void 0===ki){const e=window;ki=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return ki}function Yi(){return void 0===Gi&&(Gi=/(firefox)/i.test(navigator.userAgent)),Gi}function $i(){return void 0===zi&&(zi=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),zi}function Qi(){return void 0===Vi&&(Vi=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),Vi}function qi(){return!Ui()||ji()>=15}function Xi(e){if(!e)return null;const t=e.tabIndex,n=e.getAttribute("tabIndex");return-1!==t||null!==n&&(""!==n||Yi())?t.toString():null}function Zi(){if(!document.body)return-1;let e=1e6;const t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,n=document.createElement("div");for(document.body.appendChild(n);;){const i=2*e;if(n.style.height=i+"px",i>t||n.clientHeight!==i)break;e=i}return document.body.removeChild(n),e}function Ji(){var e,t,n;return null!=(n=null==(e=document.body)?void 0:e.clientWidth)?n:window.innerHeight||(null==(t=document.documentElement)?void 0:t.clientWidth)||-1}function eo(){var e,t,n;return null!=(n=null==(e=document.body)?void 0:e.clientHeight)?n:window.innerHeight||(null==(t=document.documentElement)?void 0:t.clientHeight)||-1}function to(){return null==Bi&&no(),Bi}function no(){const 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 n=t.offsetWidth-t.clientWidth;0===n&&0===t.clientWidth&&(n=null),t.parentNode&&t.parentNode.removeChild(t),null!=n&&(Bi=n,Hi=0===n)}function io(){return null==Hi&&no(),Hi}Fe(Wi,{browserSupportsPreventScroll:()=>qi,getBodyHeight:()=>eo,getBodyWidth:()=>Ji,getMaxDivHeight:()=>Zi,getSafariVersion:()=>ji,getScrollbarWidth:()=>to,getTabIndex:()=>Xi,isBrowserChrome:()=>Ki,isBrowserFirefox:()=>Yi,isBrowserSafari:()=>Ui,isIOSUserAgent:()=>Qi,isInvisibleScrollbar:()=>io,isMacOsUserAgent:()=>$i});var oo={};Fe(oo,{dateToFormattedString:()=>vo,parseDateTimeFromString:()=>fo,serialiseDate:()=>po});var ro={};function ao(e,t){return e.toString().padStart(t,"0")}function so(e,t){const n=[];for(let i=e;i<=t;i++)n.push(i);return n}function lo(e){return"string"==typeof e&&(e=parseInt(e,10)),"number"==typeof e?Math.floor(e):null}function co(e,t){let n="";for(let i=0;i<t;i++)n+=String.fromCharCode(255&e),e>>>=8;return n}function go(e,t,n){return"number"!=typeof e?"":uo(Math.round(100*e)/100,t,n)}function uo(e,t,n){return"number"!=typeof e?"":e.toString().replace(".",n).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${t}`)}function ho(e){return null==e?null:e.reduce(((e,t)=>e+t),0)}function po(e,t=!0,n="-"){if(!e)return null;let i=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((e=>ao(e,2))).join(n);return t&&(i+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((e=>ao(e,2))).join(":")),i}Fe(ro,{cleanNumber:()=>lo,createArrayOfNumbers:()=>so,decToHex:()=>co,formatNumberCommas:()=>uo,formatNumberTwoDecimalPlacesAndCommas:()=>go,padStartWidthZeros:()=>ao,sum:()=>ho});var mo=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"};function vo(e,t="YYYY-MM-DD"){const n=ao(e.getFullYear(),4),i=["January","February","March","April","May","June","July","August","September","October","November","December"],o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r={YYYY:()=>n.slice(n.length-4,n.length),YY:()=>n.slice(n.length-2,n.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>i[e.getMonth()],MMM:()=>i[e.getMonth()].slice(0,3),MM:()=>ao(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${mo(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${mo(e.getDate())}`,DD:()=>ao(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>o[e.getDay()],ddd:()=>o[e.getDay()].slice(0,3),dd:()=>o[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${mo(e.getDay())}`,d:()=>`${e.getDay()}`},a=new RegExp(Object.keys(r).join("|"),"g");return t.replace(a,(e=>e in r?r[e]():e))}function fo(e){if(!e)return null;const[t,n]=e.split(" ");if(!t)return null;const i=t.split("-").map((e=>parseInt(e,10)));if(3!==i.filter((e=>!isNaN(e))).length)return null;const[o,r,a]=i,s=new Date(o,r-1,a);if(s.getFullYear()!==o||s.getMonth()!==r-1||s.getDate()!==a)return null;if(!n||"00:00:00"===n)return s;const[l,d,c]=n.split(":").map((e=>parseInt(e,10)));return l>=0&&l<24&&s.setHours(l),d>=0&&d<60&&s.setMinutes(d),c>=0&&c<60&&s.setSeconds(c),s}var Co,wo={};function yo(e,t,n){const i=e.parentElement;let o=i&&i.firstChild;for(;o;)t&&o.classList.toggle(t,o===e),n&&o.classList.toggle(n,o!==e),o=o.nextSibling}Fe(wo,{FOCUSABLE_EXCLUDE:()=>Eo,FOCUSABLE_SELECTOR:()=>bo,addOrRemoveAttribute:()=>nr,addStylesToElement:()=>jo,bindCellRendererToHtmlElement:()=>or,clearElement:()=>ko,copyNodeList:()=>er,ensureDomOrder:()=>Bo,formatSize:()=>Zo,getAbsoluteHeight:()=>Po,getAbsoluteWidth:()=>Io,getElementRectWithOffset:()=>Lo,getElementSize:()=>xo,getInnerHeight:()=>Mo,getInnerWidth:()=>No,getScrollLeft:()=>_o,insertWithDomOrder:()=>Uo,isElementChildOfClass:()=>Ao,isFocusableFormField:()=>So,isHorizontalScrollShowing:()=>Ko,isInDOM:()=>zo,isNodeOrElement:()=>Jo,isRtlNegativeScroll:()=>Fo,isVerticalScrollShowing:()=>Yo,isVisible:()=>Vo,iterateNamedNodeMap:()=>tr,loadTemplate:()=>Ho,nodeListForEach:()=>ir,radioCssClass:()=>yo,removeFromParent:()=>Go,setDisabled:()=>Ro,setDisplayed:()=>Do,setDomChildOrder:()=>Wo,setElementHeight:()=>qo,setElementWidth:()=>$o,setFixedHeight:()=>Xo,setFixedWidth:()=>Qo,setScrollLeft:()=>Oo,setVisible:()=>To});var bo="[tabindex], input, select, button, textarea, [href]",Eo="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function So(e){const t=Element.prototype.matches||Element.prototype.msMatchesSelector,n=t.call(e,"input, select, button, textarea"),i=t.call(e,Eo),o=Vo(e);return n&&!i&&o}function Do(e,t,n={}){const{skipAriaHidden:i}=n;e.classList.toggle("ag-hidden",!t),i||fi(e,!t)}function To(e,t,n={}){const{skipAriaHidden:i}=n;e.classList.toggle("ag-invisible",!t),i||fi(e,!t)}function Ro(e,t){const n="disabled",i=t?e=>e.setAttribute(n,""):e=>e.removeAttribute(n);i(e),ir(e.querySelectorAll("input"),(e=>i(e)))}function Ao(e,t,n){let i=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,"number"==typeof n){if(++i>n)break}else if(e===n)break}return!1}function xo(e){const{height:t,width:n,borderTopWidth:i,borderRightWidth:o,borderBottomWidth:r,borderLeftWidth:a,paddingTop:s,paddingRight:l,paddingBottom:d,paddingLeft:c,marginTop:g,marginRight:u,marginBottom:h,marginLeft:p,boxSizing:m}=window.getComputedStyle(e);return{height:parseFloat(t||"0"),width:parseFloat(n||"0"),borderTopWidth:parseFloat(i||"0"),borderRightWidth:parseFloat(o||"0"),borderBottomWidth:parseFloat(r||"0"),borderLeftWidth:parseFloat(a||"0"),paddingTop:parseFloat(s||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(d||"0"),paddingLeft:parseFloat(c||"0"),marginTop:parseFloat(g||"0"),marginRight:parseFloat(u||"0"),marginBottom:parseFloat(h||"0"),marginLeft:parseFloat(p||"0"),boxSizing:m}}function Mo(e){const t=xo(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function No(e){const t=xo(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function Po(e){const t=xo(e),n=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+n)}function Io(e){const t=xo(e),n=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+n)}function Lo(e){const t=e.getBoundingClientRect(),{borderTopWidth:n,borderLeftWidth:i,borderRightWidth:o,borderBottomWidth:r}=xo(e);return{top:t.top+(n||0),left:t.left+(i||0),right:t.right+(o||0),bottom:t.bottom+(r||0)}}function Fo(){if("boolean"==typeof Co)return Co;const e=document.createElement("div");return e.style.direction="rtl",e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.top="0px",e.style.overflow="hidden",e.dir="rtl",e.innerHTML='<div style="width: 2px">\n <span style="display: inline-block; width: 1px"></span>\n <span style="display: inline-block; width: 1px"></span>\n </div>',document.body.appendChild(e),e.scrollLeft=1,Co=0===Math.floor(e.scrollLeft),document.body.removeChild(e),Co}function _o(e,t){let n=e.scrollLeft;return t&&(n=Math.abs(n),Ki()&&!Fo()&&(n=e.scrollWidth-e.clientWidth-n)),n}function Oo(e,t,n){n&&(Fo()?t*=-1:(Ui()||Ki())&&(t=e.scrollWidth-e.clientWidth-t)),e.scrollLeft=t}function ko(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function Go(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function zo(e){return!!e.offsetParent}function Vo(e){const t=e;if(t.checkVisibility)return t.checkVisibility({checkVisibilityCSS:!0});return!(!zo(e)||"visible"!==window.getComputedStyle(e).visibility)}function Ho(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function Bo(e,t,n){n&&n.nextSibling===t||(n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))}function Wo(e,t){for(let n=0;n<t.length;n++){const i=t[n],o=e.children[n];o!==i&&e.insertBefore(i,o)}}function Uo(e,t,n){n?n.insertAdjacentElement("afterend",t):e.firstChild?e.insertAdjacentElement("afterbegin",t):e.appendChild(t)}function jo(e,t){if(t)for(const[n,i]of Object.entries(t)){if(!n||!n.length||null==i)continue;const t=Gn(n),o=i.toString(),r=o.replace(/\s*!important/g,""),a=r.length!=o.length?"important":void 0;e.style.setProperty(t,r,a)}}function Ko(e){return e.clientWidth<e.scrollWidth}function Yo(e){return e.clientHeight<e.scrollHeight}function $o(e,t){"flex"===t?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Qo(e,t)}function Qo(e,t){t=Zo(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function qo(e,t){"flex"===t?(e.style.removeProperty("height"),e.style.removeProperty("minHeight"),e.style.removeProperty("maxHeight"),e.style.flex="1 1 auto"):Xo(e,t)}function Xo(e,t){t=Zo(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function Zo(e){return"number"==typeof e?`${e}px`:e}function Jo(e){return e instanceof Node||e instanceof HTMLElement}function er(e){if(null==e)return[];const t=[];return ir(e,(e=>t.push(e))),t}function tr(e,t){if(e)for(let n=0;n<e.length;n++){const i=e[n];t(i.name,i.value)}}function nr(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n.toString())}function ir(e,t){if(null!=e)for(let n=0;n<e.length;n++)t(e[n])}function or(e,t){e.then((e=>{const n=e.getGui();null!=n&&("object"==typeof n?t.appendChild(n):t.innerHTML=n)}))}var rr={};function ar(e,t,n){const i={},o=e.filter((e=>!t.some((t=>t===e))));return o.length>0&&o.forEach((e=>i[e]=sr(e,n).values)),i}function sr(e,t,n,i){let o=t.map(((t,n)=>({value:t,relevance:lr(e.toLowerCase(),t.toLocaleLowerCase()),idx:n})));if(o.sort(((e,t)=>t.relevance-e.relevance)),n&&(o=o.filter((e=>0!==e.relevance))),o.length>0&&i&&i>0){const e=o[0].relevance*i;o=o.filter((t=>e-t.relevance<0))}const r=[],a=[];for(const e of o)r.push(e.value),a.push(e.idx);return{values:r,indices:a}}function lr(e,t){const n=e.replace(/\s/g,""),i=t.replace(/\s/g,"");let o=0,r=-1;for(let e=0;e<n.length;e++){const t=i.indexOf(n[e],r+1);-1!==t&&(r=t,o+=100-100*r/1e4*100)}return o}Fe(rr,{fuzzyCheckStrings:()=>ar,fuzzySuggestions:()=>sr});var dr={};Fe(dr,{createIcon:()=>gr,createIconNoSpan:()=>ur,iconNameClassMap:()=>cr});var cr={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",setFilterGroupClosed:"tree-closed",setFilterGroupOpen:"tree-open",setFilterGroupIndeterminate:"tree-indeterminate",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",menuAlt:"menu-alt",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none",advancedFilterBuilder:"group",advancedFilterBuilderDrag:"grip",advancedFilterBuilderInvalid:"not-allowed",advancedFilterBuilderMoveUp:"up",advancedFilterBuilderMoveDown:"down",advancedFilterBuilderAdd:"plus",advancedFilterBuilderRemove:"minus",chartsMenuEdit:"chart",chartsMenuAdvancedSettings:"settings",chartsMenuAdd:"plus"};function gr(e,t,n){const i=ur(e,t,n);if(i){const{className:e}=i;if("string"==typeof e&&e.indexOf("ag-icon")>-1||"object"==typeof e&&e["ag-icon"])return i}const o=document.createElement("span");return o.appendChild(i),o}function ur(e,t,n,i){let o=null;const r=n&&n.getColDef().icons;if(r&&(o=r[e]),t&&!o){const n=t.get("icons");n&&(o=n[e])}if(!o){const t=document.createElement("span");let n=cr[e];return n||(i?n=e:(console.warn(`AG Grid: Did not find icon ${e}`),n="")),t.setAttribute("class",`ag-icon ag-icon-${n}`),t.setAttribute("unselectable","on"),oi(t,"presentation"),t}{let e;if("function"==typeof o)e=o();else{if("string"!=typeof o)throw new Error("icon from grid options needs to be a string or a function");e=o}if("string"==typeof e)return Ho(e);if(Jo(e))return e;console.warn("AG Grid: iconRenderer should return back a string or a dom object")}}var hr={};Fe(hr,{isDeleteKey:()=>wr,isEventFromPrintableCharacter:()=>mr,isUserSuppressingHeaderKeyboardEvent:()=>fr,isUserSuppressingKeyboardEvent:()=>vr,normaliseQwertyAzerty:()=>Cr});var pr=class{};pr.BACKSPACE="Backspace",pr.TAB="Tab",pr.ENTER="Enter",pr.ESCAPE="Escape",pr.SPACE=" ",pr.LEFT="ArrowLeft",pr.UP="ArrowUp",pr.RIGHT="ArrowRight",pr.DOWN="ArrowDown",pr.DELETE="Delete",pr.F2="F2",pr.PAGE_UP="PageUp",pr.PAGE_DOWN="PageDown",pr.PAGE_HOME="Home",pr.PAGE_END="End",pr.A="KeyA",pr.C="KeyC",pr.D="KeyD",pr.V="KeyV",pr.X="KeyX",pr.Y="KeyY",pr.Z="KeyZ";function mr(e){if(e.altKey||e.ctrlKey||e.metaKey)return!1;return 1===e.key.length}function vr(e,t,n,i,o){const r=i?i.getColDef().suppressKeyboardEvent:void 0;if(!r)return!1;const a=e.addGridCommonParams({event:t,editing:o,column:i,node:n,data:n.data,colDef:i.getColDef()});if(r){if(r(a))return!0}return!1}function fr(e,t,n,i){const o=i.getDefinition(),r=o&&o.suppressHeaderKeyboardEvent;if(!ze(r))return!1;return!!r(e.addGridCommonParams({colDef:o,column:i,headerRowIndex:n,event:t}))}function Cr(e){const{keyCode:t}=e;let n;switch(t){case 65:n=pr.A;break;case 67:n=pr.C;break;case 86:n=pr.V;break;case 68:n=pr.D;break;case 90:n=pr.Z;break;case 89:n=pr.Y;break;default:n=e.code}return n}function wr(e,t=!1){return e===pr.DELETE||!t&&e===pr.BACKSPACE&&$i()}var yr={};function br(e,t,n){if(0===n)return!1;const i=Math.abs(e.clientX-t.clientX),o=Math.abs(e.clientY-t.clientY);return Math.max(i,o)<=n}Fe(yr,{areEventsNear:()=>br});var Er={};function Sr(e,t){if(!e)return!1;const n=(e,n)=>{const i=t[e.id],o=t[n.id],r=void 0!==i,a=void 0!==o;return r&&a?i-o:!r&&!a?e.__objectId-n.__objectId:r?1:-1};let i,o,r=!1;for(let t=0;t<e.length-1;t++)if(i=e[t],o=e[t+1],n(i,o)>0){r=!0;break}return!!r&&(e.sort(n),!0)}Fe(Er,{sortRowNodesByOrder:()=>Sr});var Dr={};function Tr(e){const t=new Set;return e.forEach((e=>t.add(e))),t}Fe(Dr,{convertToSet:()=>Tr});var Rr=Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie(Ie({},Jn),Ut),Wi),oo),wo),Wt),ot),rr),ke),dr),hr),zn),yr),ro),Qe),Er),Dr),Pn),Ar=class{constructor(e=0,t=1){this.nextValue=e,this.step=t}next(){const e=this.nextValue;return this.nextValue+=this.step,e}peek(){return this.nextValue}skip(e){this.nextValue+=e}},xr=class _AgPromise{constructor(e){this.status=0,this.resolution=null,this.waiters=[],e((e=>this.onDone(e)),(e=>this.onReject(e)))}static all(e){return new _AgPromise((t=>{let n=e.length;const i=new Array(n);e.forEach(((e,o)=>{e.then((e=>{i[o]=e,n--,0===n&&t(i)}))}))}))}static resolve(e=null){return new _AgPromise((t=>t(e)))}then(e){return new _AgPromise((t=>{1===this.status?t(e(this.resolution)):this.waiters.push((n=>t(e(n))))}))}resolveNow(e,t){return 1===this.status?t(this.resolution):e}onDone(e){this.status=1,this.resolution=e,this.waiters.forEach((t=>t(e)))}onReject(e){console.warn("TBI")}},Mr=class{constructor(e){this.cssClassStates={},this.getGui=e}addCssClass(e){const t=(e||"").split(" ");if(t.length>1)return void t.forEach((e=>this.addCssClass(e)));if(!0!==this.cssClassStates[e]&&e.length){const t=this.getGui();t&&t.classList.add(e),this.cssClassStates[e]=!0}}removeCssClass(e){const t=(e||"").split(" ");if(t.length>1)return void t.forEach((e=>this.removeCssClass(e)));if(!1!==this.cssClassStates[e]&&e.length){const t=this.getGui();t&&t.classList.remove(e),this.cssClassStates[e]=!1}}containsCssClass(e){const t=this.getGui();return!!t&&t.classList.contains(e)}addOrRemoveCssClass(e,t){if(!e)return;if(e.indexOf(" ")>=0){const n=(e||"").split(" ");if(n.length>1)return void n.forEach((e=>this.addOrRemoveCssClass(e,t)))}if(this.cssClassStates[e]!==t&&e.length){const n=this.getGui();n&&n.classList.toggle(e,t),this.cssClassStates[e]=t}}},Nr=class _TooltipStateManager extends En{constructor(e,t,n,i){super(),this.parentComp=e,this.tooltipShowDelayOverride=t,this.tooltipHideDelayOverride=n,this.shouldDisplayTooltip=i,this.SHOW_QUICK_TOOLTIP_DIFF=1e3,this.FADE_OUT_TOOLTIP_TIMEOUT=1e3,this.INTERACTIVE_HIDE_DELAY=100,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");const e=this.parentComp.getGui();0===this.tooltipTrigger&&(this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this))),1===this.tooltipTrigger&&(this.addManagedListener(e,"focusin",this.onFocusIn.bind(this)),this.addManagedListener(e,"focusout",this.onFocusOut.bind(this))),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.interactionEnabled||(this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this)))}getGridOptionsTooltipDelay(e){const t=this.gos.get(e);return t<0&&st(`${e} should not be lower than 0`),Math.max(200,t)}getTooltipDelay(e){var t,n;return"show"===e?null!=(t=this.tooltipShowDelayOverride)?t:this.getGridOptionsTooltipDelay("tooltipShowDelay"):null!=(n=this.tooltipHideDelayOverride)?n:this.getGridOptionsTooltipDelay("tooltipHideDelay")}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){const e=this.gos.get("tooltipTrigger");return e&&"hover"!==e?1:0}onMouseEnter(e){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),Qi()||(_TooltipStateManager.isLocked?this.showTooltipTimeoutId=window.setTimeout((()=>{this.prepareToShowTooltip(e)}),this.INTERACTIVE_HIDE_DELAY):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){var t;const n=e.relatedTarget,i=this.parentComp.getGui(),o=null==(t=this.tooltipComp)?void 0:t.getGui();this.isInteractingWithTooltip||i.contains(n)||this.interactionEnabled&&(null==o?void 0:o.contains(n))||this.setToDoNothing()}onKeyDown(){this.setToDoNothing()}prepareToShowTooltip(e){if(0!=this.state||_TooltipStateManager.isLocked)return;let t=0;e&&(t=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.state=1}isLastTooltipHiddenRecently(){return(new Date).getTime()-_TooltipStateManager.lastTooltipHideTime<this.SHOW_QUICK_TOOLTIP_DIFF}setToDoNothing(){2===this.state&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.onColumnMovedEventCallback&&(this.onColumnMovedEventCallback(),this.onColumnMovedEventCallback=void 0),this.clearTimeouts(),this.state=0,this.lastMouseEvent=null}showTooltip(){const e=Ie({},this.parentComp.getTooltipParams());if(!ze(e.value)||this.shouldDisplayTooltip&&!this.shouldDisplayTooltip())return void this.setToDoNothing();this.state=2,this.tooltipInstanceCount++;const t=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.getTooltipCompDetails(e).newAgStackInstance().then(t)}hideTooltip(e){if(!e&&this.isInteractingWithTooltip)return;this.tooltipComp&&(this.destroyTooltipComp(),_TooltipStateManager.lastTooltipHideTime=(new Date).getTime());const t={type:An.EVENT_TOOLTIP_HIDE,parentGui:this.parentComp.getGui()};this.eventService.dispatchEvent(t),this.state=0}newTooltipComponentCallback(e,t){if(2!==this.state||this.tooltipInstanceCount!==e)return void this.getContext().destroyBean(t);const n=t.getGui();this.tooltipComp=t,n.classList.contains("ag-tooltip")||n.classList.add("ag-tooltip-custom"),0===this.tooltipTrigger&&n.classList.add("ag-tooltip-animate"),this.interactionEnabled&&n.classList.add("ag-tooltip-interactive");const i=this.localeService.getLocaleTextFunc(),o=this.popupService.addPopup({eChild:n,ariaLabel:i("ariaLabelTooltip","Tooltip")});o&&(this.tooltipPopupDestroyFunc=o.hideFunc),this.positionTooltip(),1===this.tooltipTrigger&&(this.onBodyScrollEventCallback=this.addManagedListener(this.eventService,An.EVENT_BODY_SCROLL,this.setToDoNothing.bind(this)),this.onColumnMovedEventCallback=this.addManagedListener(this.eventService,An.EVENT_COLUMN_MOVED,this.setToDoNothing.bind(this))),this.interactionEnabled&&(0===this.tooltipTrigger?(this.tooltipMouseEnterListener=this.addManagedListener(n,"mouseenter",this.onTooltipMouseEnter.bind(this))||null,this.tooltipMouseLeaveListener=this.addManagedListener(n,"mouseleave",this.onTooltipMouseLeave.bind(this))||null):(this.tooltipFocusInListener=this.addManagedListener(n,"focusin",this.onTooltipFocusIn.bind(this))||null,this.tooltipFocusOutListener=this.addManagedListener(n,"focusout",this.onTooltipFocusOut.bind(this))||null));const r={type:An.EVENT_TOOLTIP_SHOW,tooltipGui:n,parentGui:this.parentComp.getGui()};this.eventService.dispatchEvent(r),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isInteractingWithTooltip=!1,this.lockService()}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}onTooltipFocusOut(e){var t;const n=this.parentComp.getGui(),i=null==(t=this.tooltipComp)?void 0:t.getGui(),o=e.relatedTarget;(null==i?void 0:i.contains(o))||(this.isInteractingWithTooltip=!1,n.contains(o)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){const e={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupService.positionPopupUnderMouseEvent(Le(Ie({},e),{mouseEvent:this.lastMouseEvent})):this.popupService.positionPopupByComponent(Le(Ie({},e),{eventSource:this.parentComp.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5}))}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");const e=this.tooltipPopupDestroyFunc,t=this.tooltipComp,n=0===this.tooltipTrigger?this.FADE_OUT_TOOLTIP_TIMEOUT:0;window.setTimeout((()=>{e(),this.getContext().destroyBean(t)}),n),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener].forEach((e=>{e&&e()})),this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){_TooltipStateManager.isLocked=!0,this.interactiveTooltipTimeoutId=window.setTimeout((()=>{this.unlockService(),this.setToDoNothing()}),this.INTERACTIVE_HIDE_DELAY)}unlockService(){_TooltipStateManager.isLocked=!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()}};Nr.isLocked=!1,_e([xt("popupService")],Nr.prototype,"popupService",2),_e([xt("userComponentFactory")],Nr.prototype,"userComponentFactory",2),_e([Tt],Nr.prototype,"postConstruct",1);var Pr=Nr,Ir=class extends En{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}postConstruct(){this.refreshToolTip()}setBrowserTooltip(e){const t="title",n=this.ctrl.getGui();n&&(null!=e&&""!=e?n.setAttribute(t,e):n.removeAttribute(t))}updateTooltipText(){this.tooltip=this.ctrl.getTooltipValue()}createTooltipFeatureIfNeeded(){var e,t,n,i;if(null!=this.tooltipManager)return;const o={getTooltipParams:()=>this.getTooltipParams(),getGui:()=>this.ctrl.getGui()};this.tooltipManager=this.createBean(new Pr(o,null==(t=(e=this.ctrl).getTooltipShowDelayOverride)?void 0:t.call(e),null==(i=(n=this.ctrl).getTooltipHideDelayOverride)?void 0:i.call(n),this.ctrl.shouldDisplayTooltip),this.beans.context)}refreshToolTip(){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager&&(this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context))):(this.setBrowserTooltip(null),this.createTooltipFeatureIfNeeded())}getTooltipParams(){const e=this.ctrl,t=e.getColumn?e.getColumn():void 0,n=e.getColDef?e.getColDef():void 0,i=e.getRowNode?e.getRowNode():void 0;return{location:e.getLocation(),colDef:n,column:t,rowIndex:e.getRowIndex?e.getRowIndex():void 0,node:i,data:i?i.data:void 0,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?e.getValueFormatted():void 0,hideTooltipCallback:()=>{var e;return null==(e=this.tooltipManager)?void 0:e.hideTooltip(!0)}}}getTooltipText(){return this.tooltip}destroy(){this.tooltipManager&&(this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)),super.destroy()}};_e([xt("beans")],Ir.prototype,"beans",2),_e([Tt],Ir.prototype,"postConstruct",1);var Lr=new Ar,Fr=class _Component extends En{constructor(e){super(),this.displayed=!0,this.visible=!0,this.compId=Lr.next(),this.cssClassManager=new Mr((()=>this.eGui)),e&&this.setTemplate(e)}preConstructOnComponent(){this.usingBrowserTooltips=this.gos.get("enableBrowserTooltips")}getCompId(){return this.compId}getTooltipParams(){return{value:this.tooltipText,location:"UNKNOWN"}}setTooltip(e){const{newTooltipText:t,showDelayOverride:n,hideDelayOverride:i,location:o,shouldDisplayTooltip:r}=e||{};this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.tooltipText!==t&&(this.tooltipText=t);const a=()=>this.tooltipText;null!=t&&(this.tooltipFeature=this.createBean(new Ir({getTooltipValue:a,getGui:()=>this.getGui(),getLocation:()=>null!=o?o:"UNKNOWN",getColDef:null==e?void 0:e.getColDef,getColumn:null==e?void 0:e.getColumn,getTooltipShowDelayOverride:null!=n?()=>n:void 0,getTooltipHideDelayOverride:null!=i?()=>i:void 0,shouldDisplayTooltip:r})))}createChildComponentsFromTags(e,t){er(e.childNodes).forEach((n=>{if(!(n instanceof HTMLElement))return;const i=this.createComponentFromElement(n,(e=>{e.getGui()&&this.copyAttributesFromNode(n,e.getGui())}),t);if(i){if(i.addItems&&n.children.length){this.createChildComponentsFromTags(n,t);const e=Array.prototype.slice.call(n.children);i.addItems(e)}this.swapComponentForNode(i,e,n)}else n.childNodes&&this.createChildComponentsFromTags(n,t)}))}createComponentFromElement(e,t,n){const i=e.nodeName,o=n?n[e.getAttribute("ref")]:void 0,r=this.agStackComponentsRegistry.getComponentClass(i);if(r){_Component.elementGettingCreated=e;const n=new r(o);return n.setParentComponent(this),this.createBean(n,null,t),n}return null}copyAttributesFromNode(e,t){tr(e.attributes,((e,n)=>t.setAttribute(e,n)))}swapComponentForNode(e,t,n){const i=e.getGui();t.replaceChild(i,n),t.insertBefore(document.createComment(n.nodeName),i),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,n)}swapInComponentForQuerySelectors(e,t){const n=this;this.iterateOverQuerySelectors((i=>{n[i.attributeName]===t&&(n[i.attributeName]=e)}))}iterateOverQuerySelectors(e){let t=Object.getPrototypeOf(this);for(;null!=t;){const n=t.__agComponentMetaData,i=dt(t.constructor);n&&n[i]&&n[i].querySelectors&&n[i].querySelectors.forEach((t=>e(t))),t=Object.getPrototypeOf(t)}}activateTabIndex(e){const t=this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui()),e.forEach((e=>e.setAttribute("tabindex",t.toString())))}setTemplate(e,t){const n=Ho(e);this.setTemplateFromElement(n,t)}setTemplateFromElement(e,t){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),t)}createChildComponentsPreConstruct(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())}wireQuerySelectors(){if(!this.eGui)return;const e=this;this.iterateOverQuerySelectors((t=>{const n=n=>e[t.attributeName]=n;if(t.refSelector&&this.getAttribute("ref")===t.refSelector)n(this.eGui);else{const e=this.eGui.querySelector(t.querySelector);e&&n(e.__agComponent||e)}}))}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)}queryForHtmlInputElement(e){return this.eGui.querySelector(e)}appendChild(e,t){if(null!=e)if(t||(t=this.eGui),Jo(e))t.appendChild(e);else{const n=e;t.appendChild(n.getGui())}}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:n}=t;To(this.eGui,e,{skipAriaHidden:n})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:n}=t;Do(this.eGui,e,{skipAriaHidden:n});const i={type:_Component.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(i)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature));const e=this.eGui;e&&e.__agComponent&&(e.__agComponent=void 0),super.destroy()}addGuiEventListener(e,t,n){this.eGui.addEventListener(e,t,n),this.addDestroyFunc((()=>this.eGui.removeEventListener(e,t)))}addCssClass(e){this.cssClassManager.addCssClass(e)}removeCssClass(e){this.cssClassManager.removeCssClass(e)}containsCssClass(e){return this.cssClassManager.containsCssClass(e)}addOrRemoveCssClass(e,t){this.cssClassManager.addOrRemoveCssClass(e,t)}getAttribute(e){const{eGui:t}=this;return t?t.getAttribute(e):null}getRefElement(e){return this.queryForHtmlElement(`[ref="${e}"]`)}};Fr.EVENT_DISPLAYED_CHANGED="displayedChanged",_e([xt("agStackComponentsRegistry")],Fr.prototype,"agStackComponentsRegistry",2),_e([Dt],Fr.prototype,"preConstructOnComponent",1),_e([Dt],Fr.prototype,"createChildComponentsPreConstruct",1);var _r=Fr;function Or(e){return kr.bind(this,`[ref=${e}]`,e)}function kr(e,t,n,i,o){null!==e?"number"!=typeof o?function(e,t,n){const i=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}(e,dt(e.constructor));i[t]||(i[t]=[]);i[t].push(n)}(n,"querySelectors",{attributeName:i,querySelector:e,refSelector:t}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var Gr=class extends _r{constructor(){super('\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>\n </div>')}destroy(){super.destroy()}init(e){this.params=e;const t=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),n=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${t} ${n("ariaFilterInput","Filter Input")}`)}onParentModelChanged(e){null!=e?this.params.parentFilterInstance((t=>{if(t.getModelAsString){const n=t.getModelAsString(e);this.eFloatingFilterText.setValue(n)}})):this.eFloatingFilterText.setValue("")}onParamsUpdated(e){this.refresh(e)}refresh(e){this.init(e)}};_e([Or("eFloatingFilterText")],Gr.prototype,"eFloatingFilterText",2),_e([xt("columnModel")],Gr.prototype,"columnModel",2);var zr=class{constructor(e,t,n,i,o){this.alive=!0,this.context=e,this.eParent=i;t.getDateCompDetails(n).newAgStackInstance().then((t=>{this.alive?(this.dateComp=t,t&&(i.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached(),this.tempValue&&t.setDate(this.tempValue),null!=this.disabled&&this.setDateCompDisabled(this.disabled),null==o||o(this))):e.destroyBean(t)}))}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e}setDisabled(e){this.dateComp?this.setDateCompDisabled(e):this.disabled=e}setDisplayed(e){Do(this.eParent,e)}setInputPlaceholder(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)}setInputAriaLabel(e){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(e)}afterGuiAttached(e){this.dateComp&&"function"==typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(e)}updateParams(e){var t,n;let i=!1;if((null==(t=this.dateComp)?void 0:t.refresh)&&"function"==typeof this.dateComp.refresh){null!==this.dateComp.refresh(e)&&(i=!0)}if(!i&&(null==(n=this.dateComp)?void 0:n.onParamsUpdated)&&"function"==typeof this.dateComp.onParamsUpdated){null!==this.dateComp.onParamsUpdated(e)&&st("Custom date component method 'onParamsUpdated' is deprecated. Use 'refresh' instead.")}}setDateCompDisabled(e){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(e)}},Vr=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions||t,this.mapCustomOptions(),this.selectDefaultItem(e)}getFilterOptions(){return this.filterOptions}mapCustomOptions(){this.filterOptions&&this.filterOptions.forEach((e=>{if("string"==typeof e)return;[["displayKey"],["displayName"],["predicate","test"]].every((t=>!!t.some((t=>null!=e[t]))||(console.warn(`AG Grid: ignoring FilterOptionDef as it doesn't contain one of '${t}'`),!1)))?this.customFilterOptions[e.displayKey]=e:this.filterOptions=this.filterOptions.filter((t=>t===e))||[]}))}selectDefaultItem(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){const e=this.filterOptions[0];"string"==typeof e?this.defaultOption=e:e.displayKey?this.defaultOption=e.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")}getDefaultOption(){return this.defaultOption}getCustomOption(e){return this.customFilterOptions[e]}},Hr={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number 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"},Br=class _ManagedFocusFeature extends En{constructor(e,t={}){super(),this.eFocusableElement=e,this.callbacks=t,this.callbacks=Ie({shouldStopEventPropagation:()=>!1,onTabKeyDown:e=>{if(e.defaultPrevented)return;const t=this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())}},t)}postConstruct(){this.eFocusableElement.classList.add(_ManagedFocusFeature.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)}addKeyDownListeners(e){this.addManagedListener(e,"keydown",(e=>{e.defaultPrevented||pn(e)||(this.callbacks.shouldStopEventPropagation(e)?hn(e):e.key===pr.TAB?this.callbacks.onTabKeyDown(e):this.callbacks.handleKeyDown&&this.callbacks.handleKeyDown(e))}))}};Br.FOCUS_MANAGED_CLASS="ag-focus-managed",_e([xt("focusService")],Br.prototype,"focusService",2),_e([Tt],Br.prototype,"postConstruct",1);var Wr=Br,Ur="ag-resizer-wrapper",jr=`<div class="${Ur}">\n <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n </div>`,Kr=class extends En{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=Object.assign({},{popup:!1},t)}center(){const{clientHeight:e,clientWidth:t}=this.offsetParent,n=t/2-this.getWidth()/2,i=e/2-this.getHeight()/2;this.offsetElement(n,i)}initialisePosition(){if(this.positioned)return;const{centered:e,forcePopupParentAsOffsetParent:t,minWidth:n,width:i,minHeight:o,height:r,x:a,y:s}=this.config;this.offsetParent||this.setOffsetParent();let l=0,d=0;const c=Vo(this.element);if(c){const e=this.findBoundaryElement(),t=window.getComputedStyle(e);if(null!=t.minWidth){const n=e.offsetWidth-this.element.offsetWidth;d=parseInt(t.minWidth,10)-n}if(null!=t.minHeight){const n=e.offsetHeight-this.element.offsetHeight;l=parseInt(t.minHeight,10)-n}}if(this.minHeight=o||l,this.minWidth=n||d,i&&this.setWidth(i),r&&this.setHeight(r),i&&r||this.refreshSize(),e)this.center();else if(a||s)this.offsetElement(a,s);else if(c&&t){let e=this.boundaryEl,t=!0;if(e||(e=this.findBoundaryElement(),t=!1),e){const n=parseFloat(e.style.top),i=parseFloat(e.style.left);t?this.offsetElement(isNaN(i)?0:i,isNaN(n)?0:n):this.setPosition(i,n)}}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;const n=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(n),this.moveElementDragListener=n):(this.dragService.removeDragSource(n),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}}Object.keys(e).forEach((t=>{const n=!!e[t],i=this.getResizerElement(t),o={dragStartPixels:0,eElement:i,onDragStart:e=>this.onResizeStart(e,t),onDragging:this.onResize.bind(this),onDragStop:e=>this.onResizeEnd(e,t)};(n||!this.isAlive()&&!n)&&(n?(this.dragService.addDragSource(o),this.resizeListeners.push(o),i.style.pointerEvents="all"):i.style.pointerEvents="none",this.resizable[t]=n)}))}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";const{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){const{popup:t}=this.config,n=this.element;let i=!1;if("string"==typeof e&&-1!==e.indexOf("%"))Xo(n,e),e=Po(n),i=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const t=this.getAvailableHeight();t&&e>t&&(e=t)}this.getHeight()!==e&&(i?(n.style.maxHeight="unset",n.style.minHeight="unset"):t?Xo(n,e):(n.style.height=`${e}px`,n.style.flex="0 0 auto",this.lastSize.height="number"==typeof e?e:parseFloat(e)))}getAvailableHeight(){const{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();const{clientHeight:n}=this.offsetParent;if(!n)return null;const i=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),r=e?this.position.y:i.top,a=e?0:o.top;let s=0;if(t){const e=this.element.parentElement;if(e){const{bottom:t}=e.getBoundingClientRect();s=t-i.bottom}}return n+a-r-s}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:n}=this.config;let i=!1;if("string"==typeof e&&-1!==e.indexOf("%"))Qo(t,e),e=Io(t),i=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:t}=this.offsetParent,i=n?this.position.x:this.element.getBoundingClientRect().left;t&&e+i>t&&(e=t-i)}this.getWidth()!==e&&(i?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?Qo(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width="number"==typeof e?e:parseFloat(e)))}offsetElement(e=0,t=0){const{forcePopupParentAsOffsetParent:n}=this.config,i=n?this.boundaryEl:this.element;i&&(this.popupService.positionPopup({ePopup:i,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t})}),this.setPosition(parseFloat(i.style.left),parseFloat(i.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;const t=()=>{const e=this.getAvailableHeight();this.element.style.setProperty("max-height",`${e}px`)};e?this.resizeObserverSubscriber=this.resizeObserverService.observeResize(this.popupService.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){const{e:t,isLeft:n,isTop:i,anywhereWithin:o,topBuffer:r}=e,a=t.clientX-this.dragStartPosition.x,s=t.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(t,!!n,!!o,a)?0:a,movementY:this.shouldSkipY(t,!!i,r,s)?0:s}}shouldSkipX(e,t,n,i){const o=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),a=this.boundaryEl.getBoundingClientRect(),s=this.config.popup?this.position.x:o.left;let l=s<=0&&r.left>=e.clientX||r.right<=e.clientX&&r.right<=a.right;return!!l||(l=t?i<0&&e.clientX>s+r.left||i>0&&e.clientX<s+r.left:n?i<0&&e.clientX>a.right||i>0&&e.clientX<s+r.left:i<0&&e.clientX>a.right||i>0&&e.clientX<a.right,l)}shouldSkipY(e,t,n=0,i){const o=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),a=this.boundaryEl.getBoundingClientRect(),s=this.config.popup?this.position.y:o.top;let l=s<=0&&r.top>=e.clientY||r.bottom<=e.clientY&&r.bottom<=a.bottom;return!!l||(l=t?i<0&&e.clientY>s+r.top+n||i>0&&e.clientY<s+r.top:i<0&&e.clientY>a.bottom||i>0&&e.clientY<a.bottom,l)}createResizeMap(){const e=this.element;this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}}addResizers(){if(this.resizersAdded)return;const e=this.element;if(!e)return;const t=(new DOMParser).parseFromString(jr,"text/html").body;e.appendChild(t.firstChild),this.createResizeMap(),this.resizersAdded=!0}removeResizers(){this.resizerMap=void 0;const e=this.element.querySelector(`.${Ur}`);e&&this.element.removeChild(e),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");const{popup:n,forcePopupParentAsOffsetParent:i}=this.config;n||i||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)}getSiblings(){const e=this.element.parentElement;return e?Array.prototype.slice.call(e.children).filter((e=>!e.classList.contains("ag-hidden"))):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,n=0;for(let i=0;i<e.length;i++){const o=e[i],r=!!o.style.flex&&"0 0 auto"!==o.style.flex;if(o===this.element)continue;let a=this.minHeight||0,s=this.minWidth||0;if(r){const e=window.getComputedStyle(o);e.minHeight&&(a=parseInt(e.minHeight,10)),e.minWidth&&(s=parseInt(e.minWidth,10))}else a=o.offsetHeight,s=o.offsetWidth;t+=a,n+=s}return{height:t,width:n}}applySizeToSiblings(e){let t=null;const n=this.getSiblings();if(n){for(let i=0;i<n.length;i++){const o=n[i];o!==t&&(e?o.style.height=`${o.offsetHeight}px`:o.style.width=`${o.offsetWidth}px`,o.style.flex="0 0 auto",o===this.element&&(t=n[i+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;const{popup:t,forcePopupParentAsOffsetParent:n}=this.config,{isTop:i,isRight:o,isBottom:r,isLeft:a}=this.currentResizer,s=o||a,l=r||i,{movementX:d,movementY:c}=this.calculateMouseMovement({e:e,isLeft:a,isTop:i}),g=this.position.x,u=this.position.y;let h=0,p=0;if(s&&d){const e=a?-1:1,t=this.getWidth(),n=t+d*e;let i=!1;a&&(h=t-n,(g+h<=0||n<=this.minWidth)&&(i=!0,h=0)),i||this.setWidth(n)}if(l&&c){const e=i?-1:1,t=this.getHeight(),n=t+c*e;let o=!1;i?(p=t-n,(u+p<=0||n<=this.minHeight)&&(o=!0,p=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&t<n&&this.getMinSizeOfSiblings().height+n>this.element.parentElement.offsetHeight&&(o=!0),o||this.setHeight(n)}this.updateDragStartPosition(e.clientX,e.clientY),((t||n)&&h||p)&&this.offsetElement(g+h,u+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.dispatchEvent({type:"resize"})}refreshSize(){const 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){if(!this.isMoving)return;const{x:t,y:n}=this.position;let i;this.config.calculateTopBuffer&&(i=this.config.calculateTopBuffer());const{movementX:o,movementY:r}=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:i});this.offsetElement(t+o,n+r),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.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;){const e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}}destroy(){super.destroy(),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}};_e([xt("popupService")],Kr.prototype,"popupService",2),_e([xt("resizeObserverService")],Kr.prototype,"resizeObserverService",2),_e([xt("dragService")],Kr.prototype,"dragService",2);var Yr=class _ProvidedFilter extends _r{constructor(e){super(),this.filterNameKey=e,this.applyActive=!1,this.hidePopup=null,this.debouncePending=!1,this.appliedModel=null,this.buttonListeners=[]}postConstruct(){this.resetTemplate(),this.createManagedBean(new Wr(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new Kr(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)}handleKeyDown(e){}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return!!this.appliedModel}resetTemplate(e){let t=this.getGui();t&&t.removeEventListener("submit",this.onFormSubmit);const n=`\n <form class="ag-filter-wrapper">\n <div class="ag-filter-body-wrapper ag-${this.getCssIdentifier()}-body-wrapper" ref="eFilterBody">\n ${this.createBodyTemplate()}\n </div>\n </form>`;this.setTemplate(n,e),t=this.getGui(),t&&t.addEventListener("submit",this.onFormSubmit)}isReadOnly(){return!!this.providedFilterParams.readOnly}init(e){this.setParams(e),this.resetUiToDefaults(!0).then((()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()}))}setParams(e){this.providedFilterParams=e,this.applyActive=_ProvidedFilter.isUseApplyButton(e),this.resetButtonsPanel()}updateParams(e){this.providedFilterParams=e,this.applyActive=_ProvidedFilter.isUseApplyButton(e),this.resetUiToActiveModel(this.getModel(),(()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()}))}resetButtonsPanel(){const{buttons:e}=this.providedFilterParams,t=e&&e.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(ko(this.eButtonsPanel),this.buttonListeners.forEach((e=>null==e?void 0:e())),this.buttonListeners=[]):t&&(this.eButtonsPanel=document.createElement("div"),this.eButtonsPanel.classList.add("ag-filter-apply-panel")),!t)return void(this.eButtonsPanel&&Go(this.eButtonsPanel));const n=document.createDocumentFragment(),i=e=>{let t,i;switch(e){case"apply":t=this.translate("applyFilter"),i=e=>this.onBtApply(!1,!1,e);break;case"clear":t=this.translate("clearFilter"),i=()=>this.onBtClear();break;case"reset":t=this.translate("resetFilter"),i=()=>this.onBtReset();break;case"cancel":t=this.translate("cancelFilter"),i=e=>{this.onBtCancel(e)};break;default:return void console.warn("AG Grid: Unknown button type specified")}const o=Ho(`<button\n type="${"apply"===e?"submit":"button"}"\n ref="${e}FilterButton"\n class="ag-button ag-standard-button ag-filter-apply-panel-button"\n >${t}\n </button>`);this.buttonListeners.push(this.addManagedListener(o,"click",i)),n.append(o)};Tr(e).forEach((e=>i(e))),this.eButtonsPanel.append(n),this.getGui().appendChild(this.eButtonsPanel)}getDefaultDebounceMs(){return 0}setupOnBtApplyDebounce(){const e=_ProvidedFilter.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs()),t=vt(this.checkApplyDebounce.bind(this),e);this.onBtApplyDebounce=()=>{this.debouncePending=!0,t()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())}getModel(){return this.appliedModel?this.appliedModel:null}setModel(e){return(null!=e?this.setModelIntoUi(e):this.resetUiToDefaults()).then((()=>{this.updateUiVisibility(),this.applyModel("api")}))}onBtCancel(e){this.resetUiToActiveModel(this.getModel(),(()=>{this.handleCancelEnd(e)}))}handleCancelEnd(e){this.providedFilterParams.closeOnApply&&this.close(e)}resetUiToActiveModel(e,t){const n=()=>{this.onUiChanged(!1,"prevent"),null==t||t()};null!=e?this.setModelIntoUi(e).then(n):this.resetUiToDefaults().then(n)}onBtClear(){this.resetUiToDefaults().then((()=>this.onUiChanged()))}onBtReset(){this.onBtClear(),this.onBtApply()}applyModel(e="api"){const t=this.getModelFromUi();if(!this.isModelValid(t))return!1;const n=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(n,t)}isModelValid(e){return!0}onFormSubmit(e){e.preventDefault()}onBtApply(e=!1,t=!1,n){if(n&&n.preventDefault(),this.applyModel(t?"rowDataUpdated":"ui")){const n="columnFilter";this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t,source:n})}const{closeOnApply:i}=this.providedFilterParams;i&&this.applyActive&&!e&&!t&&this.close(n)}onNewRowsLoaded(){}close(e){if(!this.hidePopup)return;const t=e,n=t&&t.key;let i;"Enter"!==n&&"Space"!==n||(i={keyboardEvent:t}),this.hidePopup(i),this.hidePopup=null}onUiChanged(e=!1,t){if(this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){const e=this.isModelValid(this.getModelFromUi()),t=this.getRefElement("applyFilterButton");t&&Ro(t,!e)}e&&!t||"immediately"===t?this.onBtApply(e):(this.applyActive||t)&&"debounce"!==t||this.onBtApplyDebounce()}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(null==e?void 0:e.container)}refreshFilterResizer(e){if(!this.positionableFeature||"toolPanel"===e)return;const t="floatingFilter"===e||"columnFilter"===e,{positionableFeature:n,gos:i}=this;t?(n.restoreLastSize(),n.setResizable(i.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}afterGuiDetached(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)}static getDebounceMs(e,t){return _ProvidedFilter.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=e.debounceMs?e.debounceMs:t}static isUseApplyButton(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0}refresh(e){return this.providedFilterParams=e,!0}destroy(){const e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),this.appliedModel=null,super.destroy()}translate(e){return this.localeService.getLocaleTextFunc()(e,Hr[e])}getCellValue(e){return this.providedFilterParams.getValue(e)}getPositionableElement(){return this.eFilterBody}};_e([xt("rowModel")],Yr.prototype,"rowModel",2),_e([Or("eFilterBody")],Yr.prototype,"eFilterBody",2),_e([Tt],Yr.prototype,"postConstruct",1);var $r=Yr,Qr=class extends _r{constructor(e,t){super(t),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{}}postConstruct(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");const{labelSeparator:e,label:t,labelWidth:n,labelAlignment:i,disabled:o}=this.config;null!=o&&this.setDisabled(o),null!=e&&this.setLabelSeparator(e),null!=t&&this.setLabel(t),null!=n&&this.setLabelWidth(n),this.setLabelAlignment(i||this.labelAlignment),this.refreshLabel()}refreshLabel(){ko(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(Do(this.eLabel,!1),oi(this.eLabel,"presentation")):(Do(this.eLabel,!0),oi(this.eLabel,null))}setLabelSeparator(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this}getLabelId(){return this.eLabel.id=this.eLabel.id||`ag-${this.getCompId()}-label`,this.eLabel.id}getLabel(){return this.label}setLabel(e){return this.label===e||(this.label=e,this.refreshLabel()),this}setLabelAlignment(e){const 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||$o(this.eLabel,e),this}setDisabled(e){e=!!e;const t=this.getGui();return Ro(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}};_e([Tt],Qr.prototype,"postConstruct",1);var qr=class extends Qr{constructor(e,t,n){super(e,t),this.className=n}postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:n}=this.config;null!=e&&this.setWidth(e),null!=t&&this.setValue(t),null!=n&&this.onValueChange(n),this.className&&this.addCssClass(this.className),this.refreshAriaLabelledBy()}refreshAriaLabelledBy(){const e=this.getAriaElement(),t=this.getLabelId();null!==li(e)?ci(e,""):ci(e,null!=t?t:"")}setAriaLabel(e){return di(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this}onValueChange(e){return this.addManagedListener(this,An.EVENT_FIELD_VALUE_CHANGED,(()=>e(this.getValue()))),this}getWidth(){return this.getGui().clientWidth}setWidth(e){return Qo(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.dispatchEvent({type:An.EVENT_FIELD_VALUE_CHANGED})),this}},Xr=class extends qr{constructor(e){if(super(e,(null==e?void 0:e.template)||'\n <div class="ag-picker-field" role="presentation">\n <div ref="eLabel"></div>\n <div ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-picker-collapsed">\n <div ref="eDisplayField" class="ag-picker-field-display"></div>\n <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n </div>\n </div>',null==e?void 0:e.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.ariaRole=null==e?void 0:e.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:n,variableWidth:i,minPickerWidth:o,maxPickerWidth:r}=e;null!=t&&(this.pickerGap=t),this.variableWidth=!!i,null!=n&&this.setPickerMaxHeight(n),null!=o&&this.setPickerMinWidth(o),null!=r&&this.setPickerMaxWidth(r)}postConstruct(){super.postConstruct(),this.setupAria();const e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);const t=this.getAriaElement();this.addManagedListener(t,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(this.eLabel,"mousedown",this.onLabelOrWrapperMouseDown.bind(this)),this.addManagedListener(this.eWrapper,"mousedown",this.onLabelOrWrapperMouseDown.bind(this));const{pickerIcon:n,inputWidth:i}=this.config;if(n){const e=ur(n,this.gos);e&&this.eIcon.appendChild(e)}null!=i&&this.setInputWidth(i)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),wi(e,!1),this.ariaRole&&oi(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){const t=this.getFocusableElement();if(t!==this.eWrapper&&(null==e?void 0:e.target)===t)return;e.preventDefault(),this.getFocusableElement().focus()}this.skipClick?this.skipClick=!1:this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case pr.UP:case pr.DOWN:case pr.ENTER:case pr.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case pr.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker())}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());const e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){const e=this.gos.getDocument(),t=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||(this.destroyMouseWheelFunc=this.addManagedListener(this.eventService,An.EVENT_BODY_SCROLL,(()=>{this.hidePicker()})));const n=this.localeService.getLocaleTextFunc(),{pickerAriaLabelKey:i,pickerAriaLabelValue:o,modalPicker:r=!0}=this.config,a={modal:r,eChild:t,closeOnEsc:!0,closedCallback:()=>{const t=this.gos.getActiveDomElement(),n=!t||t===e.body;this.beforeHidePicker(),n&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:n(i,o)},s=this.popupService.addPopup(a),{maxPickerHeight:l,minPickerWidth:d,maxPickerWidth:c,variableWidth:g}=this;g?(d&&(t.style.minWidth=d),t.style.width=Zo(Io(this.eWrapper)),c&&(t.style.maxWidth=c)):$o(t,null!=c?c:Io(this.eWrapper));const u=null!=l?l:`${Mo(this.popupService.getPopupParent())}px`;return t.style.setProperty("max-height",u),t.style.position="absolute",this.alignPickerToComponent(),s.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerType:e}=this.config,{pickerGap:t}=this,n=this.gos.get("enableRtl")?"right":"left";this.popupService.positionPopupByComponent({type:e,eventSource:this.eWrapper,ePopup:this.pickerComponent.getGui(),position:"under",alignSide:n,keepWithinBounds:!0,nudgeY:t})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);const 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;wi(this.getAriaElement(),e),this.eWrapper.classList.toggle("ag-picker-expanded",e),this.eWrapper.classList.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){var t;(null==(t=this.pickerComponent)?void 0:t.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()}setInputWidth(e){return $o(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()}};_e([xt("popupService")],Xr.prototype,"popupService",2),_e([Or("eLabel")],Xr.prototype,"eLabel",2),_e([Or("eWrapper")],Xr.prototype,"eWrapper",2),_e([Or("eDisplayField")],Xr.prototype,"eDisplayField",2),_e([Or("eIcon")],Xr.prototype,"eIcon",2);var Zr=class _AgList extends _r{constructor(e="default",t=!1){super(`<div class="ag-list ag-${e}-list" role="listbox"></div>`),this.cssIdentifier=e,this.unFocusable=t,this.options=[],this.itemEls=[]}init(){const e=this.getGui();this.addManagedListener(e,"mouseleave",(()=>this.clearHighlighted())),this.unFocusable||this.addManagedListener(e,"keydown",this.handleKeyDown.bind(this))}handleKeyDown(e){const t=e.key;switch(t){case pr.ENTER:if(this.highlightedEl){const e=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(e)}else this.setValue(this.getValue());break;case pr.DOWN:case pr.UP:e.preventDefault(),this.navigate(t);break;case pr.PAGE_DOWN:case pr.PAGE_UP:case pr.PAGE_HOME:case pr.PAGE_END:e.preventDefault(),this.navigateToPage(t)}}navigate(e){const t=e===pr.DOWN;let n;if(this.highlightedEl){let e=this.itemEls.indexOf(this.highlightedEl)+(t?1:-1);e=Math.min(Math.max(e,0),this.itemEls.length-1),n=this.itemEls[e]}else n=this.itemEls[t?0:this.itemEls.length-1];this.highlightItem(n)}navigateToPage(e){if(!this.highlightedEl||0===this.itemEls.length)return;const t=this.itemEls.indexOf(this.highlightedEl),n=this.options.length-1,i=this.itemEls[0].clientHeight,o=Math.floor(this.getGui().clientHeight/i);let r=-1;e===pr.PAGE_HOME?r=0:e===pr.PAGE_END?r=n:e===pr.PAGE_DOWN?r=Math.min(t+o,n):e===pr.PAGE_UP&&(r=Math.max(t-o,0)),-1!==r&&this.highlightItem(this.itemEls[r])}addOptions(e){return e.forEach((e=>this.addOption(e))),this}addOption(e){const{value:t,text:n}=e,i=n||t;return this.options.push({value:t,text:i}),this.renderOption(t,i),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0),this.itemEls.forEach((e=>{Go(e)})),this.itemEls=[]}updateIndices(){const e=this.getGui().querySelectorAll(".ag-list-item");e.forEach(((t,n)=>{Ei(t,n+1),bi(t,e.length)}))}renderOption(e,t){const n=this.gos.getDocument(),i=n.createElement("div");oi(i,"option"),i.classList.add("ag-list-item",`ag-${this.cssIdentifier}-list-item`);const o=n.createElement("span");i.appendChild(o),o.textContent=t,this.unFocusable||(i.tabIndex=-1),this.itemEls.push(i),this.addManagedListener(i,"mousemove",(()=>this.highlightItem(i))),this.addManagedListener(i,"mousedown",(t=>{t.preventDefault(),this.setValue(e)})),this.createManagedBean(new Ir({getTooltipValue:()=>t,getGui:()=>i,getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>o.scrollWidth>o.clientWidth})),this.getGui().appendChild(i)}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(t),this;const n=this.options.findIndex((t=>t.value===e));if(-1!==n){const e=this.options[n];this.value=e.value,this.displayValue=e.text,this.highlightItem(this.itemEls[n]),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();const e=this.options.findIndex((e=>e.value===this.value));-1!==e&&this.highlightItem(this.itemEls[e])}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}highlightItem(e){if(!Vo(e))return;this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(_AgList.ACTIVE_CLASS),Pi(this.highlightedEl,!0);const t=this.getGui(),{scrollTop:n,clientHeight:i}=t,{offsetTop:o,offsetHeight:r}=e;(o+r>n+i||o<n)&&this.highlightedEl.scrollIntoView({block:"nearest"}),this.unFocusable||this.highlightedEl.focus()}clearHighlighted(){this.highlightedEl&&Vo(this.highlightedEl)&&(this.highlightedEl.classList.remove(_AgList.ACTIVE_CLASS),Pi(this.highlightedEl,!1),this.highlightedEl=null)}fireChangeEvent(){this.dispatchEvent({type:An.EVENT_FIELD_VALUE_CHANGED}),this.fireItemSelected()}fireItemSelected(){this.dispatchEvent({type:_AgList.EVENT_ITEM_SELECTED})}};Zr.EVENT_ITEM_SELECTED="selectedItem",Zr.ACTIVE_CLASS="ag-active-item",_e([Tt],Zr.prototype,"init",1);var Jr=Zr,ea=class _AgSelect extends Xr{constructor(e){super(Ie({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"smallDown",ariaRole:"combobox"},e))}postConstruct(){super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:n}=this.config;null!=e&&this.addOptions(e),null!=t&&this.setValue(t,!0),n&&null==t&&(this.eDisplayField.textContent=n),this.addManagedListener(this.eWrapper,"focusout",this.onWrapperFocusOut.bind(this))}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){this.listComponent=this.createBean(new Jr("select",!0)),this.listComponent.setParentComponent(this);const e=this.listComponent.getAriaElement(),t=`ag-select-list-${this.listComponent.getCompId()}`;e.setAttribute("id",t),Li(this.getAriaElement(),e),this.listComponent.addManagedListener(this.listComponent,Jr.EVENT_ITEM_SELECTED,(()=>{this.hidePicker(),this.dispatchEvent({type:_AgSelect.EVENT_ITEM_SELECTED})})),this.listComponent.addManagedListener(this.listComponent,An.EVENT_FIELD_VALUE_CHANGED,(()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}))}createPickerComponent(){return this.listComponent}onKeyDown(e){var t;const{key:n}=e;switch(n===pr.TAB&&this.hidePicker(),n){case pr.ENTER:case pr.UP:case pr.DOWN:case pr.PAGE_UP:case pr.PAGE_DOWN:case pr.PAGE_HOME:case pr.PAGE_END:e.preventDefault(),this.isPickerDisplayed?null==(t=this.listComponent)||t.handleKeyDown(e):super.onKeyDown(e);break;case pr.ESCAPE:super.onKeyDown(e)}}showPicker(){this.listComponent&&(super.showPicker(),this.listComponent.refreshHighlighted())}addOptions(e){return e.forEach((e=>this.addOption(e))),this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){var e;return null==(e=this.listComponent)||e.clearOptions(),this}setValue(e,t,n){if(this.value===e||!this.listComponent)return this;n||this.listComponent.setValue(e,!0);if(this.listComponent.getValue()===this.getValue())return this;let i=this.listComponent.getDisplayValue();return null==i&&this.config.placeholder&&(i=this.config.placeholder),this.eDisplayField.textContent=i,this.setTooltip({newTooltipText:null!=i?i:null,shouldDisplayTooltip:()=>this.eDisplayField.scrollWidth>this.eDisplayField.clientWidth}),super.setValue(e,t)}destroy(){this.listComponent&&(this.destroyBean(this.listComponent),this.listComponent=void 0),super.destroy()}};ea.EVENT_ITEM_SELECTED="selectedItem";var ta=ea,na=class extends qr{constructor(e,t,n="text",i="input"){super(e,`\n <div role="presentation">\n <div ref="eLabel" class="ag-input-field-label"></div>\n <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n <${i} ref="eInput" class="ag-input-field-input"></${i}>\n </div>\n </div>`,t),this.inputType=n,this.displayFieldTag=i}postConstruct(){super.postConstruct(),this.setInputType(),this.eLabel.classList.add(`${this.className}-label`),this.eWrapper.classList.add(`${this.className}-input-wrapper`),this.eInput.classList.add(`${this.className}-input`),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||`ag-${this.getCompId()}-input`;const{inputName:e,inputWidth:t}=this.config;null!=e&&this.setInputName(e),null!=t&&this.setInputWidth(t),this.addInputListeners(),this.activateTabIndex([this.eInput])}addInputListeners(){this.addManagedListener(this.eInput,"input",(e=>this.setValue(e.target.value)))}setInputType(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)}getInputElement(){return this.eInput}setInputWidth(e){return $o(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 nr(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return di(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return Ro(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(!0===e)nr(this.eInput,"autocomplete",null);else{const t="string"==typeof e?e:"off";nr(this.eInput,"autocomplete",t)}return this}};_e([Or("eLabel")],na.prototype,"eLabel",2),_e([Or("eWrapper")],na.prototype,"eWrapper",2),_e([Or("eInput")],na.prototype,"eInput",2);var ia=class extends na{constructor(e,t="ag-checkbox",n="checkbox"){super(e,t,n),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t}=this.config;"boolean"==typeof e&&this.setReadOnly(e),"boolean"==typeof t&&this.setPassive(t)}addInputListeners(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(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;const 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){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected="boolean"==typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,t||this.dispatchChange(this.selected,this.previousValue))}dispatchChange(e,t,n){this.dispatchEvent({type:An.EVENT_FIELD_VALUE_CHANGED,selected:e,previousValue:t,event:n});const i=this.getInputElement(),o={type:An.EVENT_CHECKBOX_CHANGED,id:i.id,name:i.name,selected:e,previousValue:t};this.eventService.dispatchEvent(o)}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;const t=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,t,e)}refreshSelectedClass(e){this.eWrapper.classList.toggle("ag-checked",!0===e),this.eWrapper.classList.toggle("ag-indeterminate",null==e)}},oa=class extends ia{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.addManagedListener(this.eventService,An.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))}onChange(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)}},ra=class{constructor(e,t,n){this.localeService=e,this.optionsFactory=t,this.valueFormatter=n}getModelAsString(e){if(!e)return null;const t=null!=e.operator,n=this.localeService.getLocaleTextFunc();if(t){const t=e;let{conditions:i}=t;if(!i){const{condition1:e,condition2:n}=t;i=[e,n]}const o=i.map((e=>this.getModelAsString(e))),r="AND"===t.operator?"andCondition":"orCondition";return o.join(` ${n(r,Hr[r])} `)}if(e.type===sa.BLANK||e.type===sa.NOT_BLANK)return n(e.type,e.type);{const t=e,i=this.optionsFactory.getCustomOption(t.type),{displayKey:o,displayName:r,numberOfInputs:a}=i||{};return o&&r&&0===a?(n(o,r),r):this.conditionToString(t,i)}}updateParams(e){this.optionsFactory=e.optionsFactory}formatValue(e){var t;return this.valueFormatter?null!=(t=this.valueFormatter(null!=e?e:null))?t:"":String(e)}},aa=class _SimpleFilter extends $r{constructor(){super(...arguments),this.eTypes=[],this.eJoinOperatorPanels=[],this.eJoinOperatorsAnd=[],this.eJoinOperatorsOr=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}getNumberOfInputs(e){const t=this.optionsFactory.getCustomOption(e);if(t){const{numberOfInputs:e}=t;return null!=e?e:1}const n=[_SimpleFilter.EMPTY,_SimpleFilter.NOT_BLANK,_SimpleFilter.BLANK];return e&&n.indexOf(e)>=0?0:e===_SimpleFilter.IN_RANGE?2:1}onFloatingFilterChanged(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach(((t,n)=>{0===n?t.setValue(e,!0):t.setValue(this.optionsFactory.getDefaultOption(),!0)}))}getModelFromUi(){const e=this.getUiCompleteConditions();return 0===e.length?null:this.maxNumConditions>1&&e.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:e[0],condition2:e[1],conditions:e}:e[0]}getConditionTypes(){return this.eTypes.map((e=>e.getValue()))}getConditionType(e){return this.eTypes[e].getValue()}getJoinOperator(){return 0===this.eJoinOperatorsOr.length?this.defaultJoinOperator:!0===this.eJoinOperatorsOr[0].getValue()?"OR":"AND"}areModelsEqual(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;const n=!e.operator,i=!t.operator;if(!n&&i||n&&!i)return!1;let o;if(n){const n=e,i=t;o=this.areSimpleModelsEqual(n,i)}else{const n=e,i=t;o=n.operator===i.operator&&Yt(n.conditions,i.conditions,((e,t)=>this.areSimpleModelsEqual(e,t)))}return o}shouldRefresh(e){var t,n,i;const o=this.getModel(),r=o?null!=(t=o.conditions)?t:[o]:null,a=null!=(i=null==(n=e.filterOptions)?void 0:n.map((e=>"string"==typeof e?e:e.displayKey)))?i:this.getDefaultFilterOptions();return!(r&&!r.every((e=>void 0!==a.find((t=>t===e.type)))))&&!("number"==typeof e.maxNumConditions&&r&&r.length>e.maxNumConditions)}refresh(e){if(!this.shouldRefresh(e))return!1;return!!super.refresh(e)&&(this.setParams(e),this.removeConditionsAndOperators(0),this.createOption(),this.setModel(this.getModel()),!0)}setModelIntoUi(e){if(e.operator){let t=e;t.conditions||(t.conditions=[t.condition1,t.condition2]);const n=this.validateAndUpdateConditions(t.conditions),i=this.getNumConditions();if(n<i)this.removeConditionsAndOperators(n);else if(n>i)for(let e=i;e<n;e++)this.createJoinOperatorPanel(),this.createOption();const o="OR"===t.operator;this.eJoinOperatorsAnd.forEach((e=>e.setValue(!o,!0))),this.eJoinOperatorsOr.forEach((e=>e.setValue(o,!0))),t.conditions.forEach(((e,t)=>{this.eTypes[t].setValue(e.type,!0),this.setConditionIntoUi(e,t)}))}else{const t=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(t.type,!0),this.setConditionIntoUi(t,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),xr.resolve()}validateAndUpdateConditions(e){let t=e.length;return t>this.maxNumConditions&&(e.splice(this.maxNumConditions),st('Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.'),t=this.maxNumConditions),t}doesFilterPass(e){var t;const n=this.getModel();if(null==n)return!0;const{operator:i}=n,o=[];if(i){const e=n;o.push(...null!=(t=e.conditions)?t:[])}else o.push(n);return o[i&&"OR"===i?"some":"every"]((t=>this.individualConditionPasses(e,t)))}setParams(e){super.setParams(e),this.setNumConditions(e),this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.optionsFactory=new Vr,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")}setNumConditions(e){var t,n;null!=e.suppressAndOrCondition&&st('Since v29.2 "filterParams.suppressAndOrCondition" is deprecated. Use "filterParams.maxNumConditions = 1" instead.'),null!=e.alwaysShowBothConditions&&st('Since v29.2 "filterParams.alwaysShowBothConditions" is deprecated. Use "filterParams.numAlwaysVisibleConditions = 2" instead.'),this.maxNumConditions=null!=(t=e.maxNumConditions)?t:e.suppressAndOrCondition?1:2,this.maxNumConditions<1&&(st('"filterParams.maxNumConditions" must be greater than or equal to zero.'),this.maxNumConditions=1),this.numAlwaysVisibleConditions=null!=(n=e.numAlwaysVisibleConditions)?n:e.alwaysShowBothConditions?2:1,this.numAlwaysVisibleConditions<1&&(st('"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.'),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(st('"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".'),this.numAlwaysVisibleConditions=this.maxNumConditions)}createOption(){const e=this.createManagedBean(new ta);this.eTypes.push(e),e.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(e.getGui());const t=this.createValueElement();this.eConditionBodies.push(t),this.eFilterBody.appendChild(t),this.putOptionsIntoDropdown(e),this.resetType(e);const n=this.getNumConditions()-1;this.forEachPositionInput(n,(e=>this.resetInput(e))),this.addChangedListeners(e,n)}createJoinOperatorPanel(){const e=document.createElement("div");this.eJoinOperatorPanels.push(e),e.classList.add("ag-filter-condition");const t=this.createJoinOperator(this.eJoinOperatorsAnd,e,"and"),n=this.createJoinOperator(this.eJoinOperatorsOr,e,"or");this.eFilterBody.appendChild(e);const i=this.eJoinOperatorPanels.length-1,o=this.joinOperatorId++;this.resetJoinOperatorAnd(t,i,o),this.resetJoinOperatorOr(n,i,o),this.isReadOnly()||(t.onValueChange(this.listener),n.onValueChange(this.listener))}createJoinOperator(e,t,n){const i=this.createManagedBean(new oa);return e.push(i),i.addCssClass("ag-filter-condition-operator"),i.addCssClass(`ag-filter-condition-operator-${n}`),t.appendChild(i.getGui()),i}getDefaultJoinOperator(e){return"AND"===e||"OR"===e?e:"AND"}createFilterListOptions(){const e=this.optionsFactory.getFilterOptions();this.filterListOptions=e.map((e=>"string"==typeof e?this.createBoilerplateListOption(e):this.createCustomListOption(e)))}putOptionsIntoDropdown(e){this.filterListOptions.forEach((t=>{e.addOption(t)})),e.setDisabled(this.filterListOptions.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){const{displayKey:t}=e,n=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:n?this.localeService.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(t)}}isAllowTwoConditions(){return this.maxNumConditions>=2}createBodyTemplate(){return""}getCssIdentifier(){return"simple-filter"}updateUiVisibility(){const e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)}updateNumConditions(){var e;let t=-1,n=!0;for(let e=0;e<this.getNumConditions();e++)this.isConditionUiComplete(e)?t=e:n=!1;if(this.shouldAddNewConditionAtEnd(n))this.createJoinOperatorPanel(),this.createOption();else{const n=null!=(e=this.lastUiCompletePosition)?e:this.getNumConditions()-2;if(t<n){this.removeConditionsAndOperators(n+1);const e=t+1,i=n-e;i>0&&this.removeConditionsAndOperators(e,i),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=t}updateConditionStatusesAndValues(e,t){this.eTypes.forEach(((t,n)=>{const i=this.isConditionDisabled(n,e);t.setDisabled(i||this.filterListOptions.length<=1),1===n&&(Ro(this.eJoinOperatorPanels[0],i),this.eJoinOperatorsAnd[0].setDisabled(i),this.eJoinOperatorsOr[0].setDisabled(i))})),this.eConditionBodies.forEach(((e,t)=>{Do(e,this.isConditionBodyVisible(t))}));const n="OR"===(null!=t?t:this.getJoinOperator());this.eJoinOperatorsAnd.forEach(((e,t)=>{e.setValue(!n,!0)})),this.eJoinOperatorsOr.forEach(((e,t)=>{e.setValue(n,!0)})),this.forEachInput(((t,n,i,o)=>{this.setElementDisplayed(t,n<o),this.setElementDisabled(t,this.isConditionDisabled(i,e))})),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){if(e>=this.getNumConditions())return;this.removeComponents(this.eTypes,e,t),this.removeElements(this.eConditionBodies,e,t),this.removeValueElements(e,t);const n=Math.max(e-1,0);this.removeElements(this.eJoinOperatorPanels,n,t),this.removeComponents(this.eJoinOperatorsAnd,n,t),this.removeComponents(this.eJoinOperatorsOr,n,t)}removeElements(e,t,n){this.removeItems(e,t,n).forEach((e=>Go(e)))}removeComponents(e,t,n){this.removeItems(e,t,n).forEach((e=>{Go(e.getGui()),this.destroyBean(e)}))}removeItems(e,t,n){return null==n?e.splice(t):e.splice(t,n)}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!(null==e?void 0:e.suppressFocus))if(this.isReadOnly())this.eFilterBody.focus();else{const e=this.getInputs(0)[0];if(!e)return;e instanceof na&&e.getInputElement().focus()}}afterGuiDetached(){super.afterGuiDetached();const e=this.getModel();this.resetUiToActiveModel(e);let t=-1,n=-1,i=!1;const o=this.getJoinOperator();for(let e=this.getNumConditions()-1;e>=0;e--)if(this.isConditionUiComplete(e))-1===t&&(t=e,n=e);else{const o=e<t;(e>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(e-1)||o)&&(this.removeConditionsAndOperators(e,1),i=!0,o&&n--)}let r=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),r=!0),this.shouldAddNewConditionAtEnd(n===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),r=!0),r&&this.updateConditionStatusesAndValues(n,o),i&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=n}getPlaceholderText(e,t){let n=this.translate(e);if(ct(this.filterPlaceholder)){const e=this.filterPlaceholder,i=this.eTypes[t].getValue();n=e({filterOptionKey:i,filterOption:this.translate(i),placeholder:n})}else"string"==typeof this.filterPlaceholder&&(n=this.filterPlaceholder);return n}resetPlaceholder(){const e=this.localeService.getLocaleTextFunc();this.forEachInput(((t,n,i,o)=>{if(!(t instanceof na))return;const r=0===n&&o>1?"inRangeStart":0===n?"filterOoo":"inRangeEnd",a=0===n&&o>1?e("ariaFilterFromValue","Filter from value"):0===n?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value");t.setInputPlaceholder(this.getPlaceholderText(r,i)),t.setInputAriaLabel(a)}))}setElementValue(e,t,n){e instanceof na&&e.setValue(null!=t?String(t):null,!0)}setElementDisplayed(e,t){e instanceof _r&&Do(e.getGui(),t)}setElementDisabled(e,t){e instanceof _r&&Ro(e.getGui(),t)}attachElementOnChange(e,t){e instanceof na&&e.onValueChange(t)}forEachInput(e){this.getConditionTypes().forEach(((t,n)=>{this.forEachPositionTypeInput(n,t,e)}))}forEachPositionInput(e,t){const n=this.getConditionType(e);this.forEachPositionTypeInput(e,n,t)}forEachPositionTypeInput(e,t,n){const i=this.getNumberOfInputs(t),o=this.getInputs(e);for(let t=0;t<o.length;t++){const r=o[t];null!=r&&n(r,t,e,i)}}isConditionDisabled(e,t){return!!this.isReadOnly()||0!==e&&e>t+1}isConditionBodyVisible(e){const t=this.getConditionType(e);return this.getNumberOfInputs(t)>0}isConditionUiComplete(e){if(e>=this.getNumConditions())return!1;return this.getConditionType(e)!==_SimpleFilter.EMPTY&&!this.getValues(e).some((e=>null==e))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){const 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){return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach((e=>this.resetType(e))),this.eJoinOperatorsAnd.forEach(((e,t)=>this.resetJoinOperatorAnd(e,t,this.joinOperatorId+t))),this.eJoinOperatorsOr.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,e||this.onUiChanged(),xr.resolve()}resetType(e){const t=this.localeService.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.getDefaultOption(),!0).setAriaLabel(t).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,n){this.resetJoinOperator(e,t,this.isDefaultOperator("AND"),this.translate("andCondition"),n)}resetJoinOperatorOr(e,t,n){this.resetJoinOperator(e,t,this.isDefaultOperator("OR"),this.translate("orCondition"),n)}resetJoinOperator(e,t,n,i,o){this.updateJoinOperatorDisabled(e.setValue(n,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${o}`).setLabel(i),t)}updateJoinOperatorsDisabled(){this.eJoinOperatorsAnd.forEach(((e,t)=>this.updateJoinOperatorDisabled(e,t))),this.eJoinOperatorsOr.forEach(((e,t)=>this.updateJoinOperatorDisabled(e,t)))}updateJoinOperatorDisabled(e,t){e.setDisabled(this.isReadOnly()||t>0)}resetInput(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())}setConditionIntoUi(e,t){const n=this.mapValuesFromModel(e);this.forEachInput(((e,i,o,r)=>{o===t&&this.setElementValue(e,null!=n[i]?n[i]:null)}))}setValueFromFloatingFilter(e){this.forEachInput(((t,n,i,o)=>{this.setElementValue(t,0===n&&0===i?e:null,!0)}))}isDefaultOperator(e){return e===this.defaultJoinOperator}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,(e=>{this.attachElementOnChange(e,this.listener)})))}individualConditionPasses(e,t){const n=this.getCellValue(e.node),i=this.mapValuesFromModel(t),o=this.optionsFactory.getCustomOption(t.type),r=this.evaluateCustomFilter(o,i,n);return null!=r?r:null==n?this.evaluateNullValue(t.type):this.evaluateNonNullValue(i,n,t,e)}evaluateCustomFilter(e,t,n){if(null==e)return;const{predicate:i}=e;return null==i||t.some((e=>null==e))?void 0:i(t,n)}isBlank(e){return null==e||"string"==typeof e&&0===e.trim().length}hasInvalidInputs(){return!1}};aa.EMPTY="empty",aa.BLANK="blank",aa.NOT_BLANK="notBlank",aa.EQUALS="equals",aa.NOT_EQUAL="notEqual",aa.LESS_THAN="lessThan",aa.LESS_THAN_OR_EQUAL="lessThanOrEqual",aa.GREATER_THAN="greaterThan",aa.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",aa.IN_RANGE="inRange",aa.CONTAINS="contains",aa.NOT_CONTAINS="notContains",aa.STARTS_WITH="startsWith",aa.ENDS_WITH="endsWith";var sa=aa,la=class _ScalarFilter extends sa{setParams(e){super.setParams(e),this.scalarFilterParams=e}evaluateNullValue(e){switch(e){case _ScalarFilter.EQUALS:case _ScalarFilter.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case _ScalarFilter.GREATER_THAN:case _ScalarFilter.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case _ScalarFilter.LESS_THAN:case _ScalarFilter.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case _ScalarFilter.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case _ScalarFilter.BLANK:return!0;case _ScalarFilter.NOT_BLANK:return!1}return!1}evaluateNonNullValue(e,t,n){const i=this.comparator(),o=null!=e[0]?i(e[0],t):0;switch(n.type){case _ScalarFilter.EQUALS:return 0===o;case _ScalarFilter.NOT_EQUAL:return 0!==o;case _ScalarFilter.GREATER_THAN:return o>0;case _ScalarFilter.GREATER_THAN_OR_EQUAL:return o>=0;case _ScalarFilter.LESS_THAN:return o<0;case _ScalarFilter.LESS_THAN_OR_EQUAL:return o<=0;case _ScalarFilter.IN_RANGE:{const n=i(e[1],t);return this.scalarFilterParams.inRangeInclusive?o>=0&&n<=0:o>0&&n<0}case _ScalarFilter.BLANK:return this.isBlank(t);case _ScalarFilter.NOT_BLANK:return!this.isBlank(t);default:return console.warn('AG Grid: Unexpected type of filter "'+n.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}}},da=1/0,ca=class extends ra{constructor(e,t,n){super(t,n),this.dateFilterParams=e}conditionToString(e,t){const{type:n}=e,{numberOfInputs:i}=t||{},o=n==sa.IN_RANGE||2===i,r=fo(e.dateFrom),a=fo(e.dateTo),s=this.dateFilterParams.inRangeFloatingFilterDateFormat;if(o){return`${null!==r?vo(r,s):"null"}-${null!==a?vo(a,s):"null"}`}return null!=r?vo(r,s):`${n}`}updateParams(e){super.updateParams(e),this.dateFilterParams=e.dateFilterParams}},ga=class _DateFilter extends la{constructor(){super("dateFilter"),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=1e3,this.maxValidYear=da,this.minValidDate=null,this.maxValidDate=null}afterGuiAttached(e){super.afterGuiAttached(e),this.dateConditionFromComps[0].afterGuiAttached(e)}mapValuesFromModel(e){const{dateFrom:t,dateTo:n,type:i}=e||{};return[t&&fo(t)||null,n&&fo(n)||null].slice(0,this.getNumberOfInputs(i))}comparator(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)}defaultComparator(e,t){return null==t||t<e?-1:t>e?1:0}setParams(e){this.dateFilterParams=e,super.setParams(e);const t=(t,n)=>{if(null!=e[t]){if(!isNaN(e[t]))return null==e[t]?n:Number(e[t]);console.warn(`AG Grid: DateFilter ${t} is not a number`)}return n};this.minValidYear=t("minValidYear",1e3),this.maxValidYear=t("maxValidYear",da),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),e.minValidDate?this.minValidDate=e.minValidDate instanceof Date?e.minValidDate:fo(e.minValidDate):this.minValidDate=null,e.maxValidDate?this.maxValidDate=e.maxValidDate instanceof Date?e.maxValidDate:fo(e.maxValidDate):this.maxValidDate=null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&console.warn("AG Grid: DateFilter minValidDate should be <= maxValidDate"),this.filterModelFormatter=new ca(this.dateFilterParams,this.localeService,this.optionsFactory)}createDateCompWrapper(e){const t=new zr(this.getContext(),this.userComponentFactory,{onDateChanged:()=>this.onUiChanged(),filterParams:this.dateFilterParams},e);return this.addDestroyFunc((()=>t.destroy())),t}setElementValue(e,t){e.setDate(t)}setElementDisplayed(e,t){e.setDisplayed(t)}setElementDisabled(e,t){e.setDisabled(t)}getDefaultFilterOptions(){return _DateFilter.DEFAULT_FILTER_OPTIONS}createValueElement(){const e=this.gos.getDocument().createElement("div");return e.classList.add("ag-filter-body"),this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e}createFromToElement(e,t,n,i){const o=this.gos.getDocument().createElement("div");o.classList.add(`ag-filter-${i}`),o.classList.add(`ag-filter-date-${i}`),t.push(o),e.appendChild(o),n.push(this.createDateCompWrapper(o))}removeValueElements(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),this.removeItems(this.eConditionPanelsFrom,e,t),this.removeItems(this.eConditionPanelsTo,e,t)}removeDateComps(e,t,n){this.removeItems(e,t,n).forEach((e=>e.destroy()))}isValidDateValue(e){if(null===e)return!1;if(this.minValidDate){if(e<this.minValidDate)return!1}else if(e.getUTCFullYear()<this.minValidYear)return!1;if(this.maxValidDate){if(e>this.maxValidDate)return!1}else if(e.getUTCFullYear()>this.maxValidYear)return!1;return!0}isConditionUiComplete(e){if(!super.isConditionUiComplete(e))return!1;let t=!0;return this.forEachInput(((n,i,o,r)=>{o!==e||!t||i>=r||(t=t&&this.isValidDateValue(n.getDate()))})),t}areSimpleModelsEqual(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type}getFilterType(){return"date"}createCondition(e){const t=this.getConditionType(e),n={},i=this.getValues(e);return i.length>0&&(n.dateFrom=po(i[0])),i.length>1&&(n.dateTo=po(i[1])),Ie({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t},n)}resetPlaceholder(){const e=this.localeService.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),n=e("ariaFilterValue","Filter Value");this.forEachInput((e=>{e.setInputPlaceholder(t),e.setInputAriaLabel(n)}))}getInputs(e){return e>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[e],this.dateConditionToComps[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,((e,n,i,o)=>{n<o&&t.push(e.getDate())})),t}translate(e){return e===la.LESS_THAN?super.translate("before"):e===la.GREATER_THAN?super.translate("after"):super.translate(e)}getModelAsString(e){var t;return null!=(t=this.filterModelFormatter.getModelAsString(e))?t:""}};ga.DEFAULT_FILTER_OPTIONS=[la.EQUALS,la.NOT_EQUAL,la.LESS_THAN,la.GREATER_THAN,la.IN_RANGE,la.BLANK,la.NOT_BLANK],_e([xt("userComponentFactory")],ga.prototype,"userComponentFactory",2);var ua=ga,ha=class extends _r{getDefaultDebounceMs(){return 0}destroy(){super.destroy()}isEventFromFloatingFilter(e){return e&&e.afterFloatingFilter}isEventFromDataChange(e){return null==e?void 0:e.afterDataChange}getLastType(){return this.lastType}isReadOnly(){return this.readOnly}setLastTypeFromModel(e){if(!e)return void(this.lastType=this.optionsFactory.getDefaultOption());let t;if(e.operator){t=e.conditions[0]}else t=e;this.lastType=t.type}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;const t=e;return this.isTypeEditable(t.type)}init(e){this.setSimpleParams(e,!1)}setSimpleParams(e,t=!0){this.optionsFactory=new Vr,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),t||(this.lastType=this.optionsFactory.getDefaultOption()),this.readOnly=!!e.filterParams.readOnly;const n=this.isTypeEditable(this.optionsFactory.getDefaultOption());this.setEditable(n)}onParamsUpdated(e){this.refresh(e)}refresh(e){this.setSimpleParams(e)}doesFilterHaveSingleInput(e){const t=this.optionsFactory.getCustomOption(e),{numberOfInputs:n}=t||{};return null==n||1==n}isTypeEditable(e){const t=[sa.IN_RANGE,sa.EMPTY,sa.BLANK,sa.NOT_BLANK];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&t.indexOf(e)<0}getAriaLabel(e){return`${this.columnModel.getDisplayNameForColumn(e.column,"header",!0)} ${this.localeService.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}};_e([xt("columnModel")],ha.prototype,"columnModel",2);var pa=class extends ha{constructor(){super('\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>\n <div ref="eDateWrapper" style="display: flex;"></div>\n </div>')}getDefaultFilterOptions(){return ua.DEFAULT_FILTER_OPTIONS}init(e){super.init(e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent(),this.filterModelFormatter=new ca(this.filterParams,this.localeService,this.optionsFactory);const t=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(t("ariaDateFilterInput","Date Filter Input"))}onParamsUpdated(e){this.refresh(e)}refresh(e){super.refresh(e),this.params=e,this.filterParams=e.filterParams,this.updateDateComponent(),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams}),this.updateCompOnModelChange(e.currentParentModel())}updateCompOnModelChange(e){const t=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(t),t){if(e){const t=e;this.dateComp.setDate(fo(t.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){Do(this.eDateWrapper,e),Do(this.eReadOnlyText.getGui(),!e)}onParentModelChanged(e,t){this.isEventFromFloatingFilter(t)||this.isEventFromDataChange(t)||(super.setLastTypeFromModel(e),this.updateCompOnModelChange(e))}onDateChanged(){const e=po(this.dateComp.getDate());this.params.parentFilterInstance((t=>{if(t){const n=fo(e);t.onFloatingFilterChanged(this.getLastType()||null,n)}}))}getDateComponentParams(){const e=$r.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs());return{onDateChanged:vt(this.onDateChanged.bind(this),e),filterParams:this.params.column.getColDef().filterParams}}createDateComponent(){this.dateComp=new zr(this.getContext(),this.userComponentFactory,this.getDateComponentParams(),this.eDateWrapper,(e=>{e.setInputAriaLabel(this.getAriaLabel(this.params))})),this.addDestroyFunc((()=>this.dateComp.destroy()))}updateDateComponent(){const e=this.gos.addGridCommonParams(this.getDateComponentParams());this.dateComp.updateParams(e)}getFilterModelFormatter(){return this.filterModelFormatter}};_e([xt("userComponentFactory")],pa.prototype,"userComponentFactory",2),_e([Or("eReadOnlyText")],pa.prototype,"eReadOnlyText",2),_e([Or("eDateWrapper")],pa.prototype,"eDateWrapper",2);var ma=class extends _r{constructor(){super('\n <div class="ag-filter-filter">\n <ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>\n </div>')}destroy(){super.destroy()}init(e){this.params=e,this.setParams(e);const t=this.eDateInput.getInputElement();this.addManagedListener(t,"mousedown",(()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||t.focus()})),this.addManagedListener(t,"input",(e=>{e.target===this.gos.getActiveDomElement()&&(this.eDateInput.isDisabled()||this.params.onDateChanged())}))}setParams(e){const t=this.eDateInput.getInputElement(),n=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=n&&Ui(),t.type=n?"date":"text";const{minValidYear:i,maxValidYear:o,minValidDate:r,maxValidDate:a}=e.filterParams||{};if(r&&i&&st("DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored."),a&&o&&st("DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored."),r&&a){const[e,t]=[r,a].map((e=>e instanceof Date?e:fo(e)));e&&t&&e.getTime()>t.getTime()&&st("DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.")}r?r instanceof Date?t.min=vo(r):t.min=r:i&&(t.min=`${i}-01-01`),a?a instanceof Date?t.max=vo(a):t.max=a:o&&(t.max=`${o}-12-31`)}onParamsUpdated(e){this.refresh(e)}refresh(e){this.params=e,this.setParams(e)}getDate(){return fo(this.eDateInput.getValue())}setDate(e){this.eDateInput.setValue(po(e,!1))}setInputPlaceholder(e){this.eDateInput.setInputPlaceholder(e)}setInputAriaLabel(e){this.eDateInput.setAriaLabel(e)}setDisabled(e){this.eDateInput.setDisabled(e)}afterGuiAttached(e){e&&e.suppressFocus||this.eDateInput.getInputElement().focus()}shouldUseBrowserDatePicker(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:Ki()||Yi()||Ui()&&ji()>=14.1}};_e([Or("eDateInput")],ma.prototype,"eDateInput",2);var va=class extends na{constructor(e,t="ag-text-field",n="text"){super(e,t,n)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){return this.eInput.value!==e&&(this.eInput.value=ze(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}preventDisallowedCharacters(){const e=new RegExp(`[${this.config.allowedCharPattern}]`);this.addManagedListener(this.eInput,"keydown",(t=>{mr(t)&&t.key&&!e.test(t.key)&&t.preventDefault()})),this.addManagedListener(this.eInput,"paste",(t=>{var n;const i=null==(n=t.clipboardData)?void 0:n.getData("text");i&&i.split("").some((t=>!e.test(t)))&&t.preventDefault()}))}},fa=class extends va{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct(),this.addManagedListener(this.eInput,"blur",(()=>{const e=parseFloat(this.eInput.value),t=isNaN(e)?"":this.normalizeValue(e.toString());this.value!==t&&this.setValue(t)})),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any";const{precision:e,min:t,max:n,step:i}=this.config;"number"==typeof e&&this.setPrecision(e),"number"==typeof t&&this.setMin(t),"number"==typeof n&&this.setMax(n),"number"==typeof i&&this.setStep(i)}onWheel(e){this.gos.getActiveDomElement()===this.eInput&&e.preventDefault()}normalizeValue(e){if(""===e)return"";null!=this.precision&&(e=this.adjustPrecision(e));const t=parseFloat(e);return null!=this.min&&t<this.min?e=this.min.toString():null!=this.max&&t>this.max&&(e=this.max.toString()),e}adjustPrecision(e,t){if(null==this.precision)return e;if(t){const t=parseFloat(e).toFixed(this.precision);return parseFloat(t).toString()}const n=String(e).split(".");if(n.length>1){if(n[1].length<=this.precision)return e;if(this.precision>0)return`${n[0]}.${n[1].slice(0,this.precision)}`}return n[0]}setMin(e){return this.min===e||(this.min=e,nr(this.eInput,"min",e)),this}setMax(e){return this.max===e||(this.max=e,nr(this.eInput,"max",e)),this}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e||(this.step=e,nr(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,n){if(ze(n)){let i=this.isScientificNotation(n);if(i&&this.eInput.validity.valid)return e(n);if(!i){i=(n=this.adjustPrecision(n))!=this.normalizeValue(n)}if(i)return t(n)}return e(n)}getValue(){if(!this.eInput.validity.valid)return;const e=this.eInput.value;return this.isScientificNotation(e)?this.adjustPrecision(e,!0):super.getValue()}isScientificNotation(e){return"string"==typeof e&&e.includes("e")}},Ca=class extends ra{conditionToString(e,t){const{numberOfInputs:n}=t||{};return e.type==sa.IN_RANGE||2===n?`${this.formatValue(e.filter)}-${this.formatValue(e.filterTo)}`:null!=e.filter?this.formatValue(e.filter):`${e.type}`}};function wa(e){const{allowedCharPattern:t}=null!=e?e:{};return null!=t?t:null}var ya=class _NumberFilter extends la{constructor(){super("numberFilter"),this.eValuesFrom=[],this.eValuesTo=[]}refresh(e){return this.numberFilterParams.allowedCharPattern===e.allowedCharPattern&&super.refresh(e)}mapValuesFromModel(e){const{filter:t,filterTo:n,type:i}=e||{};return[this.processValue(t),this.processValue(n)].slice(0,this.getNumberOfInputs(i))}getDefaultDebounceMs(){return 500}comparator(){return(e,t)=>e===t?0:e<t?1:-1}setParams(e){this.numberFilterParams=e,super.setParams(e),this.filterModelFormatter=new Ca(this.localeService,this.optionsFactory,this.numberFilterParams.numberFormatter)}getDefaultFilterOptions(){return _NumberFilter.DEFAULT_FILTER_OPTIONS}setElementValue(e,t,n){const i=!n&&this.numberFilterParams.numberFormatter?this.numberFilterParams.numberFormatter(null!=t?t:null):t;super.setElementValue(e,i)}createValueElement(){const e=wa(this.numberFilterParams),t=document.createElement("div");return t.classList.add("ag-filter-body"),oi(t,"presentation"),this.createFromToElement(t,this.eValuesFrom,"from",e),this.createFromToElement(t,this.eValuesTo,"to",e),t}createFromToElement(e,t,n,i){const o=this.createManagedBean(i?new va({allowedCharPattern:i}):new fa);o.addCssClass(`ag-filter-${n}`),o.addCssClass("ag-filter-filter"),t.push(o),e.appendChild(o.getGui())}removeValueElements(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)}getValues(e){const t=[];return this.forEachPositionInput(e,((e,n,i,o)=>{n<o&&t.push(this.processValue(this.stringToFloat(e.getValue())))})),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getFilterType(){return"number"}processValue(e){return null==e||isNaN(e)?null:e}stringToFloat(e){if("number"==typeof e)return e;let t=Ge(e);return null!=t&&""===t.trim()&&(t=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(t):null==t||"-"===t.trim()?null:parseFloat(t)}createCondition(e){const t=this.getConditionType(e),n={filterType:this.getFilterType(),type:t},i=this.getValues(e);return i.length>0&&(n.filter=i[0]),i.length>1&&(n.filterTo=i[1]),n}getInputs(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]}getModelAsString(e){var t;return null!=(t=this.filterModelFormatter.getModelAsString(e))?t:""}hasInvalidInputs(){let e=!1;return this.forEachInput((t=>{t.getInputElement().validity.valid||(e=!0)})),e}};ya.DEFAULT_FILTER_OPTIONS=[la.EQUALS,la.NOT_EQUAL,la.GREATER_THAN,la.GREATER_THAN_OR_EQUAL,la.LESS_THAN,la.LESS_THAN_OR_EQUAL,la.IN_RANGE,la.BLANK,la.NOT_BLANK];var ba=ya,Ea=class extends ra{conditionToString(e,t){const{numberOfInputs:n}=t||{};return e.type==sa.IN_RANGE||2===n?`${e.filter}-${e.filterTo}`:null!=e.filter?`${e.filter}`:`${e.type}`}},Sa=class _TextFilter extends sa{constructor(){super("textFilter"),this.eValuesFrom=[],this.eValuesTo=[]}static trimInput(e){const t=e&&e.trim();return""===t?e:t}getDefaultDebounceMs(){return 500}setParams(e){this.textFilterParams=e,super.setParams(e),this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?_TextFilter.DEFAULT_FORMATTER:_TextFilter.DEFAULT_LOWERCASE_FORMATTER),this.filterModelFormatter=new Ea(this.localeService,this.optionsFactory)}getTextMatcher(){const e=this.textFilterParams.textCustomComparator;return e?(Rr.warnOnce("textCustomComparator is deprecated, use textMatcher instead."),({filterOption:t,value:n,filterText:i})=>e(t,n,i)):this.textFilterParams.textMatcher||_TextFilter.DEFAULT_MATCHER}createCondition(e){const t=this.getConditionType(e),n={filterType:this.getFilterType(),type:t},i=this.getValuesWithSideEffects(e,!0);return i.length>0&&(n.filter=i[0]),i.length>1&&(n.filterTo=i[1]),n}getFilterType(){return"text"}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]}getValues(e){return this.getValuesWithSideEffects(e,!1)}getValuesWithSideEffects(e,t){const n=[];return this.forEachPositionInput(e,((e,i,o,r)=>{var a;if(i<r){let i=Ge(e.getValue());t&&this.textFilterParams.trimInput&&(i=null!=(a=_TextFilter.trimInput(i))?a:null,e.setValue(i,!0)),n.push(i)}})),n}getDefaultFilterOptions(){return _TextFilter.DEFAULT_FILTER_OPTIONS}createValueElement(){const e=document.createElement("div");return e.classList.add("ag-filter-body"),oi(e,"presentation"),this.createFromToElement(e,this.eValuesFrom,"from"),this.createFromToElement(e,this.eValuesTo,"to"),e}createFromToElement(e,t,n){const i=this.createManagedBean(new va);i.addCssClass(`ag-filter-${n}`),i.addCssClass("ag-filter-filter"),t.push(i),e.appendChild(i.getGui())}removeValueElements(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)}mapValuesFromModel(e){const{filter:t,filterTo:n,type:i}=e||{};return[t||null,n||null].slice(0,this.getNumberOfInputs(i))}evaluateNullValue(e){const t=[sa.NOT_EQUAL,sa.NOT_CONTAINS,sa.BLANK];return!!e&&t.indexOf(e)>=0}evaluateNonNullValue(e,t,n,i){const o=e.map((e=>this.formatter(e)))||[],r=this.formatter(t),{api:a,colDef:s,column:l,columnApi:d,context:c,textFormatter:g}=this.textFilterParams;if(n.type===sa.BLANK)return this.isBlank(t);if(n.type===sa.NOT_BLANK)return!this.isBlank(t);const u={api:a,colDef:s,column:l,columnApi:d,context:c,node:i.node,data:i.data,filterOption:n.type,value:r,textFormatter:g};return o.some((e=>this.matcher(Le(Ie({},u),{filterText:e}))))}getModelAsString(e){var t;return null!=(t=this.filterModelFormatter.getModelAsString(e))?t:""}};Sa.DEFAULT_FILTER_OPTIONS=[sa.CONTAINS,sa.NOT_CONTAINS,sa.EQUALS,sa.NOT_EQUAL,sa.STARTS_WITH,sa.ENDS_WITH,sa.BLANK,sa.NOT_BLANK],Sa.DEFAULT_FORMATTER=e=>e,Sa.DEFAULT_LOWERCASE_FORMATTER=e=>null==e?null:e.toString().toLowerCase(),Sa.DEFAULT_MATCHER=({filterOption:e,value:t,filterText:n})=>{if(null==n)return!1;switch(e){case Sa.CONTAINS:return t.indexOf(n)>=0;case Sa.NOT_CONTAINS:return t.indexOf(n)<0;case Sa.EQUALS:return t===n;case Sa.NOT_EQUAL:return t!=n;case Sa.STARTS_WITH:return 0===t.indexOf(n);case Sa.ENDS_WITH:const e=t.lastIndexOf(n);return e>=0&&e===t.length-n.length;default:return!1}};var Da=Sa,Ta=class extends En{constructor(e){super(),this.params=e,this.valueChangedListener=()=>{}}setupGui(e){var t;this.eFloatingFilterTextInput=this.createManagedBean(new va(null==(t=this.params)?void 0:t.config));const n=this.eFloatingFilterTextInput.getGui();e.appendChild(n),this.addManagedListener(n,"input",(e=>this.valueChangedListener(e))),this.addManagedListener(n,"keydown",(e=>this.valueChangedListener(e)))}setEditable(e){this.eFloatingFilterTextInput.setDisabled(!e)}setAutoComplete(e){this.eFloatingFilterTextInput.setAutoComplete(e)}getValue(){return this.eFloatingFilterTextInput.getValue()}setValue(e,t){this.eFloatingFilterTextInput.setValue(e,t)}setValueChangedListener(e){this.valueChangedListener=e}setParams(e){this.setAriaLabel(e.ariaLabel),void 0!==e.autoComplete&&this.setAutoComplete(e.autoComplete)}setAriaLabel(e){this.eFloatingFilterTextInput.setInputAriaLabel(e)}},Ra=class extends ha{postConstruct(){this.setTemplate('\n <div class="ag-floating-filter-input" role="presentation" ref="eFloatingFilterInputContainer"></div>\n ')}getDefaultDebounceMs(){return 500}onParentModelChanged(e,t){this.isEventFromFloatingFilter(t)||this.isEventFromDataChange(t)||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(e)))}init(e){this.setupFloatingFilterInputService(e),super.init(e),this.setTextInputParams(e)}setupFloatingFilterInputService(e){this.floatingFilterInputService=this.createFloatingFilterInputService(e),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(e){var t;this.params=e;const n=null!=(t=e.browserAutoComplete)&&t;if(this.floatingFilterInputService.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:n}),this.applyActive=$r.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){const e=$r.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),t=vt(this.syncUpWithParentFilter.bind(this),e);this.floatingFilterInputService.setValueChangedListener(t)}}onParamsUpdated(e){this.refresh(e)}refresh(e){super.refresh(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){const t=this.floatingFilterInputService.getValue();ko(this.eFloatingFilterInputContainer),this.destroyBean(this.floatingFilterInputService),this.setupFloatingFilterInputService(e),this.floatingFilterInputService.setValue(t,!0)}syncUpWithParentFilter(e){const t=e.key===pr.ENTER;if(this.applyActive&&!t)return;let n=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(n=Da.trimInput(n),this.floatingFilterInputService.setValue(n,!0)),this.params.parentFilterInstance((e=>{e&&e.onFloatingFilterChanged(this.getLastType()||null,n||null)}))}setEditable(e){this.floatingFilterInputService.setEditable(e)}};_e([Or("eFloatingFilterInputContainer")],Ra.prototype,"eFloatingFilterInputContainer",2),_e([Tt],Ra.prototype,"postConstruct",1);var Aa=class extends En{constructor(){super(...arguments),this.valueChangedListener=()=>{},this.numberInputActive=!0}setupGui(e){this.eFloatingFilterNumberInput=this.createManagedBean(new fa),this.eFloatingFilterTextInput=this.createManagedBean(new va),this.eFloatingFilterTextInput.setDisabled(!0);const t=this.eFloatingFilterNumberInput.getGui(),n=this.eFloatingFilterTextInput.getGui();e.appendChild(t),e.appendChild(n),this.setupListeners(t,(e=>this.valueChangedListener(e))),this.setupListeners(n,(e=>this.valueChangedListener(e)))}setEditable(e){this.numberInputActive=e,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(e){this.eFloatingFilterNumberInput.setAutoComplete(e),this.eFloatingFilterTextInput.setAutoComplete(e)}getValue(){return this.getActiveInputElement().getValue()}setValue(e,t){this.getActiveInputElement().setValue(e,t)}getActiveInputElement(){return this.numberInputActive?this.eFloatingFilterNumberInput:this.eFloatingFilterTextInput}setValueChangedListener(e){this.valueChangedListener=e}setupListeners(e,t){this.addManagedListener(e,"input",t),this.addManagedListener(e,"keydown",t)}setParams(e){this.setAriaLabel(e.ariaLabel),void 0!==e.autoComplete&&this.setAutoComplete(e.autoComplete)}setAriaLabel(e){this.eFloatingFilterNumberInput.setInputAriaLabel(e),this.eFloatingFilterTextInput.setInputAriaLabel(e)}},xa=class extends Ra{init(e){var t;super.init(e),this.filterModelFormatter=new Ca(this.localeService,this.optionsFactory,null==(t=e.filterParams)?void 0:t.numberFormatter)}onParamsUpdated(e){this.refresh(e)}refresh(e){wa(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.refresh(e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultFilterOptions(){return ba.DEFAULT_FILTER_OPTIONS}getFilterModelFormatter(){return this.filterModelFormatter}createFloatingFilterInputService(e){return this.allowedCharPattern=wa(e.filterParams),this.allowedCharPattern?this.createManagedBean(new Ta({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new Aa)}},Ma=class extends Ra{init(e){super.init(e),this.filterModelFormatter=new Ea(this.localeService,this.optionsFactory)}onParamsUpdated(e){this.refresh(e)}refresh(e){super.refresh(e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultFilterOptions(){return Da.DEFAULT_FILTER_OPTIONS}getFilterModelFormatter(){return this.filterModelFormatter}createFloatingFilterInputService(){return this.createManagedBean(new Ta)}},Na=class _TouchListener{constructor(e,t=!1){this.destroyFuncs=[],this.touching=!1,this.eventService=new Lt,this.eElement=e,this.preventMouseClick=t;const n=this.onTouchStart.bind(this),i=this.onTouchMove.bind(this),o=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",n,{passive:!0}),this.eElement.addEventListener("touchmove",i,{passive:!0}),this.eElement.addEventListener("touchend",o,{passive:!1}),this.destroyFuncs.push((()=>{this.eElement.removeEventListener("touchstart",n,{passive:!0}),this.eElement.removeEventListener("touchmove",i,{passive:!0}),this.eElement.removeEventListener("touchend",o,{passive:!1})}))}getActiveTouch(e){for(let t=0;t<e.length;t++){if(e[t].identifier===this.touchStart.identifier)return e[t]}return null}addEventListener(e,t){this.eventService.addEventListener(e,t)}removeEventListener(e,t){this.eventService.removeEventListener(e,t)}onTouchStart(e){if(this.touching)return;this.touchStart=e.touches[0],this.touching=!0,this.moved=!1;const t=this.touchStart;window.setTimeout((()=>{const n=this.touchStart===t;if(this.touching&&n&&!this.moved){this.moved=!0;const t={type:_TouchListener.EVENT_LONG_TAP,touchStart:this.touchStart,touchEvent:e};this.eventService.dispatchEvent(t)}}),500)}onTouchMove(e){if(!this.touching)return;const t=this.getActiveTouch(e.touches);if(!t)return;!br(t,this.touchStart,4)&&(this.moved=!0)}onTouchEnd(e){if(this.touching){if(!this.moved){const e={type:_TouchListener.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(e),this.checkForDoubleTap()}this.preventMouseClick&&e.cancelable&&e.preventDefault(),this.touching=!1}}checkForDoubleTap(){const e=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0){if(e-this.lastTapTime>_TouchListener.DOUBLE_TAP_MILLIS){const e={type:_TouchListener.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(e),this.lastTapTime=null}else this.lastTapTime=e}else this.lastTapTime=e}destroy(){this.destroyFuncs.forEach((e=>e()))}};Na.EVENT_TAP="tap",Na.EVENT_DOUBLE_TAP="doubleTap",Na.EVENT_LONG_TAP="longTap",Na.DOUBLE_TAP_MILLIS=500;var Pa=Na,Ia=class _SortIndicatorComp extends _r{constructor(e){super(),e||this.setTemplate(_SortIndicatorComp.TEMPLATE)}attachCustomElements(e,t,n,i,o){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=n,this.eSortMixed=i,this.eSortNone=o}setupSort(e,t=!1){this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),(this.column.isSortable()||this.column.getColDef().showRowGroup)&&(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedPropertyListener("unSortIcon",(()=>this.updateIcons())),this.addManagedListener(this.eventService,An.EVENT_NEW_COLUMNS_LOADED,(()=>this.updateIcons())),this.addManagedListener(this.eventService,An.EVENT_SORT_CHANGED,(()=>this.onSortChanged())),this.addManagedListener(this.eventService,An.EVENT_COLUMN_ROW_GROUP_CHANGED,(()=>this.onSortChanged())),this.onSortChanged())}addInIcon(e,t,n){if(null==t)return;const i=ur(e,this.gos,n);i&&t.appendChild(i)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){const e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){const t="asc"===e;Do(this.eSortAsc,t,{skipAriaHidden:!0})}if(this.eSortDesc){const t="desc"===e;Do(this.eSortDesc,t,{skipAriaHidden:!0})}if(this.eSortNone){const t=!this.column.getColDef().unSortIcon&&!this.gos.get("unSortIcon"),n=null==e;Do(this.eSortNone,!t&&n,{skipAriaHidden:!0})}}setupMultiSortIndicator(){this.addInIcon("sortUnSort",this.eSortMixed,this.column);const e=this.column.getColDef().showRowGroup;this.gos.isColumnsSortingCoupledToGroup()&&e&&(this.addManagedListener(this.eventService,An.EVENT_SORT_CHANGED,(()=>this.updateMultiSortIndicator())),this.addManagedListener(this.eventService,An.EVENT_COLUMN_ROW_GROUP_CHANGED,(()=>this.updateMultiSortIndicator())),this.updateMultiSortIndicator())}updateMultiSortIndicator(){if(this.eSortMixed){const e="mixed"===this.sortController.getDisplaySortForColumn(this.column);Do(this.eSortMixed,e,{skipAriaHidden:!0})}}updateSortOrder(){var e;if(!this.eSortOrder)return;const t=this.sortController.getColumnsWithSortingOrdered(),n=null!=(e=this.sortController.getDisplaySortIndexForColumn(this.column))?e:-1,i=t.some((e=>{var t;return null!=(t=this.sortController.getDisplaySortIndexForColumn(e))&&t})),o=n>=0&&i;Do(this.eSortOrder,o,{skipAriaHidden:!0}),n>=0?this.eSortOrder.textContent=(n+1).toString():ko(this.eSortOrder)}};Ia.TEMPLATE='<span class="ag-sort-indicator-container">\n <span ref="eSortOrder" class="ag-sort-indicator-icon ag-sort-order ag-hidden" aria-hidden="true"></span>\n <span ref="eSortAsc" class="ag-sort-indicator-icon ag-sort-ascending-icon ag-hidden" aria-hidden="true"></span>\n <span ref="eSortDesc" class="ag-sort-indicator-icon ag-sort-descending-icon ag-hidden" aria-hidden="true"></span>\n <span ref="eSortMixed" class="ag-sort-indicator-icon ag-sort-mixed-icon ag-hidden" aria-hidden="true"></span>\n <span ref="eSortNone" class="ag-sort-indicator-icon ag-sort-none-icon ag-hidden" aria-hidden="true"></span>\n </span>',_e([Or("eSortOrder")],Ia.prototype,"eSortOrder",2),_e([Or("eSortAsc")],Ia.prototype,"eSortAsc",2),_e([Or("eSortDesc")],Ia.prototype,"eSortDesc",2),_e([Or("eSortMixed")],Ia.prototype,"eSortMixed",2),_e([Or("eSortNone")],Ia.prototype,"eSortNone",2),_e([xt("columnModel")],Ia.prototype,"columnModel",2),_e([xt("sortController")],Ia.prototype,"sortController",2);var La=Ia,Fa=class _HeaderComp extends _r{constructor(){super(...arguments),this.lastMovingChanged=0}destroy(){super.destroy()}refresh(e){const t=this.params;return this.params=e,this.workOutTemplate()==this.currentTemplate&&this.workOutShowMenu()==this.currentShowMenu&&this.workOutSort()==this.currentSort&&this.shouldSuppressMenuHide()==this.currentSuppressMenuHide&&t.enableFilterButton==e.enableFilterButton&&t.enableFilterIcon==e.enableFilterIcon&&(this.setDisplayName(e),!0)}workOutTemplate(){var e;let t=null!=(e=this.params.template)?e:_HeaderComp.TEMPLATE;return t=t&&t.trim?t.trim():t,t}init(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setupFilterButton(),this.setDisplayName(e)}setDisplayName(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;const t=On(this.currentDisplayName,!0);this.eText&&(this.eText.textContent=t)}}addInIcon(e,t,n){if(null==t)return;const i=ur(e,this.gos,n);i&&t.appendChild(i)}setupTap(){const{gos:e}=this;if(e.get("suppressTouch"))return;const t=new Pa(this.getGui(),!0),n=this.shouldSuppressMenuHide(),i=n&&ze(this.eMenu),o=i?new Pa(this.eMenu,!0):t;if(this.params.enableMenu){const e=i?"EVENT_TAP":"EVENT_LONG_TAP",t=e=>this.params.showColumnMenuAfterMouseClick(e.touchStart);this.addManagedListener(o,Pa[e],t)}if(this.params.enableSorting){const e=e=>{var t,i;const o=e.touchStart.target;n&&((null==(t=this.eMenu)?void 0:t.contains(o))||(null==(i=this.eFilterButton)?void 0:i.contains(o)))||this.sortController.progressSort(this.params.column,!1,"uiColumnSorted")};this.addManagedListener(t,Pa.EVENT_TAP,e)}if(this.params.enableFilterButton){const e=new Pa(this.eFilterButton,!0);this.addManagedListener(e,"tap",(()=>this.params.showFilter(this.eFilterButton))),this.addDestroyFunc((()=>e.destroy()))}this.addDestroyFunc((()=>t.destroy())),i&&this.addDestroyFunc((()=>o.destroy()))}workOutShowMenu(){return this.params.enableMenu&&this.menuService.isHeaderMenuButtonEnabled()}shouldSuppressMenuHide(){return this.menuService.isHeaderMenuButtonAlwaysShowEnabled()}setMenu(){if(!this.eMenu)return;if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu)return Go(this.eMenu),void(this.eMenu=void 0);const e=this.menuService.isLegacyMenuEnabled();this.addInIcon(e?"menu":"menuAlt",this.eMenu,this.params.column),this.eMenu.classList.toggle("ag-header-menu-icon",!e),this.currentSuppressMenuHide=this.shouldSuppressMenuHide(),this.addManagedListener(this.eMenu,"click",(()=>this.params.showColumnMenu(this.eMenu))),this.eMenu.classList.toggle("ag-header-menu-always-show",this.currentSuppressMenuHide)}onMenuKeyboardShortcut(e){var t,n,i,o;const{column:r}=this.params,a=this.menuService.isLegacyMenuEnabled();if(e&&!a){if(this.menuService.isFilterMenuInHeaderEnabled(r))return this.params.showFilter(null!=(n=null!=(t=this.eFilterButton)?t:this.eMenu)?n:this.getGui()),!0}else if(this.params.enableMenu)return this.params.showColumnMenu(null!=(o=null!=(i=this.eMenu)?i:this.eFilterButton)?o:this.getGui()),!0;return!1}workOutSort(){return this.params.enableSorting}setupSort(){if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new La(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),!this.currentSort)return;this.addManagedListener(this.params.column,zt.EVENT_MOVING_CHANGED,(()=>{this.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(e=>{const t=this.params.column.isMoving(),n=(new Date).getTime()-this.lastMovingChanged<50;if(!(t||n)){const t="ctrl"===this.gos.get("multiSortKey")?e.ctrlKey||e.metaKey:e.shiftKey;this.params.progressSort(t)}}));const e=()=>{if(this.addOrRemoveCssClass("ag-header-cell-sorted-asc",this.params.column.isSortAscending()),this.addOrRemoveCssClass("ag-header-cell-sorted-desc",this.params.column.isSortDescending()),this.addOrRemoveCssClass("ag-header-cell-sorted-none",this.params.column.isSortNone()),this.params.column.getColDef().showRowGroup){const e=this.columnModel.getSourceColumnsForGroupColumn(this.params.column),t=!(null==e?void 0:e.every((e=>this.params.column.getSort()==e.getSort())));this.addOrRemoveCssClass("ag-header-cell-sorted-mixed",t)}};this.addManagedListener(this.eventService,An.EVENT_SORT_CHANGED,e),this.addManagedListener(this.eventService,An.EVENT_COLUMN_ROW_GROUP_CHANGED,e)}setupFilterIcon(){this.eFilter&&this.configureFilter(this.params.enableFilterIcon,this.eFilter,this.onFilterChangedIcon.bind(this))}setupFilterButton(){if(!this.eFilterButton)return;this.configureFilter(this.params.enableFilterButton,this.eFilterButton,this.onFilterChangedButton.bind(this))?this.addManagedListener(this.eFilterButton,"click",(()=>this.params.showFilter(this.eFilterButton))):this.eFilterButton=void 0}configureFilter(e,t,n){if(!e)return Go(t),!1;const{column:i}=this.params;return this.addInIcon("filter",t,i),this.addManagedListener(i,zt.EVENT_FILTER_CHANGED,n),n(),!0}onFilterChangedIcon(){const e=this.params.column.isFilterActive();Do(this.eFilter,e,{skipAriaHidden:!0})}onFilterChangedButton(){const e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)}getAnchorElementForMenu(e){var t,n,i,o;return e?null!=(n=null!=(t=this.eFilterButton)?t:this.eMenu)?n:this.getGui():null!=(o=null!=(i=this.eMenu)?i:this.eFilterButton)?o:this.getGui()}};Fa.TEMPLATE='<div class="ag-cell-label-container" role="presentation">\n <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>\n <span ref="eFilterButton" class="ag-header-icon ag-header-cell-filter-button" aria-hidden="true"></span>\n <div ref="eLabel" class="ag-header-cell-label" role="presentation">\n <span ref="eText" class="ag-header-cell-text"></span>\n <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>\n <ag-sort-indicator ref="eSortIndicator"></ag-sort-indicator>\n </div>\n </div>',_e([xt("sortController")],Fa.prototype,"sortController",2),_e([xt("menuService")],Fa.prototype,"menuService",2),_e([xt("columnModel")],Fa.prototype,"columnModel",2),_e([Or("eFilter")],Fa.prototype,"eFilter",2),_e([Or("eFilterButton")],Fa.prototype,"eFilterButton",2),_e([Or("eSortIndicator")],Fa.prototype,"eSortIndicator",2),_e([Or("eMenu")],Fa.prototype,"eMenu",2),_e([Or("eLabel")],Fa.prototype,"eLabel",2),_e([Or("eText")],Fa.prototype,"eText",2),_e([Or("eSortOrder")],Fa.prototype,"eSortOrder",2),_e([Or("eSortAsc")],Fa.prototype,"eSortAsc",2),_e([Or("eSortDesc")],Fa.prototype,"eSortDesc",2),_e([Or("eSortMixed")],Fa.prototype,"eSortMixed",2),_e([Or("eSortNone")],Fa.prototype,"eSortNone",2);var _a=Fa,Oa=class _HeaderGroupComp extends _r{constructor(){super(_HeaderGroupComp.TEMPLATE)}destroy(){super.destroy()}init(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()}checkWarnings(){this.params.template&&st("A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")}setupExpandIcons(){this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");const e=e=>{if(pn(e))return;const t=!this.params.columnGroup.isExpanded();this.columnModel.setColumnGroupOpened(this.params.columnGroup.getProvidedColumnGroup(),t,"uiColumnExpanded")};this.addTouchAndClickListeners(this.eCloseIcon,e),this.addTouchAndClickListeners(this.eOpenIcon,e);const t=e=>{hn(e)};this.addManagedListener(this.eCloseIcon,"dblclick",t),this.addManagedListener(this.eOpenIcon,"dblclick",t),this.addManagedListener(this.getGui(),"dblclick",e),this.updateIconVisibility();const n=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(n,Ht.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(n,Ht.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))}addTouchAndClickListeners(e,t){const n=new Pa(e,!0);this.addManagedListener(n,Pa.EVENT_TAP,t),this.addDestroyFunc((()=>n.destroy())),this.addManagedListener(e,"click",t)}updateIconVisibility(){if(this.params.columnGroup.isExpandable()){const e=this.params.columnGroup.isExpanded();Do(this.eOpenIcon,e),Do(this.eCloseIcon,!e)}else Do(this.eOpenIcon,!1),Do(this.eCloseIcon,!1)}addInIcon(e,t){const n=ur(e,this.gos,null);n&&this.getRefElement(t).appendChild(n)}addGroupExpandIcon(){if(!this.params.columnGroup.isExpandable())return Do(this.eOpenIcon,!1),void Do(this.eCloseIcon,!1)}setupLabel(){var e;const{displayName:t,columnGroup:n}=this.params;if(ze(t)){const e=On(t,!0);this.getRefElement("agLabel").textContent=e}this.addOrRemoveCssClass("ag-sticky-label",!(null==(e=n.getColGroupDef())?void 0:e.suppressStickyLabel))}};Oa.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">\n <span ref="agLabel" class="ag-header-group-text" role="presentation"></span>\n <span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>\n <span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>\n </div>',_e([xt("columnModel")],Oa.prototype,"columnModel",2),_e([Or("agOpened")],Oa.prototype,"eOpenIcon",2),_e([Or("agClosed")],Oa.prototype,"eCloseIcon",2);var ka=Oa,Ga=class extends _r{isPopup(){return!0}setParentComponent(e){e.addCssClass("ag-has-popup"),super.setParentComponent(e)}destroy(){const e=this.parentComponent;e&&e.isAlive()&&e.getGui().classList.remove("ag-has-popup"),super.destroy()}},za=class _LargeTextCellEditor extends Ga{constructor(){super(_LargeTextCellEditor.TEMPLATE)}init(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),ze(e.value,!0)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}onKeyDown(e){const t=e.key;(t===pr.LEFT||t===pr.UP||t===pr.RIGHT||t===pr.DOWN||e.shiftKey&&t===pr.ENTER)&&e.stopPropagation()}afterGuiAttached(){const e=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()}getValue(){const e=this.eTextArea.getValue();return ze(e)||ze(this.params.value)?this.params.parseValue(e):this.params.value}};za.TEMPLATE='<div class="ag-large-text">\n <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>\n </div>',_e([Or("eTextArea")],za.prototype,"eTextArea",2);var Va=za,Ha=class extends Ga{constructor(){super('<div class="ag-cell-edit-wrapper">\n <ag-select class="ag-cell-editor" ref="eSelect"></ag-select>\n </div>'),this.startedByEnter=!1}init(e){this.focusAfterAttached=e.cellStartedEdit;const{eSelect:t,valueService:n,gos:i}=this,{values:o,value:r,eventKey:a}=e;if(Ve(o))return void console.warn("AG Grid: no values found for select cellEditor");this.startedByEnter=null!=a&&a===pr.ENTER;let s=!1;o.forEach((i=>{const o={value:i},a=n.formatValue(e.column,null,i),l=null!=a;o.text=l?a:i,t.addOption(o),s=s||r===i})),s?t.setValue(e.value,!0):e.values.length&&t.setValue(e.values[0],!0);const{valueListGap:l,valueListMaxWidth:d,valueListMaxHeight:c}=e;null!=l&&t.setPickerGap(l),null!=c&&t.setPickerMaxHeight(c),null!=d&&t.setPickerMaxWidth(d),"fullRow"!==i.get("editType")&&this.addManagedListener(this.eSelect,ta.EVENT_ITEM_SELECTED,(()=>e.stopEditing()))}afterGuiAttached(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout((()=>{this.isAlive()&&this.eSelect.showPicker()}))}focusIn(){this.eSelect.getFocusableElement().focus()}getValue(){return this.eSelect.getValue()}isPopup(){return!1}};_e([xt("valueService")],Ha.prototype,"valueService",2),_e([Or("eSelect")],Ha.prototype,"eSelect",2);var Ba=class extends Ga{constructor(e){super(`\n <div class="ag-cell-edit-wrapper">\n ${e.getTemplate()}\n </div>`),this.cellEditorInput=e}init(e){this.params=e;const t=this.eInput;let n;if(this.cellEditorInput.init(t,e),e.cellStartedEdit){this.focusAfterAttached=!0;const t=e.eventKey;t===pr.BACKSPACE||e.eventKey===pr.DELETE?n="":t&&1===t.length?n=t:(n=this.cellEditorInput.getStartValue(),t!==pr.F2&&(this.highlightAllOnFocus=!0))}else this.focusAfterAttached=!1,n=this.cellEditorInput.getStartValue();null!=n&&t.setStartValue(n),this.addManagedListener(t.getGui(),"keydown",(e=>{const{key:t}=e;t!==pr.PAGE_UP&&t!==pr.PAGE_DOWN||e.preventDefault()}))}afterGuiAttached(){var e,t;const n=this.localeService.getLocaleTextFunc(),i=this.eInput;if(i.setInputAriaLabel(n("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;Ui()||i.getFocusableElement().focus();const o=i.getInputElement();this.highlightAllOnFocus?o.select():null==(t=(e=this.cellEditorInput).setCaret)||t.call(e)}focusIn(){const e=this.eInput,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}};_e([Or("eInput")],Ba.prototype,"eInput",2);var Wa=class extends Ba{constructor(){super(new class{getTemplate(){return'<ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field>'}init(e,t){this.eInput=e,this.params=t,null!=t.maxLength&&e.setMaxLength(t.maxLength)}getValue(){const e=this.eInput.getValue();return ze(e)||ze(this.params.value)?this.params.parseValue(e):this.params.value}getStartValue(){return this.params.useFormatter||this.params.column.getColDef().refData?this.params.formatValue(this.params.value):this.params.value}setCaret(){const e=this.eInput.getValue(),t=ze(e)&&e.length||0;t&&this.eInput.getInputElement().setSelectionRange(t,t)}})}},Ua=class extends _r{constructor(){super(),this.refreshCount=0;const e=document.createElement("span"),t=document.createElement("span");t.setAttribute("class","ag-value-change-delta");const n=document.createElement("span");n.setAttribute("class","ag-value-change-value"),e.appendChild(t),e.appendChild(n),this.setTemplateFromElement(e)}init(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e,!0)}showDelta(e,t){const n=Math.abs(t),i=e.formatValue(n),o=ze(i)?i:n,r=t>=0;this.eDelta.textContent=r?"↑"+o:"↓"+o,this.eDelta.classList.toggle("ag-value-change-delta-up",r),this.eDelta.classList.toggle("ag-value-change-delta-down",!r)}setTimerToRemoveDelta(){this.refreshCount++;const e=this.refreshCount;this.getFrameworkOverrides().wrapIncoming((()=>{window.setTimeout((()=>{e===this.refreshCount&&this.hideDeltaValue()}),2e3)}))}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),ko(this.eDelta)}refresh(e,t=!1){const n=e.value;if(n===this.lastValue)return!1;if(ze(e.valueFormatted)?this.eValue.textContent=e.valueFormatted:ze(e.value)?this.eValue.textContent=n:ko(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"==typeof n&&"number"==typeof this.lastValue){const t=n-this.lastValue;this.showDelta(e,t)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),t||this.setTimerToRemoveDelta(),this.lastValue=n,!0}};_e([xt("filterManager")],Ua.prototype,"filterManager",2);var ja=class extends _r{constructor(){super(),this.refreshCount=0;const e=document.createElement("span"),t=document.createElement("span");t.setAttribute("class","ag-value-slide-current"),e.appendChild(t),this.setTemplateFromElement(e),this.eCurrent=this.queryForHtmlElement(".ag-value-slide-current")}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;const e=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious);const t=document.createElement("span");t.setAttribute("class","ag-value-slide-previous ag-value-slide-out"),this.ePrevious=t,this.ePrevious.textContent=this.eCurrent.textContent,this.getGui().insertBefore(this.ePrevious,this.eCurrent),this.getFrameworkOverrides().wrapIncoming((()=>{window.setTimeout((()=>{e===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")}),50),window.setTimeout((()=>{e===this.refreshCount&&(this.getGui().removeChild(this.ePrevious),this.ePrevious=null)}),3e3)}))}refresh(e,t=!1){let n=e.value;return Ve(n)&&(n=""),n!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(t||this.addSlideAnimation(),this.lastValue=n,ze(e.valueFormatted)?this.eCurrent.textContent=e.valueFormatted:ze(e.value)?this.eCurrent.textContent=n:ko(this.eCurrent),!0))}};_e([xt("filterManager")],ja.prototype,"filterManager",2);var Ka=class _RowNode{constructor(e){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=_RowNode.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.selected=!1,this.beans=e}setData(e){this.setDataCommon(e,!1)}updateData(e){this.setDataCommon(e,!0)}setDataCommon(e,t){const n=this.data;this.data=e,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable(),this.resetQuickFilterAggregateText();const i=this.createDataChangedEvent(e,n,t);this.dispatchLocalEvent(i)}updateDataOnDetailNode(){this.detailNode&&(this.detailNode.data=this.data)}createDataChangedEvent(e,t,n){return{type:_RowNode.EVENT_DATA_CHANGED,node:this,oldData:t,newData:e,update:n}}createLocalRowEvent(e){return{type:e,node:this}}getRowIndexString(){return"top"===this.rowPinned?"t-"+this.rowIndex:"bottom"===this.rowPinned?"b-"+this.rowIndex:this.rowIndex.toString()}createDaemonNode(){const e=new _RowNode(this.beans);return e.id=this.id,e.data=this.data,e.__daemon=!0,e.selected=this.selected,e.level=this.level,e}setDataAndId(e,t){const n=ze(this.id)?this.createDaemonNode():null,i=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.checkRowSelectable(),this.beans.selectionService.syncInRowNode(this,n);const o=this.createDataChangedEvent(e,i,!1);this.dispatchLocalEvent(o)}checkRowSelectable(){const e=this.beans.gos.get("isRowSelectable");this.setRowSelectable(!e||e(this))}setRowSelectable(e,t){if(this.selectable!==e){if(this.selectable=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(_RowNode.EVENT_SELECTABLE_CHANGED)),t)return;if(this.beans.gos.get("groupSelectsChildren")){const e=this.calculateSelectedFromChildren();return void this.setSelectedParams({newValue:null!=e&&e,source:"selectableChanged"})}this.isSelected()&&!this.selectable&&this.setSelectedParams({newValue:!1,source:"selectableChanged"})}}setId(e){const t=this.beans.gos.getCallback("getRowId");if(t)if(this.data){const e=this.getGroupKeys(!0);this.id=t({data:this.data,parentKeys:e.length>0?e:void 0,level:this.level}),null!==this.id&&"string"==typeof this.id&&this.id.startsWith(_RowNode.ID_PREFIX_ROW_GROUP)&&console.error(`AG Grid: Row IDs cannot start with ${_RowNode.ID_PREFIX_ROW_GROUP}, this is a reserved prefix for AG Grid's row grouping feature.`),null!==this.id&&"string"!=typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=e}getGroupKeys(e=!1){const t=[];let n=this;for(e&&(n=n.parent);n&&n.level>=0;)t.push(n.key),n=n.parent;return t.reverse(),t}isPixelInRange(e){return!(!ze(this.rowTop)||!ze(this.rowHeight))&&(e>=this.rowTop&&e<this.rowTop+this.rowHeight)}setFirstChild(e){this.firstChild!==e&&(this.firstChild=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(_RowNode.EVENT_FIRST_CHILD_CHANGED)))}setLastChild(e){this.lastChild!==e&&(this.lastChild=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(_RowNode.EVENT_LAST_CHILD_CHANGED)))}setChildIndex(e){this.childIndex!==e&&(this.childIndex=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(_RowNode.EVENT_CHILD_INDEX_CHANGED)))}setRowTop(e){this.oldRowTop=this.rowTop,this.rowTop!==e&&(this.rowTop=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(_RowNode.EVENT_TOP_CHANGED)),this.setDisplayed(null!==e))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setDisplayed(e){this.displayed!==e&&(this.displayed=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(_RowNode.EVENT_DISPLAYED_CHANGED)))}setDragging(e){this.dragging!==e&&(this.dragging=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(_RowNode.EVENT_DRAGGING_CHANGED)))}setHighlighted(e){e!==this.highlighted&&(this.highlighted=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(_RowNode.EVENT_HIGHLIGHT_CHANGED)))}setHovered(e){this.hovered!==e&&(this.hovered=e)}isHovered(){return this.hovered}setAllChildrenCount(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(_RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED)))}setMaster(e){this.master!==e&&(this.master&&!e&&(this.expanded=!1),this.master=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(_RowNode.EVENT_MASTER_CHANGED)))}setGroup(e){this.group!==e&&(this.group&&!e&&(this.expanded=!1),this.group=e,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(_RowNode.EVENT_GROUP_CHANGED)))}setRowHeight(e,t=!1){this.rowHeight=e,this.rowHeightEstimated=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(_RowNode.EVENT_HEIGHT_CHANGED))}setRowAutoHeight(e,t){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[t.getId()]=e,null!=e&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=vt(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())}checkAutoHeights(){let e=!1,t=!0,n=0;const i=this.__autoHeights;if(null==i)return;if(this.beans.columnModel.getAllDisplayedAutoHeightCols().forEach((o=>{let r=i[o.getId()];if(null==r){if(!this.beans.columnModel.isColSpanActive())return void(e=!0);{let t=[];switch(o.getPinned()){case"left":t=this.beans.columnModel.getDisplayedLeftColumnsForRow(this);break;case"right":t=this.beans.columnModel.getDisplayedRightColumnsForRow(this);break;case null:t=this.beans.columnModel.getViewportCenterColumnsForRow(this)}if(t.includes(o))return void(e=!0);r=-1}}else t=!1;r>n&&(n=r)})),e)return;if((t||n<10)&&(n=this.beans.gos.getRowHeightForNode(this).height),n==this.rowHeight)return;this.setRowHeight(n);const o=this.beans.rowModel;o.onRowHeightChangedDebounced&&o.onRowHeightChangedDebounced()}setRowIndex(e){this.rowIndex!==e&&(this.rowIndex=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(_RowNode.EVENT_ROW_INDEX_CHANGED)))}setUiLevel(e){this.uiLevel!==e&&(this.uiLevel=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(_RowNode.EVENT_UI_LEVEL_CHANGED)))}setExpanded(e,t,n){if(this.expanded===e)return;this.expanded=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(_RowNode.EVENT_EXPANDED_CHANGED));const i=Object.assign({},this.createGlobalRowEvent(An.EVENT_ROW_GROUP_OPENED),{expanded:e,event:t||null});this.beans.rowNodeEventThrottle.dispatchExpanded(i,n),this.beans.rowRenderer.refreshCells({rowNodes:[this]})}createGlobalRowEvent(e){return this.beans.gos.addGridCommonParams({type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned})}dispatchLocalEvent(e){this.eventService&&this.eventService.dispatchEvent(e)}setDataValue(e,t,n){const i=(()=>{var t;return"string"!=typeof e?e:null!=(t=this.beans.columnModel.getGridColumn(e))?t:this.beans.columnModel.getPrimaryColumn(e)})(),o=this.getValueFromValueService(i);if(this.beans.gos.get("readOnlyEdit"))return this.dispatchEventForSaveValueReadOnly(i,o,t,n),!1;const r=this.beans.valueService.setValue(this,i,t,n);return this.dispatchCellChangedEvent(i,t,o),this.checkRowSelectable(),r}getValueFromValueService(e){var t,n;const i=this.leafGroup&&this.beans.columnModel.isPivotMode(),o=this.group&&this.expanded&&!this.footer&&!i;let r=!1;const a=null!=(t=this.beans.gos.get("groupTotalRow"))?t:this.beans.gos.get("groupIncludeFooter");if("function"!=typeof a)r=!!a;else{r=!!(null!=(n=this.beans.gos.getCallback("groupTotalRow"))?n:this.beans.gos.getCallback("groupIncludeFooter"))({node:this})}const s=this.beans.gos.get("groupSuppressBlankHeader"),l=o&&r&&!s;return this.beans.valueService.getValue(e,this,!1,l)}dispatchEventForSaveValueReadOnly(e,t,n,i){const o=this.beans.gos.addGridCommonParams({type:An.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:e,colDef:e.getColDef(),data:this.data,node:this,oldValue:t,newValue:n,value:n,source:i});this.beans.eventService.dispatchEvent(o)}setGroupValue(e,t){const n=this.beans.columnModel.getGridColumn(e);Ve(this.groupData)&&(this.groupData={});const i=n.getColId(),o=this.groupData[i];o!==t&&(this.groupData[i]=t,this.dispatchCellChangedEvent(n,t,o))}setAggData(e){const t=this.aggData;if(this.aggData=e,this.eventService){const n=e=>{const n=this.aggData?this.aggData[e]:void 0,i=t?t[e]:void 0;if(n===i)return;const o=this.beans.columnModel.lookupGridColumn(e);o&&this.dispatchCellChangedEvent(o,n,i)};for(const e in this.aggData)n(e);for(const t in e)t in this.aggData||n(t)}}updateHasChildren(){let e=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;if(this.beans.gos.isRowModelType("serverSide")){const t=this.beans.gos.get("treeData"),n=this.beans.gos.get("isServerSideGroup");e=!this.stub&&!this.footer&&(t?!!n&&n(this.data):!!this.group)}e!==this.__hasChildren&&(this.__hasChildren=!!e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(_RowNode.EVENT_HAS_CHILDREN_CHANGED)))}hasChildren(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren}isEmptyRowGroupNode(){return this.group&&He(this.childrenAfterGroup)}dispatchCellChangedEvent(e,t,n){const i={type:_RowNode.EVENT_CELL_CHANGED,node:this,column:e,newValue:t,oldValue:n};this.dispatchLocalEvent(i)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return!this.footer&&(this.beans.columnModel.isPivotMode()?this.hasChildren()&&!this.leafGroup:this.hasChildren()||!!this.master)}isSelected(){return this.footer?this.sibling.isSelected():this.selected}depthFirstSearch(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((t=>t.depthFirstSearch(e))),e(this)}calculateSelectedFromChildren(){var e;let t=!1,n=!1,i=!1;if(!(null==(e=this.childrenAfterGroup)?void 0:e.length))return this.selectable?this.selected:null;for(let e=0;e<this.childrenAfterGroup.length;e++){const o=this.childrenAfterGroup[e];let r=o.isSelected();if(!o.selectable){const e=o.calculateSelectedFromChildren();if(null===e)continue;r=e}switch(r){case!0:t=!0;break;case!1:n=!0;break;default:i=!0}}return i||t&&n?void 0:!!t||!n&&(this.selectable?this.selected:null)}setSelectedInitialValue(e){this.selected=e}selectThisNode(e,t,n="api"){const i=!this.selectable&&e,o=this.selected===e;if(i||o)return!1;this.selected=e,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(_RowNode.EVENT_ROW_SELECTED));const r=this.sibling;r&&r.footer&&r.eventService&&r.dispatchLocalEvent(r.createLocalRowEvent(_RowNode.EVENT_ROW_SELECTED));const a=Le(Ie({},this.createGlobalRowEvent(An.EVENT_ROW_SELECTED)),{event:t||null,source:n});return this.beans.eventService.dispatchEvent(a),!0}setSelected(e,t=!1,n="api"){"boolean"!=typeof n?this.setSelectedParams({newValue:e,clearSelection:t,rangeSelect:!1,source:n}):console.warn("AG Grid: since version v30, rowNode.setSelected() property `suppressFinishActions` has been removed, please use `gridApi.setNodesSelected()` for bulk actions, and the event `source` property for ignoring events instead.")}setSelectedParams(e){return this.rowPinned?(console.warn("AG Grid: cannot select pinned rows"),0):void 0===this.id?(console.warn("AG Grid: cannot select node until id for node is known"),0):this.beans.selectionService.setNodesSelected(Le(Ie({},e),{nodes:[this.footer?this.sibling:this]}))}isRowPinned(){return"top"===this.rowPinned||"bottom"===this.rowPinned}isParentOfNode(e){let t=this.parent;for(;t;){if(t===e)return!0;t=t.parent}return!1}addEventListener(e,t){var n,i;this.eventService||(this.eventService=new Lt),this.beans.frameworkOverrides.shouldWrapOutgoing&&!this.frameworkEventListenerService&&(this.eventService.setFrameworkOverrides(this.beans.frameworkOverrides),this.frameworkEventListenerService=new Ft(this.beans.frameworkOverrides));const o=null!=(i=null==(n=this.frameworkEventListenerService)?void 0:n.wrap(t))?i:t;this.eventService.addEventListener(e,o)}removeEventListener(e,t){var n,i;if(!this.eventService)return;const o=null!=(i=null==(n=this.frameworkEventListenerService)?void 0:n.unwrap(t))?i:t;this.eventService.removeEventListener(e,o),this.eventService.noRegisteredListenersExist()&&(this.eventService=null)}onMouseEnter(){this.dispatchLocalEvent(this.createLocalRowEvent(_RowNode.EVENT_MOUSE_ENTER))}onMouseLeave(){this.dispatchLocalEvent(this.createLocalRowEvent(_RowNode.EVENT_MOUSE_LEAVE))}getFirstChildOfFirstChild(e){let t=this,n=!0,i=!1,o=null;for(;n&&!i;){const r=t.parent;ze(r)&&t.firstChild?r.rowGroupColumn===e&&(i=!0,o=r):n=!1,t=r}return i?o:null}isFullWidthCell(){if(this.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return!!e&&e({rowNode:this})}getRoute(){if(null==this.key)return;const e=[];let t=this;for(;null!=t.key;)e.push(t.key),t=t.parent;return e.reverse()}createFooter(){if(this.sibling)return;const e=new Set(["eventService","__objectId","sticky"]),t=new _RowNode(this.beans);Object.keys(this).forEach((n=>{e.has(n)||(t[n]=this[n])})),t.footer=!0,t.setRowTop(null),t.setRowIndex(null),t.oldRowTop=null,t.id="rowGroupFooter_"+this.id,t.sibling=this,this.sibling=t}destroyFooter(){this.sibling&&(this.sibling.setRowTop(null),this.sibling.setRowIndex(null),this.sibling=void 0)}};Ka.ID_PREFIX_ROW_GROUP="row-group-",Ka.ID_PREFIX_TOP_PINNED="t-",Ka.ID_PREFIX_BOTTOM_PINNED="b-",Ka.OBJECT_ID_SEQUENCE=0,Ka.EVENT_ROW_SELECTED="rowSelected",Ka.EVENT_DATA_CHANGED="dataChanged",Ka.EVENT_CELL_CHANGED="cellChanged",Ka.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",Ka.EVENT_MASTER_CHANGED="masterChanged",Ka.EVENT_GROUP_CHANGED="groupChanged",Ka.EVENT_MOUSE_ENTER="mouseEnter",Ka.EVENT_MOUSE_LEAVE="mouseLeave",Ka.EVENT_HEIGHT_CHANGED="heightChanged",Ka.EVENT_TOP_CHANGED="topChanged",Ka.EVENT_DISPLAYED_CHANGED="displayedChanged",Ka.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",Ka.EVENT_LAST_CHILD_CHANGED="lastChildChanged",Ka.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",Ka.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",Ka.EVENT_EXPANDED_CHANGED="expandedChanged",Ka.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",Ka.EVENT_SELECTABLE_CHANGED="selectableChanged",Ka.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",Ka.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",Ka.EVENT_DRAGGING_CHANGED="draggingChanged";var Ya=Ka,$a=class extends _r{constructor(){super('\n <div class="ag-selection-checkbox" role="presentation">\n <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n </div>')}postConstruct(){this.eCheckbox.setPassive(!0)}getCheckboxId(){return this.eCheckbox.getInputElement().id}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){const e=this.localeService.getLocaleTextFunc(),t=this.rowNode.isSelected(),n=Fi(e,t),[i,o]=this.rowNode.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],r=e(i,o);this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel(`${r} (${n})`)}onClicked(e,t,n){return this.rowNode.setSelectedParams({newValue:e,rangeSelect:n.shiftKey,groupSelectsFiltered:t,event:n,source:"checkboxSelected"})}init(e){this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",(e=>{hn(e)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(e=>{hn(e);const t=this.gos.get("groupSelectsFiltered"),n=this.eCheckbox.getValue();if(this.shouldHandleIndeterminateState(n,t)){0===this.onClicked(!0,t,e||{})&&this.onClicked(!1,t,e)}else n?this.onClicked(!1,t,e):this.onClicked(!0,t,e||{})})),this.addManagedListener(this.rowNode,Ya.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,Ya.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,Ya.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this));if(this.gos.get("isRowSelectable")||"function"==typeof this.getIsVisible()){const e=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.rowNode,Ya.EVENT_DATA_CHANGED,e),this.addManagedListener(this.rowNode,Ya.EVENT_CELL_CHANGED,e),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}shouldHandleIndeterminateState(e,t){return t&&(void 0===this.eCheckbox.getPreviousValue()||void 0===e)&&this.gos.isRowModelType("clientSide")}showOrHideSelect(){var e,t,n;let i=this.rowNode.selectable;const o=this.getIsVisible();if(i)if("function"==typeof o){const t=null==(e=this.overrides)?void 0:e.callbackParams;if(this.column){const e=this.column.createColumnFunctionCallbackParams(this.rowNode);i=o(Ie(Ie({},t),e))}else i=o(Le(Ie({},t),{node:this.rowNode,data:this.rowNode.data}))}else i=null!=o&&o;if(null==(t=this.column)?void 0:t.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!i),this.setVisible(!0),void this.setDisplayed(!0);(null==(n=this.overrides)?void 0:n.removeHidden)?this.setDisplayed(i):this.setVisible(i)}getIsVisible(){var e,t;return this.overrides?this.overrides.isVisible:null==(t=null==(e=this.column)?void 0:e.getColDef())?void 0:t.checkboxSelection}};_e([Or("eCheckbox")],$a.prototype,"eCheckbox",2),_e([Tt],$a.prototype,"postConstruct",1);var Qa=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(Qa||{}),qa=class extends En{constructor(){super(...arguments),this.dragSourceAndParamsList=[],this.dropTargets=[]}init(){this.ePinnedIcon=gr("columnMovePin",this.gos,null),this.eHideIcon=gr("columnMoveHide",this.gos,null),this.eMoveIcon=gr("columnMoveMove",this.gos,null),this.eLeftIcon=gr("columnMoveLeft",this.gos,null),this.eRightIcon=gr("columnMoveRight",this.gos,null),this.eGroupIcon=gr("columnMoveGroup",this.gos,null),this.eAggregateIcon=gr("columnMoveValue",this.gos,null),this.ePivotIcon=gr("columnMovePivot",this.gos,null),this.eDropNotAllowedIcon=gr("dropNotAllowed",this.gos,null)}addDragSource(e,t=!1){const n={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),includeTouch:t};this.dragSourceAndParamsList.push({params:n,dragSource:e}),this.dragService.addDragSource(n)}removeDragSource(e){const t=this.dragSourceAndParamsList.find((t=>t.dragSource===e));t&&(this.dragService.removeDragSource(t.params),Zt(this.dragSourceAndParamsList,t))}clearDragSourceParamsList(){this.dragSourceAndParamsList.forEach((e=>this.dragService.removeDragSource(e.params))),this.dragSourceAndParamsList.length=0,this.dropTargets.length=0}nudge(){this.dragging&&this.onDragging(this.eventLastTime,!0)}onDragStart(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=void 0,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()}onDragStop(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){const t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()}onDragging(e,t){var n,i,o,r;const a=this.getHorizontalDirection(e),s=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);const l=this.dropTargets.filter((t=>this.isMouseOnDropTarget(e,t))),d=this.findCurrentDropTarget(e,l);if(d!==this.lastDropTarget)this.leaveLastTargetIfExists(e,a,s,t),null!==this.lastDropTarget&&null===d&&(null==(i=(n=this.dragSource).onGridExit)||i.call(n,this.dragItem)),null===this.lastDropTarget&&null!==d&&(null==(r=(o=this.dragSource).onGridEnter)||r.call(o,this.dragItem)),this.enterDragTargetIfExists(d,e,a,s,t),this.lastDropTarget=d;else if(d&&d.onDragging){const n=this.createDropTargetEvent(d,e,a,s,t);d.onDragging(n)}}getAllContainersFromDropTarget(e){const t=e.getSecondaryContainers?e.getSecondaryContainers():null,n=[[e.getContainer()]];return t?n.concat(t):n}allContainersIntersect(e,t){for(const n of t){const t=n.getBoundingClientRect();if(0===t.width||0===t.height)return!1;const i=e.clientX>=t.left&&e.clientX<t.right,o=e.clientY>=t.top&&e.clientY<t.bottom;if(!i||!o)return!1}return!0}isMouseOnDropTarget(e,t){const n=this.getAllContainersFromDropTarget(t);let i=!1;for(const t of n)if(this.allContainersIntersect(e,t)){i=!0;break}return!(t.targetContainsSource&&!t.getContainer().contains(this.dragSource.eElement))&&(i&&t.isInterestedIn(this.dragSource.type,this.dragSource.eElement))}findCurrentDropTarget(e,t){const n=t.length;if(0===n)return null;if(1===n)return t[0];const i=this.gos.getRootNode().elementsFromPoint(e.clientX,e.clientY);for(const e of i)for(const n of t){if(-1!==an(this.getAllContainersFromDropTarget(n)).indexOf(e))return n}return null}enterDragTargetIfExists(e,t,n,i,o){if(e){if(e.onDragEnter){const r=this.createDropTargetEvent(e,t,n,i,o);e.onDragEnter(r)}this.setGhostIcon(e.getIconName?e.getIconName():null)}}leaveLastTargetIfExists(e,t,n,i){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){const o=this.createDropTargetEvent(this.lastDropTarget,e,t,n,i);this.lastDropTarget.onDragLeave(o)}this.setGhostIcon(null)}}addDropTarget(e){this.dropTargets.push(e)}removeDropTarget(e){this.dropTargets=this.dropTargets.filter((t=>t.getContainer()!==e.getContainer()))}hasExternalDropZones(){return this.dropTargets.some((e=>e.external))}findExternalZone(e){return this.dropTargets.filter((e=>e.external)).find((t=>t.getContainer()===e.getContainer()))||null}getHorizontalDirection(e){const t=this.eventLastTime&&this.eventLastTime.clientX,n=e.clientX;return t===n?null:t>n?0:1}getVerticalDirection(e){const t=this.eventLastTime&&this.eventLastTime.clientY,n=e.clientY;return t===n?null:t>n?0:1}createDropTargetEvent(e,t,n,i,o){const r=e.getContainer(),a=r.getBoundingClientRect(),{gridApi:s,columnApi:l,dragItem:d,dragSource:c}=this;return{event:t,x:t.clientX-a.left,y:t.clientY-a.top,vDirection:i,hDirection:n,dragSource:c,fromNudge:o,dragItem:d,api:s,columnApi:l,dropZoneTarget:r}}positionGhost(e){const t=this.eGhost;if(!t)return;const n=t.getBoundingClientRect().height,i=Ji()-2,o=eo()-2,r=Lo(t.offsetParent),{clientY:a,clientX:s}=e;let l=a-r.top-n/2,d=s-r.left-10;const c=this.gos.getDocument(),g=c.defaultView||window,u=g.pageYOffset||c.documentElement.scrollTop,h=g.pageXOffset||c.documentElement.scrollLeft;i>0&&d+t.clientWidth>i+h&&(d=i+h-t.clientWidth),d<0&&(d=0),o>0&&l+t.clientHeight>o+u&&(l=o+u-t.clientHeight),l<0&&(l=0),t.style.left=`${d}px`,t.style.top=`${l}px`}removeGhost(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null}createGhost(){this.eGhost=Ho(qa.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);const{theme:e}=this.environment.getTheme();e&&this.eGhost.classList.add(e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);const t=this.eGhost.querySelector(".ag-dnd-ghost-label");let n=this.dragSource.dragItemName;ct(n)&&(n=n()),t.innerHTML=On(n)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";const i=this.gos.getDocument();let o=null,r=null;try{o=i.fullscreenElement}catch(e){}finally{o||(o=this.gos.getRootNode());const e=o.querySelector("body");r=e||(o instanceof ShadowRoot?o:o instanceof Document?null==o?void 0:o.documentElement:o)}this.eGhostParent=r,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")}setGhostIcon(e,t=!1){ko(this.eGhostIcon);let n=null;switch(e||(e=this.dragSource.getDefaultIconName?this.dragSource.getDefaultIconName():qa.ICON_NOT_ALLOWED),e){case qa.ICON_PINNED:n=this.ePinnedIcon;break;case qa.ICON_MOVE:n=this.eMoveIcon;break;case qa.ICON_LEFT:n=this.eLeftIcon;break;case qa.ICON_RIGHT:n=this.eRightIcon;break;case qa.ICON_GROUP:n=this.eGroupIcon;break;case qa.ICON_AGGREGATE:n=this.eAggregateIcon;break;case qa.ICON_PIVOT:n=this.ePivotIcon;break;case qa.ICON_NOT_ALLOWED:n=this.eDropNotAllowedIcon;break;case qa.ICON_HIDE:n=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",t),n===this.eHideIcon&&this.gos.get("suppressDragLeaveHidesColumns")||n&&this.eGhostIcon.appendChild(n)}};qa.ICON_PINNED="pinned",qa.ICON_MOVE="move",qa.ICON_LEFT="left",qa.ICON_RIGHT="right",qa.ICON_GROUP="group",qa.ICON_AGGREGATE="aggregate",qa.ICON_PIVOT="pivot",qa.ICON_NOT_ALLOWED="notAllowed",qa.ICON_HIDE="hide",qa.GHOST_TEMPLATE='<div class="ag-dnd-ghost ag-unselectable">\n <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>\n <div class="ag-dnd-ghost-label"></div>\n </div>',_e([xt("dragService")],qa.prototype,"dragService",2),_e([xt("mouseEventService")],qa.prototype,"mouseEventService",2),_e([xt("columnApi")],qa.prototype,"columnApi",2),_e([xt("gridApi")],qa.prototype,"gridApi",2),_e([Tt],qa.prototype,"init",1),_e([Rt],qa.prototype,"clearDragSourceParamsList",1),qa=_e([At("dragAndDropService")],qa);var Xa=class extends _r{constructor(e,t,n,i,o,r){super(),this.cellValueFn=e,this.rowNode=t,this.column=n,this.customGui=i,this.dragStartPixels=o,this.suppressVisibilityChange=r,this.dragSource=null}isCustomGui(){return null!=this.customGui}postConstruct(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(ur("rowDrag",this.gos,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){const e=this.gos.get("rowDragManaged")?new es(this,this.beans,this.rowNode,this.column):new Ja(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}}setDragElement(e,t){this.setTemplateFromElement(e),this.addDragSource(t)}getSelectedNodes(){if(!this.gos.get("rowDragMultiRow"))return[this.rowNode];const e=this.beans.selectionService.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e:[this.rowNode]}checkCompatibility(){const e=this.gos.get("rowDragManaged");this.gos.get("treeData")&&e&&st("If using row drag with tree data, you cannot have rowDragManaged=true")}getDragItem(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}}getRowDragText(e){if(e){const t=e.getColDef();if(t.rowDragText)return t.rowDragText}return this.gos.get("rowDragText")}addDragSource(e=4){this.dragSource&&this.removeDragSource();const t=this.localeService.getLocaleTextFunc();this.dragSource={type:2,eElement:this.getGui(),dragItemName:()=>{var e;const n=this.getDragItem(),i=(null==(e=n.rowNodes)?void 0:e.length)||1,o=this.getRowDragText(this.column);return o?o(n,i):1===i?this.cellValueFn():`${i} ${t("rowDragRows","rows")}`},getDragItem:()=>this.getDragItem(),dragStartPixels:e,dragSourceDomDataKey:this.gos.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)}removeDragSource(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null}};_e([xt("beans")],Xa.prototype,"beans",2),_e([Tt],Xa.prototype,"postConstruct",1),_e([Rt],Xa.prototype,"removeDragSource",1);var Za=class extends En{constructor(e,t,n){super(),this.parent=e,this.rowNode=t,this.column=n}setDisplayedOrVisible(e){const t={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,t);else{let e=!0,n=!1;this.column&&(e=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),n=ct(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0,t),this.parent.setVisible(e,t)):(this.parent.setDisplayed(e,t),this.parent.setVisible(!0,t))}}},Ja=class extends Za{constructor(e,t,n,i){super(e,n,i),this.beans=t}postConstruct(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,Ya.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ya.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ya.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,An.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){const e=this.gos.get("suppressRowDrag");this.setDisplayedOrVisible(e)}};_e([Tt],Ja.prototype,"postConstruct",1);var es=class extends Za{constructor(e,t,n,i){super(e,n,i),this.beans=t}postConstruct(){this.addManagedListener(this.beans.eventService,An.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,An.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,An.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,An.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ya.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ya.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){const e=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),t=e&&e.shouldPreventRowMove(),n=this.gos.get("suppressRowDrag"),i=this.beans.dragAndDropService.hasExternalDropZones(),o=t&&!i||n;this.setDisplayedOrVisible(o)}};_e([Tt],es.prototype,"postConstruct",1);var ts=class extends En{init(e,t,n,i,o,r,a){var s,l,d,c;this.params=a,this.eGui=t,this.eCheckbox=n,this.eExpanded=i,this.eContracted=o,this.comp=e,this.compClass=r;const{node:g,value:u,colDef:h}=a,p=this.isTopLevelFooter();if(!p){if(this.isEmbeddedRowMismatch())return;if(g.footer&&this.gos.get("groupHideOpenParents")){if((h&&h.showRowGroup)!==(g.rowGroupColumn&&g.rowGroupColumn.getColId()))return}}if(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),!p){const e=a.node.footer&&a.node.rowGroupIndex===this.columnModel.getRowGroupColumns().findIndex((e=>{var t;return e.getColId()===(null==(t=a.colDef)?void 0:t.showRowGroup)})),t="multipleColumns"!=this.gos.get("groupDisplayType")||this.gos.get("treeData")||this.gos.get("showOpenedGroup")&&!a.node.footer&&(!a.node.group||null!=a.node.rowGroupIndex&&a.node.rowGroupIndex>this.columnModel.getRowGroupColumns().findIndex((e=>{var t;return e.getColId()===(null==(t=a.colDef)?void 0:t.showRowGroup)}))),n=!g.group&&((null==(s=this.params.colDef)?void 0:s.field)||(null==(l=this.params.colDef)?void 0:l.valueGetter)),i=this.isExpandable(),o=this.columnModel.isPivotMode()&&g.leafGroup&&(null==(d=g.rowGroupColumn)?void 0:d.getColId())===(null==(c=a.column)?void 0:c.getColDef().showRowGroup);if(!(this.showingValueForOpenedParent||i||n||t||e||o))return}this.addExpandAndContract(),this.addFullWidthRowDraggerIfNeeded(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded()}getCellAriaRole(){var e,t;const n=null==(e=this.params.colDef)?void 0:e.cellAriaRole,i=null==(t=this.params.column)?void 0:t.getColDef().cellAriaRole;return n||i||"gridcell"}destroy(){super.destroy(),this.expandListener=null}refreshAriaExpanded(){const{node:e,eGridCell:t}=this.params;if(this.expandListener&&(this.expandListener=this.expandListener()),!this.isExpandable())return void yi(t);const n=()=>{wi(t,!!e.expanded)};this.expandListener=this.addManagedListener(e,Ya.EVENT_EXPANDED_CHANGED,n)||null,n()}isTopLevelFooter(){if(!this.gos.getGrandTotalRow())return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;const e=this.params.colDef;if(null==e)return!0;if(!0===e.showRowGroup)return!0;const t=this.columnModel.getRowGroupColumns();if(!t||0===t.length)return!0;return t[0].getId()===e.showRowGroup}isEmbeddedRowMismatch(){if(!this.params.fullWidth||!this.gos.get("embedFullWidthRows"))return!1;const e="left"===this.params.pinned,t="right"===this.params.pinned,n=!e&&!t;return this.gos.get("enableRtl")?this.columnModel.isPinningLeft()?!t:!n:this.columnModel.isPinningLeft()?!e:!n}findDisplayedGroupNode(){const e=this.params.column,t=this.params.node;if(this.showingValueForOpenedParent){let n=t.parent;for(;null!=n;){if(n.rowGroupColumn&&e.isRowGroupDisplayed(n.rowGroupColumn.getId())){this.displayedGroupNode=n;break}n=n.parent}}Ve(this.displayedGroupNode)&&(this.displayedGroupNode=t)}setupShowingValueForOpenedParent(){const e=this.params.node,t=this.params.column;if(!this.gos.get("groupHideOpenParents"))return void(this.showingValueForOpenedParent=!1);if(!e.groupData)return void(this.showingValueForOpenedParent=!1);if(null!=e.rowGroupColumn){const n=e.rowGroupColumn.getId();if(t.isRowGroupDisplayed(n))return void(this.showingValueForOpenedParent=!1)}const n=null!=e.groupData[t.getId()];this.showingValueForOpenedParent=n}addValueElement(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())}addGroupValue(){var e;const t=this.adjustParamsWithDetailsFromRelatedColumn(),n=this.getInnerCompDetails(t),{valueFormatted:i,value:o}=t;let r=i;if(null==r){const t=this.displayedGroupNode.rowGroupColumn&&(null==(e=this.params.column)?void 0:e.isRowGroupDisplayed(this.displayedGroupNode.rowGroupColumn.getId()));if(""===this.displayedGroupNode.key&&this.displayedGroupNode.group&&t){r=this.localeService.getLocaleTextFunc()("blanks","(Blanks)")}else r=null!=o?o:null}this.comp.setInnerRenderer(n,r)}adjustParamsWithDetailsFromRelatedColumn(){const e=this.displayedGroupNode.rowGroupColumn,t=this.params.column;if(!e)return this.params;if(null!=t){if(!t.isRowGroupDisplayed(e.getId()))return this.params}const n=this.params,{value:i,node:o}=this.params,r=this.valueService.formatValue(e,o,i);return Le(Ie({},n),{valueFormatted:r})}addFooterValue(){let e=this.params.totalValueGetter;if(!e){const t=this.params.footerValueGetter;t&&(e=t,st("As of v31.3, footerValueGetter is deprecated. Use `totalValueGetter` instead."))}let t="";if(e){const n=Xe(this.params);n.value=this.params.value,"function"==typeof e?t=e(n):"string"==typeof e?t=this.expressionService.evaluate(e,n):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else{t=this.localeService.getLocaleTextFunc()("footerTotal","Total")+" "+(null!=this.params.value?this.params.value:"")}const n=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(n,t)}getInnerCompDetails(e){if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gos.get("groupRowRendererParams"),e);const t=this.userComponentFactory.getInnerRendererDetails(e,e),n=e=>e&&e.componentClass==this.compClass;if(t&&!n(t))return t;const i=this.displayedGroupNode.rowGroupColumn,o=i?i.getColDef():void 0;if(!o)return;const r=this.userComponentFactory.getCellRendererDetails(o,e);if(r&&!n(r))return r;if(n(r)&&o.cellRendererParams&&o.cellRendererParams.innerRenderer){return this.userComponentFactory.getInnerRendererDetails(o.cellRendererParams,e)}}addChildCount(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,Ya.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())}updateChildCount(){const e=this.displayedGroupNode.allChildrenCount,t=this.isShowRowGroupForThisRow()&&null!=e&&e>=0?`(${e})`:"";this.comp.setChildCount(t)}isShowRowGroupForThisRow(){if(this.gos.get("treeData"))return!0;const e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;const t=this.params.column;return null==t||t.isRowGroupDisplayed(e.getId())}addExpandAndContract(){var e;const t=this.params,n=ur("groupExpanded",this.gos,null),i=ur("groupContracted",this.gos,null);n&&this.eExpanded.appendChild(n),i&&this.eContracted.appendChild(i);const o=t.eGridCell;(null==(e=this.params.column)?void 0:e.isCellEditable(t.node))&&this.gos.get("enableGroupEdit")||!this.isExpandable()||t.suppressDoubleClickExpand||this.addManagedListener(o,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(o,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(t.node,Ya.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();const r=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,Ya.EVENT_ALL_CHILDREN_COUNT_CHANGED,r),this.addManagedListener(this.displayedGroupNode,Ya.EVENT_MASTER_CHANGED,r),this.addManagedListener(this.displayedGroupNode,Ya.EVENT_GROUP_CHANGED,r),this.addManagedListener(this.displayedGroupNode,Ya.EVENT_HAS_CHILDREN_CHANGED,r)}onExpandClicked(e){pn(e)||(hn(e),this.onExpandOrContract(e))}onExpandOrContract(e){const t=this.displayedGroupNode,n=!t.expanded;!n&&t.sticky&&this.scrollToStickyNode(t),t.setExpanded(n,e)}scrollToStickyNode(e){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(e.rowTop-e.stickyRowTop)}isExpandable(){if(this.showingValueForOpenedParent)return!0;const e=this.displayedGroupNode,t=this.columnModel.isPivotMode()&&e.leafGroup;if(!(e.isExpandable()&&!e.footer&&!t))return!1;const n=this.params.column;if(null!=n&&"string"==typeof n.getColDef().showRowGroup){return this.isShowRowGroupForThisRow()}return!0}showExpandAndContractIcons(){const{params:e,displayedGroupNode:t,columnModel:n}=this,{node:i}=e,o=this.isExpandable();if(o){const e=!!this.showingValueForOpenedParent||i.expanded;this.comp.setExpandedDisplayed(e),this.comp.setContractedDisplayed(!e)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);const r=n.isPivotMode(),a=r&&t.leafGroup,s=o&&!a,l=i.footer&&-1===i.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",s),this.comp.addOrRemoveCssClass("ag-row-group",s),r?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",a):l||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!s)}onRowNodeIsExpandableChanged(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()}setupIndent(){const e=this.params.node;this.params.suppressPadding||(this.addManagedListener(e,Ya.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())}setIndent(){if(this.gos.get("groupHideOpenParents"))return;const e=this.params,t=e.node,n=!!e.colDef,i=this.gos.get("treeData"),o=!n||i||!0===e.colDef.showRowGroup?t.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+o,this.comp.addOrRemoveCssClass(this.indentClass,!0)}addFullWidthRowDraggerIfNeeded(){if(!this.params.fullWidth||!this.params.rowDrag)return;const e=new Xa((()=>this.params.value),this.params.node);this.createManagedBean(e,this.context),this.eGui.insertAdjacentElement("afterbegin",e.getGui())}isUserWantsSelected(){const e=this.params.checkbox;return"function"==typeof e||!0===e}addCheckboxIfNeeded(){const e=this.displayedGroupNode,t=this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.detail;if(t){const e=new $a;this.getContext().createBean(e),e.init({rowNode:this.params.node,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(e.getGui()),this.addDestroyFunc((()=>this.getContext().destroyBean(e)))}this.comp.setCheckboxVisible(t)}onKeyDown(e){if(!(e.key===pr.ENTER)||this.params.suppressEnterExpand)return;this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e)}onCellDblClicked(e){if(pn(e))return;fn(this.eExpanded,e)||fn(this.eContracted,e)||this.onExpandOrContract(e)}};_e([xt("expressionService")],ts.prototype,"expressionService",2),_e([xt("valueService")],ts.prototype,"valueService",2),_e([xt("columnModel")],ts.prototype,"columnModel",2),_e([xt("userComponentFactory")],ts.prototype,"userComponentFactory",2),_e([xt("ctrlsService")],ts.prototype,"ctrlsService",2);var ns=class _GroupCellRenderer extends _r{constructor(){super(_GroupCellRenderer.TEMPLATE)}init(e){const t={setInnerRenderer:(e,t)=>this.setRenderDetails(e,t),setChildCount:e=>this.eChildCount.textContent=e,addOrRemoveCssClass:(e,t)=>this.addOrRemoveCssClass(e,t),setContractedDisplayed:e=>Do(this.eContracted,e),setExpandedDisplayed:e=>Do(this.eExpanded,e),setCheckboxVisible:e=>this.eCheckbox.classList.toggle("ag-invisible",!e)},n=this.createManagedBean(new ts),i=!e.colDef,o=this.getGui();n.init(t,o,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),i&&oi(o,n.getCellAriaRole())}setRenderDetails(e,t){if(e){const t=e.newAgStackInstance();if(!t)return;t.then((e=>{if(!e)return;const t=()=>this.context.destroyBean(e);this.isAlive()?(this.eValue.appendChild(e.getGui()),this.addDestroyFunc(t)):t()}))}else this.eValue.innerText=t}destroy(){this.getContext().destroyBean(this.innerCellRenderer),super.destroy()}refresh(){return!1}};ns.TEMPLATE='<span class="ag-cell-wrapper">\n <span class="ag-group-expanded" ref="eExpanded"></span>\n <span class="ag-group-contracted" ref="eContracted"></span>\n <span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>\n <span class="ag-group-value" ref="eValue"></span>\n <span class="ag-group-child-count" ref="eChildCount"></span>\n </span>',_e([Or("eExpanded")],ns.prototype,"eExpanded",2),_e([Or("eContracted")],ns.prototype,"eContracted",2),_e([Or("eCheckbox")],ns.prototype,"eCheckbox",2),_e([Or("eValue")],ns.prototype,"eValue",2),_e([Or("eChildCount")],ns.prototype,"eChildCount",2);var is=ns,os=class _LoadingCellRenderer extends _r{constructor(){super(_LoadingCellRenderer.TEMPLATE)}init(e){e.node.failedLoad?this.setupFailed():this.setupLoading()}setupFailed(){const e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")}setupLoading(){const e=ur("groupLoading",this.gos,null);e&&this.eLoadingIcon.appendChild(e);const t=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingOoo","Loading")}refresh(e){return!1}destroy(){super.destroy()}};os.TEMPLATE='<div class="ag-loading">\n <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n <span class="ag-loading-text" ref="eLoadingText"></span>\n </div>',_e([Or("eLoadingIcon")],os.prototype,"eLoadingIcon",2),_e([Or("eLoadingText")],os.prototype,"eLoadingText",2);var rs=os,as=class _SkeletonCellRenderer extends _r{constructor(){super(_SkeletonCellRenderer.TEMPLATE)}init(e){const t=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",t),this.addDestroyFunc((()=>ci(e.eParentOfValue))),ci(e.eParentOfValue,t),e.node.failedLoad?this.setupFailed():this.setupLoading()}setupFailed(){const e=this.localeService.getLocaleTextFunc();this.getGui().innerText=e("loadingError","ERR");const t=e("ariaSkeletonCellLoadingFailed","Row failed to load");di(this.getGui(),t)}setupLoading(){const e=this.gos.getDocument().createElement("div");e.classList.add("ag-skeleton-effect"),this.getGui().appendChild(e);const t=this.localeService.getLocaleTextFunc()("ariaSkeletonCellLoading","Row data is loading");di(this.getGui(),t)}refresh(e){return!1}destroy(){super.destroy()}};as.TEMPLATE='<div class="ag-skeleton-container"></div>';var ss=as,ls=class _LoadingOverlayComponent extends _r{constructor(){super()}destroy(){super.destroy()}init(e){const t=this.gos.get("overlayLoadingTemplate");if(this.setTemplate(null!=t?t:_LoadingOverlayComponent.DEFAULT_LOADING_OVERLAY_TEMPLATE),!t){const e=this.localeService.getLocaleTextFunc();setTimeout((()=>{this.getGui().textContent=e("loadingOoo","Loading...")}))}}};ls.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span aria-live="polite" aria-atomic="true" class="ag-overlay-loading-center"></span>';var ds=ls,cs=class _NoRowsOverlayComponent extends _r{constructor(){super()}destroy(){super.destroy()}init(e){const t=this.gos.get("overlayNoRowsTemplate");if(this.setTemplate(null!=t?t:_NoRowsOverlayComponent.DEFAULT_NO_ROWS_TEMPLATE),!t){const e=this.localeService.getLocaleTextFunc();setTimeout((()=>{this.getGui().textContent=e("noRowsToShow","No Rows To Show")}))}}};cs.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center"></span>';var gs=cs,us=class extends Ga{constructor(){super('<div class="ag-tooltip"></div>')}init(e){const{value:t}=e;this.getGui().textContent=On(t,!0)}},hs=class extends Ba{constructor(){super(new class{getTemplate(){return'<ag-input-number-field class="ag-cell-editor" ref="eInput"></ag-input-number-field>'}init(e,t){this.eInput=e,this.params=t,null!=t.max&&e.setMax(t.max),null!=t.min&&e.setMin(t.min),null!=t.precision&&e.setPrecision(t.precision),null!=t.step&&e.setStep(t.step);const n=e.getInputElement();t.preventStepping?e.addManagedListener(n,"keydown",this.preventStepping):t.showStepperButtons&&n.classList.add("ag-number-field-input-stepper")}preventStepping(e){e.key!==pr.UP&&e.key!==pr.DOWN||e.preventDefault()}getValue(){const e=this.eInput.getValue();if(!ze(e)&&!ze(this.params.value))return this.params.value;let t=this.params.parseValue(e);if(null==t)return t;if("string"==typeof t){if(""===t)return null;t=Number(t)}return isNaN(t)?null:t}getStartValue(){return this.params.value}})}},ps=class extends Ba{constructor(){super(new class{getTemplate(){return'<ag-input-date-field class="ag-cell-editor" ref="eInput"></ag-input-date-field>'}init(e,t){this.eInput=e,this.params=t,null!=t.min&&e.setMin(t.min),null!=t.max&&e.setMax(t.max),null!=t.step&&e.setStep(t.step)}getValue(){const e=this.eInput.getDate();return ze(e)||ze(this.params.value)?null!=e?e:null:this.params.value}getStartValue(){const{value:e}=this.params;if(e instanceof Date)return po(e,!1)}})}},ms=class extends Ba{constructor(){super(new class{constructor(e){this.getDataTypeService=e}getTemplate(){return'<ag-input-date-field class="ag-cell-editor" ref="eInput"></ag-input-date-field>'}init(e,t){this.eInput=e,this.params=t,null!=t.min&&e.setMin(t.min),null!=t.max&&e.setMax(t.max),null!=t.step&&e.setStep(t.step)}getValue(){const e=this.formatDate(this.eInput.getDate());return ze(e)||ze(this.params.value)?this.params.parseValue(null!=e?e:""):this.params.value}getStartValue(){var e,t;return po(null!=(t=this.parseDate(null!=(e=this.params.value)?e:void 0))?t:null,!1)}parseDate(e){return this.getDataTypeService().getDateParserFunction(this.params.column)(e)}formatDate(e){return this.getDataTypeService().getDateFormatterFunction(this.params.column)(e)}}((()=>this.dataTypeService)))}};_e([xt("dataTypeService")],ms.prototype,"dataTypeService",2);var vs=class _CheckboxCellRenderer extends _r{constructor(){super(_CheckboxCellRenderer.TEMPLATE)}init(e){this.params=e,this.updateCheckbox(e);const t=this.eCheckbox.getInputElement();t.setAttribute("tabindex","-1"),ui(t,"polite"),this.addManagedListener(t,"click",(e=>{if(hn(e),this.eCheckbox.isDisabled())return;const t=this.eCheckbox.getValue();this.onCheckboxChanged(t)})),this.addManagedListener(t,"dblclick",(e=>{hn(e)})),this.addManagedListener(this.params.eGridCell,"keydown",(e=>{if(e.key===pr.SPACE&&!this.eCheckbox.isDisabled()){this.params.eGridCell===this.gos.getActiveDomElement()&&this.eCheckbox.toggle();const t=this.eCheckbox.getValue();this.onCheckboxChanged(t),e.preventDefault()}}))}refresh(e){return this.params=e,this.updateCheckbox(e),!0}updateCheckbox(e){var t,n,i;let o,r=!0;if(e.node.group&&e.column){const n=e.column.getColId();n.startsWith(Mn)?o=null==e.value||""===e.value?void 0:"true"===e.value:e.node.aggData&&void 0!==e.node.aggData[n]?o=null!=(t=e.value)?t:void 0:r=!1}else o=null!=(n=e.value)?n:void 0;if(!r)return void this.eCheckbox.setDisplayed(!1);this.eCheckbox.setValue(o);const a=null!=e.disabled?e.disabled:!(null==(i=e.column)?void 0:i.isCellEditable(e.node));this.eCheckbox.setDisabled(a);const s=this.localeService.getLocaleTextFunc(),l=Fi(s,o),d=a?l:`${s("ariaToggleCellValue","Press SPACE to toggle cell value")} (${l})`;this.eCheckbox.setInputAriaLabel(d)}onCheckboxChanged(e){const{column:t,node:n,rowIndex:i,value:o}=this.params,r={type:An.EVENT_CELL_EDITING_STARTED,column:t,colDef:null==t?void 0:t.getColDef(),data:n.data,node:n,rowIndex:i,rowPinned:n.rowPinned,value:o};this.eventService.dispatchEvent(r);const a=this.params.node.setDataValue(this.params.column,e,"edit"),s={type:An.EVENT_CELL_EDITING_STOPPED,column:t,colDef:null==t?void 0:t.getColDef(),data:n.data,node:n,rowIndex:i,rowPinned:n.rowPinned,value:o,oldValue:o,newValue:e,valueChanged:a};this.eventService.dispatchEvent(s)}};vs.TEMPLATE='\n <div class="ag-cell-wrapper ag-checkbox-cell" role="presentation">\n <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n </div>',_e([Or("eCheckbox")],vs.prototype,"eCheckbox",2);var fs=vs,Cs=class extends Ga{constructor(){super('\n <div class="ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit">\n <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n </div>')}init(e){var t;this.params=e;const n=null!=(t=e.value)?t:void 0;this.eCheckbox.setValue(n);this.eCheckbox.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(n),this.addManagedListener(this.eCheckbox,An.EVENT_FIELD_VALUE_CHANGED,(e=>this.setAriaLabel(e.selected)))}getValue(){return this.eCheckbox.getValue()}focusIn(){this.eCheckbox.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){const t=this.localeService.getLocaleTextFunc(),n=Fi(t,e),i=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel(`${i} (${n})`)}};_e([Or("eCheckbox")],Cs.prototype,"eCheckbox",2);var ws=class extends _r{constructor(){super(),this.setTemplate("<div></div>")}init(e){var t;this.params=e,this.cssClassPrefix=null!=(t=this.params.cssClassPrefix)?t:"ag-menu-option",this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu()}configureDefaults(){return!0}addIcon(){if(this.params.isCompact)return;const e=Ho(`<span ref="eIcon" class="${this.getClassName("part")} ${this.getClassName("icon")}" role="presentation"></span>`);this.params.checked?e.appendChild(ur("check",this.gos)):this.params.icon&&(Jo(this.params.icon)?e.appendChild(this.params.icon):"string"==typeof this.params.icon?e.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(e)}addName(){const e=Ho(`<span ref="eName" class="${this.getClassName("part")} ${this.getClassName("text")}">${this.params.name||""}</span>`);this.getGui().appendChild(e)}addShortcut(){if(this.params.isCompact)return;const e=Ho(`<span ref="eShortcut" class="${this.getClassName("part")} ${this.getClassName("shortcut")}">${this.params.shortcut||""}</span>`);this.getGui().appendChild(e)}addSubMenu(){const e=Ho(`<span ref="ePopupPointer" class="${this.getClassName("part")} ${this.getClassName("popup-pointer")}"></span>`),t=this.getGui();if(this.params.subMenu){const n=this.gos.get("enableRtl")?"smallLeft":"smallRight";wi(t,!1),e.appendChild(ur(n,this.gos))}t.appendChild(e)}getClassName(e){return`${this.cssClassPrefix}-${e}`}destroy(){super.destroy()}},ys=class extends En{constructor(){super(...arguments),this.agGridDefaults={agDateInput:ma,agColumnHeader:_a,agColumnGroupHeader:ka,agSortIndicator:La,agTextColumnFloatingFilter:Ma,agNumberColumnFloatingFilter:xa,agDateColumnFloatingFilter:pa,agReadOnlyFloatingFilter:Gr,agAnimateShowChangeCellRenderer:Ua,agAnimateSlideCellRenderer:ja,agGroupCellRenderer:is,agGroupRowRenderer:is,agLoadingCellRenderer:rs,agSkeletonCellRenderer:ss,agCheckboxCellRenderer:fs,agCellEditor:Wa,agTextCellEditor:Wa,agNumberCellEditor:hs,agDateCellEditor:ps,agDateStringCellEditor:ms,agSelectCellEditor:Ha,agLargeTextCellEditor:Va,agCheckboxCellEditor:Cs,agTextColumnFilter:Da,agNumberColumnFilter:ba,agDateColumnFilter:ua,agLoadingOverlay:ds,agNoRowsOverlay:gs,agTooltipComponent:us,agMenuItem:ws},this.enterpriseAgDefaultCompsModule={agSetColumnFilter:"@ag-grid-enterprise/set-filter",agSetColumnFloatingFilter:"@ag-grid-enterprise/set-filter",agMultiColumnFilter:"@ag-grid-enterprise/multi-filter",agMultiColumnFloatingFilter:"@ag-grid-enterprise/multi-filter",agGroupColumnFilter:"@ag-grid-enterprise/row-grouping",agGroupColumnFloatingFilter:"@ag-grid-enterprise/row-grouping",agRichSelect:"@ag-grid-enterprise/rich-select",agRichSelectCellEditor:"@ag-grid-enterprise/rich-select",agDetailCellRenderer:"@ag-grid-enterprise/master-detail",agSparklineCellRenderer:"@ag-grid-enterprise/sparklines"},this.jsComps={}}init(){const e=this.gos.get("components");null!=e&&qe(e,((e,t)=>this.registerJsComponent(e,t)))}registerDefaultComponent(e,t){this.agGridDefaults[e]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[e]=t}registerJsComponent(e,t){this.jsComps[e]=t}retrieve(e,t){const n=(e,t)=>({componentFromFramework:t,component:e}),i=this.getFrameworkOverrides().frameworkComponent(t,this.gos.get("components"));if(null!=i)return n(i,!0);const o=this.jsComps[t];if(o){return n(o,this.getFrameworkOverrides().isFrameworkComponent(o))}const r=this.agGridDefaults[t];if(r)return n(r,!1);const a=this.enterpriseAgDefaultCompsModule[t];return a?St.__assertRegistered(a,`AG Grid '${e}' component: ${t}`,this.context.getGridId()):at((()=>{this.warnAboutMissingComponent(e,t)}),"MissingComp"+t),null}warnAboutMissingComponent(e,t){const n=sr(t,[...Object.keys(this.agGridDefaults).filter((e=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(e))),...Object.keys(this.jsComps)],!0,.8).values;console.warn(`AG Grid: Could not find '${t}' component. It was configured as "${e}: '${t}'" but it wasn't found in the list of registered components.`),n.length>0&&console.warn(` Did you mean: [${n.slice(0,3)}]?`),console.warn(`If using a custom component check it has been registered as described in: ${this.getFrameworkOverrides().getDocLink("components/")}`)}};_e([Tt],ys.prototype,"init",1),ys=_e([At("userComponentRegistry")],ys);var bs={propertyName:"dateComponent",cellRenderer:!1},Es={propertyName:"headerComponent",cellRenderer:!1},Ss={propertyName:"headerGroupComponent",cellRenderer:!1},Ds={propertyName:"cellRenderer",cellRenderer:!0},Ts={propertyName:"loadingCellRenderer",cellRenderer:!0},Rs={propertyName:"cellEditor",cellRenderer:!1},As={propertyName:"innerRenderer",cellRenderer:!0},xs={propertyName:"loadingOverlayComponent",cellRenderer:!1},Ms={propertyName:"noRowsOverlayComponent",cellRenderer:!1},Ns={propertyName:"tooltipComponent",cellRenderer:!1},Ps={propertyName:"filter",cellRenderer:!1},Is={propertyName:"floatingFilterComponent",cellRenderer:!1},Ls={propertyName:"toolPanel",cellRenderer:!1},Fs={propertyName:"statusPanel",cellRenderer:!1},_s={propertyName:"fullWidthCellRenderer",cellRenderer:!0},Os={propertyName:"loadingCellRenderer",cellRenderer:!0},ks={propertyName:"groupRowRenderer",cellRenderer:!0},Gs={propertyName:"detailCellRenderer",cellRenderer:!0},zs={propertyName:"menuItem",cellRenderer:!1},Vs=class{static getFloatingFilterType(e){return this.filterToFloatingFilterMapping[e]}};Vs.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",group:"agGroupColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"};var Hs=class extends En{getHeaderCompDetails(e,t){return this.getCompDetails(e,Es,"agColumnHeader",t)}getHeaderGroupCompDetails(e){const t=e.columnGroup.getColGroupDef();return this.getCompDetails(t,Ss,"agColumnGroupHeader",e)}getFullWidthCellRendererDetails(e){return this.getCompDetails(this.gridOptions,_s,null,e,!0)}getFullWidthLoadingCellRendererDetails(e){return this.getCompDetails(this.gridOptions,Os,"agLoadingCellRenderer",e,!0)}getFullWidthGroupCellRendererDetails(e){return this.getCompDetails(this.gridOptions,ks,"agGroupRowRenderer",e,!0)}getFullWidthDetailCellRendererDetails(e){return this.getCompDetails(this.gridOptions,Gs,"agDetailCellRenderer",e,!0)}getInnerRendererDetails(e,t){return this.getCompDetails(e,As,null,t)}getFullWidthGroupRowInnerCellRenderer(e,t){return this.getCompDetails(e,As,null,t)}getCellRendererDetails(e,t){return this.getCompDetails(e,Ds,null,t)}getLoadingCellRendererDetails(e,t){return this.getCompDetails(e,Ts,"agSkeletonCellRenderer",t,!0)}getCellEditorDetails(e,t){return this.getCompDetails(e,Rs,"agCellEditor",t,!0)}getFilterDetails(e,t,n){return this.getCompDetails(e,Ps,n,t,!0)}getDateCompDetails(e){return this.getCompDetails(this.gridOptions,bs,"agDateInput",e,!0)}getLoadingOverlayCompDetails(e){return this.getCompDetails(this.gridOptions,xs,"agLoadingOverlay",e,!0)}getNoRowsOverlayCompDetails(e){return this.getCompDetails(this.gridOptions,Ms,"agNoRowsOverlay",e,!0)}getTooltipCompDetails(e){return this.getCompDetails(e.colDef,Ns,"agTooltipComponent",e,!0)}getSetFilterCellRendererDetails(e,t){return this.getCompDetails(e,Ds,null,t)}getFloatingFilterCompDetails(e,t,n){return this.getCompDetails(e,Is,n,t)}getToolPanelCompDetails(e,t){return this.getCompDetails(e,Ls,null,t,!0)}getStatusPanelCompDetails(e,t){return this.getCompDetails(e,Fs,null,t,!0)}getMenuItemCompDetails(e,t){return this.getCompDetails(e,zs,"agMenuItem",t,!0)}getCompDetails(e,t,n,i,o=!1){const{propertyName:r,cellRenderer:a}=t;let{compName:s,jsComp:l,fwComp:d,paramsFromSelector:c,popupFromSelector:g,popupPositionFromSelector:u}=this.getCompKeys(e,t,i);const h=e=>{const t=this.userComponentRegistry.retrieve(r,e);t&&(l=t.componentFromFramework?void 0:t.component,d=t.componentFromFramework?t.component:void 0)};if(null!=s&&h(s),null==l&&null==d&&null!=n&&h(n),l&&a&&!this.agComponentUtils.doesImplementIComponent(l)&&(l=this.agComponentUtils.adaptFunction(r,l)),!l&&!d)return void(o&&console.error(`AG Grid: Could not find component ${s}, did you forget to configure this component?`));const p=this.mergeParamsWithApplicationProvidedParams(e,t,i,c),m=null==l,v=l||d;return{componentFromFramework:m,componentClass:v,params:p,type:t,popupFromSelector:g,popupPositionFromSelector:u,newAgStackInstance:()=>this.newAgStackInstance(v,m,p,t)}}getCompKeys(e,t,n){const{propertyName:i}=t;let o,r,a,s,l,d;if(e){const t=e,c=t[i+"Selector"],g=c?c(n):null,u=e=>{if("string"==typeof e)o=e;else if(null!=e&&!0!==e){this.getFrameworkOverrides().isFrameworkComponent(e)?a=e:r=e}};g?(u(g.component),s=g.params,l=g.popup,d=g.popupPosition):u(t[i])}return{compName:o,jsComp:r,fwComp:a,paramsFromSelector:s,popupFromSelector:l,popupPositionFromSelector:d}}newAgStackInstance(e,t,n,i){const o=i.propertyName;let r;if(!t)r=new e;else{const t=this.componentMetadataProvider.retrieve(o);r=this.frameworkComponentWrapper.wrap(e,t.mandatoryMethodList,t.optionalMethodList,i)}const a=this.initComponent(r,n);return null==a?xr.resolve(r):a.then((()=>r))}mergeParamsWithApplicationProvidedParams(e,t,n,i=null){const o=this.gos.getGridCommonParams();et(o,n);const r=e&&e[t.propertyName+"Params"];if("function"==typeof r){et(o,r(n))}else"object"==typeof r&&et(o,r);return et(o,i),o}initComponent(e,t){if(this.context.createBean(e),null!=e.init)return e.init(t)}getDefaultFloatingFilterType(e,t){if(null==e)return null;let n=null,{compName:i,jsComp:o,fwComp:r}=this.getCompKeys(e,Ps);if(i)n=Vs.getFloatingFilterType(i);else{null==o&&null==r&&!0===e.filter&&(n=t())}return n}};_e([xt("gridOptions")],Hs.prototype,"gridOptions",2),_e([xt("agComponentUtils")],Hs.prototype,"agComponentUtils",2),_e([xt("componentMetadataProvider")],Hs.prototype,"componentMetadataProvider",2),_e([xt("userComponentRegistry")],Hs.prototype,"userComponentRegistry",2),_e([Mt("frameworkComponentWrapper")],Hs.prototype,"frameworkComponentWrapper",2),Hs=_e([At("userComponentFactory")],Hs);var Bs=(e=>(e[e.Above=0]="Above",e[e.Below=1]="Below",e))(Bs||{}),Ws=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=-1!==e.scrollAxis.indexOf("x"),this.scrollVertically=-1!==e.scrollAxis.indexOf("y"),this.scrollByTick=null!=e.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)}check(e,t=!1){const n=t||this.shouldSkipVerticalScroll();if(n&&this.shouldSkipHorizontalScroll())return;const i=this.scrollContainer.getBoundingClientRect(),o=this.scrollByTick;this.tickLeft=e.clientX<i.left+o,this.tickRight=e.clientX>i.right-o,this.tickUp=e.clientY<i.top+o&&!n,this.tickDown=e.clientY>i.bottom-o&&!n,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(){let e;if(this.tickCount++,e=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){const t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){const 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)}},Us=class extends En{constructor(e){super(),this.eContainer=e}postConstruct(){this.gos.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.ctrlsService.whenReady((e=>{const t=e.gridBodyCtrl;this.autoScrollService=new Ws({scrollContainer:t.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:()=>t.getScrollFeature().getVScrollPosition().top,setVerticalPosition:e=>t.getScrollFeature().setVerticalScrollPosition(e),onScrollCallback:()=>{this.onDragging(this.lastDraggingEvent)}})}))}getContainer(){return this.eContainer}isInterestedIn(e){return 2===e}getIconName(){return this.gos.get("rowDragManaged")&&this.shouldPreventRowMove()?qa.ICON_NOT_ALLOWED:qa.ICON_MOVE}shouldPreventRowMove(){if(this.columnModel.getRowGroupColumns().length)return!0;if(this.filterManager.isAnyFilterPresent())return!0;return!!this.sortController.isSortActive()}getRowNodes(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];const t=e.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){const e=[...this.selectionService.getSelectedNodes()].sort(((e,t)=>null==e.rowIndex||null==t.rowIndex?0:this.getRowIndexNumber(e)-this.getRowIndexNumber(t)));if(-1!==e.indexOf(t))return e}return[t]}onDragEnter(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent(An.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach((e=>{e.setDragging(!0)})),this.onEnterOrDragging(e)}onDragging(e){this.onEnterOrDragging(e)}isFromThisGrid(e){const{dragSourceDomDataKey:t}=e.dragSource;return t===this.gos.getDomDataKey()}isDropZoneWithinThisGrid(e){const t=this.ctrlsService.getGridBodyCtrl().getGui(),{dropZoneTarget:n}=e;return!t.contains(n)}onEnterOrDragging(e){this.dispatchGridEvent(An.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;const t=this.mouseEventService.getNormalisedPosition(e).y;this.gos.get("rowDragManaged")&&this.doManagedDrag(e,t),this.autoScrollService.check(e.event)}doManagedDrag(e,t){const n=this.isFromThisGrid(e),i=this.gos.get("rowDragManaged"),o=e.dragItem.rowNodes;i&&this.shouldPreventRowMove()||(this.gos.get("suppressMoveWhenRowDragging")||!n?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(o[0],t):this.moveRows(o,t))}getRowIndexNumber(e){return parseInt(Kt(e.getRowIndexString().split("-")),10)}moveRowAndClearHighlight(e){const t=this.clientSideRowModel.getLastHighlightedRowNode(),n=t&&1===t.highlighted,i=this.mouseEventService.getNormalisedPosition(e).y,o=e.dragItem.rowNodes;let r=n?1:0;if(this.isFromThisGrid(e))o.forEach((e=>{e.rowTop<i&&(r-=1)})),this.moveRows(o,i,r);else{const e=this.gos.getCallback("getRowId");let t=this.clientSideRowModel.getRowIndexAtPixel(i)+1;0===this.clientSideRowModel.getHighlightPosition(i)&&t--,this.clientSideRowModel.updateRowData({add:o.map((e=>e.data)).filter((t=>!this.clientSideRowModel.getRowNode(e?e({data:t,level:0}):t.id))),addIndex:t})}this.clearRowHighlight()}clearRowHighlight(){this.clientSideRowModel.highlightRowAtPixel(null)}moveRows(e,t,n=0){var i;this.clientSideRowModel.ensureRowsAtPixel(e,t,n)&&(this.focusService.clearFocusedCell(),null==(i=this.rangeService)||i.removeAllCellRanges())}addRowDropZone(e){if(!e.getContainer())return void st("addRowDropZone - A container target needs to be provided");if(this.dragAndDropService.findExternalZone(e))return void console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");let t={getContainer:e.getContainer};e.fromGrid?t=e:(e.onDragEnter&&(t.onDragEnter=t=>{e.onDragEnter(this.draggingToRowDragEvent(An.EVENT_ROW_DRAG_ENTER,t))}),e.onDragLeave&&(t.onDragLeave=t=>{e.onDragLeave(this.draggingToRowDragEvent(An.EVENT_ROW_DRAG_LEAVE,t))}),e.onDragging&&(t.onDragging=t=>{e.onDragging(this.draggingToRowDragEvent(An.EVENT_ROW_DRAG_MOVE,t))}),e.onDragStop&&(t.onDragStop=t=>{e.onDragStop(this.draggingToRowDragEvent(An.EVENT_ROW_DRAG_END,t))})),this.dragAndDropService.addDropTarget(Ie({isInterestedIn:e=>2===e,getIconName:()=>qa.ICON_MOVE,external:!0},t))}getRowDropZone(e){const t=this.getContainer.bind(this),n=this.onDragEnter.bind(this),i=this.onDragLeave.bind(this),o=this.onDragging.bind(this),r=this.onDragStop.bind(this);return e?{getContainer:t,onDragEnter:e.onDragEnter?t=>{n(t),e.onDragEnter(this.draggingToRowDragEvent(An.EVENT_ROW_DRAG_ENTER,t))}:n,onDragLeave:e.onDragLeave?t=>{i(t),e.onDragLeave(this.draggingToRowDragEvent(An.EVENT_ROW_DRAG_LEAVE,t))}:i,onDragging:e.onDragging?t=>{o(t),e.onDragging(this.draggingToRowDragEvent(An.EVENT_ROW_DRAG_MOVE,t))}:o,onDragStop:e.onDragStop?t=>{r(t),e.onDragStop(this.draggingToRowDragEvent(An.EVENT_ROW_DRAG_END,t))}:r,fromGrid:!0}:{getContainer:t,onDragEnter:n,onDragLeave:i,onDragging:o,onDragStop:r,fromGrid:!0}}draggingToRowDragEvent(e,t){const n=this.mouseEventService.getNormalisedPosition(t).y;let i,o,r=-1;switch(n>this.paginationProxy.getCurrentPageHeight()||(r=this.rowModel.getRowIndexAtPixel(n),i=this.rowModel.getRow(r)),t.vDirection){case 1:o="down";break;case 0:o="up";break;default:o=null}return this.gos.addGridCommonParams({type:e,event:t.event,node:t.dragItem.rowNode,nodes:t.dragItem.rowNodes,overIndex:r,overNode:i,y:n,vDirection:o})}dispatchGridEvent(e,t){const n=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(n)}onDragLeave(e){this.dispatchGridEvent(An.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gos.get("rowDragManaged")&&this.clearRowHighlight()}onDragStop(e){this.dispatchGridEvent(An.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gos.get("rowDragManaged")||!this.gos.get("suppressMoveWhenRowDragging")&&this.isFromThisGrid(e)||this.isDropZoneWithinThisGrid(e)||this.moveRowAndClearHighlight(e)}stopDragging(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach((e=>{e.setDragging(!1)}))}};_e([xt("dragAndDropService")],Us.prototype,"dragAndDropService",2),_e([xt("rowModel")],Us.prototype,"rowModel",2),_e([xt("paginationProxy")],Us.prototype,"paginationProxy",2),_e([xt("columnModel")],Us.prototype,"columnModel",2),_e([xt("focusService")],Us.prototype,"focusService",2),_e([xt("sortController")],Us.prototype,"sortController",2),_e([xt("filterManager")],Us.prototype,"filterManager",2),_e([xt("selectionService")],Us.prototype,"selectionService",2),_e([xt("mouseEventService")],Us.prototype,"mouseEventService",2),_e([xt("ctrlsService")],Us.prototype,"ctrlsService",2),_e([Mt("rangeService")],Us.prototype,"rangeService",2),_e([Tt],Us.prototype,"postConstruct",1);var js=class extends En{constructor(){super(...arguments),this.dragEndFunctions=[],this.dragSources=[]}removeAllListeners(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0}removeListener(e){const t=e.dragSource.eElement,n=e.mouseDownListener;if(t.removeEventListener("mousedown",n),e.touchEnabled){const n=e.touchStartListener;t.removeEventListener("touchstart",n,{passive:!0})}}removeDragSource(e){const t=this.dragSources.find((t=>t.dragSource===e));t&&(this.removeListener(t),Zt(this.dragSources,t))}isDragging(){return this.dragging}addDragSource(e){const t=this.onMouseDown.bind(this,e),{eElement:n,includeTouch:i,stopPropagationForTouch:o}=e;n.addEventListener("mousedown",t);let r=null;const a=this.gos.get("suppressTouch");i&&!a&&(r=t=>{So(t.target)||(t.cancelable&&(t.preventDefault(),o&&t.stopPropagation()),this.onTouchStart(e,t))},n.addEventListener("touchstart",r,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:t,touchStartListener:r,touchEnabled:!!i})}getStartTarget(){return this.startTarget}onTouchStart(e,t){this.currentDragParams=e,this.dragging=!1;const n=t.touches[0];this.touchLastTime=n,this.touchStart=n;const i=t=>this.onTouchUp(t,e.eElement),o=t.target,r=[{target:this.gos.getRootNode(),type:"touchmove",listener:e=>{e.cancelable&&e.preventDefault()},options:{passive:!1}},{target:o,type:"touchmove",listener:t=>this.onTouchMove(t,e.eElement),options:{passive:!0}},{target:o,type:"touchend",listener:i,options:{passive:!0}},{target:o,type:"touchcancel",listener:i,options:{passive:!0}}];this.addTemporaryEvents(r),0===e.dragStartPixels&&this.onCommonMove(n,this.touchStart,e.eElement)}onMouseDown(e,t){const n=t;if(e.skipMouseEvent&&e.skipMouseEvent(t))return;if(n._alreadyProcessedByDragService)return;if(n._alreadyProcessedByDragService=!0,0!==t.button)return;this.shouldPreventMouseEvent(t)&&t.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t,this.startTarget=t.target;const i=this.gos.getRootNode(),o=[{target:i,type:"mousemove",listener:t=>this.onMouseMove(t,e.eElement)},{target:i,type:"mouseup",listener:t=>this.onMouseUp(t,e.eElement)},{target:i,type:"contextmenu",listener:e=>e.preventDefault()}];this.addTemporaryEvents(o),0===e.dragStartPixels&&this.onMouseMove(t,e.eElement)}addTemporaryEvents(e){e.forEach((e=>{const{target:t,type:n,listener:i,options:o}=e;t.addEventListener(n,i,o)})),this.dragEndFunctions.push((()=>{e.forEach((e=>{const{target:t,type:n,listener:i,options:o}=e;t.removeEventListener(n,i,o)}))}))}isEventNearStartEvent(e,t){const{dragStartPixels:n}=this.currentDragParams;return br(e,t,ze(n)?n:4)}getFirstActiveTouch(e){for(let t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null}onCommonMove(e,t,n){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;const i={type:An.EVENT_DRAG_STARTED,target:n};this.eventService.dispatchEvent(i),this.currentDragParams.onDragStart(t),this.currentDragParams.onDragging(t)}this.currentDragParams.onDragging(e)}onTouchMove(e,t){const n=this.getFirstActiveTouch(e.touches);n&&this.onCommonMove(n,this.touchStart,t)}onMouseMove(e,t){var n;if(Ui()){null==(n=this.gos.getDocument().getSelection())||n.removeAllRanges()}this.shouldPreventMouseEvent(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)}shouldPreventMouseEvent(e){const t=this.gos.get("enableCellTextSelection"),n="mousemove"===e.type;return t&&n&&e.cancelable&&this.mouseEventService.isEventFromThisGrid(e)&&!this.isOverFormFieldElement(e)}isOverFormFieldElement(e){const t=e.target,n=null==t?void 0:t.tagName.toLocaleLowerCase();return!!(null==n?void 0:n.match("^a$|textarea|input|select|button"))}onTouchUp(e,t){let n=this.getFirstActiveTouch(e.changedTouches);n||(n=this.touchLastTime),this.onUpCommon(n,t)}onMouseUp(e,t){this.onUpCommon(e,t)}onUpCommon(e,t){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);const n={type:An.EVENT_DRAG_STOPPED,target:t};this.eventService.dispatchEvent(n)}this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((e=>e())),this.dragEndFunctions.length=0}};_e([xt("mouseEventService")],js.prototype,"mouseEventService",2),_e([Rt],js.prototype,"removeAllListeners",1),js=_e([At("dragService")],js);var Ks="ag-list-item-hovered",Ys=class extends En{constructor(e,t,n){super(),this.comp=e,this.virtualList=t,this.params=n,this.currentDragValue=null,this.lastHoveredListItem=null}postConstruct(){this.addManagedListener(this.params.eventSource,this.params.listItemDragStartEvent,this.listItemDragStart.bind(this)),this.addManagedListener(this.params.eventSource,this.params.listItemDragEndEvent,this.listItemDragEnd.bind(this)),this.createDropTarget(),this.createAutoScrollService()}listItemDragStart(e){this.currentDragValue=this.params.getCurrentDragValue(e),this.moveBlocked=this.params.isMoveBlocked(this.currentDragValue)}listItemDragEnd(){window.setTimeout((()=>{this.currentDragValue=null,this.moveBlocked=!1}),10)}createDropTarget(){const e={isInterestedIn:e=>e===this.params.dragSourceType,getIconName:()=>this.moveBlocked?qa.ICON_PINNED:qa.ICON_MOVE,getContainer:()=>this.comp.getGui(),onDragging:e=>this.onDragging(e),onDragStop:()=>this.onDragStop(),onDragLeave:()=>this.onDragLeave()};this.dragAndDropService.addDropTarget(e)}createAutoScrollService(){const e=this.virtualList.getGui();this.autoScrollService=new Ws({scrollContainer:e,scrollAxis:"y",getVerticalPosition:()=>e.scrollTop,setVerticalPosition:t=>e.scrollTop=t})}onDragging(e){if(!this.currentDragValue||this.moveBlocked)return;const t=this.getListDragItem(e),n=this.virtualList.getComponentAt(t.rowIndex);if(!n)return;const i=n.getGui().parentElement;this.lastHoveredListItem&&this.lastHoveredListItem.rowIndex===t.rowIndex&&this.lastHoveredListItem.position===t.position||(this.autoScrollService.check(e.event),this.clearHoveredItems(),this.lastHoveredListItem=t,yo(i,Ks),yo(i,`ag-item-highlight-${t.position}`))}getListDragItem(e){const t=this.virtualList.getGui(),n=parseFloat(window.getComputedStyle(t).paddingTop),i=this.virtualList.getRowHeight(),o=this.virtualList.getScrollTop(),r=Math.max(0,(e.y-n+o)/i),a=this.params.getNumRows(this.comp)-1,s=0|Math.min(a,r);return{rowIndex:s,position:Math.round(r)>r||r>a?"bottom":"top",component:this.virtualList.getComponentAt(s)}}onDragStop(){this.moveBlocked||(this.params.moveItem(this.currentDragValue,this.lastHoveredListItem),this.clearHoveredItems(),this.autoScrollService.ensureCleared())}onDragLeave(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()}clearHoveredItems(){this.virtualList.getGui().querySelectorAll(`.${Ks}`).forEach((e=>{[Ks,"ag-item-highlight-top","ag-item-highlight-bottom"].forEach((t=>{e.classList.remove(t)}))})),this.lastHoveredListItem=null}};function $s(e){const t=e;return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():e}_e([xt("dragAndDropService")],Ys.prototype,"dragAndDropService",2),_e([Tt],Ys.prototype,"postConstruct",1);var Qs=class{constructor(){this.detailGridInfoMap={},this.destroyCalled=!1}init(){switch(this.rowModel.getType()){case"clientSide":this.clientSideRowModel=this.rowModel;break;case"infinite":this.infiniteRowModel=this.rowModel;break;case"serverSide":this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady((e=>{this.gridBodyCtrl=e.gridBodyCtrl}))}__getAlignedGridService(){return this.alignedGridsService}getGridId(){return this.context.getGridId()}addDetailGridInfo(e,t){this.detailGridInfoMap[e]=t}removeDetailGridInfo(e){delete this.detailGridInfoMap[e]}getDetailGridInfo(e){return this.detailGridInfoMap[e]}forEachDetailGridInfo(e){let t=0;qe(this.detailGridInfoMap,((n,i)=>{ze(i)&&(e(i,t),t++)}))}getDataAsCsv(e){if(St.__assertRegistered("@ag-grid-community/csv-export","api.getDataAsCsv",this.context.getGridId()))return this.csvCreator.getDataAsCsv(e)}exportDataAsCsv(e){St.__assertRegistered("@ag-grid-community/csv-export","api.exportDataAsCsv",this.context.getGridId())&&this.csvCreator.exportDataAsCsv(e)}assertNotExcelMultiSheet(e,t){return!!St.__assertRegistered("@ag-grid-enterprise/excel-export","api."+e,this.context.getGridId())&&(1!==this.excelCreator.getFactoryMode()||(console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'"),!1))}getDataAsExcel(e){if(this.assertNotExcelMultiSheet("getDataAsExcel",e))return this.excelCreator.getDataAsExcel(e)}exportDataAsExcel(e){this.assertNotExcelMultiSheet("exportDataAsExcel",e)&&this.excelCreator.exportDataAsExcel(e)}getSheetDataForExcel(e){if(St.__assertRegistered("@ag-grid-enterprise/excel-export","api.getSheetDataForExcel",this.context.getGridId()))return this.excelCreator.setFactoryMode(1),this.excelCreator.getSheetDataForExcel(e)}getMultipleSheetsAsExcel(e){if(St.__assertRegistered("@ag-grid-enterprise/excel-export","api.getMultipleSheetsAsExcel",this.context.getGridId()))return this.excelCreator.getMultipleSheetsAsExcel(e)}exportMultipleSheetsAsExcel(e){St.__assertRegistered("@ag-grid-enterprise/excel-export","api.exportMultipleSheetsAsExcel",this.context.getGridId())&&this.excelCreator.exportMultipleSheetsAsExcel(e)}setGridAriaProperty(e,t){if(!e)return;const n=this.ctrlsService.getGridBodyCtrl().getGui(),i=`aria-${e}`;null===t?n.removeAttribute(i):n.setAttribute(i,t)}logMissingRowModel(e,...t){console.error(`AG Grid: api.${e} can only be called when gridOptions.rowModelType is ${t.join(" or ")}`)}logDeprecation(e,t,n,i){st(`Since ${e} api.${t} is deprecated. Please use ${n} instead. ${null!=i?i:""}`)}getPinnedTopRowCount(){return this.pinnedRowModel.getPinnedTopRowCount()}getPinnedBottomRowCount(){return this.pinnedRowModel.getPinnedBottomRowCount()}getPinnedTopRow(e){return this.pinnedRowModel.getPinnedTopRow(e)}getPinnedBottomRow(e){return this.pinnedRowModel.getPinnedBottomRow(e)}expireValueCache(){this.valueCache.expire()}getVerticalPixelRange(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()}getHorizontalPixelRange(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()}refreshCells(e={}){this.frameworkOverrides.wrapIncoming((()=>this.rowRenderer.refreshCells(e)))}flashCells(e={}){const t=e=>st(`Since v31.1 api.flashCells parameter '${e}Delay' is deprecated. Please use '${e}Duration' instead.`);ze(e.fadeDelay)&&t("fade"),ze(e.flashDelay)&&t("flash"),this.frameworkOverrides.wrapIncoming((()=>this.rowRenderer.flashCells(e)))}redrawRows(e={}){const t=e?e.rowNodes:void 0;this.frameworkOverrides.wrapIncoming((()=>this.rowRenderer.redrawRows(t)))}refreshHeader(){this.frameworkOverrides.wrapIncoming((()=>this.ctrlsService.getHeaderRowContainerCtrls().forEach((e=>e.refresh()))))}isAnyFilterPresent(){return this.filterManager.isAnyFilterPresent()}isColumnFilterPresent(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()}isQuickFilterPresent(){return this.filterManager.isQuickFilterPresent()}getModel(){return st("Since v31.1 getModel() is deprecated. Please use the appropriate grid API methods instead."),this.rowModel}setRowNodeExpanded(e,t,n,i){this.expansionService.setRowNodeExpanded(e,t,n,i)}onGroupExpandedOrCollapsed(){Ve(this.clientSideRowModel)?this.logMissingRowModel("onGroupExpandedOrCollapsed","clientSide"):this.expansionService.onGroupExpandedOrCollapsed()}refreshClientSideRowModel(e){Ve(this.clientSideRowModel)?this.logMissingRowModel("refreshClientSideRowModel","clientSide"):this.clientSideRowModel.refreshModel(e)}isAnimationFrameQueueEmpty(){return this.animationFrameService.isQueueEmpty()}flushAllAnimationFrames(){this.animationFrameService.flushAllFrames()}getRowNode(e){return this.rowModel.getRowNode(e)}getSizesForCurrentTheme(){return{rowHeight:this.gos.getRowHeightAsNumber(),headerHeight:this.columnModel.getHeaderHeight()}}expandAll(){this.clientSideRowModel||this.serverSideRowModel?this.expansionService.expandAll(!0):this.logMissingRowModel("expandAll","clientSide","serverSide")}collapseAll(){this.clientSideRowModel||this.serverSideRowModel?this.expansionService.expandAll(!1):this.logMissingRowModel("collapseAll","clientSide","serverSide")}addRenderedRowListener(e,t,n){this.rowRenderer.addRenderedRowListener(e,t,n)}getQuickFilter(){return this.gos.get("quickFilterText")}getAdvancedFilterModel(){return St.__assertRegistered("@ag-grid-enterprise/advanced-filter","api.getAdvancedFilterModel",this.context.getGridId())?this.filterManager.getAdvancedFilterModel():null}setAdvancedFilterModel(e){this.filterManager.setAdvancedFilterModel(e)}showAdvancedFilterBuilder(){St.__assertRegistered("@ag-grid-enterprise/advanced-filter","api.setAdvancedFilterModel",this.context.getGridId())&&this.filterManager.showAdvancedFilterBuilder("api")}setNodesSelected(e){if(!e.nodes.every((e=>e.rowPinned?(console.warn("AG Grid: cannot select pinned rows"),!1):void 0!==e.id||(console.warn("AG Grid: cannot select node until id for node is known"),!1))))return;const{nodes:t,source:n,newValue:i}=e,o=t;this.selectionService.setNodesSelected({nodes:o,source:null!=n?n:"api",newValue:i})}selectAll(e="apiSelectAll"){this.selectionService.selectAllRowNodes({source:e})}deselectAll(e="apiSelectAll"){this.selectionService.deselectAllRowNodes({source:e})}selectAllFiltered(e="apiSelectAllFiltered"){this.selectionService.selectAllRowNodes({source:e,justFiltered:!0})}deselectAllFiltered(e="apiSelectAllFiltered"){this.selectionService.deselectAllRowNodes({source:e,justFiltered:!0})}getServerSideSelectionState(){return Ve(this.serverSideRowModel)?(this.logMissingRowModel("getServerSideSelectionState","serverSide"),null):this.selectionService.getSelectionState()}setServerSideSelectionState(e){Ve(this.serverSideRowModel)?this.logMissingRowModel("setServerSideSelectionState","serverSide"):this.selectionService.setSelectionState(e,"api")}selectAllOnCurrentPage(e="apiSelectAllCurrentPage"){this.selectionService.selectAllRowNodes({source:e,justCurrentPage:!0})}deselectAllOnCurrentPage(e="apiSelectAllCurrentPage"){this.selectionService.deselectAllRowNodes({source:e,justCurrentPage:!0})}showLoadingOverlay(){this.overlayService.showLoadingOverlay()}showNoRowsOverlay(){this.overlayService.showNoRowsOverlay()}hideOverlay(){this.overlayService.hideOverlay()}getSelectedNodes(){return this.selectionService.getSelectedNodes()}getSelectedRows(){return this.selectionService.getSelectedRows()}getBestCostNodeSelection(){if(!Ve(this.clientSideRowModel))return this.selectionService.getBestCostNodeSelection();this.logMissingRowModel("getBestCostNodeSelection","clientSide")}getRenderedNodes(){return this.rowRenderer.getRenderedNodes()}ensureColumnVisible(e,t="auto"){this.frameworkOverrides.wrapIncoming((()=>this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(e,t)),"ensureVisible")}ensureIndexVisible(e,t){this.frameworkOverrides.wrapIncoming((()=>this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e,t)),"ensureVisible")}ensureNodeVisible(e,t=null){this.frameworkOverrides.wrapIncoming((()=>this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(e,t)),"ensureVisible")}forEachLeafNode(e){Ve(this.clientSideRowModel)?this.logMissingRowModel("forEachLeafNode","clientSide"):this.clientSideRowModel.forEachLeafNode(e)}forEachNode(e,t){this.rowModel.forEachNode(e,t)}forEachNodeAfterFilter(e){Ve(this.clientSideRowModel)?this.logMissingRowModel("forEachNodeAfterFilter","clientSide"):this.clientSideRowModel.forEachNodeAfterFilter(e)}forEachNodeAfterFilterAndSort(e){Ve(this.clientSideRowModel)?this.logMissingRowModel("forEachNodeAfterFilterAndSort","clientSide"):this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)}getFilterInstance(e,t){return st("'getFilterInstance' is deprecated. To get/set individual filter models, use 'getColumnFilterModel' or 'setColumnFilterModel' instead. To get hold of the filter instance, use 'getColumnFilterInstance' which returns the instance asynchronously."),this.filterManager.getFilterInstance(e,t)}getColumnFilterInstance(e){return this.filterManager.getColumnFilterInstance(e)}destroyFilter(e){const t=this.columnModel.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"api")}getStatusPanel(e){if(!St.__assertRegistered("@ag-grid-enterprise/status-bar","api.getStatusPanel",this.context.getGridId()))return;return $s(this.statusBarService.getStatusPanel(e))}getColumnDef(e){const t=this.columnModel.getPrimaryColumn(e);return t?t.getColDef():null}getColumnDefs(){return this.columnModel.getColumnDefs()}onFilterChanged(e="api"){this.filterManager.onFilterChanged({source:e})}onSortChanged(){this.sortController.onSortChanged("api")}setFilterModel(e){this.frameworkOverrides.wrapIncoming((()=>this.filterManager.setFilterModel(e)))}getFilterModel(){return this.filterManager.getFilterModel()}getColumnFilterModel(e){return this.filterManager.getColumnFilterModel(e)}setColumnFilterModel(e,t){return this.filterManager.setColumnFilterModel(e,t)}getFocusedCell(){return this.focusService.getFocusedCell()}clearFocusedCell(){return this.focusService.clearFocusedCell()}setFocusedCell(e,t,n){this.focusService.setFocusedCell({rowIndex:e,column:t,rowPinned:n,forceBrowserFocus:!0})}addRowDropZone(e){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(e)}removeRowDropZone(e){const t=this.dragAndDropService.findExternalZone(e);t&&this.dragAndDropService.removeDropTarget(t)}getRowDropZoneParams(e){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(e)}assertSideBarLoaded(e){return St.__assertRegistered("@ag-grid-enterprise/side-bar","api."+e,this.context.getGridId())}isSideBarVisible(){return this.assertSideBarLoaded("isSideBarVisible")&&this.sideBarService.getSideBarComp().isDisplayed()}setSideBarVisible(e){this.assertSideBarLoaded("setSideBarVisible")&&this.sideBarService.getSideBarComp().setDisplayed(e)}setSideBarPosition(e){this.assertSideBarLoaded("setSideBarPosition")&&this.sideBarService.getSideBarComp().setSideBarPosition(e)}openToolPanel(e){this.assertSideBarLoaded("openToolPanel")&&this.sideBarService.getSideBarComp().openToolPanel(e,"api")}closeToolPanel(){this.assertSideBarLoaded("closeToolPanel")&&this.sideBarService.getSideBarComp().close("api")}getOpenedToolPanel(){return this.assertSideBarLoaded("getOpenedToolPanel")?this.sideBarService.getSideBarComp().openedItem():null}refreshToolPanel(){this.assertSideBarLoaded("refreshToolPanel")&&this.sideBarService.getSideBarComp().refresh()}isToolPanelShowing(){return this.assertSideBarLoaded("isToolPanelShowing")&&this.sideBarService.getSideBarComp().isToolPanelShowing()}getToolPanelInstance(e){if(this.assertSideBarLoaded("getToolPanelInstance")){return $s(this.sideBarService.getSideBarComp().getToolPanelInstance(e))}}getSideBar(){if(this.assertSideBarLoaded("getSideBar"))return this.sideBarService.getSideBarComp().getDef()}resetRowHeights(){if(ze(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive())return void console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");this.clientSideRowModel.resetRowHeights()}}setRowCount(e,t){if(this.serverSideRowModel)return this.columnModel.isRowGroupEmpty()?void this.serverSideRowModel.setRowCount(e,t):void console.error("AG Grid: setRowCount cannot be used while using row grouping.");this.infiniteRowModel?this.infiniteRowModel.setRowCount(e,t):this.logMissingRowModel("setRowCount","infinite","serverSide")}onRowHeightChanged(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()}getValue(e,t){return this.logDeprecation("31.3","getValue","getCellValue"),this.getCellValue({colKey:e,rowNode:t})}getCellValue(e){var t;const{colKey:n,rowNode:i,useFormatter:o}=e;let r=null!=(t=this.columnModel.getPrimaryColumn(n))?t:this.columnModel.getGridColumn(n);if(Ve(r))return null;const a=this.valueService.getValue(r,i);if(o){const e=this.valueService.formatValue(r,i,a);return null!=e?e:On(a,!0)}return a}addEventListener(e,t){this.apiEventService.addEventListener(e,t)}addGlobalListener(e){this.apiEventService.addGlobalListener(e)}removeEventListener(e,t){this.apiEventService.removeEventListener(e,t)}removeGlobalListener(e){this.apiEventService.removeGlobalListener(e)}dispatchEvent(e){this.eventService.dispatchEvent(e)}destroy(){var e;const t=`See ${this.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}`;if(this.destroyCalled)return;const n={type:An.EVENT_GRID_PRE_DESTROYED,state:this.getState()};this.dispatchEvent(n),this.destroyCalled=!0,null==(e=this.ctrlsService.get("gridCtrl"))||e.destroyGridUi(),this.context.destroy(),this.detailGridInfoMap={},nt(this,["isDestroyed"],t)}isDestroyed(){return this.destroyCalled}resetQuickFilter(){this.filterManager.resetQuickFilterCache()}getCellRanges(){return this.rangeService?this.rangeService.getCellRanges():(St.__assertRegistered("@ag-grid-enterprise/range-selection","api.getCellRanges",this.context.getGridId()),null)}addCellRange(e){this.rangeService?this.rangeService.addCellRange(e):St.__assertRegistered("@ag-grid-enterprise/range-selection","api.addCellRange",this.context.getGridId())}clearRangeSelection(){this.rangeService&&this.rangeService.removeAllCellRanges(),St.__assertRegistered("@ag-grid-enterprise/range-selection","gridApi.clearRangeSelection",this.context.getGridId())}undoCellEditing(){this.undoRedoService.undo("api")}redoCellEditing(){this.undoRedoService.redo("api")}getCurrentUndoSize(){return this.undoRedoService.getCurrentUndoStackSize()}getCurrentRedoSize(){return this.undoRedoService.getCurrentRedoStackSize()}assertChart(e,t){if(St.__assertRegistered("@ag-grid-enterprise/charts","api."+e,this.context.getGridId()))return this.frameworkOverrides.wrapIncoming((()=>t()))}getChartModels(){return this.assertChart("getChartModels",(()=>this.chartService.getChartModels()))}getChartRef(e){return this.assertChart("getChartRef",(()=>this.chartService.getChartRef(e)))}getChartImageDataURL(e){return this.assertChart("getChartImageDataURL",(()=>this.chartService.getChartImageDataURL(e)))}downloadChart(e){return this.assertChart("downloadChart",(()=>this.chartService.downloadChart(e)))}openChartToolPanel(e){return this.assertChart("openChartToolPanel",(()=>this.chartService.openChartToolPanel(e)))}closeChartToolPanel(e){return this.assertChart("closeChartToolPanel",(()=>this.chartService.closeChartToolPanel(e.chartId)))}createRangeChart(e){return this.assertChart("createRangeChart",(()=>this.chartService.createRangeChart(e)))}createPivotChart(e){return this.assertChart("createPivotChart",(()=>this.chartService.createPivotChart(e)))}createCrossFilterChart(e){return this.assertChart("createCrossFilterChart",(()=>this.chartService.createCrossFilterChart(e)))}updateChart(e){return this.assertChart("updateChart",(()=>this.chartService.updateChart(e)))}restoreChart(e,t){return this.assertChart("restoreChart",(()=>this.chartService.restoreChart(e,t)))}assertClipboard(e,t){St.__assertRegistered("@ag-grid-enterprise/clipboard","api"+e,this.context.getGridId())&&t()}copyToClipboard(e){this.assertClipboard("copyToClipboard",(()=>this.clipboardService.copyToClipboard(e)))}cutToClipboard(e){this.assertClipboard("cutToClipboard",(()=>this.clipboardService.cutToClipboard(e)))}copySelectedRowsToClipboard(e){this.assertClipboard("copySelectedRowsToClipboard",(()=>this.clipboardService.copySelectedRowsToClipboard(e)))}copySelectedRangeToClipboard(e){this.assertClipboard("copySelectedRangeToClipboard",(()=>this.clipboardService.copySelectedRangeToClipboard(e)))}copySelectedRangeDown(){this.assertClipboard("copySelectedRangeDown",(()=>this.clipboardService.copyRangeDown()))}pasteFromClipboard(){this.assertClipboard("pasteFromClipboard",(()=>this.clipboardService.pasteFromClipboard()))}showColumnMenuAfterButtonClick(e,t){st("'showColumnMenuAfterButtonClick' is deprecated. Use 'IHeaderParams.showColumnMenu' within a header component, or 'api.showColumnMenu' elsewhere.");const n=this.columnModel.getGridColumn(e);this.menuService.showColumnMenu({column:n,buttonElement:t,positionBy:"button"})}showColumnMenuAfterMouseClick(e,t){st("'showColumnMenuAfterMouseClick' is deprecated. Use 'IHeaderParams.showColumnMenuAfterMouseClick' within a header component, or 'api.showColumnMenu' elsewhere.");let n=this.columnModel.getGridColumn(e);n||(n=this.columnModel.getPrimaryColumn(e)),n?this.menuService.showColumnMenu({column:n,mouseEvent:t,positionBy:"mouse"}):console.error(`AG Grid: column '${e}' not found`)}showContextMenu(e){const{rowNode:t,column:n,value:i,x:o,y:r}=e||{};let{x:a,y:s}=this.menuService.getContextMenuPosition(t,n);null!=o&&(a=o),null!=r&&(s=r),this.menuService.showContextMenu({mouseEvent:new MouseEvent("mousedown",{clientX:a,clientY:s}),rowNode:t,column:n,value:i})}showColumnChooser(e){this.menuService.showColumnChooser({chooserParams:e})}showColumnFilter(e){const t=this.columnModel.getGridColumn(e);t?this.menuService.showFilterMenu({column:t,containerType:"columnFilter",positionBy:"auto"}):console.error(`AG Grid: column '${e}' not found`)}showColumnMenu(e){const t=this.columnModel.getGridColumn(e);t?this.menuService.showColumnMenu({column:t,positionBy:"auto"}):console.error(`AG Grid: column '${e}' not found`)}hidePopupMenu(){this.menuService.hidePopupMenu()}hideColumnChooser(){this.menuService.hideColumnChooser()}tabToNextCell(e){return this.navigationService.tabToNextCell(!1,e)}tabToPreviousCell(e){return this.navigationService.tabToNextCell(!0,e)}getCellRendererInstances(e={}){return this.rowRenderer.getCellRendererInstances(e).map($s)}getCellEditorInstances(e={}){return this.rowRenderer.getCellEditorInstances(e).map($s)}getEditingCells(){return this.rowRenderer.getEditingCells()}stopEditing(e=!1){this.rowRenderer.stopEditing(e)}startEditingCell(e){const t=this.columnModel.getGridColumn(e.colKey);if(!t)return void console.warn(`AG Grid: no column found for ${e.colKey}`);const n={rowIndex:e.rowIndex,rowPinned:e.rowPinned||null,column:t};null==e.rowPinned&&this.ensureIndexVisible(e.rowIndex),this.ensureColumnVisible(e.colKey);const i=this.navigationService.getCellByPosition(n);i&&(this.focusService.isCellFocused(n)||this.focusService.setFocusedCell(n),i.startRowOrCellEdit(e.key))}addAggFunc(e,t){this.logDeprecation("v31.1","addAggFunc(key, func)","addAggFuncs({ key: func })"),this.aggFuncService&&this.aggFuncService.addAggFuncs({key:t})}addAggFuncs(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)}clearAggFuncs(){this.aggFuncService&&this.aggFuncService.clear()}applyServerSideTransaction(e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(e);this.logMissingRowModel("applyServerSideTransaction","serverSide")}applyServerSideTransactionAsync(e,t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(e,t);this.logMissingRowModel("applyServerSideTransactionAsync","serverSide")}applyServerSideRowData(e){var t,n;const i=null!=(t=e.startRow)?t:0,o=null!=(n=e.route)?n:[];i<0?console.warn(`AG Grid: invalid value ${e.startRow} for startRow, the value should be >= 0`):this.serverSideRowModel?this.serverSideRowModel.applyRowData(e.successParams,i,o):this.logMissingRowModel("setServerSideDatasource","serverSide")}retryServerSideLoads(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():this.logMissingRowModel("retryServerSideLoads","serverSide")}flushServerSideAsyncTransactions(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();this.logMissingRowModel("flushServerSideAsyncTransactions","serverSide")}applyTransaction(e){if(this.clientSideRowModel)return this.frameworkOverrides.wrapIncoming((()=>this.clientSideRowModel.updateRowData(e)));this.logMissingRowModel("applyTransaction","clientSide")}applyTransactionAsync(e,t){this.clientSideRowModel?this.frameworkOverrides.wrapIncoming((()=>this.clientSideRowModel.batchUpdateRowData(e,t))):this.logMissingRowModel("applyTransactionAsync","clientSide")}flushAsyncTransactions(){this.clientSideRowModel?this.frameworkOverrides.wrapIncoming((()=>this.clientSideRowModel.flushAsyncTransactions())):this.logMissingRowModel("flushAsyncTransactions","clientSide")}refreshInfiniteCache(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():this.logMissingRowModel("refreshInfiniteCache","infinite")}purgeInfiniteCache(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():this.logMissingRowModel("purgeInfiniteCache","infinite")}refreshServerSide(e){this.serverSideRowModel?this.serverSideRowModel.refreshStore(e):this.logMissingRowModel("refreshServerSide","serverSide")}getServerSideGroupLevelState(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(this.logMissingRowModel("getServerSideGroupLevelState","serverSide"),[])}getInfiniteRowCount(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();this.logMissingRowModel("getInfiniteRowCount","infinite")}isLastRowIndexKnown(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();this.logMissingRowModel("isLastRowIndexKnown","infinite")}getCacheBlockState(){return this.rowNodeBlockLoader.getBlockState()}getFirstDisplayedRow(){return this.logDeprecation("v31.1","getFirstDisplayedRow","getFirstDisplayedRowIndex"),this.getFirstDisplayedRowIndex()}getFirstDisplayedRowIndex(){return this.rowRenderer.getFirstVirtualRenderedRow()}getLastDisplayedRow(){return this.logDeprecation("v31.1","getLastDisplayedRow","getLastDisplayedRowIndex"),this.getLastDisplayedRowIndex()}getLastDisplayedRowIndex(){return this.rowRenderer.getLastVirtualRenderedRow()}getDisplayedRowAtIndex(e){return this.rowModel.getRow(e)}getDisplayedRowCount(){return this.rowModel.getRowCount()}paginationIsLastPageFound(){return this.paginationProxy.isLastPageFound()}paginationGetPageSize(){return this.paginationProxy.getPageSize()}paginationGetCurrentPage(){return this.paginationProxy.getCurrentPage()}paginationGetTotalPages(){return this.paginationProxy.getTotalPages()}paginationGetRowCount(){return this.paginationProxy.getMasterRowCount()}paginationGoToNextPage(){this.paginationProxy.goToNextPage()}paginationGoToPreviousPage(){this.paginationProxy.goToPreviousPage()}paginationGoToFirstPage(){this.paginationProxy.goToFirstPage()}paginationGoToLastPage(){this.paginationProxy.goToLastPage()}paginationGoToPage(e){this.paginationProxy.goToPage(e)}sizeColumnsToFit(e){"number"==typeof e?this.columnModel.sizeColumnsToFit(e,"api"):this.gridBodyCtrl.sizeColumnsToFit(e)}setColumnGroupOpened(e,t){this.columnModel.setColumnGroupOpened(e,t,"api")}getColumnGroup(e,t){return this.columnModel.getColumnGroup(e,t)}getProvidedColumnGroup(e){return this.columnModel.getProvidedColumnGroup(e)}getDisplayNameForColumn(e,t){return this.columnModel.getDisplayNameForColumn(e,t)||""}getDisplayNameForColumnGroup(e,t){return this.columnModel.getDisplayNameForColumnGroup(e,t)||""}getColumn(e){return this.columnModel.getPrimaryColumn(e)}getColumns(){return this.columnModel.getAllPrimaryColumns()}applyColumnState(e){return this.columnModel.applyColumnState(e,"api")}getColumnState(){return this.columnModel.getColumnState()}resetColumnState(){this.columnModel.resetColumnState("api")}getColumnGroupState(){return this.columnModel.getColumnGroupState()}setColumnGroupState(e){this.columnModel.setColumnGroupState(e,"api")}resetColumnGroupState(){this.columnModel.resetColumnGroupState("api")}isPinning(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()}isPinningLeft(){return this.columnModel.isPinningLeft()}isPinningRight(){return this.columnModel.isPinningRight()}getDisplayedColAfter(e){return this.columnModel.getDisplayedColAfter(e)}getDisplayedColBefore(e){return this.columnModel.getDisplayedColBefore(e)}setColumnVisible(e,t){this.logDeprecation("v31.1","setColumnVisible(key,visible)","setColumnsVisible([key],visible)"),this.columnModel.setColumnsVisible([e],t,"api")}setColumnsVisible(e,t){this.columnModel.setColumnsVisible(e,t,"api")}setColumnPinned(e,t){this.logDeprecation("v31.1","setColumnPinned(key,pinned)","setColumnsPinned([key],pinned)"),this.columnModel.setColumnsPinned([e],t,"api")}setColumnsPinned(e,t){this.columnModel.setColumnsPinned(e,t,"api")}getAllGridColumns(){return this.columnModel.getAllGridColumns()}getDisplayedLeftColumns(){return this.columnModel.getDisplayedLeftColumns()}getDisplayedCenterColumns(){return this.columnModel.getDisplayedCenterColumns()}getDisplayedRightColumns(){return this.columnModel.getDisplayedRightColumns()}getAllDisplayedColumns(){return this.columnModel.getAllDisplayedColumns()}getAllDisplayedVirtualColumns(){return this.columnModel.getViewportColumns()}moveColumn(e,t){this.logDeprecation("v31.1","moveColumn(key, toIndex)","moveColumns([key], toIndex)"),this.columnModel.moveColumns([e],t,"api")}moveColumnByIndex(e,t){this.columnModel.moveColumnByIndex(e,t,"api")}moveColumns(e,t){this.columnModel.moveColumns(e,t,"api")}moveRowGroupColumn(e,t){this.columnModel.moveRowGroupColumn(e,t,"api")}setColumnAggFunc(e,t){this.columnModel.setColumnAggFunc(e,t,"api")}setColumnWidth(e,t,n=!0,i="api"){this.logDeprecation("v31.1","setColumnWidth(col, width)","setColumnWidths([{key: col, newWidth: width}])"),this.columnModel.setColumnWidths([{key:e,newWidth:t}],!1,n,i)}setColumnWidths(e,t=!0,n="api"){this.columnModel.setColumnWidths(e,!1,t,n)}isPivotMode(){return this.columnModel.isPivotMode()}getPivotResultColumn(e,t){return this.columnModel.getSecondaryPivotColumn(e,t)}setValueColumns(e){this.columnModel.setValueColumns(e,"api")}getValueColumns(){return this.columnModel.getValueColumns()}removeValueColumn(e){this.logDeprecation("v31.1","removeValueColumn(colKey)","removeValueColumns([colKey])"),this.columnModel.removeValueColumns([e],"api")}removeValueColumns(e){this.columnModel.removeValueColumns(e,"api")}addValueColumn(e){this.logDeprecation("v31.1","addValueColumn(colKey)","addValueColumns([colKey])"),this.columnModel.addValueColumns([e],"api")}addValueColumns(e){this.columnModel.addValueColumns(e,"api")}setRowGroupColumns(e){this.columnModel.setRowGroupColumns(e,"api")}removeRowGroupColumn(e){this.logDeprecation("v31.1","removeRowGroupColumn(colKey)","removeRowGroupColumns([colKey])"),this.columnModel.removeRowGroupColumns([e],"api")}removeRowGroupColumns(e){this.columnModel.removeRowGroupColumns(e,"api")}addRowGroupColumn(e){this.logDeprecation("v31.1","addRowGroupColumn(colKey)","addRowGroupColumns([colKey])"),this.columnModel.addRowGroupColumns([e],"api")}addRowGroupColumns(e){this.columnModel.addRowGroupColumns(e,"api")}getRowGroupColumns(){return this.columnModel.getRowGroupColumns()}setPivotColumns(e){this.columnModel.setPivotColumns(e,"api")}removePivotColumn(e){this.logDeprecation("v31.1","removePivotColumn(colKey)","removePivotColumns([colKey])"),this.columnModel.removePivotColumns([e],"api")}removePivotColumns(e){this.columnModel.removePivotColumns(e,"api")}addPivotColumn(e){this.logDeprecation("v31.1","addPivotColumn(colKey)","addPivotColumns([colKey])"),this.columnModel.addPivotColumns([e],"api")}addPivotColumns(e){this.columnModel.addPivotColumns(e,"api")}getPivotColumns(){return this.columnModel.getPivotColumns()}getLeftDisplayedColumnGroups(){return this.columnModel.getDisplayedTreeLeft()}getCenterDisplayedColumnGroups(){return this.columnModel.getDisplayedTreeCentre()}getRightDisplayedColumnGroups(){return this.columnModel.getDisplayedTreeRight()}getAllDisplayedColumnGroups(){return this.columnModel.getAllDisplayedTrees()}autoSizeColumn(e,t){return this.logDeprecation("v31.1","autoSizeColumn(key, skipHeader)","autoSizeColumns([key], skipHeader)"),this.columnModel.autoSizeColumns({columns:[e],skipHeader:t,source:"api"})}autoSizeColumns(e,t){this.columnModel.autoSizeColumns({columns:e,skipHeader:t,source:"api"})}autoSizeAllColumns(e){this.columnModel.autoSizeAllColumns("api",e)}setPivotResultColumns(e){this.columnModel.setSecondaryColumns(e,"api")}getPivotResultColumns(){return this.columnModel.getSecondaryColumns()}getState(){return this.stateService.getState()}getGridOption(e){return this.gos.get(e)}setGridOption(e,t){this.updateGridOptions({[e]:t})}updateGridOptions(e){this.gos.updateGridOptions({options:e})}__internalUpdateGridOptions(e,t){this.gos.updateGridOptions({options:e,force:t,source:"gridOptionsUpdated"})}deprecatedUpdateGridOption(e,t){st(`set${e.charAt(0).toUpperCase()}${e.slice(1,e.length)} is deprecated. Please use 'api.setGridOption('${e}', newValue)' or 'api.updateGridOptions({ ${e}: newValue })' instead.`),this.setGridOption(e,t)}setPivotMode(e){this.deprecatedUpdateGridOption("pivotMode",e)}setPinnedTopRowData(e){this.deprecatedUpdateGridOption("pinnedTopRowData",e)}setPinnedBottomRowData(e){this.deprecatedUpdateGridOption("pinnedBottomRowData",e)}setPopupParent(e){this.deprecatedUpdateGridOption("popupParent",e)}setSuppressModelUpdateAfterUpdateTransaction(e){this.deprecatedUpdateGridOption("suppressModelUpdateAfterUpdateTransaction",e)}setDataTypeDefinitions(e){this.deprecatedUpdateGridOption("dataTypeDefinitions",e)}setPagination(e){this.deprecatedUpdateGridOption("pagination",e)}paginationSetPageSize(e){this.deprecatedUpdateGridOption("paginationPageSize",e)}setSideBar(e){this.deprecatedUpdateGridOption("sideBar",e)}setSuppressClipboardPaste(e){this.deprecatedUpdateGridOption("suppressClipboardPaste",e)}setGroupRemoveSingleChildren(e){this.deprecatedUpdateGridOption("groupRemoveSingleChildren",e)}setGroupRemoveLowestSingleChildren(e){this.deprecatedUpdateGridOption("groupRemoveLowestSingleChildren",e)}setGroupDisplayType(e){this.deprecatedUpdateGridOption("groupDisplayType",e)}setGroupIncludeFooter(e){this.deprecatedUpdateGridOption("groupIncludeFooter",e)}setGroupIncludeTotalFooter(e){this.deprecatedUpdateGridOption("groupIncludeTotalFooter",e)}setRowClass(e){this.deprecatedUpdateGridOption("rowClass",e)}setDeltaSort(e){this.deprecatedUpdateGridOption("deltaSort",e)}setSuppressRowDrag(e){this.deprecatedUpdateGridOption("suppressRowDrag",e)}setSuppressMoveWhenRowDragging(e){this.deprecatedUpdateGridOption("suppressMoveWhenRowDragging",e)}setSuppressRowClickSelection(e){this.deprecatedUpdateGridOption("suppressRowClickSelection",e)}setEnableAdvancedFilter(e){this.deprecatedUpdateGridOption("enableAdvancedFilter",e)}setIncludeHiddenColumnsInAdvancedFilter(e){this.deprecatedUpdateGridOption("includeHiddenColumnsInAdvancedFilter",e)}setAdvancedFilterParent(e){this.deprecatedUpdateGridOption("advancedFilterParent",e)}setAdvancedFilterBuilderParams(e){this.deprecatedUpdateGridOption("advancedFilterBuilderParams",e)}setQuickFilter(e){st("setQuickFilter is deprecated. Please use 'api.setGridOption('quickFilterText', newValue)' or 'api.updateGridOptions({ quickFilterText: newValue })' instead."),this.gos.updateGridOptions({options:{quickFilterText:e}})}setExcludeHiddenColumnsFromQuickFilter(e){this.deprecatedUpdateGridOption("includeHiddenColumnsInQuickFilter",!e)}setIncludeHiddenColumnsInQuickFilter(e){this.deprecatedUpdateGridOption("includeHiddenColumnsInQuickFilter",e)}setQuickFilterParser(e){this.deprecatedUpdateGridOption("quickFilterParser",e)}setQuickFilterMatcher(e){this.deprecatedUpdateGridOption("quickFilterMatcher",e)}setAlwaysShowHorizontalScroll(e){this.deprecatedUpdateGridOption("alwaysShowHorizontalScroll",e)}setAlwaysShowVerticalScroll(e){this.deprecatedUpdateGridOption("alwaysShowVerticalScroll",e)}setFunctionsReadOnly(e){this.deprecatedUpdateGridOption("functionsReadOnly",e)}setColumnDefs(e,t="api"){st("setColumnDefs is deprecated. Please use 'api.setGridOption('columnDefs', newValue)' or 'api.updateGridOptions({ columnDefs: newValue })' instead."),this.gos.updateGridOptions({options:{columnDefs:e},source:t})}setAutoGroupColumnDef(e,t="api"){st("setAutoGroupColumnDef is deprecated. Please use 'api.setGridOption('autoGroupColumnDef', newValue)' or 'api.updateGridOptions({ autoGroupColumnDef: newValue })' instead."),this.gos.updateGridOptions({options:{autoGroupColumnDef:e},source:t})}setDefaultColDef(e,t="api"){st("setDefaultColDef is deprecated. Please use 'api.setGridOption('defaultColDef', newValue)' or 'api.updateGridOptions({ defaultColDef: newValue })' instead."),this.gos.updateGridOptions({options:{defaultColDef:e},source:t})}setColumnTypes(e,t="api"){st("setColumnTypes is deprecated. Please use 'api.setGridOption('columnTypes', newValue)' or 'api.updateGridOptions({ columnTypes: newValue })' instead."),this.gos.updateGridOptions({options:{columnTypes:e},source:t})}setTreeData(e){this.deprecatedUpdateGridOption("treeData",e)}setServerSideDatasource(e){this.deprecatedUpdateGridOption("serverSideDatasource",e)}setCacheBlockSize(e){this.deprecatedUpdateGridOption("cacheBlockSize",e)}setDatasource(e){this.deprecatedUpdateGridOption("datasource",e)}setViewportDatasource(e){this.deprecatedUpdateGridOption("viewportDatasource",e)}setRowData(e){this.deprecatedUpdateGridOption("rowData",e)}setEnableCellTextSelection(e){this.deprecatedUpdateGridOption("enableCellTextSelection",e)}setHeaderHeight(e){this.deprecatedUpdateGridOption("headerHeight",e)}setDomLayout(e){this.deprecatedUpdateGridOption("domLayout",e)}setFillHandleDirection(e){this.deprecatedUpdateGridOption("fillHandleDirection",e)}setGroupHeaderHeight(e){this.deprecatedUpdateGridOption("groupHeaderHeight",e)}setFloatingFiltersHeight(e){this.deprecatedUpdateGridOption("floatingFiltersHeight",e)}setPivotHeaderHeight(e){this.deprecatedUpdateGridOption("pivotHeaderHeight",e)}setPivotGroupHeaderHeight(e){this.deprecatedUpdateGridOption("pivotGroupHeaderHeight",e)}setAnimateRows(e){this.deprecatedUpdateGridOption("animateRows",e)}setIsExternalFilterPresent(e){this.deprecatedUpdateGridOption("isExternalFilterPresent",e)}setDoesExternalFilterPass(e){this.deprecatedUpdateGridOption("doesExternalFilterPass",e)}setNavigateToNextCell(e){this.deprecatedUpdateGridOption("navigateToNextCell",e)}setTabToNextCell(e){this.deprecatedUpdateGridOption("tabToNextCell",e)}setTabToNextHeader(e){this.deprecatedUpdateGridOption("tabToNextHeader",e)}setNavigateToNextHeader(e){this.deprecatedUpdateGridOption("navigateToNextHeader",e)}setRowGroupPanelShow(e){this.deprecatedUpdateGridOption("rowGroupPanelShow",e)}setGetGroupRowAgg(e){this.deprecatedUpdateGridOption("getGroupRowAgg",e)}setGetBusinessKeyForNode(e){this.deprecatedUpdateGridOption("getBusinessKeyForNode",e)}setGetChildCount(e){this.deprecatedUpdateGridOption("getChildCount",e)}setProcessRowPostCreate(e){this.deprecatedUpdateGridOption("processRowPostCreate",e)}setGetRowId(e){st("getRowId is a static property and can no longer be updated.")}setGetRowClass(e){this.deprecatedUpdateGridOption("getRowClass",e)}setIsFullWidthRow(e){this.deprecatedUpdateGridOption("isFullWidthRow",e)}setIsRowSelectable(e){this.deprecatedUpdateGridOption("isRowSelectable",e)}setIsRowMaster(e){this.deprecatedUpdateGridOption("isRowMaster",e)}setPostSortRows(e){this.deprecatedUpdateGridOption("postSortRows",e)}setGetDocument(e){this.deprecatedUpdateGridOption("getDocument",e)}setGetContextMenuItems(e){this.deprecatedUpdateGridOption("getContextMenuItems",e)}setGetMainMenuItems(e){this.deprecatedUpdateGridOption("getMainMenuItems",e)}setProcessCellForClipboard(e){this.deprecatedUpdateGridOption("processCellForClipboard",e)}setSendToClipboard(e){this.deprecatedUpdateGridOption("sendToClipboard",e)}setProcessCellFromClipboard(e){this.deprecatedUpdateGridOption("processCellFromClipboard",e)}setProcessPivotResultColDef(e){this.deprecatedUpdateGridOption("processPivotResultColDef",e)}setProcessPivotResultColGroupDef(e){this.deprecatedUpdateGridOption("processPivotResultColGroupDef",e)}setPostProcessPopup(e){this.deprecatedUpdateGridOption("postProcessPopup",e)}setInitialGroupOrderComparator(e){this.deprecatedUpdateGridOption("initialGroupOrderComparator",e)}setGetChartToolbarItems(e){this.deprecatedUpdateGridOption("getChartToolbarItems",e)}setPaginationNumberFormatter(e){this.deprecatedUpdateGridOption("paginationNumberFormatter",e)}setGetServerSideGroupLevelParams(e){this.deprecatedUpdateGridOption("getServerSideGroupLevelParams",e)}setIsServerSideGroupOpenByDefault(e){this.deprecatedUpdateGridOption("isServerSideGroupOpenByDefault",e)}setIsApplyServerSideTransaction(e){this.deprecatedUpdateGridOption("isApplyServerSideTransaction",e)}setIsServerSideGroup(e){this.deprecatedUpdateGridOption("isServerSideGroup",e)}setGetServerSideGroupKey(e){this.deprecatedUpdateGridOption("getServerSideGroupKey",e)}setGetRowStyle(e){this.deprecatedUpdateGridOption("getRowStyle",e)}setGetRowHeight(e){this.deprecatedUpdateGridOption("getRowHeight",e)}};_e([xt("rowRenderer")],Qs.prototype,"rowRenderer",2),_e([xt("navigationService")],Qs.prototype,"navigationService",2),_e([xt("filterManager")],Qs.prototype,"filterManager",2),_e([xt("columnModel")],Qs.prototype,"columnModel",2),_e([xt("selectionService")],Qs.prototype,"selectionService",2),_e([xt("gridOptionsService")],Qs.prototype,"gos",2),_e([xt("valueService")],Qs.prototype,"valueService",2),_e([xt("alignedGridsService")],Qs.prototype,"alignedGridsService",2),_e([xt("eventService")],Qs.prototype,"eventService",2),_e([xt("pinnedRowModel")],Qs.prototype,"pinnedRowModel",2),_e([xt("context")],Qs.prototype,"context",2),_e([xt("rowModel")],Qs.prototype,"rowModel",2),_e([xt("sortController")],Qs.prototype,"sortController",2),_e([xt("paginationProxy")],Qs.prototype,"paginationProxy",2),_e([xt("focusService")],Qs.prototype,"focusService",2),_e([xt("dragAndDropService")],Qs.prototype,"dragAndDropService",2),_e([xt("menuService")],Qs.prototype,"menuService",2),_e([xt("valueCache")],Qs.prototype,"valueCache",2),_e([xt("animationFrameService")],Qs.prototype,"animationFrameService",2),_e([xt("ctrlsService")],Qs.prototype,"ctrlsService",2),_e([xt("overlayService")],Qs.prototype,"overlayService",2),_e([xt("stateService")],Qs.prototype,"stateService",2),_e([xt("expansionService")],Qs.prototype,"expansionService",2),_e([xt("apiEventService")],Qs.prototype,"apiEventService",2),_e([xt("frameworkOverrides")],Qs.prototype,"frameworkOverrides",2),_e([xt("undoRedoService")],Qs.prototype,"undoRedoService",2),_e([xt("rowNodeBlockLoader")],Qs.prototype,"rowNodeBlockLoader",2),_e([Mt("csvCreator")],Qs.prototype,"csvCreator",2),_e([Mt("excelCreator")],Qs.prototype,"excelCreator",2),_e([Mt("rangeService")],Qs.prototype,"rangeService",2),_e([Mt("clipboardService")],Qs.prototype,"clipboardService",2),_e([Mt("aggFuncService")],Qs.prototype,"aggFuncService",2),_e([Mt("statusBarService")],Qs.prototype,"statusBarService",2),_e([Mt("chartService")],Qs.prototype,"chartService",2),_e([Mt("ssrmTransactionManager")],Qs.prototype,"serverSideTransactionManager",2),_e([Mt("sideBarService")],Qs.prototype,"sideBarService",2),_e([Tt],Qs.prototype,"init",1),Qs=_e([At("gridApi")],Qs);var qs=class extends En{constructor(){super(...arguments),this.quickFilter=null,this.quickFilterParts=null}postConstruct(){this.addManagedListener(this.eventService,An.EVENT_COLUMN_PIVOT_MODE_CHANGED,(()=>this.resetQuickFilterCache())),this.addManagedListener(this.eventService,An.EVENT_NEW_COLUMNS_LOADED,(()=>this.resetQuickFilterCache())),this.addManagedListener(this.eventService,An.EVENT_COLUMN_ROW_GROUP_CHANGED,(()=>this.resetQuickFilterCache())),this.addManagedListener(this.eventService,An.EVENT_COLUMN_VISIBLE,(()=>{this.gos.get("includeHiddenColumnsInQuickFilter")||this.resetQuickFilterCache()})),this.addManagedPropertyListener("quickFilterText",(e=>this.setQuickFilter(e.currentValue))),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],(()=>this.onQuickFilterColumnConfigChanged())),this.quickFilter=this.parseQuickFilter(this.gos.get("quickFilterText")),this.parser=this.gos.get("quickFilterParser"),this.matcher=this.gos.get("quickFilterMatcher"),this.setQuickFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],(()=>this.setQuickFilterParserAndMatcher()))}isQuickFilterPresent(){return null!==this.quickFilter}doesRowPassQuickFilter(e){const t=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassQuickFilterMatcher(t,e):this.quickFilterParts.every((n=>t?this.doesRowPassQuickFilterCache(e,n):this.doesRowPassQuickFilterNoCache(e,n)))}resetQuickFilterCache(){this.rowModel.forEachNode((e=>e.quickFilterAggregateText=null))}setQuickFilterParts(){const{quickFilter:e,parser:t}=this;this.quickFilterParts=e?t?t(e):e.split(" "):null}parseQuickFilter(e){return ze(e)?this.gos.isRowModelType("clientSide")?e.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null}setQuickFilter(e){if(null!=e&&"string"!=typeof e)return void console.warn("AG Grid - Grid option quickFilterText only supports string inputs, received: "+typeof e);const t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.dispatchEvent({type:qs.EVENT_QUICK_FILTER_CHANGED}))}setQuickFilterParserAndMatcher(){const e=this.gos.get("quickFilterParser"),t=this.gos.get("quickFilterMatcher"),n=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,n&&(this.setQuickFilterParts(),this.dispatchEvent({type:qs.EVENT_QUICK_FILTER_CHANGED}))}onQuickFilterColumnConfigChanged(){this.columnModel.refreshQuickFilterColumns(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.dispatchEvent({type:qs.EVENT_QUICK_FILTER_CHANGED})}doesRowPassQuickFilterNoCache(e,t){return this.columnModel.getAllColumnsForQuickFilter().some((n=>{const i=this.getQuickFilterTextForColumn(n,e);return ze(i)&&i.indexOf(t)>=0}))}doesRowPassQuickFilterCache(e,t){return this.checkGenerateQuickFilterAggregateText(e),e.quickFilterAggregateText.indexOf(t)>=0}doesRowPassQuickFilterMatcher(e,t){let n;e?(this.checkGenerateQuickFilterAggregateText(t),n=t.quickFilterAggregateText):n=this.getQuickFilterAggregateText(t);const{quickFilterParts:i,matcher:o}=this;return o(i,n)}checkGenerateQuickFilterAggregateText(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getQuickFilterAggregateText(e))}getQuickFilterTextForColumn(e,t){let n=this.valueService.getValue(e,t,!0);const i=e.getColDef();if(i.getQuickFilterText){const o=this.gos.addGridCommonParams({value:n,node:t,data:t.data,column:e,colDef:i});n=i.getQuickFilterText(o)}return ze(n)?n.toString().toUpperCase():null}getQuickFilterAggregateText(e){const t=[];return this.columnModel.getAllColumnsForQuickFilter().forEach((n=>{const i=this.getQuickFilterTextForColumn(n,e);ze(i)&&t.push(i)})),t.join(qs.QUICK_FILTER_SEPARATOR)}};qs.EVENT_QUICK_FILTER_CHANGED="quickFilterChanged",qs.QUICK_FILTER_SEPARATOR="\n",_e([xt("valueService")],qs.prototype,"valueService",2),_e([xt("columnModel")],qs.prototype,"columnModel",2),_e([xt("rowModel")],qs.prototype,"rowModel",2),_e([Tt],qs.prototype,"postConstruct",1),qs=_e([At("quickFilterService")],qs);var Xs=class extends En{constructor(){super(...arguments),this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue=[],this.advancedFilterModelUpdateQueue=[]}init(){var e,t,n;this.addManagedListener(this.eventService,An.EVENT_GRID_COLUMNS_CHANGED,(()=>this.onColumnsChanged())),this.addManagedListener(this.eventService,An.EVENT_COLUMN_VALUE_CHANGED,(()=>this.refreshFiltersForAggregations())),this.addManagedListener(this.eventService,An.EVENT_COLUMN_PIVOT_CHANGED,(()=>this.refreshFiltersForAggregations())),this.addManagedListener(this.eventService,An.EVENT_COLUMN_PIVOT_MODE_CHANGED,(()=>this.refreshFiltersForAggregations())),this.addManagedListener(this.eventService,An.EVENT_NEW_COLUMNS_LOADED,(()=>this.updateAdvancedFilterColumns())),this.addManagedListener(this.eventService,An.EVENT_COLUMN_VISIBLE,(()=>this.updateAdvancedFilterColumns())),this.addManagedListener(this.eventService,An.EVENT_ROW_DATA_UPDATED,(()=>this.onNewRowsLoaded("rowDataUpdated"))),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],(()=>{this.onFilterChanged({source:"api"})})),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",(()=>{this.updateAggFiltering(),this.onFilterChanged()})),this.addManagedPropertyListener("advancedFilterModel",(e=>this.setAdvancedFilterModel(e.currentValue))),this.addManagedListener(this.eventService,An.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,(({enabled:e})=>this.onAdvancedFilterEnabledChanged(e))),this.addManagedListener(this.eventService,An.EVENT_DATA_TYPES_INFERRED,(()=>this.processFilterModelUpdateQueue())),this.addManagedListener(this.quickFilterService,qs.EVENT_QUICK_FILTER_CHANGED,(()=>this.onFilterChanged({source:"quickFilter"}))),this.initialFilterModel=Ie({},null!=(n=null==(t=null==(e=this.gos.get("initialState"))?void 0:e.filter)?void 0:t.filterModel)?n:{})}isExternalFilterPresentCallback(){const e=this.gos.getCallback("isExternalFilterPresent");return"function"==typeof e&&e({})}doesExternalFilterPass(e){const t=this.gos.get("doesExternalFilterPass");return"function"==typeof t&&t(e)}setFilterModel(e,t="api"){if(this.isAdvancedFilterEnabled())return void this.warnAdvancedFilters();if(this.dataTypeService.isPendingInference())return void this.filterModelUpdateQueue.push({model:e,source:t});const n=[],i=this.getFilterModel();if(e){const t=Tr(Object.keys(e));this.allColumnFilters.forEach(((i,o)=>{const r=e[o];n.push(this.setModelOnFilterWrapper(i.filterPromise,r)),t.delete(o)})),t.forEach((t=>{const i=this.columnModel.getPrimaryColumn(t)||this.columnModel.getGridColumn(t);if(!i)return void console.warn("AG Grid: setFilterModel() - no column found for colId: "+t);if(!i.isFilterAllowed())return void console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+t);const o=this.getOrCreateFilterWrapper(i,"NO_UI");o?n.push(this.setModelOnFilterWrapper(o.filterPromise,e[t])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+t)}))}else this.allColumnFilters.forEach((e=>{n.push(this.setModelOnFilterWrapper(e.filterPromise,null))}));xr.all(n).then((()=>{const e=this.getFilterModel(),n=[];this.allColumnFilters.forEach(((t,o)=>{const r=i?i[o]:null,a=e?e[o]:null;Rr.jsonEquals(r,a)||n.push(t.column)})),n.length>0&&this.onFilterChanged({columns:n,source:t})}))}setModelOnFilterWrapper(e,t){return new xr((n=>{e.then((e=>{"function"!=typeof e.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),n()),(e.setModel(t)||xr.resolve()).then((()=>n()))}))}))}getFilterModel(){const e={};return this.allColumnFilters.forEach(((t,n)=>{const i=this.getModelFromFilterWrapper(t);ze(i)&&(e[n]=i)})),e}getModelFromFilterWrapper(e){var t;const n=e.filterPromise.resolveNow(null,(e=>e));return null==n?null!=(t=this.initialFilterModel[e.column.getColId()])?t:null:"function"!=typeof n.getModel?(console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel"),null):n.getModel()}isColumnFilterPresent(){return this.activeColumnFilters.length>0}isAggregateFilterPresent(){return!!this.activeAggregateFilters.length}isExternalFilterPresent(){return this.externalFilterPresent}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()}isAdvancedFilterPresent(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isFilterPresent()}onAdvancedFilterEnabledChanged(e){var t;e?this.allColumnFilters.size&&(this.allColumnFilters.forEach((e=>this.disposeFilterWrapper(e,"advancedFilterEnabled"))),this.onFilterChanged({source:"advancedFilter"})):(null==(t=this.advancedFilterService)?void 0:t.isFilterPresent())&&(this.advancedFilterService.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvancedFilterEnabled(){var e;return!!(null==(e=this.advancedFilterService)?void 0:e.isEnabled())}isAdvancedFilterHeaderActive(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isHeaderActive()}doAggregateFiltersPass(e,t){return this.doColumnFiltersPass(e,t,!0)}updateActiveFilters(){this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;const e=e=>!!e&&(e.isFilterActive?e.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1)),t=!!this.gos.getGroupAggFiltering(),n=e=>{if(!e.isPrimary())return!0;const n=!this.columnModel.isPivotActive();return!(!e.isValueActive()||!n)&&(!!this.columnModel.isPivotMode()||t)};this.allColumnFilters.forEach((t=>{if(t.filterPromise.resolveNow(!1,e)){const e=t.filterPromise.resolveNow(null,(e=>e));n(t.column)?this.activeAggregateFilters.push(e):this.activeColumnFilters.push(e)}}))}updateFilterFlagInColumns(e,t){this.allColumnFilters.forEach((n=>{const i=n.filterPromise.resolveNow(!1,(e=>e.isFilterActive()));n.column.setFilterActive(i,e,t)}))}isAnyFilterPresent(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()}doColumnFiltersPass(e,t,n){const{data:i,aggData:o}=e,r=n?this.activeAggregateFilters:this.activeColumnFilters,a=n?o:i;for(let n=0;n<r.length;n++){const i=r[n];if(null!=i&&i!==t){if("function"!=typeof i.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!i.doesFilterPass({node:e,data:a}))return!1}}return!0}resetQuickFilterCache(){this.quickFilterService.resetQuickFilterCache()}refreshFiltersForAggregations(){this.gos.getGroupAggFiltering()&&this.onFilterChanged()}callOnFilterChangedOutsideRenderCycle(e){const t=()=>this.onFilterChanged(e);this.rowRenderer.isRefreshInProgress()?setTimeout(t,0):t()}onFilterChanged(e={}){const{source:t,filterInstance:n,additionalEventAttributes:i,columns:o}=e;this.updateDependantFilters(),this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",i),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.allColumnFilters.forEach((e=>{e.filterPromise&&e.filterPromise.then((e=>{e&&e!==n&&e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));const r={source:t,type:An.EVENT_FILTER_CHANGED,columns:o||[]};i&&et(r,i),this.processingFilterChange=!0,this.eventService.dispatchEvent(r),this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){var e;return!(null!=(e=this.gos.get("allowShowChangeAfterFilter"))&&e)&&this.processingFilterChange}isQuickFilterPresent(){return this.quickFilterService.isQuickFilterPresent()}updateAggFiltering(){this.aggFiltering=!!this.gos.getGroupAggFiltering()}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.columnModel.isPivotMode())&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassOtherFilters(e,t){return this.doesRowPassFilter({rowNode:t,filterInstanceToSkip:e})}doesRowPassAggregateFilters(e){return!(this.isAggregateQuickFilterPresent()&&!this.quickFilterService.doesRowPassQuickFilter(e.rowNode))&&!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))}doesRowPassFilter(e){return!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilterService.doesRowPassQuickFilter(e.rowNode))&&(!(this.isExternalFilterPresent()&&!this.doesExternalFilterPass(e.rowNode))&&(!(this.isColumnFilterPresent()&&!this.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip))&&!(this.isAdvancedFilterPresent()&&!this.advancedFilterService.doesFilterPass(e.rowNode))))}onNewRowsLoaded(e){this.allColumnFilters.forEach((e=>{e.filterPromise.then((e=>{e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e,{afterDataChange:!0}),this.updateActiveFilters()}createValueGetter(e){return({node:t})=>this.valueService.getValue(e,t,!0)}createGetValue(e){return(t,n)=>{const i=n?this.columnModel.getGridColumn(n):e;return i?this.valueService.getValue(i,t,!0):void 0}}getFilterComponent(e,t,n=!0){var i;if(n)return(null==(i=this.getOrCreateFilterWrapper(e,t))?void 0:i.filterPromise)||null;const o=this.cachedFilter(e);return o?o.filterPromise:null}isFilterActive(e){const t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,(e=>e.isFilterActive()))}getOrCreateFilterWrapper(e,t){if(!e.isFilterAllowed())return null;let n=this.cachedFilter(e);return n||(n=this.createFilterWrapper(e,t),this.setColumnFilterWrapper(e,n)),n}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}getDefaultFilter(e){let t;if(St.__isRegistered("@ag-grid-enterprise/set-filter",this.context.getGridId()))t="agSetColumnFilter";else{const n=this.dataTypeService.getBaseDataType(e);t="number"===n?"agNumberColumnFilter":"date"===n||"dateString"===n?"agDateColumnFilter":"agTextColumnFilter"}return t}getDefaultFloatingFilter(e){let t;if(St.__isRegistered("@ag-grid-enterprise/set-filter",this.context.getGridId()))t="agSetColumnFloatingFilter";else{const n=this.dataTypeService.getBaseDataType(e);t="number"===n?"agNumberColumnFloatingFilter":"date"===n||"dateString"===n?"agDateColumnFloatingFilter":"agTextColumnFloatingFilter"}return t}createFilterInstance(e){const t=this.getDefaultFilter(e),n=e.getColDef();let i;const o=Le(Ie({},this.createFilterParams(e,n)),{filterModifiedCallback:()=>this.filterModifiedCallbackFactory(i,e)(),filterChangedCallback:t=>this.filterChangedCallbackFactory(i,e)(t),doesRowPassOtherFilter:e=>this.doesRowPassOtherFilters(i,e)}),r=this.userComponentFactory.getFilterDetails(n,o,t);return r?{filterPromise:()=>{const e=r.newAgStackInstance();return e&&e.then((e=>i=e)),e},compDetails:r}:{filterPromise:null,compDetails:null}}createFilterParams(e,t){return this.gos.addGridCommonParams({column:e,colDef:Xe(t),rowModel:this.rowModel,filterChangedCallback:()=>{},filterModifiedCallback:()=>{},valueGetter:this.createValueGetter(e),getValue:this.createGetValue(e),doesRowPassOtherFilter:()=>!0})}createFilterWrapper(e,t){var n;const i={column:e,filterPromise:null,compiledElement:null,compDetails:null},{filterPromise:o,compDetails:r}=this.createFilterInstance(e);return i.filterPromise=null!=(n=null==o?void 0:o())?n:null,i.compDetails=r,i}onColumnsChanged(){const e=[];this.allColumnFilters.forEach(((t,n)=>{let i;i=t.column.isPrimary()?this.columnModel.getPrimaryColumn(n):this.columnModel.getGridColumn(n),i&&i===t.column||(e.push(t.column),this.disposeFilterWrapper(t,"columnChanged"),this.disposeColumnListener(n))})),e.length>0?this.onFilterChanged({columns:e,source:"api"}):this.updateDependantFilters()}updateDependantFilters(){const e=this.columnModel.getGroupAutoColumns();null==e||e.forEach((e=>{"agGroupColumnFilter"===e.getColDef().filter&&this.getOrCreateFilterWrapper(e,"NO_UI")}))}isFilterAllowed(e){var t,n;if(this.isAdvancedFilterEnabled())return!1;if(!e.isFilterAllowed())return!1;const i=this.allColumnFilters.get(e.getColId());return null==(n=null==(t=null==i?void 0:i.filterPromise)?void 0:t.resolveNow(!0,(e=>"function"!=typeof(null==e?void 0:e.isFilterAllowed)||(null==e?void 0:e.isFilterAllowed()))))||n}getFloatingFilterCompDetails(e,t){const n=t=>{const n=this.getFilterComponent(e,"NO_UI");null!=n&&n.then((e=>{t($s(e))}))},i=e.getColDef(),o=Le(Ie({},this.createFilterParams(e,i)),{filterChangedCallback:()=>n((t=>this.filterChangedCallbackFactory(t,e)()))}),r=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(i,Ps,o);let a=this.userComponentFactory.getDefaultFloatingFilterType(i,(()=>this.getDefaultFloatingFilter(e)));null==a&&(a="agReadOnlyFloatingFilter");const s={column:e,filterParams:r,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:n,showParentFilter:t,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(i,s,a)}getCurrentFloatingFilterParentModel(e){const t=this.getFilterComponent(e,"NO_UI",!1);return t?t.resolveNow(null,(e=>e&&e.getModel())):null}destroyFilter(e,t="api"){const n=e.getColId(),i=this.allColumnFilters.get(n);this.disposeColumnListener(n),delete this.initialFilterModel[n],i&&(this.disposeFilterWrapper(i,t),this.onFilterChanged({columns:[e],source:"api"}))}disposeColumnListener(e){const t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())}disposeFilterWrapper(e,t){e.filterPromise.then((n=>{this.getContext().destroyBean(n),e.column.setFilterActive(!1,"filterDestroyed"),this.allColumnFilters.delete(e.column.getColId());const i={type:An.EVENT_FILTER_DESTROYED,source:t,column:e.column};this.eventService.dispatchEvent(i)}))}filterModifiedCallbackFactory(e,t){return()=>{const n={type:An.EVENT_FILTER_MODIFIED,column:t,filterInstance:e};this.eventService.dispatchEvent(n)}}filterChangedCallbackFactory(e,t){return n=>{var i;const o=null!=(i=null==n?void 0:n.source)?i:"api",r={filter:e,additionalEventAttributes:n,columns:[t],source:o};this.callOnFilterChangedOutsideRenderCycle(r)}}checkDestroyFilter(e){const t=this.allColumnFilters.get(e);if(!t)return;const n=t.column,{compDetails:i}=n.isFilterAllowed()?this.createFilterInstance(n):{compDetails:null};if(this.areFilterCompsDifferent(t.compDetails,i))return void this.destroyFilter(n,"paramsUpdated");const o=n.getColDef().filterParams;t.filterPromise?t.filterPromise.then((e=>{!1===(!(null==e?void 0:e.refresh)||e.refresh(Ie(Le(Ie({},this.createFilterParams(n,n.getColDef())),{filterModifiedCallback:this.filterModifiedCallbackFactory(e,n),filterChangedCallback:this.filterChangedCallbackFactory(e,n),doesRowPassOtherFilter:t=>this.doesRowPassOtherFilters(e,t)}),o)))&&this.destroyFilter(n,"paramsUpdated")})):this.destroyFilter(n,"paramsUpdated")}setColumnFilterWrapper(e,t){const n=e.getColId();this.allColumnFilters.set(n,t),this.allColumnListeners.set(n,this.addManagedListener(e,zt.EVENT_COL_DEF_CHANGED,(()=>this.checkDestroyFilter(n))))}areFilterCompsDifferent(e,t){if(!t||!e)return!0;const{componentClass:n}=e,{componentClass:i}=t;return!(n===i||(null==n?void 0:n.render)&&(null==i?void 0:i.render)&&n.render===i.render)}getAdvancedFilterModel(){return this.isAdvancedFilterEnabled()?this.advancedFilterService.getModel():null}setAdvancedFilterModel(e){this.isAdvancedFilterEnabled()&&(this.dataTypeService.isPendingInference()?this.advancedFilterModelUpdateQueue.push(e):(this.advancedFilterService.setModel(null!=e?e:null),this.onFilterChanged({source:"advancedFilter"})))}showAdvancedFilterBuilder(e){this.isAdvancedFilterEnabled()&&this.advancedFilterService.getCtrl().toggleFilterBuilder(e,!0)}updateAdvancedFilterColumns(){this.isAdvancedFilterEnabled()&&this.advancedFilterService.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){if(this.isAdvancedFilterEnabled())return!1;return this.columnModel.getAllGridColumns().some((e=>e.getColDef().floatingFilter))}getFilterInstance(e,t){if(this.isAdvancedFilterEnabled())return void this.warnAdvancedFilters();const n=this.getFilterInstanceImpl(e,(e=>{if(!t)return;const n=$s(e);t(n)}));return $s(n)}getColumnFilterInstance(e){return new Promise((t=>{this.getFilterInstance(e,(e=>{t(e)}))}))}getFilterInstanceImpl(e,t){const n=this.columnModel.getPrimaryColumn(e);if(!n)return;const i=this.getFilterComponent(n,"NO_UI"),o=i&&i.resolveNow(null,(e=>e));return o?setTimeout(t,0,o):i&&i.then((e=>{t(e)})),o}warnAdvancedFilters(){st("Column Filter API methods have been disabled as Advanced Filters are enabled.")}setupAdvancedFilterHeaderComp(e){var t;null==(t=this.advancedFilterService)||t.getCtrl().setupHeaderComp(e)}getHeaderRowCount(){return this.isAdvancedFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvancedFilterHeaderActive()?this.advancedFilterService.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){this.filterModelUpdateQueue.forEach((({model:e,source:t})=>this.setFilterModel(e,t))),this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue.forEach((({key:e,model:t,resolve:n})=>{this.setColumnFilterModel(e,t).then((()=>n()))})),this.columnFilterModelUpdateQueue=[],this.advancedFilterModelUpdateQueue.forEach((e=>this.setAdvancedFilterModel(e))),this.advancedFilterModelUpdateQueue=[]}getColumnFilterModel(e){const t=this.getFilterWrapper(e);return t?this.getModelFromFilterWrapper(t):null}setColumnFilterModel(e,t){if(this.isAdvancedFilterEnabled())return this.warnAdvancedFilters(),Promise.resolve();if(this.dataTypeService.isPendingInference()){let n=()=>{};const i=new Promise((e=>{n=e}));return this.columnFilterModelUpdateQueue.push({key:e,model:t,resolve:n}),i}const n=this.columnModel.getPrimaryColumn(e),i=n?this.getOrCreateFilterWrapper(n,"NO_UI"):null;return i?(o=this.setModelOnFilterWrapper(i.filterPromise,t),new Promise((e=>{o.then((t=>e(t)))}))):Promise.resolve();var o}getFilterWrapper(e){var t;const n=this.columnModel.getPrimaryColumn(e);return n&&null!=(t=this.cachedFilter(n))?t:null}destroy(){super.destroy(),this.allColumnFilters.forEach((e=>this.disposeFilterWrapper(e,"gridDestroyed"))),this.allColumnListeners.clear()}};_e([xt("valueService")],Xs.prototype,"valueService",2),_e([xt("columnModel")],Xs.prototype,"columnModel",2),_e([xt("rowModel")],Xs.prototype,"rowModel",2),_e([xt("userComponentFactory")],Xs.prototype,"userComponentFactory",2),_e([xt("rowRenderer")],Xs.prototype,"rowRenderer",2),_e([xt("dataTypeService")],Xs.prototype,"dataTypeService",2),_e([xt("quickFilterService")],Xs.prototype,"quickFilterService",2),_e([Mt("advancedFilterService")],Xs.prototype,"advancedFilterService",2),_e([Tt],Xs.prototype,"init",1),Xs=_e([At("filterManager")],Xs);var Zs=class extends _r{constructor(e,t){super('<div class="ag-filter"></div>'),this.column=e,this.source=t,this.filterWrapper=null}postConstruct(){this.createFilter(!0),this.addManagedListener(this.eventService,An.EVENT_FILTER_DESTROYED,this.onFilterDestroyed.bind(this))}hasFilter(){return!!this.filterWrapper}getFilter(){var e,t;return null!=(t=null==(e=this.filterWrapper)?void 0:e.filterPromise)?t:null}afterInit(){var e,t,n;return null!=(n=null==(t=null==(e=this.filterWrapper)?void 0:e.filterPromise)?void 0:t.then((()=>{})))?n:xr.resolve()}afterGuiAttached(e){var t,n;null==(n=null==(t=this.filterWrapper)?void 0:t.filterPromise)||n.then((t=>{var n;null==(n=null==t?void 0:t.afterGuiAttached)||n.call(t,e)}))}afterGuiDetached(){var e,t;null==(t=null==(e=this.filterWrapper)?void 0:e.filterPromise)||t.then((e=>{var t;null==(t=null==e?void 0:e.afterGuiDetached)||t.call(e)}))}createFilter(e){var t;const{column:n,source:i}=this;this.filterWrapper=this.filterManager.getOrCreateFilterWrapper(n,i),(null==(t=this.filterWrapper)?void 0:t.filterPromise)&&this.filterWrapper.filterPromise.then((t=>{let o=t.getGui();if(ze(o)||console.warn(`AG Grid: getGui method from filter returned ${o}, it should be a DOM element or an HTML template string.`),"string"==typeof o&&(o=Ho(o)),this.appendChild(o),e){const e={type:An.EVENT_FILTER_OPENED,column:n,source:i,eGui:this.getGui()};this.eventService.dispatchEvent(e)}}))}onFilterDestroyed(e){"api"!==e.source&&"paramsUpdated"!==e.source||e.column.getId()!==this.column.getId()||!this.columnModel.getPrimaryColumn(this.column)||(ko(this.getGui()),this.createFilter())}destroy(){this.filterWrapper=null,super.destroy()}};_e([xt("filterManager")],Zs.prototype,"filterManager",2),_e([xt("columnModel")],Zs.prototype,"columnModel",2),_e([Tt],Zs.prototype,"postConstruct",1);var Js=class extends _r{constructor(e,t){super(e),this.ctrl=t}getCtrl(){return this.ctrl}},el=class _HeaderFilterCellComp extends Js{constructor(e){super(_HeaderFilterCellComp.TEMPLATE,e)}postConstruct(){const e=this.getGui(),t={addOrRemoveCssClass:(e,t)=>this.addOrRemoveCssClass(e,t),addOrRemoveBodyCssClass:(e,t)=>this.eFloatingFilterBody.classList.toggle(e,t),setButtonWrapperDisplayed:e=>Do(this.eButtonWrapper,e),setCompDetails:e=>this.setCompDetails(e),getFloatingFilterComp:()=>this.compPromise,setWidth:t=>e.style.width=t,setMenuIcon:e=>this.eButtonShowMainFilter.appendChild(e)};this.ctrl.setComp(t,e,this.eButtonShowMainFilter,this.eFloatingFilterBody)}setCompDetails(e){if(!e)return this.destroyFloatingFilterComp(),void(this.compPromise=null);this.compPromise=e.newAgStackInstance(),this.compPromise.then((e=>this.afterCompCreated(e)))}destroyFloatingFilterComp(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))}afterCompCreated(e){e&&(this.isAlive()?(this.destroyFloatingFilterComp(),this.floatingFilterComp=e,this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()):this.destroyBean(e))}};el.TEMPLATE='<div class="ag-header-cell ag-floating-filter" role="gridcell">\n <div ref="eFloatingFilterBody" role="presentation"></div>\n <div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">\n <button type="button" class="ag-button ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>\n </div>\n </div>',_e([Or("eFloatingFilterBody")],el.prototype,"eFloatingFilterBody",2),_e([Or("eButtonWrapper")],el.prototype,"eButtonWrapper",2),_e([Or("eButtonShowMainFilter")],el.prototype,"eButtonShowMainFilter",2),_e([Tt],el.prototype,"postConstruct",1),_e([Rt],el.prototype,"destroyFloatingFilterComp",1);var tl=el,nl=class extends En{constructor(e){super(),this.view=e}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){const e=this.getDomLayout(),t={autoHeight:"autoHeight"===e,normal:"normal"===e,print:"print"===e},n=t.autoHeight?"ag-layout-auto-height":t.print?"ag-layout-print":"ag-layout-normal";this.view.updateLayoutClasses(n,t)}getDomLayout(){var e;const t=null!=(e=this.gos.get("domLayout"))?e:"normal";return-1===["normal","print","autoHeight"].indexOf(t)?(st(`${t} is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.`),"normal"):t}};_e([Tt],nl.prototype,"postConstruct",1);var il=class extends En{constructor(e){super(),this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.eBodyViewport=e,this.resetLastHScrollDebounced=vt((()=>this.lastScrollSource[1]=null),500),this.resetLastVScrollDebounced=vt((()=>this.lastScrollSource[0]=null),500)}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady((e=>{this.centerRowsCtrl=e.center,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()}))}addScrollListener(){const{fakeHScrollComp:e,fakeVScrollComp:t}=this.ctrlsService.getParams();this.addManagedListener(this.centerRowsCtrl.getViewportElement(),"scroll",this.onHScroll.bind(this)),e.onScrollCallback(this.onFakeHScroll.bind(this));const n=this.gos.get("debounceVerticalScrollbar"),i=n?vt(this.onVScroll.bind(this),100):this.onVScroll.bind(this),o=n?vt(this.onFakeVScroll.bind(this),100):this.onFakeVScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",i),t.onScrollCallback(o)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(e){if(null==this.centerRowsCtrl)return;void 0===e&&(e=this.centerRowsCtrl.getCenterViewportScrollLeft());const t=this.enableRtl?e:-e,{topCenter:n,stickyTopCenter:i,stickyBottomCenter:o,centerHeader:r,bottomCenter:a,fakeHScrollComp:s}=this.ctrlsService.getParams();r.setHorizontalScroll(-t),a.setContainerTranslateX(t),n.setContainerTranslateX(t),i.setContainerTranslateX(t),o.setContainerTranslateX(t);const l=this.centerRowsCtrl.getViewportElement(),d=0===this.lastScrollSource[1];e=Math.abs(e),d?s.setScrollPosition(e):Oo(l,e,this.enableRtl)}isControllingScroll(e,t){return null==this.lastScrollSource[t]?(this.lastScrollSource[t]=e,!0):this.lastScrollSource[t]===e}onFakeHScroll(){this.isControllingScroll(1,1)&&this.onHScrollCommon(1)}onHScroll(){this.isControllingScroll(0,1)&&this.onHScrollCommon(0)}onHScrollCommon(e){const t=this.centerRowsCtrl.getViewportElement(),{scrollLeft:n}=t;if(this.shouldBlockScrollUpdate(1,n,!0))return;let i;i=0===e?_o(t,this.enableRtl):this.ctrlsService.get("fakeHScrollComp").getScrollPosition(),this.doHorizontalScroll(Math.round(i)),this.resetLastHScrollDebounced()}onFakeVScroll(){this.isControllingScroll(1,0)&&this.onVScrollCommon(1)}onVScroll(){this.isControllingScroll(0,0)&&this.onVScrollCommon(0)}onVScrollCommon(e){let t;t=0===e?this.eBodyViewport.scrollTop:this.ctrlsService.get("fakeVScrollComp").getScrollPosition(),this.shouldBlockScrollUpdate(0,t,!0)||(this.animationFrameService.setScrollTop(t),this.nextScrollTop=t,0===e?this.ctrlsService.get("fakeVScrollComp").setScrollPosition(t):this.eBodyViewport.scrollTop=t,this.gos.get("suppressAnimationFrame")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced())}doHorizontalScroll(e){const t=this.ctrlsService.get("fakeHScrollComp").getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}fireScrollEvent(e){const t={type:An.EVENT_BODY_SCROLL,direction:1===e?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(t),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((()=>{const e=Le(Ie({},t),{type:An.EVENT_BODY_SCROLL_END});this.eventService.dispatchEvent(e)}),100)}shouldBlockScrollUpdate(e,t,n=!1){return!(n&&!Qi())&&(0===e?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t))}shouldBlockVerticalScroll(e){const t=Mo(this.eBodyViewport),{scrollHeight:n}=this.eBodyViewport;return e<0||e+t>n}shouldBlockHorizontalScroll(e){const t=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:n}=this.centerRowsCtrl.getViewportElement();if(this.enableRtl&&Fo()){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>n}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){this.scrollLeft!==this.centerRowsCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(0)}scrollGridIfNeeded(){const e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e}setHorizontalScrollPosition(e,t=!1){const n=this.centerRowsCtrl.getViewportElement().scrollWidth-this.centerRowsCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(1,e)&&(e=this.enableRtl&&Fo()?e>0?0:n:Math.min(Math.max(e,0),n)),Oo(this.centerRowsCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)}setVerticalScrollPosition(e){this.eBodyViewport.scrollTop=e}getVScrollPosition(){this.lastScrollTop=this.eBodyViewport.scrollTop,this.lastOffsetHeight=this.eBodyViewport.offsetHeight;return{top:this.lastScrollTop,bottom:this.lastScrollTop+this.lastOffsetHeight}}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.centerRowsCtrl.isHorizontalScrollShowing()}scrollHorizontally(e){const t=this.centerRowsCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowsCtrl.getViewportElement().scrollLeft-t}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(e,t=null){const n=this.rowModel.getRowCount();let i=-1;for(let t=0;t<n;t++){const n=this.rowModel.getRow(t);if("function"==typeof e){if(n&&e(n)){i=t;break}}else if(e===n||e===n.data){i=t;break}}i>=0&&this.ensureIndexVisible(i,t)}ensureIndexVisible(e,t){if(this.gos.isDomLayout("print"))return;const n=this.paginationProxy.getRowCount();if("number"!=typeof e||e<0||e>=n)return void console.warn("AG Grid: Invalid row index for ensureIndexVisible: "+e);const i=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.getFrameworkOverrides().wrapIncoming((()=>{i||this.paginationProxy.goToPageWithIndex(e);const n=this.ctrlsService.getGridBodyCtrl(),o=n.getStickyTopHeight(),r=n.getStickyBottomHeight(),a=this.paginationProxy.getRow(e);let s;do{const e=a.rowTop,n=a.rowHeight,i=this.paginationProxy.getPixelOffset(),l=a.rowTop-i,d=l+a.rowHeight,c=this.getVScrollPosition(),g=this.heightScaler.getDivStretchOffset(),u=c.top+g,h=c.bottom+g,p=h-u,m=this.heightScaler.getScrollPositionForPixel(l),v=this.heightScaler.getScrollPositionForPixel(d-p),f=Math.min((m+v)/2,l);let C=null;"top"===t?C=m:"bottom"===t?C=v:"middle"===t?C=f:u+o>l?C=m-o:h-r<d&&(C=v+r),null!==C&&(this.setVerticalScrollPosition(C),this.rowRenderer.redraw({afterScroll:!0})),s=e!==a.rowTop||n!==a.rowHeight}while(s);this.animationFrameService.flushAllFrames()}))}ensureColumnVisible(e,t="auto"){const n=this.columnModel.getGridColumn(e);if(!n)return;if(n.isPinned())return;if(!this.columnModel.isColumnDisplayed(n))return;const i=this.getPositionedHorizontalScroll(n,t);this.getFrameworkOverrides().wrapIncoming((()=>{null!==i&&this.centerRowsCtrl.setCenterViewportScrollLeft(i),this.centerRowsCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}))}setScrollPosition(e,t){this.getFrameworkOverrides().wrapIncoming((()=>{this.centerRowsCtrl.setCenterViewportScrollLeft(t),this.setVerticalScrollPosition(e),this.rowRenderer.redraw({afterScroll:!0}),this.animationFrameService.flushAllFrames()}))}getPositionedHorizontalScroll(e,t){const{columnBeforeStart:n,columnAfterEnd:i}=this.isColumnOutsideViewport(e),o=this.centerRowsCtrl.getCenterWidth()<e.getActualWidth(),r=this.centerRowsCtrl.getCenterWidth(),a=this.enableRtl;let s=(a?n:i)||o,l=a?i:n;"auto"!==t&&(s="start"===t,l="end"===t);const d="middle"===t;if(s||l||d){const{colLeft:t,colMiddle:n,colRight:i}=this.getColumnBounds(e);return d?n-r/2:s?a?i:t:a?t-r:i-r}return null}isColumnOutsideViewport(e){const{start:t,end:n}=this.getViewportBounds(),{colLeft:i,colRight:o}=this.getColumnBounds(e),r=this.enableRtl;return{columnBeforeStart:r?t>o:n<o,columnAfterEnd:r?n<i:t>i}}getColumnBounds(e){const t=this.enableRtl,n=this.columnModel.getBodyContainerWidth(),i=e.getActualWidth(),o=e.getLeft(),r=t?-1:1,a=t?n-o:o;return{colLeft:a,colMiddle:a+i/2*r,colRight:a+i*r}}getViewportBounds(){const e=this.centerRowsCtrl.getCenterWidth(),t=this.centerRowsCtrl.getCenterViewportScrollLeft();return{start:t,end:e+t,width:e}}};_e([xt("ctrlsService")],il.prototype,"ctrlsService",2),_e([xt("animationFrameService")],il.prototype,"animationFrameService",2),_e([xt("paginationProxy")],il.prototype,"paginationProxy",2),_e([xt("rowModel")],il.prototype,"rowModel",2),_e([xt("rowContainerHeightService")],il.prototype,"heightScaler",2),_e([xt("rowRenderer")],il.prototype,"rowRenderer",2),_e([xt("columnModel")],il.prototype,"columnModel",2),_e([Tt],il.prototype,"postConstruct",1);var ol="ag-force-vertical-scroll",rl=class extends En{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}getScrollFeature(){return this.bodyScrollFeature}getBodyViewportElement(){return this.eBodyViewport}setComp(e,t,n,i,o,r,a){this.comp=e,this.eGridBody=t,this.eBodyViewport=n,this.eTop=i,this.eBottom=o,this.eStickyTop=r,this.eStickyBottom=a,this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",(e=>this.setCellTextSelection(e.currentValue))),this.createManagedBean(new nl(this.comp)),this.bodyScrollFeature=this.createManagedBean(new il(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([i,n,o,r,a]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.filterManager.setupAdvancedFilterHeaderComp(i),this.ctrlsService.register("gridBodyCtrl",this)}getComp(){return this.comp}addEventListeners(){this.addManagedListener(this.eventService,An.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))}addFocusListeners(e){e.forEach((e=>{this.addManagedListener(e,"focusin",(t=>{const{target:n}=t,i=Ao(n,"ag-root",e);e.classList.toggle("ag-has-focus",!i)})),this.addManagedListener(e,"focusout",(t=>{const{target:n,relatedTarget:i}=t,o=e.contains(i),r=Ao(i,"ag-root",e);Ao(n,"ag-root",e)||o&&!r||e.classList.remove("ag-has-focus")}))}))}setColumnMovingCss(e){this.comp.setColumnMovingCss("ag-column-moving",e)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss("ag-selectable",e)}onScrollVisibilityChanged(){const e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e),this.setStickyWidth(e),this.setStickyBottomOffsetBottom();const t=`calc(100% + ${(e&&this.gos.getScrollbarWidth()||0)+(io()?16:0)}px)`;this.animationFrameService.requestAnimationFrame((()=>this.comp.setBodyViewportWidth(t)))}onGridColumnsChanged(){const e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e.length)}disableBrowserDragging(){this.addManagedListener(this.eGridBody,"dragstart",(e=>{if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))}addStopEditingWhenGridLosesFocus(){if(!this.gos.get("stopEditingWhenCellsLoseFocus"))return;const e=e=>{const n=e.relatedTarget;if(null===Xi(n))return void this.rowRenderer.stopEditing();let i=t.some((e=>e.contains(n)))&&this.mouseEventService.isElementInThisGrid(n);if(!i){const e=this.popupService;i=e.getActivePopups().some((e=>e.contains(n)))||e.isElementWithinCustomPopup(n)}i||this.rowRenderer.stopEditing()},t=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom];t.forEach((t=>this.addManagedListener(t,"focusout",e)))}updateRowCount(){const e=this.headerNavigationService.getHeaderRowCount()+this.filterManager.getHeaderRowCount(),t=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,n=-1===t?-1:e+t;this.comp.setRowCount(n)}registerBodyViewportResizeListener(e){this.comp.registerBodyViewportResizeListener(e)}setVerticalScrollPaddingVisible(e){const t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)}isVerticalScrollShowing(){const e=this.gos.get("alwaysShowVerticalScroll"),t=e?ol:null,n=this.gos.isDomLayout("normal");return this.comp.setAlwaysVerticalScrollClass(t,e),e||n&&Yo(this.eBodyViewport)}setupRowAnimationCssClass(){const e=()=>{const e=this.gos.isAnimateRows()&&!this.rowContainerHeightService.isStretching(),t=e?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(t,e)};e(),this.addManagedListener(this.eventService,An.EVENT_HEIGHT_SCALE_CHANGED,e),this.addManagedPropertyListener("animateRows",e)}getGridBodyElement(){return this.eGridBody}addBodyViewportListener(){const e=this.onBodyViewportContextMenu.bind(this);this.addManagedListener(this.eBodyViewport,"contextmenu",e),this.mockContextMenuForIPad(e),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyWheel.bind(this)),this.addManagedListener(this.eStickyBottom,"wheel",this.onStickyWheel.bind(this)),this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){const e=this.eBodyViewport.querySelector(".ag-full-width-container"),t=this.eBodyViewport.querySelector(".ag-center-cols-viewport");e&&t&&this.addManagedListener(e,"wheel",(e=>this.onFullWidthContainerWheel(e,t)))}onFullWidthContainerWheel(e,t){!e.deltaX||Math.abs(e.deltaY)>Math.abs(e.deltaX)||!this.mouseEventService.isEventFromThisGrid(e)||(e.preventDefault(),t.scrollBy({left:e.deltaX}))}onBodyViewportContextMenu(e,t,n){if(!e&&!n)return;if(this.gos.get("preventDefaultOnContextMenu")){(e||n).preventDefault()}const{target:i}=e||t;i!==this.eBodyViewport&&i!==this.ctrlsService.get("center").getViewportElement()||this.menuService.showContextMenu({mouseEvent:e,touchEvent:n,value:null,anchorToElement:this.eGridBody})}mockContextMenuForIPad(e){if(!Qi())return;const t=new Pa(this.eBodyViewport);this.addManagedListener(t,Pa.EVENT_LONG_TAP,(t=>{e(void 0,t.touchStart,t.touchEvent)})),this.addDestroyFunc((()=>t.destroy()))}onBodyViewportWheel(e){this.gos.get("suppressScrollWhenPopupsAreOpen")&&this.popupService.hasAnchoredPopup()&&e.preventDefault()}onStickyWheel(e){e.preventDefault(),e.offsetY&&this.scrollVertically(e.deltaY)}getGui(){return this.eGridBody}scrollVertically(e){const t=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t}addRowDragListener(){this.rowDragFeature=this.createManagedBean(new Us(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)}getRowDragFeature(){return this.rowDragFeature}onPinnedRowDataChanged(){this.setFloatingHeights()}setFloatingHeights(){const{pinnedRowModel:e}=this;let t=e.getPinnedTopTotalHeight(),n=e.getPinnedBottomTotalHeight();this.comp.setTopHeight(t),this.comp.setBottomHeight(n),this.comp.setTopDisplay(t?"inherit":"none"),this.comp.setBottomDisplay(n?"inherit":"none"),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(e=0){this.comp.setStickyTopHeight(`${e}px`),this.stickyTopHeight=e}getStickyTopHeight(){return this.stickyTopHeight}setStickyBottomHeight(e=0){this.comp.setStickyBottomHeight(`${e}px`),this.stickyBottomHeight=e}getStickyBottomHeight(){return this.stickyBottomHeight}setStickyWidth(e){if(e){const e=this.gos.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${e}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${e}px)`)}else this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%")}onHeaderHeightChanged(){this.setStickyTopOffsetTop()}setStickyTopOffsetTop(){const e=this.ctrlsService.get("gridHeaderCtrl").getHeaderHeight()+this.filterManager.getHeaderHeight(),t=this.pinnedRowModel.getPinnedTopTotalHeight();let n=0;e>0&&(n+=e),t>0&&(n+=t),n>0&&(n+=1),this.comp.setStickyTopTop(`${n}px`)}setStickyBottomOffsetBottom(){const e=this.pinnedRowModel.getPinnedBottomTotalHeight()+(this.scrollVisibleService.isHorizontalScrollShowing()&&this.gos.getScrollbarWidth()||0);this.comp.setStickyBottomBottom(`${e}px`)}sizeColumnsToFit(e,t){const n=this.isVerticalScrollShowing()?this.gos.getScrollbarWidth():0,i=No(this.eGridBody)-n;i>0?this.columnModel.sizeColumnsToFit(i,"sizeColumnsToFit",!1,e):void 0===t?window.setTimeout((()=>{this.sizeColumnsToFit(e,100)}),0):100===t?window.setTimeout((()=>{this.sizeColumnsToFit(e,500)}),100):500===t?window.setTimeout((()=>{this.sizeColumnsToFit(e,-1)}),500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")}addScrollEventListener(e){this.eBodyViewport.addEventListener("scroll",e,{passive:!0})}removeScrollEventListener(e){this.eBodyViewport.removeEventListener("scroll",e)}};_e([xt("animationFrameService")],rl.prototype,"animationFrameService",2),_e([xt("rowContainerHeightService")],rl.prototype,"rowContainerHeightService",2),_e([xt("ctrlsService")],rl.prototype,"ctrlsService",2),_e([xt("columnModel")],rl.prototype,"columnModel",2),_e([xt("scrollVisibleService")],rl.prototype,"scrollVisibleService",2),_e([xt("menuService")],rl.prototype,"menuService",2),_e([xt("headerNavigationService")],rl.prototype,"headerNavigationService",2),_e([xt("dragAndDropService")],rl.prototype,"dragAndDropService",2),_e([xt("pinnedRowModel")],rl.prototype,"pinnedRowModel",2),_e([xt("rowRenderer")],rl.prototype,"rowRenderer",2),_e([xt("popupService")],rl.prototype,"popupService",2),_e([xt("mouseEventService")],rl.prototype,"mouseEventService",2),_e([xt("rowModel")],rl.prototype,"rowModel",2),_e([xt("filterManager")],rl.prototype,"filterManager",2);var al="ag-cell-range-selected",sl=class extends En{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.getColumn(),this.rowNode=e.getRowNode()}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListener(this.beans.eventService,An.EVENT_NEW_COLUMNS_LOADED,(()=>this.onNewColumnsLoaded()))}setComp(e){this.eGui=e,this.setupColSpan(),this.setupRowSpan(),this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()}onNewColumnsLoaded(){const e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this.applyRowSpan(!0))}onDisplayColumnsChanged(){const e=this.getColSpanningList();Yt(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,An.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,An.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))}onWidthChanged(){if(!this.eGui)return;const e=this.getCellWidth();this.eGui.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce(((e,t)=>e+t.getActualWidth()),0):this.column.getActualWidth()}getColSpanningList(){const e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else{let n=this.column;const i=this.column.getPinned();for(let o=0;n&&o<e&&(t.push(n),n=this.beans.columnModel.getDisplayedColAfter(n),n&&!Ve(n))&&i===n.getPinned();o++);}return t}onLeftChanged(){if(!this.eGui)return;const e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=e+"px"}getCellLeft(){let e;return e=this.beans.gos.get("enableRtl")&&this.colsSpanning?Kt(this.colsSpanning):this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.isPrintLayout()||"left"===this.column.getPinned())return e;const t=this.beans.columnModel.getDisplayedColumnsLeftWidth();if("right"===this.column.getPinned()){return t+this.beans.columnModel.getBodyContainerWidth()+(e||0)}return t+(e||0)}applyRowSpan(e){if(1===this.rowSpan&&!e)return;const t=this.beans.gos.getRowHeightAsNumber()*this.rowSpan;this.eGui.style.height=`${t}px`,this.eGui.style.zIndex="1"}destroy(){super.destroy()}},ll=class extends En{constructor(e,t){super(),this.staticClasses=[],this.cellCtrl=e,this.beans=t,this.column=e.getColumn(),this.rowNode=e.getRowNode()}setComp(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){const e=this.column.getColDef(),{cellClassRules:t}=e,n=this.beans.gos.addGridCommonParams({value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:e,column:this.column,rowIndex:this.rowNode.rowIndex});this.beans.stylingService.processClassRules(t===this.cellClassRules?void 0:this.cellClassRules,t,n,(e=>this.cellComp.addOrRemoveCssClass(e,!0)),(e=>this.cellComp.addOrRemoveCssClass(e,!1))),this.cellClassRules=t}applyUserStyles(){const e=this.column.getColDef();if(!e.cellStyle)return;let t;if("function"==typeof e.cellStyle){const n=this.beans.gos.addGridCommonParams({column:this.column,value:this.cellCtrl.getValue(),colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex});t=(0,e.cellStyle)(n)}else t=e.cellStyle;t&&this.cellComp.setUserStyles(t)}applyClassesFromColDef(){const e=this.column.getColDef(),t=this.beans.gos.addGridCommonParams({value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,column:this.column,colDef:e,rowIndex:this.rowNode.rowIndex});this.staticClasses.length&&this.staticClasses.forEach((e=>this.cellComp.addOrRemoveCssClass(e,!1))),this.staticClasses=this.beans.stylingService.getStaticCellClasses(e,t),this.staticClasses.length&&this.staticClasses.forEach((e=>this.cellComp.addOrRemoveCssClass(e,!0)))}destroy(){super.destroy()}},dl=class{postConstruct(){this.gos.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.gos.isRowModelType("serverSide")&&(this.serverSideRowModel=this.rowModel)}};_e([xt("resizeObserverService")],dl.prototype,"resizeObserverService",2),_e([xt("paginationProxy")],dl.prototype,"paginationProxy",2),_e([xt("context")],dl.prototype,"context",2),_e([xt("gridOptionsService")],dl.prototype,"gos",2),_e([xt("environment")],dl.prototype,"environment",2),_e([xt("rowRenderer")],dl.prototype,"rowRenderer",2),_e([xt("valueService")],dl.prototype,"valueService",2),_e([xt("eventService")],dl.prototype,"eventService",2),_e([xt("columnModel")],dl.prototype,"columnModel",2),_e([xt("headerNavigationService")],dl.prototype,"headerNavigationService",2),_e([xt("navigationService")],dl.prototype,"navigationService",2),_e([xt("columnAnimationService")],dl.prototype,"columnAnimationService",2),_e([xt("focusService")],dl.prototype,"focusService",2),_e([xt("popupService")],dl.prototype,"popupService",2),_e([xt("stylingService")],dl.prototype,"stylingService",2),_e([xt("columnHoverService")],dl.prototype,"columnHoverService",2),_e([xt("userComponentFactory")],dl.prototype,"userComponentFactory",2),_e([xt("userComponentRegistry")],dl.prototype,"userComponentRegistry",2),_e([xt("animationFrameService")],dl.prototype,"animationFrameService",2),_e([xt("dragService")],dl.prototype,"dragService",2),_e([xt("dragAndDropService")],dl.prototype,"dragAndDropService",2),_e([xt("sortController")],dl.prototype,"sortController",2),_e([xt("filterManager")],dl.prototype,"filterManager",2),_e([xt("rowContainerHeightService")],dl.prototype,"rowContainerHeightService",2),_e([xt("frameworkOverrides")],dl.prototype,"frameworkOverrides",2),_e([xt("cellPositionUtils")],dl.prototype,"cellPositionUtils",2),_e([xt("rowPositionUtils")],dl.prototype,"rowPositionUtils",2),_e([xt("selectionService")],dl.prototype,"selectionService",2),_e([xt("rowCssClassCalculator")],dl.prototype,"rowCssClassCalculator",2),_e([xt("rowModel")],dl.prototype,"rowModel",2),_e([xt("ctrlsService")],dl.prototype,"ctrlsService",2),_e([xt("ctrlsFactory")],dl.prototype,"ctrlsFactory",2),_e([xt("agStackComponentsRegistry")],dl.prototype,"agStackComponentsRegistry",2),_e([xt("valueCache")],dl.prototype,"valueCache",2),_e([xt("rowNodeEventThrottle")],dl.prototype,"rowNodeEventThrottle",2),_e([xt("localeService")],dl.prototype,"localeService",2),_e([xt("syncService")],dl.prototype,"syncService",2),_e([xt("ariaAnnouncementService")],dl.prototype,"ariaAnnouncementService",2),_e([Mt("rangeService")],dl.prototype,"rangeService",2),_e([Mt("selectionHandleFactory")],dl.prototype,"selectionHandleFactory",2),_e([Tt],dl.prototype,"postConstruct",1),dl=_e([At("beans")],dl);var cl=class extends dl{constructor(e,t,n){super(),this.cellCtrl=e,this.beans=t,this.column=n}onMouseEvent(e,t){if(!pn(t))switch(e){case"click":this.onCellClicked(t);break;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.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();const{eventService:t,rangeService:n,gos:i}=this.beans,o=e.ctrlKey||e.metaKey;n&&o&&n.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&n.intersectLastRange(!0);const r=this.cellCtrl.createEvent(e,An.EVENT_CELL_CLICKED);t.dispatchEvent(r);const a=this.column.getColDef();a.onCellClicked&&window.setTimeout((()=>{this.beans.frameworkOverrides.wrapOutgoing((()=>{a.onCellClicked(r)}))}),0);!((i.get("singleClickEdit")||a.singleClickEdit)&&!i.get("suppressClickEdit"))||e.shiftKey&&0!=(null==n?void 0:n.getCellRanges().length)||this.cellCtrl.startRowOrCellEdit()}isDoubleClickOnIPad(){if(!Qi()||mn("dblclick"))return!1;const e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t}onCellDoubleClicked(e){const t=this.column.getColDef(),n=this.cellCtrl.createEvent(e,An.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),"function"==typeof t.onCellDoubleClicked&&window.setTimeout((()=>{this.beans.frameworkOverrides.wrapOutgoing((()=>{t.onCellDoubleClicked(n)}))}),0);!this.beans.gos.get("singleClickEdit")&&!this.beans.gos.get("suppressClickEdit")&&this.cellCtrl.startRowOrCellEdit(null,e)}onMouseDown(e){const{ctrlKey:t,metaKey:n,shiftKey:i}=e,o=e.target,{cellCtrl:r,beans:a}=this,{eventService:s,rangeService:l,focusService:d}=a;if(this.isRightClickInExistingRange(e))return;const c=l&&0!=l.getCellRanges().length;if(!i||!c){const e=Ui()&&!r.isEditing()&&!So(o);r.focusCell(e)}if(i&&c&&!d.isCellFocused(r.getCellPosition())){e.preventDefault();const t=d.getFocusedCell();if(t){const{column:e,rowIndex:n,rowPinned:i}=t,o=a.rowRenderer.getRowByPosition({rowIndex:n,rowPinned:i}),r=null==o?void 0:o.getCellCtrl(e);(null==r?void 0:r.isEditing())&&r.stopEditing(),d.setFocusedCell({column:e,rowIndex:n,rowPinned:i,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!this.containsWidget(o)){if(l){const e=this.cellCtrl.getCellPosition();if(i)l.extendLatestRangeToCell(e);else{const i=t||n;l.setRangeToCell(e,i)}}s.dispatchEvent(this.cellCtrl.createEvent(e,An.EVENT_CELL_MOUSE_DOWN))}}isRightClickInExistingRange(e){const{rangeService:t}=this.beans;if(t){const n=t.isCellInAnyRange(this.cellCtrl.getCellPosition()),i=2===e.button||e.ctrlKey&&this.beans.gos.get("allowContextMenuWithControlKey");if(n&&i)return!0}return!1}containsWidget(e){return Ao(e,"ag-selection-checkbox",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;const t=this.cellCtrl.createEvent(e,An.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;const t=this.cellCtrl.createEvent(e,An.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const t=this.cellCtrl.getGui(),n=t.contains(e.target),i=t.contains(e.relatedTarget);return n&&i}destroy(){}},gl=class extends En{constructor(e,t,n,i,o){super(),this.cellCtrl=e,this.beans=t,this.rowNode=i,this.rowCtrl=o}setComp(e){this.eGui=e}onKeyDown(e){const t=e.key;switch(t){case pr.ENTER:this.onEnterKeyDown(e);break;case pr.F2:this.onF2KeyDown(e);break;case pr.ESCAPE:this.onEscapeKeyDown(e);break;case pr.TAB:this.onTabKeyDown(e);break;case pr.BACKSPACE:case pr.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case pr.DOWN:case pr.UP:case pr.RIGHT:case pr.LEFT:this.onNavigationKeyDown(e,t)}}onNavigationKeyDown(e,t){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,t,this.cellCtrl.getCellPosition(),!0),e.preventDefault())}onShiftRangeSelect(e){if(!this.beans.rangeService)return;const t=this.beans.rangeService.extendLatestRangeInDirection(e);t&&this.beans.navigationService.ensureCellVisible(t)}onTabKeyDown(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){var n;const{cellCtrl:i,beans:o,rowNode:r}=this,{gos:a,rangeService:s,eventService:l}=o;if(!i.isEditing()){if(l.dispatchEvent({type:An.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),wr(e,a.get("enableCellEditingOnBackspace"))){if(s&&a.get("enableRangeSelection"))s.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(i.isCellEditable()){const e=i.getColumn(),t=null!=(n=this.beans.valueService.parseValue(e,r,"",r.getValueFromValueService(e)))?n:null;r.setDataValue(e,t,"cellClear")}}else i.startRowOrCellEdit(e,t);l.dispatchEvent({type:An.EVENT_KEY_SHORTCUT_CHANGED_CELL_END})}}onEnterKeyDown(e){if(this.cellCtrl.isEditing()||this.rowCtrl.isEditing())this.cellCtrl.stopEditingAndFocus(!1,e.shiftKey);else if(this.beans.gos.get("enterNavigatesVertically")){const t=e.shiftKey?pr.UP:pr.DOWN;this.beans.navigationService.navigateToNextCell(null,t,this.cellCtrl.getCellPosition(),!1)}else this.cellCtrl.startRowOrCellEdit(pr.ENTER,e),this.cellCtrl.isEditing()&&e.preventDefault()}onF2KeyDown(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(pr.F2,e)}onEscapeKeyDown(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))}processCharacter(e){if(e.target!==this.eGui||this.cellCtrl.isEditing())return;const t=e.key;" "===t?this.onSpaceKeyDown(e):(this.cellCtrl.startRowOrCellEdit(t,e),e.preventDefault())}onSpaceKeyDown(e){const{gos:t}=this.beans;if(!this.cellCtrl.isEditing()&&t.isRowSelection()){const n=this.rowNode.isSelected(),i=!n;if(i||!t.get("suppressRowDeselection")){const t=this.beans.gos.get("groupSelectsFiltered"),o=this.rowNode.setSelectedParams({newValue:i,rangeSelect:e.shiftKey,groupSelectsFiltered:t,event:e,source:"spaceKey"});void 0===n&&0===o&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:t,event:e,source:"spaceKey"})}}e.preventDefault()}destroy(){super.destroy()}},ul=class extends _r{constructor(e,t,n){super('<div class="ag-drag-handle ag-row-drag" draggable="true"></div>'),this.rowNode=e,this.column=t,this.eCell=n}postConstruct(){this.getGui().appendChild(ur("rowDrag",this.gos,null)),this.addGuiEventListener("mousedown",(e=>{e.stopPropagation()})),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(e){const t=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);const n=()=>{try{const t=JSON.stringify(this.rowNode.data);e.dataTransfer.setData("application/json",t),e.dataTransfer.setData("text/plain",t)}catch(e){}};if(t){t(this.gos.addGridCommonParams({rowNode:this.rowNode,dragEvent:e}))}else n()}checkVisibility(){const e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)}};_e([Tt],ul.prototype,"postConstruct",1);var hl=class{static getHeaderClassesFromColDef(e,t,n,i){return Ve(e)?[]:this.getColumnClassesFromCollDef(e.headerClass,e,t,n,i)}static getToolPanelClassesFromColDef(e,t,n,i){return Ve(e)?[]:this.getColumnClassesFromCollDef(e.toolPanelClass,e,t,n,i)}static refreshFirstAndLastStyles(e,t,n){e.addOrRemoveCssClass("ag-column-first",n.isColumnAtEdge(t,"first")),e.addOrRemoveCssClass("ag-column-last",n.isColumnAtEdge(t,"last"))}static getClassParams(e,t,n,i){return t.addGridCommonParams({colDef:e,column:n,columnGroup:i})}static getColumnClassesFromCollDef(e,t,n,i,o){if(Ve(e))return[];let r;if("function"==typeof e){r=e(this.getClassParams(t,n,i,o))}else r=e;return"string"==typeof r?[r]:Array.isArray(r)?[...r]:[]}},pl=0,ml=class _CellCtrl extends En{constructor(e,t,n,i){super(),this.cellRangeFeature=null,this.cellPositionFeature=null,this.cellCustomStyleFeature=null,this.tooltipFeature=null,this.cellMouseListenerFeature=null,this.cellKeyboardListenerFeature=null,this.suppressRefreshCell=!1,this.onCellCompAttachedFuncs=[],this.column=e,this.rowNode=t,this.beans=n,this.rowCtrl=i,this.instanceId=e.getId()+"-"+pl++,this.colIdSanitised=On(this.column.getId()),n.gos.get("suppressCellFocus")||(this.tabIndex=-1),this.createCellPosition(),this.addFeatures(),this.updateAndFormatValue(!1)}shouldRestoreFocus(){return this.beans.focusService.shouldRestoreFocus(this.cellPosition)}addFeatures(){this.cellPositionFeature=new sl(this,this.beans),this.addDestroyFunc((()=>{var e;null==(e=this.cellPositionFeature)||e.destroy(),this.cellPositionFeature=null})),this.cellCustomStyleFeature=new ll(this,this.beans),this.addDestroyFunc((()=>{var e;null==(e=this.cellCustomStyleFeature)||e.destroy(),this.cellCustomStyleFeature=null})),this.cellMouseListenerFeature=new cl(this,this.beans,this.column),this.addDestroyFunc((()=>{var e;null==(e=this.cellMouseListenerFeature)||e.destroy(),this.cellMouseListenerFeature=null})),this.cellKeyboardListenerFeature=new gl(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc((()=>{var e;null==(e=this.cellKeyboardListenerFeature)||e.destroy(),this.cellKeyboardListenerFeature=null})),this.column.isTooltipEnabled()&&(this.enableTooltipFeature(),this.addDestroyFunc((()=>{this.disableTooltipFeature()})));this.beans.rangeService&&this.beans.gos.get("enableRangeSelection")&&(this.cellRangeFeature=new class{constructor(e,t){this.beans=e,this.rangeService=e.rangeService,this.selectionHandleFactory=e.selectionHandleFactory,this.cellCtrl=t}setComp(e,t){this.cellComp=e,this.eGui=t,this.onRangeSelectionChanged()}onRangeSelectionChanged(){this.cellComp&&(this.rangeCount=this.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(al,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass(`${al}-1`,1===this.rangeCount),this.cellComp.addOrRemoveCssClass(`${al}-2`,2===this.rangeCount),this.cellComp.addOrRemoveCssClass(`${al}-3`,3===this.rangeCount),this.cellComp.addOrRemoveCssClass(`${al}-4`,this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),Pi(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())}updateRangeBorders(){const e=this.getRangeBorders(),t=this.isSingleCell(),n=!t&&e.top,i=!t&&e.right,o=!t&&e.bottom,r=!t&&e.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",i),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",o),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",r)}isSingleCell(){const{rangeService:e}=this.beans;return 1===this.rangeCount&&!!e&&!e.isMoreThanOneCell()}getHasChartRange(){const{rangeService:e}=this.beans;if(!this.rangeCount||!e)return!1;const t=e.getCellRanges();return t.length>0&&t.every((e=>rn([1,0],e.type)))}updateRangeBordersIfRangeCount(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())}getRangeBorders(){const e=this.beans.gos.get("enableRtl");let t=!1,n=!1,i=!1,o=!1;const r=this.cellCtrl.getCellPosition().column,a=this.beans.columnModel;let s,l;e?(s=a.getDisplayedColAfter(r),l=a.getDisplayedColBefore(r)):(s=a.getDisplayedColBefore(r),l=a.getDisplayedColAfter(r));const d=this.rangeService.getCellRanges().filter((e=>this.rangeService.isCellInSpecificRange(this.cellCtrl.getCellPosition(),e)));s||(o=!0),l||(n=!0);for(let e=0;e<d.length&&!(t&&n&&i&&o);e++){const r=d[e],a=this.rangeService.getRangeStartRow(r),c=this.rangeService.getRangeEndRow(r);!t&&this.beans.rowPositionUtils.sameRow(a,this.cellCtrl.getCellPosition())&&(t=!0),!i&&this.beans.rowPositionUtils.sameRow(c,this.cellCtrl.getCellPosition())&&(i=!0),!o&&s&&r.columns.indexOf(s)<0&&(o=!0),!n&&l&&r.columns.indexOf(l)<0&&(n=!0)}return{top:t,right:n,bottom:i,left:o}}refreshHandle(){if(this.beans.context.isDestroyed())return;const e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),e&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass("ag-cell-range-handle",!!this.selectionHandle)}shouldHaveSelectionHandle(){const e=this.beans.gos,t=this.rangeService.getCellRanges(),n=t.length;if(this.rangeCount<1||n<1)return!1;const i=Kt(t),o=this.cellCtrl.getCellPosition(),r=e.get("enableFillHandle")&&!this.cellCtrl.isSuppressFillHandle(),a=e.get("enableRangeHandle");let s=1===n&&!this.cellCtrl.isEditing()&&(r||a);if(this.hasChartRange){const e=1===t[0].type&&this.rangeService.isCellInSpecificRange(o,t[0]);this.cellComp.addOrRemoveCssClass("ag-cell-range-chart-category",e),s=0===i.type}return s&&null!=i.endRow&&this.rangeService.isContiguousRange(i)&&this.rangeService.isBottomRightCell(i,o)}addSelectionHandle(){const e=this.beans.gos,t=Kt(this.rangeService.getCellRanges()).type,n=e.get("enableFillHandle")&&Ve(t)?0:1;this.selectionHandle&&this.selectionHandle.getType()!==n&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.selectionHandleFactory.createSelectionHandle(n)),this.selectionHandle.refresh(this.cellCtrl)}destroy(){this.beans.context.destroyBean(this.selectionHandle)}}(this.beans,this),this.addDestroyFunc((()=>{var e;null==(e=this.cellRangeFeature)||e.destroy(),this.cellRangeFeature=null})))}enableTooltipFeature(e,t){const n="whenTruncated"===this.beans.gos.get("tooltipShowMode");t||!n||this.isCellRenderer()||(t=()=>{const e=this.getGui(),t=0===e.children.length?e:e.querySelector(".ag-cell-value");return!t||t.scrollWidth>t.clientWidth});const i={getColumn:()=>this.column,getColDef:()=>this.column.getColDef(),getRowIndex:()=>this.cellPosition.rowIndex,getRowNode:()=>this.rowNode,getGui:()=>this.getGui(),getLocation:()=>"cell",getTooltipValue:null!=e?()=>e:()=>{const e=this.column.getColDef(),t=this.rowNode.data;if(e.tooltipField&&ze(t))return tt(t,e.tooltipField,this.column.isTooltipFieldContainsDots());const n=e.tooltipValueGetter;return n?n(this.beans.gos.addGridCommonParams({location:"cell",colDef:this.column.getColDef(),column:this.column,rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data,value:this.value,valueFormatted:this.valueFormatted})):null},getValueFormatted:()=>this.valueFormatted,shouldDisplayTooltip:t};this.tooltipFeature=new Ir(i,this.beans)}disableTooltipFeature(){this.tooltipFeature&&(this.tooltipFeature.destroy(),this.tooltipFeature=null)}setComp(e,t,n,i,o){var r,a,s,l;this.cellComp=e,this.eGui=t,this.printLayout=i,this.addDomData(),this.onCellFocused(this.focusEventToRestore),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(n),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),null==(r=this.cellPositionFeature)||r.setComp(t),null==(a=this.cellCustomStyleFeature)||a.setComp(e),null==(s=this.tooltipFeature)||s.refreshToolTip(),null==(l=this.cellKeyboardListenerFeature)||l.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(e,t),o&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach((e=>e())),this.onCellCompAttachedFuncs=[])}setupAutoHeight(e){if(this.isAutoHeight=this.column.isAutoHeight(),!this.isAutoHeight||!e)return;const t=e.parentElement,n=this.beans.gos.getRowHeightForNode(this.rowNode).height,i=o=>{if(this.editing)return;if(!this.isAlive())return;const{paddingTop:r,paddingBottom:a,borderBottomWidth:s,borderTopWidth:l}=xo(t),d=r+a+s+l,c=e.offsetHeight+d;if(o<5){const t=this.beans.gos.getDocument();if(!t||!t.contains(e)||0==c)return void window.setTimeout((()=>i(o+1)),0)}const g=Math.max(c,n);this.rowNode.setRowAutoHeight(g,this.column)},o=()=>i(0);o();const r=this.beans.resizeObserverService.observeResize(e,o);this.addDestroyFunc((()=>{r(),this.rowNode.setRowAutoHeight(void 0,this.column)}))}getCellAriaRole(){var e;return null!=(e=this.column.getColDef().cellAriaRole)?e:"gridcell"}getInstanceId(){return this.instanceId}getColumnIdSanitised(){return this.colIdSanitised}getTabIndex(){return this.tabIndex}isCellRenderer(){const e=this.column.getColDef();return null!=e.cellRenderer||null!=e.cellRendererSelector}getValueToDisplay(){var e;return null!=(e=this.valueFormatted)?e:this.value}showValue(e=!1){var t;const n=this.getValueToDisplay();let i;if(this.rowNode.stub){const e=this.createCellRendererParams();i=this.beans.userComponentFactory.getLoadingCellRendererDetails(this.column.getColDef(),e)}else if(this.isCellRenderer()){const e=this.createCellRendererParams();i=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),e)}this.cellComp.setRenderDetails(i,n,e),null==(t=this.cellRangeFeature)||t.refreshHandle()}setupControlComps(){const e=this.column.getColDef();this.includeSelection=this.isIncludeControl(e.checkboxSelection),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}isIncludeControl(e){return!(null!=this.rowNode.rowPinned)&&("function"==typeof e||!0===e)}refreshShouldDestroy(){const e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(e.checkboxSelection),n=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),i=this.includeDndSource!=this.isIncludeControl(e.dndSource),o=this.isAutoHeight!=this.column.isAutoHeight();return t||n||i||o}startEditing(e=null,t=!1,n=null){if(!this.isCellEditable()||this.editing)return;if(!this.cellComp)return void this.onCellCompAttachedFuncs.push((()=>{this.startEditing(e,t,n)}));const i=this.createCellEditorParams(e,t),o=this.column.getColDef(),r=this.beans.userComponentFactory.getCellEditorDetails(o,i);this.editCompDetails=r;const a=null!=(null==r?void 0:r.popupFromSelector)?r.popupFromSelector:!!o.cellEditorPopup,s=null!=(null==r?void 0:r.popupPositionFromSelector)?r.popupPositionFromSelector:o.cellEditorPopupPosition;this.setEditing(!0),this.cellComp.setEditDetails(r,a,s,this.beans.gos.get("reactiveCustomComponents"));const l=this.createEvent(n,An.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(l)}setEditing(e){var t;this.editing!==e&&(this.editing=e,null==(t=this.cellRangeFeature)||t.refreshHandle())}stopRowOrCellEdit(e=!1){"fullRow"===this.beans.gos.get("editType")?this.rowCtrl.stopEditing(e):this.stopEditing(e)}onPopupEditorClosed(){this.isEditing()&&this.stopEditingAndFocus()}takeValueFromCellEditor(e){const t={newValueExists:!1};if(e)return t;const n=this.cellComp.getCellEditor();if(!n)return t;if(n.isCancelAfterEnd&&n.isCancelAfterEnd())return t;return{newValue:n.getValue(),newValueExists:!0}}saveNewValue(e,t){if(t===e)return!1;this.suppressRefreshCell=!0;const n=this.rowNode.setDataValue(this.column,t,"edit");return this.suppressRefreshCell=!1,n}stopEditing(e=!1){if(!this.editing)return!1;const{newValue:t,newValueExists:n}=this.takeValueFromCellEditor(e),i=this.rowNode.getValueFromValueService(this.column);let o=!1;return n&&(o=this.saveNewValue(i,t)),this.setEditing(!1),this.cellComp.setEditDetails(),this.editCompDetails=void 0,this.updateAndFormatValue(!1),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(i,t,!e&&!!o),o}dispatchEditingStoppedEvent(e,t,n){const i=Le(Ie({},this.createEvent(null,An.EVENT_CELL_EDITING_STOPPED)),{oldValue:e,newValue:t,valueChanged:n});this.beans.eventService.dispatchEvent(i)}createCellEditorParams(e,t){return this.beans.gos.addGridCommonParams({value:this.rowNode.getValueFromValueService(this.column),eventKey:e,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,cellStartedEdit:t,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)})}createCellRendererParams(){return this.beans.gos.addGridCommonParams({value:this.value,valueFormatted:this.valueFormatted,getValue:()=>this.rowNode.getValueFromValueService(this.column),setValue:e=>this.beans.valueService.setValue(this.rowNode,this.column,e),formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,pinned:this.column.getPinned(),colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:(e,t,n,i)=>this.registerRowDragger(e,t,i),setTooltip:(e,t)=>{var n;this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(e,t),null==(n=this.tooltipFeature)||n.refreshToolTip()}})}parseValue(e){return this.beans.valueService.parseValue(this.column,this.rowNode,e,this.getValue())}setFocusOutOnEditor(){if(!this.editing)return;const e=this.cellComp.getCellEditor();e&&e.focusOut&&e.focusOut()}setFocusInOnEditor(){if(!this.editing)return;const e=this.cellComp.getCellEditor();e&&e.focusIn?e.focusIn():this.focusCell(!0)}onCellChanged(e){e.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(e){var t;this.refreshShouldDestroy()?null==(t=this.rowCtrl)||t.recreateCell(this):this.refreshCell(e)}refreshCell(e){var t,n,i,o;if(this.suppressRefreshCell||this.editing)return;const r=this.column.getColDef(),a=null!=e&&!!e.newData,s=null!=e&&!!e.suppressFlash||!!r.suppressCellFlash,l=null==r.field&&null==r.valueGetter&&null==r.showRowGroup,d=e&&e.forceRefresh||l||a,c=!!this.cellComp,g=this.updateAndFormatValue(c);if(c){if(d||g){this.showValue(a);const e=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!s&&!e&&(this.beans.gos.get("enableCellChangeFlash")||r.enableCellChangeFlash)&&this.flashCell(),null==(t=this.cellCustomStyleFeature)||t.applyUserStyles(),null==(n=this.cellCustomStyleFeature)||n.applyClassesFromColDef()}null==(i=this.tooltipFeature)||i.refreshToolTip(),null==(o=this.cellCustomStyleFeature)||o.applyCellClassRules()}}stopEditingAndFocus(e=!1,t=!1){this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit(t)}navigateAfterEdit(e){if(this.beans.gos.get("enterNavigatesVerticallyAfterEdit")){const t=e?pr.UP:pr.DOWN;this.beans.navigationService.navigateToNextCell(null,t,this.getCellPosition(),!1)}}flashCell(e){var t,n;const i=null!=(t=null==e?void 0:e.flashDuration)?t:null==e?void 0:e.flashDelay,o=null!=(n=null==e?void 0:e.fadeDuration)?n:null==e?void 0:e.fadeDelay;this.animateCell("data-changed",i,o)}animateCell(e,t,n){if(!this.cellComp)return;const i=`ag-cell-${e}`,o=`ag-cell-${e}-animation`,{gos:r}=this.beans;t||(t=r.get("cellFlashDuration")),ze(n)||(n=r.get("cellFadeDuration")),this.cellComp.addOrRemoveCssClass(i,!0),this.cellComp.addOrRemoveCssClass(o,!1),this.beans.frameworkOverrides.wrapIncoming((()=>{window.setTimeout((()=>{this.isAlive()&&(this.cellComp.addOrRemoveCssClass(i,!1),this.cellComp.addOrRemoveCssClass(o,!0),this.eGui.style.transition=`background-color ${n}ms`,window.setTimeout((()=>{this.isAlive()&&(this.cellComp.addOrRemoveCssClass(o,!1),this.eGui.style.transition="")}),n))}),t)}))}onFlashCells(e){if(!this.cellComp)return;const t=this.beans.cellPositionUtils.createId(this.getCellPosition());e.cells[t]&&this.animateCell("highlight")}isCellEditable(){return this.column.isCellEditable(this.rowNode)}isSuppressFillHandle(){return this.column.isSuppressFillHandle()}formatValue(e){var t;return null!=(t=this.callValueFormatter(e))?t:e}callValueFormatter(e){return this.beans.valueService.formatValue(this.column,this.rowNode,e)}updateAndFormatValue(e){const t=this.value,n=this.valueFormatted;return this.value=this.rowNode.getValueFromValueService(this.column),this.valueFormatted=this.callValueFormatter(this.value),!e||(!this.valuesAreEqual(t,this.value)||this.valueFormatted!=n)}valuesAreEqual(e,t){const n=this.column.getColDef();return n.equals?n.equals(e,t):e===t}getComp(){return this.cellComp}getValue(){return this.value}addDomData(){const e=this.getGui();this.beans.gos.setDomData(e,_CellCtrl.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc((()=>this.beans.gos.setDomData(e,_CellCtrl.DOM_DATA_KEY_CELL_CTRL,null)))}createEvent(e,t){return this.beans.gos.addGridCommonParams({type:t,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),rowPinned:this.rowNode.rowPinned,event:e,rowIndex:this.rowNode.rowIndex})}processCharacter(e){var t;null==(t=this.cellKeyboardListenerFeature)||t.processCharacter(e)}onKeyDown(e){var t;null==(t=this.cellKeyboardListenerFeature)||t.onKeyDown(e)}onMouseEvent(e,t){var n;null==(n=this.cellMouseListenerFeature)||n.onMouseEvent(e,t)}getGui(){return this.eGui}getColSpanningList(){return this.cellPositionFeature.getColSpanningList()}onLeftChanged(){var e;this.cellComp&&(null==(e=this.cellPositionFeature)||e.onLeftChanged())}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){const{cellComp:e,column:t,beans:n}=this;hl.refreshFirstAndLastStyles(e,t,n.columnModel)}refreshAriaColIndex(){const e=this.beans.columnModel.getAriaColumnIndex(this.column);Ai(this.getGui(),e)}isSuppressNavigable(){return this.column.isSuppressNavigable(this.rowNode)}onWidthChanged(){var e;return null==(e=this.cellPositionFeature)?void 0:e.onWidthChanged()}getColumn(){return this.column}getRowNode(){return this.rowNode}isPrintLayout(){return this.printLayout}getCellPosition(){return this.cellPosition}isEditing(){return this.editing}startRowOrCellEdit(e,t=null){this.cellComp?"fullRow"===this.beans.gos.get("editType")?this.rowCtrl.startRowEditing(e,this):this.startEditing(e,!0,t):this.onCellCompAttachedFuncs.push((()=>{this.startRowOrCellEdit(e,t)}))}getRowCtrl(){return this.rowCtrl}getRowPosition(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}}updateRangeBordersIfRangeCount(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()}onRangeSelectionChanged(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()}isRangeSelectionEnabled(){return null!=this.cellRangeFeature}focusCell(e=!1){this.beans.focusService.setFocusedCell({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:e})}onRowIndexChanged(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()}onFirstRightPinnedChanged(){if(!this.cellComp)return;const e=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass("ag-cell-first-right-pinned",e)}onLastLeftPinnedChanged(){if(!this.cellComp)return;const e=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass("ag-cell-last-left-pinned",e)}onCellFocused(e){if(this.beans.gos.get("suppressCellFocus"))return;const t=this.beans.focusService.isCellFocused(this.cellPosition);if(!this.cellComp)return void(t&&(null==e?void 0:e.forceBrowserFocus)&&(this.focusEventToRestore=e));if(this.focusEventToRestore=void 0,this.cellComp.addOrRemoveCssClass("ag-cell-focus",t),t&&e&&e.forceBrowserFocus){this.cellComp.getFocusableElement().focus({preventScroll:!!e.preventScrollOnBrowserFocus})}const n="fullRow"===this.beans.gos.get("editType");t||n||!this.editing||this.stopRowOrCellEdit(),t&&this.rowCtrl.announceDescription()}createCellPosition(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:Ge(this.rowNode.rowPinned),column:this.column}}applyStaticCssClasses(){this.cellComp.addOrRemoveCssClass("ag-cell",!0),this.cellComp.addOrRemoveCssClass("ag-cell-not-inline-editing",!0);const e=1==this.column.isAutoHeight();this.cellComp.addOrRemoveCssClass("ag-cell-auto-height",e),this.cellComp.addOrRemoveCssClass("ag-cell-normal-height",!e)}onColumnHover(){if(!this.cellComp)return;if(!this.beans.gos.get("columnHoverHighlight"))return;const e=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass("ag-column-hover",e)}onColDefChanged(){if(!this.cellComp)return;if(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editing){const e=this.getCellEditor();if(null==e?void 0:e.refresh){const{eventKey:t,cellStartedEdit:n}=this.editCompDetails.params,i=this.createCellEditorParams(t,n),o=this.column.getColDef(),r=this.beans.userComponentFactory.getCellEditorDetails(o,i);e.refresh(r.params)}}else this.refreshOrDestroyCell({forceRefresh:!0,suppressFlash:!0})}setWrapText(){const e=1==this.column.getColDef().wrapText;this.cellComp.addOrRemoveCssClass("ag-cell-wrap-text",e)}dispatchCellContextMenuEvent(e){const t=this.column.getColDef(),n=this.createEvent(e,An.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(n),t.onCellContextMenu&&window.setTimeout((()=>{this.beans.frameworkOverrides.wrapOutgoing((()=>{t.onCellContextMenu(n)}))}),0)}getCellRenderer(){return this.cellComp?this.cellComp.getCellRenderer():null}getCellEditor(){return this.cellComp?this.cellComp.getCellEditor():null}destroy(){this.onCellCompAttachedFuncs=[],super.destroy()}createSelectionCheckbox(){const e=new $a;return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e}createDndSource(){const e=new ul(this.rowNode,this.column,this.eGui);return this.beans.context.createBean(e),e}registerRowDragger(e,t,n){if(this.customRowDragComp)return void this.customRowDragComp.setDragElement(e,t);const i=this.createRowDragComp(e,t,n);i&&(this.customRowDragComp=i,this.addDestroyFunc((()=>{this.beans.context.destroyBean(i),this.customRowDragComp=null})))}createRowDragComp(e,t,n){const i=this.beans.gos.get("pagination"),o=this.beans.gos.get("rowDragManaged"),r=this.beans.gos.isRowModelType("clientSide");if(o){if(!r)return void st("managed row dragging is only allowed in the Client Side Row Model");if(i)return void st("managed row dragging is not possible when doing pagination")}const a=new Xa((()=>this.value),this.rowNode,this.column,e,t,n);return this.beans.context.createBean(a),a}};ml.DOM_DATA_KEY_CELL_CTRL="cellCtrl";var vl=ml,fl=0,Cl=class _RowCtrl extends En{constructor(e,t,n,i,o){super(),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.businessKeySanitised=null,this.beans=t,this.gos=t.gos,this.rowNode=e,this.paginationPage=t.paginationProxy.getCurrentPage(),this.useAnimationFrameForCreate=i,this.printLayout=o,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=e.id+"-"+fl++,this.rowId=On(e.id),this.initRowBusinessKey(),this.rowFocused=t.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=t.rowCssClassCalculator.calculateRowLevel(this.rowNode),this.setRowType(),this.setAnimateFlags(n),this.rowStyles=this.processStylesFromGridOptions(),this.isFullWidth()&&!this.gos.get("suppressCellFocus")&&(this.tabIndex=-1),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if("function"!=typeof this.businessKeyForNodeFunc)return;const e=this.businessKeyForNodeFunc(this.rowNode);this.businessKeySanitised=On(e)}getRowId(){return this.rowId}getRowStyles(){return this.rowStyles}getTabIndex(){return this.tabIndex}isSticky(){return this.rowNode.sticky}getInstanceId(){return this.instanceId}setComp(e,t,n){const i={rowComp:e,element:t,containerType:n};this.allRowGuis.push(i),"left"===n?this.leftGui=i:"right"===n?this.rightGui=i:"fullWidth"===n?this.fullWidthGui=i:this.centerGui=i,this.initialiseRowComp(i),"FullWidthLoading"===this.rowType||this.rowNode.rowPinned||this.beans.rowRenderer.dispatchFirstDataRenderedEvent()}unsetComp(e){switch(this.allRowGuis=this.allRowGuis.filter((t=>t.containerType!==e)),e){case"left":this.leftGui=void 0;break;case"right":this.rightGui=void 0;break;case"fullWidth":this.fullWidthGui=void 0;break;case"center":this.centerGui=void 0}}isCacheable(){return"FullWidthDetail"===this.rowType&&this.gos.get("keepDetailRows")}setCached(e){const t=e?"none":"";this.allRowGuis.forEach((e=>e.element.style.display=t))}initialiseRowComp(e){const t=this.gos;this.listenOnDomOrder(e),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights(),this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(!1,e),t.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);const n=e.rowComp;this.getInitialRowClasses(e.containerType).forEach((e=>n.addOrRemoveCssClass(e,!0))),this.executeSlideAndFadeAnimations(e),this.rowNode.group&&wi(e.element,1==this.rowNode.expanded),this.setRowCompRowId(n),this.setRowCompRowBusinessKey(n),t.setDomData(e.element,_RowCtrl.DOM_DATA_KEY_ROW_CTRL,this),this.addDestroyFunc((()=>t.setDomData(e.element,_RowCtrl.DOM_DATA_KEY_ROW_CTRL,null))),this.useAnimationFrameForCreate?this.beans.animationFrameService.createTask(this.addHoverFunctionality.bind(this,e.element),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(e.element),this.isFullWidth()&&this.setupFullWidth(e),t.get("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameService.addDestroyTask((()=>{this.isAlive()&&e.rowComp.addOrRemoveCssClass("ag-after-created",!0)})),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(e){null!=this.businessKeySanitised&&e.setRowBusinessKey(this.businessKeySanitised)}getBusinessKey(){return this.businessKeySanitised}setRowCompRowId(e){this.rowId=On(this.rowNode.id),null!=this.rowId&&e.setRowId(this.rowId)}executeSlideAndFadeAnimations(e){const{containerType:t}=e;this.slideInAnimation[t]&&(pt((()=>{this.onTopChanged()})),this.slideInAnimation[t]=!1);this.fadeInAnimation[t]&&(pt((()=>{e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)})),this.fadeInAnimation[t]=!1)}addRowDraggerToRow(e){if(this.gos.get("enableRangeSelection"))return void st("Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`");const t=this.beans.localeService.getLocaleTextFunc(),n=new Xa((()=>`1 ${t("rowDragRow","row")}`),this.rowNode,void 0,e.element,void 0,!0),i=this.createBean(n,this.beans.context);this.rowDragComps.push(i)}setupFullWidth(e){const t=this.getPinnedForContainer(e.containerType);if("FullWidthDetail"==this.rowType&&!St.__assertRegistered("@ag-grid-enterprise/master-detail","cell renderer 'agDetailCellRenderer' (for master detail)",this.beans.context.getGridId()))return;const n=this.createFullWidthCompDetails(e.element,t);e.rowComp.showFullWidth(n)}isPrintLayout(){return this.printLayout}getFullWidthCellRenderers(){var e,t;return this.gos.get("embedFullWidthRows")?this.allRowGuis.map((e=>{var t;return null==(t=null==e?void 0:e.rowComp)?void 0:t.getFullWidthCellRenderer()})):[null==(t=null==(e=this.fullWidthGui)?void 0:e.rowComp)?void 0:t.getFullWidthCellRenderer()]}getCellElement(e){const t=this.getCellCtrl(e);return t?t.getGui():null}executeProcessRowPostCreateFunc(){const e=this.gos.getCallback("processRowPostCreate");if(!e||!this.areAllContainersReady())return;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(){const e=!!this.leftGui||!this.beans.columnModel.isPinningLeft(),t=!!this.centerGui,n=!!this.rightGui||!this.beans.columnModel.isPinningRight();return e&&t&&n}setRowType(){const e=this.rowNode.stub&&!this.gos.get("suppressServerSideFullWidthLoadingRow"),t=this.rowNode.isFullWidthCell(),n=this.gos.get("masterDetail")&&this.rowNode.detail,i=this.beans.columnModel.isPivotMode(),o=!!this.rowNode.group&&!this.rowNode.footer&&this.gos.isGroupUseEntireRow(i);this.rowType=e?"FullWidthLoading":n?"FullWidthDetail":t?"FullWidth":o?"FullWidthGroup":"Normal"}updateColumnLists(e=!1,t=!1){if(this.isFullWidth())return;e||this.gos.get("suppressAnimationFrame")||this.printLayout?this.updateColumnListsImpl(t):this.updateColumnListsPending||(this.beans.animationFrameService.createTask((()=>{this.active&&this.updateColumnListsImpl(!0)}),this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}createCellCtrls(e,t,n=null){const i={list:[],map:{}},o=(e,t)=>{i.list.push(t),i.map[e]=t};return t.forEach((t=>{const n=t.getInstanceId();let i=e.map[n];i||(i=new vl(t,this.rowNode,this.beans,this)),o(n,i)})),e.list.forEach((e=>{if(null!=i.map[e.getColumn().getInstanceId()])return;this.isCellEligibleToBeRemoved(e,n)?e.destroy():o(e.getColumn().getInstanceId(),e)})),i}updateColumnListsImpl(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)}setCellCtrls(e){this.allRowGuis.forEach((t=>{const n=this.getCellCtrlsForContainer(t.containerType);t.rowComp.setCellCtrls(n,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;default:throw new Error(`Unhandled case: ${e}`)}}createAllCellCtrls(){const e=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,e.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{const t=e.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t);const n=e.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,n,"left");const i=e.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,i,"right")}}isCellEligibleToBeRemoved(e,t){const n=!0;if(e.getColumn().getPinned()!=t)return n;const i=e.isEditing(),o=this.beans.focusService.isCellFocused(e.getCellPosition());if(i||o){const t=e.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(t)>=0)&&n}return n}getDomOrder(){return this.gos.get("ensureDomOrder")||this.gos.isDomLayout("print")}listenOnDomOrder(e){const t=()=>{e.rowComp.setDomOrder(this.getDomOrder())};this.addManagedPropertyListener("domLayout",t),this.addManagedPropertyListener("ensureDomOrder",t)}setAnimateFlags(e){if(this.isSticky()||!e)return;const t=ze(this.rowNode.oldRowTop),n=this.beans.columnModel.isPinningLeft(),i=this.beans.columnModel.isPinningRight();if(t){if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows"))return void(this.slideInAnimation.fullWidth=!0);this.slideInAnimation.center=!0,this.slideInAnimation.left=n,this.slideInAnimation.right=i}else{if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows"))return void(this.fadeInAnimation.fullWidth=!0);this.fadeInAnimation.center=!0,this.fadeInAnimation.left=n,this.fadeInAnimation.right=i}}isEditing(){return this.editingRow}isFullWidth(){return"Normal"!==this.rowType}refreshFullWidth(){const e=(e,t)=>!e||e.rowComp.refreshFullWidth((()=>this.createFullWidthCompDetails(e.element,t).params)),t=e(this.fullWidthGui,null),n=e(this.centerGui,null),i=e(this.leftGui,"left"),o=e(this.rightGui,"right");return t&&n&&i&&o}addListeners(){this.addManagedListener(this.rowNode,Ya.EVENT_HEIGHT_CHANGED,(()=>this.onRowHeightChanged())),this.addManagedListener(this.rowNode,Ya.EVENT_ROW_SELECTED,(()=>this.onRowSelected())),this.addManagedListener(this.rowNode,Ya.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,Ya.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,Ya.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Ya.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.rowNode.detail&&this.addManagedListener(this.rowNode.parent,Ya.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,Ya.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,Ya.EVENT_CELL_CHANGED,this.postProcessCss.bind(this)),this.addManagedListener(this.rowNode,Ya.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,Ya.EVENT_DRAGGING_CHANGED,this.postProcessRowDragging.bind(this)),this.addManagedListener(this.rowNode,Ya.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));const e=this.beans.eventService;this.addManagedListener(e,An.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,An.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,An.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,An.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,An.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,An.EVENT_CELL_FOCUS_CLEARED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,An.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,An.EVENT_MODEL_UPDATED,this.refreshFirstAndLastRowStyles.bind(this)),this.addManagedListener(e,An.EVENT_COLUMN_MOVED,this.updateColumnLists.bind(this)),this.addDestroyFunc((()=>{this.destroyBeans(this.rowDragComps,this.beans.context),this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature,this.beans.context))})),this.addManagedPropertyListeners(["rowDragEntireRow"],(()=>{this.gos.get("rowDragEntireRow")?this.allRowGuis.forEach((e=>{this.addRowDraggerToRow(e)})):(this.destroyBeans(this.rowDragComps,this.beans.context),this.rowDragComps=[])})),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListener(this.rowNode,Ya.EVENT_ROW_INDEX_CHANGED,(()=>{this.getAllCellCtrls().forEach((e=>e.onRowIndexChanged()))})),this.addManagedListener(this.rowNode,Ya.EVENT_CELL_CHANGED,(e=>{this.getAllCellCtrls().forEach((t=>t.onCellChanged(e)))}))}onRowNodeDataChanged(e){if(this.isFullWidth()!==!!this.rowNode.isFullWidthCell())this.beans.rowRenderer.redrawRow(this.rowNode);else if(this.isFullWidth()){this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode)}else this.getAllCellCtrls().forEach((t=>t.refreshCell({suppressFlash:!e.update,newData:!e.update}))),this.allRowGuis.forEach((e=>{this.setRowCompRowId(e.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(e.rowComp)})),this.onRowSelected(),this.postProcessCss()}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){const e=this.rowNode.highlighted;this.allRowGuis.forEach((t=>{const n=0===e,i=1===e;t.rowComp.addOrRemoveCssClass("ag-row-highlight-above",n),t.rowComp.addOrRemoveCssClass("ag-row-highlight-below",i)}))}postProcessRowDragging(){const e=this.rowNode.dragging;this.allRowGuis.forEach((t=>t.rowComp.addOrRemoveCssClass("ag-row-dragging",e)))}updateExpandedCss(){const e=this.rowNode.isExpandable(),t=1==this.rowNode.expanded;this.allRowGuis.forEach((n=>{n.rowComp.addOrRemoveCssClass("ag-row-group",e),n.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&t),n.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!t),wi(n.element,e&&t)}))}onDisplayedColumnsChanged(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:Ge(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}onKeyboardNavigate(e){const t=this.allRowGuis.find((t=>t.element.contains(e.target)));if(!((t?t.element:null)===e.target))return;const n=this.rowNode,i=this.beans.focusService.getFocusedCell(),o={rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:i&&i.column};this.beans.navigationService.navigateToNextCell(e,e.key,o,!0),e.preventDefault()}onTabKeyDown(e){if(e.defaultPrevented||pn(e))return;const t=this.allRowGuis.find((t=>t.element.contains(e.target))),n=t?t.element:null,i=n===e.target;let o=null;i||(o=this.beans.focusService.findNextFocusableElement(n,!1,e.shiftKey)),(this.isFullWidth()&&i||!o)&&this.beans.navigationService.onTabKeyDown(this,e)}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){var e;const t=null==(e=this.allRowGuis.find((e=>Vo(e.element))))?void 0:e.element;return t?t.getBoundingClientRect().top:0}onFullWidthRowFocused(e){var t;const n=this.rowNode,i=!!e&&(this.isFullWidth()&&e.rowIndex===n.rowIndex&&e.rowPinned==n.rowPinned),o=this.fullWidthGui?this.fullWidthGui.element:null==(t=this.centerGui)?void 0:t.element;o&&(o.classList.toggle("ag-full-width-focus",i),i&&o.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){const n={list:[],map:{}};return e.list.forEach((e=>{e!==t&&(n.list.push(e),n.map[e.getColumn().getInstanceId()]=e)})),n}onMouseEvent(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t)}}createRowEvent(e,t){return this.gos.addGridCommonParams({type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,event:t})}createRowEventWithSource(e,t){const n=this.createRowEvent(e,t);return n.source=this,n}onRowDblClick(e){if(pn(e))return;const t=this.createRowEventWithSource(An.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}onRowMouseDown(e){if(this.lastMouseDownOnDragger=Ao(e.target,"ag-row-drag",3),!this.isFullWidth())return;const t=this.rowNode,n=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:t.rowIndex,column:n.getAllDisplayedColumns()[0],rowPinned:t.rowPinned,forceBrowserFocus:!0})}onRowClick(e){if(pn(e)||this.lastMouseDownOnDragger)return;const t=this.createRowEventWithSource(An.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);const n=e.ctrlKey||e.metaKey,i=e.shiftKey;if(this.gos.get("groupSelectsChildren")&&this.rowNode.group||this.isRowSelectionBlocked()||this.gos.get("suppressRowClickSelection"))return;const o=this.gos.get("rowMultiSelectWithClick"),r=!this.gos.get("suppressRowDeselection"),a="rowClicked";if(this.rowNode.isSelected())o?this.rowNode.setSelectedParams({newValue:!1,event:e,source:a}):n?r&&this.rowNode.setSelectedParams({newValue:!1,event:e,source:a}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!i,rangeSelect:i,event:e,source:a});else{const t=!o&&!n;this.rowNode.setSelectedParams({newValue:!0,clearSelection:t,rangeSelect:i,event:e,source:a})}}isRowSelectionBlocked(){return!this.rowNode.selectable||!!this.rowNode.rowPinned||!this.gos.isRowSelection()}setupDetailRowAutoHeight(e){if("FullWidthDetail"!==this.rowType)return;if(!this.gos.get("detailRowAutoHeight"))return;const t=()=>{const t=e.clientHeight;if(null!=t&&t>0){const e=()=>{this.rowNode.setRowHeight(t),this.beans.clientSideRowModel?this.beans.clientSideRowModel.onRowHeightChanged():this.beans.serverSideRowModel&&this.beans.serverSideRowModel.onRowHeightChanged()};window.setTimeout(e,0)}},n=this.beans.resizeObserverService.observeResize(e,t);this.addDestroyFunc(n),t()}createFullWidthCompDetails(e,t){const n=this.gos.addGridCommonParams({fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(e,t,n,i)=>this.addFullWidthRowDragging(e,t,n,i),setTooltip:(e,t)=>this.refreshRowTooltip(e,t)});switch(this.rowType){case"FullWidthDetail":return this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(n);case"FullWidthGroup":return this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(n);case"FullWidthLoading":return this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(n);default:return this.beans.userComponentFactory.getFullWidthCellRendererDetails(n)}}refreshRowTooltip(e,t){if(!this.fullWidthGui)return;const n={getGui:()=>this.fullWidthGui.element,getTooltipValue:()=>e,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:t};this.tooltipFeature&&this.destroyBean(this.tooltipFeature,this.beans.context),this.tooltipFeature=this.createBean(new Ir(n,this.beans))}addFullWidthRowDragging(e,t,n="",i){if(!this.isFullWidth())return;const o=new Xa((()=>n),this.rowNode,void 0,e,t,i);this.createBean(o,this.beans.context),this.addDestroyFunc((()=>{this.destroyBean(o,this.beans.context)}))}onUiLevelChanged(){const e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){const t="ag-row-level-"+e,n="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((e=>{e.rowComp.addOrRemoveCssClass(t,!0),e.rowComp.addOrRemoveCssClass(n,!1)}))}this.rowLevel=e}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()}refreshFirstAndLastRowStyles(){const e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach((t=>t.rowComp.addOrRemoveCssClass("ag-row-first",e)))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowGuis.forEach((e=>e.rowComp.addOrRemoveCssClass("ag-row-last",t))))}stopEditing(e=!1){if(this.stoppingRowEdit)return;const t=this.getAllCellCtrls(),n=this.editingRow;this.stoppingRowEdit=!0;let i=!1;for(const o of t){const t=o.stopEditing(e);n&&!e&&!i&&t&&(i=!0)}if(i){const e=this.createRowEvent(An.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(e)}n&&this.setEditingRow(!1),this.stoppingRowEdit=!1}setInlineEditingCss(e){this.allRowGuis.forEach((t=>{t.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),t.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)}))}setEditingRow(e){this.editingRow=e,this.allRowGuis.forEach((t=>t.rowComp.addOrRemoveCssClass("ag-row-editing",e)));const t=e?this.createRowEvent(An.EVENT_ROW_EDITING_STARTED):this.createRowEvent(An.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)}startRowEditing(e=null,t=null,n=null){if(this.editingRow)return;this.getAllCellCtrls().reduce(((i,o)=>{const r=o===t;return r?o.startEditing(e,r,n):o.startEditing(null,r,n),!!i||o.isEditing()}),!1)&&this.setEditingRow(!0)}getAllCellCtrls(){if(0===this.leftCellCtrls.list.length&&0===this.rightCellCtrls.list.length)return this.centerCellCtrls.list;return[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){const e=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);e&&e.length&&e.forEach((e=>{this.allRowGuis.forEach((t=>t.rowComp.addOrRemoveCssClass(e,!0)))}))}postProcessRowClassRules(){this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,(e=>{this.allRowGuis.forEach((t=>t.rowComp.addOrRemoveCssClass(e,!0)))}),(e=>{this.allRowGuis.forEach((t=>t.rowComp.addOrRemoveCssClass(e,!1)))}))}setStylesFromGridOptions(e,t){e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(t,(e=>e.rowComp.setUserStyles(this.rowStyles)))}getPinnedForContainer(e){return"left"===e?"left":"right"===e?"right":null}getInitialRowClasses(e){const t=this.getPinnedForContainer(e),n={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[e],rowIsEven:this.rowNode.rowIndex%2==0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:t};return this.beans.rowCssClassCalculator.getInitialRowClasses(n)}processStylesFromGridOptions(){const e=this.gos.get("rowStyle");if(e&&"function"==typeof e)return void console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead");const t=this.gos.getCallback("getRowStyle");let n;if(t){n=t({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex})}return n||e?Object.assign({},e,n):this.emptyStyle}onRowSelected(e){const t=!!this.rowNode.isSelected();this.forEachGui(e,(e=>{e.rowComp.addOrRemoveCssClass("ag-row-selected",t),Pi(e.element,t);!e.element.contains(this.beans.gos.getActiveDomElement())||e!==this.centerGui&&e!==this.fullWidthGui||this.announceDescription()}))}announceDescription(){if(this.isRowSelectionBlocked())return;const e=this.rowNode.isSelected();if(e&&this.beans.gos.get("suppressRowDeselection"))return;const t=this.beans.localeService.getLocaleTextFunc()(e?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${e?"deselect":"select"} this row.`);this.beans.ariaAnnouncementService.announceValue(t)}addHoverFunctionality(e){this.active&&(this.addManagedListener(e,"mouseenter",(()=>this.rowNode.onMouseEnter())),this.addManagedListener(e,"mouseleave",(()=>this.rowNode.onMouseLeave())),this.addManagedListener(this.rowNode,Ya.EVENT_MOUSE_ENTER,(()=>{this.beans.dragService.isDragging()||this.gos.get("suppressRowHoverHighlight")||(e.classList.add("ag-row-hover"),this.rowNode.setHovered(!0))})),this.addManagedListener(this.rowNode,Ya.EVENT_MOUSE_LEAVE,(()=>{e.classList.remove("ag-row-hover"),this.rowNode.setHovered(!1)})))}roundRowTopToBounds(e){const t=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getApproximateVScollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,i=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),i)}getFrameworkOverrides(){return this.beans.frameworkOverrides}forEachGui(e,t){e?t(e):this.allRowGuis.forEach(t)}onRowHeightChanged(e){if(null==this.rowNode.rowHeight)return;const t=this.rowNode.rowHeight,n=this.beans.environment.getDefaultRowHeight(),i=this.gos.isGetRowHeightFunction()?this.gos.getRowHeightForNode(this.rowNode).height:void 0,o=i?Math.min(n,i)-2+"px":void 0;this.forEachGui(e,(e=>{e.element.style.height=`${t}px`,o&&e.element.style.setProperty("--ag-line-height",o)}))}addEventListener(e,t){super.addEventListener(e,t)}removeEventListener(e,t){super.removeEventListener(e,t)}destroyFirstPass(e=!1){if(this.active=!1,!e&&this.gos.isAnimateRows()&&!this.isSticky()){if(null!=this.rowNode.rowTop){const e=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(e)}else this.allRowGuis.forEach((e=>e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)))}this.rowNode.setHovered(!1);const t=this.createRowEvent(An.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(t),this.beans.eventService.dispatchEvent(t),super.destroy()}destroySecondPass(){this.allRowGuis.length=0,this.stopEditing();const e=e=>(e.list.forEach((e=>e.destroy())),{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.addOrRemoveCssClass("ag-row-focus",this.rowFocused),e.rowComp.addOrRemoveCssClass("ag-row-no-focus",!this.rowFocused)}))}onCellFocusChanged(){const e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)}onPaginationChanged(){const e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(e,t=!1){if(this.rowNode.isRowPinned()||this.rowNode.sticky)return e;return e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)}setRowTop(e){if(!this.printLayout&&ze(e)){const t=this.applyPaginationOffset(e),n=`${this.rowNode.isRowPinned()||this.rowNode.sticky?t:this.beans.rowContainerHeightService.getRealPixelPosition(t)}px`;this.setRowTopStyle(n)}}getInitialRowTop(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0}getInitialTransform(e){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(e)})`}getInitialRowTopShared(e){if(this.printLayout)return"";let t;if(this.isSticky())t=this.rowNode.stickyRowTop;else{const n=this.slideInAnimation[e]?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,i=this.applyPaginationOffset(n);t=this.rowNode.isRowPinned()?i:this.beans.rowContainerHeightService.getRealPixelPosition(i)}return t+"px"}setRowTopStyle(e){this.allRowGuis.forEach((t=>this.suppressRowTransform?t.rowComp.setTop(e):t.rowComp.setTransform(`translateY(${e})`)))}getRowNode(){return this.rowNode}getCellCtrl(e){let t=null;return this.getAllCellCtrls().forEach((n=>{n.getColumn()==e&&(t=n)})),null!=t||this.getAllCellCtrls().forEach((n=>{n.getColSpanningList().indexOf(e)>=0&&(t=n)})),t}onRowIndexChanged(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}getRowIndex(){return this.rowNode.getRowIndexString()}updateRowIndexes(e){const t=this.rowNode.getRowIndexString(),n=this.beans.headerNavigationService.getHeaderRowCount()+this.beans.filterManager.getHeaderRowCount(),i=this.rowNode.rowIndex%2==0,o=n+this.rowNode.rowIndex+1;this.forEachGui(e,(e=>{e.rowComp.setRowIndex(t),e.rowComp.addOrRemoveCssClass("ag-row-even",i),e.rowComp.addOrRemoveCssClass("ag-row-odd",!i),Ti(e.element,o)}))}};Cl.DOM_DATA_KEY_ROW_CTRL="renderedRow";var wl=Cl,yl=class extends En{constructor(e){super(),this.element=e}postConstruct(){this.addKeyboardListeners(),this.addMouseListeners(),this.mockContextMenuForIPad()}addKeyboardListeners(){const e="keydown",t=this.processKeyboardEvent.bind(this,e);this.addManagedListener(this.element,e,t)}addMouseListeners(){["dblclick","contextmenu","mouseover","mouseout","click",mn("touchstart")?"touchstart":"mousedown"].forEach((e=>{const t=this.processMouseEvent.bind(this,e);this.addManagedListener(this.element,e,t)}))}processMouseEvent(e,t){if(!this.mouseEventService.isEventFromThisGrid(t)||pn(t))return;const n=this.getRowForEvent(t),i=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,void 0,n,i):(i&&i.onMouseEvent(e,t),n&&n.onMouseEvent(e,t))}mockContextMenuForIPad(){if(!Qi())return;const e=new Pa(this.element);this.addManagedListener(e,Pa.EVENT_LONG_TAP,(e=>{const t=this.getRowForEvent(e.touchEvent),n=this.mouseEventService.getRenderedCellForEvent(e.touchEvent);this.handleContextMenuMouseEvent(void 0,e.touchEvent,t,n)})),this.addDestroyFunc((()=>e.destroy()))}getRowForEvent(e){let t=e.target;for(;t;){const e=this.gos.getDomData(t,wl.DOM_DATA_KEY_ROW_CTRL);if(e)return e;t=t.parentElement}return null}handleContextMenuMouseEvent(e,t,n,i){const o=n?n.getRowNode():null,r=i?i.getColumn():null;let a=null;if(r){const n=e||t;i.dispatchCellContextMenuEvent(null!=n?n:null),a=this.valueService.getValue(r,o)}const s=this.ctrlsService.getGridBodyCtrl(),l=i?i.getGui():s.getGridBodyElement();this.menuService.showContextMenu({mouseEvent:e,touchEvent:t,rowNode:o,column:r,value:a,anchorToElement:l})}getControlsForEventTarget(e){return{cellCtrl:vn(this.gos,e,vl.DOM_DATA_KEY_CELL_CTRL),rowCtrl:vn(this.gos,e,wl.DOM_DATA_KEY_ROW_CTRL)}}processKeyboardEvent(e,t){const{cellCtrl:n,rowCtrl:i}=this.getControlsForEventTarget(t.target);t.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,t):i&&i.isFullWidth()&&this.processFullWidthRowKeyboardEvent(i,e,t))}processCellKeyboardEvent(e,t,n){const i=e.getRowNode(),o=e.getColumn(),r=e.isEditing();if(!vr(this.gos,n,i,o,r)&&"keydown"===t){!r&&this.navigationService.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,e.isEditing()),mr(n)&&e.processCharacter(n)}if("keydown"===t){const t=e.createEvent(n,An.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(t)}}processFullWidthRowKeyboardEvent(e,t,n){const i=e.getRowNode(),o=this.focusService.getFocusedCell(),r=o&&o.column;if(!vr(this.gos,n,i,r,!1)){const i=n.key;if("keydown"===t)switch(i){case pr.PAGE_HOME:case pr.PAGE_END:case pr.PAGE_UP:case pr.PAGE_DOWN:this.navigationService.handlePageScrollingKey(n,!0);break;case pr.UP:case pr.DOWN:e.onKeyboardNavigate(n);break;case pr.TAB:e.onTabKeyDown(n)}}if("keydown"===t){const t=e.createRowEvent(An.EVENT_CELL_KEY_DOWN,n);this.eventService.dispatchEvent(t)}}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey)return;if(t)return;if(!this.mouseEventService.isEventFromThisGrid(e))return;const n=Cr(e);return n===pr.A?this.onCtrlAndA(e):n===pr.C?this.onCtrlAndC(e):n===pr.D?this.onCtrlAndD(e):n===pr.V?this.onCtrlAndV(e):n===pr.X?this.onCtrlAndX(e):n===pr.Y?this.onCtrlAndY():n===pr.Z?this.onCtrlAndZ(e):void 0}onCtrlAndA(e){const{pinnedRowModel:t,paginationProxy:n,rangeService:i}=this;if(i&&n.isRowsToRender()){const[e,n]=[t.isEmpty("top"),t.isEmpty("bottom")],o=e?null:"top";let r,a;n?(r=null,a=this.paginationProxy.getRowCount()-1):(r="bottom",a=t.getPinnedBottomRowData().length-1);const s=this.columnModel.getAllDisplayedColumns();if(He(s))return;i.setCellRange({rowStartIndex:0,rowStartPinned:o,rowEndIndex:a,rowEndPinned:r,columnStart:s[0],columnEnd:Kt(s)})}e.preventDefault()}onCtrlAndC(e){if(!this.clipboardService||this.gos.get("enableCellTextSelection"))return;const{cellCtrl:t,rowCtrl:n}=this.getControlsForEventTarget(e.target);(null==t?void 0:t.isEditing())||(null==n?void 0:n.isEditing())||(e.preventDefault(),this.clipboardService.copyToClipboard())}onCtrlAndX(e){if(!this.clipboardService||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;const{cellCtrl:t,rowCtrl:n}=this.getControlsForEventTarget(e.target);(null==t?void 0:t.isEditing())||(null==n?void 0:n.isEditing())||(e.preventDefault(),this.clipboardService.cutToClipboard(void 0,"ui"))}onCtrlAndV(e){const{cellCtrl:t,rowCtrl:n}=this.getControlsForEventTarget(e.target);(null==t?void 0:t.isEditing())||(null==n?void 0:n.isEditing())||this.clipboardService&&!this.gos.get("suppressClipboardPaste")&&this.clipboardService.pasteFromClipboard()}onCtrlAndD(e){this.clipboardService&&!this.gos.get("suppressClipboardPaste")&&this.clipboardService.copyRangeDown(),e.preventDefault()}onCtrlAndZ(e){this.gos.get("undoRedoCellEditing")&&(e.preventDefault(),e.shiftKey?this.undoRedoService.redo("ui"):this.undoRedoService.undo("ui"))}onCtrlAndY(){this.undoRedoService.redo("ui")}};_e([xt("mouseEventService")],yl.prototype,"mouseEventService",2),_e([xt("valueService")],yl.prototype,"valueService",2),_e([xt("menuService")],yl.prototype,"menuService",2),_e([xt("ctrlsService")],yl.prototype,"ctrlsService",2),_e([xt("navigationService")],yl.prototype,"navigationService",2),_e([xt("focusService")],yl.prototype,"focusService",2),_e([xt("undoRedoService")],yl.prototype,"undoRedoService",2),_e([xt("columnModel")],yl.prototype,"columnModel",2),_e([xt("paginationProxy")],yl.prototype,"paginationProxy",2),_e([xt("pinnedRowModel")],yl.prototype,"pinnedRowModel",2),_e([Mt("rangeService")],yl.prototype,"rangeService",2),_e([Mt("clipboardService")],yl.prototype,"clipboardService",2),_e([Tt],yl.prototype,"postConstruct",1);var bl=class extends En{constructor(e){super(),this.centerContainerCtrl=e}postConstruct(){this.ctrlsService.whenReady((e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.listenForResize()})),this.addManagedListener(this.eventService,An.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this)),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],(()=>{this.checkViewportAndScrolls()}))}listenForResize(){const e=()=>this.onCenterViewportResized();this.centerContainerCtrl.registerViewportResizeListener(e),this.gridBodyCtrl.registerBodyViewportResizeListener(e)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.centerContainerCtrl.isViewportInTheDOMTree()){this.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();const e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}keepPinnedColumnsNarrowerThanViewport(){const e=No(this.gridBodyCtrl.getBodyViewportElement());if(e<=50)return;let t=this.getPinnedColumnsOverflowingViewport(e-50);const n=this.gos.getCallback("processUnpinnedColumns");if(t.length){if(n){t=n({columns:t,viewportWidth:e})}this.columnModel.setColumnsPinned(t,null,"viewportSizeFeature")}}getPinnedColumnsOverflowingViewport(e){const t=this.pinnedWidthService.getPinnedRightWidth()+this.pinnedWidthService.getPinnedLeftWidth();if(t<e)return[];const n=[...this.columnModel.getDisplayedLeftColumns()],i=[...this.columnModel.getDisplayedRightColumns()];let o=0,r=0;const a=[];let s=t-0-e;for(;(r<n.length||o<i.length)&&s>0;){if(o<i.length){const e=i[o++];s-=e.getActualWidth(),a.push(e)}if(r<n.length&&s>0){const e=n[r++];s-=e.getActualWidth(),a.push(e)}}return a}checkViewportAndScrolls(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){const e=Mo(this.gridBodyCtrl.getBodyViewportElement());if(this.bodyHeight!==e){this.bodyHeight=e;const t={type:An.EVENT_BODY_HEIGHT_CHANGED};this.eventService.dispatchEvent(t)}}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){const e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e)}isHorizontalScrollShowing(){return this.centerContainerCtrl.isHorizontalScrollShowing()}onHorizontalViewportChanged(){const e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,t)}};_e([xt("ctrlsService")],bl.prototype,"ctrlsService",2),_e([xt("pinnedWidthService")],bl.prototype,"pinnedWidthService",2),_e([xt("columnModel")],bl.prototype,"columnModel",2),_e([xt("scrollVisibleService")],bl.prototype,"scrollVisibleService",2),_e([Tt],bl.prototype,"postConstruct",1);var El=class extends En{constructor(e){super(),this.element=e}postConstruct(){this.addManagedListener(this.eventService,An.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))}onPinnedLeftWidthChanged(){const e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;Do(this.element,t),Qo(this.element,e)}getWidth(){return this.pinnedWidthService.getPinnedLeftWidth()}};_e([xt("pinnedWidthService")],El.prototype,"pinnedWidthService",2),_e([Tt],El.prototype,"postConstruct",1);var Sl=class extends En{constructor(e){super(),this.element=e}postConstruct(){this.addManagedListener(this.eventService,An.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))}onPinnedRightWidthChanged(){const e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;Do(this.element,t),Qo(this.element,e)}getWidth(){return this.pinnedWidthService.getPinnedRightWidth()}};_e([xt("pinnedWidthService")],Sl.prototype,"pinnedWidthService",2),_e([Tt],Sl.prototype,"postConstruct",1);var Dl=class extends En{constructor(e,t){super(),this.eContainer=e,this.eViewport=t}postConstruct(){this.addManagedListener(this.eventService,An.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))}onHeightChanged(){const e=this.maxDivHeightScaler.getUiContainerHeight(),t=null!=e?`${e}px`:"";this.eContainer.style.height=t,this.eViewport&&(this.eViewport.style.height=t)}};_e([xt("rowContainerHeightService")],Dl.prototype,"maxDivHeightScaler",2),_e([Tt],Dl.prototype,"postConstruct",1);var Tl=class extends En{constructor(e){super(),this.eContainer=e}postConstruct(){if(!this.rangeService)return;this.params={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)},this.addManagedPropertyListener("enableRangeSelection",(e=>{e.currentValue?this.enableFeature():this.disableFeature()})),this.addDestroyFunc((()=>this.disableFeature()));this.gos.get("enableRangeSelection")&&this.enableFeature()}enableFeature(){this.dragService.addDragSource(this.params)}disableFeature(){this.dragService.removeDragSource(this.params)}};_e([xt("dragService")],Tl.prototype,"dragService",2),_e([Mt("rangeService")],Tl.prototype,"rangeService",2),_e([Tt],Tl.prototype,"postConstruct",1);var Rl=class extends En{constructor(e,t=!1){super(),this.callback=e,this.addSpacer=t}postConstruct(){const e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedListener(this.eventService,An.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,An.EVENT_LEFT_PINNED_WIDTH_CHANGED,e),this.addSpacer&&(this.addManagedListener(this.eventService,An.EVENT_RIGHT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,An.EVENT_SCROLL_VISIBILITY_CHANGED,e),this.addManagedListener(this.eventService,An.EVENT_SCROLLBAR_WIDTH_CHANGED,e)),this.setWidth()}setWidth(){const{columnModel:e}=this,t=this.gos.isDomLayout("print"),n=e.getBodyContainerWidth(),i=e.getDisplayedColumnsLeftWidth(),o=e.getDisplayedColumnsRightWidth();let r;if(t)r=n+i+o;else if(r=n,this.addSpacer){0===(this.gos.get("enableRtl")?i:o)&&this.scrollVisibleService.isVerticalScrollShowing()&&(r+=this.gos.getScrollbarWidth())}this.callback(r)}};_e([xt("columnModel")],Rl.prototype,"columnModel",2),_e([xt("scrollVisibleService")],Rl.prototype,"scrollVisibleService",2),_e([Tt],Rl.prototype,"postConstruct",1);var Al=(e=>(e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.FULL_WIDTH="fullWidth",e.TOP_LEFT="topLeft",e.TOP_RIGHT="topRight",e.TOP_CENTER="topCenter",e.TOP_FULL_WIDTH="topFullWidth",e.STICKY_TOP_LEFT="stickyTopLeft",e.STICKY_TOP_RIGHT="stickyTopRight",e.STICKY_TOP_CENTER="stickyTopCenter",e.STICKY_TOP_FULL_WIDTH="stickyTopFullWidth",e.STICKY_BOTTOM_LEFT="stickyBottomLeft",e.STICKY_BOTTOM_RIGHT="stickyBottomRight",e.STICKY_BOTTOM_CENTER="stickyBottomCenter",e.STICKY_BOTTOM_FULL_WIDTH="stickyBottomFullWidth",e.BOTTOM_LEFT="bottomLeft",e.BOTTOM_RIGHT="bottomRight",e.BOTTOM_CENTER="bottomCenter",e.BOTTOM_FULL_WIDTH="bottomFullWidth",e))(Al||{});function xl(e){switch(e){case"center":case"topCenter":case"stickyTopCenter":case"bottomCenter":case"stickyBottomCenter":return"center";case"left":case"topLeft":case"stickyTopLeft":case"bottomLeft":case"stickyBottomLeft":return"left";case"right":case"topRight":case"stickyTopRight":case"bottomRight":case"stickyBottomRight":return"right";case"fullWidth":case"topFullWidth":case"stickyTopFullWidth":case"bottomFullWidth":case"stickyBottomFullWidth":return"fullWidth";default:throw Error("Invalid Row Container Type")}}var Ml=Vn([["center","ag-center-cols-container"],["left","ag-pinned-left-cols-container"],["right","ag-pinned-right-cols-container"],["fullWidth","ag-full-width-container"],["topCenter","ag-floating-top-container"],["topLeft","ag-pinned-left-floating-top"],["topRight","ag-pinned-right-floating-top"],["topFullWidth","ag-floating-top-full-width-container"],["stickyTopCenter","ag-sticky-top-container"],["stickyTopLeft","ag-pinned-left-sticky-top"],["stickyTopRight","ag-pinned-right-sticky-top"],["stickyTopFullWidth","ag-sticky-top-full-width-container"],["stickyBottomCenter","ag-sticky-bottom-container"],["stickyBottomLeft","ag-pinned-left-sticky-bottom"],["stickyBottomRight","ag-pinned-right-sticky-bottom"],["stickyBottomFullWidth","ag-sticky-bottom-full-width-container"],["bottomCenter","ag-floating-bottom-container"],["bottomLeft","ag-pinned-left-floating-bottom"],["bottomRight","ag-pinned-right-floating-bottom"],["bottomFullWidth","ag-floating-bottom-full-width-container"]]),Nl=Vn([["center","ag-center-cols-viewport"],["topCenter","ag-floating-top-viewport"],["stickyTopCenter","ag-sticky-top-viewport"],["bottomCenter","ag-floating-bottom-viewport"],["stickyBottomCenter","ag-sticky-bottom-viewport"]]),Pl=class _RowContainerCtrl extends En{constructor(e){super(),this.visible=!0,this.EMPTY_CTRLS=[],this.name=e,this.isFullWithContainer="topFullWidth"===this.name||"stickyTopFullWidth"===this.name||"stickyBottomFullWidth"===this.name||"bottomFullWidth"===this.name||"fullWidth"===this.name}static getRowContainerCssClasses(e){return{container:Ml.get(e),viewport:Nl.get(e)}}static getPinned(e){switch(e){case"bottomLeft":case"topLeft":case"stickyTopLeft":case"stickyBottomLeft":case"left":return"left";case"bottomRight":case"topRight":case"stickyTopRight":case"stickyBottomRight":case"right":return"right";default:return null}}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],(()=>this.viewportSizeFeature=this.createManagedBean(new bl(this))))}registerWithCtrlsService(){switch(this.name){case"fullWidth":case"topFullWidth":case"stickyTopFullWidth":case"bottomFullWidth":case"stickyBottomFullWidth":return;default:this.ctrlsService.register(this.name,this)}}forContainers(e,t){e.indexOf(this.name)>=0&&t()}getContainerElement(){return this.eContainer}getViewportSizeFeature(){return this.viewportSizeFeature}setComp(e,t,n){this.comp=e,this.eContainer=t,this.eViewport=n,this.createManagedBean(new yl(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();const i=["topCenter","topLeft","topRight","bottomCenter","bottomLeft","bottomRight","center","left","right","stickyTopCenter","stickyTopLeft","stickyTopRight","stickyBottomCenter","stickyBottomLeft","stickyBottomRight"];this.forContainers(["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],(()=>{this.pinnedWidthFeature=this.createManagedBean(new El(this.eContainer)),this.addManagedListener(this.eventService,An.EVENT_LEFT_PINNED_WIDTH_CHANGED,(()=>this.onPinnedWidthChanged()))})),this.forContainers(["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],(()=>{this.pinnedWidthFeature=this.createManagedBean(new Sl(this.eContainer)),this.addManagedListener(this.eventService,An.EVENT_RIGHT_PINNED_WIDTH_CHANGED,(()=>this.onPinnedWidthChanged()))})),this.forContainers(["center","left","right","fullWidth"],(()=>this.createManagedBean(new Dl(this.eContainer,"center"===this.name?n:void 0)))),this.forContainers(i,(()=>this.createManagedBean(new Tl(this.eContainer)))),this.forContainers(["center","topCenter","stickyTopCenter","bottomCenter","stickyBottomCenter"],(()=>this.createManagedBean(new Rl((e=>this.comp.setContainerWidth(`${e}px`)))))),this.addListeners(),this.registerWithCtrlsService()}addListeners(){this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_CHANGED,(()=>this.onDisplayedColumnsChanged())),this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(()=>this.onDisplayedColumnsWidthChanged())),this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_ROWS_CHANGED,(e=>this.onDisplayedRowsChanged(e.afterScroll))),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()}listenOnDomOrder(){if(["stickyTopCenter","stickyTopLeft","stickyTopRight","stickyTopFullWidth","stickyBottomCenter","stickyBottomLeft","stickyBottomRight","stickyBottomFullWidth"].indexOf(this.name)>=0)return void this.comp.setDomOrder(!0);const e=()=>{const e=this.gos.get("ensureDomOrder"),t=this.gos.isDomLayout("print");this.comp.setDomOrder(e||t)};this.addManagedPropertyListener("domLayout",e),e()}stopHScrollOnPinnedRows(){this.forContainers(["topCenter","stickyTopCenter","bottomCenter","stickyBottomCenter"],(()=>{this.addManagedListener(this.eViewport,"scroll",(()=>this.eViewport.scrollLeft=0))}))}onDisplayedColumnsChanged(){this.forContainers(["center"],(()=>this.onHorizontalViewportChanged()))}onDisplayedColumnsWidthChanged(){this.forContainers(["center"],(()=>this.onHorizontalViewportChanged()))}addPreventScrollWhileDragging(){const e=e=>{this.dragService.isDragging()&&e.cancelable&&e.preventDefault()};this.eContainer.addEventListener("touchmove",e,{passive:!1}),this.addDestroyFunc((()=>this.eContainer.removeEventListener("touchmove",e)))}onHorizontalViewportChanged(e=!1){const t=this.getCenterWidth(),n=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(t,n,e)}getCenterWidth(){return No(this.eViewport)}getCenterViewportScrollLeft(){return _o(this.eViewport,this.enableRtl)}registerViewportResizeListener(e){const t=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc((()=>t()))}isViewportInTheDOMTree(){return zo(this.eViewport)}getViewportScrollLeft(){return _o(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){return this.gos.get("alwaysShowHorizontalScroll")||Ko(this.eViewport)}getViewportElement(){return this.eViewport}setContainerTranslateX(e){this.eContainer.style.transform=`translateX(${e}px)`}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(e){Oo(this.eViewport,e,this.enableRtl)}isContainerVisible(){return!_RowContainerCtrl.getPinned(this.name)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){const e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(e=!1){const t=this.getRowCtrls();if(!this.visible||0===t.length)return void this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});const n=this.gos.isDomLayout("print"),i=this.gos.get("embedFullWidthRows")||n,o=t.filter((e=>{const t=e.isFullWidth();return this.isFullWithContainer?!i&&t:i||!t}));this.comp.setRowCtrls({rowCtrls:o,useFlushSync:e})}getRowCtrls(){switch(this.name){case"topCenter":case"topLeft":case"topRight":case"topFullWidth":return this.rowRenderer.getTopRowCtrls();case"stickyTopCenter":case"stickyTopLeft":case"stickyTopRight":case"stickyTopFullWidth":return this.rowRenderer.getStickyTopRowCtrls();case"stickyBottomCenter":case"stickyBottomLeft":case"stickyBottomRight":case"stickyBottomFullWidth":return this.rowRenderer.getStickyBottomRowCtrls();case"bottomCenter":case"bottomLeft":case"bottomRight":case"bottomFullWidth":return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getCentreRowCtrls()}}};_e([xt("dragService")],Pl.prototype,"dragService",2),_e([xt("ctrlsService")],Pl.prototype,"ctrlsService",2),_e([xt("columnModel")],Pl.prototype,"columnModel",2),_e([xt("resizeObserverService")],Pl.prototype,"resizeObserverService",2),_e([xt("rowRenderer")],Pl.prototype,"rowRenderer",2),_e([Tt],Pl.prototype,"postConstruct",1);var Il=Pl,Ll=class extends _r{constructor(){super('<div class="ag-root ag-unselectable" role="treegrid">\n <ag-header-root ref="gridHeader"></ag-header-root>\n <div class="ag-floating-top" ref="eTop" role="presentation">\n <ag-row-container ref="topLeftContainer" name="topLeft"></ag-row-container>\n <ag-row-container ref="topCenterContainer" name="topCenter"></ag-row-container>\n <ag-row-container ref="topRightContainer" name="topRight"></ag-row-container>\n <ag-row-container ref="topFullWidthContainer" name="topFullWidth"></ag-row-container>\n </div>\n <div class="ag-body" ref="eBody" role="presentation">\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">\n <ag-row-container ref="leftContainer" name="left"></ag-row-container>\n <ag-row-container ref="centerContainer" name="center"></ag-row-container>\n <ag-row-container ref="rightContainer" name="right"></ag-row-container>\n <ag-row-container ref="fullWidthContainer" name="fullWidth"></ag-row-container>\n </div>\n <ag-fake-vertical-scroll></ag-fake-vertical-scroll>\n </div>\n <div class="ag-sticky-top" ref="eStickyTop" role="presentation">\n <ag-row-container ref="stickyTopLeftContainer" name="stickyTopLeft"></ag-row-container>\n <ag-row-container ref="stickyTopCenterContainer" name="stickyTopCenter"></ag-row-container>\n <ag-row-container ref="stickyTopRightContainer" name="stickyTopRight"></ag-row-container>\n <ag-row-container ref="stickyTopFullWidthContainer" name="stickyTopFullWidth"></ag-row-container>\n </div>\n <div class="ag-sticky-bottom" ref="eStickyBottom" role="presentation">\n <ag-row-container ref="stickyBottomLeftContainer" name="stickyBottomLeft"></ag-row-container>\n <ag-row-container ref="stickyBottomCenterContainer" name="stickyBottomCenter"></ag-row-container>\n <ag-row-container ref="stickyBottomRightContainer" name="stickyBottomRight"></ag-row-container>\n <ag-row-container ref="stickyBottomFullWidthContainer" name="stickyBottomFullWidth"></ag-row-container>\n </div>\n <div class="ag-floating-bottom" ref="eBottom" role="presentation">\n <ag-row-container ref="bottomLeftContainer" name="bottomLeft"></ag-row-container>\n <ag-row-container ref="bottomCenterContainer" name="bottomCenter"></ag-row-container>\n <ag-row-container ref="bottomRightContainer" name="bottomRight"></ag-row-container>\n <ag-row-container ref="bottomFullWidthContainer" name="bottomFullWidth"></ag-row-container>\n </div>\n <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>\n <ag-overlay-wrapper></ag-overlay-wrapper>\n </div>')}init(){const e=(e,t)=>{const n=`${e}px`;t.style.minHeight=n,t.style.height=n},t={setRowAnimationCssOnBodyViewport:(e,t)=>this.setRowAnimationCssOnBodyViewport(e,t),setColumnCount:e=>Ri(this.getGui(),e),setRowCount:e=>Di(this.getGui(),e),setTopHeight:t=>e(t,this.eTop),setBottomHeight:t=>e(t,this.eBottom),setTopDisplay:e=>this.eTop.style.display=e,setBottomDisplay:e=>this.eBottom.style.display=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,setStickyBottomBottom:e=>this.eStickyBottom.style.bottom=e,setStickyBottomWidth:e=>this.eStickyBottom.style.width=e,setColumnMovingCss:(e,t)=>this.addOrRemoveCssClass(e,t),updateLayoutClasses:(e,t)=>{[this.eBodyViewport.classList,this.eBody.classList].forEach((e=>{e.toggle("ag-layout-auto-height",t.autoHeight),e.toggle("ag-layout-normal",t.normal),e.toggle("ag-layout-print",t.print)})),this.addOrRemoveCssClass("ag-layout-auto-height",t.autoHeight),this.addOrRemoveCssClass("ag-layout-normal",t.normal),this.addOrRemoveCssClass("ag-layout-print",t.print)},setAlwaysVerticalScrollClass:(e,t)=>this.eBodyViewport.classList.toggle(ol,t),registerBodyViewportResizeListener:e=>{const t=this.resizeObserverService.observeResize(this.eBodyViewport,e);this.addDestroyFunc((()=>t()))},setPinnedTopBottomOverflowY:e=>this.eTop.style.overflowY=this.eBottom.style.overflowY=e,setCellSelectableCss:(e,t)=>{[this.eTop,this.eBodyViewport,this.eBottom].forEach((n=>n.classList.toggle(e,t)))},setBodyViewportWidth:e=>this.eBodyViewport.style.width=e};this.ctrl=this.createManagedBean(new rl),this.ctrl.setComp(t,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop,this.eStickyBottom),(this.rangeService&&this.gos.get("enableRangeSelection")||"multiple"===this.gos.get("rowSelection"))&&Si(this.getGui(),!0)}setRowAnimationCssOnBodyViewport(e,t){const n=this.eBodyViewport.classList;n.toggle("ag-row-animation",t),n.toggle("ag-row-no-animation",!t)}getFloatingTopBottom(){return[this.eTop,this.eBottom]}};_e([xt("resizeObserverService")],Ll.prototype,"resizeObserverService",2),_e([Mt("rangeService")],Ll.prototype,"rangeService",2),_e([Or("eBodyViewport")],Ll.prototype,"eBodyViewport",2),_e([Or("eStickyTop")],Ll.prototype,"eStickyTop",2),_e([Or("eStickyBottom")],Ll.prototype,"eStickyBottom",2),_e([Or("eTop")],Ll.prototype,"eTop",2),_e([Or("eBottom")],Ll.prototype,"eBottom",2),_e([Or("gridHeader")],Ll.prototype,"headerRootComp",2),_e([Or("eBody")],Ll.prototype,"eBody",2),_e([Tt],Ll.prototype,"init",1);var Fl=class extends En{postConstruct(){this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))}onDisplayedColumnsChanged(){this.update()}onDisplayedColumnsWidthChanged(){this.update()}update(){this.columnAnimationService.isActive()?this.columnAnimationService.executeLaterVMTurn((()=>{this.columnAnimationService.executeLaterVMTurn((()=>this.updateImpl()))})):this.updateImpl()}updateImpl(){const e=this.ctrlsService.get("center");if(!e||this.columnAnimationService.isActive())return;const t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(t)}setScrollsVisible(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;const t={type:An.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(t)}}isHorizontalScrollShowing(){return this.horizontalScrollShowing}isVerticalScrollShowing(){return this.verticalScrollShowing}};_e([xt("ctrlsService")],Fl.prototype,"ctrlsService",2),_e([xt("columnAnimationService")],Fl.prototype,"columnAnimationService",2),_e([Tt],Fl.prototype,"postConstruct",1),Fl=_e([At("scrollVisibleService")],Fl);var _l=class extends En{constructor(){super(...arguments),this.gridInstanceId=_l.gridInstanceSequence.next()}stampTopLevelGridCompWithGridInstance(e){e[_l.GRID_DOM_KEY]=this.gridInstanceId}getRenderedCellForEvent(e){return vn(this.gos,e.target,vl.DOM_DATA_KEY_CELL_CTRL)}isEventFromThisGrid(e){return this.isElementInThisGrid(e.target)}isElementInThisGrid(e){let t=e;for(;t;){const e=t[_l.GRID_DOM_KEY];if(ze(e)){return e===this.gridInstanceId}t=t.parentElement}return!1}getCellPositionForEvent(e){const t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null}getNormalisedPosition(e){const t=this.gos.isDomLayout("normal"),n=e;let i,o;if(null!=n.clientX||null!=n.clientY?(i=n.clientX,o=n.clientY):(i=n.x,o=n.y),t){const e=this.ctrlsService.getGridBodyCtrl(),t=e.getScrollFeature().getVScrollPosition();i+=e.getScrollFeature().getHScrollPosition().left,o+=t.top}return{x:i,y:o}}};_l.gridInstanceSequence=new Ar,_l.GRID_DOM_KEY="__ag_grid_instance",_e([xt("ctrlsService")],_l.prototype,"ctrlsService",2),_l=_e([At("mouseEventService")],_l);var Ol=class extends En{constructor(){super(),this.onPageDown=ft(this.onPageDown,100),this.onPageUp=ft(this.onPageUp,100)}postConstruct(){this.ctrlsService.whenReady((e=>{this.gridBodyCon=e.gridBodyCtrl}))}handlePageScrollingKey(e,t=!1){const n=e.key,i=e.altKey,o=e.ctrlKey||e.metaKey,r=!!this.rangeService&&e.shiftKey,a=this.mouseEventService.getCellPositionForEvent(e);let s=!1;switch(n){case pr.PAGE_HOME:case pr.PAGE_END:o||i||(this.onHomeOrEndKey(n),s=!0);break;case pr.LEFT:case pr.RIGHT:case pr.UP:case pr.DOWN:if(!a)return!1;!o||i||r||(this.onCtrlUpDownLeftRight(n,a),s=!0);break;case pr.PAGE_DOWN:case pr.PAGE_UP:o||i||(s=this.handlePageUpDown(n,a,t))}return s&&e.preventDefault(),s}handlePageUpDown(e,t,n){return n&&(t=this.focusService.getFocusedCell()),!!t&&(e===pr.PAGE_UP?this.onPageUp(t):this.onPageDown(t),!0)}navigateTo(e){var t;const{scrollIndex:n,scrollType:i,scrollColumn:o,focusIndex:r,focusColumn:a}=e;ze(o)&&!o.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(o),ze(n)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(n,i),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(r),this.focusService.setFocusedCell({rowIndex:r,column:a,rowPinned:null,forceBrowserFocus:!0}),null==(t=this.rangeService)||t.setRangeToCell({rowIndex:r,rowPinned:null,column:a})}onPageDown(e){const t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.getViewportHeight(),i=this.paginationProxy.getPixelOffset(),o=t.top+n,r=this.paginationProxy.getRowIndexAtPixel(o+i);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,r):this.navigateToNextPage(e,r)}onPageUp(e){const t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.paginationProxy.getPixelOffset(),i=t.top,o=this.paginationProxy.getRowIndexAtPixel(i+n);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,o,!0):this.navigateToNextPage(e,o,!0)}navigateToNextPage(e,t,n=!1){const i=this.getViewportHeight(),o=this.paginationProxy.getPageFirstRow(),r=this.paginationProxy.getPageLastRow(),a=this.paginationProxy.getPixelOffset(),s=this.paginationProxy.getRow(e.rowIndex),l=n?(null==s?void 0:s.rowHeight)-i-a:i-a,d=(null==s?void 0:s.rowTop)+l;let c,g=this.paginationProxy.getRowIndexAtPixel(d+a);if(g===e.rowIndex){const i=n?-1:1;t=g=e.rowIndex+i}n?(c="bottom",g<o&&(g=o),t<o&&(t=o)):(c="top",g>r&&(g=r),t>r&&(t=r)),this.isRowTallerThanView(g)&&(t=g,c="top"),this.navigateTo({scrollIndex:t,scrollType:c,scrollColumn:null,focusIndex:g,focusColumn:e.column})}navigateToNextPageWithAutoHeight(e,t,n=!1){this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout((()=>{const i=this.getNextFocusIndexForAutoHeight(e,n);this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:i,focusColumn:e.column,isAsync:!0})}),50)}getNextFocusIndexForAutoHeight(e,t=!1){var n;const i=t?-1:1,o=this.getViewportHeight(),r=this.paginationProxy.getPageLastRow();let a=0,s=e.rowIndex;for(;s>=0&&s<=r;){const e=this.paginationProxy.getRow(s);if(e){const t=null!=(n=e.rowHeight)?n:0;if(a+t>o)break;a+=t}s+=i}return Math.max(0,Math.min(s,r))}getViewportHeight(){const{gridBodyCtrl:e,center:t}=this.ctrlsService.getParams(),n=e.getScrollFeature().getVScrollPosition(),i=this.gos.getScrollbarWidth();let o=n.bottom-n.top;return t.isHorizontalScrollShowing()&&(o-=i),o}isRowTallerThanView(e){const t=this.paginationProxy.getRow(e);if(!t)return!1;const n=t.rowHeight;return"number"==typeof n&&n>this.getViewportHeight()}onCtrlUpDownLeftRight(e,t){const n=this.cellNavigationService.getNextCellToFocus(e,t,!0),{rowIndex:i,column:o}=n;this.navigateTo({scrollIndex:i,scrollType:null,scrollColumn:o,focusIndex:i,focusColumn:o})}onHomeOrEndKey(e){const t=e===pr.PAGE_HOME,n=this.columnModel.getAllDisplayedColumns(),i=t?n[0]:Kt(n),o=t?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:o,scrollType:null,scrollColumn:i,focusIndex:o,focusColumn:i})}onTabKeyDown(e,t){const n=t.shiftKey,i=this.tabToNextCellCommon(e,n,t);if(!1===i)if(n){const{rowIndex:n,rowPinned:i}=e.getRowPosition();(i?0===n:n===this.paginationProxy.getPageFirstRow())&&(0===this.gos.get("headerHeight")||this.gos.get("suppressHeaderFocus")?this.focusService.focusNextGridCoreContainer(!0,!0):(t.preventDefault(),this.focusService.focusPreviousFromFirstCell(t)))}else e instanceof vl&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(n)&&t.preventDefault();else i&&t.preventDefault()}tabToNextCell(e,t){const n=this.focusService.getFocusedCell();if(!n)return!1;let i=this.getCellByPosition(n);return!!(i||(i=this.rowRenderer.getRowByPosition(n),i&&i.isFullWidth()))&&!!this.tabToNextCellCommon(i,e,t)}tabToNextCellCommon(e,t,n){let i,o=e.isEditing();if(!o&&e instanceof vl){const t=e.getRowCtrl();t&&(o=t.isEditing())}return i=o?"fullRow"===this.gos.get("editType")?this.moveToNextEditingRow(e,t,n):this.moveToNextEditingCell(e,t,n):this.moveToNextCellNotEditing(e,t),null===i?i:i||!!this.focusService.getFocusedHeader()}moveToNextEditingCell(e,t,n=null){const i=e.getCellPosition();e.getGui().focus(),e.stopEditing();const o=this.findNextCellToFocusOn(i,t,!0);return!1===o?null:null!=o&&(o.startEditing(null,!0,n),o.focusCell(!1),!0)}moveToNextEditingRow(e,t,n=null){const i=e.getCellPosition(),o=this.findNextCellToFocusOn(i,t,!0);if(!1===o)return null;if(null==o)return!1;const r=o.getCellPosition(),a=this.isCellEditable(i),s=this.isCellEditable(r),l=r&&i.rowIndex===r.rowIndex&&i.rowPinned===r.rowPinned;if(a&&e.setFocusOutOnEditor(),!l){e.getRowCtrl().stopEditing();o.getRowCtrl().startRowEditing(void 0,void 0,n)}return s?(o.setFocusInOnEditor(),o.focusCell()):o.focusCell(!0),!0}moveToNextCellNotEditing(e,t){const n=this.columnModel.getAllDisplayedColumns();let i;i=e instanceof wl?Le(Ie({},e.getRowPosition()),{column:t?n[0]:Kt(n)}):e.getCellPosition();const o=this.findNextCellToFocusOn(i,t,!1);if(!1===o)return null;if(o instanceof vl)o.focusCell(!0);else if(o)return this.tryToFocusFullWidthRow(o.getRowPosition(),t);return ze(o)}findNextCellToFocusOn(e,t,n){var i;let o=e;for(;;){e!==o&&(e=o),t||(o=this.getLastCellOfColSpan(o)),o=this.cellNavigationService.getNextTabbedCell(o,t);const r=this.gos.getCallback("tabToNextCell");if(ze(r)){const i=r({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:o||null});if(!0===i||null===i)null===i&&st("Returning `null` from tabToNextCell is deprecated. Return `true` to stay on the current cell, or `false` to let the browser handle the tab behaviour."),o=e;else{if(!1===i)return!1;i.floating&&(st("tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?"),i.rowPinned=i.floating),o={rowIndex:i.rowIndex,column:i.column,rowPinned:i.rowPinned}}}if(!o)return null;if(o.rowIndex<0){const e=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:e+o.rowIndex,column:o.column},fromCell:!0}),null}const a="fullRow"===this.gos.get("editType");if(n&&!a){if(!this.isCellEditable(o))continue}this.ensureCellVisible(o);const s=this.getCellByPosition(o);if(!s){const e=this.rowRenderer.getRowByPosition(o);if(!e||!e.isFullWidth()||n)continue;return e}if(!s.isSuppressNavigable())return null==(i=this.rangeService)||i.setRangeToCell(o),s}}isCellEditable(e){const t=this.lookupRowNodeForCell(e);return!!t&&e.column.isCellEditable(t)}getCellByPosition(e){const t=this.rowRenderer.getRowByPosition(e);return t?t.getCellCtrl(e.column):null}lookupRowNodeForCell(e){return"top"===e.rowPinned?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):"bottom"===e.rowPinned?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)}navigateToNextCell(e,t,n,i){let o=n,r=!1;for(;o&&(o===n||!this.isValidNavigateCell(o));)this.gos.get("enableRtl")?t===pr.LEFT&&(o=this.getLastCellOfColSpan(o)):t===pr.RIGHT&&(o=this.getLastCellOfColSpan(o)),o=this.cellNavigationService.getNextCellToFocus(t,o),r=Ve(o);if(r&&e&&e.key===pr.UP&&(o={rowIndex:-1,rowPinned:null,column:n.column}),i){const i=this.gos.getCallback("navigateToNextCell");if(ze(i)){const r=i({key:t,previousCellPosition:n,nextCellPosition:o||null,event:e});ze(r)?(r.floating&&(st("tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?"),r.rowPinned=r.floating),o={rowPinned:r.rowPinned,rowIndex:r.rowIndex,column:r.column}):o=null}}if(!o)return;if(o.rowIndex<0){const t=this.headerNavigationService.getHeaderRowCount();return void this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:t+o.rowIndex,column:n.column},event:e||void 0,fromCell:!0})}const a=this.getNormalisedPosition(o);a?this.focusPosition(a):this.tryToFocusFullWidthRow(o)}getNormalisedPosition(e){this.ensureCellVisible(e);const t=this.getCellByPosition(e);return t?(e=t.getCellPosition(),this.ensureCellVisible(e),e):null}tryToFocusFullWidthRow(e,t=!1){const n=this.columnModel.getAllDisplayedColumns(),i=this.rowRenderer.getRowByPosition(e);if(!i||!i.isFullWidth())return!1;const o=this.focusService.getFocusedCell(),r={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?Kt(n):n[0])};this.focusPosition(r);const a=null!=o&&this.rowPositionUtils.before(r,o),s={type:An.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:r.column,isFullWidthCell:!0,floating:r.rowPinned,fromBelow:a};return this.eventService.dispatchEvent(s),!0}focusPosition(e){var t;this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),null==(t=this.rangeService)||t.setRangeToCell(e)}isValidNavigateCell(e){return!!this.rowPositionUtils.getRowNode(e)}getLastCellOfColSpan(e){const t=this.getCellByPosition(e);if(!t)return e;const n=t.getColSpanningList();return 1===n.length?e:{rowIndex:e.rowIndex,column:Kt(n),rowPinned:e.rowPinned}}ensureCellVisible(e){const t=this.gos.isGroupRowsSticky(),n=this.rowModel.getRow(e.rowIndex);!(t&&(null==n?void 0:n.sticky))&&Ve(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)}};_e([xt("mouseEventService")],Ol.prototype,"mouseEventService",2),_e([xt("paginationProxy")],Ol.prototype,"paginationProxy",2),_e([xt("focusService")],Ol.prototype,"focusService",2),_e([xt("columnModel")],Ol.prototype,"columnModel",2),_e([xt("rowModel")],Ol.prototype,"rowModel",2),_e([xt("ctrlsService")],Ol.prototype,"ctrlsService",2),_e([xt("rowRenderer")],Ol.prototype,"rowRenderer",2),_e([xt("headerNavigationService")],Ol.prototype,"headerNavigationService",2),_e([xt("rowPositionUtils")],Ol.prototype,"rowPositionUtils",2),_e([xt("cellNavigationService")],Ol.prototype,"cellNavigationService",2),_e([xt("pinnedRowModel")],Ol.prototype,"pinnedRowModel",2),_e([Mt("rangeService")],Ol.prototype,"rangeService",2),_e([Tt],Ol.prototype,"postConstruct",1),Ol=_e([At("navigationService")],Ol);var kl=class _PopupEditorWrapper extends Ga{constructor(e){super('<div class="ag-popup-editor" tabindex="-1"/>'),this.params=e}postConstruct(){this.gos.setDomData(this.getGui(),_PopupEditorWrapper.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()}addKeyDownListener(){const e=this.getGui(),t=this.params;this.addManagedListener(e,"keydown",(e=>{vr(this.gos,e,t.node,t.column,!0)||t.onKeyDown(e)}))}};kl.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",_e([Tt],kl.prototype,"postConstruct",1);var Gl=kl,zl=class extends _r{constructor(e,t,n,i,o){super(),this.rendererVersion=0,this.editorVersion=0,this.beans=e,this.column=t.getColumn(),this.rowNode=t.getRowNode(),this.rowCtrl=t.getRowCtrl(),this.eRow=i,this.cellCtrl=t;const r=document.createElement("div");r.setAttribute("comp-id",`${this.getCompId()}`),this.setTemplateFromElement(r);const a=this.getGui();this.forceWrapper=t.isForceWrapper(),this.refreshWrapper(!1);const s=(e,t)=>{null!=t&&""!=t?a.setAttribute(e,t):a.removeAttribute(e)};oi(a,t.getCellAriaRole()),s("col-id",t.getColumnIdSanitised());const l=t.getTabIndex();void 0!==l&&s("tabindex",l.toString());const d={addOrRemoveCssClass:(e,t)=>this.addOrRemoveCssClass(e,t),setUserStyles:e=>jo(a,e),getFocusableElement:()=>this.getFocusableElement(),setIncludeSelection:e=>this.includeSelection=e,setIncludeRowDrag:e=>this.includeRowDrag=e,setIncludeDndSource:e=>this.includeDndSource=e,setRenderDetails:(e,t,n)=>this.setRenderDetails(e,t,n),setEditDetails:(e,t,n)=>this.setEditDetails(e,t,n),getCellEditor:()=>this.cellEditor||null,getCellRenderer:()=>this.cellRenderer||null,getParentOfValue:()=>this.getParentOfValue()};t.setComp(d,this.getGui(),this.eCellWrapper,n,o)}getParentOfValue(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()}setRenderDetails(e,t,n){if(this.cellEditor&&!this.cellEditorPopupWrapper)return;this.firstRender=null==this.firstRender;const i=this.refreshWrapper(!1);if(this.refreshEditStyles(!1),e){!(n||i)&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e))}else this.destroyRenderer(),this.insertValueWithoutCellRenderer(t)}setEditDetails(e,t,n){e?this.createCellEditorInstance(e,t,n):this.destroyEditor()}removeControls(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)}refreshWrapper(e){const t=this.includeRowDrag||this.includeDndSource||this.includeSelection,n=t||this.forceWrapper,i=n&&null==this.eCellWrapper;if(i){const e=document.createElement("div");e.setAttribute("role","presentation"),e.setAttribute("class","ag-cell-wrapper"),this.eCellWrapper=e,this.getGui().appendChild(this.eCellWrapper)}const o=!n&&null!=this.eCellWrapper;o&&(Go(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!n);const r=!e&&n,a=r&&null==this.eCellValue;if(a){const e=document.createElement("span");e.setAttribute("role","presentation"),e.setAttribute("class","ag-cell-value"),this.eCellValue=e,this.eCellWrapper.appendChild(this.eCellValue)}const s=!r&&null!=this.eCellValue;s&&(Go(this.eCellValue),this.eCellValue=void 0);const l=i||o||a||s;return l&&this.removeControls(),e||t&&this.addControls(),l}addControls(){this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))}createCellEditorInstance(e,t,n){const i=this.editorVersion,o=e.newAgStackInstance();if(!o)return;const{params:r}=e;o.then((e=>this.afterCellEditorCreated(i,e,r,t,n)));Ve(this.cellEditor)&&r.cellStartedEdit&&this.cellCtrl.focusCell(!0)}insertValueWithoutCellRenderer(e){const t=this.getParentOfValue();ko(t);const n=null!=e?On(e,!0):null;null!=n&&(t.textContent=n)}destroyEditorAndRenderer(){this.destroyRenderer(),this.destroyEditor()}destroyRenderer(){const{context:e}=this.beans;this.cellRenderer=e.destroyBean(this.cellRenderer),Go(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++}destroyEditor(){const{context:e}=this.beans;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),Go(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++}refreshCellRenderer(e){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==e.componentClass)return!1;const t=this.cellRenderer.refresh(e.params);return!0===t||void 0===t}createCellRendererInstance(e){const t=!this.beans.gos.get("suppressAnimationFrame"),n=this.rendererVersion,{componentClass:i}=e,o=()=>{if(this.rendererVersion!==n||!this.isAlive())return;const t=e.newAgStackInstance(),o=this.afterCellRendererCreated.bind(this,n,i);t&&t.then(o)};t&&this.firstRender?this.beans.animationFrameService.createTask(o,this.rowNode.rowIndex,"createTasksP2"):o()}getCtrl(){return this.cellCtrl}getRowCtrl(){return this.rowCtrl}getCellRenderer(){return this.cellRenderer}getCellEditor(){return this.cellEditor}afterCellRendererCreated(e,t,n){if(!this.isAlive()||e!==this.rendererVersion)this.beans.context.destroyBean(n);else if(this.cellRenderer=n,this.cellRendererClass=t,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){const e=this.getParentOfValue();ko(e),e.appendChild(this.cellRendererGui)}}afterCellEditorCreated(e,t,n,i,o){if(e!==this.editorVersion)return void this.beans.context.destroyBean(t);if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return this.beans.context.destroyBean(t),void this.cellCtrl.stopEditing(!0);if(!t.getGui)return console.warn(`AG Grid: cellEditor for column ${this.column.getId()} is missing getGui() method`),void this.beans.context.destroyBean(t);this.cellEditor=t,this.cellEditorGui=t.getGui();const r=i||void 0!==t.isPopup&&t.isPopup();r?this.addPopupCellEditor(n,o):this.addInCellEditor(),this.refreshEditStyles(!0,r),t.afterGuiAttached&&t.afterGuiAttached()}refreshEditStyles(e,t){var n;this.addOrRemoveCssClass("ag-cell-inline-editing",e&&!t),this.addOrRemoveCssClass("ag-cell-popup-editing",e&&!!t),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!e||!!t),null==(n=this.rowCtrl)||n.setInlineEditingCss(e)}addInCellEditor(){const e=this.getGui();if(e.contains(this.beans.gos.getActiveDomElement())&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui){this.getParentOfValue().appendChild(this.cellEditorGui)}}addPopupCellEditor(e,t){"fullRow"===this.beans.gos.get("editType")&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");const n=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new Gl(e));const i=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&i.appendChild(this.cellEditorGui);const o=this.beans.popupService,r=this.beans.gos.get("stopEditingWhenCellsLoseFocus"),a=null!=t?t:n.getPopupPosition?n.getPopupPosition():"over",s=this.beans.gos.get("enableRtl"),l={ePopup:i,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:a,alignSide:s?"right":"left",keepWithinBounds:!0},d=o.positionPopupByComponent.bind(o,l),c=this.beans.localeService.getLocaleTextFunc(),g=o.addPopup({modal:r,eChild:i,closeOnEsc:!0,closedCallback:()=>{this.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:d,ariaLabel:c("ariaLabelCellEditor","Cell Editor")});g&&(this.hideEditorPopup=g.hideFunc)}detach(){this.eRow.removeChild(this.getGui())}destroy(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),super.destroy()}clearParentOfValue(){const e=this.getGui();e.contains(this.beans.gos.getActiveDomElement())&&qi()&&e.focus({preventScroll:!0}),ko(this.getParentOfValue())}},Vl=class extends _r{constructor(e,t,n){super(),this.cellComps={},this.beans=t,this.rowCtrl=e;const i=document.createElement("div");i.setAttribute("comp-id",`${this.getCompId()}`),i.setAttribute("style",this.getInitialStyle(n)),this.setTemplateFromElement(i);const o=this.getGui(),r=o.style;this.domOrder=this.rowCtrl.getDomOrder(),oi(o,"row");const a=this.rowCtrl.getTabIndex();null!=a&&o.setAttribute("tabindex",a.toString());const s={setDomOrder:e=>this.domOrder=e,setCellCtrls:e=>this.setCellCtrls(e),showFullWidth:e=>this.showFullWidth(e),getFullWidthCellRenderer:()=>this.getFullWidthCellRenderer(),addOrRemoveCssClass:(e,t)=>this.addOrRemoveCssClass(e,t),setUserStyles:e=>jo(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=>this.refreshFullWidth(e)};e.setComp(s,this.getGui(),n),this.addDestroyFunc((()=>{e.unsetComp(n)}))}getInitialStyle(e){const t=this.rowCtrl.getInitialTransform(e);return t?`transform: ${t}`:`top: ${this.rowCtrl.getInitialRowTop(e)}`}showFullWidth(e){const t=e.newAgStackInstance();t&&t.then((e=>{if(this.isAlive()){const t=e.getGui();this.getGui().appendChild(t),this.rowCtrl.setupDetailRowAutoHeight(t),this.setFullWidthRowComp(e)}else this.beans.context.destroyBean(e)}))}setCellCtrls(e){const t=Object.assign({},this.cellComps);e.forEach((e=>{const n=e.getInstanceId();null==this.cellComps[n]?this.newCellComp(e):t[n]=null}));const n=Je(t).filter((e=>null!=e));this.destroyCells(n),this.ensureDomOrder(e)}ensureDomOrder(e){if(!this.domOrder)return;const t=[];e.forEach((e=>{const n=this.cellComps[e.getInstanceId()];n&&t.push(n.getGui())})),Wo(this.getGui(),t)}newCellComp(e){const t=new zl(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=t,this.getGui().appendChild(t.getGui())}destroy(){super.destroy(),this.destroyAllCells()}destroyAllCells(){const e=Je(this.cellComps).filter((e=>null!=e));this.destroyCells(e)}setFullWidthRowComp(e){this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc((()=>{this.fullWidthCellRenderer=this.beans.context.destroyBean(this.fullWidthCellRenderer)}))}getFullWidthCellRenderer(){return this.fullWidthCellRenderer}destroyCells(e){e.forEach((e=>{if(!e)return;const t=e.getCtrl().getInstanceId();this.cellComps[t]===e&&(e.detach(),e.destroy(),this.cellComps[t]=null)}))}refreshFullWidth(e){const{fullWidthCellRenderer:t}=this;if(!t||!t.refresh)return!1;const n=e();return t.refresh(n)}};var Hl=class extends _r{constructor(){super(function(){const e=_r.elementGettingCreated.getAttribute("name"),t=Il.getRowContainerCssClasses(e);let n;return n="center"===e||"topCenter"===e||"stickyTopCenter"===e||"bottomCenter"===e||"stickyBottomCenter"===e?`<div class="${t.viewport}" ref="eViewport" role="presentation">\n <div class="${t.container}" ref="eContainer"></div>\n </div>`:`<div class="${t.container}" ref="eContainer"></div>`,n}()),this.rowComps={},this.name=_r.elementGettingCreated.getAttribute("name"),this.type=xl(this.name)}postConstruct(){const e={setViewportHeight:e=>this.eViewport.style.height=e,setRowCtrls:({rowCtrls:e})=>this.setRowCtrls(e),setDomOrder:e=>{this.domOrder=e},setContainerWidth:e=>this.eContainer.style.width=e};this.createManagedBean(new Il(this.name)).setComp(e,this.eContainer,this.eViewport)}preDestroy(){this.setRowCtrls([])}setRowCtrls(e){const t=Ie({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;e.forEach((e=>{const n=e.getInstanceId(),i=t[n];if(i)this.rowComps[n]=i,delete t[n],this.ensureDomOrder(i.getGui());else{if(!e.getRowNode().displayed)return;const t=new Vl(e,this.beans,this.type);this.rowComps[n]=t,this.appendRow(t.getGui())}})),Je(t).forEach((e=>{this.eContainer.removeChild(e.getGui()),e.destroy()})),oi(this.eContainer,"rowgroup")}appendRow(e){this.domOrder?Uo(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e}ensureDomOrder(e){this.domOrder&&(Bo(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)}};_e([xt("beans")],Hl.prototype,"beans",2),_e([Or("eViewport")],Hl.prototype,"eViewport",2),_e([Or("eContainer")],Hl.prototype,"eContainer",2),_e([Tt],Hl.prototype,"postConstruct",1),_e([Rt],Hl.prototype,"preDestroy",1);var Bl=class{constructor(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}onDragEnter(e){if(this.clearColumnsList(),this.gos.get("functionsReadOnly"))return;const t=e.dragItem.columns;t&&t.forEach((e=>{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?qa.ICON_PINNED:qa.ICON_MOVE:null}onDragLeave(e){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0}onDragging(e){}onDragStop(e){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")}};_e([xt("columnModel")],Bl.prototype,"columnModel",2),_e([xt("gridOptionsService")],Bl.prototype,"gos",2);var Wl=class{static attemptMoveColumns(e){const{isFromHeader:t,hDirection:n,xPosition:i,fromEnter:o,fakeEvent:r,pinned:a,gos:s,columnModel:l}=e,d=0===n,c=1===n;let{allMovingColumns:g}=e;if(t){let e=[];g.forEach((t=>{var n;let i=null,o=t.getParent();for(;null!=o&&1===o.getDisplayedLeafColumns().length;)i=o,o=o.getParent();if(null!=i){(!!(null==(n=i.getColGroupDef())?void 0:n.marryChildren)?i.getProvidedColumnGroup().getLeafColumns():i.getLeafColumns()).forEach((t=>{e.includes(t)||e.push(t)}))}else e.includes(t)||e.push(t)})),g=e}const u=g.slice();l.sortColumnsLikeGridColumns(u);const h=this.calculateValidMoves({movingCols:u,draggingRight:c,xPosition:i,pinned:a,gos:s,columnModel:l}),p=this.calculateOldIndex(u,l);if(0===h.length)return;const m=h[0];let v=null!==p&&!o;if(t&&(v=null!==p),v&&!r){if(d&&m>=p)return;if(c&&m<=p)return}const f=l.getAllDisplayedColumns();let C=[],w=null;for(let e=0;e<h.length;e++){const t=h[e],n=l.getProposedColumnOrder(u,t);if(!l.doesOrderPassRules(n))continue;const i=n.filter((e=>f.includes(e)));if(null===w)w=i;else if(!Yt(i,w))break;const o=this.groupFragCount(n);C.push({move:t,fragCount:o})}return 0!==C.length?(C.sort(((e,t)=>e.fragCount-t.fragCount)),this.moveColumns(g,C[0].move,"uiColumnMoved",!1,l)):void 0}static moveColumns(e,t,n,i,o){return o.moveColumns(e,t,n,i),i?null:{columns:e,toIndex:t}}static calculateOldIndex(e,t){const n=t.getAllGridColumns(),i=Qt(e.map((e=>n.indexOf(e)))),o=i[0];return Kt(i)-o!==i.length-1?null:o}static groupFragCount(e){function t(e){let t=[],n=e.getOriginalParent();for(;null!=n;)t.push(n),n=n.getOriginalParent();return t}let n=0;for(let i=0;i<e.length-1;i++){let o=t(e[i]),r=t(e[i+1]);[o,r]=o.length>r.length?[o,r]:[r,o],o.forEach((e=>{-1===r.indexOf(e)&&n++}))}return n}static getDisplayedColumns(e,t){switch(t){case"left":return e.getDisplayedLeftColumns();case"right":return e.getDisplayedRightColumns();default:return e.getDisplayedCenterColumns()}}static calculateValidMoves(e){const{movingCols:t,draggingRight:n,xPosition:i,pinned:o,gos:r,columnModel:a}=e;if(r.get("suppressMovableColumns")||t.some((e=>e.getColDef().suppressMovable)))return[];const s=this.getDisplayedColumns(a,o),l=a.getAllGridColumns(),d=s.filter((e=>rn(t,e))),c=s.filter((e=>!rn(t,e))),g=l.filter((e=>!rn(t,e)));let u,h=0,p=i;if(n){let e=0;d.forEach((t=>e+=t.getActualWidth())),p-=e}if(p>0){for(let e=0;e<c.length;e++){if(p-=c[e].getActualWidth(),p<0)break;h++}n&&h++}if(h>0){const e=c[h-1];u=g.indexOf(e)+1}else u=g.indexOf(c[0]),-1===u&&(u=0);const m=[u],v=(e,t)=>e-t;if(n){let e=u+1;const t=l.length-1;for(;e<=t;)m.push(e),e++;m.sort(v)}else{let e=u;const t=l.length-1;let n=l[e];for(;e<=t&&s.indexOf(n)<0;)e++,m.push(e),n=l[e];e=u-1;const i=0;for(;e>=i;)m.push(e),e--;m.sort(v).reverse()}return m}static normaliseX(e,t,n,i,o){const r=o.getHeaderRowContainerCtrl(t).getViewport();if(n&&(e-=r.getBoundingClientRect().left),i.get("enableRtl")){e=r.clientWidth-e}return null==t&&(e+=o.get("center").getCenterViewportScrollLeft()),e}},Ul=class{constructor(e){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=e,this.isCenterContainer=!ze(e)}init(){this.ctrlsService.whenReady((e=>{this.gridBodyCon=e.gridBodyCtrl}))}getIconName(){return this.pinned?qa.ICON_PINNED:qa.ICON_MOVE}onDragEnter(e){const t=e.dragItem.columns;if(0===e.dragSource.type)this.setColumnsVisible(t,!0,"uiColumnDragged");else{const n=e.dragItem.visibleState,i=(t||[]).filter((e=>n[e.getId()]));this.setColumnsVisible(i,!0,"uiColumnDragged")}this.setColumnsPinned(t,this.pinned,"uiColumnDragged"),this.onDragging(e,!0,!0)}onDragLeave(){this.ensureIntervalCleared(),this.lastMovedInfo=null}setColumnsVisible(e,t,n){if(e){const i=e.filter((e=>!e.getColDef().lockVisible));this.columnModel.setColumnsVisible(i,t,n)}}setColumnsPinned(e,t,n){if(e){const i=e.filter((e=>!e.getColDef().lockPinned));this.columnModel.setColumnsPinned(i,t,n)}}onDragStop(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null}checkCenterForScrolling(e){if(this.isCenterContainer){const t=this.ctrlsService.get("center"),n=t.getCenterViewportScrollLeft(),i=n+t.getCenterWidth();this.gos.get("enableRtl")?(this.needToMoveRight=e<n+50,this.needToMoveLeft=e>i-50):(this.needToMoveLeft=e<n+50,this.needToMoveRight=e>i-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}}onDragging(e=this.lastDraggingEvent,t=!1,n=!1,i=!1){var o;if(i){if(this.lastMovedInfo){const{columns:e,toIndex:t}=this.lastMovedInfo;Wl.moveColumns(e,t,"uiColumnMoved",!0,this.columnModel)}return}if(this.lastDraggingEvent=e,Ve(e.hDirection))return;const r=Wl.normaliseX(e.x,this.pinned,!1,this.gos,this.ctrlsService);t||this.checkCenterForScrolling(r);const a=this.normaliseDirection(e.hDirection),s=e.dragSource.type,l=(null==(o=e.dragSource.getDragItem().columns)?void 0:o.filter((e=>!e.getColDef().lockPinned||e.getPinned()==this.pinned)))||[],d=Wl.attemptMoveColumns({allMovingColumns:l,isFromHeader:1===s,hDirection:a,xPosition:r,pinned:this.pinned,fromEnter:t,fakeEvent:n,gos:this.gos,columnModel:this.columnModel});d&&(this.lastMovedInfo=d)}normaliseDirection(e){if(!this.gos.get("enableRtl"))return e;switch(e){case 0:return 1;case 1:return 0;default:console.error(`AG Grid: Unknown direction ${e}`)}}ensureIntervalStarted(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(qa.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(qa.ICON_RIGHT,!0))}ensureIntervalCleared(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(qa.ICON_MOVE))}moveInterval(){let e;this.intervalCount++,e=10+5*this.intervalCount,e>100&&(e=100);let t=null;const n=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?t=n.scrollHorizontally(-e):this.needToMoveRight&&(t=n.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;const e=this.lastDraggingEvent.dragItem.columns.filter((e=>!e.getColDef().lockPinned));if(e.length>0&&(this.dragAndDropService.setGhostIcon(qa.ICON_PINNED),this.failedMoveAttempts>7)){const t=this.needToMoveLeft?"left":"right";this.setColumnsPinned(e,t,"uiColumnDragged"),this.dragAndDropService.nudge()}}}};_e([xt("columnModel")],Ul.prototype,"columnModel",2),_e([xt("dragAndDropService")],Ul.prototype,"dragAndDropService",2),_e([xt("gridOptionsService")],Ul.prototype,"gos",2),_e([xt("ctrlsService")],Ul.prototype,"ctrlsService",2),_e([Tt],Ul.prototype,"init",1);var jl=class extends En{constructor(e,t){super(),this.pinned=e,this.eContainer=t}postConstruct(){this.ctrlsService.whenReady((e=>{switch(this.pinned){case"left":this.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.left.getContainerElement()],[e.bottomLeft.getContainerElement()],[e.topLeft.getContainerElement()]];break;case"right":this.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.right.getContainerElement()],[e.bottomRight.getContainerElement()],[e.topRight.getContainerElement()]];break;default:this.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.center.getViewportElement()],[e.bottomCenter.getViewportElement()],[e.topCenter.getViewportElement()]]}}))}isInterestedIn(e){return 1===e||0===e&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}init(){this.moveColumnFeature=this.createManagedBean(new Ul(this.pinned)),this.bodyDropPivotTarget=this.createManagedBean(new Bl(this.pinned)),this.dragAndDropService.addDropTarget(this)}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(e){return this.columnModel.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)}};_e([xt("dragAndDropService")],jl.prototype,"dragAndDropService",2),_e([xt("columnModel")],jl.prototype,"columnModel",2),_e([xt("ctrlsService")],jl.prototype,"ctrlsService",2),_e([Tt],jl.prototype,"postConstruct",1),_e([Tt],jl.prototype,"init",1);var Kl=class _HeaderCellComp extends Js{constructor(e){super(_HeaderCellComp.TEMPLATE,e),this.headerCompVersion=0,this.column=e.getColumnGroupChild(),this.pinned=e.getPinned()}postConstruct(){const e=this.getGui();var t,n;t="col-id",null!=(n=this.column.getColId())&&""!=n?e.setAttribute(t,n):e.removeAttribute(t);const i={setWidth:t=>e.style.width=t,addOrRemoveCssClass:(e,t)=>this.addOrRemoveCssClass(e,t),setAriaSort:t=>t?Mi(e,t):Ni(e),setUserCompDetails:e=>this.setUserCompDetails(e),getUserCompInstance:()=>this.headerComp};this.ctrl.setComp(i,this.getGui(),this.eResize,this.eHeaderCompWrapper);const o=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",o)}destroyHeaderComp(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)}setUserCompDetails(e){this.headerCompVersion++;const t=this.headerCompVersion;e.newAgStackInstance().then((e=>this.afterCompCreated(t,e)))}afterCompCreated(e,t){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(t)}};Kl.TEMPLATE='<div class="ag-header-cell" role="columnheader">\n <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n <div ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>\n </div>',_e([Or("eResize")],Kl.prototype,"eResize",2),_e([Or("eHeaderCompWrapper")],Kl.prototype,"eHeaderCompWrapper",2),_e([Tt],Kl.prototype,"postConstruct",1),_e([Rt],Kl.prototype,"destroyHeaderComp",1);var Yl=Kl,$l=class _HeaderGroupCellComp extends Js{constructor(e){super(_HeaderGroupCellComp.TEMPLATE,e)}postConstruct(){const e=this.getGui();e.setAttribute("col-id",this.ctrl.getColId());const t={addOrRemoveCssClass:(e,t)=>this.addOrRemoveCssClass(e,t),setResizableDisplayed:e=>Do(this.eResize,e),setWidth:t=>e.style.width=t,setAriaExpanded:t=>{return n="aria-expanded",null!=(i=t)?e.setAttribute(n,i):e.removeAttribute(n);var n,i},setUserCompDetails:e=>this.setUserCompDetails(e),getUserCompInstance:()=>this.headerGroupComp};this.ctrl.setComp(t,e,this.eResize)}setUserCompDetails(e){e.newAgStackInstance().then((e=>this.afterHeaderCompCreated(e)))}afterHeaderCompCreated(e){const t=()=>this.destroyBean(e);if(!this.isAlive())return void t();const n=this.getGui(),i=e.getGui();n.appendChild(i),this.addDestroyFunc(t),this.headerGroupComp=e,this.ctrl.setDragSource(n)}};$l.TEMPLATE='<div class="ag-header-group-cell" role="columnheader">\n <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n </div>',_e([Or("eResize")],$l.prototype,"eResize",2),_e([Tt],$l.prototype,"postConstruct",1);var Ql=$l,ql=(e=>(e.COLUMN_GROUP="group",e.COLUMN="column",e.FLOATING_FILTER="filter",e))(ql||{}),Xl=class extends _r{constructor(e){super(),this.headerComps={},this.ctrl=e,this.setTemplate(`<div class="${this.ctrl.getHeaderRowClass()}" role="row"></div>`)}init(){Ti(this.getGui(),this.ctrl.getAriaRowIndex());const e={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};this.ctrl.setComp(e)}destroyHeaderCtrls(){this.setHeaderCtrls([],!1)}setHeaderCtrls(e,t){if(!this.isAlive())return;const n=this.headerComps;if(this.headerComps={},e.forEach((e=>{const t=e.getInstanceId();let i=n[t];delete n[t],null==i&&(i=this.createHeaderComp(e),this.getGui().appendChild(i.getGui())),this.headerComps[t]=i})),qe(n,((e,t)=>{this.getGui().removeChild(t.getGui()),this.destroyBean(t)})),t){const e=Je(this.headerComps);e.sort(((e,t)=>e.getCtrl().getColumnGroupChild().getLeft()-t.getCtrl().getColumnGroupChild().getLeft()));const t=e.map((e=>e.getGui()));Wo(this.getGui(),t)}}createHeaderComp(e){let t;switch(this.ctrl.getType()){case"group":t=new Ql(e);break;case"filter":t=new tl(e);break;default:t=new Yl(e)}return this.createBean(t),t.setParentComponent(this),t}};_e([Tt],Xl.prototype,"init",1),_e([Rt],Xl.prototype,"destroyHeaderCtrls",1);var Zl=0,Jl=class _AbstractHeaderCellCtrl extends En{constructor(e,t,n){super(),this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.columnGroupChild=e,this.parentRowCtrl=n,this.beans=t,this.instanceId=e.getUniqueId()+"-"+Zl++}postConstruct(){this.addManagedPropertyListeners(["suppressHeaderFocus"],(()=>this.refreshTabIndex()))}shouldStopEventPropagation(e){const{headerRowIndex:t,column:n}=this.focusService.getFocusedHeader();return fr(this.gos,e,t,n)}getWrapperHasFocus(){return this.gos.getActiveDomElement()===this.eGui}setGui(e){this.eGui=e,this.addDomData(),this.addManagedListener(this.beans.eventService,An.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}onDisplayedColumnsChanged(){this.comp&&this.column&&(this.refreshFirstAndLastStyles(),this.refreshAriaColIndex())}refreshFirstAndLastStyles(){const{comp:e,column:t,beans:n}=this;hl.refreshFirstAndLastStyles(e,t,n.columnModel)}refreshAriaColIndex(){const{beans:e,column:t}=this,n=e.columnModel.getAriaColumnIndex(t);Ai(this.eGui,n)}addResizeAndMoveKeyboardListeners(){this.resizeFeature&&(this.addManagedListener(this.eGui,"keydown",this.onGuiKeyDown.bind(this)),this.addManagedListener(this.eGui,"keyup",this.onGuiKeyUp.bind(this)))}refreshTabIndex(){this.gos.get("suppressHeaderFocus")?this.eGui.removeAttribute("tabindex"):this.eGui.setAttribute("tabindex","-1")}onGuiKeyDown(e){var t;const n=this.gos.getActiveDomElement(),i=e.key===pr.LEFT||e.key===pr.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),n!==this.eGui||!e.shiftKey&&!e.altKey)return;if((this.isResizing||i)&&(e.preventDefault(),e.stopImmediatePropagation()),!i)return;const o=e.key===pr.LEFT!==this.gos.get("enableRtl"),r=Qa[o?"Left":"Right"];if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;const n=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(n,e.shiftKey),null==(t=this.resizeFeature)||t.toggleColumnResizing(!0)}else this.moveHeader(r)}getViewportAdjustedResizeDiff(e){let t=this.getResizeDiff(e);if(this.column.getPinned()){const e=this.pinnedWidthService.getPinnedLeftWidth(),n=this.pinnedWidthService.getPinnedRightWidth(),i=No(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50;if(e+n+t>i){if(!(i>e+n))return 0;t=i-e-n}}return t}getResizeDiff(e){let t=e.key===pr.LEFT!==this.gos.get("enableRtl");const n=this.column.getPinned(),i=this.gos.get("enableRtl");return n&&i!==("right"===n)&&(t=!t),(t?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=setTimeout((()=>{var e;null==(e=this.resizeFeature)||e.toggleColumnResizing(!1)}),150))}handleKeyDown(e){const t=this.getWrapperHasFocus();switch(e.key){case pr.PAGE_DOWN:case pr.PAGE_UP:case pr.PAGE_HOME:case pr.PAGE_END:t&&e.preventDefault()}}addDomData(){const e=_AbstractHeaderCellCtrl.DOM_DATA_KEY_HEADER_CTRL;this.gos.setDomData(this.eGui,e,this),this.addDestroyFunc((()=>this.gos.setDomData(this.eGui,e,null)))}getGui(){return this.eGui}focus(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)}getRowIndex(){return this.parentRowCtrl.getRowIndex()}getParentRowCtrl(){return this.parentRowCtrl}getPinned(){return this.parentRowCtrl.getPinned()}getInstanceId(){return this.instanceId}getColumnGroupChild(){return this.columnGroupChild}removeDragSource(){this.dragSource&&(this.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(e,t,n){const i=null!=e?e:t;this.gos.get("preventDefaultOnContextMenu")&&i.preventDefault();const o=n instanceof zt?n:void 0;this.menuService.isHeaderContextMenuEnabled(o)&&this.menuService.showHeaderContextMenu(o,e,t),this.dispatchColumnMouseEvent(An.EVENT_COLUMN_HEADER_CONTEXT_MENU,n)}dispatchColumnMouseEvent(e,t){const n={type:e,column:t};this.eventService.dispatchEvent(n)}destroy(){super.destroy(),this.removeDragSource(),this.comp=null,this.column=null,this.resizeFeature=null,this.lastFocusEvent=null,this.columnGroupChild=null,this.parentRowCtrl=null,this.eGui=null}};Jl.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",_e([xt("pinnedWidthService")],Jl.prototype,"pinnedWidthService",2),_e([xt("focusService")],Jl.prototype,"focusService",2),_e([xt("userComponentFactory")],Jl.prototype,"userComponentFactory",2),_e([xt("ctrlsService")],Jl.prototype,"ctrlsService",2),_e([xt("dragAndDropService")],Jl.prototype,"dragAndDropService",2),_e([xt("menuService")],Jl.prototype,"menuService",2),_e([Tt],Jl.prototype,"postConstruct",1);var ed=Jl,td=class extends En{constructor(e,t,n,i){super(),this.columnOrGroup=e,this.eCell=t,this.ariaEl=this.eCell.querySelector("[role=columnheader]")||this.eCell,this.colsSpanning=i,this.beans=n}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){return this.beans.gos.get("enableRtl")&&this.colsSpanning?Kt(this.colsSpanning):this.columnOrGroup}postConstruct(){this.addManagedListener(this.columnOrGroup,zt.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onLeftChanged.bind(this))}setLeftFirstTime(){const e=this.beans.gos.get("suppressColumnMoveAnimation"),t=ze(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()}animateInLeft(){const e=this.getColumnOrGroup(),t=e.getLeft(),n=e.getOldLeft(),i=this.modifyLeftForPrintLayout(e,n),o=this.modifyLeftForPrintLayout(e,t);this.setLeft(i),this.actualLeft=o,this.beans.columnAnimationService.executeNextVMTurn((()=>{this.actualLeft===o&&this.setLeft(o)}))}onLeftChanged(){const e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,t){if(!this.beans.gos.isDomLayout("print"))return t;if("left"===e.getPinned())return t;const n=this.beans.columnModel.getDisplayedColumnsLeftWidth();if("right"===e.getPinned()){return n+this.beans.columnModel.getBodyContainerWidth()+t}return n+t}setLeft(e){if(ze(e)&&(this.eCell.style.left=`${e}px`),this.columnOrGroup instanceof zt)this.columnOrGroup;else{const e=this.columnOrGroup.getLeafColumns();if(!e.length)return;e.length>1&&xi(this.ariaEl,e.length),e[0]}}};_e([Tt],td.prototype,"postConstruct",1);var nd=class extends En{constructor(e,t){super(),this.columns=e,this.element=t}postConstruct(){this.gos.get("columnHoverHighlight")&&this.addMouseHoverListeners()}addMouseHoverListeners(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))}onMouseOut(){this.columnHoverService.clearMouseOver()}onMouseOver(){this.columnHoverService.setMouseOver(this.columns)}};_e([xt("columnHoverService")],nd.prototype,"columnHoverService",2),_e([Tt],nd.prototype,"postConstruct",1);var id=class extends ed{constructor(e,t,n){super(e,t,n),this.iconCreated=!1,this.column=e}setComp(e,t,n,i){this.comp=e,this.eButtonShowMainFilter=n,this.eFloatingFilterBody=i,this.setGui(t),this.setupActive(),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this)),this.setupFilterChangedListener(),this.addManagedListener(this.column,zt.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this))}resizeHeader(){}moveHeader(){}setupActive(){const e=this.column.getColDef(),t=!!e.filter,n=!!e.floatingFilter;this.active=t&&n}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;const e=ur("filter",this.gos,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(){this.createManagedBean(new Wr(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){const e=this.localeService.getLocaleTextFunc();di(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){if(this.gos.getActiveDomElement()===this.eGui)return;const t=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(t)return this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),void t.focus();const n=this.findNextColumnWithFloatingFilter(e.shiftKey);n&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:n},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){const t=this.beans.columnModel;let n=this.column;do{if(n=e?t.getDisplayedColBefore(n):t.getDisplayedColAfter(n),!n)break}while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();switch(e.key){case pr.UP:case pr.DOWN:t||e.preventDefault();case pr.LEFT:case pr.RIGHT:if(t)return;e.stopPropagation();case pr.ENTER:t&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case pr.ESCAPE:t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;const t=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),n=!!e.relatedTarget&&Ao(e.relatedTarget,"ag-floating-filter");if(t&&n&&e.target===this.eGui){const e=this.lastFocusEvent,t=!(!e||e.key!==pr.TAB);if(e&&t){const t=e.shiftKey;this.focusService.focusInto(this.eGui,t)}}const i=this.getRowIndex();this.beans.focusService.setFocusedHeader(i,this.column)}setupHover(){this.createManagedBean(new nd([this.column],this.eGui));const e=()=>{if(!this.gos.get("columnHoverHighlight"))return;const e=this.beans.columnHoverService.isHovered(this.column);this.comp.addOrRemoveCssClass("ag-column-hover",e)};this.addManagedListener(this.eventService,An.EVENT_COLUMN_HOVER_CHANGED,e),e()}setupLeft(){const e=new td(this.column,this.eGui,this.beans);this.createManagedBean(e)}setupFilterButton(){this.suppressFilterButton=!this.menuService.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!this.menuService.isLegacyMenuEnabled()}setupUserComp(){if(!this.active)return;const e=this.beans.filterManager.getFloatingFilterCompDetails(this.column,(()=>this.showParentFilter()));e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}showParentFilter(){const e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuService.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(){if(!this.active)return;const{filterManager:e}=this.beans,t=t=>{if("filterDestroyed"===(null==t?void 0:t.source)&&this.context.isDestroyed())return;const n=this.comp.getFloatingFilterComp();n&&n.then((n=>{var i;if(n){const o=e.getCurrentFloatingFilterParentModel(this.column);n.onParentModelChanged(o,t?this.gos.addGridCommonParams({columns:null!=(i=t.columns)?i:[],type:An.EVENT_FILTER_CHANGED,source:"api"===t.source?"api":"columnFilter"}):null)}}))};this.destroySyncListener=this.addManagedListener(this.column,zt.EVENT_FILTER_CHANGED,t),e.isFilterActive(this.column)&&t(null)}setupWidth(){const e=()=>{const e=`${this.column.getActualWidth()}px`;this.comp.setWidth(e)};this.addManagedListener(this.column,zt.EVENT_WIDTH_CHANGED,e),e()}setupFilterChangedListener(){this.active&&(this.destroyFilterChangedListener=this.addManagedListener(this.column,zt.EVENT_FILTER_CHANGED,this.updateFilterButton.bind(this)),this.updateFilterButton())}updateFilterButton(){if(!this.suppressFilterButton&&this.comp){const e=this.beans.filterManager.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(){var e,t;const n=this.active;this.setupActive();const i=!n&&this.active;n&&!this.active&&(null==(e=this.destroySyncListener)||e.call(this),null==(t=this.destroyFilterChangedListener)||t.call(this));const o=this.active?this.beans.filterManager.getFloatingFilterCompDetails(this.column,(()=>this.showParentFilter())):null,r=this.comp.getFloatingFilterComp();r&&o?r.then((e=>{var t;!e||this.beans.filterManager.areFilterCompsDifferent(null!=(t=this.userCompDetails)?t:null,o)?this.updateCompDetails(o,i):this.updateFloatingFilterParams(o)})):this.updateCompDetails(o,i)}updateCompDetails(e,t){this.isAlive()&&(this.setCompDetails(e),this.setupFilterButton(),this.setupUi(),t&&(this.setupSyncWithFilter(),this.setupFilterChangedListener()))}updateFloatingFilterParams(e){var t;if(!e)return;const n=e.params;null==(t=this.comp.getFloatingFilterComp())||t.then((e=>{let t=!1;if((null==e?void 0:e.refresh)&&"function"==typeof e.refresh){null!==e.refresh(n)&&(t=!0)}if(!t&&(null==e?void 0:e.onParamsUpdated)&&"function"==typeof e.onParamsUpdated){null!==e.onParamsUpdated(n)&&st("Custom floating filter method 'onParamsUpdated' is deprecated. Use 'refresh' instead.")}}))}destroy(){super.destroy(),this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.destroySyncListener=null,this.destroyFilterChangedListener=null}},od=class extends En{constructor(e,t,n,i,o){super(),this.pinned=e,this.column=t,this.eResize=n,this.comp=i,this.ctrl=o}postConstruct(){const e=[];let t,n;const i=()=>{if(Do(this.eResize,t),!t)return;const i=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(e.push(i),n){const t=this.gos.get("skipHeaderOnAutoSize"),n=()=>{this.columnModel.autoSizeColumn(this.column,"uiColumnResized",t)};this.eResize.addEventListener("dblclick",n);const i=new Pa(this.eResize);i.addEventListener(Pa.EVENT_DOUBLE_TAP,n),e.push((()=>{this.eResize.removeEventListener("dblclick",n),i.removeEventListener(Pa.EVENT_DOUBLE_TAP,n),i.destroy()}))}},o=()=>{e.forEach((e=>e())),e.length=0},r=()=>{const e=this.column.isResizable(),r=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize;(e!==t||r!==n)&&(t=e,n=r,o(),i())};r(),this.addDestroyFunc(o),this.ctrl.addRefreshFunction(r)}onResizing(e,t){const{column:n,lastResizeAmount:i,resizeStartWidth:o}=this,r=this.normaliseResizeAmount(t),a=[{key:n,newWidth:o+r}];if(this.column.getPinned()){if(this.pinnedWidthService.getPinnedLeftWidth()+this.pinnedWidthService.getPinnedRightWidth()+(r-i)>No(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50)return}this.lastResizeAmount=r,this.columnModel.setColumnWidths(a,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.comp.addOrRemoveCssClass("ag-column-resizing",e)}normaliseResizeAmount(e){let t=e;const n="left"!==this.pinned,i="right"===this.pinned;return this.gos.get("enableRtl")?n&&(t*=-1):i&&(t*=-1),t}};_e([xt("horizontalResizeService")],od.prototype,"horizontalResizeService",2),_e([xt("pinnedWidthService")],od.prototype,"pinnedWidthService",2),_e([xt("ctrlsService")],od.prototype,"ctrlsService",2),_e([xt("columnModel")],od.prototype,"columnModel",2),_e([Tt],od.prototype,"postConstruct",1);var rd=class extends En{constructor(e){super(),this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1,this.column=e}onSpaceKeyDown(e){const t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains(this.gos.getActiveDomElement())&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new ia),this.cbSelectAll.addCssClass("ag-header-select-all"),oi(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,An.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_PAGINATION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,An.EVENT_FIELD_VALUE_CHANGED,this.onCbSelectAll.bind(this)),fi(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onNewColumnsLoaded(){this.showOrHideSelectAll()}onDisplayedColumnsChanged(){this.isAlive()&&this.showOrHideSelectAll()}showOrHideSelectAll(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible,{skipAriaHidden:!0}),this.cbSelectAllVisible&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()}onModelChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}onSelectionChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}updateStateOfCheckbox(){if(this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;const e=this.selectionService.getSelectAllState(this.isFilteredOnly(),this.isCurrentPageOnly());this.cbSelectAll.setValue(e);const t=this.selectionService.hasNodesToSelect(this.isFilteredOnly(),this.isCurrentPageOnly());this.cbSelectAll.setDisabled(!t),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(){const e=this.localeService.getLocaleTextFunc(),t=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),n=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.cbSelectAllVisible?this.headerCellCtrl.setAriaDescriptionProperty("selectAll",`${n} (${t})`):this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel(`${n} (${t})`),this.headerCellCtrl.announceAriaDescription()}checkSelectionType(e){return!("multiple"!==this.gos.get("rowSelection"))||(console.warn(`AG Grid: ${e} is only available if using 'multiple' rowSelection.`),!1)}checkRightRowModelType(e){const t=this.rowModel.getType();return!("clientSide"!==t&&"serverSide"!==t)||(console.warn(`AG Grid: ${e} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${t}.`),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox)return;if(!this.cbSelectAllVisible)return;const e=this.cbSelectAll.getValue(),t=this.isFilteredOnly(),n=this.isCurrentPageOnly();let i="uiSelectAll";n?i="uiSelectAllCurrentPage":t&&(i="uiSelectAllFiltered");const o={source:i,justFiltered:t,justCurrentPage:n};e?this.selectionService.selectAllRowNodes(o):this.selectionService.deselectAllRowNodes(o)}isCheckboxSelection(){let e=this.column.getColDef().headerCheckboxSelection;if("function"==typeof e){e=e(this.gos.addGridCommonParams({column:this.column,colDef:this.column.getColDef()}))}return!!e&&(this.checkRightRowModelType("headerCheckboxSelection")&&this.checkSelectionType("headerCheckboxSelection"))}isFilteredOnly(){return!!this.column.getColDef().headerCheckboxSelectionFilteredOnly}isCurrentPageOnly(){return!!this.column.getColDef().headerCheckboxSelectionCurrentPageOnly}};_e([xt("rowModel")],rd.prototype,"rowModel",2),_e([xt("selectionService")],rd.prototype,"selectionService",2);var ad=class extends ed{constructor(e,t,n){super(e,t,n),this.refreshFunctions=[],this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map,this.column=e}setComp(e,t,n,i){this.comp=e,this.setGui(t),this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight(i),this.addColumnHoverListener(),this.setupFilterClass(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.resizeFeature=this.createManagedBean(new od(this.getPinned(),this.column,n,e,this)),this.createManagedBean(new nd([this.column],t)),this.createManagedBean(new td(this.column,t,this.beans)),this.createManagedBean(new Wr(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(),this.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader"],this.refresh.bind(this)),this.addManagedListener(this.column,zt.EVENT_COL_DEF_CHANGED,this.refresh.bind(this)),this.addManagedListener(this.eventService,An.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))}resizeHeader(e,t){var n,i;if(!this.column.isResizable())return;const o=this.column.getActualWidth(),r=null!=(n=this.column.getMinWidth())?n:0,a=null!=(i=this.column.getMaxWidth())?i:Number.MAX_SAFE_INTEGER,s=Math.min(Math.max(o+e,r),a);this.beans.columnModel.setColumnWidths([{key:this.column,newWidth:s}],t,!0,"uiColumnResized")}moveHeader(e){const{eGui:t,column:n,gos:i,ctrlsService:o}=this,r=this.getPinned(),a=t.getBoundingClientRect().left,s=n.getActualWidth(),l=0===e!==i.get("enableRtl"),d=Wl.normaliseX(l?a-20:a+s+20,r,!0,i,o);Wl.attemptMoveColumns({allMovingColumns:[n],isFromHeader:!0,hDirection:e,xPosition:d,pinned:r,fromEnter:!1,fakeEvent:!1,gos:i,columnModel:this.beans.columnModel}),o.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(n,"auto")}setupUserComp(){const e=this.lookupUserCompDetails();this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)}lookupUserCompDetails(){const e=this.createParams(),t=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(t,e)}createParams(){return this.gos.addGridCommonParams({column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&this.menuService.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!this.openFilterEnabled||this.menuService.isLegacyMenuEnabled(),showColumnMenu:e=>{this.menuService.showColumnMenu({column:this.column,buttonElement:e,positionBy:"button"})},showColumnMenuAfterMouseClick:e=>{this.menuService.showColumnMenu({column:this.column,mouseEvent:e,positionBy:"mouse"})},showFilter:e=>{this.menuService.showFilterMenu({column:this.column,buttonElement:e,containerType:"columnFilter",positionBy:"button"})},progressSort:e=>{this.beans.sortController.progressSort(this.column,!!e,"uiColumnSorted")},setSort:(e,t)=>{this.beans.sortController.setSortForColumn(this.column,e,!!t,"uiColumnSorted")},eGridHeader:this.getGui(),setTooltip:(e,t)=>{this.setupTooltip(e,t)}})}setupSelectAll(){this.selectAllFeature=this.createManagedBean(new rd(this.column)),this.selectAllFeature.setComp(this)}getSelectAllGui(){return this.selectAllFeature.getCheckboxGui()}handleKeyDown(e){super.handleKeyDown(e),e.key===pr.SPACE&&this.selectAllFeature.onSpaceKeyDown(e),e.key===pr.ENTER&&this.onEnterKeyDown(e),e.key===pr.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)}onEnterKeyDown(e){if(e.ctrlKey||e.metaKey)this.showMenuOnKeyPress(e,!0);else if(this.sortable){const t=e.shiftKey;this.beans.sortController.progressSort(this.column,t,"uiColumnSorted")}}showMenuOnKeyPress(e,t){const n=this.comp.getUserCompInstance();n&&n instanceof _a&&n.onMenuKeyboardShortcut(t)&&e.preventDefault()}onFocusIn(e){if(!this.getGui().contains(e.relatedTarget)){const e=this.getRowIndex();this.focusService.setFocusedHeader(e,this.column),this.announceAriaDescription()}this.focusService.isKeyboardMode()&&this.setActiveHeader(!0)}onFocusOut(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(e,t){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature));const n="whenTruncated"===this.gos.get("tooltipShowMode"),i=this.eGui,o=this.column.getColDef();t||!n||o.headerComponent||(t=()=>{const e=i.querySelector(".ag-header-cell-text");return!e||e.scrollWidth>e.clientWidth});const r={getColumn:()=>this.column,getColDef:()=>this.column.getColDef(),getGui:()=>i,getLocation:()=>"header",getTooltipValue:()=>{if(null!=e)return e;return this.column.getColDef().headerTooltip},shouldDisplayTooltip:t},a=this.createManagedBean(new Ir(r));this.refreshFunctions.push((()=>a.refreshToolTip()))}setupClassesFromColDef(){const e=()=>{const e=this.column.getColDef(),t=hl.getHeaderClassesFromColDef(e,this.gos,this.column,null),n=this.userHeaderClasses;this.userHeaderClasses=new Set(t),t.forEach((e=>{n.has(e)?n.delete(e):this.comp.addOrRemoveCssClass(e,!0)})),n.forEach((e=>this.comp.addOrRemoveCssClass(e,!1)))};this.refreshFunctions.push(e),e()}setDragSource(e){if(this.dragSourceElement=e,this.removeDragSource(),!e||!this.draggable)return;const{column:t,beans:n,displayName:i,dragAndDropService:o,gos:r}=this,{columnModel:a}=n;let s=!this.gos.get("suppressDragLeaveHidesColumns");const l=this.dragSource={type:1,eElement:e,getDefaultIconName:()=>s?qa.ICON_HIDE:qa.ICON_NOT_ALLOWED,getDragItem:()=>this.createDragItem(t),dragItemName:i,onDragStarted:()=>{s=!r.get("suppressDragLeaveHidesColumns"),t.setMoving(!0,"uiColumnMoved")},onDragStopped:()=>t.setMoving(!1,"uiColumnMoved"),onGridEnter:e=>{var t;if(s){const n=(null==(t=null==e?void 0:e.columns)?void 0:t.filter((e=>!e.getColDef().lockVisible)))||[];a.setColumnsVisible(n,!0,"uiColumnMoved")}},onGridExit:e=>{var t;if(s){const n=(null==(t=null==e?void 0:e.columns)?void 0:t.filter((e=>!e.getColDef().lockVisible)))||[];a.setColumnsVisible(n,!1,"uiColumnMoved")}}};o.addDragSource(l,!0)}createDragItem(e){const t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t}}updateState(){this.menuEnabled=this.menuService.isColumnMenuInHeaderEnabled(this.column),this.openFilterEnabled=this.menuService.isFilterMenuInHeaderEnabled(this.column),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}addRefreshFunction(e){this.refreshFunctions.push(e)}refresh(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach((e=>e()))}refreshHeaderComp(){const e=this.lookupUserCompDetails();!!(null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass)&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)}attemptHeaderCompRefresh(e){const t=this.comp.getUserCompInstance();if(!t)return!1;if(!t.refresh)return!1;return t.refresh(e)}calculateDisplayName(){return this.beans.columnModel.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(){this.displayName!==this.calculateDisplayName()&&this.refresh()}workOutDraggable(){const e=this.column.getColDef();return!!(!this.gos.get("suppressMovableColumns")&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot}onColumnRowGroupChanged(){this.checkDisplayName()}onColumnPivotChanged(){this.checkDisplayName()}onColumnValueChanged(){this.checkDisplayName()}setupWidth(){const e=()=>{const e=this.column.getActualWidth();this.comp.setWidth(`${e}px`)};this.addManagedListener(this.column,zt.EVENT_WIDTH_CHANGED,e),e()}setupMovingCss(){const e=()=>{this.comp.addOrRemoveCssClass("ag-header-cell-moving",this.column.isMoving())};this.addManagedListener(this.column,zt.EVENT_MOVING_CHANGED,e),e()}setupMenuClass(){const e=()=>{this.comp.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())};this.addManagedListener(this.column,zt.EVENT_MENU_VISIBLE_CHANGED,e),e()}setupSortableClass(){const e=()=>{this.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!this.sortable)};e(),this.addRefreshFunction(e),this.addManagedListener(this.eventService,zt.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))}setupFilterClass(){const e=()=>{const e=this.column.isFilterActive();this.comp.addOrRemoveCssClass("ag-header-cell-filtered",e),this.refreshAria()};this.addManagedListener(this.column,zt.EVENT_FILTER_ACTIVE_CHANGED,e),e()}setupWrapTextClass(){const e=()=>{const e=!!this.column.getColDef().wrapHeaderText;this.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",e)};e(),this.addRefreshFunction(e)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){const{eGui:e,column:t,comp:n,beans:i}=this;if(!t.isSpanHeaderHeight())return e.style.removeProperty("top"),e.style.removeProperty("height"),n.addOrRemoveCssClass("ag-header-span-height",!1),void n.addOrRemoveCssClass("ag-header-span-total",!1);const{numberOfParents:o,isSpanningTotal:r}=this.column.getColumnGroupPaddingInfo();n.addOrRemoveCssClass("ag-header-span-height",o>0);const{columnModel:a}=i,s=a.getColumnHeaderRowHeight();if(0===o)return n.addOrRemoveCssClass("ag-header-span-total",!1),e.style.setProperty("top","0px"),void e.style.setProperty("height",`${s}px`);n.addOrRemoveCssClass("ag-header-span-total",r);const l=o*(a.isPivotMode()?a.getPivotGroupHeaderHeight():a.getGroupHeaderHeight());e.style.setProperty("top",-l+"px"),e.style.setProperty("height",`${s+l}px`)}setupAutoHeight(e){const{columnModel:t,resizeObserverService:n}=this.beans,i=n=>{if(!this.isAlive())return;const{paddingTop:o,paddingBottom:r,borderBottomWidth:a,borderTopWidth:s}=xo(this.getGui()),l=o+r+a+s,d=e.offsetHeight+l;if(n<5){const t=this.beans.gos.getDocument();if(!t||!t.contains(e)||0==d)return void window.setTimeout((()=>i(n+1)),0)}t.setColumnHeaderHeight(this.column,d)};let o,r=!1;const a=()=>{const e=this.column.isAutoHeaderHeight();e&&!r&&s(),!e&&r&&l()},s=()=>{r=!0,i(0),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),o=n.observeResize(e,(()=>i(0)))},l=()=>{r=!1,o&&o(),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),o=void 0};a(),this.addDestroyFunc((()=>l())),this.addManagedListener(this.column,zt.EVENT_WIDTH_CHANGED,(()=>r&&i(0))),this.addManagedListener(this.eventService,zt.EVENT_SORT_CHANGED,(()=>{r&&window.setTimeout((()=>i(0)))})),this.addRefreshFunction(a)}refreshAriaSort(){if(this.sortable){const e=this.localeService.getLocaleTextFunc(),t=this.beans.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(ri(t)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort"))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)}refreshAriaMenu(){if(this.menuEnabled){const e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press ALT DOWN to open column menu"))}else this.setAriaDescriptionProperty("menu",null)}refreshAriaFilterButton(){if(this.openFilterEnabled&&!this.menuService.isLegacyMenuEnabled()){const e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("filterButton",e("ariaFilterColumn","Press CTRL ENTER to open filter"))}else this.setAriaDescriptionProperty("filterButton",null)}refreshAriaFiltered(){const e=this.localeService.getLocaleTextFunc();this.column.isFilterActive()?this.setAriaDescriptionProperty("filter",e("ariaColumnFiltered","Column Filtered")):this.setAriaDescriptionProperty("filter",null)}setAriaDescriptionProperty(e,t){null!=t?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)}announceAriaDescription(){if(!this.eGui.contains(this.beans.gos.getActiveDomElement()))return;const e=Array.from(this.ariaDescriptionProperties.keys()).sort(((e,t)=>"filter"===e?-1:t.charCodeAt(0)-e.charCodeAt(0))).map((e=>this.ariaDescriptionProperties.get(e))).join(". ");this.beans.ariaAnnouncementService.announceValue(e)}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered()}addColumnHoverListener(){const e=()=>{if(!this.gos.get("columnHoverHighlight"))return;const e=this.beans.columnHoverService.isHovered(this.column);this.comp.addOrRemoveCssClass("ag-column-hover",e)};this.addManagedListener(this.eventService,An.EVENT_COLUMN_HOVER_CHANGED,e),e()}getColId(){return this.column.getColId()}addActiveHeaderMouseListeners(){const e=e=>this.handleMouseOverChange("mouseenter"===e.type);this.addManagedListener(this.getGui(),"mouseenter",e),this.addManagedListener(this.getGui(),"mouseleave",e),this.addManagedListener(this.getGui(),"click",(()=>this.dispatchColumnMouseEvent(An.EVENT_COLUMN_HEADER_CLICKED,this.column))),this.addManagedListener(this.getGui(),"contextmenu",(e=>this.handleContextMenuMouseEvent(e,void 0,this.column)))}handleMouseOverChange(e){this.setActiveHeader(e);const t={type:e?An.EVENT_COLUMN_HEADER_MOUSE_OVER:An.EVENT_COLUMN_HEADER_MOUSE_LEAVE,column:this.column};this.eventService.dispatchEvent(t)}setActiveHeader(e){this.comp.addOrRemoveCssClass("ag-header-active",e)}getAnchorElementForMenu(e){const t=this.comp.getUserCompInstance();return t instanceof _a?t.getAnchorElementForMenu(e):this.getGui()}destroy(){super.destroy(),this.refreshFunctions=null,this.selectAllFeature=null,this.dragSourceElement=null,this.userCompDetails=null,this.userHeaderClasses=null,this.ariaDescriptionProperties=null}},sd=class extends En{constructor(e,t,n,i){super(),this.eResize=t,this.comp=e,this.pinned=n,this.columnGroup=i}postConstruct(){if(!this.columnGroup.isResizable())return void this.comp.setResizableDisplayed(!1);const e=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(e),!this.gos.get("suppressAutoSize")){const e=this.gos.get("skipHeaderOnAutoSize");this.eResize.addEventListener("dblclick",(()=>{const t=[];this.columnGroup.getDisplayedLeafColumns().forEach((e=>{e.getColDef().suppressAutoSize||t.push(e.getColId())})),t.length>0&&this.columnModel.autoSizeColumns({columns:t,skipHeader:e,stopAtGroup:this.columnGroup,source:"uiColumnResized"}),this.resizeLeafColumnsToFit("uiColumnResized")}))}}onResizeStart(e){const t=this.getInitialValues(e);this.storeLocalValues(t),this.toggleColumnResizing(!0)}onResizing(e,t,n="uiColumnResized"){const i=this.normaliseDragChange(t),o=this.resizeStartWidth+i;this.resizeColumnsFromLocalValues(o,n,e)}getInitialValues(e){const t=this.getColumnsToResize(),n=this.getInitialSizeOfColumns(t),i={columnsToResize:t,resizeStartWidth:n,resizeRatios:this.getSizeRatiosOfColumns(t,n)};let o=null;if(e&&(o=this.columnModel.getDisplayedGroupAtDirection(this.columnGroup,"After")),o){const e=o.getDisplayedLeafColumns(),t=i.groupAfterColumns=e.filter((e=>e.isResizable())),n=i.groupAfterStartWidth=this.getInitialSizeOfColumns(t);i.groupAfterRatios=this.getSizeRatiosOfColumns(t,n)}else i.groupAfterColumns=void 0,i.groupAfterStartWidth=void 0,i.groupAfterRatios=void 0;return i}storeLocalValues(e){const{columnsToResize:t,resizeStartWidth:n,resizeRatios:i,groupAfterColumns:o,groupAfterStartWidth:r,groupAfterRatios:a}=e;this.resizeCols=t,this.resizeStartWidth=n,this.resizeRatios=i,this.resizeTakeFromCols=o,this.resizeTakeFromStartWidth=r,this.resizeTakeFromRatios=a}clearLocalValues(){this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0}resizeLeafColumnsToFit(e){const t=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup),n=this.getInitialValues();t>n.resizeStartWidth&&this.resizeColumns(n,t,e,!0)}resizeColumnsFromLocalValues(e,t,n=!0){var i,o,r;if(!this.resizeCols||!this.resizeRatios)return;const a={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:null!=(i=this.resizeTakeFromCols)?i:void 0,groupAfterStartWidth:null!=(o=this.resizeTakeFromStartWidth)?o:void 0,groupAfterRatios:null!=(r=this.resizeTakeFromRatios)?r:void 0};this.resizeColumns(a,e,t,n)}resizeColumns(e,t,n,i=!0){const{columnsToResize:o,resizeStartWidth:r,resizeRatios:a,groupAfterColumns:s,groupAfterStartWidth:l,groupAfterRatios:d}=e,c=[];if(c.push({columns:o,ratios:a,width:t}),s){const e=t-r;c.push({columns:s,ratios:d,width:l-e})}this.columnModel.resizeColumnSets({resizeSets:c,finished:i,source:n}),i&&this.toggleColumnResizing(!1)}toggleColumnResizing(e){this.comp.addOrRemoveCssClass("ag-column-resizing",e)}getColumnsToResize(){return this.columnGroup.getDisplayedLeafColumns().filter((e=>e.isResizable()))}getInitialSizeOfColumns(e){return e.reduce(((e,t)=>e+t.getActualWidth()),0)}getSizeRatiosOfColumns(e,t){return e.map((e=>e.getActualWidth()/t))}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.clearLocalValues()}};_e([xt("horizontalResizeService")],sd.prototype,"horizontalResizeService",2),_e([xt("autoWidthCalculator")],sd.prototype,"autoWidthCalculator",2),_e([xt("columnModel")],sd.prototype,"columnModel",2),_e([Tt],sd.prototype,"postConstruct",1);var ld=class extends En{constructor(e,t){super(),this.removeChildListenersFuncs=[],this.columnGroup=t,this.comp=e}postConstruct(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,Rn.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();const e=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((t=>{t.addEventListener("widthChanged",e),t.addEventListener("visibleChanged",e),this.removeChildListenersFuncs.push((()=>{t.removeEventListener("widthChanged",e),t.removeEventListener("visibleChanged",e)}))}))}removeListenersOnChildrenColumns(){this.removeChildListenersFuncs.forEach((e=>e())),this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns(),this.onWidthChanged()}onWidthChanged(){const e=this.columnGroup.getActualWidth();this.comp.setWidth(`${e}px`),this.comp.addOrRemoveCssClass("ag-hidden",0===e)}};_e([Tt],ld.prototype,"postConstruct",1);var dd=class extends ed{constructor(e,t,n){super(e,t,n),this.onSuppressColMoveChange=()=>{if(!this.isAlive()||this.isSuppressMoving())this.removeDragSource();else if(!this.dragSource){const e=this.getGui();this.setDragSource(e)}},this.column=e}setComp(e,t,n){this.comp=e,this.setGui(t),this.displayName=this.beans.columnModel.getDisplayNameForColumnGroup(this.column,"header"),this.addClasses(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.addDestroyFunc((()=>{this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature))})),this.setupUserComp(),this.addHeaderMouseListeners();const i=this.getParentRowCtrl().getPinned(),o=this.column.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new nd(o,t)),this.createManagedBean(new td(this.column,t,this.beans)),this.createManagedBean(new ld(e,this.column)),this.resizeFeature=this.createManagedBean(new sd(e,n,i,this.column)),this.createManagedBean(new Wr(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addManagedPropertyListener(An.EVENT_SUPPRESS_COLUMN_MOVE_CHANGED,this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners()}resizeHeader(e,t){if(!this.resizeFeature)return;const n=this.resizeFeature.getInitialValues(t);this.resizeFeature.resizeColumns(n,n.resizeStartWidth+e,"uiColumnResized",!0)}moveHeader(e){const{beans:t,eGui:n,column:i,gos:o,ctrlsService:r}=this,a=o.get("enableRtl"),s=0===e,l=this.getPinned(),d=n.getBoundingClientRect(),c=d.left,g=d.width,u=Wl.normaliseX(s!==a?c-20:c+g+20,l,!0,o,r),h=i.getGroupId(),p=this.focusService.getFocusedHeader();Wl.attemptMoveColumns({allMovingColumns:this.column.getLeafColumns(),isFromHeader:!0,hDirection:e,xPosition:u,pinned:l,fromEnter:!1,fakeEvent:!1,gos:o,columnModel:t.columnModel});const m=i.getDisplayedLeafColumns(),v=s?m[0]:Kt(m);this.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(v,"auto"),!this.isAlive()&&p&&this.restoreFocus(h,i,p)}restoreFocus(e,t,n){const i=t.getLeafColumns();if(!i.length)return;const o=i[0].getParent();if(!o)return;const r=this.findGroupWidthId(o,e);r&&this.focusService.focusHeaderPosition({headerPosition:Le(Ie({},n),{column:r})})}findGroupWidthId(e,t){for(;e;){if(e.getGroupId()===t)return e;e=e.getParent()}return null}resizeLeafColumnsToFit(e){this.resizeFeature&&this.resizeFeature.resizeLeafColumnsToFit(e)}setupUserComp(){const e=this.gos.addGridCommonParams({displayName:this.displayName,columnGroup:this.column,setExpanded:e=>{this.beans.columnModel.setColumnGroupOpened(this.column.getProvidedColumnGroup(),e,"gridInitializing")},setTooltip:(e,t)=>{this.setupTooltip(e,t)}}),t=this.userComponentFactory.getHeaderGroupCompDetails(e);this.comp.setUserCompDetails(t)}addHeaderMouseListeners(){const e=e=>this.handleMouseOverChange("mouseenter"===e.type);this.addManagedListener(this.getGui(),"mouseenter",e),this.addManagedListener(this.getGui(),"mouseleave",e),this.addManagedListener(this.getGui(),"click",(()=>this.dispatchColumnMouseEvent(An.EVENT_COLUMN_HEADER_CLICKED,this.column.getProvidedColumnGroup()))),this.addManagedListener(this.getGui(),"contextmenu",(e=>this.handleContextMenuMouseEvent(e,void 0,this.column.getProvidedColumnGroup())))}handleMouseOverChange(e){const t={type:e?An.EVENT_COLUMN_HEADER_MOUSE_OVER:An.EVENT_COLUMN_HEADER_MOUSE_LEAVE,column:this.column.getProvidedColumnGroup()};this.eventService.dispatchEvent(t)}setupTooltip(e,t){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature));const n=this.column.getColGroupDef(),i="whenTruncated"===this.gos.get("tooltipShowMode"),o=this.eGui;t||!i||(null==n?void 0:n.headerGroupComponent)||(t=()=>{const e=o.querySelector(".ag-header-group-text");return!e||e.scrollWidth>e.clientWidth});const r={getColumn:()=>this.column,getGui:()=>o,getLocation:()=>"headerGroup",getTooltipValue:()=>null!=e?e:n&&n.headerTooltip,shouldDisplayTooltip:t};n&&(r.getColDef=()=>n),this.createBean(new Ir(r))}setupExpandable(){const e=this.column.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,Ht.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,Ht.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))}refreshExpanded(){const e=this.column;this.expandable=e.isExpandable();const t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0)}getColId(){return this.column.getUniqueId()}addClasses(){const e=this.column.getColGroupDef(),t=hl.getHeaderClassesFromColDef(e,this.gos,null,this.column);if(this.column.isPadding()){t.push("ag-header-group-cell-no-group");this.column.getLeafColumns().every((e=>e.isSpanHeaderHeight()))&&t.push("ag-header-span-height")}else t.push("ag-header-group-cell-with-group");t.forEach((e=>this.comp.addOrRemoveCssClass(e,!0)))}setupMovingCss(){const e=this.column.getProvidedColumnGroup().getLeafColumns(),t=()=>this.comp.addOrRemoveCssClass("ag-header-cell-moving",this.column.isMoving());e.forEach((e=>{this.addManagedListener(e,zt.EVENT_MOVING_CHANGED,t)})),t()}onFocusIn(e){if(!this.eGui.contains(e.relatedTarget)){const e=this.getRowIndex();this.beans.focusService.setFocusedHeader(e,this.column)}}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();if(this.expandable&&t&&e.key===pr.ENTER){const e=this.column,t=!e.isExpanded();this.beans.columnModel.setColumnGroupOpened(e.getProvidedColumnGroup(),t,"uiColumnExpanded")}}setDragSource(e){if(!this.isAlive()||this.isSuppressMoving())return;if(this.removeDragSource(),!e)return;const{beans:t,column:n,displayName:i,gos:o,dragAndDropService:r}=this,{columnModel:a}=t,s=n.getProvidedColumnGroup().getLeafColumns();let l=!o.get("suppressDragLeaveHidesColumns");const d=this.dragSource={type:1,eElement:e,getDefaultIconName:()=>l?qa.ICON_HIDE:qa.ICON_NOT_ALLOWED,dragItemName:i,getDragItem:()=>this.getDragItemForGroup(n),onDragStarted:()=>{l=!o.get("suppressDragLeaveHidesColumns"),s.forEach((e=>e.setMoving(!0,"uiColumnDragged")))},onDragStopped:()=>s.forEach((e=>e.setMoving(!1,"uiColumnDragged"))),onGridEnter:e=>{var t;if(l){const n=(null==(t=null==e?void 0:e.columns)?void 0:t.filter((e=>!e.getColDef().lockVisible)))||[];a.setColumnsVisible(n,!0,"uiColumnMoved")}},onGridExit:e=>{var t;if(l){const n=(null==(t=null==e?void 0:e.columns)?void 0:t.filter((e=>!e.getColDef().lockVisible)))||[];a.setColumnsVisible(n,!1,"uiColumnMoved")}}};r.addDragSource(d,!0)}getDragItemForGroup(e){const t=e.getProvidedColumnGroup().getLeafColumns(),n={};t.forEach((e=>n[e.getId()]=e.isVisible()));const i=[];return this.beans.columnModel.getAllDisplayedColumns().forEach((e=>{t.indexOf(e)>=0&&(i.push(e),Zt(t,e))})),t.forEach((e=>i.push(e))),{columns:i,visibleState:n}}isSuppressMoving(){let e=!1;this.column.getLeafColumns().forEach((t=>{(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)}));return e||this.gos.get("suppressMovableColumns")}},cd=0,gd=class extends En{constructor(e,t,n){super(),this.instanceId=cd++,this.rowIndex=e,this.pinned=t,this.type=n;const i="group"==n?"ag-header-row-column-group":"filter"==n?"ag-header-row-column-filter":"ag-header-row-column";this.headerRowClass=`ag-header-row ${i}`}postConstruct(){this.isPrintLayout=this.gos.isDomLayout("print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}getInstanceId(){return this.instanceId}setComp(e,t=!0){this.comp=e,t&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners()}getHeaderRowClass(){return this.headerRowClass}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(){this.addManagedListener(this.eventService,An.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_VIRTUAL_COLUMNS_CHANGED,(e=>this.onVirtualColumnsChanged(e.afterScroll))),this.addManagedListener(this.eventService,An.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_GRID_STYLES_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),this.addManagedPropertyListener("ensureDomOrder",(e=>this.isEnsureDomOrder=e.currentValue)),this.addManagedPropertyListener("headerHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("groupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotGroupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("floatingFiltersHeight",this.onRowHeightChanged.bind(this))}getHeaderCellCtrl(e){if(this.headerCellCtrls)return $e(this.headerCellCtrls).find((t=>t.getColumnGroupChild()===e))}onDisplayedColumnsChanged(){this.isPrintLayout=this.gos.isDomLayout("print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}getType(){return this.type}onColumnResized(){this.setWidth()}setWidth(){const e=this.getWidthForRow();this.comp.setWidth(`${e}px`)}getWidthForRow(){const{columnModel:e}=this.beans;if(this.isPrintLayout){return null!=this.pinned?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null)}return e.getContainerWidth(this.pinned)}onRowHeightChanged(){var{topOffset:e,rowHeight:t}=this.getTopAndHeight();this.comp.setTop(e+"px"),this.comp.setHeight(t+"px")}getTopAndHeight(){const{columnModel:e,filterManager:t}=this.beans;let n=e.getHeaderRowCount();const i=[];let o=0;t.hasFloatingFilters()&&(n++,o=1);const r=e.getColumnGroupHeaderRowHeight(),a=e.getColumnHeaderRowHeight(),s=n-(1+o);for(let e=0;e<s;e++)i.push(r);i.push(a);for(let t=0;t<o;t++)i.push(e.getFloatingFiltersHeight());let l=0;for(let e=0;e<this.rowIndex;e++)l+=i[e];return{topOffset:l,rowHeight:i[this.rowIndex]}}getPinned(){return this.pinned}getRowIndex(){return this.rowIndex}onVirtualColumnsChanged(e=!1){const t=this.getHeaderCtrls(),n=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(t,n,e)}getHeaderCtrls(){const e=this.headerCellCtrls;this.headerCellCtrls=new Map;const t=this.getColumnsInViewport();for(const n of t)this.recycleAndCreateHeaderCtrls(n,e);const n=e=>{const{focusService:t,columnModel:n}=this.beans;if(!t.isHeaderWrapperFocused(e))return!1;return n.isDisplayed(e.getColumnGroupChild())};if(e)for(const[t,i]of e){n(i)?this.headerCellCtrls.set(t,i):this.destroyBean(i)}return Array.from(this.headerCellCtrls.values())}recycleAndCreateHeaderCtrls(e,t){if(!this.headerCellCtrls)return;if(e.isEmptyGroup())return;const n=e.getUniqueId();let i;t&&(i=t.get(n),t.delete(n));if(i&&i.getColumnGroupChild()!=e&&(this.destroyBean(i),i=void 0),null==i)switch(this.type){case"filter":i=this.createBean(new id(e,this.beans,this));break;case"group":i=this.createBean(new dd(e,this.beans,this));break;default:i=this.createBean(new ad(e,this.beans,this))}this.headerCellCtrls.set(n,i)}getColumnsInViewport(){return this.isPrintLayout?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()}getColumnsInViewportPrintLayout(){if(null!=this.pinned)return[];let e=[];const t=this.getActualDepth(),{columnModel:n}=this.beans;return["left",null,"right"].forEach((i=>{const o=n.getVirtualHeaderGroupRow(i,t);e=e.concat(o)})),e}getActualDepth(){return"filter"==this.type?this.rowIndex-1:this.rowIndex}getColumnsInViewportNormalLayout(){return this.beans.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())}focusHeader(e,t){if(!this.headerCellCtrls)return!1;const n=Array.from(this.headerCellCtrls.values()).find((t=>t.getColumnGroupChild()==e));return!!n&&n.focus(t)}destroy(){this.headerCellCtrls&&this.headerCellCtrls.forEach((e=>{this.destroyBean(e)})),this.headerCellCtrls=void 0,super.destroy()}};_e([xt("beans")],gd.prototype,"beans",2),_e([Tt],gd.prototype,"postConstruct",1);var ud=class extends En{constructor(e){super(),this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[],this.pinned=e}setComp(e,t){this.comp=e,this.eViewport=t,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,An.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()}setupDragAndDrop(e){const t=new jl(this.pinned,e);this.createManagedBean(t)}refresh(e=!1){const t=new Ar,n=this.focusService.getFocusHeaderToUseAfterRefresh();(()=>{const e=this.columnModel.getHeaderRowCount()-1;this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls);for(let n=0;n<e;n++){const e=this.createBean(new gd(t.next(),this.pinned,"group"));this.groupsRowCtrls.push(e)}})(),(()=>{const n=t.next(),i=!(this.hidden||null!=this.columnsRowCtrl&&e&&this.columnsRowCtrl.getRowIndex()===n);(i||this.hidden)&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),i&&(this.columnsRowCtrl=this.createBean(new gd(n,this.pinned,"column")))})(),(()=>{this.includeFloatingFilter=this.filterManager.hasFloatingFilters()&&!this.hidden;const n=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter)return void n();const i=t.next();if(this.filtersRowCtrl){const t=this.filtersRowCtrl.getRowIndex()!==i;e&&!t||n()}this.filtersRowCtrl||(this.filtersRowCtrl=this.createBean(new gd(i,this.pinned,"filter")))})();const i=this.getAllCtrls();this.comp.setCtrls(i),this.restoreFocusOnHeader(n)}restoreFocusOnHeader(e){null!=e&&e.column.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:e})}getAllCtrls(){const e=[...this.groupsRowCtrls];return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e}onGridColumnsChanged(){this.refresh(!0)}onDisplayedColumnsChanged(){const e=this.filterManager.hasFloatingFilters()&&!this.hidden;this.includeFloatingFilter!==e&&this.refresh(!0)}setupCenterWidth(){null==this.pinned&&this.createManagedBean(new Rl((e=>this.comp.setCenterWidth(`${e}px`)),!0))}setHorizontalScroll(e){this.comp.setViewportScrollLeft(e)}setupPinnedWidth(){if(null==this.pinned)return;const e="left"===this.pinned,t="right"===this.pinned;this.hidden=!0;const n=()=>{const n=e?this.pinnedWidthService.getPinnedLeftWidth():this.pinnedWidthService.getPinnedRightWidth();if(null==n)return;const i=0==n,o=this.hidden!==i,r=this.gos.get("enableRtl"),a=this.gos.getScrollbarWidth(),s=this.scrollVisibleService.isVerticalScrollShowing()&&(r&&e||!r&&t)?n+a:n;this.comp.setPinnedContainerWidth(`${s}px`),this.comp.setDisplayed(!i),o&&(this.hidden=i,this.refresh())};this.addManagedListener(this.eventService,An.EVENT_LEFT_PINNED_WIDTH_CHANGED,n),this.addManagedListener(this.eventService,An.EVENT_RIGHT_PINNED_WIDTH_CHANGED,n),this.addManagedListener(this.eventService,An.EVENT_SCROLL_VISIBILITY_CHANGED,n),this.addManagedListener(this.eventService,An.EVENT_SCROLLBAR_WIDTH_CHANGED,n)}getHeaderCtrlForColumn(e){if(e instanceof zt){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(e)}if(0!==this.groupsRowCtrls.length)for(let t=0;t<this.groupsRowCtrls.length;t++){const n=this.groupsRowCtrls[t].getHeaderCellCtrl(e);if(n)return n}}getHtmlElementForColumnHeader(e){const t=this.getHeaderCtrlForColumn(e);return t?t.getGui():null}getRowType(e){const t=this.getAllCtrls()[e];return t?t.getType():void 0}focusHeader(e,t,n){const i=this.getAllCtrls()[e];return!!i&&i.focusHeader(t,n)}getViewport(){return this.eViewport}getRowCount(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)}destroy(){this.filtersRowCtrl&&(this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)),this.columnsRowCtrl&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),this.groupsRowCtrls&&this.groupsRowCtrls.length&&(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls)),super.destroy()}};_e([xt("ctrlsService")],ud.prototype,"ctrlsService",2),_e([xt("scrollVisibleService")],ud.prototype,"scrollVisibleService",2),_e([xt("pinnedWidthService")],ud.prototype,"pinnedWidthService",2),_e([xt("columnModel")],ud.prototype,"columnModel",2),_e([xt("focusService")],ud.prototype,"focusService",2),_e([xt("filterManager")],ud.prototype,"filterManager",2);var hd=class _HeaderRowContainerComp extends _r{constructor(e){super(),this.headerRowComps={},this.rowCompsList=[],this.pinned=e}init(){this.selectAndSetTemplate();const e={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=>{const t=this.getGui();t.style.width=e,t.style.maxWidth=e,t.style.minWidth=e}};this.createManagedBean(new ud(this.pinned)).setComp(e,this.getGui())}selectAndSetTemplate(){const e="left"==this.pinned,t="right"==this.pinned,n=e?_HeaderRowContainerComp.PINNED_LEFT_TEMPLATE:t?_HeaderRowContainerComp.PINNED_RIGHT_TEMPLATE:_HeaderRowContainerComp.CENTER_TEMPLATE;this.setTemplate(n),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()}destroyRowComps(){this.setCtrls([])}destroyRowComp(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())}setCtrls(e){const t=this.headerRowComps;let n;this.headerRowComps={},this.rowCompsList=[];const i=e=>{const t=e.getGui();t.parentElement!=this.eRowContainer&&this.eRowContainer.appendChild(t),n&&Bo(this.eRowContainer,t,n),n=t};e.forEach((e=>{const n=e.getInstanceId(),o=t[n];delete t[n];const r=o||this.createBean(new Xl(e));this.headerRowComps[n]=r,this.rowCompsList.push(r),i(r)})),Je(t).forEach((e=>this.destroyRowComp(e)))}};hd.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="rowgroup"></div>',hd.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="rowgroup"></div>',hd.CENTER_TEMPLATE='<div class="ag-header-viewport" role="presentation">\n <div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>\n </div>',_e([Or("eCenterContainer")],hd.prototype,"eCenterContainer",2),_e([Tt],hd.prototype,"init",1),_e([Rt],hd.prototype,"destroyRowComps",1);var pd=hd,md=class extends En{constructor(){super(...arguments),this.currentHeaderRowWithoutSpan=-1}postConstruct(){this.ctrlsService.whenReady((e=>{this.gridBodyCon=e.gridBodyCtrl}));const e=this.gos.getDocument();this.addManagedListener(e,"mousedown",(()=>this.setCurrentHeaderRowWithoutSpan(-1)))}getHeaderRowCount(){const e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0}navigateVertically(e,t,n){if(t||(t=this.focusService.getFocusedHeader()),!t)return!1;const{headerRowIndex:i,column:o}=t,r=this.getHeaderRowCount(),a=0===e;let{headerRowIndex:s,column:l,headerRowIndexWithoutSpan:d}=a?this.headerPositionUtils.getColumnVisibleParent(o,i):this.headerPositionUtils.getColumnVisibleChild(o,i),c=!1;return s<0&&(s=0,l=o,c=!0),s>=r?(s=-1,this.setCurrentHeaderRowWithoutSpan(-1)):void 0!==d&&(this.currentHeaderRowWithoutSpan=d),!(!c&&!l)&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:s,column:l},allowUserOverride:!0,event:n})}setCurrentHeaderRowWithoutSpan(e){this.currentHeaderRowWithoutSpan=e}navigateHorizontally(e,t=!1,n){const i=this.focusService.getFocusedHeader(),o=2===e,r=this.gos.get("enableRtl");let a,s;if(-1!==this.currentHeaderRowWithoutSpan?i.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=i.headerRowIndex,o!==r?(s="Before",a=this.headerPositionUtils.findHeader(i,s)):(s="After",a=this.headerPositionUtils.findHeader(i,s)),a||!t)return this.focusService.focusHeaderPosition({headerPosition:a,direction:s,fromTab:t,allowUserOverride:!0,event:n});if(t){const e=this.gos.getCallback("tabToNextHeader");if(e)return this.focusService.focusHeaderPositionFromUserFunc({userFunc:e,headerPosition:a,direction:s})}return this.focusNextHeaderRow(i,s,n)}focusNextHeaderRow(e,t,n){const i=e.headerRowIndex;let o,r=null;if("Before"===t?i>0&&(o=i-1,this.currentHeaderRowWithoutSpan-=1,r=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"end")):(o=i+1,this.currentHeaderRowWithoutSpan<this.getHeaderRowCount()?this.currentHeaderRowWithoutSpan+=1:this.setCurrentHeaderRowWithoutSpan(-1),r=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"start")),!r)return!1;const{column:a,headerRowIndex:s}=this.headerPositionUtils.getHeaderIndexToFocus(r.column,null==r?void 0:r.headerRowIndex);return this.focusService.focusHeaderPosition({headerPosition:{column:a,headerRowIndex:s},direction:t,fromTab:!0,allowUserOverride:!0,event:n})}scrollToColumn(e,t="After"){if(e.getPinned())return;let n;if(e instanceof Rn){const i=e.getDisplayedLeafColumns();n="Before"===t?Kt(i):i[0]}else n=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(n)}};_e([xt("focusService")],md.prototype,"focusService",2),_e([xt("headerPositionUtils")],md.prototype,"headerPositionUtils",2),_e([xt("ctrlsService")],md.prototype,"ctrlsService",2),_e([Tt],md.prototype,"postConstruct",1),md=_e([At("headerNavigationService")],md);var vd=class extends En{setComp(e,t,n){this.comp=e,this.eGui=t,this.createManagedBean(new Wr(n,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,An.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight();const i=this.onHeaderContextMenu.bind(this);this.addManagedListener(this.eGui,"contextmenu",i),this.mockContextMenuForIPad(i),this.ctrlsService.register("gridHeaderCtrl",this)}setupHeaderHeight(){const e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListener("headerHeight",e),this.addManagedPropertyListener("pivotHeaderHeight",e),this.addManagedPropertyListener("groupHeaderHeight",e),this.addManagedPropertyListener("pivotGroupHeaderHeight",e),this.addManagedPropertyListener("floatingFiltersHeight",e),this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,An.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,e),this.addManagedListener(this.eventService,An.EVENT_GRID_STYLES_CHANGED,e),this.addManagedListener(this.eventService,An.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,e)}getHeaderHeight(){return this.headerHeight}setHeaderHeight(){const{columnModel:e}=this;let t,n=0,i=e.getHeaderRowCount();this.filterManager.hasFloatingFilters()&&(i++,n=1);const o=this.columnModel.getColumnGroupHeaderRowHeight(),r=this.columnModel.getColumnHeaderRowHeight(),a=i-(1+n);if(t=n*e.getFloatingFiltersHeight(),t+=a*o,t+=r,this.headerHeight===t)return;this.headerHeight=t;const s=`${t+1}px`;this.comp.setHeightAndMinHeight(s),this.eventService.dispatchEvent({type:An.EVENT_HEADER_HEIGHT_CHANGED})}onPivotModeChanged(){const e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)}onDisplayedColumnsChanged(){const e=this.columnModel.getAllDisplayedColumns().some((e=>e.isSpanHeaderHeight()));this.comp.addOrRemoveCssClass("ag-header-allow-overflow",e)}onTabKeyDown(e){const t=this.gos.get("enableRtl"),n=e.shiftKey!==t?2:3;(this.headerNavigationService.navigateHorizontally(n,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()}handleKeyDown(e){let t=null;switch(e.key){case pr.LEFT:t=2;case pr.RIGHT:ze(t)||(t=3),this.headerNavigationService.navigateHorizontally(t,!1,e);break;case pr.UP:t=0;case pr.DOWN:ze(t)||(t=1),this.headerNavigationService.navigateVertically(t,null,e)&&e.preventDefault();break;default:return}}onFocusOut(e){const{relatedTarget:t}=e;!t&&this.eGui.contains(this.gos.getActiveDomElement())||this.eGui.contains(t)||this.focusService.clearFocusedHeader()}onHeaderContextMenu(e,t,n){if(!e&&!n||!this.menuService.isHeaderContextMenuEnabled())return;const{target:i}=null!=e?e:t;i!==this.eGui&&i!==this.ctrlsService.getHeaderRowContainerCtrl().getViewport()||this.menuService.showHeaderContextMenu(void 0,e,n)}mockContextMenuForIPad(e){if(!Qi())return;const t=new Pa(this.eGui);this.addManagedListener(t,Pa.EVENT_LONG_TAP,(t=>{e(void 0,t.touchStart,t.touchEvent)})),this.addDestroyFunc((()=>t.destroy()))}};_e([xt("headerNavigationService")],vd.prototype,"headerNavigationService",2),_e([xt("focusService")],vd.prototype,"focusService",2),_e([xt("columnModel")],vd.prototype,"columnModel",2),_e([xt("ctrlsService")],vd.prototype,"ctrlsService",2),_e([xt("filterManager")],vd.prototype,"filterManager",2),_e([xt("menuService")],vd.prototype,"menuService",2);var fd=class _GridHeaderComp extends _r{constructor(){super(_GridHeaderComp.TEMPLATE)}postConstruct(){const e={addOrRemoveCssClass:(e,t)=>this.addOrRemoveCssClass(e,t),setHeightAndMinHeight:e=>{this.getGui().style.height=e,this.getGui().style.minHeight=e}};this.createManagedBean(new vd).setComp(e,this.getGui(),this.getFocusableElement());const t=e=>{this.createManagedBean(e),this.appendChild(e)};t(new pd("left")),t(new pd(null)),t(new pd("right"))}};fd.TEMPLATE='<div class="ag-header" role="presentation"/>',_e([Tt],fd.prototype,"postConstruct",1);var Cd=fd,wd=class extends En{addResizeBar(e){const 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),includeTouch:!0,stopPropagationForTouch:!0};this.dragService.addDragSource(t);return()=>this.dragService.removeDragSource(t)}onDragStart(e,t){this.dragStartX=t.clientX,this.setResizeIcons();const n=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(n)}setResizeIcons(){const e=this.ctrlsService.get("gridCtrl");e.setResizeCursor(!0),e.disableUserSelect(!0)}onDragStop(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()}resetIcons(){const e=this.ctrlsService.get("gridCtrl");e.setResizeCursor(!1),e.disableUserSelect(!1)}onDragging(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)}};_e([xt("dragService")],wd.prototype,"dragService",2),_e([xt("ctrlsService")],wd.prototype,"ctrlsService",2),wd=_e([At("horizontalResizeService")],wd);var yd=class extends En{hideActiveMenu(){this.hidePopup&&this.hidePopup()}showMenuAfterMouseEvent(e,t,n){this.showPopup(e,(i=>{this.popupService.positionPopupUnderMouseEvent({column:e,type:n,mouseEvent:t,ePopup:i})}),n,t.target,this.menuService.isLegacyMenuEnabled())}showMenuAfterButtonClick(e,t,n){let i=-1,o="left";const r=this.menuService.isLegacyMenuEnabled();!r&&this.gos.get("enableRtl")&&(i=1,o="right");let a=r?void 0:4*i,s=r?void 0:4;this.showPopup(e,(i=>{this.popupService.positionPopupByComponent({type:n,eventSource:t,ePopup:i,nudgeX:a,nudgeY:s,alignSide:o,keepWithinBounds:!0,position:"under",column:e})}),n,t,r)}showPopup(e,t,n,i,o){const r=e?this.createBean(new Zs(e,"COLUMN_MENU")):void 0;if(this.activeMenu=r,!(null==r?void 0:r.hasFilter())||!e)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");const a=document.createElement("div");let s;oi(a,"presentation"),a.classList.add("ag-menu"),o||a.classList.add("ag-filter-menu"),this.tabListener=this.addManagedListener(a,"keydown",(e=>this.trapFocusWithin(e,a))),a.appendChild(null==r?void 0:r.getGui());const l=this.menuService.isColumnMenuAnchoringEnabled()?null!=i?i:this.ctrlsService.getGridBodyCtrl().getGui():void 0,d=this.localeService.getLocaleTextFunc(),c=o&&"columnFilter"!==n?d("ariaLabelColumnMenu","Column Menu"):d("ariaLabelColumnFilter","Column Filter"),g=this.popupService.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:t=>{e.setMenuVisible(!1,"contextMenu");const o=t instanceof KeyboardEvent;if(this.tabListener&&(this.tabListener=this.tabListener()),o&&i&&Vo(i)){const e=this.focusService.findTabbableParent(i);e&&e.focus()}null==r||r.afterGuiDetached(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,n,e)},positionCallback:()=>t(a),anchorToElement:l,ariaLabel:c});g&&(this.hidePopup=s=g.hideFunc),r.afterInit().then((()=>{t(a),r.afterGuiAttached({container:n,hidePopup:s})})),e.setMenuVisible(!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,n,e)}trapFocusWithin(e,t){e.key!==pr.TAB||e.defaultPrevented||this.focusService.findNextFocusableElement(t,!1,e.shiftKey)||(e.preventDefault(),this.focusService.focusInto(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,n){const i={type:An.EVENT_COLUMN_MENU_VISIBLE_CHANGED,visible:e,switchingTab:!1,key:t,column:null!=n?n:null};this.eventService.dispatchEvent(i)}isMenuEnabled(e){var t;return e.isFilterAllowed()&&(null!=(t=e.getColDef().menuTabs)?t:["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}};_e([xt("filterManager")],yd.prototype,"filterManager",2),_e([xt("popupService")],yd.prototype,"popupService",2),_e([xt("focusService")],yd.prototype,"focusService",2),_e([xt("ctrlsService")],yd.prototype,"ctrlsService",2),_e([xt("menuService")],yd.prototype,"menuService",2),yd=_e([At("filterMenuFactory")],yd);var bd=(e=>(e.TAB_GUARD="ag-tab-guard",e.TAB_GUARD_TOP="ag-tab-guard-top",e.TAB_GUARD_BOTTOM="ag-tab-guard-bottom",e))(bd||{}),Ed=class extends En{constructor(e){super(),this.skipTabGuardFocus=!1,this.forcingFocusOut=!1;const{comp:t,eTopGuard:n,eBottomGuard:i,focusTrapActive:o,forceFocusOutWhenTabGuardsAreEmpty:r,focusInnerElement:a,onFocusIn:s,onFocusOut:l,shouldStopEventPropagation:d,onTabKeyDown:c,handleKeyDown:g,eFocusableElement:u}=e;this.comp=t,this.eTopGuard=n,this.eBottomGuard=i,this.providedFocusInnerElement=a,this.eFocusableElement=u,this.focusTrapActive=!!o,this.forceFocusOutWhenTabGuardsAreEmpty=!!r,this.providedFocusIn=s,this.providedFocusOut=l,this.providedShouldStopEventPropagation=d,this.providedOnTabKeyDown=c,this.providedHandleKeyDown=g}postConstruct(){this.createManagedBean(new Wr(this.eFocusableElement,{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].forEach((e=>this.addManagedListener(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;const e=this.gos.get("tabIndex");this.comp.setTabIndex(e.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(e){if(this.skipTabGuardFocus)return void(this.skipTabGuardFocus=!1);if(this.forceFocusOutWhenTabGuardsAreEmpty){if(0===this.focusService.findFocusableElements(this.eFocusableElement,".ag-tab-guard").length)return void this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard)}const t=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t)}findNextElementOutsideAndFocus(e){const t=this.gos.getDocument(),n=this.focusService.findFocusableElements(t.body,null,!0),i=n.indexOf(e?this.eTopGuard:this.eBottomGuard);if(-1===i)return;let o,r;e?(o=0,r=i):(o=i+1,r=n.length);const a=n.slice(o,r),s=this.gos.get("tabIndex");a.sort(((e,t)=>{const n=parseInt(e.getAttribute("tabindex")||"0"),i=parseInt(t.getAttribute("tabindex")||"0");return i===s?1:n===s?-1:0===n?1:0===i?-1:n-i})),a[e?a.length-1:0].focus()}onFocusIn(e){this.focusTrapActive||(this.providedFocusIn&&this.providedFocusIn(e),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)return;if(e.defaultPrevented)return;const t=this.tabGuardsAreActive();t&&this.deactivateTabGuards();const n=this.getNextFocusableElement(e.shiftKey);t&&setTimeout((()=>this.activateTabGuards()),0),n&&(n.focus(),e.preventDefault())}focusInnerElement(e=!1){const t=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length&&t[e?t.length-1:0].focus({preventScroll:!0})}getNextFocusableElement(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)}forceFocusOutOfContainer(e=!1){if(this.forcingFocusOut)return;const 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){return e===this.eTopGuard||e===this.eBottomGuard}};_e([xt("focusService")],Ed.prototype,"focusService",2),_e([Tt],Ed.prototype,"postConstruct",1);var Sd=class extends _r{initialiseTabGuard(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();const t=[this.eTopGuard,this.eBottomGuard],n={setTabIndex:e=>{t.forEach((t=>null!=e?t.setAttribute("tabindex",e):t.removeAttribute("tabindex")))}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new Ed({comp:n,focusTrapActive:!!e.focusTrapActive,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:e.onFocusIn,onFocusOut:e.onFocusOut,focusInnerElement:e.focusInnerElement,handleKeyDown:e.handleKeyDown,onTabKeyDown:e.onTabKeyDown,shouldStopEventPropagation:e.shouldStopEventPropagation,forceFocusOutWhenTabGuardsAreEmpty:e.forceFocusOutWhenTabGuardsAreEmpty}))}createTabGuard(e){const t=document.createElement("div"),n="top"===e?"ag-tab-guard-top":"ag-tab-guard-bottom";return t.classList.add("ag-tab-guard",n),oi(t,"presentation"),t}addTabGuards(e,t){this.eFocusableElement.insertAdjacentElement("afterbegin",e),this.eFocusableElement.insertAdjacentElement("beforeend",t)}removeAllChildrenExceptTabGuards(){const e=[this.eTopGuard,this.eBottomGuard];ko(this.getFocusableElement()),this.addTabGuards(...e)}forceFocusOutOfContainer(e=!1){this.tabGuardCtrl.forceFocusOutOfContainer(e)}appendChild(e,t){Jo(e)||(e=e.getGui());const{eBottomGuard:n}=this;n?n.insertAdjacentElement("beforebegin",e):super.appendChild(e,t)}},Dd=class _TabbedLayout extends Sd{constructor(e){super(_TabbedLayout.getTemplate(e.cssClass)),this.items=[],this.tabbedItemScrollMap=new Map,this.params=e}postConstruct(){this.setupHeader(),this.params.items&&this.params.items.forEach((e=>this.addItem(e))),this.initialiseTabGuard({onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),focusInnerElement:this.focusInnerElement.bind(this),focusTrapActive:!0}),this.addDestroyFunc((()=>{var e,t,n;return null==(n=null==(t=null==(e=this.activeItem)?void 0:e.tabbedItem)?void 0:t.afterDetachedCallback)?void 0:n.call(t)}))}static getTemplate(e){return`<div class="ag-tabs ${e}">\n <div ref="eHeader"></div>\n <div ref="eBody" role="presentation" class="ag-tabs-body ${e?`${e}-body`:""}"></div>\n </div>`}setupHeader(){const{enableCloseButton:e,cssClass:t}=this.params,n=(e,n)=>{e.classList.add(`ag-tabs-${n}`),t&&e.classList.add(`${t}-${n}`)};e?(this.setupCloseButton(n),this.eTabHeader=this.gos.getDocument().createElement("div"),n(this.eHeader,"header-wrapper"),oi(this.eHeader,"presentation"),this.eHeader.appendChild(this.eTabHeader)):this.eTabHeader=this.eHeader,oi(this.eTabHeader,"tablist"),n(this.eTabHeader,"header")}setupCloseButton(e){const t=this.gos.getDocument(),n=t.createElement("button");e(n,"close-button");const i=ur("close",this.gos,void 0,!0);di(n,this.params.closeButtonAriaLabel),n.appendChild(i),this.addManagedListener(n,"click",(()=>{var e,t;return null==(t=(e=this.params).onCloseClicked)?void 0:t.call(e)}));const o=t.createElement("div");e(o,"close-button-wrapper"),oi(o,"presentation"),o.appendChild(n),this.eHeader.appendChild(o),this.eCloseButton=n}handleKeyDown(e){switch(e.key){case pr.RIGHT:case pr.LEFT:if(!this.eTabHeader.contains(this.gos.getActiveDomElement()))return;const t=e.key===pr.RIGHT,n=this.gos.get("enableRtl"),i=this.items.indexOf(this.activeItem),o=t!==n?Math.min(i+1,this.items.length-1):Math.max(i-1,0);if(i===o)return;e.preventDefault();const r=this.items[o];this.showItemWrapper(r),r.eHeaderButton.focus();break;case pr.UP:case pr.DOWN:e.stopPropagation()}}onTabKeyDown(e){var t,n,i,o;if(e.defaultPrevented)return;const{focusService:r,eHeader:a,eBody:s,activeItem:l,params:d}=this,{suppressTrapFocus:c,enableCloseButton:g}=d,u=this.gos.getActiveDomElement(),h=e.target,p=e.shiftKey;if(a.contains(u))return e.preventDefault(),void(g&&p&&!(null==(t=this.eCloseButton)?void 0:t.contains(u))?null==(n=this.eCloseButton)||n.focus():c&&p?null==(i=this.focusService.findFocusableElementBeforeTabGuard(this.gos.getDocument().body,h))||i.focus():this.focusBody(e.shiftKey));let m=null;if(r.isTargetUnderManagedComponent(s,h)&&(p&&(m=this.focusService.findFocusableElementBeforeTabGuard(s,h)),m||c||(m=l.eHeaderButton)),!m&&s.contains(u)&&(m=r.findNextFocusableElement(s,!1,p),!m))return e.preventDefault(),void(c&&!p?this.forceFocusOutOfContainer(p):g&&!p?null==(o=this.eCloseButton)||o.focus():this.focusHeader());m&&(e.preventDefault(),m.focus())}focusInnerElement(e){e?this.focusHeader():this.focusBody(!0)}focusHeader(e){this.activeItem.eHeaderButton.focus({preventScroll:e})}focusBody(e){this.focusService.focusInto(this.eBody,e)}setAfterAttachedParams(e){this.afterAttachedParams=e}showFirstItem(){this.items.length>0&&this.showItemWrapper(this.items[0])}addItem(e){const t=document.createElement("span");oi(t,"tab"),t.setAttribute("tabindex","-1"),t.appendChild(e.title),t.classList.add("ag-tab"),this.eTabHeader.appendChild(t),di(t,e.titleLabel);const n={tabbedItem:e,eHeaderButton:t};this.items.push(n),t.addEventListener("click",this.showItemWrapper.bind(this,n))}showItem(e){const t=this.items.find((t=>t.tabbedItem===e));t&&this.showItemWrapper(t)}showItemWrapper(e){var t,n,i,o,r,a;const{tabbedItem:s,eHeaderButton:l}=e;null==(n=(t=this.params).onItemClicked)||n.call(t,{item:s}),this.activeItem!==e?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),ko(this.eBody),s.bodyPromise.then((e=>{this.eBody.appendChild(e);const t=!this.focusService.isKeyboardMode();if(this.params.suppressFocusBodyOnOpen||this.focusService.focusInto(this.eBody,!1,t),s.afterAttachedCallback&&s.afterAttachedCallback(this.afterAttachedParams),this.params.keepScrollPosition){const t=s.getScrollableContainer&&s.getScrollableContainer()||e;this.lastScrollListener=this.addManagedListener(t,"scroll",(()=>{this.tabbedItemScrollMap.set(s.name,t.scrollTop)}));const n=this.tabbedItemScrollMap.get(s.name);void 0!==n&&setTimeout((()=>{t.scrollTop=n}),0)}})),this.activeItem&&(this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),null==(a=(r=this.activeItem.tabbedItem).afterDetachedCallback)||a.call(r)),l.classList.add("ag-tab-selected"),this.activeItem=e):null==(o=(i=this.params).onActiveItemClicked)||o.call(i)}};_e([xt("focusService")],Dd.prototype,"focusService",2),_e([Or("eHeader")],Dd.prototype,"eHeader",2),_e([Or("eBody")],Dd.prototype,"eBody",2),_e([Tt],Dd.prototype,"postConstruct",1);var Td=class extends En{constructor(){super(...arguments),this.polyfillFunctions=[]}observeResize(e,t){const n=this.gos.getWindow(),i=()=>{var n,i;let o=null!=(n=null==e?void 0:e.clientWidth)?n:0,r=null!=(i=null==e?void 0:e.clientHeight)?i:0,a=!0;const s=()=>{var n,i;if(a){const a=null!=(n=null==e?void 0:e.clientWidth)?n:0,l=null!=(i=null==e?void 0:e.clientHeight)?i:0;(a!==o||l!==r)&&(o=a,r=l,t()),this.doNextPolyfillTurn(s)}};return s(),()=>a=!1},o=this.gos.get("suppressBrowserResizeObserver");return!!n.ResizeObserver&&!o?(()=>{const i=new n.ResizeObserver(t);return i.observe(e),()=>i.disconnect()})():this.getFrameworkOverrides().wrapIncoming((()=>i()),"resize-observer")}doNextPolyfillTurn(e){this.polyfillFunctions.push(e),this.schedulePolyfill()}schedulePolyfill(){if(this.polyfillScheduled)return;this.polyfillScheduled=!0,window.setTimeout((()=>{const e=this.polyfillFunctions;this.polyfillScheduled=!1,this.polyfillFunctions=[],e.forEach((e=>e()))}),50)}};Td=_e([At("resizeObserverService")],Td);var Rd=class extends En{constructor(){super(...arguments),this.createTasksP1={list:[],sorted:!1},this.createTasksP2={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastPage=0,this.lastScrollTop=0,this.taskCount=0,this.cancelledTasks=new Set}setScrollTop(e){const t=this.gos.get("pagination");if(this.scrollGoingDown=e>=this.lastScrollTop,t&&0===e){const e=this.paginationProxy.getCurrentPage();e!==this.lastPage&&(this.lastPage=e,this.scrollGoingDown=!0)}this.lastScrollTop=e}init(){this.useAnimationFrame=!this.gos.get("suppressAnimationFrame")}isOn(){return this.useAnimationFrame}verifyAnimationFrameOn(e){!1===this.useAnimationFrame&&console.warn(`AG Grid: AnimationFrameService.${e} called but animation frames are off`)}createTask(e,t,n){this.verifyAnimationFrameOn(n);const i={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[n],i),this.schedule()}cancelTask(e){this.cancelledTasks.add(e)}addTaskToList(e,t){e.list.push(t),e.sorted=!1}sortTaskList(e){if(e.sorted)return;const t=this.scrollGoingDown?1:-1;e.list.sort(((e,n)=>e.index!==n.index?t*(n.index-e.index):n.createOrder-e.createOrder)),e.sorted=!0}addDestroyTask(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()}executeFrame(e){this.verifyAnimationFrameOn("executeFrame");const t=this.createTasksP1,n=t.list,i=this.createTasksP2,o=i.list,r=this.destroyTasks,a=(new Date).getTime();let s=(new Date).getTime()-a;const l=e<=0,d=this.ctrlsService.getGridBodyCtrl();for(;l||s<e;){if(!d.getScrollFeature().scrollGridIfNeeded()){let e;if(n.length)this.sortTaskList(t),e=n.pop().task;else if(o.length)this.sortTaskList(i),e=o.pop().task;else{if(!r.length){this.cancelledTasks.clear();break}e=r.pop()}this.cancelledTasks.has(e)||e()}s=(new Date).getTime()-a}n.length||o.length||r.length?this.requestFrame():this.stopTicking()}stopTicking(){this.ticking=!1}flushAllFrames(){this.useAnimationFrame&&this.executeFrame(-1)}schedule(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){const e=this.executeFrame.bind(this,60);this.requestAnimationFrame(e)}requestAnimationFrame(e){const t=this.gos.getWindow();t.requestAnimationFrame?t.requestAnimationFrame(e):t.webkitRequestAnimationFrame?t.webkitRequestAnimationFrame(e):t.setTimeout(e,0)}isQueueEmpty(){return!this.ticking}debounce(e){let t=!1;return()=>{this.isOn()?t||(t=!0,this.addDestroyTask((()=>{t=!1,e()}))):window.setTimeout(e,0)}}};_e([xt("ctrlsService")],Rd.prototype,"ctrlsService",2),_e([xt("paginationProxy")],Rd.prototype,"paginationProxy",2),_e([Tt],Rd.prototype,"init",1),Rd=_e([At("animationFrameService")],Rd);var Ad=(e=>(e.EVERYTHING="group",e.FILTER="filter",e.SORT="sort",e.MAP="map",e.AGGREGATE="aggregate",e.FILTER_AGGREGATES="filter_aggregates",e.PIVOT="pivot",e.NOTHING="nothing",e))(Ad||{}),xd=class extends En{postConstruct(){this.isClientSideRowModel="clientSide"===this.rowModel.getType()}expandRows(e){if(!this.isClientSideRowModel)return;const t=new Set(e);this.rowModel.forEachNode((e=>{e.id&&t.has(e.id)&&(e.expanded=!0)})),this.onGroupExpandedOrCollapsed()}getExpandedRows(){const e=[];return this.rowModel.forEachNode((({expanded:t,id:n})=>{t&&n&&e.push(n)})),e}expandAll(e){this.isClientSideRowModel&&this.rowModel.expandOrCollapseAll(e)}setRowNodeExpanded(e,t,n,i){e&&(n&&e.parent&&-1!==e.parent.level&&this.setRowNodeExpanded(e.parent,t,n,i),e.setExpanded(t,void 0,i))}onGroupExpandedOrCollapsed(){this.isClientSideRowModel&&this.rowModel.refreshModel({step:"map"})}};_e([xt("rowModel")],xd.prototype,"rowModel",2),_e([Tt],xd.prototype,"postConstruct",1),xd=_e([At("expansionService")],xd);var Md=class extends En{postConstruct(){var e;this.activeMenuFactory=null!=(e=this.enterpriseMenuFactory)?e:this.filterMenuFactory}showColumnMenu(e){this.showColumnMenuCommon(this.activeMenuFactory,e,"columnMenu")}showFilterMenu(e){const t=this.enterpriseMenuFactory&&this.isLegacyMenuEnabled()?this.enterpriseMenuFactory:this.filterMenuFactory;this.showColumnMenuCommon(t,e,e.containerType,!0)}showHeaderContextMenu(e,t,n){this.activeMenuFactory.showMenuAfterContextMenuEvent(e,t,n)}getContextMenuPosition(e,t){const n=this.getRowCtrl(e),i=this.getCellGui(n,t);if(!i)return n?{x:0,y:n.getRowYPosition()}:{x:0,y:0};const o=i.getBoundingClientRect();return{x:o.x+o.width/2,y:o.y+o.height/2}}showContextMenu(e){var t,n,i;const{column:o,rowNode:r}=e;let{anchorToElement:a,value:s}=e;r&&o&&null==s&&(s=r.getValueFromValueService(o)),null==a&&(a=this.getContextMenuAnchorElement(r,o)),null==(i=this.contextMenuFactory)||i.onContextMenu(null!=(t=e.mouseEvent)?t:null,null!=(n=e.touchEvent)?n:null,null!=r?r:null,null!=o?o:null,s,a)}showColumnChooser(e){var t;null==(t=this.columnChooserFactory)||t.showColumnChooser(e)}hidePopupMenu(){var e;null==(e=this.contextMenuFactory)||e.hideActiveMenu(),this.activeMenuFactory.hideActiveMenu()}hideColumnChooser(){var e;null==(e=this.columnChooserFactory)||e.hideActiveColumnChooser()}isColumnMenuInHeaderEnabled(e){const{suppressMenu:t,suppressHeaderMenuButton:n}=e.getColDef();return!(null!=n?n:t)&&this.activeMenuFactory.isMenuEnabled(e)&&(this.isLegacyMenuEnabled()||!!this.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){return!e.getColDef().suppressHeaderFilterButton&&this.filterManager.isFilterAllowed(e)}isHeaderContextMenuEnabled(e){return!(null==e?void 0:e.getColDef().suppressHeaderContextMenu)&&"new"===this.getColumnMenuType()}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const e=!this.isSuppressMenuHide();return!(Qi()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!this.isLegacyMenuEnabled()&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){return this.filterManager.isFilterAllowed(e)&&!this.isLegacyMenuEnabled()&&!this.isFilterMenuInHeaderEnabled(e)&&!this.isFloatingFilterButtonDisplayed(e)}isColumnMenuAnchoringEnabled(){return!this.isLegacyMenuEnabled()}areAdditionalColumnMenuItemsEnabled(){return"new"===this.getColumnMenuType()}isLegacyMenuEnabled(){return"legacy"===this.getColumnMenuType()}isFloatingFilterButtonEnabled(e){var t;const n=e.getColDef(),i=null==(t=n.floatingFilterComponentParams)?void 0:t.suppressFilterButton;return null!=i&&st("As of v31.1, 'colDef.floatingFilterComponentParams.suppressFilterButton' is deprecated. Use 'colDef.suppressFloatingFilterButton' instead."),null==n.suppressFloatingFilterButton?!i:!n.suppressFloatingFilterButton}getColumnMenuType(){var e;return null!=(e=this.gos.get("columnMenu"))?e:"legacy"}isFloatingFilterButtonDisplayed(e){return!!e.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(e)}isSuppressMenuHide(){const e=this.gos.get("suppressMenuHide");return this.isLegacyMenuEnabled()?e:!this.gos.exists("suppressMenuHide")||e}showColumnMenuCommon(e,t,n,i){const{column:o,positionBy:r}=t;if("button"===r){const{buttonElement:r}=t;e.showMenuAfterButtonClick(o,r,n,i)}else if("mouse"===r){const{mouseEvent:r}=t;e.showMenuAfterMouseEvent(o,r,n,i)}else o&&(this.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(o,"auto"),this.animationFrameService.requestAnimationFrame((()=>{const t=this.ctrlsService.getHeaderRowContainerCtrl(o.getPinned()).getHeaderCtrlForColumn(o);e.showMenuAfterButtonClick(o,t.getAnchorElementForMenu(i),n,!0)})))}getRowCtrl(e){const{rowIndex:t,rowPinned:n}=e||{};if(null!=t)return this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:n})||void 0}getCellGui(e,t){if(!e||!t)return;const n=e.getCellCtrl(t);return(null==n?void 0:n.getGui())||void 0}getContextMenuAnchorElement(e,t){const n=this.ctrlsService.getGridBodyCtrl().getGridBodyElement(),i=this.getRowCtrl(e);if(!i)return n;const o=this.getCellGui(i,t);return o||(i.isFullWidth()?i.getFullWidthElement():n)}};_e([xt("filterMenuFactory")],Md.prototype,"filterMenuFactory",2),_e([xt("ctrlsService")],Md.prototype,"ctrlsService",2),_e([xt("animationFrameService")],Md.prototype,"animationFrameService",2),_e([xt("filterManager")],Md.prototype,"filterManager",2),_e([xt("rowRenderer")],Md.prototype,"rowRenderer",2),_e([Mt("columnChooserFactory")],Md.prototype,"columnChooserFactory",2),_e([Mt("contextMenuFactory")],Md.prototype,"contextMenuFactory",2),_e([Mt("enterpriseMenuFactory")],Md.prototype,"enterpriseMenuFactory",2),_e([Tt],Md.prototype,"postConstruct",1),Md=_e([At("menuService")],Md);var Nd=class extends En{postConstruct(){this.ctrlsService.whenReady((e=>{this.centerRowContainerCtrl=e.center}))}getPreferredWidthForColumn(e,t){const n=this.getHeaderCellForColumn(e);if(!n)return-1;const i=this.rowRenderer.getAllCellsForColumn(e);return t||i.push(n),this.addElementsToContainerAndGetWidth(i)}getPreferredWidthForColumnGroup(e){const t=this.getHeaderCellForColumn(e);return t?this.addElementsToContainerAndGetWidth([t]):-1}addElementsToContainerAndGetWidth(e){const t=document.createElement("form");t.style.position="fixed";const n=this.centerRowContainerCtrl.getContainerElement();e.forEach((e=>this.cloneItemIntoDummy(e,t))),n.appendChild(t);const i=t.offsetWidth;n.removeChild(t);return i+this.getAutoSizePadding()}getAutoSizePadding(){return this.gos.get("autoSizePadding")}getHeaderCellForColumn(e){let t=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach((n=>{const i=n.getHtmlElementForColumnHeader(e);null!=i&&(t=i)})),t}cloneItemIntoDummy(e,t){const n=e.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";const i=document.createElement("div"),o=i.classList;["ag-header-cell","ag-header-group-cell"].some((e=>n.classList.contains(e)))?(o.add("ag-header","ag-header-row"),i.style.position="static"):o.add("ag-row");let r=e.parentElement;for(;r;){if(["ag-header-row","ag-row"].some((e=>r.classList.contains(e)))){for(let e=0;e<r.classList.length;e++){const t=r.classList[e];"ag-row-position-absolute"!=t&&o.add(t)}break}r=r.parentElement}i.appendChild(n),t.appendChild(i)}};_e([xt("rowRenderer")],Nd.prototype,"rowRenderer",2),_e([xt("ctrlsService")],Nd.prototype,"ctrlsService",2),_e([xt("rowCssClassCalculator")],Nd.prototype,"rowCssClassCalculator",2),_e([Tt],Nd.prototype,"postConstruct",1),Nd=_e([At("autoWidthCalculator")],Nd);var Pd=class extends En{constructor(e,t){super(),this.createRowCon=e,this.destroyRowCtrls=t,this.stickyTopRowCtrls=[],this.stickyBottomRowCtrls=[],this.topContainerHeight=0,this.bottomContainerHeight=0}postConstruct(){this.isClientSide="clientSide"===this.rowModel.getType(),this.ctrlsService.whenReady((e=>{this.gridBodyCtrl=e.gridBodyCtrl}))}getStickyTopRowCtrls(){return this.stickyTopRowCtrls}getStickyBottomRowCtrls(){return this.stickyBottomRowCtrls}getLastPixelOfGroup(e){return this.isClientSide?this.getClientSideLastPixelOfGroup(e):this.getServerSideLastPixelOfGroup(e)}getFirstPixelOfGroup(e){return e.footer?e.sibling.rowTop+e.sibling.rowHeight-1:e.hasChildren()?e.rowTop-1:0}getServerSideLastPixelOfGroup(e){var t,n,i,o;if(this.isClientSide)throw new Error("This func should only be called in server side row model.");if(e.isExpandable()||e.footer){if(e.master)return e.detailNode.rowTop+e.detailNode.rowHeight;if(!e.sibling||1===Math.abs(e.sibling.rowIndex-e.rowIndex)){let r=null==(t=e.childStore)?void 0:t.getStoreBounds();return e.footer&&(r=null==(n=e.sibling.childStore)?void 0:n.getStoreBounds()),(null!=(i=null==r?void 0:r.heightPx)?i:0)+(null!=(o=null==r?void 0:r.topPx)?o:0)}return e.footer?e.rowTop+e.rowHeight:e.sibling.rowTop+e.sibling.rowHeight}return Number.MAX_SAFE_INTEGER}getClientSideLastPixelOfGroup(e){if(!this.isClientSide)throw new Error("This func should only be called in client side row model.");if(e.isExpandable()||e.footer){const t=e.footer&&0===e.rowIndex,n=!e.sibling||1===Math.abs(e.sibling.rowIndex-e.rowIndex);if(t||n){let t=e.footer?e.sibling:e;for(;t.isExpandable()&&t.expanded;)if(t.master)t=t.detailNode;else if(t.childrenAfterSort){if(0===t.childrenAfterSort.length)break;t=Kt(t.childrenAfterSort)}return t.rowTop+t.rowHeight}return e.footer?e.rowTop+e.rowHeight:e.sibling.rowTop+e.sibling.rowHeight}return Number.MAX_SAFE_INTEGER}updateStickyRows(e){const t="top"===e;let n=0;if(!this.canRowsBeSticky())return this.refreshNodesAndContainerHeight(e,new Set,n);const i=t?this.rowRenderer.getFirstVisibleVerticalPixel():this.rowRenderer.getLastVisibleVerticalPixel(),o=new Set,r=e=>{if(o.add(e),t){const t=this.getLastPixelOfGroup(e),o=i+n+e.rowHeight;e.stickyRowTop=t<o?n+(t-o):n}else{const t=this.getFirstPixelOfGroup(e),o=i-(n+e.rowHeight);e.stickyRowTop=t>o?n-(t-o):n}n=0,o.forEach((e=>{const t=e.stickyRowTop+e.rowHeight;n<t&&(n=t)}))},a=this.areFooterRowsStickySuppressed(),s=this.gos.get("suppressGroupRowsSticky"),l=e=>{if(!e.displayed)return!1;if(e.footer){if(!0===a)return!1;if("grand"===a&&-1===e.level)return!1;if("group"===a&&e.level>-1)return!1;return!o.has(e)}if(e.isExpandable()){if(!0===s)return!1;return!o.has(e)&&e.expanded}return!1};for(let e=0;e<100;e++){let e=i+n;t||(e=i-n);const o=this.rowModel.getRowIndexAtPixel(e),a=this.rowModel.getRow(o);if(null==a)break;const s=this.getStickyAncestors(a).find((e=>(t?e.rowIndex<o:e.rowIndex>o)&&l(e)));if(s){r(s);continue}if(!(t?a.rowTop<e:a.rowTop+a.rowHeight>e)||!l(a))break;r(a)}return t||o.forEach((e=>{e.stickyRowTop=n-(e.stickyRowTop+e.rowHeight)})),this.refreshNodesAndContainerHeight(e,o,n)}areFooterRowsStickySuppressed(){const e=this.gos.get("suppressStickyTotalRow");if(!0===e)return!0;const t=!!this.gos.get("groupIncludeFooter")||"group"===e,n=!!this.gos.get("groupIncludeTotalFooter")||"grand"===e;return!(!t||!n)||(n?"grand":!!t&&"group")}canRowsBeSticky(){const e=this.gos.isGroupRowsSticky(),t=this.areFooterRowsStickySuppressed(),n=this.gos.get("suppressGroupRowsSticky");return e&&(!t||!n)}getStickyAncestors(e){const t=[];let n=e.footer?e.sibling:e.parent;for(;n;)n.sibling&&t.push(n.sibling),t.push(n),n=n.parent;return t.reverse()}checkStickyRows(){const e=this.updateStickyRows("top"),t=this.updateStickyRows("bottom");return e||t}destroyStickyCtrls(){this.refreshNodesAndContainerHeight("top",new Set,0),this.refreshNodesAndContainerHeight("bottom",new Set,0)}refreshStickyNode(e){const t=new Set;if(this.stickyTopRowCtrls.some((t=>t.getRowNode()===e))){for(let n=0;n<this.stickyTopRowCtrls.length;n++){const i=this.stickyTopRowCtrls[n].getRowNode();i!==e&&t.add(i)}this.refreshNodesAndContainerHeight("top",t,this.topContainerHeight)&&this.checkStickyRows()}else{for(let n=0;n<this.stickyBottomRowCtrls.length;n++){const i=this.stickyBottomRowCtrls[n].getRowNode();i!==e&&t.add(i)}this.refreshNodesAndContainerHeight("bottom",t,this.bottomContainerHeight)&&this.checkStickyRows()}}refreshNodesAndContainerHeight(e,t,n){const i="top"===e,o=i?this.stickyTopRowCtrls:this.stickyBottomRowCtrls,r={},a=[];for(let e=0;e<o.length;e++){const n=o[e].getRowNode();!t.has(n)?(r[n.id]=o[e],n.sticky=!1):a.push(o[e])}const s=new Set;for(let e=0;e<a.length;e++)s.add(a[e].getRowNode());const l=[];t.forEach((e=>{s.has(e)||(e.sticky=!0,l.push(this.createRowCon(e,!1,!1)))}));let d=!!l.length||a.length!==o.length;i?this.topContainerHeight!==n&&(this.topContainerHeight=n,this.gridBodyCtrl.setStickyTopHeight(n),d=!0):this.bottomContainerHeight!==n&&(this.bottomContainerHeight=n,this.gridBodyCtrl.setStickyBottomHeight(n),d=!0),this.destroyRowCtrls(r,!1);const c=[...a,...l];return c.sort(((e,t)=>t.getRowNode().rowIndex-e.getRowNode().rowIndex)),i||c.reverse(),c.forEach((e=>e.setRowTop(e.getRowNode().stickyRowTop))),!!d&&(i?this.stickyTopRowCtrls=c:this.stickyBottomRowCtrls=c,!0)}};_e([xt("rowModel")],Pd.prototype,"rowModel",2),_e([xt("rowRenderer")],Pd.prototype,"rowRenderer",2),_e([xt("ctrlsService")],Pd.prototype,"ctrlsService",2),_e([Tt],Pd.prototype,"postConstruct",1);var Id=class extends En{constructor(){super(...arguments),this.destroyFuncsForColumnListeners=[],this.rowCtrlsByRowIndex={},this.zombieRowCtrls={},this.allRowCtrls=[],this.topRowCtrls=[],this.bottomRowCtrls=[],this.refreshInProgress=!1,this.dataFirstRenderedFired=!1,this.setupRangeSelectionListeners=()=>{const e=()=>{this.getAllCellCtrls().forEach((e=>e.onRangeSelectionChanged()))},t=()=>{this.getAllCellCtrls().forEach((e=>e.updateRangeBordersIfRangeCount()))},n=()=>{this.eventService.addEventListener(An.EVENT_RANGE_SELECTION_CHANGED,e),this.eventService.addEventListener(An.EVENT_COLUMN_MOVED,t),this.eventService.addEventListener(An.EVENT_COLUMN_PINNED,t),this.eventService.addEventListener(An.EVENT_COLUMN_VISIBLE,t)},i=()=>{this.eventService.removeEventListener(An.EVENT_RANGE_SELECTION_CHANGED,e),this.eventService.removeEventListener(An.EVENT_COLUMN_MOVED,t),this.eventService.removeEventListener(An.EVENT_COLUMN_PINNED,t),this.eventService.removeEventListener(An.EVENT_COLUMN_VISIBLE,t)};this.addDestroyFunc((()=>i())),this.addManagedPropertyListener("enableRangeSelection",(e=>{e.currentValue?n():i()}));this.gos.get("enableRangeSelection")&&n()}}postConstruct(){this.ctrlsService.whenReady((e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.initialise()}))}initialise(){if(this.addManagedListener(this.eventService,An.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,An.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_BODY_SCROLL,this.onBodyScroll.bind(this)),this.addManagedListener(this.eventService,An.EVENT_BODY_HEIGHT_CHANGED,this.redraw.bind(this)),this.addManagedPropertyListeners(["domLayout","embedFullWidthRows"],(()=>this.onDomLayoutChanged())),this.addManagedPropertyListeners(["suppressMaxRenderedRowRestriction","rowBuffer"],(()=>this.redraw())),this.addManagedPropertyListeners(["suppressCellFocus","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],(()=>this.redrawRows())),this.gos.isGroupRowsSticky()){const e=this.rowModel.getType();"clientSide"!==e&&"serverSide"!==e||(this.stickyRowFeature=this.createManagedBean(new Pd(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this))))}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gos.isDomLayout("print"),this.embedFullWidthRows=this.printLayout||this.gos.get("embedFullWidthRows"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){const e=this.getKeepDetailRowsCount(),t=null!=e?e:3;this.cachedRowCtrls=new Ld(t)}}getKeepDetailRowsCount(){return this.gos.get("keepDetailRowsCount")}getStickyTopRowCtrls(){return this.stickyRowFeature?this.stickyRowFeature.getStickyTopRowCtrls():[]}getStickyBottomRowCtrls(){return this.stickyRowFeature?this.stickyRowFeature.getStickyBottomRowCtrls():[]}updateAllRowCtrls(){const e=Je(this.rowCtrlsByRowIndex),t=Je(this.zombieRowCtrls),n=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];t.length>0||n.length>0?this.allRowCtrls=[...e,...t,...n]:this.allRowCtrls=e}onCellFocusChanged(e){this.getAllCellCtrls().forEach((t=>t.onCellFocused(e))),this.getFullWidthRowCtrls().forEach((t=>t.onFullWidthRowFocused(e)))}registerCellEventListeners(){this.addManagedListener(this.eventService,An.EVENT_CELL_FOCUSED,(e=>{this.onCellFocusChanged(e)})),this.addManagedListener(this.eventService,An.EVENT_CELL_FOCUS_CLEARED,(()=>{this.onCellFocusChanged()})),this.addManagedListener(this.eventService,An.EVENT_FLASH_CELLS,(e=>{this.getAllCellCtrls().forEach((t=>t.onFlashCells(e)))})),this.addManagedListener(this.eventService,An.EVENT_COLUMN_HOVER_CHANGED,(()=>{this.getAllCellCtrls().forEach((e=>e.onColumnHover()))})),this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_CHANGED,(()=>{this.getAllCellCtrls().forEach((e=>e.onDisplayedColumnsChanged()))})),this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(()=>{this.printLayout&&this.getAllCellCtrls().forEach((e=>e.onLeftChanged()))})),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,An.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){this.destroyFuncsForColumnListeners.forEach((e=>e())),this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners();this.columnModel.getAllGridColumns().forEach((e=>{const t=t=>{this.getAllCellCtrls().forEach((n=>{n.getColumn()===e&&t(n)}))},n=()=>{t((e=>e.onLeftChanged()))},i=()=>{t((e=>e.onWidthChanged()))},o=()=>{t((e=>e.onFirstRightPinnedChanged()))},r=()=>{t((e=>e.onLastLeftPinnedChanged()))},a=()=>{t((e=>e.onColDefChanged()))};e.addEventListener("leftChanged",n),e.addEventListener("widthChanged",i),e.addEventListener("firstRightPinnedChanged",o),e.addEventListener("lastLeftPinnedChanged",r),e.addEventListener("colDefChanged",a),this.destroyFuncsForColumnListeners.push((()=>{e.removeEventListener("leftChanged",n),e.removeEventListener("widthChanged",i),e.removeEventListener("firstRightPinnedChanged",o),e.removeEventListener("lastLeftPinnedChanged",r),e.removeEventListener("colDefChanged",a)}))}))}onDomLayoutChanged(){const e=this.gos.isDomLayout("print"),t=e||this.gos.get("embedFullWidthRows"),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;const e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)}onPageLoaded(e){const t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)}getAllCellsForColumn(e){const t=[];return this.getAllRowCtrls().forEach((n=>{const i=n.getCellElement(e);i&&t.push(i)})),t}refreshFloatingRowComps(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())}getTopRowCtrls(){return this.topRowCtrls}getCentreRowCtrls(){return this.allRowCtrls}getBottomRowCtrls(){return this.bottomRowCtrls}refreshFloatingRows(e,t){e.forEach((e=>{e.destroyFirstPass(),e.destroySecondPass()})),e.length=0,t&&t.forEach((t=>{const n=new wl(t,this.beans,!1,!1,this.printLayout);e.push(n)}))}onPinnedRowDataChanged(){this.redrawAfterModelUpdate({recycleRows:!0})}redrawRow(e,t=!1){var n;if(e.sticky)this.stickyRowFeature.refreshStickyNode(e);else{if(null==(n=this.cachedRowCtrls)?void 0:n.has(e))return void this.cachedRowCtrls.removeRow(e);{const t=t=>{const n=t[e.rowIndex];n&&n.getRowNode()===e&&(n.destroyFirstPass(),n.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){if(null!=e)return null==e||e.forEach((e=>this.redrawRow(e,!0))),void this.dispatchDisplayedRowsChanged(!1);this.redrawAfterModelUpdate()}getCellToRestoreFocusToAfterRefresh(e){const t=(null==e?void 0:e.suppressKeepFocus)?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==t)return null;const n=this.gos.getActiveDomElement(),i=this.gos.getDomData(n,vl.DOM_DATA_KEY_CELL_CTRL),o=this.gos.getDomData(n,wl.DOM_DATA_KEY_ROW_CTRL);return i||o?t:null}redrawAfterModelUpdate(e={}){this.getLockOnRefresh();const t=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);const n=!e.domLayoutChanged&&!!e.recycleRows,i=e.animate&&this.gos.isAnimateRows(),o=n?this.getRowsToRecycle():null;n||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature&&this.stickyRowFeature.checkStickyRows(),this.recycleRows(o,i),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),null!=t&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()}scrollToTopIfNewData(e){const t=e.newData||e.newPage,n=this.gos.get("suppressScrollOnNewData");t&&!n&&this.gridBodyCtrl.getScrollFeature().scrollToTop()}updateContainerHeights(){if(this.printLayout)return void this.rowContainerHeightService.setModelHeight(null);let e=this.paginationProxy.getCurrentPageHeight();0===e&&(e=1),this.rowContainerHeightService.setModelHeight(e)}getLockOnRefresh(){if(this.refreshInProgress)throw new Error("AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0}releaseLockOnRefresh(){this.refreshInProgress=!1}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(e){e&&(this.focusService.setRestoreFocusedCell(e),this.onCellFocusChanged(this.beans.gos.addGridCommonParams({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"mock"})))}stopEditing(e=!1){this.getAllRowCtrls().forEach((t=>{t.stopEditing(e)}))}getAllCellCtrls(){const e=[],t=this.getAllRowCtrls(),n=t.length;for(let i=0;i<n;i++){const n=t[i].getAllCellCtrls(),o=n.length;for(let t=0;t<o;t++)e.push(n[t])}return e}getAllRowCtrls(){const e=this.stickyRowFeature&&this.stickyRowFeature.getStickyTopRowCtrls()||[],t=this.stickyRowFeature&&this.stickyRowFeature.getStickyBottomRowCtrls()||[],n=[...this.topRowCtrls,...this.bottomRowCtrls,...e,...t];for(const e in this.rowCtrlsByRowIndex)n.push(this.rowCtrlsByRowIndex[e]);return n}addRenderedRowListener(e,t,n){const i=this.rowCtrlsByRowIndex[t];i&&i.addEventListener(e,n)}flashCells(e={}){this.getCellCtrls(e.rowNodes,e.columns).forEach((t=>t.flashCell(e)))}refreshCells(e={}){const t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach((e=>e.refreshOrDestroyCell(t))),e.rowNodes&&(this.getRowCtrls(e.rowNodes).forEach((e=>{if(!e.isFullWidth())return;e.refreshFullWidth()||this.redrawRow(e.getRowNode(),!0)})),this.dispatchDisplayedRowsChanged(!1))}getCellRendererInstances(e){var t;const n=this.getCellCtrls(e.rowNodes,e.columns).map((e=>e.getCellRenderer())).filter((e=>null!=e));if(null==(t=e.columns)?void 0:t.length)return n;const i=[],o=this.mapRowNodes(e.rowNodes);return this.getAllRowCtrls().forEach((e=>{if(o&&!this.isRowInMap(e.getRowNode(),o))return;if(!e.isFullWidth())return;const t=e.getFullWidthCellRenderers();for(let e=0;e<t.length;e++){const n=t[e];null!=n&&i.push(n)}})),[...i,...n]}getCellEditorInstances(e){const t=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach((e=>{const n=e.getCellEditor();n&&t.push(n)})),t}getEditingCells(){const e=[];return this.getAllCellCtrls().forEach((t=>{if(t.isEditing()){const n=t.getCellPosition();e.push(n)}})),e}mapRowNodes(e){if(!e)return;const t={top:{},bottom:{},normal:{}};return e.forEach((e=>{const n=e.id;switch(e.rowPinned){case"top":t.top[n]=e;break;case"bottom":t.bottom[n]=e;break;default:t.normal[n]=e}})),t}isRowInMap(e,t){const n=e.id;switch(e.rowPinned){case"top":return null!=t.top[n];case"bottom":return null!=t.bottom[n];default:return null!=t.normal[n]}}getRowCtrls(e){const t=this.mapRowNodes(e),n=this.getAllRowCtrls();return e&&t?n.filter((e=>{const n=e.getRowNode();return this.isRowInMap(n,t)})):n}getCellCtrls(e,t){let n;ze(t)&&(n={},t.forEach((e=>{const t=this.columnModel.getGridColumn(e);ze(t)&&(n[t.getId()]=!0)})));const i=[];return this.getRowCtrls(e).forEach((e=>{e.getAllCellCtrls().forEach((e=>{const t=e.getColumn().getId();n&&!n[t]||i.push(e)}))})),i}destroy(){this.removeAllRowComps(),super.destroy()}removeAllRowComps(){const e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e),this.stickyRowFeature&&this.stickyRowFeature.destroyStickyCtrls()}getRowsToRecycle(){const e=[];qe(this.rowCtrlsByRowIndex,((t,n)=>{null==n.getRowNode().id&&e.push(t)})),this.removeRowCtrls(e);const t={};return qe(this.rowCtrlsByRowIndex,((e,n)=>{const i=n.getRowNode();t[i.id]=n})),this.rowCtrlsByRowIndex={},t}removeRowCtrls(e,t=!1){e.forEach((e=>{const n=this.rowCtrlsByRowIndex[e];n&&(n.destroyFirstPass(t),n.destroySecondPass()),delete this.rowCtrlsByRowIndex[e]}))}onBodyScroll(e){"vertical"===e.direction&&this.redraw({afterScroll:!0})}redraw(e={}){const{afterScroll:t}=e;let n;this.stickyRowFeature&&qi()&&(n=this.getCellToRestoreFocusToAfterRefresh()||void 0);const i=this.firstRenderedRow,o=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let r=!1;this.stickyRowFeature&&(r=this.stickyRowFeature.checkStickyRows());const a=this.firstRenderedRow!==i||this.lastRenderedRow!==o;if((!t||r||a)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,t),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(t&&!r),null!=n)){const e=this.getCellToRestoreFocusToAfterRefresh();null!=n&&null==e&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(n))}}removeRowCompsNotToDraw(e,t){const n={};e.forEach((e=>n[e]=!0));const i=Object.keys(this.rowCtrlsByRowIndex).filter((e=>!n[e]));this.removeRowCtrls(i,t)}calculateIndexesToDraw(e){let t=so(this.firstRenderedRow,this.lastRenderedRow);const n=(e,n)=>{const i=n.getRowNode().rowIndex;null!=i&&(i<this.firstRenderedRow||i>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(n)&&t.push(i)};qe(this.rowCtrlsByRowIndex,n),qe(e,n),t.sort(((e,t)=>e-t));const i=[];for(let e=0;e<t.length;e++){const n=t[e],o=this.paginationProxy.getRow(n);o&&!o.sticky&&i.push(n)}return i}recycleRows(e,t=!1,n=!1){const i=this.calculateIndexesToDraw(e);if((this.printLayout||n)&&(t=!1),this.removeRowCompsNotToDraw(i,!t),i.forEach((i=>{this.createOrUpdateRowCtrl(i,e,t,n)})),e){n&&!this.gos.get("suppressAnimationFrame")&&!this.printLayout?this.beans.animationFrameService.addDestroyTask((()=>{this.destroyRowCtrls(e,t),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()})):this.destroyRowCtrls(e,t)}this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(e=!1){const t={type:An.EVENT_DISPLAYED_ROWS_CHANGED,afterScroll:e};this.eventService.dispatchEvent(t)}onDisplayedColumnsChanged(){const e=this.columnModel.isPinningLeft(),t=this.columnModel.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){const e=[];this.getFullWidthRowCtrls().forEach((t=>{const n=t.getRowNode().rowIndex;e.push(n.toString())})),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(e){const t=this.mapRowNodes(e);return this.getAllRowCtrls().filter((e=>{if(!e.isFullWidth())return!1;const n=e.getRowNode();return!(null!=t&&!this.isRowInMap(n,t))}))}createOrUpdateRowCtrl(e,t,n,i){let o,r=this.rowCtrlsByRowIndex[e];r||(o=this.paginationProxy.getRow(e),ze(o)&&ze(t)&&t[o.id]&&o.alreadyRendered&&(r=t[o.id],t[o.id]=null));if(!r){if(o||(o=this.paginationProxy.getRow(e)),!ze(o))return;r=this.createRowCon(o,n,i)}return o&&(o.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=r,r}destroyRowCtrls(e,t){const n=[];qe(e,((e,i)=>{i&&(this.cachedRowCtrls&&i.isCacheable()?this.cachedRowCtrls.addRow(i):(i.destroyFirstPass(!t),t?(this.zombieRowCtrls[i.getInstanceId()]=i,n.push((()=>{i.destroySecondPass(),delete this.zombieRowCtrls[i.getInstanceId()]}))):i.destroySecondPass()))})),t&&(n.push((()=>{this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()})),gt(n))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){return this.getRowBuffer()*this.gos.getRowHeightAsNumber()}workOutFirstAndLastRowsToRender(){let e,t;if(this.rowContainerHeightService.updateOffset(),this.paginationProxy.isRowsToRender())if(this.printLayout)this.environment.refreshRowHeightVariable(),e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{const n=this.getRowBufferInPixels(),i=this.ctrlsService.getGridBodyCtrl(),o=this.gos.get("suppressRowVirtualisation");let r,a,s=!1;do{const e=this.paginationProxy.getPixelOffset(),{pageFirstPixel:t,pageLastPixel:l}=this.paginationProxy.getCurrentPagePixelRange(),d=this.rowContainerHeightService.getDivStretchOffset(),c=i.getScrollFeature().getVScrollPosition(),g=c.top,u=c.bottom;o?(r=t+d,a=l+d):(r=Math.max(g+e-n,t)+d,a=Math.min(u+e+n,l)+d),this.firstVisibleVPixel=Math.max(g+e,t)+d,this.lastVisibleVPixel=Math.min(u+e,l)+d,s=this.ensureAllRowsInRangeHaveHeightsCalculated(r,a)}while(s);let l=this.paginationProxy.getRowIndexAtPixel(r),d=this.paginationProxy.getRowIndexAtPixel(a);const c=this.paginationProxy.getPageFirstRow(),g=this.paginationProxy.getPageLastRow();l<c&&(l=c),d>g&&(d=g),e=l,t=d}else e=0,t=-1;const n=this.gos.isDomLayout("normal"),i=this.gos.get("suppressMaxRenderedRowRestriction"),o=Math.max(this.getRowBuffer(),500);n&&!i&&t-e>o&&(t=e+o);const r=e!==this.firstRenderedRow,a=t!==this.lastRenderedRow;if(r||a){this.firstRenderedRow=e,this.lastRenderedRow=t;const n={type:An.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t};this.eventService.dispatchEvent(n)}}dispatchFirstDataRenderedEvent(){if(this.dataFirstRenderedFired)return;this.dataFirstRenderedFired=!0;const e={type:An.EVENT_FIRST_DATA_RENDERED,firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow};window.requestAnimationFrame((()=>{this.beans.eventService.dispatchEvent(e)}))}ensureAllRowsInRangeHaveHeightsCalculated(e,t){const n=this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1);return n&&this.updateContainerHeights(),n}getFirstVisibleVerticalPixel(){return this.firstVisibleVPixel}getLastVisibleVerticalPixel(){return this.lastVisibleVPixel}getFirstVirtualRenderedRow(){return this.firstRenderedRow}getLastVirtualRenderedRow(){return this.lastRenderedRow}doNotUnVirtualiseRow(e){const t=e.getRowNode(),n=this.focusService.isRowNodeFocused(t),i=e.isEditing(),o=t.detail;if(!(n||i||o))return false;return!!this.paginationProxy.isRowPresent(t)}createRowCon(e,t,n){const i=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(i)return i;const o=this.gos.get("suppressAnimationFrame"),r=n&&!o&&!this.printLayout;return new wl(e,this.beans,t,r,this.printLayout)}getRenderedNodes(){const e=this.rowCtrlsByRowIndex;return Object.values(e).map((e=>e.getRowNode()))}getRowByPosition(e){let t;const{rowIndex:n}=e;switch(e.rowPinned){case"top":t=this.topRowCtrls[n];break;case"bottom":t=this.bottomRowCtrls[n];break;default:t=this.rowCtrlsByRowIndex[n],t||(t=this.getStickyTopRowCtrls().find((e=>e.getRowNode().rowIndex===n))||null,t||(t=this.getStickyBottomRowCtrls().find((e=>e.getRowNode().rowIndex===n))||null))}return t}isRangeInRenderedViewport(e,t){if(null==e||null==t)return!1;const n=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!n}};_e([xt("animationFrameService")],Id.prototype,"animationFrameService",2),_e([xt("paginationProxy")],Id.prototype,"paginationProxy",2),_e([xt("columnModel")],Id.prototype,"columnModel",2),_e([xt("pinnedRowModel")],Id.prototype,"pinnedRowModel",2),_e([xt("rowModel")],Id.prototype,"rowModel",2),_e([xt("focusService")],Id.prototype,"focusService",2),_e([xt("beans")],Id.prototype,"beans",2),_e([xt("rowContainerHeightService")],Id.prototype,"rowContainerHeightService",2),_e([xt("ctrlsService")],Id.prototype,"ctrlsService",2),_e([Tt],Id.prototype,"postConstruct",1),Id=_e([At("rowRenderer")],Id);var Ld=class{constructor(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}addRow(e){if(this.entriesMap[e.getRowNode().id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){const e=this.entriesList[0];e.destroyFirstPass(),e.destroySecondPass(),this.removeFromCache(e)}}getRow(e){if(null==e||null==e.id)return null;const t=this.entriesMap[e.id];if(!t)return null;this.removeFromCache(t),t.setCached(!1);return t.getRowNode()!=e?null:t}has(e){return null!=this.entriesMap[e.id]}removeRow(e){const t=e.id,n=this.entriesMap[t];delete this.entriesMap[t],Zt(this.entriesList,n)}removeFromCache(e){const t=e.getRowNode().id;delete this.entriesMap[t],Zt(this.entriesList,e)}getEntries(){return this.entriesList}},Fd=class extends En{init(){this.setPinnedTopRowData(),this.setPinnedBottomRowData(),this.addManagedPropertyListener("pinnedTopRowData",(()=>this.setPinnedTopRowData())),this.addManagedPropertyListener("pinnedBottomRowData",(()=>this.setPinnedBottomRowData()))}isEmpty(e){return He("top"===e?this.pinnedTopRows:this.pinnedBottomRows)}isRowsToRender(e){return!this.isEmpty(e)}getRowAtPixel(e,t){const n="top"===t?this.pinnedTopRows:this.pinnedBottomRows;if(He(n))return 0;for(let t=0;t<n.length;t++){const i=n[t];if(i.rowTop+i.rowHeight-1>=e)return t}return n.length-1}setPinnedTopRowData(){const e=this.gos.get("pinnedTopRowData");this.pinnedTopRows=this.createNodesFromData(e,!0);const t={type:An.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(t)}setPinnedBottomRowData(){const e=this.gos.get("pinnedBottomRowData");this.pinnedBottomRows=this.createNodesFromData(e,!1);const t={type:An.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(t)}createNodesFromData(e,t){const n=[];if(e){let i=0;e.forEach(((e,o)=>{const r=new Ya(this.beans);r.data=e;const a=t?Ya.ID_PREFIX_TOP_PINNED:Ya.ID_PREFIX_BOTTOM_PINNED;r.id=a+o,r.rowPinned=t?"top":"bottom",r.setRowTop(i),r.setRowHeight(this.gos.getRowHeightForNode(r).height),r.setRowIndex(o),i+=r.rowHeight,n.push(r)}))}return n}getPinnedTopRowData(){return this.pinnedTopRows}getPinnedBottomRowData(){return this.pinnedBottomRows}getPinnedTopTotalHeight(){return this.getTotalHeight(this.pinnedTopRows)}getPinnedTopRowCount(){return this.pinnedTopRows?this.pinnedTopRows.length:0}getPinnedBottomRowCount(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0}getPinnedTopRow(e){return this.pinnedTopRows[e]}getPinnedBottomRow(e){return this.pinnedBottomRows[e]}forEachPinnedTopRow(e){He(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)}forEachPinnedBottomRow(e){He(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)}getPinnedBottomTotalHeight(){return this.getTotalHeight(this.pinnedBottomRows)}getTotalHeight(e){if(!e||0===e.length)return 0;const t=Kt(e);return t.rowTop+t.rowHeight}};_e([xt("beans")],Fd.prototype,"beans",2),_e([Tt],Fd.prototype,"init",1),Fd=_e([At("pinnedRowModel")],Fd);var _d=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}setInactive(){this.active=!1}isActive(){return this.active}depthFirstSearchChangedPath(e,t){if(e.children)for(let n=0;n<e.children.length;n++)this.depthFirstSearchChangedPath(e.children[n],t);t(e.rowNode)}depthFirstSearchEverything(e,t,n){if(e.childrenAfterGroup)for(let i=0;i<e.childrenAfterGroup.length;i++){const o=e.childrenAfterGroup[i];o.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[i],t,n):n&&t(o)}t(e)}forEachChangedNodeDepthFirst(e,t=!1,n=!1){this.active&&!n?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)}executeFromRootNode(e){e(this.pathRoot.rowNode)}createPathItems(e){let t=e,n=0;for(;!this.mapToItems[t.id];){const e={rowNode:t,children:null};this.mapToItems[t.id]=e,n++,t=t.parent}return n}populateColumnsMap(e,t){if(!this.keepingColumns||!t)return;let n=e;for(;n;)this.nodeIdsToColumns[n.id]||(this.nodeIdsToColumns[n.id]={}),t.forEach((e=>this.nodeIdsToColumns[n.id][e.getId()]=!0)),n=n.parent}linkPathItems(e,t){let n=e;for(let e=0;e<t;e++){const e=this.mapToItems[n.id],t=this.mapToItems[n.parent.id];t.children||(t.children=[]),t.children.push(e),n=n.parent}}addParentNode(e,t){if(!e||e.isRowPinned())return;const n=this.createPathItems(e);this.linkPathItems(e,n),this.populateColumnsMap(e,t)}canSkip(e){return this.active&&!this.mapToItems[e.id]}getValueColumnsForNode(e,t){if(!this.keepingColumns)return t;const n=this.nodeIdsToColumns[e.id];return t.filter((e=>n[e.getId()]))}getNotValueColumnsForNode(e,t){if(!this.keepingColumns)return null;const n=this.nodeIdsToColumns[e.id];return t.filter((e=>!n[e.getId()]))}},Od=class _RowNodeBlock extends En{constructor(e){super(),this.state=_RowNodeBlock.STATE_WAITING_TO_LOAD,this.version=0,this.id=e}getId(){return this.id}load(){this.state=_RowNodeBlock.STATE_LOADING,this.loadFromDatasource()}getVersion(){return this.version}setStateWaitingToLoad(){this.version++,this.state=_RowNodeBlock.STATE_WAITING_TO_LOAD}getState(){return this.state}pageLoadFailed(e){this.isRequestMostRecentAndLive(e)&&(this.state=_RowNodeBlock.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)}success(e,t){this.successCommon(e,t)}pageLoaded(e,t,n){this.successCommon(e,{rowData:t,rowCount:n})}isRequestMostRecentAndLive(e){const t=e===this.version,n=this.isAlive();return t&&n}successCommon(e,t){this.dispatchLoadCompleted();this.isRequestMostRecentAndLive(e)&&(this.state=_RowNodeBlock.STATE_LOADED,this.processServerResult(t))}dispatchLoadCompleted(e=!0){const t={type:_RowNodeBlock.EVENT_LOAD_COMPLETE,success:e,block:this};this.dispatchEvent(t)}};Od.EVENT_LOAD_COMPLETE="loadComplete",Od.STATE_WAITING_TO_LOAD="needsLoading",Od.STATE_LOADING="loading",Od.STATE_LOADED="loaded",Od.STATE_FAILED="failed";var kd=Od,Gd=class extends En{constructor(){super(...arguments),this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=this.getMaxConcurrentDatasourceRequests();const e=this.gos.get("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=Rr.debounce(this.performCheckBlocksToLoad.bind(this),e))}setBeans(e){this.logger=e.create("RowNodeBlockLoader")}getMaxConcurrentDatasourceRequests(){const e=this.gos.get("maxConcurrentDatasourceRequests");return null==e?2:e<=0?void 0:e}addBlock(e){this.blocks.push(e),e.addEventListener(kd.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){Rr.removeFromArray(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),this.dispatchEvent({type:Gd.BLOCK_LOADED_EVENT}),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:Gd.BLOCK_LOADER_FINISHED_EVENT})}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)return void this.logger.log("checkBlockToLoad: max loads exceeded");const e=this.getAvailableLoadingCount(),t=this.blocks.filter((e=>e.getState()===kd.STATE_WAITING_TO_LOAD)).slice(0,e);this.registerLoads(t.length),t.forEach((e=>e.load())),this.printCacheStatus()}getBlockState(){if(this.gos.isRowModelType("serverSide")){return this.rowModel.getBlockStates()}const e={};return this.blocks.forEach((t=>{const{id:n,state:i}=t.getBlockStateJson();e[n]=i})),e}printCacheStatus(){this.logger.isLogging()&&this.logger.log(`printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}isLoading(){return this.activeBlockLoadsCount>0}registerLoads(e){this.activeBlockLoadsCount+=e}getAvailableLoadingCount(){return void 0!==this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0}};Gd.BLOCK_LOADED_EVENT="blockLoaded",Gd.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",_e([xt("rowModel")],Gd.prototype,"rowModel",2),_e([Tt],Gd.prototype,"postConstruct",1),_e([Oe(0,Pt("loggerFactory"))],Gd.prototype,"setBeans",1),Gd=_e([At("rowNodeBlockLoader")],Gd);var zd=class extends En{constructor(){super(...arguments),this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=0,this.pixelOffset=0,this.masterRowCount=0}postConstruct(){this.active=this.gos.get("pagination"),this.pageSizeFromGridOptions=this.gos.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedListener(this.eventService,An.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this)),this.onModelUpdated()}ensureRowHeightsValid(e,t,n,i){const o=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return o&&this.calculatePages(),o}isPaginateChildRows(){return!(!this.gos.get("groupRemoveSingleChildren")&&!this.gos.get("groupRemoveLowestSingleChildren"))||this.gos.get("paginateChildRows")}onModelUpdated(e){this.calculatePages();const t={type:An.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,newPageSize:!!e&&e.newPageSize,keepRenderedRows:!!e&&e.keepRenderedRows};this.eventService.dispatchEvent(t)}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages();const e={type:An.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,newPageSize:!1,keepRenderedRows:!0};this.eventService.dispatchEvent(e)}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(e){if(!this.active||this.currentPage===e||"number"!=typeof this.currentPage)return;this.currentPage=e,this.calculatePages();const t={type:An.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!0,newPageSize:!1,keepRenderedRows:!1};this.eventService.dispatchEvent(t)}getPixelOffset(){return this.pixelOffset}getRow(e){return this.rowModel.getRow(e)}getRowNode(e){return this.rowModel.getRowNode(e)}getRowIndexAtPixel(e){return this.rowModel.getRowIndexAtPixel(e)}getCurrentPageHeight(){return Ve(this.topRowBounds)||Ve(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)}getCurrentPagePixelRange(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0}}isRowPresent(e){if(!this.rowModel.isRowPresent(e))return!1;return e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex}isEmpty(){return this.rowModel.isEmpty()}isRowsToRender(){return this.rowModel.isRowsToRender()}forEachNode(e){return this.rowModel.forEachNode(e)}forEachNodeOnPage(e){const t=this.getPageFirstRow(),n=this.getPageLastRow();for(let i=t;i<=n;i++){const t=this.getRow(i);t&&e(t)}}getType(){return this.rowModel.getType()}getRowBounds(e){const t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t}getPageFirstRow(){return this.topRowBounds?this.topRowBounds.rowIndex:-1}getPageLastRow(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1}getRowCount(){return this.rowModel.getRowCount()}getPageForIndex(e){return Math.floor(e/this.pageSize)}goToPageWithIndex(e){if(!this.active)return;const t=this.getPageForIndex(e);this.goToPage(t)}isRowInPage(e){if(!this.active)return!0;return this.getPageForIndex(e.rowIndex)===this.currentPage}isLastPageFound(){return this.rowModel.isLastRowIndexKnown()}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){const e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){return ze(this.pageSizeAutoCalculated)?this.pageSizeAutoCalculated:ze(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:ze(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:ze(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:this.defaultPageSize}unsetAutoCalculatedPageSize(){if(void 0===this.pageSizeAutoCalculated)return;const e=this.pageSizeAutoCalculated;if(this.pageSizeAutoCalculated=void 0,this.pageSize===e)return;this.calculatePages();const t={type:An.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,newPageSize:!0,keepRenderedRows:!1};this.eventService.dispatchEvent(t)}setPageSize(e,t){const n=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()}if(n!==this.pageSize){this.calculatePages();const e={type:An.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,newPageSize:!0,keepRenderedRows:!0};this.eventService.dispatchEvent(e)}}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(ze(this.topRowBounds)?this.topRowBounds.rowTop:0)}setPixelOffset(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:An.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!isFinite(this.currentPage)||isNaN(this.currentPage)||this.currentPage<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)return void this.setZeroRows();const e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid();const t=this.pageSize*this.currentPage;let n=this.pageSize*(this.currentPage+1)-1;if(n>e&&(n=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),n===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{const e=this.rowModel.getTopLevelRowDisplayedIndex(n+1);this.bottomDisplayedRowIndex=e-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){if(this.masterRowCount=this.rowModel.getRowCount(),0===this.masterRowCount)return void this.setZeroRows();const e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1}};_e([xt("rowModel")],zd.prototype,"rowModel",2),_e([Tt],zd.prototype,"postConstruct",1),zd=_e([At("paginationProxy")],zd);var Vd=class extends En{processAllCellClasses(e,t,n,i){this.processClassRules(void 0,e.cellClassRules,t,n,i),this.processStaticCellClasses(e,t,n)}processClassRules(e,t,n,i,o){if(null==t&&null==e)return;const r={},a={},s=(e,t)=>{e.split(" ").forEach((e=>{""!=e.trim()&&t(e)}))};if(t){const e=Object.keys(t);for(let i=0;i<e.length;i++){const o=e[i],l=t[o];let d;"string"==typeof l?d=this.expressionService.evaluate(l,n):"function"==typeof l&&(d=l(n)),s(o,(e=>{d?r[e]=!0:a[e]=!0}))}}e&&o&&Object.keys(e).forEach((e=>s(e,(e=>{r[e]||(a[e]=!0)})))),o&&Object.keys(a).forEach(o),Object.keys(r).forEach(i)}getStaticCellClasses(e,t){const{cellClass:n}=e;if(!n)return[];let i;if("function"==typeof n){i=n(t)}else i=n;return"string"==typeof i&&(i=[i]),i||[]}processStaticCellClasses(e,t,n){this.getStaticCellClasses(e,t).forEach((e=>{n(e)}))}};_e([xt("expressionService")],Vd.prototype,"expressionService",2),Vd=_e([At("stylingService")],Vd);var Hd=class extends ia{constructor(e){super(e,"ag-toggle-button")}setValue(e,t){return super.setValue(e,t),this.addOrRemoveCssClass("ag-selected",this.getValue()),this}},Bd=class extends na{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){const n=super.setValue(e,t);return this.eInput.value=e,n}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},Wd=class extends va{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct(),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this));const e=Ui();this.addManagedListener(this.eInput,"mousedown",(()=>{this.isDisabled()||e||this.eInput.focus()})),this.eInput.step="any"}onWheel(e){this.gos.getActiveDomElement()===this.eInput&&e.preventDefault()}setMin(e){var t;const n=e instanceof Date?null!=(t=po(null!=e?e:null,!1))?t:void 0:e;return this.min===n||(this.min=n,nr(this.eInput,"min",n)),this}setMax(e){var t;const n=e instanceof Date?null!=(t=po(null!=e?e:null,!1))?t:void 0:e;return this.max===n||(this.max=n,nr(this.eInput,"max",n)),this}setStep(e){return this.step===e||(this.step=e,nr(this.eInput,"step",e)),this}getDate(){var e;if(this.eInput.validity.valid)return null!=(e=fo(this.getValue()))?e:void 0}setDate(e,t){this.setValue(po(null!=e?e:null,!1),t)}},Ud=class extends na{constructor(e){super(e,"ag-range-field","range")}postConstruct(){super.postConstruct();const{min:e,max:t,step:n}=this.config;null!=e&&this.setMinValue(e),null!=t&&this.setMaxValue(t),this.setStep(n||1)}addInputListeners(){this.addManagedListener(this.eInput,"input",(e=>{const t=e.target.value;this.setValue(t)}))}setMinValue(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this}setMaxValue(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this}setStep(e){return this.eInput.setAttribute("step",e.toString()),this}setValue(e,t){null!=this.min&&(e=Math.max(parseFloat(e),this.min).toString()),null!=this.max&&(e=Math.min(parseFloat(e),this.max).toString());const n=super.setValue(e,t);return this.eInput.value=e,n}},jd=class extends _r{constructor(e,t){super('<div class="ag-rich-select-row" role="presentation"></div>'),this.params=e,this.wrapperEl=t}postConstruct(){this.addManagedListener(this.getGui(),"click",this.onClick.bind(this))}setState(e){let t="";this.params.valueFormatter&&(t=this.params.valueFormatter(e));this.populateWithRenderer(e,t)||this.populateWithoutRenderer(e,t),this.value=e}highlightString(e){const{parsedValue:t}=this;if(this.params.cellRenderer||!ze(t))return;let n=ze(e);if(n){const i=null==t?void 0:t.toLocaleLowerCase().indexOf(e.toLocaleLowerCase());if(i>=0){const n=i+e.length,o=On(t.slice(0,i),!0),r=On(t.slice(i,n),!0),a=On(t.slice(n));this.renderValueWithoutRenderer(`${o}<span class="ag-rich-select-row-text-highlight">${r}</span>${a}`)}else n=!1}n||this.renderValueWithoutRenderer(t)}updateHighlighted(e){var t;const n=this.getGui(),i=`ag-rich-select-row-${this.getCompId()}`;if(null==(t=n.parentElement)||t.setAttribute("id",i),e){Ci(this.getParentComponent().getAriaElement(),i),this.wrapperEl.setAttribute("data-active-option",i)}Pi(n.parentElement,e),this.addOrRemoveCssClass("ag-rich-select-row-selected",e)}populateWithoutRenderer(e,t){const n=this.gos.getDocument(),i=this.getGui(),o=n.createElement("span");o.style.overflow="hidden",o.style.textOverflow="ellipsis";const r=On(ze(t)?t:e,!0);this.parsedValue=ze(r)?r:null,i.appendChild(o),this.renderValueWithoutRenderer(r),this.setTooltip({newTooltipText:this.parsedValue,shouldDisplayTooltip:()=>o.scrollWidth>o.clientWidth})}renderValueWithoutRenderer(e){const t=this.getGui().querySelector("span");t&&(t.innerHTML=ze(e)?e:"&nbsp;")}populateWithRenderer(e,t){let n,i;return this.params.cellRenderer&&(i=this.userComponentFactory.getCellRendererDetails(this.params,{value:e,valueFormatted:t,setTooltip:(e,t)=>{this.setTooltip({newTooltipText:e,shouldDisplayTooltip:t})}})),i&&(n=i.newAgStackInstance()),n&&or(n,this.getGui()),!!n&&(n.then((e=>{this.addDestroyFunc((()=>{this.getContext().destroyBean(e)}))})),!0)}onClick(){const e=this.getParentComponent(),t={type:An.EVENT_FIELD_PICKER_VALUE_SELECTED,fromEnterKey:!1,value:this.value};null==e||e.dispatchEvent(t)}};_e([xt("userComponentFactory")],jd.prototype,"userComponentFactory",2),_e([Tt],jd.prototype,"postConstruct",1);var Kd=class _VirtualList extends Sd{constructor(e){super(_VirtualList.getTemplate((null==e?void 0:e.cssIdentifier)||"default")),this.renderedRows=new Map,this.rowHeight=20,this.pageSize=-1,this.isScrolling=!1,this.isHeightFromTheme=!0;const{cssIdentifier:t="default",ariaRole:n="listbox",listName:i}=e||{};this.cssIdentifier=t,this.ariaRole=n,this.listName=i}postConstruct(){this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e),focusInnerElement:e=>this.focusInnerElement(e),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e)}),this.setAriaProperties(),this.addManagedListener(this.eventService,An.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanged.bind(this))}onGridStylesChanged(){this.rowHeight=this.getItemHeight(),this.refresh()}setAriaProperties(){const e=this.localeService.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),t=this.eContainer;oi(t,this.ariaRole),di(t,e)}addResizeObserver(){const e=this.resizeObserverService.observeResize(this.getGui(),(()=>this.animationFrameService.requestAnimationFrame((()=>this.drawVirtualRows()))));this.addDestroyFunc(e)}focusInnerElement(e){this.focusRow(e?this.model.getRowCount()-1:0)}onFocusIn(e){const t=e.target;t.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=si(t)-1)}onFocusOut(e){this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null)}handleKeyDown(e){switch(e.key){case pr.UP:case pr.DOWN:this.navigate(e.key===pr.UP)&&e.preventDefault();break;case pr.PAGE_HOME:case pr.PAGE_END:case pr.PAGE_UP:case pr.PAGE_DOWN:null!==this.navigateToPage(e.key)&&e.preventDefault()}}onTabKeyDown(e){this.navigate(e.shiftKey)?e.preventDefault():(hn(e),this.forceFocusOutOfContainer(e.shiftKey))}navigate(e){if(null==this.lastFocusedRowIndex)return!1;const t=this.lastFocusedRowIndex+(e?-1:1);return!(t<0||t>=this.model.getRowCount())&&(this.focusRow(t),!0)}navigateToPage(e,t="focused"){let n=!1;"focused"===t&&(t=this.getLastFocusedRow(),n=!0);const i=this.model.getRowCount()-1;let o=-1;return e===pr.PAGE_HOME?o=0:e===pr.PAGE_END?o=i:e===pr.PAGE_DOWN?o=Math.min(t+this.pageSize,i):e===pr.PAGE_UP&&(o=Math.max(t-this.pageSize,0)),-1===o?null:(n?this.focusRow(o):this.ensureIndexVisible(o),o)}getLastFocusedRow(){return this.lastFocusedRowIndex}focusRow(e){this.isScrolling||(this.isScrolling=!0,this.ensureIndexVisible(e),this.animationFrameService.requestAnimationFrame((()=>{if(this.isScrolling=!1,!this.isAlive())return;const t=this.renderedRows.get(e);t&&t.eDiv.focus()})))}getComponentAt(e){const t=this.renderedRows.get(e);return t&&t.rowComponent}forEachRenderedRow(e){this.renderedRows.forEach(((t,n)=>e(t.rowComponent,n)))}static getTemplate(e){return`<div class="ag-virtual-list-viewport ag-${e}-virtual-list-viewport" role="presentation">\n <div class="ag-virtual-list-container ag-${e}-virtual-list-container" ref="eContainer"></div>\n </div>`}getItemHeight(){return this.isHeightFromTheme?this.environment.getListItemHeight():this.rowHeight}ensureIndexVisible(e,t=!0){const n=this.model.getRowCount();if("number"!=typeof e||e<0||e>=n)return console.warn("AG Grid: invalid row index for ensureIndexVisible: "+e),!1;const i=e*this.rowHeight,o=i+this.rowHeight,r=this.getGui(),a=r.scrollTop,s=r.offsetHeight,l=a+s,d=t?0:this.rowHeight,c=l<o-d;if(a>i+d)return r.scrollTop=i,!0;if(c){const e=o-s;return r.scrollTop=e,!0}return!1}setComponentCreator(e){this.componentCreator=e}setComponentUpdater(e){this.componentUpdater=e}getRowHeight(){return this.rowHeight}getScrollTop(){return this.getGui().scrollTop}setRowHeight(e){this.isHeightFromTheme=!1,this.rowHeight=e,this.refresh()}refresh(e){if(null==this.model||!this.isAlive())return;const t=this.model.getRowCount();this.eContainer.style.height=t*this.rowHeight+"px",Ct((()=>this.eContainer.clientHeight>=t*this.rowHeight),(()=>{this.isAlive()&&(this.canSoftRefresh(e)?this.drawVirtualRows(!0):(this.clearVirtualRows(),this.drawVirtualRows()))}))}canSoftRefresh(e){return!!(e&&this.renderedRows.size&&"function"==typeof this.model.areRowsEqual&&this.componentUpdater)}clearVirtualRows(){this.renderedRows.forEach(((e,t)=>this.removeRow(t)))}drawVirtualRows(e){if(!this.isAlive()||!this.model)return;const t=this.getGui(),n=t.scrollTop,i=n+t.offsetHeight,o=Math.floor(n/this.rowHeight),r=Math.floor(i/this.rowHeight);this.pageSize=Math.floor((i-n)/this.rowHeight),this.ensureRowsRendered(o,r,e)}ensureRowsRendered(e,t,n){this.renderedRows.forEach(((n,i)=>{(i<e||i>t)&&i!==this.lastFocusedRowIndex&&this.removeRow(i)})),n&&this.refreshRows();for(let n=e;n<=t;n++)this.renderedRows.has(n)||n<this.model.getRowCount()&&this.insertRow(n)}insertRow(e){const t=this.model.getRow(e),n=document.createElement("div");n.classList.add("ag-virtual-list-item",`ag-${this.cssIdentifier}-virtual-list-item`),oi(n,"tree"===this.ariaRole?"treeitem":"option"),bi(n,this.model.getRowCount()),Ei(n,e+1),n.setAttribute("tabindex","-1"),n.style.height=`${this.rowHeight}px`,n.style.top=this.rowHeight*e+"px";const i=this.componentCreator(t,n);i.addGuiEventListener("focusin",(()=>this.lastFocusedRowIndex=e)),n.appendChild(i.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",n):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",n):this.eContainer.appendChild(n),this.renderedRows.set(e,{rowComponent:i,eDiv:n,value:t})}removeRow(e){const t=this.renderedRows.get(e);this.eContainer.removeChild(t.eDiv),this.destroyBean(t.rowComponent),this.renderedRows.delete(e)}refreshRows(){const e=this.model.getRowCount();this.renderedRows.forEach(((t,n)=>{var i,o;if(n>=e)this.removeRow(n);else{const e=this.model.getRow(n);(null==(o=(i=this.model).areRowsEqual)?void 0:o.call(i,t.value,e))?this.componentUpdater(e,t.rowComponent):this.removeRow(n)}}))}addScrollListener(){this.addGuiEventListener("scroll",(()=>this.drawVirtualRows()),{passive:!0})}setModel(e){this.model=e}getAriaElement(){return this.eContainer}destroy(){this.isAlive()&&(this.clearVirtualRows(),super.destroy())}};_e([xt("resizeObserverService")],Kd.prototype,"resizeObserverService",2),_e([xt("animationFrameService")],Kd.prototype,"animationFrameService",2),_e([Or("eContainer")],Kd.prototype,"eContainer",2),_e([Tt],Kd.prototype,"postConstruct",1);var Yd=Kd,$d=class extends Xr{constructor(e){var t,n;super(Le(Ie({pickerAriaLabelKey:"ariaLabelRichSelectField",pickerAriaLabelValue:"Rich Select Field",pickerType:"ag-list",className:"ag-rich-select",pickerIcon:"smallDown",ariaRole:"combobox",template:null!=(t=null==e?void 0:e.template)?t:'\n <div class="ag-picker-field" role="presentation">\n <div ref="eLabel"></div>\n <div ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-rich-select-value ag-picker-collapsed">\n <div ref="eDisplayField" class="ag-picker-field-display"></div>\n <ag-input-text-field ref="eInput" class="ag-rich-select-field-input"></ag-input-text-field>\n <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n </div>\n </div>',modalPicker:!1},e),{maxPickerHeight:null!=(n=null==e?void 0:e.maxPickerHeight)?n:"calc(var(--ag-row-height) * 6.5)"})),this.searchString="",this.highlightedItem=-1,this.lastRowHovered=-1,this.searchStringCreator=null;const{cellRowHeight:i,value:o,valueList:r,searchStringCreator:a}=e||{};null!=i&&(this.cellRowHeight=i),void 0!==o&&(this.value=o),null!=r&&(this.values=r),a&&(this.searchStringCreator=a)}postConstruct(){super.postConstruct(),this.createLoadingElement(),this.createListComponent();const{allowTyping:e,placeholder:t}=this.config;e?(this.eInput.setAutoComplete(!1).setInputPlaceholder(t),this.eDisplayField.classList.add("ag-hidden")):this.eInput.setDisplayed(!1),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{searchDebounceDelay:n=300}=this.config;this.clearSearchString=vt(this.clearSearchString,n),this.renderSelectedValue(),e&&(this.eInput.onValueChange((e=>this.searchTextFromString(e))),this.addManagedListener(this.eWrapper,"focus",this.onWrapperFocus.bind(this))),this.addManagedListener(this.eWrapper,"focusout",this.onWrapperFocusOut.bind(this))}createLoadingElement(){const e=this.gos.getDocument(),t=this.localeService.getLocaleTextFunc(),n=e.createElement("div");n.classList.add("ag-loading-text"),n.innerText=t("loadingOoo","Loading..."),this.eLoading=n}createListComponent(){this.listComponent=this.createBean(new Yd({cssIdentifier:"rich-select"})),this.listComponent.setComponentCreator(this.createRowComponent.bind(this));this.listComponent.setComponentUpdater(((e,t)=>{})),this.listComponent.setParentComponent(this),this.addManagedListener(this.listComponent,An.EVENT_FIELD_PICKER_VALUE_SELECTED,(e=>{this.onListValueSelected(e.value,e.fromEnterKey)}));const{cellRowHeight:e}=this;e&&this.listComponent.setRowHeight(e);const t=this.listComponent.getGui(),n=this.listComponent.getAriaElement();this.addManagedListener(t,"mousemove",this.onPickerMouseMove.bind(this)),this.addManagedListener(t,"mousedown",(e=>e.preventDefault())),t.classList.add("ag-rich-select-list");const i=`ag-rich-select-list-${this.listComponent.getCompId()}`;n.setAttribute("id",i);di(n,this.localeService.getLocaleTextFunc()(this.config.pickerAriaLabelKey,this.config.pickerAriaLabelValue)),Li(this.eWrapper,n)}renderSelectedValue(){const{value:e,eDisplayField:t,config:n}=this,{allowTyping:i,initialInputValue:o}=this.config,r=this.config.valueFormatter?this.config.valueFormatter(e):e;if(i)return void this.eInput.setValue(null!=o?o:r);let a,s;if(n.cellRenderer&&(a=this.userComponentFactory.getCellRendererDetails(this.config,{value:e,valueFormatted:r})),a&&(s=a.newAgStackInstance()),s)ko(t),or(s,t),s.then((e=>{this.addDestroyFunc((()=>this.getContext().destroyBean(e)))}));else{if(ze(this.value))t.innerText=r,t.classList.remove("ag-display-as-placeholder");else{const{placeholder:e}=n;ze(e)?(t.innerHTML=`${On(e)}`,t.classList.add("ag-display-as-placeholder")):ko(t)}this.setTooltip({newTooltipText:null!=r?r:null,shouldDisplayTooltip:()=>this.eDisplayField.scrollWidth>this.eDisplayField.clientWidth})}}getCurrentValueIndex(){const{currentList:e,value:t}=this;if(null==t||!e)return-1;for(let n=0;n<e.length;n++)if(e[n]===t)return n;return-1}highlightFilterMatch(){var e;null==(e=this.listComponent)||e.forEachRenderedRow(((e,t)=>{e.highlightString(this.searchString)}))}highlightSelectedValue(e){var t;null==e&&(e=this.getCurrentValueIndex()),this.highlightedItem=e,null==(t=this.listComponent)||t.forEachRenderedRow(((t,n)=>{const i=-1!==e&&this.highlightedItem===n;t.updateHighlighted(i)}))}setRowHeight(e){e!==this.cellRowHeight&&(this.cellRowHeight=e),this.listComponent&&this.listComponent.setRowHeight(e)}createPickerComponent(){const{values:e}=this;return e&&this.setValueList({valueList:e}),this.listComponent}setSearchStringCreator(e){this.searchStringCreator=e}setValueList(e){const{valueList:t,refresh:n}=e;this.listComponent&&this.currentList!==t&&(this.currentList=t,this.listComponent.setModel({getRowCount:()=>t.length,getRow:e=>t[e],areRowsEqual:(e,t)=>e===t}),n&&(this.values?this.listComponent.refresh(!0):(this.values=t,this.isPickerDisplayed&&this.showCurrentValueInPicker())))}showPicker(){super.showPicker(),this.showCurrentValueInPicker(),this.displayOrHidePicker()}showCurrentValueInPicker(){var e,t;if(!this.listComponent)return;if(!this.currentList)return void(this.isPickerDisplayed&&this.eLoading&&this.listComponent.appendChild(this.eLoading));(null==(e=this.eLoading)?void 0:e.offsetParent)&&(null==(t=this.eLoading.parentElement)||t.removeChild(this.eLoading));const n=this.getCurrentValueIndex();-1!==n?(this.listComponent.refresh(),this.listComponent.ensureIndexVisible(n),this.listComponent.refresh(!0),this.highlightSelectedValue(n)):this.listComponent.refresh()}beforeHidePicker(){this.highlightedItem=-1,super.beforeHidePicker()}onWrapperFocus(){if(!this.eInput)return;const e=this.eInput.getFocusableElement();e.focus(),e.select()}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}buildSearchStringFromKeyboardEvent(e){let{key:t}=e;if(t===pr.BACKSPACE)this.searchString=this.searchString.slice(0,-1),t="";else if(!mr(e))return;e.preventDefault(),this.searchTextFromCharacter(t)}searchTextFromCharacter(e){this.searchString+=e,this.runSearch(),this.clearSearchString()}searchTextFromString(e){null==e&&(e=""),this.searchString=e,this.runSearch()}buildSearchStrings(e){const{valueFormatter:t=(e=>e)}=this.config;let n;return"number"==typeof e[0]||"string"==typeof e[0]?n=e.map((e=>t(e))):"object"==typeof e[0]&&this.searchStringCreator&&(n=this.searchStringCreator(e)),n}getSuggestionsAndFilteredValues(e,t){let n=[],i=[];if(!e.length)return{suggestions:n,filteredValues:i};const{searchType:o="fuzzy",filterList:r}=this.config;if("fuzzy"===o){const e=sr(this.searchString,t,!0);n=e.values;const o=e.indices;if(r&&o.length)for(let e=0;e<o.length;e++)i.push(this.values[o[e]])}else n=t.filter(((e,t)=>{const n=e.toLocaleLowerCase(),a=this.searchString.toLocaleLowerCase(),s="match"===o?n.startsWith(a):-1!==n.indexOf(a);return r&&s&&i.push(this.values[t]),s}));return{suggestions:n,filteredValues:i}}filterListModel(e){const{filterList:t}=this.config;t&&(this.setValueList({valueList:e,refresh:!0}),this.alignPickerToComponent())}runSearch(){var e,t;const{values:n}=this,i=this.buildSearchStrings(n);if(!i)return void this.highlightSelectedValue(-1);const{suggestions:o,filteredValues:r}=this.getSuggestionsAndFilteredValues(this.searchString,i),{filterList:a,highlightMatch:s,searchType:l="fuzzy"}=this.config,d=r.length,c=!(!a||""===this.searchString);if(this.filterListModel(c?r:n),o.length){const e=c?0:i.indexOf(o[0]);this.selectListItem(e)}else if(this.highlightSelectedValue(-1),!c||d)null==(e=this.listComponent)||e.ensureIndexVisible(0);else if(c){this.getAriaElement().removeAttribute("data-active-option");const e=null==(t=this.listComponent)?void 0:t.getAriaElement();e&&Ci(e,null)}s&&"fuzzy"!==l&&this.highlightFilterMatch(),this.displayOrHidePicker()}displayOrHidePicker(){var e;const t=null==(e=this.listComponent)?void 0:e.getGui(),n=!!this.currentList&&0===this.currentList.length;null==t||t.classList.toggle("ag-hidden",n)}clearSearchString(){this.searchString=""}selectListItem(e,t){if(!this.isPickerDisplayed||!this.currentList||!this.listComponent||e<0||e>=this.currentList.length)return;this.listComponent.ensureIndexVisible(e,!t)&&!t&&this.listComponent.refresh(!0),this.highlightSelectedValue(e)}setValue(e,t,n){const i=this.currentList?this.currentList.indexOf(e):-1;return-1===i?this:(this.value=e,n||this.selectListItem(i),this.renderSelectedValue(),super.setValue(e,t))}createRowComponent(e){const t=new jd(this.config,this.eWrapper);t.setParentComponent(this.listComponent),this.getContext().createBean(t),t.setState(e);const{highlightMatch:n,searchType:i="fuzzy"}=this.config;return n&&"fuzzy"!==i&&t.highlightString(this.searchString),t}getRowForMouseEvent(e){const{listComponent:t}=this;if(!t)return-1;const n=(null==t?void 0:t.getGui()).getBoundingClientRect(),i=t.getScrollTop(),o=e.clientY-n.top+i;return Math.floor(o/t.getRowHeight())}onPickerMouseMove(e){if(!this.listComponent)return;const t=this.getRowForMouseEvent(e);-1!==t&&t!=this.lastRowHovered&&(this.lastRowHovered=t,this.selectListItem(t,!0))}onNavigationKeyDown(e,t){e.preventDefault();const n=t===pr.DOWN;if(!this.isPickerDisplayed&&n)return void this.showPicker();const i=this.highlightedItem,o=-1===i?0:i+(n?1:-1);this.selectListItem(o)}onPageNavigation(e){var t;if(!this.isPickerDisplayed)return;const n=null==(t=this.listComponent)?void 0:t.navigateToPage(e,this.highlightedItem);null!=n&&this.animationFrameService.requestAnimationFrame((()=>{if(!this.isAlive())return null;this.highlightSelectedValue(n)}))}onEnterKeyDown(e){this.isPickerDisplayed&&(e.preventDefault(),this.currentList&&this.onListValueSelected(this.currentList[this.highlightedItem],!0))}onTabKeyDown(){this.isPickerDisplayed&&this.currentList&&this.setValue(this.currentList[this.highlightedItem],!1,!0)}onListValueSelected(e,t){this.setValue(e,!1,!0),this.dispatchPickerEvent(e,t),this.hidePicker()}dispatchPickerEvent(e,t){const n={type:An.EVENT_FIELD_PICKER_VALUE_SELECTED,fromEnterKey:t,value:e};this.dispatchEvent(n)}getFocusableElement(){const{allowTyping:e}=this.config;return e?this.eInput.getFocusableElement():super.getFocusableElement()}onKeyDown(e){const t=e.key,{allowTyping:n}=this.config;switch(t){case pr.LEFT:case pr.RIGHT:n||e.preventDefault();break;case pr.PAGE_HOME:case pr.PAGE_END:if(n){e.preventDefault();const n=this.eInput.getInputElement(),i=t===pr.PAGE_HOME?0:n.value.length;n.setSelectionRange(i,i);break}case pr.PAGE_UP:case pr.PAGE_DOWN:e.preventDefault(),this.onPageNavigation(t);break;case pr.DOWN:case pr.UP:this.onNavigationKeyDown(e,t);break;case pr.ESCAPE:this.isPickerDisplayed&&(Vo(this.listComponent.getGui())&&(e.preventDefault(),hn(e)),this.hidePicker());break;case pr.ENTER:this.onEnterKeyDown(e);break;case pr.TAB:this.onTabKeyDown();break;default:n||this.buildSearchStringFromKeyboardEvent(e)}}destroy(){this.listComponent&&(this.destroyBean(this.listComponent),this.listComponent=void 0),this.eLoading=void 0,super.destroy()}};_e([xt("userComponentFactory")],$d.prototype,"userComponentFactory",2),_e([xt("animationFrameService")],$d.prototype,"animationFrameService",2),_e([Or("eInput")],$d.prototype,"eInput",2);var Qd=class _AgSlider extends Qr{constructor(e){super(e,_AgSlider.TEMPLATE),this.labelAlignment="top"}init(){this.eSlider.addCssClass("ag-slider-field");const{minValue:e,maxValue:t,textFieldWidth:n,step:i,value:o,onValueChange:r}=this.config;null!=e&&this.setMinValue(e),null!=t&&this.setMaxValue(t),null!=n&&this.setTextFieldWidth(n),null!=i&&this.setStep(i),null!=o&&this.setValue(o),null!=r&&this.onValueChange(r)}onValueChange(e){const t=An.EVENT_FIELD_VALUE_CHANGED;return this.addManagedListener(this.eText,t,(()=>{const t=parseFloat(this.eText.getValue());this.eSlider.setValue(t.toString(),!0),e(t||0)})),this.addManagedListener(this.eSlider,t,(()=>{const t=this.eSlider.getValue();this.eText.setValue(t,!0),e(parseFloat(t))})),this}setSliderWidth(e){return this.eSlider.setWidth(e),this}setTextFieldWidth(e){return this.eText.setWidth(e),this}setMinValue(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this}setMaxValue(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this}getValue(){return this.eText.getValue()}setValue(e,t){return this.getValue()===e||(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),t||this.dispatchEvent({type:An.EVENT_FIELD_VALUE_CHANGED})),this}setStep(e){return this.eSlider.setStep(e),this.eText.setStep(e),this}};Qd.TEMPLATE='<div class="ag-slider">\n <label ref="eLabel"></label>\n <div class="ag-wrapper ag-slider-wrapper">\n <ag-input-range ref="eSlider"></ag-input-range>\n <ag-input-number-field ref="eText"></ag-input-number-field>\n </div>\n </div>',_e([Or("eLabel")],Qd.prototype,"eLabel",2),_e([Or("eSlider")],Qd.prototype,"eSlider",2),_e([Or("eText")],Qd.prototype,"eText",2),_e([Tt],Qd.prototype,"init",1);var qd=Qd,Xd=class _AgGroupComponent extends _r{constructor(e={}){super(_AgGroupComponent.getTemplate(e)),this.params=e,this.suppressEnabledCheckbox=!0,this.suppressToggleExpandOnEnableChange=!1;const{enabled:t,items:n,suppressEnabledCheckbox:i,expanded:o,suppressToggleExpandOnEnableChange:r,useToggle:a}=e;this.cssIdentifier=e.cssIdentifier||"default",this.enabled=null==t||t,this.items=n||[],this.useToggle=null!=a&&a,this.alignItems=e.alignItems||"center",this.expanded=null==o||o,null!=i&&(this.suppressEnabledCheckbox=i),null!=r&&(this.suppressToggleExpandOnEnableChange=r)}static getTemplate(e){const t=e.cssIdentifier||"default";return`\n <div class="ag-group ag-${t}-group" role="presentation">\n <div ref="eToolbar" class="ag-group-toolbar ag-${t}-group-toolbar">\n <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n </div>\n <div ref="eContainer" class="ag-group-container ag-group-container-${e.direction||"vertical"} ag-${t}-group-container"></div>\n </div>\n `}postConstruct(){if(this.setupTitleBar(),this.items.length){const e=this.items;this.items=[],this.addItems(e)}const e=this.localeService.getLocaleTextFunc();this.cbGroupEnabled.setLabel(e("enabled","Enabled")),this.enabled&&this.setEnabled(this.enabled,void 0,!0),this.setAlignItems(this.alignItems);const{onEnableChange:t,suppressOpenCloseIcons:n}=this.params;this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(null!=n&&n),this.refreshChildDisplay(),Do(this.eContainer,this.expanded),this.cbGroupEnabled.onValueChange((e=>{this.setEnabled(e,!0,this.suppressToggleExpandOnEnableChange),this.dispatchEnableChangeEvent(e)})),null!=t&&this.onEnableChange(t)}refreshChildDisplay(){var e;Do(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),null==(e=this.eTitleBar)||e.refreshOnExpand(this.expanded)}isExpanded(){return this.expanded}setAlignItems(e){this.alignItems!==e&&this.removeCssClass(`ag-group-item-alignment-${this.alignItems}`),this.alignItems=e;const t=`ag-group-item-alignment-${this.alignItems}`;return this.addCssClass(t),this}toggleGroupExpand(e){var t;let n=!1;if((null==(t=this.eTitleBar)?void 0:t.isSuppressCollapse())&&!this.useToggle)e=!0,n=!0;else if(e=null!=e?e:!this.expanded,this.expanded===e)return this;return this.expanded=e,this.refreshChildDisplay(),Do(this.eContainer,e),n||this.dispatchEvent({type:e?_AgGroupComponent.EVENT_EXPANDED:_AgGroupComponent.EVENT_COLLAPSED}),this}addItems(e){e.forEach((e=>this.addItem(e)))}prependItem(e){this.insertItem(e,!0)}addItem(e){this.insertItem(e,!1)}insertItem(e,t){const n=this.eContainer,i=e instanceof _r?e.getGui():e;i.classList.add("ag-group-item",`ag-${this.cssIdentifier}-group-item`),t?(n.insertAdjacentElement("afterbegin",i),this.items.unshift(i)):(n.appendChild(i),this.items.push(i))}hideItem(e,t){Do(this.items[t],!e)}getItemIndex(e){const t=e instanceof _r?e.getGui():e;return this.items.indexOf(t)}setTitle(e){var t;return null==(t=this.eTitleBar)||t.setTitle(e),this}addTitleBarWidget(e){var t;return null==(t=this.eTitleBar)||t.addWidget(e),this}addCssClassToTitleBar(e){var t;null==(t=this.eTitleBar)||t.addCssClass(e)}dispatchEnableChangeEvent(e){const t={type:_AgGroupComponent.EVENT_ENABLE_CHANGE,enabled:e};this.dispatchEvent(t)}setEnabled(e,t,n){var i;return this.enabled=e,this.refreshDisabledStyles(),n||this.toggleGroupExpand(e),t||(this.cbGroupEnabled.setValue(e),null==(i=this.eToggle)||i.setValue(e)),this}isEnabled(){return this.enabled}onEnableChange(e){return this.addManagedListener(this,_AgGroupComponent.EVENT_ENABLE_CHANGE,(t=>e(t.enabled))),this}hideEnabledCheckbox(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this}hideOpenCloseIcons(e){var t;return null==(t=this.eTitleBar)||t.hideOpenCloseIcons(e),this}refreshDisabledStyles(){var e;const t=!this.enabled;this.eContainer.classList.toggle("ag-disabled",t),null==(e=this.eTitleBar)||e.refreshDisabledStyles(this.suppressEnabledCheckbox&&t),this.eContainer.classList.toggle("ag-disabled-group-container",t)}setupTitleBar(){const e=this.useToggle?this.createToggleTitleBar():this.createDefaultTitleBar();this.eToolbar.insertAdjacentElement("beforebegin",e.getGui())}createDefaultTitleBar(){const e=this.createManagedBean(new tc(this.params));return this.eTitleBar=e,e.refreshOnExpand(this.expanded),this.addManagedListener(e,tc.EVENT_EXPAND_CHANGED,(e=>this.toggleGroupExpand(e.expanded))),e}createToggleTitleBar(){var e;const t=this.createManagedBean(new Hd({value:this.enabled,label:this.params.title,labelAlignment:"left",labelWidth:"flex",onValueChange:e=>{this.setEnabled(e,!0),this.dispatchEnableChangeEvent(e)}}));return t.addCssClass("ag-group-title-bar"),t.addCssClass(`ag-${null!=(e=this.params.cssIdentifier)?e:"default"}-group-title-bar ag-unselectable`),this.eToggle=t,this.toggleGroupExpand(this.enabled),t}};Xd.EVENT_EXPANDED="expanded",Xd.EVENT_COLLAPSED="collapsed",Xd.EVENT_ENABLE_CHANGE="enableChange",_e([Or("eToolbar")],Xd.prototype,"eToolbar",2),_e([Or("cbGroupEnabled")],Xd.prototype,"cbGroupEnabled",2),_e([Or("eContainer")],Xd.prototype,"eContainer",2),_e([Tt],Xd.prototype,"postConstruct",1);var Zd=Xd,Jd="ag-disabled-group-title-bar",ec=class _DefaultTitleBar extends _r{constructor(e={}){super(_DefaultTitleBar.getTemplate(e)),this.suppressOpenCloseIcons=!1;const{title:t,suppressOpenCloseIcons:n}=e;t&&t.length>0&&(this.title=t),null!=n&&(this.suppressOpenCloseIcons=n)}static getTemplate(e){var t;const n=null!=(t=e.cssIdentifier)?t:"default";return`\n <div class="ag-group-title-bar ag-${n}-group-title-bar ag-unselectable" role="button">\n <span class="ag-group-title-bar-icon ag-${n}-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>\n <span class="ag-group-title-bar-icon ag-${n}-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>\n <span ref="eTitle" class="ag-group-title ag-${n}-group-title"></span>\n </div>\n `}postConstruct(){this.setTitle(this.title),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract()}setupExpandContract(){this.eGroupClosedIcon.appendChild(gr("columnSelectClosed",this.gos,null)),this.eGroupOpenedIcon.appendChild(gr("columnSelectOpen",this.gos,null)),this.addManagedListener(this.getGui(),"click",(()=>this.dispatchExpandChanged())),this.addManagedListener(this.getGui(),"keydown",(e=>{switch(e.key){case pr.ENTER:case pr.SPACE:e.preventDefault(),this.dispatchExpandChanged();break;case pr.RIGHT:case pr.LEFT:e.preventDefault(),this.dispatchExpandChanged(e.key===pr.RIGHT)}}))}refreshOnExpand(e){this.refreshAriaStatus(e),this.refreshOpenCloseIcons(e)}refreshAriaStatus(e){this.suppressOpenCloseIcons||wi(this.getGui(),e)}refreshOpenCloseIcons(e){const t=!this.suppressOpenCloseIcons;Do(this.eGroupOpenedIcon,t&&e),Do(this.eGroupClosedIcon,t&&!e)}isSuppressCollapse(){return this.suppressOpenCloseIcons}dispatchExpandChanged(e){const t={type:_DefaultTitleBar.EVENT_EXPAND_CHANGED,expanded:e};this.dispatchEvent(t)}setTitle(e){const t=this.getGui(),n=!!e&&e.length>0;e=n?e:void 0,this.eTitle.textContent=null!=e?e:"",Do(t,n),e!==this.title&&(this.title=e);const i=t.classList.contains(Jd);return this.refreshDisabledStyles(i),this}addWidget(e){return this.getGui().appendChild(e),this}hideOpenCloseIcons(e){return this.suppressOpenCloseIcons=e,e&&this.dispatchExpandChanged(!0),this}refreshDisabledStyles(e){const t=this.getGui();e?(t.classList.add(Jd),t.removeAttribute("tabindex")):(t.classList.remove(Jd),"string"==typeof this.title?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex"))}};ec.EVENT_EXPAND_CHANGED="expandedChanged",_e([Or("eGroupOpenedIcon")],ec.prototype,"eGroupOpenedIcon",2),_e([Or("eGroupClosedIcon")],ec.prototype,"eGroupClosedIcon",2),_e([Or("eTitle")],ec.prototype,"eTitle",2),_e([Tt],ec.prototype,"postConstruct",1);var tc=ec,nc=class extends Sd{constructor(e=0,t){super('<div class="ag-menu-list" role="tree"></div>'),this.level=e,this.menuItems=[],this.params=null!=t?t:{column:null,node:null,value:null}}postConstruct(){this.initialiseTabGuard({onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.handleFocusIn(e),onFocusOut:e=>this.handleFocusOut(e)})}onTabKeyDown(e){const t=this.getParentComponent(),n=t&&t.getGui();n&&n.classList.contains("ag-focus-managed")||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)}handleKeyDown(e){switch(e.key){case pr.UP:case pr.RIGHT:case pr.DOWN:case pr.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case pr.ESCAPE:this.closeIfIsChild()&&hn(e)}}handleFocusIn(e){var t,n;const i=e.relatedTarget;(this.tabGuardCtrl.isTabGuard(i)||!this.getGui().contains(i)&&!(null==(n=null==(t=this.activeMenuItem)?void 0:t.getSubMenuGui())?void 0:n.contains(i)))&&(this.activeMenuItem?this.activeMenuItem.activate():this.activateFirstItem())}handleFocusOut(e){var t;const n=e.relatedTarget;!this.activeMenuItem||this.getGui().contains(n)||(null==(t=this.activeMenuItem.getSubMenuGui())?void 0:t.contains(n))||this.activeMenuItem.isSubMenuOpening()||this.activeMenuItem.deactivate()}clearActiveItem(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)}addMenuItems(e){null!=e&&xr.all(e.map((e=>"separator"===e?xr.resolve({eGui:this.createSeparator()}):"string"==typeof e?(console.warn(`AG Grid: unrecognised menu item ${e}`),xr.resolve({eGui:null})):this.addItem(e)))).then((e=>{e.forEach((e=>{(null==e?void 0:e.eGui)&&(this.appendChild(e.eGui),e.comp&&this.menuItems.push(e.comp))}))}))}addItem(e){const t=this.createManagedBean(new rc);return t.init({menuItemDef:e,isAnotherSubMenuOpen:()=>this.menuItems.some((e=>e.isSubMenuOpen())),level:this.level,contextParams:this.params}).then((()=>(t.setParentComponent(this),this.addManagedListener(t,rc.EVENT_CLOSE_MENU,(e=>{this.dispatchEvent(e)})),this.addManagedListener(t,rc.EVENT_MENU_ITEM_ACTIVATED,(e=>{this.activeMenuItem&&this.activeMenuItem!==e.menuItem&&this.activeMenuItem.deactivate(),this.activeMenuItem=e.menuItem})),{comp:t,eGui:t.getGui()})))}activateFirstItem(){const e=this.menuItems.filter((e=>!e.isDisabled()))[0];e&&e.activate()}createSeparator(){return Ho('\n <div class="ag-menu-separator" aria-hidden="true">\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n </div>')}handleNavKey(e){switch(e){case pr.UP:case pr.DOWN:const t=this.findNextItem(e===pr.UP);return void(t&&t!==this.activeMenuItem&&t.activate())}e===(this.gos.get("enableRtl")?pr.RIGHT:pr.LEFT)?this.closeIfIsChild():this.openChild()}closeIfIsChild(e){const t=this.getParentComponent();return!!(t&&t instanceof rc)&&(e&&e.preventDefault(),t.closeSubMenu(),t.getGui().focus(),!0)}openChild(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)}findNextItem(e){const t=this.menuItems.filter((e=>!e.isDisabled()));if(!t.length)return;if(!this.activeMenuItem)return e?Kt(t):t[0];let n;e&&t.reverse();let i=!1;for(let e=0;e<t.length;e++){const o=t[e];if(i){n=o;break}o===this.activeMenuItem&&(i=!0)}return i&&!n?t[0]:n||this.activeMenuItem}destroy(){this.clearActiveItem(),super.destroy()}};_e([xt("focusService")],nc.prototype,"focusService",2),_e([Tt],nc.prototype,"postConstruct",1);var ic=class extends Sd{constructor(e){super(),this.wrappedComponent=e,this.setTemplateFromElement(e.getGui())}postConstruct(){this.initialiseTabGuard({onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e)})}handleKeyDown(e){e.key===pr.ESCAPE&&this.closePanel()}onTabKeyDown(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())}closePanel(){const e=this.parentComponent;e.closeSubMenu(),setTimeout((()=>e.getGui().focus()),0)}};_e([Tt],ic.prototype,"postConstruct",1);var oc=class _AgMenuItemComponent extends En{constructor(){super(...arguments),this.isActive=!1,this.subMenuIsOpen=!1,this.subMenuIsOpening=!1,this.suppressRootStyles=!0,this.suppressAria=!0,this.suppressFocus=!0}init(e){var t,n;const{menuItemDef:i,isAnotherSubMenuOpen:o,level:r,childComponent:a,contextParams:s}=e;this.params=e.menuItemDef,this.level=r,this.isAnotherSubMenuOpen=o,this.childComponent=a,this.contextParams=s,this.cssClassPrefix=null!=(n=null==(t=this.params.menuItemParams)?void 0:t.cssClassPrefix)?n:"ag-menu-option";return this.userComponentFactory.getMenuItemCompDetails(this.params,Le(Ie({},i),{level:r,isAnotherSubMenuOpen:o,openSubMenu:e=>this.openSubMenu(e),closeSubMenu:()=>this.closeSubMenu(),closeMenu:e=>this.closeMenu(e),updateTooltip:(e,t)=>this.refreshTooltip(e,t),onItemActivated:()=>this.onItemActivated()})).newAgStackInstance().then((e=>{var t;this.menuItemComp=e;const n=null==(t=e.configureDefaults)?void 0:t.call(e);n&&this.configureDefaults(!0===n?void 0:n)}))}addListeners(e,t){(null==t?void 0:t.suppressClick)||this.addManagedListener(e,"click",(e=>this.onItemSelected(e))),(null==t?void 0:t.suppressKeyboardSelect)||this.addManagedListener(e,"keydown",(e=>{e.key!==pr.ENTER&&e.key!==pr.SPACE||(e.preventDefault(),this.onItemSelected(e))})),(null==t?void 0:t.suppressMouseDown)||this.addManagedListener(e,"mousedown",(e=>{e.stopPropagation(),e.preventDefault()})),(null==t?void 0:t.suppressMouseOver)||(this.addManagedListener(e,"mouseenter",(()=>this.onMouseEnter())),this.addManagedListener(e,"mouseleave",(()=>this.onMouseLeave())))}isDisabled(){return!!this.params.disabled}openSubMenu(e=!1){var t,n;if(this.closeSubMenu(),!this.params.subMenu)return;this.subMenuIsOpening=!0;const i=Ho('<div class="ag-menu" role="presentation"></div>');let o;this.eSubMenuGui=i;let r=()=>{this.subMenuIsOpening=!1};if(this.childComponent){const e=this.createBean(new ic(this.childComponent));e.setParentComponent(this);const t=e.getGui(),n="mouseenter",a=()=>this.cancelDeactivate();t.addEventListener(n,a),o=()=>t.removeEventListener(n,a),i.appendChild(t),this.childComponent.afterGuiAttached&&(r=()=>{this.childComponent.afterGuiAttached(),this.subMenuIsOpening=!1})}else if(this.params.subMenu){const t=this.createBean(new nc(this.level+1,this.contextParams));t.setParentComponent(this),t.addMenuItems(this.params.subMenu),i.appendChild(t.getGui()),this.addManagedListener(t,_AgMenuItemComponent.EVENT_CLOSE_MENU,(e=>this.dispatchEvent(e))),t.addGuiEventListener("mouseenter",(()=>this.cancelDeactivate())),o=()=>this.destroyBean(t),e&&(r=()=>{t.activateFirstItem(),this.subMenuIsOpening=!1})}const a=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:this.eGui,ePopup:i}),s=this.localeService.getLocaleTextFunc(),l=this.popupService.addPopup({modal:!0,eChild:i,positionCallback:a,anchorToElement:this.eGui,ariaLabel:s("ariaLabelSubMenu","SubMenu"),afterGuiAttached:r});this.subMenuIsOpen=!0,this.setAriaExpanded(!0),this.hideSubMenu=()=>{var e,t;l&&l.hideFunc(),this.subMenuIsOpen=!1,this.setAriaExpanded(!1),o(),null==(t=(e=this.menuItemComp).setExpanded)||t.call(e,!1),this.eSubMenuGui=void 0},null==(n=(t=this.menuItemComp).setExpanded)||n.call(t,!0)}setAriaExpanded(e){this.suppressAria||wi(this.eGui,e)}closeSubMenu(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,this.setAriaExpanded(!1))}isSubMenuOpen(){return this.subMenuIsOpen}isSubMenuOpening(){return this.subMenuIsOpening}activate(e){var t,n;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.suppressRootStyles||this.eGui.classList.add(`${this.cssClassPrefix}-active`),null==(n=(t=this.menuItemComp).setActive)||n.call(t,!0),this.suppressFocus||this.eGui.focus({preventScroll:!0}),e&&this.params.subMenu&&window.setTimeout((()=>{this.isAlive()&&this.isActive&&this.openSubMenu()}),300),this.onItemActivated())}deactivate(){var e,t;this.cancelDeactivate(),this.suppressRootStyles||this.eGui.classList.remove(`${this.cssClassPrefix}-active`),null==(t=(e=this.menuItemComp).setActive)||t.call(e,!1),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()}getGui(){return this.menuItemComp.getGui()}getParentComponent(){return this.parentComponent}setParentComponent(e){this.parentComponent=e}getSubMenuGui(){return this.eSubMenuGui}onItemSelected(e){var t,n;null==(n=(t=this.menuItemComp).select)||n.call(t),this.params.action?this.getFrameworkOverrides().wrapOutgoing((()=>this.params.action(this.gos.addGridCommonParams(Ie({},this.contextParams))))):this.openSubMenu(e&&"keydown"===e.type),this.params.subMenu&&!this.params.action||this.params.suppressCloseOnSelect||this.closeMenu(e)}closeMenu(e){const t={type:_AgMenuItemComponent.EVENT_CLOSE_MENU};e&&(e instanceof MouseEvent?t.mouseEvent=e:t.keyboardEvent=e),this.dispatchEvent(t)}onItemActivated(){const e={type:_AgMenuItemComponent.EVENT_MENU_ITEM_ACTIVATED,menuItem:this};this.dispatchEvent(e)}cancelActivate(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)}cancelDeactivate(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)}onMouseEnter(){this.cancelDeactivate(),this.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout((()=>this.activate(!0)),_AgMenuItemComponent.ACTIVATION_DELAY):this.activate(!0)}onMouseLeave(){this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout((()=>this.deactivate()),_AgMenuItemComponent.ACTIVATION_DELAY):this.deactivate()}configureDefaults(e){var t,n,i;if(!this.menuItemComp)return void setTimeout((()=>this.configureDefaults(e)));let o=this.menuItemComp.getGui();const r=null==(n=(t=this.menuItemComp).getRootElement)?void 0:n.call(t);r&&((null==e?void 0:e.suppressRootStyles)||o.classList.add("ag-menu-option-custom"),o=r),this.eGui=o,this.suppressRootStyles=!!(null==e?void 0:e.suppressRootStyles),this.suppressRootStyles||(o.classList.add(this.cssClassPrefix),null==(i=this.params.cssClasses)||i.forEach((e=>o.classList.add(e))),this.params.disabled&&o.classList.add(`${this.cssClassPrefix}-disabled`)),(null==e?void 0:e.suppressTooltip)||this.refreshTooltip(this.params.tooltip),this.suppressAria=!!(null==e?void 0:e.suppressAria),this.suppressAria||(oi(o,"treeitem"),mi(o,this.level+1),this.params.disabled&&vi(o,!0)),(null==e?void 0:e.suppressTabIndex)||o.setAttribute("tabindex","-1"),this.params.disabled||this.addListeners(o,e),this.suppressFocus=!!(null==e?void 0:e.suppressFocus)}refreshTooltip(e,t){this.tooltip=e,this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),e&&this.menuItemComp&&(this.tooltipFeature=this.createBean(new Ir({getGui:()=>this.getGui(),getTooltipValue:()=>this.tooltip,getLocation:()=>"menu",shouldDisplayTooltip:t})))}destroy(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),super.destroy()}};oc.EVENT_CLOSE_MENU="closeMenu",oc.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",oc.ACTIVATION_DELAY=80,_e([xt("popupService")],oc.prototype,"popupService",2),_e([xt("userComponentFactory")],oc.prototype,"userComponentFactory",2);var rc=oc,ac=class _AgPanel extends _r{constructor(e){super(_AgPanel.getTemplate(e)),this.config=e,this.closable=!0}static getTemplate(e){const t=e.cssIdentifier||"default";return`<div class="ag-panel ag-${t}-panel" tabindex="-1">\n <div ref="eTitleBar" class="ag-panel-title-bar ag-${t}-panel-title-bar ag-unselectable">\n <span ref="eTitle" class="ag-panel-title-bar-title ag-${t}-panel-title-bar-title"></span>\n <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-${t}-panel-title-bar-buttons"></div>\n </div>\n <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-${t}-panel-content-wrapper"></div>\n </div>`}postConstruct(){const{component:e,closable:t,hideTitleBar:n,title:i,minWidth:o=250,width:r,minHeight:a=250,height:s,centered:l,popup:d,x:c,y:g}=this.config;this.positionableFeature=new Kr(this.getGui(),{minWidth:o,width:r,minHeight:a,height:s,centered:l,x:c,y:g,popup:d,calculateTopBuffer:()=>this.positionableFeature.getHeight()-this.getBodyHeight()}),this.createManagedBean(this.positionableFeature);const u=this.getGui();e&&this.setBodyComponent(e),n?Do(this.eTitleBar,!1):(i&&this.setTitle(i),this.setClosable(null!=t?t:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(e=>{if(u.contains(e.relatedTarget)||u.contains(this.gos.getActiveDomElement())||this.eTitleBarButtons.contains(e.target))return void e.preventDefault();const t=this.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");t&&t.focus()})),d&&this.positionableFeature.isPositioned()||(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")}renderComponent(){const e=this.getGui();e.focus(),this.close=()=>{e.parentElement.removeChild(e),this.destroy()}}getHeight(){return this.positionableFeature.getHeight()}setHeight(e){this.positionableFeature.setHeight(e)}getWidth(){return this.positionableFeature.getWidth()}setWidth(e){this.positionableFeature.setWidth(e)}setClosable(e){if(e!==this.closable&&(this.closable=e),e){const e=this.closeButtonComp=new _r(_AgPanel.CLOSE_BTN_TEMPLATE);this.getContext().createBean(e);const t=e.getGui(),n=ur("close",this.gos);n.classList.add("ag-panel-title-bar-button-icon"),t.appendChild(n),this.addTitleBarButton(e),e.addManagedListener(t,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){const e=this.closeButtonComp.getGui();e.parentElement.removeChild(e),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}}setBodyComponent(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())}addTitleBarButton(e,t){const n=this.eTitleBarButtons,i=n.children,o=i.length;null==t&&(t=o),t=Math.max(0,Math.min(t,o)),e.addCssClass("ag-panel-title-bar-button");const r=e.getGui();0===t?n.insertAdjacentElement("afterbegin",r):t===o?n.insertAdjacentElement("beforeend",r):i[t-1].insertAdjacentElement("afterend",r),e.setParentComponent(this)}getBodyHeight(){return Mo(this.eContentWrapper)}getBodyWidth(){return No(this.eContentWrapper)}setTitle(e){this.eTitle.innerText=e}onBtClose(){this.close()}destroy(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));const e=this.getGui();e&&Vo(e)&&this.close(),super.destroy()}};ac.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',_e([Or("eContentWrapper")],ac.prototype,"eContentWrapper",2),_e([Or("eTitleBar")],ac.prototype,"eTitleBar",2),_e([Or("eTitleBarButtons")],ac.prototype,"eTitleBarButtons",2),_e([Or("eTitle")],ac.prototype,"eTitle",2),_e([Tt],ac.prototype,"postConstruct",1);var sc=ac;_e([xt("popupService")],class extends sc{constructor(e){super(Le(Ie({},e),{popup:!0})),this.isMaximizable=!1,this.isMaximized=!1,this.maximizeListeners=[],this.resizeListenerDestroy=null,this.lastPosition={x:0,y:0,width:0,height:0}}postConstruct(){const e=this.getGui(),{movable:t,resizable:n,maximizable:i}=this.config;this.addCssClass("ag-dialog"),super.postConstruct(),this.addManagedListener(e,"focusin",(t=>{this.popupService.bringPopupToFront(e)})),t&&this.setMovable(t),i&&this.setMaximizable(i),n&&this.setResizable(n)}renderComponent(){const e=this.getGui(),{alwaysOnTop:t,modal:n,title:i,afterGuiAttached:o}=this.config,r=this.localeService.getLocaleTextFunc(),a=this.popupService.addPopup({modal:n,eChild:e,closeOnEsc:!0,closedCallback:this.onClosed.bind(this),alwaysOnTop:t,ariaLabel:i||r("ariaLabelDialog","Dialog"),afterGuiAttached:o});a&&(this.close=a.hideFunc)}onClosed(e){var t,n;this.destroy(),null==(n=(t=this.config).closedCallback)||n.call(t,e)}toggleMaximize(){const e=this.positionableFeature.getPosition();if(this.isMaximized){const{x:e,y:t,width:n,height:i}=this.lastPosition;this.setWidth(n),this.setHeight(i),this.positionableFeature.offsetElement(e,t)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()}refreshMaximizeIcon(){Do(this.maximizeIcon,!this.isMaximized),Do(this.minimizeIcon,this.isMaximized)}clearMaximizebleListeners(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((e=>e())),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)}destroy(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),super.destroy()}setResizable(e){this.positionableFeature.setResizable(e)}setMovable(e){this.positionableFeature.setMovable(e,this.eTitleBar)}setMaximizable(e){if(!e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));const t=this.eTitleBar;if(!t||e===this.isMaximizable)return;const n=this.buildMaximizeAndMinimizeElements();this.refreshMaximizeIcon(),n.addManagedListener(n.getGui(),"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(n,0),this.maximizeListeners.push(this.addManagedListener(t,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",(()=>{this.isMaximized=!1,this.refreshMaximizeIcon()}))}buildMaximizeAndMinimizeElements(){const e=this.maximizeButtonComp=this.createBean(new _r('<div class="ag-dialog-button"></span>')),t=e.getGui();return this.maximizeIcon=ur("maximize",this.gos),t.appendChild(this.maximizeIcon),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),this.minimizeIcon=ur("minimize",this.gos),t.appendChild(this.minimizeIcon),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon"),e}}.prototype,"popupService",2);var lc=0,dc=class extends En{constructor(){super(...arguments),this.popupList=[]}postConstruct(){this.ctrlsService.whenReady((e=>{this.gridCtrl=e.gridCtrl})),this.addManagedListener(this.eventService,An.EVENT_GRID_STYLES_CHANGED,this.handleThemeChange.bind(this))}getPopupParent(){const e=this.gos.get("popupParent");return e||this.gridCtrl.getGui()}positionPopupForMenu(e){const{eventSource:t,ePopup:n}=e,i=this.getPopupIndex(n);if(-1!==i){this.popupList[i].alignedToElement=t}const o=t.getBoundingClientRect(),r=this.getParentRect(),a=this.keepXYWithinBounds(n,o.top-r.top,0),s=n.clientWidth>0?n.clientWidth:200;n.style.minWidth=`${s}px`;const l=r.right-r.left-s;let d;function c(){return o.right-r.left-2}function g(){return o.left-r.left-s}this.gos.get("enableRtl")?(d=g(),d<0&&(d=c(),this.setAlignedStyles(n,"left")),d>l&&(d=0,this.setAlignedStyles(n,"right"))):(d=c(),d>l&&(d=g(),this.setAlignedStyles(n,"right")),d<0&&(d=0,this.setAlignedStyles(n,"left"))),n.style.left=`${d}px`,n.style.top=`${a}px`}positionPopupUnderMouseEvent(e){const{ePopup:t,nudgeX:n,nudgeY:i,skipObserver:o}=e;this.positionPopup({ePopup:t,nudgeX:n,nudgeY:i,keepWithinBounds:!0,skipObserver:o,updatePosition:()=>this.calculatePointerAlign(e.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)})}calculatePointerAlign(e){const t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}positionPopupByComponent(e){const{ePopup:t,nudgeX:n,nudgeY:i,keepWithinBounds:o,eventSource:r,alignSide:a="left",position:s="over",column:l,rowNode:d,type:c}=e,g=r.getBoundingClientRect(),u=this.getParentRect(),h=this.getPopupIndex(t);if(-1!==h){this.popupList[h].alignedToElement=r}this.positionPopup({ePopup:t,nudgeX:n,nudgeY:i,keepWithinBounds:o,updatePosition:()=>{let n,o=g.left-u.left;if("right"===a&&(o-=t.offsetWidth-g.width),"over"===s)n=g.top-u.top,this.setAlignedStyles(t,"over");else{this.setAlignedStyles(t,"under");n="under"===this.shouldRenderUnderOrAbove(t,g,u,e.nudgeY||0)?g.top-u.top+g.height:g.top-t.offsetHeight-2*(i||0)-u.top}return{x:o,y:n}},postProcessCallback:()=>this.callPostProcessPopup(c,t,r,null,l,d)})}shouldRenderUnderOrAbove(e,t,n,i){const o=n.bottom-t.bottom,r=t.top-n.top,a=e.offsetHeight+i;return o>a?"under":r>a||r>o?"above":"under"}setAlignedStyles(e,t){const n=this.getPopupIndex(e);if(-1===n)return;const i=this.popupList[n],{alignedToElement:o}=i;if(!o)return;["right","left","over","above","under"].forEach((t=>{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}`))}callPostProcessPopup(e,t,n,i,o,r){const a=this.gos.getCallback("postProcessPopup");if(a){a({column:o,rowNode:r,ePopup:t,type:e,eventSource:n,mouseEvent:i})}}positionPopup(e){const{ePopup:t,keepWithinBounds:n,nudgeX:i,nudgeY:o,skipObserver:r,updatePosition:a}=e,s={width:0,height:0},l=(r=!1)=>{let{x:l,y:d}=a();r&&t.clientWidth===s.width&&t.clientHeight===s.height||(s.width=t.clientWidth,s.height=t.clientHeight,i&&(l+=i),o&&(d+=o),n&&(l=this.keepXYWithinBounds(t,l,1),d=this.keepXYWithinBounds(t,d,0)),t.style.left=`${l}px`,t.style.top=`${d}px`,e.postProcessCallback&&e.postProcessCallback())};if(l(),!r){const e=this.resizeObserverService.observeResize(t,(()=>l(!0)));setTimeout((()=>e()),dc.WAIT_FOR_POPUP_CONTENT_RESIZE)}}getActivePopups(){return this.popupList.map((e=>e.element))}getPopupList(){return this.popupList}getParentRect(){const e=this.gos.getDocument();let t=this.getPopupParent();return t===e.body?t=e.documentElement:"static"===getComputedStyle(t).position&&(t=t.offsetParent),Lo(t)}keepXYWithinBounds(e,t,n){const i=0===n,o=i?"clientHeight":"clientWidth",r=i?"top":"left",a=i?"offsetHeight":"offsetWidth",s=i?"scrollTop":"scrollLeft",l=this.gos.getDocument(),d=l.documentElement,c=this.getPopupParent(),g=c.getBoundingClientRect(),u=l.documentElement.getBoundingClientRect(),h=c===l.body,p=e[a];let m=h?(i?Po:Io)(d)+d[s]:c[o];h&&(m-=Math.abs(u[r]-g[r]));const v=m-p;return Math.min(Math.max(t,0),Math.abs(v))}addPopup(e){const t=this.gos.getDocument(),{eChild:n,ariaLabel:i,alwaysOnTop:o,positionCallback:r,anchorToElement:a}=e;if(!t)return console.warn("AG Grid: could not find the document, document is empty"),{hideFunc:()=>{}};const s=this.getPopupIndex(n);if(-1!==s){return{hideFunc:this.popupList[s].hideFunc}}this.initialisePopupPosition(n);const l=this.createPopupWrapper(n,i,!!o),d=this.addEventListenersToPopup(Le(Ie({},e),{wrapperEl:l}));return r&&r(),this.addPopupToPopupList(n,l,d,a),{hideFunc:d}}initialisePopupPosition(e){const t=this.getPopupParent().getBoundingClientRect();ze(e.style.top)||(e.style.top=-1*t.top+"px"),ze(e.style.left)||(e.style.left=-1*t.left+"px")}createPopupWrapper(e,t,n){const i=this.getPopupParent(),o=document.createElement("div"),{allThemes:r}=this.environment.getTheme();return r.length&&o.classList.add(...r),o.classList.add("ag-popup"),e.classList.add(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),e.hasAttribute("role")||oi(e,"dialog"),di(e,t),o.appendChild(e),i.appendChild(o),n?this.setAlwaysOnTop(e,!0):this.bringPopupToFront(e),o}handleThemeChange(){const{allThemes:e}=this.environment.getTheme();for(const t of this.popupList){for(const e of Array.from(t.wrapper.classList))e.startsWith("ag-theme-")&&t.wrapper.classList.remove(e);e.length&&t.wrapper.classList.add(...e)}}addEventListenersToPopup(e){const t=this.gos.getDocument(),n=this.getPopupParent(),{wrapperEl:i,eChild:o,closedCallback:r,afterGuiAttached:a,closeOnEsc:s,modal:l}=e;let d=!1;const c=e=>{if(!i.contains(this.gos.getActiveDomElement()))return;e.key!==pr.ESCAPE||pn(e)||h({keyboardEvent:e})},g=e=>h({mouseEvent:e}),u=e=>h({touchEvent:e}),h=(e={})=>{const{mouseEvent:a,touchEvent:s,keyboardEvent:l,forceHide:h}=e;(h||!this.isEventFromCurrentPopup({mouseEvent:a,touchEvent:s},o)&&!d)&&(d=!0,n.removeChild(i),t.removeEventListener("keydown",c),t.removeEventListener("mousedown",g),t.removeEventListener("touchstart",u),t.removeEventListener("contextmenu",g),this.eventService.removeEventListener(An.EVENT_DRAG_STARTED,g),r&&r(a||s||l),this.removePopupFromPopupList(o))};return a&&a({hidePopup:h}),window.setTimeout((()=>{s&&t.addEventListener("keydown",c),l&&(t.addEventListener("mousedown",g),this.eventService.addEventListener(An.EVENT_DRAG_STARTED,g),t.addEventListener("touchstart",u),t.addEventListener("contextmenu",g))}),0),h}addPopupToPopupList(e,t,n,i){this.popupList.push({element:e,wrapper:t,hideFunc:n,instanceId:lc++,isAnchored:!!i}),i&&this.setPopupPositionRelatedToElement(e,i)}getPopupIndex(e){return this.popupList.findIndex((t=>t.element===e))}setPopupPositionRelatedToElement(e,t){const n=this.getPopupIndex(e);if(-1===n)return;const i=this.popupList[n];if(i.stopAnchoringPromise&&i.stopAnchoringPromise.then((e=>e&&e())),i.stopAnchoringPromise=void 0,i.isAnchored=!1,!t)return;const o=this.keepPopupPositionedRelativeTo({element:t,ePopup:e,hidePopup:i.hideFunc});return i.stopAnchoringPromise=o,i.isAnchored=!0,o}removePopupFromPopupList(e){this.setAlignedStyles(e,null),this.setPopupPositionRelatedToElement(e,null),this.popupList=this.popupList.filter((t=>t.element!==e))}keepPopupPositionedRelativeTo(e){const t=this.getPopupParent(),n=t.getBoundingClientRect(),{element:i,ePopup:o}=e,r=i.getBoundingClientRect(),a=n.top-r.top,s=n.left-r.left;let l=a,d=s;const c=o.style.top,g=parseInt(c.substring(0,c.length-1),10),u=o.style.left,h=parseInt(u.substring(0,u.length-1),10);return new xr((n=>{this.getFrameworkOverrides().setInterval((()=>{const n=t.getBoundingClientRect(),r=i.getBoundingClientRect();if(0==r.top&&0==r.left&&0==r.height&&0==r.width)return void e.hidePopup();const c=n.top-r.top;if(c!=l){const e=this.keepXYWithinBounds(o,g+a-c,0);o.style.top=`${e}px`}l=c;const u=n.left-r.left;if(u!=d){const e=this.keepXYWithinBounds(o,h+s-u,1);o.style.left=`${e}px`}d=u}),200).then((e=>{n((()=>{null!=e&&window.clearInterval(e)}))}))}))}hasAnchoredPopup(){return this.popupList.some((e=>e.isAnchored))}isEventFromCurrentPopup(e,t){const{mouseEvent:n,touchEvent:i}=e,o=n||i;if(!o)return!1;const r=this.getPopupIndex(t);if(-1===r)return!1;for(let e=r;e<this.popupList.length;e++){if(fn(this.popupList[e].element,o))return!0}return this.isElementWithinCustomPopup(o.target)}isElementWithinCustomPopup(e){const t=this.gos.getDocument();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){const n=this.getWrapper(e);n&&(n.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(n))}bringPopupToFront(e){const t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),i=n.length,o=Array.prototype.slice.call(t.querySelectorAll(".ag-popup.ag-always-on-top")),r=o.length,a=this.getWrapper(e);if(!a||i<=1||!t.contains(e))return;const s=n.indexOf(a),l=a.querySelectorAll("div"),d=[];if(l.forEach((e=>{0!==e.scrollTop&&d.push([e,e.scrollTop])})),r){a.classList.contains("ag-always-on-top")?s!==i-1&&Kt(o).insertAdjacentElement("afterend",a):s!==i-r-1&&o[0].insertAdjacentElement("beforebegin",a)}else s!==i-1&&Kt(n).insertAdjacentElement("afterend",a);for(;d.length;){const e=d.pop();e[0].scrollTop=e[1]}}};dc.WAIT_FOR_POPUP_CONTENT_RESIZE=200,_e([xt("focusService")],dc.prototype,"focusService",2),_e([xt("ctrlsService")],dc.prototype,"ctrlsService",2),_e([xt("resizeObserverService")],dc.prototype,"resizeObserverService",2),_e([Tt],dc.prototype,"postConstruct",1),dc=_e([At("popupService")],dc);var cc=class extends _r{constructor(){super('\n <div class="ag-autocomplete-row" role="presentation">\n <div class="ag-autocomplete-row-label"></div>\n </div>'),this.hasHighlighting=!1}setState(e,t){this.value=e,this.render(),this.updateSelected(t)}updateSelected(e){this.addOrRemoveCssClass("ag-autocomplete-row-selected",e)}setSearchString(e){var t;let n=!1;if(ze(e)){const i=null==(t=this.value)?void 0:t.toLocaleLowerCase().indexOf(e.toLocaleLowerCase());if(i>=0){n=!0,this.hasHighlighting=!0;const t=i+e.length,o=On(this.value.slice(0,i)),r=On(this.value.slice(i,t)),a=On(this.value.slice(t));this.getGui().lastElementChild.innerHTML=`${o}<b>${r}</b>${a}`}}!n&&this.hasHighlighting&&(this.hasHighlighting=!1,this.render())}render(){var e;this.getGui().lastElementChild.innerHTML=null!=(e=On(this.value))?e:"&nbsp;"}},gc=class _AgAutocompleteList extends Ga{constructor(e){super(_AgAutocompleteList.TEMPLATE),this.params=e,this.searchString=""}destroy(){super.destroy()}init(){this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList=this.createManagedBean(new Yd({cssIdentifier:"autocomplete"})),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),this.virtualList.setModel({getRowCount:()=>this.autocompleteEntries.length,getRow:e=>this.autocompleteEntries[e]});const e=this.virtualList.getGui();this.addManagedListener(e,"click",(()=>this.params.onConfirmed())),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(e,"mousedown",(e=>e.preventDefault())),this.setSelectedValue(0)}onNavigationKeyDown(e,t){e.preventDefault();const n=this.autocompleteEntries.indexOf(this.selectedValue),i=t===pr.UP?n-1:n+1;this.checkSetSelectedValue(i)}setSearch(e){this.searchString=e,ze(e)?this.runSearch():(this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList.refresh(),this.checkSetSelectedValue(0)),this.updateSearchInList()}runContainsSearch(e,t){let n,i=!1;const o=e.toLocaleLowerCase(),r=t.filter((e=>{const t=e.toLocaleLowerCase().indexOf(o),r=0===t,a=t>=0;return a&&(!n||!i&&r||i===r&&e.length<n.length)&&(n=e,i=r),a}));return!n&&r.length&&(n=r[0]),{topMatch:n,allMatches:r}}runSearch(){var e,t;const{autocompleteEntries:n}=this.params,i=n.map((e=>{var t;return null!=(t=e.displayValue)?t:e.key}));let o,r;if(this.params.useFuzzySearch)o=sr(this.searchString,i,!0).values,r=o.length?o[0]:void 0;else{const e=this.runContainsSearch(this.searchString,i);o=e.allMatches,r=e.topMatch}let a=n.filter((({key:e,displayValue:t})=>o.includes(null!=t?t:e)));if(!a.length&&this.selectedValue&&(null==(t=null==(e=this.params)?void 0:e.forceLastSelection)?void 0:t.call(e,this.selectedValue,this.searchString))&&(a=[this.selectedValue]),this.autocompleteEntries=a,this.virtualList.refresh(),!r)return;const s=o.indexOf(r);this.checkSetSelectedValue(s)}updateSearchInList(){this.virtualList.forEachRenderedRow((e=>e.setSearchString(this.searchString)))}checkSetSelectedValue(e){e>=0&&e<this.autocompleteEntries.length&&this.setSelectedValue(e)}setSelectedValue(e){const t=this.autocompleteEntries[e];this.selectedValue!==t&&(this.selectedValue=t,this.virtualList.ensureIndexVisible(e),this.virtualList.forEachRenderedRow(((t,n)=>{t.updateSelected(e===n)})))}createRowComponent(e){var t;const n=new cc;return this.getContext().createBean(n),n.setState(null!=(t=e.displayValue)?t:e.key,e===this.selectedValue),n}onMouseMove(e){const t=this.virtualList.getGui().getBoundingClientRect(),n=this.virtualList.getScrollTop(),i=e.clientY-t.top+n,o=Math.floor(i/this.virtualList.getRowHeight());this.checkSetSelectedValue(o)}afterGuiAttached(){this.virtualList.refresh()}getSelectedValue(){var e;return this.autocompleteEntries.length&&null!=(e=this.selectedValue)?e:null}};gc.TEMPLATE='<div class="ag-autocomplete-list-popup">\n <div ref="eList" class="ag-autocomplete-list"></div>\n <div>',_e([Or("eList")],gc.prototype,"eList",2),_e([Tt],gc.prototype,"init",1);var uc=gc,hc=class _AgAutocomplete extends _r{constructor(){super('\n <div class="ag-autocomplete" role="presentation">\n <ag-input-text-field ref="eAutocompleteInput"></ag-input-text-field>\n </div>'),this.isListOpen=!1,this.lastPosition=0,this.valid=!0}postConstruct(){this.eAutocompleteInput.onValueChange((e=>this.onValueChanged(e))),this.eAutocompleteInput.getInputElement().setAttribute("autocomplete","off"),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.addGuiEventListener("click",this.updatePositionAndList.bind(this)),this.addDestroyFunc((()=>{this.destroyBean(this.autocompleteList)})),this.addGuiEventListener("focusout",(()=>this.onFocusOut()))}onValueChanged(e){const t=Ge(e);this.updateValue(t),this.updateAutocompleteList(t)}updateValue(e){this.updateLastPosition(),this.dispatchEvent({type:_AgAutocomplete.EVENT_VALUE_CHANGED,value:e}),this.validate(e)}updateAutocompleteList(e){var t,n,i,o;const r=null!=(n=null==(t=this.listGenerator)?void 0:t.call(this,e,this.lastPosition))?n:{enabled:!1};if(r.type&&r.type===(null==(i=this.autocompleteListParams)?void 0:i.type)||this.isListOpen&&this.closeList(),this.autocompleteListParams=r,null==(o=this.autocompleteListParams)?void 0:o.enabled){this.isListOpen||this.openList();const{searchString:e}=this.autocompleteListParams;this.autocompleteList.setSearch(null!=e?e:"")}else this.isListOpen&&this.closeList()}onKeyDown(e){const t=e.key;switch(this.updateLastPosition(),t){case pr.ENTER:this.onEnterKeyDown(e);break;case pr.TAB:this.onTabKeyDown(e);break;case pr.DOWN:case pr.UP:this.onUpDownKeyDown(e,t);break;case pr.LEFT:case pr.RIGHT:case pr.PAGE_HOME:case pr.PAGE_END:setTimeout((()=>{this.updatePositionAndList()}));break;case pr.ESCAPE:this.onEscapeKeyDown(e);break;case pr.SPACE:e.ctrlKey&&!this.isListOpen&&(e.preventDefault(),this.forceOpenList())}}confirmSelection(){var e;const t=null==(e=this.autocompleteList)?void 0:e.getSelectedValue();t&&(this.closeList(),this.dispatchEvent({type:_AgAutocomplete.EVENT_OPTION_SELECTED,value:this.getValue(),position:this.lastPosition,updateEntry:t,autocompleteType:this.autocompleteListParams.type}))}onTabKeyDown(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.confirmSelection())}onEnterKeyDown(e){e.preventDefault(),this.isListOpen?this.confirmSelection():this.onCompleted()}onUpDownKeyDown(e,t){var n;e.preventDefault(),this.isListOpen?null==(n=this.autocompleteList)||n.onNavigationKeyDown(e,t):this.forceOpenList()}onEscapeKeyDown(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.closeList(),this.setCaret(this.lastPosition,!0))}onFocusOut(){this.isListOpen&&this.closeList()}updatePositionAndList(){var e;this.updateLastPosition(),this.updateAutocompleteList(null!=(e=this.eAutocompleteInput.getValue())?e:null)}setCaret(e,t){const n=this.gos.getDocument(),i=this.gos.getActiveDomElement();!t||i&&i!==n.body||this.eAutocompleteInput.getFocusableElement().focus();const o=this.eAutocompleteInput.getInputElement();o.setSelectionRange(e,e),e===o.value.length&&(o.scrollLeft=o.scrollWidth)}forceOpenList(){this.onValueChanged(this.eAutocompleteInput.getValue())}updateLastPosition(){var e;this.lastPosition=null!=(e=this.eAutocompleteInput.getInputElement().selectionStart)?e:0}validate(e){var t;this.validator&&(this.validationMessage=this.validator(e),this.eAutocompleteInput.getInputElement().setCustomValidity(null!=(t=this.validationMessage)?t:""),this.valid=!this.validationMessage,this.dispatchEvent({type:_AgAutocomplete.EVENT_VALID_CHANGED,isValid:this.valid,validationMessage:this.validationMessage}))}openList(){this.isListOpen=!0,this.autocompleteList=this.createBean(new uc({autocompleteEntries:this.autocompleteListParams.entries,onConfirmed:()=>this.confirmSelection(),forceLastSelection:this.forceLastSelection}));const e=this.autocompleteList.getGui(),t={ePopup:e,type:"autocomplete",eventSource:this.getGui(),position:"under",alignSide:this.gos.get("enableRtl")?"right":"left",keepWithinBounds:!0},n=this.popupService.addPopup({eChild:e,anchorToElement:this.getGui(),positionCallback:()=>this.popupService.positionPopupByComponent(t),ariaLabel:this.listAriaLabel});this.hidePopup=n.hideFunc,this.autocompleteList.afterGuiAttached()}closeList(){this.isListOpen=!1,this.hidePopup(),this.destroyBean(this.autocompleteList),this.autocompleteList=null}onCompleted(){this.isListOpen&&this.closeList(),this.dispatchEvent({type:_AgAutocomplete.EVENT_VALUE_CONFIRMED,value:this.getValue(),isValid:this.isValid()})}getValue(){return Ge(this.eAutocompleteInput.getValue())}setInputPlaceholder(e){return this.eAutocompleteInput.setInputPlaceholder(e),this}setInputAriaLabel(e){return this.eAutocompleteInput.setInputAriaLabel(e),this}setListAriaLabel(e){return this.listAriaLabel=e,this}setListGenerator(e){return this.listGenerator=e,this}setValidator(e){return this.validator=e,this}isValid(){return this.valid}setValue(e){const{value:t,position:n,silent:i,updateListOnlyIfOpen:o,restoreFocus:r}=e;this.eAutocompleteInput.setValue(t,!0),this.setCaret(null!=n?n:this.lastPosition,r),i||this.updateValue(t),o&&!this.isListOpen||this.updateAutocompleteList(t)}setForceLastSelection(e){return this.forceLastSelection=e,this}setInputDisabled(e){return this.eAutocompleteInput.setDisabled(e),this}};hc.EVENT_VALUE_CHANGED="eventValueChanged",hc.EVENT_VALUE_CONFIRMED="eventValueConfirmed",hc.EVENT_OPTION_SELECTED="eventOptionSelected",hc.EVENT_VALID_CHANGED="eventValidChanged",_e([xt("popupService")],hc.prototype,"popupService",2),_e([Or("eAutocompleteInput")],hc.prototype,"eAutocompleteInput",2),_e([Tt],hc.prototype,"postConstruct",1);var pc=hc,mc=class _PillDragComp extends _r{constructor(e,t,n,i){super(),this.dragSourceDropTarget=e,this.ghost=t,this.horizontal=n,this.template=i}init(){var e;this.setTemplate(null!=(e=this.template)?e:_PillDragComp.TEMPLATE);const t=this.getGui();this.addElementClasses(t),this.addElementClasses(this.eDragHandle,"drag-handle"),this.addElementClasses(this.eText,"text"),this.addElementClasses(this.eButton,"button"),this.eDragHandle.appendChild(ur("columnDrag",this.gos)),this.eButton.appendChild(ur("cancel",this.gos)),this.setupComponents(),!this.ghost&&this.isDraggable()&&this.addDragSource(),this.setupAria(),this.setupTooltip(),this.activateTabIndex(),this.refreshDraggable()}isDraggable(){return!0}refreshDraggable(){this.eDragHandle.classList.toggle("ag-column-select-column-readonly",!this.isDraggable())}setupAria(){const e=this.localeService.getLocaleTextFunc(),t=[this.getAriaDisplayName()];this.addAdditionalAriaInstructions(t,e),di(this.getGui(),t.join(". "))}addAdditionalAriaInstructions(e,t){if(this.isRemovable()){const n=t("ariaDropZoneColumnComponentDescription","Press DELETE to remove");e.push(n)}}setupTooltip(){const e=()=>{const e=this.getTooltip();this.setTooltip({newTooltipText:e})};e(),this.addManagedListener(this.eventService,An.EVENT_NEW_COLUMNS_LOADED,e)}getDragSourceId(){}getDefaultIconName(){return qa.ICON_NOT_ALLOWED}addDragSource(){const{dragAndDropService:e,eDragHandle:t}=this,n=this.createGetDragItem(),i=this.getDefaultIconName(),o={type:this.getDragSourceType(),sourceId:this.getDragSourceId(),eElement:t,getDefaultIconName:()=>i,getDragItem:n,dragItemName:this.getDisplayName()};e.addDragSource(o,!0),this.addDestroyFunc((()=>e.removeDragSource(o)))}setupComponents(){this.setTextValue(),this.setupRemove(),this.ghost&&this.addCssClass("ag-column-drop-cell-ghost")}isRemovable(){return!0}refreshRemove(){Do(this.eButton,this.isRemovable())}setupRemove(){this.refreshRemove();const e={type:_PillDragComp.EVENT_COLUMN_REMOVE};this.addGuiEventListener("keydown",(e=>this.onKeyDown(e))),this.addManagedListener(this.eButton,"click",(t=>{this.dispatchEvent(e),t.stopPropagation()}));const t=new Pa(this.eButton);this.addManagedListener(t,Pa.EVENT_TAP,(()=>{this.dispatchEvent(e)})),this.addDestroyFunc(t.destroy.bind(t))}onKeyDown(e){e.key===pr.DELETE&&this.isRemovable()&&(e.preventDefault(),this.dispatchEvent({type:_PillDragComp.EVENT_COLUMN_REMOVE}))}getDisplayValue(){return this.getDisplayName()}setTextValue(){const e=On(this.getDisplayValue());this.eText.innerHTML=e}addElementClasses(e,t){t=t?`-${t}`:"";const n=this.horizontal?"horizontal":"vertical";e.classList.add(`ag-column-drop-cell${t}`,`ag-column-drop-${n}-cell${t}`)}destroy(){super.destroy(),this.dragSourceDropTarget=null}};mc.EVENT_COLUMN_REMOVE="columnRemove",mc.TEMPLATE='<span role="option">\n <span ref="eDragHandle" class="ag-drag-handle ag-column-drop-cell-drag-handle" role="presentation"></span>\n <span ref="eText" class="ag-column-drop-cell-text" aria-hidden="true"></span>\n <span ref="eButton" class="ag-column-drop-cell-button" role="presentation"></span>\n </span>',_e([xt("dragAndDropService")],mc.prototype,"dragAndDropService",2),_e([Or("eText")],mc.prototype,"eText",2),_e([Or("eDragHandle")],mc.prototype,"eDragHandle",2),_e([Or("eButton")],mc.prototype,"eButton",2),_e([Tt],mc.prototype,"init",1);var vc=mc,fc=class _PillDropZonePanel extends _r{constructor(e){super('<div class="ag-unselectable" role="presentation"></div>'),this.horizontal=e,this.state=_PillDropZonePanel.STATE_NOT_DRAGGING,this.guiDestroyFunctions=[],this.childPillComponents=[],this.resizeEnabled=!1,this.addElementClasses(this.getGui()),this.ePillDropList=document.createElement("div"),this.addElementClasses(this.ePillDropList,"list"),oi(this.ePillDropList,"listbox")}isHorizontal(){return this.horizontal}toggleResizable(e){this.positionableFeature.setResizable(!!e&&{bottom:!0}),this.resizeEnabled=e}isSourceEventFromTarget(e){const{dropZoneTarget:t,dragSource:n}=e;return t.contains(n.eElement)}destroy(){this.destroyGui(),super.destroy()}destroyGui(){this.guiDestroyFunctions.forEach((e=>e())),this.guiDestroyFunctions.length=0,this.childPillComponents.length=0,ko(this.getGui()),ko(this.ePillDropList)}init(e){this.params=null!=e?e:{},this.createManagedBean(new Wr(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.setupDropTarget(),this.positionableFeature=new Kr(this.getGui(),{minHeight:100}),this.createManagedBean(this.positionableFeature),this.refreshGui(),di(this.ePillDropList,this.getAriaLabel())}handleKeyDown(e){const t=!this.horizontal;let n=e.key===pr.DOWN,i=e.key===pr.UP;if(!t){const t=this.gos.get("enableRtl");n=!t&&e.key===pr.RIGHT||t&&e.key===pr.LEFT,i=!t&&e.key===pr.LEFT||t&&e.key===pr.RIGHT}if(!n&&!i)return;const o=this.focusService.findNextFocusableElement(this.getFocusableElement(),!1,i);o&&(e.preventDefault(),o.focus())}addElementClasses(e,t){t=t?`-${t}`:"";const n=this.horizontal?"horizontal":"vertical";e.classList.add(`ag-column-drop${t}`,`ag-column-drop-${n}${t}`)}setupDropTarget(){this.dropTarget={getContainer:this.getGui.bind(this),getIconName:this.getIconName.bind(this),onDragging:this.onDragging.bind(this),onDragEnter:this.onDragEnter.bind(this),onDragLeave:this.onDragLeave.bind(this),onDragStop:this.onDragStop.bind(this),isInterestedIn:this.isInterestedIn.bind(this)},this.dragAndDropService.addDropTarget(this.dropTarget)}minimumAllowedNewInsertIndex(){return 0}checkInsertIndex(e){const t=this.getNewInsertIndex(e);if(t<0)return!1;const n=this.minimumAllowedNewInsertIndex(),i=Math.max(n,t),o=i!==this.insertIndex;return o&&(this.insertIndex=i),o}getNewInsertIndex(e){const t=e.event,n=this.horizontal?t.clientX:t.clientY,i=this.childPillComponents.map((e=>e.getGui().getBoundingClientRect())),o=i.findIndex((e=>this.horizontal?e.right>n&&e.left<n:e.top<n&&e.bottom>n));if(-1===o){const e=this.gos.get("enableRtl");if(i.every((e=>n>(this.horizontal?e.right:e.bottom))))return e&&this.horizontal?0:this.childPillComponents.length;return i.every((e=>n<(this.horizontal?e.left:e.top)))?e&&this.horizontal?this.childPillComponents.length:0:this.insertIndex}return this.insertIndex<=o?o+1:o}checkDragStartedBySelf(e){this.state===_PillDropZonePanel.STATE_NOT_DRAGGING&&(this.state=_PillDropZonePanel.STATE_REARRANGE_ITEMS,this.potentialDndItems=this.getItems(e.dragSource.getDragItem()),this.refreshGui(),this.checkInsertIndex(e),this.refreshGui())}onDragging(e){this.checkDragStartedBySelf(e),this.checkInsertIndex(e)&&this.refreshGui()}handleDragEnterEnd(e){}onDragEnter(e){const t=this.getItems(e.dragSource.getDragItem());this.state=_PillDropZonePanel.STATE_NEW_ITEMS_IN;const n=t.filter((t=>this.isItemDroppable(t,e))),i=n.every((e=>-1!==this.childPillComponents.map((e=>e.getItem())).indexOf(e)));0!==n.length&&(this.potentialDndItems=n,i?this.state=_PillDropZonePanel.STATE_NOT_DRAGGING:(this.handleDragEnterEnd(e),this.checkInsertIndex(e),this.refreshGui()))}isPotentialDndItems(){return jt(this.potentialDndItems)}handleDragLeaveEnd(e){}onDragLeave(e){if(this.state===_PillDropZonePanel.STATE_REARRANGE_ITEMS){const t=this.getItems(e.dragSource.getDragItem());this.removeItems(t)}this.isPotentialDndItems()&&(this.handleDragLeaveEnd(e),this.potentialDndItems=[],this.refreshGui()),this.state=_PillDropZonePanel.STATE_NOT_DRAGGING}refreshOnDragStop(){return!0}onDragStop(){if(this.isPotentialDndItems()){let e=!1;this.state===_PillDropZonePanel.STATE_NEW_ITEMS_IN?(this.addItems(this.potentialDndItems),e=!0):e=this.rearrangeItems(this.potentialDndItems),this.potentialDndItems=[],!this.refreshOnDragStop()&&e||this.refreshGui()}this.state=_PillDropZonePanel.STATE_NOT_DRAGGING}removeItems(e){const t=this.getExistingItems().filter((t=>!rn(e,t)));this.updateItems(t)}addItems(e){if(!e)return;const t=this.getExistingItems().slice(),n=e.filter((e=>t.indexOf(e)<0));nn(t,n,this.insertIndex),this.updateItems(t)}addItem(e){this.insertIndex=this.getExistingItems().length,this.addItems([e]),this.refreshGui()}rearrangeItems(e){const t=this.getNonGhostItems().slice();return nn(t,e,this.insertIndex),!Yt(t,this.getExistingItems())&&(this.updateItems(t),!0)}refreshGui(){const e=this.ePillDropList.scrollTop,t=this.resizeEnabled,n=this.getFocusedItem();let i=this.focusService.findNextFocusableElement();i||(i=this.focusService.findNextFocusableElement(void 0,!1,!0)),this.toggleResizable(!1),this.destroyGui(),this.addIconAndTitleToGui(),this.addEmptyMessageToGui(),this.addItemsToGui(),this.isHorizontal()||(this.ePillDropList.scrollTop=e),t&&this.toggleResizable(t),this.focusService.isKeyboardMode()&&this.restoreFocus(n,i)}getFocusedItem(){const e=this.getGui(),t=this.gos.getActiveDomElement();if(!e.contains(t))return-1;return Array.from(e.querySelectorAll(".ag-column-drop-cell")).indexOf(t)}restoreFocus(e,t){const n=this.getGui(),i=Array.from(n.querySelectorAll(".ag-column-drop-cell"));if(-1===e)return;0===i.length&&t.focus();const o=i[Math.min(i.length-1,e)];o&&o.focus()}focusList(e){const t=e?this.childPillComponents.length-1:0;this.restoreFocus(t,this.getFocusableElement())}getNonGhostItems(){const e=this.getExistingItems();return this.isPotentialDndItems()?e.filter((e=>!rn(this.potentialDndItems,e))):e}addItemsToGui(){const e=this.getNonGhostItems().map((e=>this.createItemComponent(e,!1)));if(this.isPotentialDndItems()){const t=this.potentialDndItems.map((e=>this.createItemComponent(e,!0)));this.insertIndex>=e.length?e.push(...t):e.splice(this.insertIndex,0,...t)}this.appendChild(this.ePillDropList),e.forEach(((e,t)=>{t>0&&this.addArrow(this.ePillDropList),this.ePillDropList.appendChild(e.getGui())})),this.addAriaLabelsToComponents()}addAriaLabelsToComponents(){this.childPillComponents.forEach(((e,t)=>{const n=e.getGui();Ei(n,t+1),bi(n,this.childPillComponents.length)}))}createItemComponent(e,t){const n=this.createPillComponent(e,this.dropTarget,t,this.horizontal);return n.addEventListener(vc.EVENT_COLUMN_REMOVE,this.removeItems.bind(this,[e])),this.context.createBean(n),this.guiDestroyFunctions.push((()=>this.destroyBean(n))),t||this.childPillComponents.push(n),n}addIconAndTitleToGui(){const{title:e,icon:t}=this.params;if(!e||!t)return;const n=document.createElement("div");if(fi(n,!0),this.addElementClasses(n,"title-bar"),this.addElementClasses(t,"icon"),this.addOrRemoveCssClass("ag-column-drop-empty",this.isExistingItemsEmpty()),n.appendChild(t),!this.horizontal){const t=document.createElement("span");this.addElementClasses(t,"title"),t.innerHTML=e,n.appendChild(t)}this.appendChild(n)}isExistingItemsEmpty(){return 0===this.getExistingItems().length}addEmptyMessageToGui(){const{emptyMessage:e}=this.params;if(!e||!this.isExistingItemsEmpty()||this.isPotentialDndItems())return;const t=document.createElement("span");t.innerHTML=e,this.addElementClasses(t,"empty-message"),this.ePillDropList.appendChild(t)}addArrow(e){if(this.horizontal){const t=ur(this.gos.get("enableRtl")?"smallLeft":"smallRight",this.gos);this.addElementClasses(t,"cell-separator"),e.appendChild(t)}}};fc.STATE_NOT_DRAGGING="notDragging",fc.STATE_NEW_ITEMS_IN="newItemsIn",fc.STATE_REARRANGE_ITEMS="rearrangeItems",_e([xt("focusService")],fc.prototype,"focusService",2),_e([xt("dragAndDropService")],fc.prototype,"dragAndDropService",2);var Cc=["touchstart","touchend","touchmove","touchcancel"],wc=class{constructor(e="javascript"){this.frameworkName=e,this.renderingEngine="vanilla",this.wrapIncoming=e=>e(),this.wrapOutgoing=e=>e()}setInterval(e,t){return new xr((n=>{n(window.setInterval(e,t))}))}addEventListener(e,t,n,i){const o=rn(Cc,t);e.addEventListener(t,n,{capture:!!i,passive:o})}get shouldWrapOutgoing(){return!1}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return`https://www.ag-grid.com/${"solid"===this.frameworkName?"react":this.frameworkName}-data-grid${e?`/${e}`:""}`}},yc=class extends En{getNextCellToFocus(e,t,n=!1){return n?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)}getNextCellToFocusWithCtrlPressed(e,t){const n=e===pr.UP,i=e===pr.DOWN,o=e===pr.LEFT;let r,a;if(n||i)a=n?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),r=t.column;else{const e=this.columnModel.getAllDisplayedColumns(),n=this.gos.get("enableRtl");a=t.rowIndex,r=o!==n?e[0]:Kt(e)}return{rowIndex:a,rowPinned:null,column:r}}getNextCellToFocusWithoutCtrlPressed(e,t){let n=t,i=!1;for(;!i;){switch(e){case pr.UP:n=this.getCellAbove(n);break;case pr.DOWN:n=this.getCellBelow(n);break;case pr.RIGHT:n=this.gos.get("enableRtl")?this.getCellToLeft(n):this.getCellToRight(n);break;case pr.LEFT:n=this.gos.get("enableRtl")?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,console.warn("AG Grid: unknown key for navigation "+e)}i=!n||this.isCellGoodToFocusOn(n)}return n}isCellGoodToFocusOn(e){const t=e.column;let n;switch(e.rowPinned){case"top":n=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case"bottom":n=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:n=this.rowModel.getRow(e.rowIndex)}if(!n)return!1;return!t.isSuppressNavigable(n)}getCellToLeft(e){if(!e)return null;const t=this.columnModel.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellToRight(e){if(!e)return null;const t=this.columnModel.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getRowBelow(e){const t=e.rowIndex,n=e.rowPinned;if(this.isLastRowInContainer(e))switch(n){case"bottom":return null;case"top":return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;default:return this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null}const i=this.rowModel.getRow(e.rowIndex),o=this.getNextStickyPosition(i);return o||{rowIndex:t+1,rowPinned:n}}getNextStickyPosition(e,t){if(!this.gos.isGroupRowsSticky()||!e||!e.sticky)return;let n=[];n=this.rowRenderer.getStickyTopRowCtrls().some((t=>t.getRowNode().rowIndex===e.rowIndex))?[...this.rowRenderer.getStickyTopRowCtrls()].sort(((e,t)=>e.getRowNode().rowIndex-t.getRowNode().rowIndex)):[...this.rowRenderer.getStickyBottomRowCtrls()].sort(((e,t)=>t.getRowNode().rowIndex-e.getRowNode().rowIndex));const i=t?-1:1,o=n.findIndex((t=>t.getRowNode().rowIndex===e.rowIndex)),r=n[o+i];return r?{rowIndex:r.getRowNode().rowIndex,rowPinned:null}:void 0}getCellBelow(e){if(!e)return null;const t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null}isLastRowInContainer(e){const t=e.rowPinned,n=e.rowIndex;if("top"===t){return this.pinnedRowModel.getPinnedTopRowData().length-1<=n}if("bottom"===t){return this.pinnedRowModel.getPinnedBottomRowData().length-1<=n}return this.paginationProxy.getPageLastRow()<=n}getRowAbove(e){const t=e.rowIndex,n=e.rowPinned;if(n?0===t:t===this.paginationProxy.getPageFirstRow())return"top"===n?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender("top")?this.getLastFloatingTopRow():null;const i=this.rowModel.getRow(e.rowIndex),o=this.getNextStickyPosition(i,!0);return o||{rowIndex:t-1,rowPinned:n}}getCellAbove(e){if(!e)return null;const t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null}getLastBodyCell(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}}getLastFloatingTopRow(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:"top"}}getNextTabbedCell(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)}getNextTabbedCellForwards(e){const t=this.columnModel.getAllDisplayedColumns();let n=e.rowIndex,i=e.rowPinned,o=this.columnModel.getDisplayedColAfter(e.column);if(!o){o=t[0];const r=this.getRowBelow(e);if(Ve(r))return null;if(!r.rowPinned&&!this.paginationProxy.isRowInPage(r))return null;n=r?r.rowIndex:null,i=r?r.rowPinned:null}return{rowIndex:n,column:o,rowPinned:i}}getNextTabbedCellBackwards(e){const t=this.columnModel.getAllDisplayedColumns();let n=e.rowIndex,i=e.rowPinned,o=this.columnModel.getDisplayedColBefore(e.column);if(!o){o=Kt(t);const r=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(Ve(r))return null;if(!r.rowPinned&&!this.paginationProxy.isRowInPage(r))return null;n=r?r.rowIndex:null,i=r?r.rowPinned:null}return{rowIndex:n,column:o,rowPinned:i}}};_e([xt("columnModel")],yc.prototype,"columnModel",2),_e([xt("rowModel")],yc.prototype,"rowModel",2),_e([xt("rowRenderer")],yc.prototype,"rowRenderer",2),_e([xt("pinnedRowModel")],yc.prototype,"pinnedRowModel",2),_e([xt("paginationProxy")],yc.prototype,"paginationProxy",2),yc=_e([At("cellNavigationService")],yc);var bc=class extends En{constructor(){super(...arguments),this.consuming=!1}setBeans(e){this.logger=e.create("AlignedGridsService")}getAlignedGridApis(){var e;let t=null!=(e=this.gos.get("alignedGrids"))?e:[];const n="function"==typeof t;"function"==typeof t&&(t=t());const i=()=>`See ${this.getFrameworkOverrides().getDocLink("aligned-grids")}`;return t.map((e=>{var t;if(!e)return lt("alignedGrids contains an undefined option."),n||lt('You may want to configure via a callback to avoid setup race conditions:\n "alignedGrids: () => [linkedGrid]"'),void lt(i());if(e instanceof Qs)return e;const o=e;return"current"in o?null==(t=o.current)?void 0:t.api:(o.api||lt(`alignedGrids - No api found on the linked grid. If you are passing gridOptions to alignedGrids since v31 this is no longer valid. ${i()}`),o.api)})).filter((e=>!!e&&!e.isDestroyed()))}init(){this.addManagedListener(this.eventService,An.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,An.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,An.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,An.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,An.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,An.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))}fireEvent(e){this.consuming||this.getAlignedGridApis().forEach((t=>{if(t.isDestroyed())return;const n=t.__getAlignedGridService();e(n)}))}onEvent(e){this.consuming=!0,e(),this.consuming=!1}fireColumnEvent(e){this.fireEvent((t=>{t.onColumnEvent(e)}))}fireScrollEvent(e){"horizontal"===e.direction&&this.fireEvent((t=>{t.onScrollEvent(e)}))}onScrollEvent(e){this.onEvent((()=>{this.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(e.left,!0)}))}getMasterColumns(e){const t=[];return e.columns?e.columns.forEach((e=>{t.push(e)})):e.column&&t.push(e.column),t}getColumnIds(e){const t=[];return e.columns?e.columns.forEach((e=>{t.push(e.getColId())})):e.column&&t.push(e.column.getColId()),t}onColumnEvent(e){this.onEvent((()=>{switch(e.type){case An.EVENT_COLUMN_MOVED:case An.EVENT_COLUMN_VISIBLE:case An.EVENT_COLUMN_PINNED:case An.EVENT_COLUMN_RESIZED:const t=e;this.processColumnEvent(t);break;case An.EVENT_COLUMN_GROUP_OPENED:const n=e;this.processGroupOpenedEvent(n);break;case An.EVENT_COLUMN_PIVOT_CHANGED:console.warn("AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}}))}processGroupOpenedEvent(e){e.columnGroups.forEach((t=>{let n=null;if(t){const e=t.getGroupId();n=this.columnModel.getProvidedColumnGroup(e)}t&&!n||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+t.isExpanded()),this.columnModel.setColumnGroupOpened(n,t.isExpanded(),"alignedGridChanged"))}))}processColumnEvent(e){var t;const n=e.column;let i=null;if(n&&(i=this.columnModel.getPrimaryColumn(n.getColId())),n&&!i)return;const o=this.getMasterColumns(e);switch(e.type){case An.EVENT_COLUMN_MOVED:{const t=e,n=e.api.getColumnState().map((e=>({colId:e.colId})));this.columnModel.applyColumnState({state:n,applyOrder:!0},"alignedGridChanged"),this.logger.log(`onColumnEvent-> processing ${e.type} toIndex = ${t.toIndex}`)}break;case An.EVENT_COLUMN_VISIBLE:{const t=e,n=e.api.getColumnState().map((e=>({colId:e.colId,hide:e.hide})));this.columnModel.applyColumnState({state:n},"alignedGridChanged"),this.logger.log(`onColumnEvent-> processing ${e.type} visible = ${t.visible}`)}break;case An.EVENT_COLUMN_PINNED:{const t=e,n=e.api.getColumnState().map((e=>({colId:e.colId,pinned:e.pinned})));this.columnModel.applyColumnState({state:n},"alignedGridChanged"),this.logger.log(`onColumnEvent-> processing ${e.type} pinned = ${t.pinned}`)}break;case An.EVENT_COLUMN_RESIZED:const n=e,i={};o.forEach((t=>{this.logger.log(`onColumnEvent-> processing ${e.type} actualWidth = ${t.getActualWidth()}`),i[t.getId()]={key:t.getColId(),newWidth:t.getActualWidth()}})),null==(t=n.flexColumns)||t.forEach((e=>{i[e.getId()]&&delete i[e.getId()]})),this.columnModel.setColumnWidths(Object.values(i),!1,n.finished,"alignedGridChanged")}const r=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing();this.getAlignedGridApis().forEach((e=>{e.setGridOption("alwaysShowVerticalScroll",r)}))}};_e([xt("columnModel")],bc.prototype,"columnModel",2),_e([xt("ctrlsService")],bc.prototype,"ctrlsService",2),_e([Oe(0,Pt("loggerFactory"))],bc.prototype,"setBeans",1),_e([Tt],bc.prototype,"init",1),bc=_e([At("alignedGridsService")],bc);var Ec=class extends En{constructor(){super(...arguments),this.selectedNodes=new Map,this.lastRowNode=null}init(){this.rowSelection=this.gos.get("rowSelection"),this.groupSelectsChildren=this.gos.get("groupSelectsChildren"),this.addManagedPropertyListeners(["groupSelectsChildren","rowSelection"],(()=>{this.groupSelectsChildren=this.gos.get("groupSelectsChildren"),this.rowSelection=this.gos.get("rowSelection"),this.deselectAllRowNodes({source:"api"})})),this.addManagedListener(this.eventService,An.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))}destroy(){super.destroy(),this.resetNodes(),this.lastRowNode=null}isMultiselect(){return"multiple"===this.rowSelection}setNodesSelected(e){var t;const{newValue:n,clearSelection:i,suppressFinishActions:o,rangeSelect:r,nodes:a,event:s,source:l="api"}=e;if(0===a.length)return 0;if(a.length>1&&!this.isMultiselect())return console.warn("AG Grid: cannot multi select while rowSelection='single'"),0;const d=this.groupSelectsChildren&&!0===e.groupSelectsFiltered,c=a.map((e=>e.footer?e.sibling:e));if(r){if(a.length>1)return console.warn("AG Grid: cannot range select while selecting multiple rows"),0;let e=null;if("checkboxSelected"===l&&!1===n&&this.lastRowNode&&(this.lastRowNode.id?e=this.lastRowNode:this.lastRowNode=null),null==e&&(e=this.getLastSelectedNode()),e){const t=c[0];if(t!==e&&this.isMultiselect())return this.selectRange(t,e,n,l)}}this.lastRowNode=n?null:c[0];let g=0;for(let e=0;e<c.length;e++){const i=c[e];if(!(d&&i.group)){i.selectThisNode(n,s,l)&&g++}this.groupSelectsChildren&&(null==(t=i.childrenAfterGroup)?void 0:t.length)&&(g+=this.selectChildren(i,n,d,l))}if(!o){if(n&&(i||!this.isMultiselect())&&(g+=this.clearOtherNodes(c[0],l)),g>0){this.updateGroupsFromChildrenSelections(l);const e={type:An.EVENT_SELECTION_CHANGED,source:l};this.eventService.dispatchEvent(e)}}return g}selectRange(e,t,n=!0,i){const o=this.rowModel.getNodesInRangeForSelection(e,t);let r=0;o.forEach((e=>{if(e.group&&this.groupSelectsChildren)return;e.selectThisNode(n,void 0,i)&&r++})),this.updateGroupsFromChildrenSelections(i);const a={type:An.EVENT_SELECTION_CHANGED,source:i};return this.eventService.dispatchEvent(a),r}selectChildren(e,t,n,i){const o=n?e.childrenAfterAggFilter:e.childrenAfterGroup;return Ve(o)?0:this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:n,source:i,nodes:o})}getLastSelectedNode(){const e=Array.from(this.selectedNodes.keys());if(0==e.length)return null;const t=this.selectedNodes.get(Kt(e));return t||null}getSelectedNodes(){const e=[];return this.selectedNodes.forEach((t=>{t&&e.push(t)})),e}getSelectedRows(){const e=[];return this.selectedNodes.forEach((t=>{t&&t.data&&e.push(t.data)})),e}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(e){const t=new Map;this.selectedNodes.forEach(((n,i)=>{n&&e(n)&&t.set(i,n)})),this.selectedNodes=t}updateGroupsFromChildrenSelections(e,t){if(!this.groupSelectsChildren)return!1;if("clientSide"!==this.rowModel.getType())return!1;const n=this.rowModel.getRootNode();t||(t=new _d(!0,n)).setInactive();let i=!1;return t.forEachChangedNodeDepthFirst((t=>{if(t!==n){const n=t.calculateSelectedFromChildren();i=t.selectThisNode(null!==n&&n,void 0,e)||i}})),i}clearOtherNodes(e,t){const n=new Map;let i=0;return this.selectedNodes.forEach((o=>{if(o&&o.id!==e.id){const e=this.selectedNodes.get(o.id);i+=e.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:t}),this.groupSelectsChildren&&o.parent&&n.set(o.parent.id,o.parent)}})),n.forEach((e=>{const n=e.calculateSelectedFromChildren();e.selectThisNode(null!==n&&n,void 0,t)})),i}onRowSelected(e){const t=e.node;this.groupSelectsChildren&&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)}syncInOldRowNode(e,t){if(ze(t)&&e.id!==t.id&&t){const n=t.id;this.selectedNodes.get(n)==e&&this.selectedNodes.set(t.id,t)}}syncInNewRowNode(e){this.selectedNodes.has(e.id)?(e.setSelectedInitialValue(!0),this.selectedNodes.set(e.id,e)):e.setSelectedInitialValue(!1)}reset(e){const t=this.getSelectionCount();if(this.resetNodes(),t){const t={type:An.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(t)}}resetNodes(){var e;null==(e=this.selectedNodes)||e.clear()}getBestCostNodeSelection(){if("clientSide"!==this.rowModel.getType())return;const e=this.rowModel.getTopLevelNodes();if(null===e)return;const t=[];return function e(n){for(let i=0,o=n.length;i<o;i++){const o=n[i];if(o.isSelected())t.push(o);else{const t=o;t.group&&t.children&&e(t.children)}}}(e),t}isEmpty(){let e=0;return this.selectedNodes.forEach((t=>{t&&e++})),0===e}deselectAllRowNodes(e){const t=e=>e.selectThisNode(!1,void 0,i),n="clientSide"===this.rowModel.getType(),{source:i,justFiltered:o,justCurrentPage:r}=e;if(r||o){if(!n)return void console.error("AG Grid: selecting just filtered only works when gridOptions.rowModelType='clientSide'");this.getNodesToSelect(o,r).forEach(t)}else this.selectedNodes.forEach((e=>{e&&t(e)})),this.reset(i);n&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(i);const a={type:An.EVENT_SELECTION_CHANGED,source:i};this.eventService.dispatchEvent(a)}getSelectedCounts(e,t){let n=0,i=0;return this.getNodesToSelect(e,t).forEach((e=>{this.groupSelectsChildren&&e.group||(e.isSelected()?n++:e.selectable&&i++)})),{selectedCount:n,notSelectedCount:i}}getSelectAllState(e,t){const{selectedCount:n,notSelectedCount:i}=this.getSelectedCounts(e,t);return(0!==n||0!==i)&&(n>0&&i>0?null:n>0)}hasNodesToSelect(e=!1,t=!1){return this.getNodesToSelect(e,t).filter((e=>e.selectable)).length>0}getNodesToSelect(e=!1,t=!1){if("clientSide"!==this.rowModel.getType())throw new Error(`selectAll only available when rowModelType='clientSide', ie not ${this.rowModel.getType()}`);const n=[];if(t)return this.paginationProxy.forEachNodeOnPage((e=>{if(e.group)if(e.expanded)this.groupSelectsChildren||n.push(e);else{const t=e=>{var i;n.push(e),(null==(i=e.childrenAfterFilter)?void 0:i.length)&&e.childrenAfterFilter.forEach(t)};t(e)}else n.push(e)})),n;const i=this.rowModel;return e?(i.forEachNodeAfterFilter((e=>{n.push(e)})),n):(i.forEachNode((e=>{n.push(e)})),n)}selectAllRowNodes(e){if("clientSide"!==this.rowModel.getType())throw new Error(`selectAll only available when rowModelType='clientSide', ie not ${this.rowModel.getType()}`);const{source:t,justFiltered:n,justCurrentPage:i}=e;this.getNodesToSelect(n,i).forEach((e=>e.selectThisNode(!0,void 0,t))),"clientSide"===this.rowModel.getType()&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(t);const o={type:An.EVENT_SELECTION_CHANGED,source:t};this.eventService.dispatchEvent(o)}getSelectionState(){const e=[];return this.selectedNodes.forEach((t=>{(null==t?void 0:t.id)&&e.push(t.id)})),e.length?e:null}setSelectionState(e,t){if(!Array.isArray(e))return;const n=new Set(e),i=[];this.rowModel.forEachNode((e=>{n.has(e.id)&&i.push(e)})),this.setNodesSelected({newValue:!0,nodes:i,source:t})}};_e([xt("rowModel")],Ec.prototype,"rowModel",2),_e([xt("paginationProxy")],Ec.prototype,"paginationProxy",2),_e([Tt],Ec.prototype,"init",1),Ec=_e([At("selectionService")],Ec);var Sc=class{constructor(e){this.viaApi=(e,...t)=>(st(`Since v31, 'columnApi.${e}' is deprecated and moved to 'api.${e}'.`),this.api[e](...t)),this.api=e}sizeColumnsToFit(e){this.viaApi("sizeColumnsToFit",e)}setColumnGroupOpened(e,t){this.viaApi("setColumnGroupOpened",e,t)}getColumnGroup(e,t){return this.viaApi("getColumnGroup",e,t)}getProvidedColumnGroup(e){return this.viaApi("getProvidedColumnGroup",e)}getDisplayNameForColumn(e,t){return this.viaApi("getDisplayNameForColumn",e,t)}getDisplayNameForColumnGroup(e,t){return this.viaApi("getDisplayNameForColumnGroup",e,t)}getColumn(e){return this.viaApi("getColumn",e)}getColumns(){return this.viaApi("getColumns")}applyColumnState(e){return this.viaApi("applyColumnState",e)}getColumnState(){return this.viaApi("getColumnState")}resetColumnState(){this.viaApi("resetColumnState")}getColumnGroupState(){return this.viaApi("getColumnGroupState")}setColumnGroupState(e){this.viaApi("setColumnGroupState",e)}resetColumnGroupState(){this.viaApi("resetColumnGroupState")}isPinning(){return this.viaApi("isPinning")}isPinningLeft(){return this.viaApi("isPinningLeft")}isPinningRight(){return this.viaApi("isPinningRight")}getDisplayedColAfter(e){return this.viaApi("getDisplayedColAfter",e)}getDisplayedColBefore(e){return this.viaApi("getDisplayedColBefore",e)}setColumnVisible(e,t){this.viaApi("setColumnVisible",e,t)}setColumnsVisible(e,t){this.viaApi("setColumnsVisible",e,t)}setColumnPinned(e,t){this.viaApi("setColumnPinned",e,t)}setColumnsPinned(e,t){this.viaApi("setColumnsPinned",e,t)}getAllGridColumns(){return this.viaApi("getAllGridColumns")}getDisplayedLeftColumns(){return this.viaApi("getDisplayedLeftColumns")}getDisplayedCenterColumns(){return this.viaApi("getDisplayedCenterColumns")}getDisplayedRightColumns(){return this.viaApi("getDisplayedRightColumns")}getAllDisplayedColumns(){return this.viaApi("getAllDisplayedColumns")}getAllDisplayedVirtualColumns(){return this.viaApi("getAllDisplayedVirtualColumns")}moveColumn(e,t){this.viaApi("moveColumn",e,t)}moveColumnByIndex(e,t){this.viaApi("moveColumnByIndex",e,t)}moveColumns(e,t){this.viaApi("moveColumns",e,t)}moveRowGroupColumn(e,t){this.viaApi("moveRowGroupColumn",e,t)}setColumnAggFunc(e,t){this.viaApi("setColumnAggFunc",e,t)}setColumnWidth(e,t,n=!0,i){this.viaApi("setColumnWidth",e,t,n,i)}setColumnWidths(e,t=!0,n){this.viaApi("setColumnWidths",e,t,n)}setPivotMode(e){this.viaApi("setPivotMode",e)}isPivotMode(){return this.viaApi("isPivotMode")}getPivotResultColumn(e,t){return this.viaApi("getPivotResultColumn",e,t)}setValueColumns(e){this.viaApi("setValueColumns",e)}getValueColumns(){return this.viaApi("getValueColumns")}removeValueColumn(e){this.viaApi("removeValueColumn",e)}removeValueColumns(e){this.viaApi("removeValueColumns",e)}addValueColumn(e){this.viaApi("addValueColumn",e)}addValueColumns(e){this.viaApi("addValueColumns",e)}setRowGroupColumns(e){this.viaApi("setRowGroupColumns",e)}removeRowGroupColumn(e){this.viaApi("removeRowGroupColumn",e)}removeRowGroupColumns(e){this.viaApi("removeRowGroupColumns",e)}addRowGroupColumn(e){this.viaApi("addRowGroupColumn",e)}addRowGroupColumns(e){this.viaApi("addRowGroupColumns",e)}getRowGroupColumns(){return this.viaApi("getRowGroupColumns")}setPivotColumns(e){this.viaApi("setPivotColumns",e)}removePivotColumn(e){this.viaApi("removePivotColumn",e)}removePivotColumns(e){this.viaApi("removePivotColumns",e)}addPivotColumn(e){this.viaApi("addPivotColumn",e)}addPivotColumns(e){this.viaApi("addPivotColumns",e)}getPivotColumns(){return this.viaApi("getPivotColumns")}getLeftDisplayedColumnGroups(){return this.viaApi("getLeftDisplayedColumnGroups")}getCenterDisplayedColumnGroups(){return this.viaApi("getCenterDisplayedColumnGroups")}getRightDisplayedColumnGroups(){return this.viaApi("getRightDisplayedColumnGroups")}getAllDisplayedColumnGroups(){return this.viaApi("getAllDisplayedColumnGroups")}autoSizeColumn(e,t){return this.viaApi("autoSizeColumn",e,t)}autoSizeColumns(e,t){this.viaApi("autoSizeColumns",e,t)}autoSizeAllColumns(e){this.viaApi("autoSizeAllColumns",e)}setPivotResultColumns(e){this.viaApi("setPivotResultColumns",e)}getPivotResultColumns(){return this.viaApi("getPivotResultColumns")}};_e([xt("gridApi")],Sc.prototype,"api",2),Sc=_e([At("columnApi")],Sc);var Dc=class extends En{constructor(){super(...arguments),this.initialised=!1,this.isSsrm=!1}init(){this.isSsrm=this.gos.isRowModelType("serverSide"),this.cellExpressions=this.gos.get("enableCellExpressions"),this.isTreeData=this.gos.get("treeData"),this.initialised=!0;const e=e=>this.callColumnCellValueChangedHandler(e),t=this.gos.useAsyncEvents();this.eventService.addEventListener(An.EVENT_CELL_VALUE_CHANGED,e,t),this.addDestroyFunc((()=>this.eventService.removeEventListener(An.EVENT_CELL_VALUE_CHANGED,e,t))),this.addManagedPropertyListener("treeData",(e=>this.isTreeData=e.currentValue))}getValue(e,t,n=!1,i=!1){if(this.initialised||this.init(),!t)return;const o=e.getColDef(),r=o.field,a=e.getColId(),s=t.data;let l;const d=t.groupData&&void 0!==t.groupData[a],c=!i&&t.aggData&&void 0!==t.aggData[a],g=this.isSsrm&&i&&!!e.getColDef().aggFunc,u=this.isSsrm&&t.footer&&t.field&&(!0===e.getColDef().showRowGroup||e.getColDef().showRowGroup===t.field);if(n&&o.filterValueGetter?l=this.executeFilterValueGetter(o.filterValueGetter,s,e,t):this.isTreeData&&c?l=t.aggData[a]:this.isTreeData&&o.valueGetter?l=this.executeValueGetter(o.valueGetter,s,e,t):this.isTreeData&&r&&s?l=tt(s,r,e.isFieldContainsDots()):d?l=t.groupData[a]:c?l=t.aggData[a]:o.valueGetter?l=this.executeValueGetter(o.valueGetter,s,e,t):u?l=tt(s,t.field,e.isFieldContainsDots()):r&&s&&!g&&(l=tt(s,r,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof l&&0===l.indexOf("=")){const n=l.substring(1);l=this.executeValueGetter(n,s,e,t)}if(null==l){const n=this.getOpenedGroup(t,e);if(null!=n)return n}return l}parseValue(e,t,n,i){const o=e.getColDef(),r=this.gos.addGridCommonParams({node:t,data:null==t?void 0:t.data,oldValue:i,newValue:n,colDef:o,column:e}),a=o.valueParser;return ze(a)?"function"==typeof a?a(r):this.expressionService.evaluate(a,r):n}formatValue(e,t,n,i,o=!0){let r,a=null;const s=e.getColDef();if(i?r=i:o&&(r=s.valueFormatter),r){const i=this.gos.addGridCommonParams({value:n,node:t,data:t?t.data:null,colDef:s,column:e});a="function"==typeof r?r(i):this.expressionService.evaluate(r,i)}else if(s.refData)return s.refData[n]||"";return null==a&&Array.isArray(n)&&(a=n.join(", ")),a}getOpenedGroup(e,t){if(!this.gos.get("showOpenedGroup"))return;if(!t.getColDef().showRowGroup)return;const n=t.getColDef().showRowGroup;let i=e.parent;for(;null!=i;){if(i.rowGroupColumn&&(!0===n||n===i.rowGroupColumn.getColId()))return i.key;i=i.parent}}setValue(e,t,n,i){const o=this.columnModel.getPrimaryColumn(t);if(!e||!o)return!1;Ve(e.data)&&(e.data={});const{field:r,valueSetter:a}=o.getColDef();if(Ve(r)&&Ve(a))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;if(!this.dataTypeService.checkType(o,n))return console.warn("AG Grid: Data type of the new value does not match the cell data type of the column"),!1;const s=this.gos.addGridCommonParams({node:e,data:e.data,oldValue:this.getValue(o,e),newValue:n,colDef:o.getColDef(),column:o});let l;if(s.newValue=n,l=ze(a)?"function"==typeof a?a(s):this.expressionService.evaluate(a,s):this.setValueUsingField(e.data,r,n,o.isFieldContainsDots()),void 0===l&&(l=!0),!l)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),s.newValue=this.getValue(o,e);const d={type:An.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:s.column,api:s.api,columnApi:s.columnApi,colDef:s.colDef,context:s.context,data:e.data,node:e,oldValue:s.oldValue,newValue:s.newValue,value:s.newValue,source:i};return this.eventService.dispatchEvent(d),!0}callColumnCellValueChangedHandler(e){const t=e.colDef.onCellValueChanged;"function"==typeof t&&this.getFrameworkOverrides().wrapOutgoing((()=>{t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,columnApi:e.columnApi,context:e.context})}))}setValueUsingField(e,t,n,i){if(!t)return!1;let o=!1;if(i){const i=t.split(".");let r=e;for(;i.length>0&&r;){const e=i.shift();0===i.length?(o=r[e]===n,o||(r[e]=n)):r=r[e]}}else o=e[t]===n,o||(e[t]=n);return!o}executeFilterValueGetter(e,t,n,i){const o=this.gos.addGridCommonParams({data:t,node:i,column:n,colDef:n.getColDef(),getValue:this.getValueCallback.bind(this,i)});return"function"==typeof e?e(o):this.expressionService.evaluate(e,o)}executeValueGetter(e,t,n,i){const o=n.getColId(),r=this.valueCache.getValue(i,o);if(void 0!==r)return r;const a=this.gos.addGridCommonParams({data:t,node:i,column:n,colDef:n.getColDef(),getValue:this.getValueCallback.bind(this,i)});let s;return s="function"==typeof e?e(a):this.expressionService.evaluate(e,a),this.valueCache.setValue(i,o,s),s}getValueCallback(e,t){const n=this.columnModel.getPrimaryColumn(t);return n?this.getValue(n,e):null}getKeyForNode(e,t){const n=this.getValue(e,t),i=e.getColDef().keyCreator;let o=n;if(i){o=i(this.gos.addGridCommonParams({value:n,colDef:e.getColDef(),column:e,node:t,data:t.data}))}return"string"==typeof o||null==o||(o=String(o),"[object Object]"===o&&st("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 (se AG Grid docs) or b) to toString() on the object to return a key")),o}};_e([xt("expressionService")],Dc.prototype,"expressionService",2),_e([xt("columnModel")],Dc.prototype,"columnModel",2),_e([xt("valueCache")],Dc.prototype,"valueCache",2),_e([xt("dataTypeService")],Dc.prototype,"dataTypeService",2),_e([Tt],Dc.prototype,"init",1),Dc=_e([At("valueService")],Dc);var Tc=class extends En{constructor(){super(...arguments),this.expressionToFunctionCache={}}setBeans(e){this.logger=e.create("ExpressionService")}evaluate(e,t){if("string"==typeof e)return this.evaluateExpression(e,t);console.error("AG Grid: value should be either a string or a function",e)}evaluateExpression(e,t){try{const n=this.createExpressionFunction(e);return n(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(n){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",t),console.log("Exception = "+n),null}}createExpressionFunction(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];const t=this.createFunctionBody(e),n=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=n,n}createFunctionBody(e){return e.indexOf("return")>=0?e:"return "+e+";"}};_e([Oe(0,Pt("loggerFactory"))],Tc.prototype,"setBeans",1),Tc=_e([At("expressionService")],Tc);var Rc=class extends En{setBeans(e){this.logging=e.get("debug")}create(e){return new Ac(e,this.isLogging.bind(this))}isLogging(){return this.logging}};_e([Oe(0,Pt("gridOptionsService"))],Rc.prototype,"setBeans",1),Rc=_e([At("loggerFactory")],Rc);var Ac=class{constructor(e,t){this.name=e,this.isLoggingFunc=t}isLogging(){return this.isLoggingFunc()}log(e){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+e)}},xc=class extends En{setComp(e,t,n){this.view=e,this.eGridHostDiv=t,this.eGui=n,this.eGui.setAttribute("grid-id",this.context.getGridId()),this.dragAndDropService.addDropTarget({getContainer:()=>this.eGui,isInterestedIn:e=>1===e||0===e,getIconName:()=>qa.ICON_NOT_ALLOWED}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(t),this.createManagedBean(new nl(this.view)),this.addRtlSupport();const i=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((()=>i())),this.ctrlsService.register("gridCtrl",this)}isDetailGrid(){var e;const t=this.focusService.findTabbableParent(this.getGui());return(null==(e=null==t?void 0:t.getAttribute("row-id"))?void 0:e.startsWith("detail"))||!1}showDropZones(){return St.__isRegistered("@ag-grid-enterprise/row-grouping",this.context.getGridId())}showSideBar(){return St.__isRegistered("@ag-grid-enterprise/side-bar",this.context.getGridId())}showStatusBar(){return St.__isRegistered("@ag-grid-enterprise/status-bar",this.context.getGridId())}showWatermark(){return St.__isRegistered("@ag-grid-enterprise/core",this.context.getGridId())}onGridSizeChanged(){const e={type:An.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)}addRtlSupport(){const e=this.gos.get("enableRtl")?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(e){this.view.setCursor(e?"ew-resize":null)}disableUserSelect(e){this.view.setUserSelect(e?"none":null)}focusNextInnerContainer(e){const t=this.view.getFocusableContainers(),n=this.gos.getActiveDomElement(),i=t.findIndex((e=>e.contains(n)))+(e?-1:1);return!(i<=0||i>=t.length)&&this.focusService.focusInto(t[i])}focusInnerElement(e){const t=this.view.getFocusableContainers(),n=this.columnModel.getAllDisplayedColumns();if(e){if(t.length>1)return this.focusService.focusInto(Kt(t),!0);const e=Kt(n);if(this.focusService.focusGridView(e,!0))return!0}if(0===this.gos.get("headerHeight")||this.gos.get("suppressHeaderFocus")){if(this.focusService.focusGridView(n[0]))return!0;for(let e=1;e<t.length;e++)if(this.focusService.focusInto(t[e]))return!0;return!1}return this.focusService.focusFirstHeader()}forceFocusOutOfContainer(e=!1){this.view.forceFocusOutOfContainer(e)}};_e([xt("focusService")],xc.prototype,"focusService",2),_e([xt("resizeObserverService")],xc.prototype,"resizeObserverService",2),_e([xt("columnModel")],xc.prototype,"columnModel",2),_e([xt("ctrlsService")],xc.prototype,"ctrlsService",2),_e([xt("mouseEventService")],xc.prototype,"mouseEventService",2),_e([xt("dragAndDropService")],xc.prototype,"dragAndDropService",2);var Mc=class extends Sd{constructor(e){super(),this.eGridDiv=e}postConstruct(){this.logger=this.loggerFactory.create("GridComp");const e={destroyGridUi:()=>this.destroyBean(this),setRtlClass:e=>this.addCssClass(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:""}};this.ctrl=this.createManagedBean(new xc);const t=this.createTemplate();this.setTemplate(t),this.ctrl.setComp(e,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:e=>this.ctrl.focusInnerElement(e),forceFocusOutWhenTabGuardsAreEmpty:!0})}insertGridIntoDom(){const e=this.getGui();this.eGridDiv.appendChild(e),this.addDestroyFunc((()=>{this.eGridDiv.removeChild(e),this.logger.log("Grid removed from DOM")}))}updateLayoutClasses(e,t){const n=this.eRootWrapperBody.classList;n.toggle("ag-layout-auto-height",t.autoHeight),n.toggle("ag-layout-normal",t.normal),n.toggle("ag-layout-print",t.print),this.addOrRemoveCssClass("ag-layout-auto-height",t.autoHeight),this.addOrRemoveCssClass("ag-layout-normal",t.normal),this.addOrRemoveCssClass("ag-layout-print",t.print)}createTemplate(){return`<div class="ag-root-wrapper" role="presentation">\n ${this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":""}\n <div class="ag-root-wrapper-body" ref="rootWrapperBody" role="presentation">\n <ag-grid-body ref="gridBody"></ag-grid-body>\n ${this.ctrl.showSideBar()?'<ag-side-bar ref="sideBar"></ag-side-bar>':""}\n </div>\n ${this.ctrl.showStatusBar()?'<ag-status-bar ref="statusBar"></ag-status-bar>':""}\n <ag-pagination></ag-pagination>\n ${this.ctrl.showWatermark()?"<ag-watermark></ag-watermark>":""}\n </div>`}getFocusableElement(){return this.eRootWrapperBody}getFocusableContainers(){const e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter((e=>Vo(e)))}};_e([xt("loggerFactory")],Mc.prototype,"loggerFactory",2),_e([Or("gridBody")],Mc.prototype,"gridBodyComp",2),_e([Or("sideBar")],Mc.prototype,"sideBarComp",2),_e([Or("rootWrapperBody")],Mc.prototype,"eRootWrapperBody",2),_e([Tt],Mc.prototype,"postConstruct",1);var Nc=class extends En{progressSort(e,t,n){const i=this.getNextSortDirection(e);this.setSortForColumn(e,i,t,n)}setSortForColumn(e,t,n,i){"asc"!==t&&"desc"!==t&&(t=null);let o=[e];if(this.gos.isColumnsSortingCoupledToGroup()&&e.getColDef().showRowGroup){const t=this.columnModel.getSourceColumnsForGroupColumn(e),n=null==t?void 0:t.filter((e=>e.isSortable()));n&&(o=[e,...n])}o.forEach((e=>e.setSort(t,i)));const r=[];if(!((n||this.gos.get("alwaysMultiSort"))&&!this.gos.get("suppressMultiSort"))){const e=this.clearSortBarTheseColumns(o,i);r.push(...e)}this.updateSortIndex(e),r.push(...o),this.dispatchSortChangedEvents(i,r)}updateSortIndex(e){const t=this.gos.isColumnsSortingCoupledToGroup(),n=this.columnModel.getGroupDisplayColumnForGroup(e.getId()),i=t&&n||e,o=this.getColumnsWithSortingOrdered();this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((e=>e.setSortIndex(null)));const r=o.filter((e=>(!t||!e.getColDef().showRowGroup)&&e!==i));(i.getSort()?[...r,i]:r).forEach(((e,t)=>{e.setSortIndex(t)}))}onSortChanged(e,t){this.dispatchSortChangedEvents(e,t)}isSortActive(){const e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((e=>!!e.getSort()));return e&&e.length>0}dispatchSortChangedEvents(e,t){const n={type:An.EVENT_SORT_CHANGED,source:e};t&&(n.columns=t),this.eventService.dispatchEvent(n)}clearSortBarTheseColumns(e,t){const n=[];return this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((i=>{e.includes(i)||(i.getSort()&&n.push(i),i.setSort(void 0,t))})),n}getNextSortDirection(e){let t;if(t=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gos.get("sortingOrder")?this.gos.get("sortingOrder"):Nc.DEFAULT_SORTING_ORDER,!Array.isArray(t)||t.length<=0)return console.warn(`AG Grid: sortingOrder must be an array with at least one element, currently it's ${t}`),null;const n=t.indexOf(e.getSort()),i=n<0,o=n==t.length-1;let r;return r=i||o?t[0]:t[n+1],Nc.DEFAULT_SORTING_ORDER.indexOf(r)<0?(console.warn("AG Grid: invalid sort type "+r),null):r}getIndexedSortMap(){let e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((e=>!!e.getSort()));if(this.columnModel.isPivotMode()){const t=this.gos.isColumnsSortingCoupledToGroup();e=e.filter((e=>{const n=!!e.getAggFunc(),i=!e.isPrimary(),o=t?this.columnModel.getGroupDisplayColumnForGroup(e.getId()):e.getColDef().showRowGroup;return n||i||o}))}const t=this.columnModel.getRowGroupColumns().filter((e=>!!e.getSort())),n={};e.forEach(((e,t)=>n[e.getId()]=t)),e.sort(((e,t)=>{const i=e.getSortIndex(),o=t.getSortIndex();if(null!=i&&null!=o)return i-o;if(null==i&&null==o){return n[e.getId()]>n[t.getId()]?1:-1}return null==o?-1:1}));const i=this.gos.isColumnsSortingCoupledToGroup()&&!!t.length;i&&(e=[...new Set(e.map((e=>{var t;return null!=(t=this.columnModel.getGroupDisplayColumnForGroup(e.getId()))?t:e})))]);const o=new Map;return e.forEach(((e,t)=>o.set(e,t))),i&&t.forEach((e=>{const t=this.columnModel.getGroupDisplayColumnForGroup(e.getId());o.set(e,o.get(t))})),o}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort((([e,t],[n,i])=>t-i)).map((([e])=>e))}getSortModel(){return this.getColumnsWithSortingOrdered().filter((e=>e.getSort())).map((e=>({sort:e.getSort(),colId:e.getId()})))}getSortOptions(){return this.getColumnsWithSortingOrdered().filter((e=>e.getSort())).map((e=>({sort:e.getSort(),column:e})))}canColumnDisplayMixedSort(e){const t=this.gos.isColumnsSortingCoupledToGroup(),n=!!e.getColDef().showRowGroup;return t&&n}getDisplaySortForColumn(e){const t=this.columnModel.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!(null==t?void 0:t.length))return e.getSort();const n=null!=e.getColDef().field||!!e.getColDef().valueGetter?[e,...t]:t,i=n[0].getSort();return n.every((e=>e.getSort()==i))?i:"mixed"}getDisplaySortIndexForColumn(e){return this.getIndexedSortMap().get(e)}};Nc.DEFAULT_SORTING_ORDER=["asc","desc",null],_e([xt("columnModel")],Nc.prototype,"columnModel",2),Nc=_e([At("sortController")],Nc);var Pc=class extends En{static addKeyboardModeEvents(e){this.instanceCount>0||(e.addEventListener("keydown",Pc.toggleKeyboardMode),e.addEventListener("mousedown",Pc.toggleKeyboardMode))}static removeKeyboardModeEvents(e){this.instanceCount>0||(e.addEventListener("keydown",Pc.toggleKeyboardMode),e.addEventListener("mousedown",Pc.toggleKeyboardMode))}static toggleKeyboardMode(e){const t=Pc.keyboardModeActive,n="keydown"===e.type;n&&(e.ctrlKey||e.metaKey||e.altKey)||t!==n&&(Pc.keyboardModeActive=n)}static unregisterGridCompController(e){Pc.removeKeyboardModeEvents(e)}init(){const e=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,An.EVENT_COLUMN_PIVOT_MODE_CHANGED,e),this.addManagedListener(this.eventService,An.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_COLUMN_GROUP_OPENED,e),this.addManagedListener(this.eventService,An.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.registerKeyboardFocusEvents(),this.ctrlsService.whenReady((e=>{this.gridCtrl=e.gridCtrl}))}registerKeyboardFocusEvents(){const e=this.gos.getDocument();Pc.addKeyboardModeEvents(e),Pc.instanceCount++,this.addDestroyFunc((()=>{Pc.instanceCount--,Pc.unregisterGridCompController(e)}))}onColumnEverythingChanged(){if(!this.focusedCellPosition)return;const e=this.focusedCellPosition.column,t=this.columnModel.getGridColumn(e.getId());e!==t&&this.clearFocusedCell()}isKeyboardMode(){return Pc.keyboardModeActive}getFocusCellToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(this.gos.getActiveDomElement(),wl.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition}getFocusHeaderToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(this.gos.getActiveDomElement(),ed.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition}isDomDataMissingInHierarchy(e,t){let n=e;for(;n;){if(this.gos.getDomData(n,t))return!1;n=n.parentNode}return!0}getFocusedCell(){return this.focusedCellPosition}shouldRestoreFocus(e){return!!this.isCellRestoreFocused(e)&&(setTimeout((()=>{this.restoredFocusedCellPosition=null}),0),!0)}isCellRestoreFocused(e){return null!=this.restoredFocusedCellPosition&&this.cellPositionUtils.equals(e,this.restoredFocusedCellPosition)}setRestoreFocusedCell(e){"react"===this.getFrameworkOverrides().renderingEngine&&(this.restoredFocusedCellPosition=e)}getFocusEventParams(){const{rowIndex:e,rowPinned:t,column:n}=this.focusedCellPosition,i={rowIndex:e,rowPinned:t,column:n,isFullWidthCell:!1},o=this.rowRenderer.getRowByPosition({rowIndex:e,rowPinned:t});return o&&(i.isFullWidthCell=o.isFullWidth()),i}clearFocusedCell(){if(this.restoredFocusedCellPosition=null,null==this.focusedCellPosition)return;const e=Ie({type:An.EVENT_CELL_FOCUS_CLEARED},this.getFocusEventParams());this.focusedCellPosition=null,this.eventService.dispatchEvent(e)}setFocusedCell(e){const{column:t,rowIndex:n,rowPinned:i,forceBrowserFocus:o=!1,preventScrollOnBrowserFocus:r=!1}=e,a=this.columnModel.getGridColumn(t);if(!a)return void(this.focusedCellPosition=null);this.focusedCellPosition=a?{rowIndex:n,rowPinned:Ge(i),column:a}:null;const s=Le(Ie({type:An.EVENT_CELL_FOCUSED},this.getFocusEventParams()),{forceBrowserFocus:o,preventScrollOnBrowserFocus:r,floating:null});this.eventService.dispatchEvent(s)}isCellFocused(e){return null!=this.focusedCellPosition&&this.cellPositionUtils.equals(e,this.focusedCellPosition)}isRowNodeFocused(e){return this.isRowFocused(e.rowIndex,e.rowPinned)}isHeaderWrapperFocused(e){if(null==this.focusedHeaderPosition)return!1;const t=e.getColumnGroupChild(),n=e.getRowIndex(),i=e.getPinned(),{column:o,headerRowIndex:r}=this.focusedHeaderPosition;return t===o&&n===r&&i==o.getPinned()}clearFocusedHeader(){this.focusedHeaderPosition=null}getFocusedHeader(){return this.focusedHeaderPosition}setFocusedHeader(e,t){this.focusedHeaderPosition={headerRowIndex:e,column:t}}focusHeaderPosition(e){if(this.gos.get("suppressHeaderFocus"))return!1;const{direction:t,fromTab:n,allowUserOverride:i,event:o,fromCell:r,rowWithoutSpanValue:a}=e;let{headerPosition:s}=e;if(r&&this.filterManager.isAdvancedFilterHeaderActive())return this.focusAdvancedFilter(s);if(i){const e=this.getFocusedHeader(),i=this.headerNavigationService.getHeaderRowCount();if(n){const n=this.gos.getCallback("tabToNextHeader");n&&(s=this.getHeaderPositionFromUserFunc({userFunc:n,direction:t,currentPosition:e,headerPosition:s,headerRowCount:i}))}else{const t=this.gos.getCallback("navigateToNextHeader");if(t&&o){s=t({key:o.key,previousHeaderPosition:e,nextHeaderPosition:s,headerRowCount:i,event:o})}}}return!!s&&this.focusProvidedHeaderPosition({headerPosition:s,direction:t,event:o,fromCell:r,rowWithoutSpanValue:a})}focusHeaderPositionFromUserFunc(e){if(this.gos.get("suppressHeaderFocus"))return!1;const{userFunc:t,headerPosition:n,direction:i,event:o}=e,r=this.getFocusedHeader(),a=this.headerNavigationService.getHeaderRowCount(),s=this.getHeaderPositionFromUserFunc({userFunc:t,direction:i,currentPosition:r,headerPosition:n,headerRowCount:a});return!!s&&this.focusProvidedHeaderPosition({headerPosition:s,direction:i,event:o})}getHeaderPositionFromUserFunc(e){const{userFunc:t,direction:n,currentPosition:i,headerPosition:o,headerRowCount:r}=e,a=t({backwards:"Before"===n,previousHeaderPosition:i,nextHeaderPosition:o,headerRowCount:r});return!0===a||null===a?(null===a&&st("Returning `null` from tabToNextHeader is deprecated. Return `true` to stay on the current header, or `false` to let the browser handle the tab behaviour."),i):!1===a?null:a}focusProvidedHeaderPosition(e){const{headerPosition:t,direction:n,fromCell:i,rowWithoutSpanValue:o,event:r}=e;if(-1===t.headerRowIndex)return this.filterManager.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(t):this.focusGridView(t.column);this.headerNavigationService.scrollToColumn(t.column,n);const a=this.ctrlsService.getHeaderRowContainerCtrl(t.column.getPinned()).focusHeader(t.headerRowIndex,t.column,r);return a&&(null!=o||i)&&this.headerNavigationService.setCurrentHeaderRowWithoutSpan(null!=o?o:-1),a}focusFirstHeader(){let e=this.columnModel.getAllDisplayedColumns()[0];if(!e)return!1;e.getParent()&&(e=this.columnModel.getColumnGroupAtLevel(e,0));const t=this.headerPositionUtils.getHeaderIndexToFocus(e,0);return this.focusHeaderPosition({headerPosition:t,rowWithoutSpanValue:0})}focusLastHeader(e){const t=this.headerNavigationService.getHeaderRowCount()-1,n=Kt(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:n},rowWithoutSpanValue:-1,event:e})}focusPreviousFromFirstCell(e){return this.filterManager.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(e)}isAnyCellFocused(){return!!this.focusedCellPosition}isRowFocused(e,t){return null!=this.focusedCellPosition&&(this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===Ge(t))}findFocusableElements(e,t,n=!1){const i=bo;let o=Eo;t&&(o+=", "+t),n&&(o+=', [tabindex="-1"]');const r=Array.prototype.slice.apply(e.querySelectorAll(i)).filter((e=>Vo(e))),a=Array.prototype.slice.apply(e.querySelectorAll(o));if(!a.length)return r;return s=a,r.filter((e=>-1===s.indexOf(e)));var s}focusInto(e,t=!1,n=!1){const i=this.findFocusableElements(e,null,n),o=t?Kt(i):i[0];return!!o&&(o.focus({preventScroll:!0}),!0)}findFocusableElementBeforeTabGuard(e,t){if(!t)return null;const n=this.findFocusableElements(e),i=n.indexOf(t);if(-1===i)return null;let o=-1;for(let e=i-1;e>=0;e--)if(n[e].classList.contains("ag-tab-guard-top")){o=e;break}return o<=0?null:n[o-1]}findNextFocusableElement(e=this.eGridDiv,t,n){const i=this.findFocusableElements(e,t?':not([tabindex="-1"])':null),o=this.gos.getActiveDomElement();let r;r=t?i.findIndex((e=>e.contains(o))):i.indexOf(o);const a=r+(n?-1:1);return a<0||a>=i.length?null:i[a]}isTargetUnderManagedComponent(e,t){if(!t)return!1;const n=e.querySelectorAll(`.${Wr.FOCUS_MANAGED_CLASS}`);if(!n.length)return!1;for(let e=0;e<n.length;e++)if(n[e].contains(t))return!0;return!1}findTabbableParent(e,t=5){let n=0;for(;e&&null===Xi(e)&&++n<=t;)e=e.parentElement;return null===Xi(e)?null:e}focusGridView(e,t){var n;if(this.gos.get("suppressCellFocus"))return t?this.gos.get("suppressHeaderFocus")?this.focusNextGridCoreContainer(!0,!0):this.focusLastHeader():this.focusNextGridCoreContainer(!1);const i=t?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!i)return!1;const{rowIndex:o,rowPinned:r}=i,a=this.getFocusedHeader();return!e&&a&&(e=a.column),!(null==o||!e)&&(this.navigationService.ensureCellVisible({rowIndex:o,column:e,rowPinned:r}),this.setFocusedCell({rowIndex:o,column:e,rowPinned:Ge(r),forceBrowserFocus:!0}),null==(n=this.rangeService)||n.setRangeToCell({rowIndex:o,rowPinned:r,column:e}),!0)}focusNextGridCoreContainer(e,t=!1){return!(t||!this.gridCtrl.focusNextInnerContainer(e))||((t||!e&&!this.gridCtrl.isDetailGrid())&&this.gridCtrl.forceFocusOutOfContainer(e),!1)}focusAdvancedFilter(e){var t,n;return this.advancedFilterFocusColumn=null==e?void 0:e.column,null!=(n=null==(t=this.advancedFilterService)?void 0:t.getCtrl().focusHeaderComp())&&n}focusNextFromAdvancedFilter(e,t){var n,i;const o=null!=(i=t?void 0:this.advancedFilterFocusColumn)?i:null==(n=this.columnModel.getAllDisplayedColumns())?void 0:n[0];return e?this.focusHeaderPosition({headerPosition:{column:o,headerRowIndex:this.headerNavigationService.getHeaderRowCount()-1}}):this.focusGridView(o)}clearAdvancedFilterColumn(){this.advancedFilterFocusColumn=void 0}};Pc.keyboardModeActive=!1,Pc.instanceCount=0,_e([xt("eGridDiv")],Pc.prototype,"eGridDiv",2),_e([xt("columnModel")],Pc.prototype,"columnModel",2),_e([xt("headerNavigationService")],Pc.prototype,"headerNavigationService",2),_e([xt("headerPositionUtils")],Pc.prototype,"headerPositionUtils",2),_e([xt("rowRenderer")],Pc.prototype,"rowRenderer",2),_e([xt("rowPositionUtils")],Pc.prototype,"rowPositionUtils",2),_e([xt("cellPositionUtils")],Pc.prototype,"cellPositionUtils",2),_e([xt("navigationService")],Pc.prototype,"navigationService",2),_e([xt("ctrlsService")],Pc.prototype,"ctrlsService",2),_e([xt("filterManager")],Pc.prototype,"filterManager",2),_e([Mt("rangeService")],Pc.prototype,"rangeService",2),_e([Mt("advancedFilterService")],Pc.prototype,"advancedFilterService",2),_e([Tt],Pc.prototype,"init",1),Pc=_e([At("focusService")],Pc);var Ic=class extends En{setMouseOver(e){this.selectedColumns=e;const t={type:An.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(t)}clearMouseOver(){this.selectedColumns=null;const e={type:An.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(e)}isHovered(e){return!!this.selectedColumns&&this.selectedColumns.indexOf(e)>=0}};Ic=_e([At("columnHoverService")],Ic);var Lc=class extends En{constructor(){super(...arguments),this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.suppressAnimation=!1,this.animationThreadCount=0}postConstruct(){this.ctrlsService.whenReady((e=>this.gridBodyCtrl=e.gridBodyCtrl))}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(e){this.suppressAnimation=e}start(){this.active||this.gos.get("suppressColumnMoveAnimation")||this.gos.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0)}finish(){this.active&&this.flush((()=>{this.active=!1}))}executeNextVMTurn(e){this.active?this.executeNextFuncs.push(e):e()}executeLaterVMTurn(e){this.active?this.executeLaterFuncs.push(e):e()}ensureAnimationCssClassPresent(){this.animationThreadCount++;const e=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push((()=>{this.animationThreadCount===e&&this.gridBodyCtrl.setColumnMovingCss(!1)}))}flush(e){if(0===this.executeNextFuncs.length&&0===this.executeLaterFuncs.length)return void e();const t=e=>{for(;e.length;){const t=e.pop();t&&t()}};this.getFrameworkOverrides().wrapIncoming((()=>{window.setTimeout((()=>t(this.executeNextFuncs)),0),window.setTimeout((()=>{e(),t(this.executeLaterFuncs)}),200)}))}};_e([xt("ctrlsService")],Lc.prototype,"ctrlsService",2),_e([Tt],Lc.prototype,"postConstruct",1),Lc=_e([At("columnAnimationService")],Lc);var Fc=class extends En{postConstruct(){this.ctrlsService.whenReady((e=>{this.centerRowsCtrl=e.center,this.addManagedListener(this.eventService,An.EVENT_BODY_HEIGHT_CHANGED,this.checkPageSize.bind(this)),this.addManagedListener(this.eventService,An.EVENT_SCROLL_VISIBILITY_CHANGED,this.checkPageSize.bind(this)),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()}))}notActive(){return!this.gos.get("paginationAutoPageSize")||null==this.centerRowsCtrl}onPaginationAutoSizeChanged(){this.notActive()?this.paginationProxy.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;const e=this.centerRowsCtrl.getViewportSizeFeature().getBodyHeight();if(e>0){const t=()=>{const t=this.gos.getRowHeightAsNumber(),n=Math.floor(e/t);this.paginationProxy.setPageSize(n,"autoCalculated")};this.isBodyRendered?vt((()=>t()),50)():(t(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}};_e([xt("ctrlsService")],Fc.prototype,"ctrlsService",2),_e([xt("paginationProxy")],Fc.prototype,"paginationProxy",2),_e([Tt],Fc.prototype,"postConstruct",1),Fc=_e([At("paginationAutoPageSizeService")],Fc);var _c=class extends En{constructor(){super(...arguments),this.cacheVersion=0}init(){this.active=this.gos.get("valueCache"),this.neverExpires=this.gos.get("valueCacheNeverExpires")}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(e,t,n){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=n)}getValue(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]}};_e([Tt],_c.prototype,"init",1),_c=_e([At("valueCache")],_c);var Oc=class extends En{init(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,An.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))}onCellValueChanged(e){"paste"!==e.source&&this.doChangeDetection(e.node,e.column)}doChangeDetection(e,t){if(this.gos.get("suppressChangeDetection"))return;const n=[e];if(this.clientSideRowModel&&!e.isRowPinned()){const i=this.gos.get("aggregateOnlyChangedColumns"),o=new _d(i,this.clientSideRowModel.getRootNode());o.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(o),o.forEachChangedNodeDepthFirst((e=>{n.push(e)}))}this.rowRenderer.refreshCells({rowNodes:n})}};_e([xt("rowModel")],Oc.prototype,"rowModel",2),_e([xt("rowRenderer")],Oc.prototype,"rowRenderer",2),_e([Tt],Oc.prototype,"init",1),Oc=_e([At("changeDetectionService")],Oc);var kc=class extends En{adaptFunction(e,t){const n=this.componentMetadataProvider.retrieve(e);return n&&n.functionAdapter?n.functionAdapter(t):null}adaptCellRendererFunction(e){return class Adapter{refresh(e){return!1}getGui(){return this.eGui}init(t){const n=e(t),i=typeof n;this.eGui="string"!==i&&"number"!==i&&"boolean"!==i?null!=n?n:Ho("<span></span>"):Ho("<span>"+n+"</span>")}}}doesImplementIComponent(e){return!!e&&(e.prototype&&"getGui"in e.prototype)}};_e([xt("componentMetadataProvider")],kc.prototype,"componentMetadataProvider",2),kc=_e([At("agComponentUtils")],kc);var Gc=class extends En{postConstruct(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","onParamsUpdated","refresh"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached","onParamsUpdated","refresh"]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["refresh"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","getState"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]},menuItem:{mandatoryMethodList:[],optionalMethodList:["setActive","select","setExpanded","configureDefaults"]}}}retrieve(e){return this.componentMetaData[e]}};_e([xt("agComponentUtils")],Gc.prototype,"agComponentUtils",2),_e([Tt],Gc.prototype,"postConstruct",1),Gc=_e([At("componentMetadataProvider")],Gc);var zc={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:32,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:24,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:240},"ag-theme-quartz":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:260}},Vc={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},Hc=class extends En{constructor(){super(...arguments),this.calculatedSizes={},this.calculatedTheme=null}postConstruct(){var e;const t=null!=(e=this.getTheme().el)?e:this.eGridDiv;this.addManagedPropertyListener("rowHeight",(()=>this.refreshRowHeightVariable())),this.mutationObserver=new MutationObserver((()=>{this.calculatedSizes={},this.calculatedTheme=null,this.calculatedTheme=this.getTheme(),this.fireGridStylesChangedEvent()})),this.mutationObserver.observe(t||this.eGridDiv,{attributes:!0,attributeFilter:["class"]})}fireGridStylesChangedEvent(){const e={type:An.EVENT_GRID_STYLES_CHANGED};this.eventService.dispatchEvent(e)}getSassVariable(e){const{themeFamily:t,el:n}=this.getTheme();if(!t||0!==t.indexOf("ag-theme"))return;this.calculatedSizes||(this.calculatedSizes={}),this.calculatedSizes[t]||(this.calculatedSizes[t]={});const i=this.calculatedSizes[t][e];return null!=i?i:(this.calculatedSizes[t][e]=this.calculateValueForSassProperty(e,t,n),this.calculatedSizes[t][e])}calculateValueForSassProperty(e,t,n){const i="ag-theme-"+(t.match("material")?"material":t.match("balham")?"balham":t.match("alpine")?"alpine":"custom"),o=zc[i][e],r=this.gos.getDocument();if(n||(n=this.eGridDiv),!Vc[e])return o;const a=Vc[e],s=r.createElement("div"),l=Array.from(n.classList);s.classList.add(t,...l),s.style.position="absolute";const d=a.reduce(((e,t)=>{const n=r.createElement("div");return n.style.position="static",n.classList.add(t),e.appendChild(n),n}),s);let c=0;if(r.body){r.body.appendChild(s);const t=-1!==e.toLowerCase().indexOf("height")?"height":"width";c=parseInt(window.getComputedStyle(d)[t],10),r.body.removeChild(s)}return c||o}isThemeDark(){const{theme:e}=this.getTheme();return!!e&&e.indexOf("dark")>=0}chartMenuPanelWidth(){return this.getSassVariable("chartMenuPanelWidth")}getTheme(){if(this.calculatedTheme)return this.calculatedTheme;const e=/\bag-(material|(?:theme-([\w\-]*)))\b/g;let t=this.eGridDiv,n=null,i=[];for(;t;){if(n=e.exec(t.className),n){const n=t.className.match(e);n&&(i=n);break}t=t.parentElement||void 0}if(!n)return{allThemes:i};const o=n[0];return this.calculatedTheme={theme:o,el:t,themeFamily:o.replace(/-dark$/,""),allThemes:i},this.calculatedTheme}getFromTheme(e,t){var n;return null!=(n=this.getSassVariable(t))?n:e}getDefaultRowHeight(){return this.getFromTheme(25,"rowHeight")}getListItemHeight(){return this.getFromTheme(20,"listItemHeight")}refreshRowHeightVariable(){const e=this.eGridDiv.style.getPropertyValue("--ag-line-height").trim(),t=this.gos.get("rowHeight");if(null==t||isNaN(t)||!isFinite(t))return null!==e&&this.eGridDiv.style.setProperty("--ag-line-height",null),-1;const n=`${t}px`;return e!=n?(this.eGridDiv.style.setProperty("--ag-line-height",n),t):""!=e?parseFloat(e):-1}getMinColWidth(){const e=this.getFromTheme(null,"headerCellMinWidth");return ze(e)?Math.max(e,10):10}destroy(){this.calculatedSizes=null,this.mutationObserver&&this.mutationObserver.disconnect(),super.destroy()}};_e([xt("eGridDiv")],Hc.prototype,"eGridDiv",2),_e([Tt],Hc.prototype,"postConstruct",1),Hc=_e([At("environment")],Hc);var Bc=class extends En{constructor(){super(...arguments),this.scrollY=0,this.uiBodyHeight=0}agWire(e){this.logger=e.create("RowContainerHeightService")}postConstruct(){this.addManagedListener(this.eventService,An.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=Zi(),this.logger.log("maxDivHeight = "+this.maxDivHeight)}isStretching(){return this.stretching}getDivStretchOffset(){return this.divStretchOffset}updateOffset(){if(!this.stretching)return;const e=this.ctrlsService.getGridBodyCtrl().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;const e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;this.logger.log(`Div Stretch Offset = ${t} (${this.pixelsToShave} * ${e})`),this.setDivStretchOffset(t)}setUiContainerHeight(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:An.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))}clearOffset(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)}setDivStretchOffset(e){const t="number"==typeof e?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventService.dispatchEvent({type:An.EVENT_HEIGHT_SCALE_CHANGED}))}setModelHeight(e){this.modelHeight=e,this.stretching=null!=e&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getUiContainerHeight(){return this.uiContainerHeight}getRealPixelPosition(e){return e-this.divStretchOffset}getUiBodyHeight(){const e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return e.bottom-e.top}getScrollPositionForPixel(e){if(this.pixelsToShave<=0)return e;const t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t}};_e([xt("ctrlsService")],Bc.prototype,"ctrlsService",2),_e([Oe(0,Pt("loggerFactory"))],Bc.prototype,"agWire",1),_e([Tt],Bc.prototype,"postConstruct",1),Bc=_e([At("rowContainerHeightService")],Bc);var Wc=class extends En{init(){this.addManagedPropertyListener("isRowSelectable",(()=>this.updateSelectable()))}updateSelectableAfterGrouping(){this.updateSelectable(!0)}updateSelectable(e=!1){const t=!!this.gos.get("rowSelection"),n=this.gos.get("isRowSelectable");if(!t||!n)return;const i=this.gos.get("groupSelectsChildren"),o="clientSide"===this.rowModel.getType()&&i,r=[],a=t=>{if(e&&!t.group)return;if(o&&t.group){const e=t.childrenAfterGroup.some((e=>!0===e.selectable));return void t.setRowSelectable(e,!0)}const i=!n||n(t);t.setRowSelectable(i,!0),!i&&t.isSelected()&&r.push(t)};if(o){const e=this.rowModel;new _d(!1,e.getRootNode()).forEachChangedNodeDepthFirst(a,!0,!0)}else this.rowModel.forEachNode(a);r.length&&this.selectionService.setNodesSelected({nodes:r,newValue:!1,source:"selectableChanged"}),o&&this.selectionService instanceof Ec&&this.selectionService.updateGroupsFromChildrenSelections("selectableChanged")}};_e([xt("rowModel")],Wc.prototype,"rowModel",2),_e([xt("selectionService")],Wc.prototype,"selectionService",2),_e([Tt],Wc.prototype,"init",1),Wc=_e([At("selectableService")],Wc);var Uc=class extends _r{constructor(){super(),this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1}postConstruct(){const e=this.gos.get("enableRtl");this.setTemplate(this.getTemplate());const{btFirst:t,btPrevious:n,btNext:i,btLast:o,pageSizeComp:r}=this;this.activateTabIndex([t,n,i,o]),t.insertAdjacentElement("afterbegin",ur(e?"last":"first",this.gos)),n.insertAdjacentElement("afterbegin",ur(e?"next":"previous",this.gos)),i.insertAdjacentElement("afterbegin",ur(e?"previous":"next",this.gos)),o.insertAdjacentElement("afterbegin",ur(e?"first":"last",this.gos)),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.onPaginationChanged()}onPaginationChanged(){const e=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(e),e&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){this.areListenersSetup||(this.addManagedListener(this.eventService,An.EVENT_PAGINATION_CHANGED,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)}].forEach((e=>{const{el:t,fn:n}=e;this.addManagedListener(t,"click",n),this.addManagedListener(t,"keydown",(e=>{e.key!==pr.ENTER&&e.key!==pr.SPACE||(e.preventDefault(),n())}))})),this.areListenersSetup=!0)}onBtFirst(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()}setCurrentPageLabel(){const e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),n=e?t+1:0;this.lbCurrent.textContent=this.formatNumber(n)}formatNumber(e){const t=this.gos.getCallback("paginationNumberFormatter");if(t){return t({value:e})}const n=this.localeService.getLocaleTextFunc();return uo(e,n("thousandSeparator",","),n("decimalSeparator","."))}getTemplate(){const e=this.localeService.getLocaleTextFunc(),t=e("page","Page"),n=e("to","to"),i=e("of","of"),o=e("firstPage","First Page"),r=e("previousPage","Previous Page"),a=e("nextPage","Next Page"),s=e("lastPage","Last Page"),l=this.getCompId();return`<div class="ag-paging-panel ag-unselectable" id="ag-${l}">\n <ag-page-size-selector ref="pageSizeComp"></ag-page-size-selector>\n <span class="ag-paging-row-summary-panel" role="status">\n <span id="ag-${l}-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-${l}-to">${n}</span>\n <span id="ag-${l}-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-${l}-of">${i}</span>\n <span id="ag-${l}-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n </span>\n <span class="ag-paging-page-summary-panel" role="presentation">\n <div ref="btFirst" class="ag-button ag-paging-button" role="button" aria-label="${o}"></div>\n <div ref="btPrevious" class="ag-button ag-paging-button" role="button" aria-label="${r}"></div>\n <span class="ag-paging-description" role="status">\n <span id="ag-${l}-start-page">${t}</span>\n <span id="ag-${l}-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n <span id="ag-${l}-of-page">${i}</span>\n <span id="ag-${l}-of-page-number" ref="lbTotal" class="ag-paging-number"></span>\n </span>\n <div ref="btNext" class="ag-button ag-paging-button" role="button" aria-label="${a}"></div>\n <div ref="btLast" class="ag-button ag-paging-button" role="button" aria-label="${s}"></div>\n </span>\n </div>`}onBtNext(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()}enableOrDisableButtons(){const e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);const i=this.isZeroPagesToDisplay(),o=e===n-1;this.nextButtonDisabled=o||i,this.lastButtonDisabled=!t||i||e===n-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){vi(e,t),e.classList.toggle("ag-disabled",t)}updateRowLabels(){const e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.getPageSize(),n=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;let o,r;if(this.isZeroPagesToDisplay()?o=r=0:(o=t*e+1,r=o+t-1,n&&r>i&&(r=i)),this.lbFirstRowOnPage.textContent=this.formatNumber(o),this.rowNodeBlockLoader.isLoading()){const e=this.localeService.getLocaleTextFunc();this.lbLastRowOnPage.innerHTML=e("pageLastRowUnknown","?")}else this.lbLastRowOnPage.textContent=this.formatNumber(r)}isZeroPagesToDisplay(){const e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t}setTotalLabels(){const e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),n=e?this.paginationProxy.getMasterRowCount():null;if(1===n){const e=this.paginationProxy.getRow(0);if(e&&e.group&&!(e.groupData||e.aggData))return void this.setTotalLabelsToZero()}if(e)this.lbTotal.textContent=this.formatNumber(t),this.lbRecordCount.textContent=this.formatNumber(n);else{const e=this.localeService.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=e,this.lbRecordCount.innerHTML=e}}setTotalLabelsToZero(){this.lbFirstRowOnPage.textContent=this.formatNumber(0),this.lbCurrent.textContent=this.formatNumber(0),this.lbLastRowOnPage.textContent=this.formatNumber(0),this.lbTotal.textContent=this.formatNumber(0),this.lbRecordCount.textContent=this.formatNumber(0)}};_e([xt("paginationProxy")],Uc.prototype,"paginationProxy",2),_e([xt("rowNodeBlockLoader")],Uc.prototype,"rowNodeBlockLoader",2),_e([Or("btFirst")],Uc.prototype,"btFirst",2),_e([Or("btPrevious")],Uc.prototype,"btPrevious",2),_e([Or("btNext")],Uc.prototype,"btNext",2),_e([Or("btLast")],Uc.prototype,"btLast",2),_e([Or("lbRecordCount")],Uc.prototype,"lbRecordCount",2),_e([Or("lbFirstRowOnPage")],Uc.prototype,"lbFirstRowOnPage",2),_e([Or("lbLastRowOnPage")],Uc.prototype,"lbLastRowOnPage",2),_e([Or("lbCurrent")],Uc.prototype,"lbCurrent",2),_e([Or("lbTotal")],Uc.prototype,"lbTotal",2),_e([Or("pageSizeComp")],Uc.prototype,"pageSizeComp",2),_e([Tt],Uc.prototype,"postConstruct",1);var jc=class _OverlayWrapperComponent extends _r{constructor(){super(_OverlayWrapperComponent.TEMPLATE),this.inProgress=!1,this.destroyRequested=!1}updateLayoutClasses(e,t){const n=this.eOverlayWrapper.classList;n.toggle("ag-layout-auto-height",t.autoHeight),n.toggle("ag-layout-normal",t.normal),n.toggle("ag-layout-print",t.print)}postConstruct(){this.createManagedBean(new nl(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.overlayService.registerOverlayWrapperComp(this)}setWrapperTypeClass(e){const t=this.eOverlayWrapper.classList;this.activeOverlayWrapperCssClass&&t.toggle(this.activeOverlayWrapperCssClass,!1),this.activeOverlayWrapperCssClass=e,t.toggle(e,!0)}showOverlay(e,t,n){this.inProgress||(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.inProgress=!0,e&&e.then((e=>{this.inProgress=!1,this.eOverlayWrapper.appendChild(e.getGui()),this.activeOverlay=e,this.updateListenerDestroyFunc=n,this.destroyRequested&&(this.destroyRequested=!1,this.destroyActiveOverlay())})),this.setDisplayed(!0,{skipAriaHidden:!0}))}destroyActiveOverlay(){var e;this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),null==(e=this.updateListenerDestroyFunc)||e.call(this),ko(this.eOverlayWrapper))}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}destroy(){this.destroyActiveOverlay(),super.destroy()}};jc.TEMPLATE='\n <div class="ag-overlay" role="presentation">\n <div class="ag-overlay-panel" role="presentation">\n <div class="ag-overlay-wrapper" ref="eOverlayWrapper" role="presentation"></div>\n </div>\n </div>',_e([xt("overlayService")],jc.prototype,"overlayService",2),_e([Or("eOverlayWrapper")],jc.prototype,"eOverlayWrapper",2),_e([Tt],jc.prototype,"postConstruct",1);var Kc=jc,Yc=class extends En{getFirstRow(){let e,t=0;return this.pinnedRowModel.getPinnedTopRowCount()?e="top":this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(e="bottom"),void 0===e?null:{rowIndex:t,rowPinned:e}}getLastRow(){let e,t=null;const n=this.pinnedRowModel.getPinnedBottomRowCount(),i=this.pinnedRowModel.getPinnedTopRowCount();return n?(t="bottom",e=n-1):this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageLastRow()):i&&(t="top",e=i-1),void 0===e?null:{rowIndex:e,rowPinned:t}}getRowNode(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}}sameRow(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned)}before(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(ze(t.rowPinned))return"top"!==t.rowPinned}return e.rowIndex<t.rowIndex}};_e([xt("rowModel")],Yc.prototype,"rowModel",2),_e([xt("pinnedRowModel")],Yc.prototype,"pinnedRowModel",2),_e([xt("paginationProxy")],Yc.prototype,"paginationProxy",2),Yc=_e([At("rowPositionUtils")],Yc);var $c=class extends En{createId(e){const{rowIndex:t,rowPinned:n,column:i}=e;return this.createIdFromValues({rowIndex:t,column:i,rowPinned:n})}createIdFromValues(e){const{rowIndex:t,rowPinned:n,column:i}=e;return`${t}.${null==n?"null":n}.${i.getId()}`}equals(e,t){const n=e.column===t.column,i=e.rowPinned===t.rowPinned,o=e.rowIndex===t.rowIndex;return n&&i&&o}};$c=_e([At("cellPositionUtils")],$c);var Qc=class{constructor(e){this.cellValueChanges=e}},qc=class extends Qc{constructor(e,t,n,i){super(e),this.initialRange=t,this.finalRange=n,this.ranges=i}},Xc=class _UndoRedoStack{constructor(e){this.actionStack=[],this.maxStackSize=e||_UndoRedoStack.DEFAULT_STACK_SIZE,this.actionStack=new 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}};Xc.DEFAULT_STACK_SIZE=10;var Zc=Xc,Jc=class extends En{constructor(){super(...arguments),this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.onCellValueChanged=e=>{const t={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},n=null!==this.activeCellEdit&&this.cellPositionUtils.equals(this.activeCellEdit,t),i=null!==this.activeRowEdit&&this.rowPositionUtils.sameRow(this.activeRowEdit,t);if(!(n||i||this.isPasting||this.isRangeInAction))return;const{rowPinned:o,rowIndex:r,column:a,oldValue:s,value:l}=e,d={rowPinned:o,rowIndex:r,columnId:a.getColId(),newValue:l,oldValue:s};this.cellValueChanges.push(d)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}init(){if(!this.gos.get("undoRedoCellEditing"))return;const e=this.gos.get("undoRedoCellEditingLimit");e<=0||(this.undoStack=new Zc(e),this.redoStack=new Zc(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,An.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,An.EVENT_MODEL_UPDATED,(e=>{e.keepUndoRedoStack||this.clearStacks()})),this.addManagedListener(this.eventService,An.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,An.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,An.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,An.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,An.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,An.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,An.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,An.EVENT_ROW_DRAG_END,this.clearStacks),this.ctrlsService.whenReady((e=>{this.gridBodyCtrl=e.gridBodyCtrl})))}getCurrentUndoStackSize(){return this.undoStack?this.undoStack.getCurrentStackSize():0}getCurrentRedoStackSize(){return this.redoStack?this.redoStack.getCurrentStackSize():0}undo(e){const t={type:An.EVENT_UNDO_STARTED,source:e};this.eventService.dispatchEvent(t);const n=this.undoRedo(this.undoStack,this.redoStack,"initialRange","oldValue","undo"),i={type:An.EVENT_UNDO_ENDED,source:e,operationPerformed:n};this.eventService.dispatchEvent(i)}redo(e){const t={type:An.EVENT_REDO_STARTED,source:e};this.eventService.dispatchEvent(t);const n=this.undoRedo(this.redoStack,this.undoStack,"finalRange","newValue","redo"),i={type:An.EVENT_REDO_ENDED,source:e,operationPerformed:n};this.eventService.dispatchEvent(i)}undoRedo(e,t,n,i,o){if(!e)return!1;const r=e.pop();return!(!r||!r.cellValueChanges)&&(this.processAction(r,(e=>e[i]),o),r instanceof qc?this.processRange(this.rangeService,r.ranges||[r[n]]):this.processCell(r.cellValueChanges),t.push(r),!0)}processAction(e,t,n){e.cellValueChanges.forEach((e=>{const{rowIndex:i,rowPinned:o,columnId:r}=e,a={rowIndex:i,rowPinned:o},s=this.rowPositionUtils.getRowNode(a);s.displayed&&s.setDataValue(r,t(e),n)}))}processRange(e,t){let n;e.removeAllCellRanges(!0),t.forEach(((i,o)=>{if(!i)return;const r=i.startRow,a=i.endRow;o===t.length-1&&(n={rowPinned:r.rowPinned,rowIndex:r.rowIndex,columnId:i.startColumn.getColId()},this.setLastFocusedCell(n));const s={rowStartIndex:r.rowIndex,rowStartPinned:r.rowPinned,rowEndIndex:a.rowIndex,rowEndPinned:a.rowPinned,columnStart:i.startColumn,columns:i.columns};e.addCellRange(s)}))}processCell(e){const t=e[0],{rowIndex:n,rowPinned:i}=t,o={rowIndex:n,rowPinned:i},r=this.rowPositionUtils.getRowNode(o),a={rowPinned:t.rowPinned,rowIndex:r.rowIndex,columnId:t.columnId};this.setLastFocusedCell(a,this.rangeService)}setLastFocusedCell(e,t){const{rowIndex:n,columnId:i,rowPinned:o}=e,r=this.gridBodyCtrl.getScrollFeature(),a=this.columnModel.getGridColumn(i);if(!a)return;r.ensureIndexVisible(n),r.ensureColumnVisible(a);const s={rowIndex:n,column:a,rowPinned:o};this.focusService.setFocusedCell(Le(Ie({},s),{forceBrowserFocus:!0})),null==t||t.setRangeToCell(s)}addRowEditingListeners(){this.addManagedListener(this.eventService,An.EVENT_ROW_EDITING_STARTED,(e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}})),this.addManagedListener(this.eventService,An.EVENT_ROW_EDITING_STOPPED,(()=>{const e=new Qc(this.cellValueChanges);this.pushActionsToUndoStack(e),this.activeRowEdit=null}))}addCellEditingListeners(){this.addManagedListener(this.eventService,An.EVENT_CELL_EDITING_STARTED,(e=>{this.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}})),this.addManagedListener(this.eventService,An.EVENT_CELL_EDITING_STOPPED,(e=>{this.activeCellEdit=null;if(e.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){const e=new Qc(this.cellValueChanges);this.pushActionsToUndoStack(e)}}))}addPasteListeners(){this.addManagedListener(this.eventService,An.EVENT_PASTE_START,(()=>{this.isPasting=!0})),this.addManagedListener(this.eventService,An.EVENT_PASTE_END,(()=>{const e=new Qc(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1}))}addFillListeners(){this.addManagedListener(this.eventService,An.EVENT_FILL_START,(()=>{this.isRangeInAction=!0})),this.addManagedListener(this.eventService,An.EVENT_FILL_END,(e=>{const t=new qc(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(t),this.isRangeInAction=!1}))}addCellKeyListeners(){this.addManagedListener(this.eventService,An.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,(()=>{this.isRangeInAction=!0})),this.addManagedListener(this.eventService,An.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,(()=>{let e;e=this.rangeService&&this.gos.get("enableRangeSelection")?new qc(this.cellValueChanges,void 0,void 0,[...this.rangeService.getCellRanges()]):new Qc(this.cellValueChanges),this.pushActionsToUndoStack(e),this.isRangeInAction=!1}))}pushActionsToUndoStack(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()}};_e([xt("focusService")],Jc.prototype,"focusService",2),_e([xt("ctrlsService")],Jc.prototype,"ctrlsService",2),_e([xt("cellPositionUtils")],Jc.prototype,"cellPositionUtils",2),_e([xt("rowPositionUtils")],Jc.prototype,"rowPositionUtils",2),_e([xt("columnModel")],Jc.prototype,"columnModel",2),_e([Mt("rangeService")],Jc.prototype,"rangeService",2),_e([Tt],Jc.prototype,"init",1),Jc=_e([At("undoRedoService")],Jc);var eg=class extends En{findHeader(e,t){let n,i;if(e.column instanceof Rn?n=this.columnModel.getDisplayedGroupAtDirection(e.column,t):(i=`getDisplayedCol${t}`,n=this.columnModel[i](e.column)),!n)return;let{headerRowIndex:o}=e;if("filter"!==this.getHeaderRowType(o)){const e=[n];for(;n.getParent();)n=n.getParent(),e.push(n);n=e[e.length-1-o]}const{column:r,headerRowIndex:a}=this.getHeaderIndexToFocus(n,o);return{column:r,headerRowIndex:a}}getHeaderIndexToFocus(e,t){let n;if(e instanceof Rn&&this.isAnyChildSpanningHeaderHeight(e)&&e.isPadding()){const i=e;n=i.getLeafColumns()[0];let o=n;for(;o!==i;)t++,o=o.getParent()}return{column:n||e,headerRowIndex:t}}isAnyChildSpanningHeaderHeight(e){return!!e&&e.getLeafColumns().some((e=>e.isSpanHeaderHeight()))}getColumnVisibleParent(e,t){const n=this.getHeaderRowType(t),i="column"===n;let o="filter"===n?e:e.getParent(),r=t-1,a=r;if(i&&this.isAnyChildSpanningHeaderHeight(e.getParent())){for(;o&&o.isPadding();)o=o.getParent(),r--;a=r,r<0&&(o=e,r=t,a=void 0)}return{column:o,headerRowIndex:r,headerRowIndexWithoutSpan:a}}getColumnVisibleChild(e,t,n="After"){let i=e,o=t+1,r=o;if("group"===this.getHeaderRowType(t)){const t=e.getDisplayedLeafColumns(),r="After"===n?t[0]:Kt(t),a=[];let s=r;for(;s.getParent()!==e;)s=s.getParent(),a.push(s);if(i=r,r.isSpanHeaderHeight())for(let e=a.length-1;e>=0;e--){const t=a[e];if(!t.isPadding()){i=t;break}o++}else i=Kt(a),i||(i=r)}return{column:i,headerRowIndex:o,headerRowIndexWithoutSpan:r}}getHeaderRowType(e){const t=this.ctrlsService.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)}findColAtEdgeForHeaderRow(e,t){const n=this.columnModel.getAllDisplayedColumns(),i=n["start"===t?0:n.length-1];if(!i)return;const o=this.ctrlsService.getHeaderRowContainerCtrl(i.getPinned()).getRowType(e);if("group"==o){return{headerRowIndex:e,column:this.columnModel.getColumnGroupAtLevel(i,e)}}return{headerRowIndex:null==o?-1:e,column:i}}};_e([xt("columnModel")],eg.prototype,"columnModel",2),_e([xt("ctrlsService")],eg.prototype,"ctrlsService",2),eg=_e([At("headerPositionUtils")],eg);var tg=class{buildColumnDefs(e,t,n){const i=[],o={};return e.forEach((e=>{let r=!0,a=this.createDefFromColumn(e,t,n),s=e.getOriginalParent(),l=null;for(;s;){let e=null;if(s.isPadding()){s=s.getOriginalParent();continue}const t=o[s.getGroupId()];if(t){t.children.push(a),r=!1;break}if(e=this.createDefFromGroup(s),e&&(e.children=[a],o[e.groupId]=e,a=e,s=s.getOriginalParent()),null!=s&&l===s){r=!1;break}l=s}r&&i.push(a)})),i}createDefFromGroup(e){const t=Ze(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t}createDefFromColumn(e,t,n){const i=Ze(e.getColDef());return i.colId=e.getColId(),i.width=e.getActualWidth(),i.rowGroup=e.isRowGroupActive(),i.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,i.pivot=e.isPivotActive(),i.pivotIndex=e.isPivotActive()?n.indexOf(e):null,i.aggFunc=e.isValueActive()?e.getAggFunc():null,i.hide=!e.isVisible()||void 0,i.pinned=e.isPinned()?e.getPinned():null,i.sort=e.getSort()?e.getSort():null,i.sortIndex=null!=e.getSortIndex()?e.getSortIndex():null,i}};tg=_e([At("columnDefFactory")],tg);var ng=class{getInitialRowClasses(e){const t=[];return ze(e.extraCssClass)&&t.push(e.extraCssClass),t.push("ag-row"),t.push(e.rowFocused?"ag-row-focus":"ag-row-no-focus"),e.fadeRowIn&&t.push("ag-opacity-zero"),t.push(e.rowIsEven?"ag-row-even":"ag-row-odd"),e.rowNode.isRowPinned()&&t.push("ag-row-pinned"),e.rowNode.isSelected()&&t.push("ag-row-selected"),e.rowNode.footer&&t.push("ag-row-footer"),t.push("ag-row-level-"+e.rowLevel),e.rowNode.stub&&t.push("ag-row-loading"),e.fullWidthRow&&t.push("ag-full-width-row"),e.expandable&&(t.push("ag-row-group"),t.push(e.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),e.rowNode.dragging&&t.push("ag-row-dragging"),sn(t,this.processClassesFromGridOptions(e.rowNode)),sn(t,this.preProcessRowClassRules(e.rowNode)),t.push(e.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),e.firstRowOnPage&&t.push("ag-row-first"),e.lastRowOnPage&&t.push("ag-row-last"),e.fullWidthRow&&("left"===e.pinned&&t.push("ag-cell-last-left-pinned"),"right"===e.pinned&&t.push("ag-cell-first-right-pinned")),t}processClassesFromGridOptions(e){const t=[],n=e=>{"string"==typeof e?t.push(e):Array.isArray(e)&&e.forEach((e=>t.push(e)))},i=this.gos.get("rowClass");if(i){if("function"==typeof i)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];n(i)}const o=this.gos.getCallback("getRowClass");if(o){n(o({data:e.data,node:e,rowIndex:e.rowIndex}))}return t}preProcessRowClassRules(e){const t=[];return this.processRowClassRules(e,(e=>{t.push(e)}),(e=>{})),t}processRowClassRules(e,t,n){const i=this.gos.addGridCommonParams({data:e.data,node:e,rowIndex:e.rowIndex});this.stylingService.processClassRules(void 0,this.gos.get("rowClassRules"),i,t,n)}calculateRowLevel(e){return e.group?e.level:e.parent?e.parent.level+1:0}};_e([xt("stylingService")],ng.prototype,"stylingService",2),_e([xt("gridOptionsService")],ng.prototype,"gos",2),ng=_e([At("rowCssClassCalculator")],ng);var ig=class extends En{init(){this.isAccentedSort=this.gos.get("accentedSort"),this.primaryColumnsSortGroups=this.gos.isColumnsSortingCoupledToGroup(),this.addManagedPropertyListener("accentedSort",(e=>this.isAccentedSort=e.currentValue)),this.addManagedPropertyListener("autoGroupColumnDef",(()=>this.primaryColumnsSortGroups=this.gos.isColumnsSortingCoupledToGroup()))}doFullSort(e,t){const n=e.map(((e,t)=>({currentPos:t,rowNode:e})));return n.sort(this.compareRowNodes.bind(this,t)),n.map((e=>e.rowNode))}compareRowNodes(e,t,n){const i=t.rowNode,o=n.rowNode;for(let t=0,n=e.length;t<n;t++){const n=e[t],r="desc"===n.sort,a=this.getValue(i,n.column),s=this.getValue(o,n.column);let l;const d=this.getComparator(n,i);l=d?d(a,s,i,o,r):Rr.defaultComparator(a,s,this.isAccentedSort);if(!isNaN(l)&&0!==l)return"asc"===n.sort?l:-1*l}return t.currentPos-n.currentPos}getComparator(e,t){const n=e.column,i=n.getColDef().comparator;if(null!=i)return i;if(!n.getColDef().showRowGroup)return;const o=!t.group&&n.getColDef().field;if(!o)return;const r=this.columnModel.getPrimaryColumn(o);return r?r.getColDef().comparator:void 0}getValue(e,t){var n,i;if(!this.primaryColumnsSortGroups)return this.valueService.getValue(t,e,!1,!1);if(e.rowGroupColumn===t){if(this.gos.isGroupUseEntireRow(this.columnModel.isPivotActive())){const i=null==(n=e.allLeafChildren)?void 0:n[0];return i?this.valueService.getValue(t,i,!1,!1):void 0}const o=this.columnModel.getGroupDisplayColumnForGroup(t.getId());if(!o)return;return null==(i=e.groupData)?void 0:i[o.getId()]}return e.group&&t.getColDef().showRowGroup?void 0:this.valueService.getValue(t,e,!1,!1)}};_e([xt("valueService")],ig.prototype,"valueService",2),_e([xt("columnModel")],ig.prototype,"columnModel",2),_e([Tt],ig.prototype,"init",1),ig=_e([At("rowNodeSorter")],ig);var og=class extends En{constructor(){super(...arguments),this.params={},this.ready=!1,this.readyCallbacks=[]}checkReady(){const e=this.params;this.ready=null!=e.gridCtrl&&null!=e.gridBodyCtrl&&null!=e.center&&null!=e.left&&null!=e.right&&null!=e.bottomCenter&&null!=e.bottomLeft&&null!=e.bottomRight&&null!=e.topCenter&&null!=e.topLeft&&null!=e.topRight&&null!=e.stickyTopCenter&&null!=e.stickyTopLeft&&null!=e.stickyTopRight&&null!=e.stickyBottomCenter&&null!=e.stickyBottomLeft&&null!=e.stickyBottomRight&&null!=e.centerHeader&&null!=e.leftHeader&&null!=e.rightHeader&&null!=e.fakeHScrollComp&&null!=e.fakeVScrollComp&&null!=e.gridHeaderCtrl,this.ready&&(this.readyCallbacks.forEach((t=>t(e))),this.readyCallbacks.length=0)}whenReady(e){this.ready?e(this.params):this.readyCallbacks.push(e)}register(e,t){this.params[e]=t,this.checkReady()}registerHeaderContainer(e,t){switch(t){case"left":this.params.leftHeader=e;break;case"right":this.params.rightHeader=e;break;default:this.params.centerHeader=e}this.checkReady()}get(e){return this.params[e]}getParams(){return this.params}getGridBodyCtrl(){return this.params.gridBodyCtrl}getHeaderRowContainerCtrls(){return[this.params.leftHeader,this.params.rightHeader,this.params.centerHeader]}getHeaderRowContainerCtrl(e){switch(e){case"left":return this.params.leftHeader;case"right":return this.params.rightHeader;default:return this.params.centerHeader}}};og.NAME="ctrlsService",og=_e([At(og.NAME)],og);var rg=class extends En{constructor(){super(...arguments),this.registry={}}register(e){this.registry[e.controllerName]=e.controllerClass}getInstance(e){const t=this.registry[e];if(null!=t)return new t}};rg=_e([At("ctrlsFactory")],rg);var ag=class extends _r{constructor(e,t){super(e),this.direction=t,this.hideTimeout=null}postConstruct(){this.addManagedListener(this.eventService,An.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",$i()||Qi())}initialiseInvisibleScrollbar(){void 0===this.invisibleScrollbar&&(this.invisibleScrollbar=io(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){const e=this.getGui();["mouseenter","mousedown","touchstart"].forEach((t=>this.addManagedListener(e,t,(()=>this.addOrRemoveCssClass("ag-scrollbar-active",!0))))),["mouseleave","touchend"].forEach((t=>this.addManagedListener(e,t,(()=>this.addOrRemoveCssClass("ag-scrollbar-active",!1)))))}onScrollVisibilityChanged(){void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),this.animationFrameService.requestAnimationFrame((()=>this.setScrollVisible()))}hideAndShowInvisibleScrollAsNeeded(){this.addManagedListener(this.eventService,An.EVENT_BODY_SCROLL,(e=>{e.direction===this.direction&&(null!==this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=null),this.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))})),this.addManagedListener(this.eventService,An.EVENT_BODY_SCROLL_END,(()=>{this.hideTimeout=window.setTimeout((()=>{this.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),this.hideTimeout=null}),400)}))}attemptSettingScrollPosition(e){const t=this.getViewport();Ct((()=>Vo(t)),(()=>this.setScrollPosition(e)),100)}getViewport(){return this.eViewport}getContainer(){return this.eContainer}onScrollCallback(e){this.addManagedListener(this.getViewport(),"scroll",e)}};_e([Or("eViewport")],ag.prototype,"eViewport",2),_e([Or("eContainer")],ag.prototype,"eContainer",2),_e([xt("scrollVisibleService")],ag.prototype,"scrollVisibleService",2),_e([xt("ctrlsService")],ag.prototype,"ctrlsService",2),_e([xt("animationFrameService")],ag.prototype,"animationFrameService",2);var sg=class _FakeHScrollComp extends ag{constructor(){super(_FakeHScrollComp.TEMPLATE,"horizontal")}postConstruct(){super.postConstruct();const e=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,An.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedPropertyListener("domLayout",e),this.ctrlsService.register("fakeHScrollComp",this),this.createManagedBean(new Rl((e=>this.eContainer.style.width=`${e}px`))),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}initialiseInvisibleScrollbar(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}onPinnedRowDataChanged(){this.refreshCompBottom()}refreshCompBottom(){if(!this.invisibleScrollbar)return;const e=this.pinnedRowModel.getPinnedBottomTotalHeight();this.getGui().style.bottom=`${e}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){const e=this.scrollVisibleService.isVerticalScrollShowing();let t=this.columnModel.getDisplayedColumnsRightWidth();const n=!this.enableRtl&&e,i=this.gos.getScrollbarWidth();n&&(t+=i),Qo(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=i);let o=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&e&&(o+=i),Qo(this.eLeftSpacer,o),this.eLeftSpacer.classList.toggle("ag-scroller-corner",o<=i)}setScrollVisible(){const e=this.scrollVisibleService.isHorizontalScrollShowing(),t=this.invisibleScrollbar,n=this.gos.get("suppressHorizontalScroll"),i=e&&this.gos.getScrollbarWidth()||0,o=n?0:0===i&&t?16:i;this.addOrRemoveCssClass("ag-scrollbar-invisible",t),Xo(this.getGui(),o),Xo(this.eViewport,o),Xo(this.eContainer,o),this.setDisplayed(e,{skipAriaHidden:!0})}getScrollPosition(){return _o(this.getViewport(),this.enableRtl)}setScrollPosition(e){Vo(this.getViewport())||this.attemptSettingScrollPosition(e),Oo(this.getViewport(),e,this.enableRtl)}};sg.TEMPLATE='<div class="ag-body-horizontal-scroll" aria-hidden="true">\n <div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div>\n <div class="ag-body-horizontal-scroll-viewport" ref="eViewport">\n <div class="ag-body-horizontal-scroll-container" ref="eContainer"></div>\n </div>\n <div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div>\n </div>',_e([Or("eLeftSpacer")],sg.prototype,"eLeftSpacer",2),_e([Or("eRightSpacer")],sg.prototype,"eRightSpacer",2),_e([xt("columnModel")],sg.prototype,"columnModel",2),_e([xt("pinnedRowModel")],sg.prototype,"pinnedRowModel",2),_e([Tt],sg.prototype,"postConstruct",1);var lg=sg,dg=class extends En{postConstruct(){const e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,An.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedPropertyListener("domLayout",e)}checkContainerWidths(){const e=this.gos.isDomLayout("print"),t=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),n=e?0:this.columnModel.getDisplayedColumnsRightWidth();t!=this.leftWidth&&(this.leftWidth=t,this.eventService.dispatchEvent({type:An.EVENT_LEFT_PINNED_WIDTH_CHANGED})),n!=this.rightWidth&&(this.rightWidth=n,this.eventService.dispatchEvent({type:An.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))}getPinnedRightWidth(){return this.rightWidth}getPinnedLeftWidth(){return this.leftWidth}};_e([xt("columnModel")],dg.prototype,"columnModel",2),_e([Tt],dg.prototype,"postConstruct",1),dg=_e([At("pinnedWidthService")],dg);var cg=class extends En{constructor(){super(...arguments),this.events=[]}postConstruct(){"clientSide"==this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel)}dispatchExpanded(e,t){if(null==this.clientSideRowModel)return void this.eventService.dispatchEvent(e);this.events.push(e);const n=()=>{this.clientSideRowModel&&this.clientSideRowModel.onRowGroupOpened(),this.events.forEach((e=>this.eventService.dispatchEvent(e))),this.events=[]};t?n():(null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce(n)),this.dispatchExpandedDebounced())}};_e([xt("animationFrameService")],cg.prototype,"animationFrameService",2),_e([xt("rowModel")],cg.prototype,"rowModel",2),_e([Tt],cg.prototype,"postConstruct",1),cg=_e([At("rowNodeEventThrottle")],cg);var gg=(e,t)=>{var n;return"clientSide"===(null!=(n=t.rowModelType)?n:"clientSide")?{module:"@ag-grid-enterprise/row-grouping"}:null},ug={enableRowGroup:gg,rowGroup:gg,rowGroupIndex:gg,enablePivot:gg,enableValue:gg,pivot:gg,pivotIndex:gg,aggFunc:gg,cellEditor:e=>"agRichSelect"===e.cellEditor||"agRichSelectCellEditor"===e.cellEditor?{module:"@ag-grid-enterprise/rich-select"}:null,menuTabs:e=>{var t;const n=["columnsMenuTab","generalMenuTab"];return(null==(t=e.menuTabs)?void 0:t.some((e=>n.includes(e))))?{module:"@ag-grid-enterprise/menu"}:null},columnsMenuParams:{module:["@ag-grid-enterprise/menu","@ag-grid-enterprise/column-tool-panel"]},columnChooserParams:{module:["@ag-grid-enterprise/menu","@ag-grid-enterprise/column-tool-panel"]},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],dependencies:(e,{rowSelection:t})=>"multiple"===t?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],dependencies:(e,{rowSelection:t})=>"multiple"===t?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],dependencies:(e,{rowSelection:t})=>"multiple"===t?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},children:()=>hg},hg={objectName:"colDef",allProperties:Object.keys({headerName:void 0,columnGroupShow: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,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc: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,columnsMenuParams: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,suppressCellFlash: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,suppressMenu: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,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight: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}),docsUrl:"column-properties/",deprecations:{columnsMenuParams:{version:"31.1",message:"Use `columnChooserParams` instead."},suppressMenu:{version:"31.1",message:"Use `suppressHeaderMenuButton` instead."},suppressCellFlash:{version:"31.2",message:"Use `enableCellChangeFlash={false}` in the ColDef"},dndSource:{version:"31.2",message:"This feature has been replaced by `Row Dragging to an External DropZone`."},dndSourceOnRowDrag:{version:"31.2",message:"This feature has been replaced by `Row Dragging to an External DropZone`."}},validations:ug},pg={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!1,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:"\t",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!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,suppressChartToolPanelsButton:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressAsyncEvents:!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,enableCellChangeFlash:!1,cellFlashDelay:500,cellFlashDuration:500,cellFadeDelay:1e3,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupIncludeTotalFooter:!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,suppressServerSideInfiniteScroll:!1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSideSortOnServer:!1,serverSideFilterOnServer:!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,suppressGroupMaintainValueType:!1,functionsPassive:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1},mg={sideBar:{module:"@ag-grid-enterprise/side-bar"},statusBar:{module:"@ag-grid-enterprise/status-bar"},enableCharts:{module:"@ag-grid-enterprise/charts"},getMainMenuItems:{module:"@ag-grid-enterprise/menu"},getContextMenuItems:{module:"@ag-grid-enterprise/menu"},allowContextMenuWithControlKey:{module:"@ag-grid-enterprise/menu"},enableAdvancedFilter:{module:"@ag-grid-enterprise/advanced-filter"},treeData:{supportedRowModels:["clientSide","serverSide"],module:"@ag-grid-enterprise/row-grouping",dependencies:e=>{var t;const n=null!=(t=e.rowModelType)?t:"clientSide";switch(n){case"clientSide":const t=`treeData requires 'getDataPath' in the ${n} row model.`;return e.getDataPath?null:t;case"serverSide":const i=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${n} row model.`;return e.isServerSideGroup&&e.getServerSideGroupKey?null:i}return null}},masterDetail:{module:"@ag-grid-enterprise/master-detail"},enableRangeSelection:{module:"@ag-grid-enterprise/range-selection"},enableRangeHandle:{dependencies:{enableRangeSelection:[!0]}},enableFillHandle:{dependencies:{enableRangeSelection:[!0]}},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupIncludeFooter:{supportedRowModels:["clientSide","serverSide"],dependencies:e=>{var t;switch(null!=(t=e.rowModelType)?t:"clientSide"){case"clientSide":return null;case"serverSide":const t="groupIncludeFooter is not supported alongside suppressServerSideInfiniteScroll";return e.suppressServerSideInfiniteScroll?t:null}return null}},groupIncludeTotalFooter:{supportedRowModels:["clientSide"]},groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:[void 0,!1],groupRemoveLowestSingleChildren:[void 0,!1]}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:[void 0,!1],groupRemoveSingleChildren:[void 0,!1]}},groupSelectsChildren:{dependencies:{rowSelection:["multiple"]}},suppressParentsInRowNodes:{dependencies:{groupSelectsChildren:[void 0,!1]}},viewportDatasource:{supportedRowModels:["viewport"],module:"@ag-grid-enterprise/viewport-row-model"},serverSideDatasource:{supportedRowModels:["serverSide"],module:"@ag-grid-enterprise/server-side-row-model"},cacheBlockSize:{supportedRowModels:["serverSide","infinite"]},datasource:{supportedRowModels:["infinite"],module:"@ag-grid-community/infinite-row-model"},rowData:{supportedRowModels:["clientSide"],module:"@ag-grid-community/client-side-row-model"},columnDefs:()=>hg,defaultColDef:()=>hg,defaultColGroupDef:()=>hg,autoGroupColumnDef:()=>hg},vg={objectName:"gridOptions",allProperties:[...Qn.ALL_PROPERTIES,...Xn.EVENT_CALLBACKS],propertyExceptions:["api","columnApi"],docsUrl:"grid-options/",deprecations:{enableChartToolPanelsButton:{version:"29"},functionsPassive:{version:"29.2"},onColumnRowGroupChangeRequest:{version:"29.2"},onColumnPivotChangeRequest:{version:"29.2"},onColumnValueChangeRequest:{version:"29.2"},onColumnAggFuncChangeRequest:{version:"29.2"},serverSideFilterAllLevels:{version:"30",message:"All server-side group levels are now filtered by default. This can be toggled using `serverSideOnlyRefreshFilteredGroups`."},suppressAggAtRootLevel:{version:"30",message:"The root level aggregation is now suppressed by default. This can be toggled using `alwaysAggregateAtRootLevel`."},excludeHiddenColumnsFromQuickFilter:{version:"30",message:"Hidden columns are now excluded from the Quick Filter by default. This can be toggled using `includeHiddenColumnsInQuickFilter`."},enterMovesDown:{version:"30",renamed:"enterNavigatesVertically"},enterMovesDownAfterEdit:{version:"30",renamed:"enterNavigatesVerticallyAfterEdit"},suppressParentsInRowNodes:{version:"30.2",message:"Using suppressParentsInRowNodes is no longer recommended. To serialize nodes it is now recommended to instead remove the parent node reference before serialization."},advancedFilterModel:{version:"31",message:"Use `initialState.filter.advancedFilterModel` instead."},suppressAsyncEvents:{version:"31",message:"Events should be handled asynchronously."},cellFadeDelay:{version:"31.1",renamed:"cellFadeDuration"},cellFlashDelay:{version:"31.1",renamed:"cellFlashDuration"},suppressServerSideInfiniteScroll:{version:"31.1"},serverSideSortOnServer:{version:"31.1"},serverSideFilterOnServer:{version:"31.1"},enableCellChangeFlash:{version:"31.2",message:"Use `enableCellChangeFlash` in the `ColDef` or `defaultColDef` for all columns."},groupIncludeFooter:{version:"31.3",message:"Use `groupTotalRow` instead."},groupIncludeTotalFooter:{version:"31.3",message:"Use `grandTotalRow` instead."}},validations:mg},fg=class{constructor(){this.destroyed=!1,this.domDataKey="__AG_"+Math.random().toString(),this.propertyEventService=new Lt,this.globalEventHandlerFactory=e=>(t,n)=>{if(this.destroyed)return;const i=xn.has(t);if(i&&!e||!i&&e)return;const o=Xn.getCallbackForEvent(t),r=this.gridOptions[o];"function"==typeof r&&this.frameworkOverrides.wrapOutgoing((()=>{r(n)}))}}get context(){return this.gridOptions.context}init(){this.columnApi=new Sc(this.api);const e=!this.get("suppressAsyncEvents");this.eventService.addGlobalListener(this.globalEventHandlerFactory().bind(this),e),this.eventService.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.propertyEventService.setFrameworkOverrides(this.frameworkOverrides),this.getScrollbarWidth()}destroy(){this.destroyed=!0,this.columnApi=void 0}get(e){var t;return null!=(t=this.gridOptions[e])?t:pg[e]}getCallback(e){return this.mergeGridCommonParams(this.gridOptions[e])}exists(e){return ze(this.gridOptions[e])}mergeGridCommonParams(e){if(e){return t=>{const n=t;return n.api=this.api,n.columnApi=this.columnApi,n.context=this.context,e(n)}}return e}static toBoolean(e){return"boolean"==typeof e?e:"string"==typeof e&&("TRUE"===e.toUpperCase()||""==e)}static toNumber(e){if("number"==typeof e)return e;if("string"==typeof e){const t=parseInt(e);if(isNaN(t))return;return t}}static toConstrainedNum(e,t){return n=>{const i=fg.toNumber(n);if(!(null==i||i<e||i>t))return i}}static getCoercedValue(e,t){const n=fg.PROPERTY_COERCIONS.get(e);return n?n(t):t}static getCoercedGridOptions(e){const t={};return Object.entries(e).forEach((([e,n])=>{const i=fg.getCoercedValue(e,n);t[e]=i})),t}updateGridOptions({options:e,force:t,source:n="api"}){const i={id:fg.changeSetId++,properties:[]},o=[];Object.entries(e).forEach((([e,r])=>{"api"===n&&Yn[e]&&st(`${e} is an initial property and cannot be updated.`);const a=fg.getCoercedValue(e,r),s=t||"object"==typeof a&&"api"===n,l=this.gridOptions[e];if(s||l!==a){this.gridOptions[e]=a;const t={type:e,currentValue:a,previousValue:l,changeSet:i,source:n};o.push(t)}})),this.validationService.processGridOptions(this.gridOptions),i.properties=o.map((e=>e.type)),o.forEach((e=>{this.gridOptions.debug&&console.log(`AG Grid: Updated property ${e.type} from `,e.previousValue," to ",e.currentValue),this.propertyEventService.dispatchEvent(e)}))}addEventListener(e,t){this.propertyEventService.addEventListener(e,t)}removeEventListener(e,t){this.propertyEventService.removeEventListener(e,t)}getScrollbarWidth(){if(null==this.scrollbarWidth){const e="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:to();null!=e&&(this.scrollbarWidth=e,this.eventService.dispatchEvent({type:An.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth}isRowModelType(e){return this.gridOptions.rowModelType===e||"clientSide"===e&&Ve(this.gridOptions.rowModelType)}isDomLayout(e){var t;return(null!=(t=this.gridOptions.domLayout)?t:"normal")===e}isRowSelection(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection}useAsyncEvents(){return!this.get("suppressAsyncEvents")}isGetRowHeightFunction(){return"function"==typeof this.gridOptions.getRowHeight}getRowHeightForNode(e,t=!1,n){if(null==n&&(n=this.environment.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(t)return{height:n,estimated:!0};const i={node:e,data:e.data},o=this.getCallback("getRowHeight")(i);if(this.isNumeric(o))return 0===o&&st("The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead."),{height:Math.max(1,o),estimated:!1}}if(e.detail&&this.get("masterDetail"))return this.getMasterDetailRowHeight();return{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:n,estimated:!1}}getMasterDetailRowHeight(){return this.get("detailRowAutoHeight")?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}}getRowHeightAsNumber(){if(!this.gridOptions.rowHeight||Ve(this.gridOptions.rowHeight))return this.environment.getDefaultRowHeight();const e=this.environment.refreshRowHeightVariable();return-1!==e?e:(console.warn("AG Grid row height must be a number if not using standard row model"),this.environment.getDefaultRowHeight())}isNumeric(e){return!isNaN(e)&&"number"==typeof e&&isFinite(e)}getDomDataKey(){return this.domDataKey}getDomData(e,t){const n=e[this.getDomDataKey()];return n?n[t]:void 0}setDomData(e,t,n){const i=this.getDomDataKey();let o=e[i];Ve(o)&&(o={},e[i]=o),o[t]=n}getDocument(){let e=null;return this.gridOptions.getDocument&&ze(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&ze(e)?e:document}getWindow(){return this.getDocument().defaultView||window}getRootNode(){return this.eGridDiv.getRootNode()}getActiveDomElement(){return this.getRootNode().activeElement}getAsyncTransactionWaitMillis(){return ze(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:50}isAnimateRows(){return!this.get("ensureDomOrder")&&this.get("animateRows")}isGroupRowsSticky(){return!(this.get("paginateChildRows")||this.get("groupHideOpenParents")||this.isDomLayout("print"))}isColumnsSortingCoupledToGroup(){const e=this.gridOptions.autoGroupColumnDef;return!(null==e?void 0:e.comparator)&&!this.get("treeData")}getGroupAggFiltering(){const e=this.gridOptions.groupAggFiltering;return"function"==typeof e?this.getCallback("groupAggFiltering"):!0===e?()=>!0:void 0}getGrandTotalRow(){const e=this.gridOptions.grandTotalRow;if(e)return e;return this.gridOptions.groupIncludeTotalFooter?"bottom":void 0}getGroupTotalRowCallback(){const e=this.get("groupTotalRow");if("function"==typeof e)return this.getCallback("groupTotalRow");if(e)return()=>e;const t=this.get("groupIncludeFooter");if("function"==typeof t){const e=this.getCallback("groupIncludeFooter");return t=>e(t)?"bottom":void 0}return()=>t?"bottom":void 0}isGroupMultiAutoColumn(){return this.gridOptions.groupDisplayType?"multipleColumns"===this.gridOptions.groupDisplayType:this.get("groupHideOpenParents")}isGroupUseEntireRow(e){return!e&&"groupRows"===this.gridOptions.groupDisplayType}getGridCommonParams(){return{api:this.api,columnApi:this.columnApi,context:this.context}}addGridCommonParams(e){const t=e;return t.api=this.api,t.columnApi=this.columnApi,t.context=this.context,t}};fg.PROPERTY_COERCIONS=new Map([...Qn.BOOLEAN_PROPERTIES.map((e=>[e,fg.toBoolean])),...Qn.NUMBER_PROPERTIES.map((e=>[e,fg.toNumber])),["groupAggFiltering",e=>"function"==typeof e?e:fg.toBoolean(e)],["pageSize",fg.toConstrainedNum(1,Number.MAX_VALUE)],["autoSizePadding",fg.toConstrainedNum(0,Number.MAX_VALUE)],["keepDetailRowsCount",fg.toConstrainedNum(1,Number.MAX_VALUE)],["rowBuffer",fg.toConstrainedNum(0,Number.MAX_VALUE)],["infiniteInitialRowCount",fg.toConstrainedNum(1,Number.MAX_VALUE)],["cacheOverflowSize",fg.toConstrainedNum(1,Number.MAX_VALUE)],["cacheBlockSize",fg.toConstrainedNum(1,Number.MAX_VALUE)],["serverSideInitialRowCount",fg.toConstrainedNum(1,Number.MAX_VALUE)],["viewportRowModelPageSize",fg.toConstrainedNum(1,Number.MAX_VALUE)],["viewportRowModelBufferSize",fg.toConstrainedNum(0,Number.MAX_VALUE)]]),fg.changeSetId=0,_e([xt("gridOptions")],fg.prototype,"gridOptions",2),_e([xt("eventService")],fg.prototype,"eventService",2),_e([xt("environment")],fg.prototype,"environment",2),_e([xt("frameworkOverrides")],fg.prototype,"frameworkOverrides",2),_e([xt("eGridDiv")],fg.prototype,"eGridDiv",2),_e([xt("validationService")],fg.prototype,"validationService",2),_e([xt("gridApi")],fg.prototype,"api",2),_e([Tt],fg.prototype,"init",1),_e([Rt],fg.prototype,"destroy",1),fg=_e([At("gridOptionsService")],fg);var Cg=class extends En{getLocaleTextFunc(){const e=this.gos.getCallback("getLocaleText");if(e)return(t,n,i)=>e({key:t,defaultValue:n,variableValues:i});const t=this.gos.get("localeText");return(e,n,i)=>{let o=t&&t[e];if(o&&i&&i.length){let e=0;for(;!(e>=i.length);){if(-1===o.indexOf("${variable}"))break;o=o.replace("${variable}",i[e++])}}return null!=o?o:n}}};Cg=_e([At("localeService")],Cg);var wg=class _FakeVScrollComp extends ag{constructor(){super(_FakeVScrollComp.TEMPLATE,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new Dl(this.eContainer)),this.ctrlsService.register("fakeVScrollComp",this),this.addManagedListener(this.eventService,An.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onRowContainerHeightChanged.bind(this))}setScrollVisible(){const e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.invisibleScrollbar,n=e&&this.gos.getScrollbarWidth()||0,i=0===n&&t?16:n;this.addOrRemoveCssClass("ag-scrollbar-invisible",t),Qo(this.getGui(),i),Qo(this.eViewport,i),Qo(this.eContainer,i),this.setDisplayed(e,{skipAriaHidden:!0})}onRowContainerHeightChanged(){const{ctrlsService:e}=this,t=e.getGridBodyCtrl().getBodyViewportElement(),n=this.getScrollPosition(),i=t.scrollTop;n!=i&&this.setScrollPosition(i,!0)}getScrollPosition(){return this.getViewport().scrollTop}setScrollPosition(e,t){t||Vo(this.getViewport())||this.attemptSettingScrollPosition(e),this.getViewport().scrollTop=e}};wg.TEMPLATE='<div class="ag-body-vertical-scroll" aria-hidden="true">\n <div class="ag-body-vertical-scroll-viewport" ref="eViewport">\n <div class="ag-body-vertical-scroll-container" ref="eContainer"></div>\n </div>\n </div>',_e([Tt],wg.prototype,"postConstruct",1);var yg=wg,bg={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},Eg=["january","february","march","april","may","june","july","august","september","october","november","december"],Sg=class extends En{constructor(){super(...arguments),this.dataTypeDefinitions={},this.isWaitingForRowData=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[]}init(){this.groupHideOpenParents=this.gos.get("groupHideOpenParents"),this.addManagedPropertyListener("groupHideOpenParents",(()=>{this.groupHideOpenParents=this.gos.get("groupHideOpenParents")})),this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",(e=>{this.processDataTypeDefinitions(),this.columnModel.recreateColumnDefs(Un(e.source))}))}processDataTypeDefinitions(){var e;const t=this.getDefaultDataTypes();this.dataTypeDefinitions={},Object.entries(t).forEach((([e,t])=>{this.dataTypeDefinitions[e]=Le(Ie({},t),{groupSafeValueFormatter:this.createGroupSafeValueFormatter(t)})}));const n=null!=(e=this.gos.get("dataTypeDefinitions"))?e:{};this.dataTypeMatchers={},Object.entries(n).forEach((([e,i])=>{const o=this.processDataTypeDefinition(i,n,[e],t);o&&(this.dataTypeDefinitions[e]=o,i.dataTypeMatcher&&(this.dataTypeMatchers[e]=i.dataTypeMatcher))})),this.checkObjectValueHandlers(t),["dateString","text","number","boolean","date"].forEach((e=>{const n=this.dataTypeMatchers[e];n&&delete this.dataTypeMatchers[e],this.dataTypeMatchers[e]=null!=n?n:t[e].dataTypeMatcher}))}mergeDataTypeDefinitions(e,t){const n=Ie(Ie({},e),t);return e.columnTypes&&t.columnTypes&&t.appendColumnTypes&&(n.columnTypes=[...this.convertColumnTypes(e.columnTypes),...this.convertColumnTypes(t.columnTypes)]),n}processDataTypeDefinition(e,t,n,i){let o;const r=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){let n=i[r];const a=t[r];if(n&&a&&(n=a),!this.validateDataTypeDefinition(e,n,r))return;o=this.mergeDataTypeDefinitions(n,e)}else{if(n.includes(r))return void st('Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.');const a=t[r];if(!this.validateDataTypeDefinition(e,a,r))return;const s=this.processDataTypeDefinition(a,t,[...n,r],i);if(!s)return;o=this.mergeDataTypeDefinitions(s,e)}return Le(Ie({},o),{groupSafeValueFormatter:this.createGroupSafeValueFormatter(o)})}validateDataTypeDefinition(e,t,n){return t?t.baseDataType===e.baseDataType||(st('The "baseDataType" property of a data type definition must match that of its parent.'),!1):(st(`The data type definition ${n} does not exist.`),!1)}createGroupSafeValueFormatter(e){if(e.valueFormatter)return t=>{var n,i;if(null==(n=t.node)?void 0:n.group){const n=t.column.getAggFunc();if(n){if("first"===n||"last"===n)return e.valueFormatter(t);if("number"===e.baseDataType&&"count"!==n){if("number"==typeof t.value)return e.valueFormatter(t);if("object"==typeof t.value){if(!t.value)return;if("toNumber"in t.value)return e.valueFormatter(Le(Ie({},t),{value:t.value.toNumber()}));if("value"in t.value)return e.valueFormatter(Le(Ie({},t),{value:t.value.value}))}}}if(!this.gos.get("suppressGroupMaintainValueType"))return}else if(this.groupHideOpenParents&&t.column.isRowGroupActive()){if("string"!=typeof t.value||(null==(i=e.dataTypeMatcher)?void 0:i.call(e,t.value)))return e.valueFormatter(t);if(!this.gos.get("suppressGroupMaintainValueType"))return}return e.valueFormatter(t)}}updateColDefAndGetDataTypeDefinitionColumnType(e,t,n){let{cellDataType:i}=t;const{field:o}=t;if(void 0===i&&(i=e.cellDataType),null!=i&&!0!==i||(i=!!this.canInferCellDataType(e,t)&&this.inferCellDataType(o,n)),!i)return void(e.cellDataType=!1);const r=this.dataTypeDefinitions[i];if(r)return e.cellDataType=i,r.groupSafeValueFormatter&&(e.valueFormatter=r.groupSafeValueFormatter),r.valueParser&&(e.valueParser=r.valueParser),r.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,r,n),r.columnTypes;st(`Missing data type definition - "${i}"`)}updateColDefAndGetColumnType(e,t,n){var i,o;const r=this.updateColDefAndGetDataTypeDefinitionColumnType(e,t,n),a=null!=(o=null!=(i=t.type)?i:r)?o:e.type;return e.type=a,a?this.convertColumnTypes(a):void 0}addColumnListeners(e){if(!this.isWaitingForRowData)return;const t=this.columnStateUpdatesPendingInference[e.getColId()];if(!t)return;const n=e=>{t.add(e.key)};e.addEventListener(zt.EVENT_STATE_UPDATED,n),this.columnStateUpdateListenerDestroyFuncs.push((()=>e.removeEventListener(zt.EVENT_STATE_UPDATED,n)))}canInferCellDataType(e,t){var n;if("clientSide"!==this.rowModel.getType())return!1;const i={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(this.doColDefPropsPreventInference(t,i))return!1;const o=null===t.type?e.type:t.type;if(o){const e=null!=(n=this.gos.get("columnTypes"))?n:{};if(this.convertColumnTypes(o).some((t=>{const n=e[t.trim()];return n&&this.doColDefPropsPreventInference(n,i)})))return!1}return!this.doColDefPropsPreventInference(e,i)}doColDefPropsPreventInference(e,t){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some((([n,i])=>this.doesColDefPropPreventInference(e,t,n,i)))}doesColDefPropPreventInference(e,t,n,i){if(!t[n])return!1;const o=e[n];return null===o?(t[n]=!1,!1):void 0===i?!!o:o===i}inferCellDataType(e,t){var n;if(!e)return;let i;const o=this.getInitialData();if(o){const t=e.indexOf(".")>=0&&!this.gos.get("suppressFieldDotNotation");i=tt(o,e,t)}else this.initWaitForRowData(t);if(null==i)return;const[r]=null!=(n=Object.entries(this.dataTypeMatchers).find((([e,t])=>t(i))))?n:["object"];return r}getInitialData(){const e=this.gos.get("rowData");if(null==e?void 0:e.length)return e[0];if(this.initialData)return this.initialData;{const e=this.rowModel.getRootNode().allLeafChildren;if(null==e?void 0:e.length)return e[0].data}return null}initWaitForRowData(e){if(this.columnStateUpdatesPendingInference[e]=new Set,this.isWaitingForRowData)return;this.isWaitingForRowData=!0;const t=this.isColumnTypeOverrideInDataTypeDefinitions;t&&this.columnModel.queueResizeOperations();const n=this.addManagedListener(this.eventService,An.EVENT_ROW_DATA_UPDATE_STARTED,(e=>{const{firstRowData:i}=e;if(!i)return;null==n||n(),this.isWaitingForRowData=!1,this.processColumnsPendingInference(i,t),this.columnStateUpdatesPendingInference={},t&&this.columnModel.processResizeOperations();const o={type:An.EVENT_DATA_TYPES_INFERRED};this.eventService.dispatchEvent(o)}))}isPendingInference(){return this.isWaitingForRowData}processColumnsPendingInference(e,t){this.initialData=e;const n=[];this.columnStateUpdateListenerDestroyFuncs.forEach((e=>e())),this.columnStateUpdateListenerDestroyFuncs=[];const i={},o={};Object.entries(this.columnStateUpdatesPendingInference).forEach((([e,r])=>{const a=this.columnModel.getGridColumn(e);if(!a)return;const s=a.getColDef();if(!this.columnModel.resetColumnDefIntoColumn(a,"cellDataTypeInferred"))return;const l=a.getColDef();if(t&&l.type&&l.type!==s.type){const t=this.getUpdatedColumnState(a,r);t.rowGroup&&null==t.rowGroupIndex&&(i[e]=t),t.pivot&&null==t.pivotIndex&&(o[e]=t),n.push(t)}})),t&&n.push(...this.columnModel.generateColumnStateForRowGroupAndPivotIndexes(i,o)),n.length&&this.columnModel.applyColumnState({state:n},"cellDataTypeInferred"),this.initialData=null}getUpdatedColumnState(e,t){const n=this.columnModel.getColumnStateFromColDef(e);return t.forEach((e=>{delete n[e],"rowGroup"===e?delete n.rowGroupIndex:"pivot"===e&&delete n.pivotIndex})),n}checkObjectValueHandlers(e){const t=this.dataTypeDefinitions.object,n=e.object;this.hasObjectValueParser=t.valueParser!==n.valueParser,this.hasObjectValueFormatter=t.valueFormatter!==n.valueFormatter}convertColumnTypes(e){let t=[];if(e instanceof Array){e.some((e=>"string"!=typeof e))?console.warn("if colDef.type is supplied an array it should be of type 'string[]'"):t=e}else"string"==typeof e?t=e.split(","):console.warn("colDef.type should be of type 'string' | 'string[]'");return t}getDateStringTypeDefinition(e){var t;return e&&null!=(t=this.getDataTypeDefinition(e))?t:this.dataTypeDefinitions.dateString}getDateParserFunction(e){return this.getDateStringTypeDefinition(e).dateParser}getDateFormatterFunction(e){return this.getDateStringTypeDefinition(e).dateFormatter}getDataTypeDefinition(e){const t=e.getColDef();if(t.cellDataType)return this.dataTypeDefinitions[t.cellDataType]}getBaseDataType(e){var t;return null==(t=this.getDataTypeDefinition(e))?void 0:t.baseDataType}checkType(e,t){var n;if(null==t)return!0;const i=null==(n=this.getDataTypeDefinition(e))?void 0:n.dataTypeMatcher;return!i||i(t)}validateColDef(e){"object"===e.cellDataType&&(e.valueFormatter!==this.dataTypeDefinitions.object.groupSafeValueFormatter||this.hasObjectValueFormatter||st('Cell data type is "object" but no value formatter has been provided. Please either provide an object data type definition with a value formatter, or set "colDef.valueFormatter"'),e.editable&&e.valueParser===this.dataTypeDefinitions.object.valueParser&&!this.hasObjectValueParser&&st('Cell data type is "object" but no value parser has been provided. Please either provide an object data type definition with a value parser, or set "colDef.valueParser"'))}setColDefPropertiesForBaseDataType(e,t,n){const i=(e,n,i)=>{let o=e.getColDef().valueFormatter;return o===t.groupSafeValueFormatter&&(o=t.valueFormatter),this.valueService.formatValue(e,n,i,o)},o=St.__isRegistered("@ag-grid-enterprise/set-filter",this.context.getGridId()),r=this.localeService.getLocaleTextFunc(),a=t=>{const{filterParams:n}=e;e.filterParams="object"==typeof n?Ie(Ie({},n),t):t};switch(t.baseDataType){case"number":e.cellEditor="agNumberCellEditor",o&&a({comparator:(e,t)=>{const n=null==e?0:parseInt(e),i=null==t?0:parseInt(t);return n===i?0:n>i?1:-1}});break;case"boolean":e.cellEditor="agCheckboxCellEditor",e.cellRenderer="agCheckboxCellRenderer",e.suppressKeyboardEvent=e=>!!e.colDef.editable&&e.event.key===pr.SPACE,a(o?{valueFormatter:e=>ze(e.value)?r(String(e.value),e.value?"True":"False"):r("blanks","(Blanks)")}:{maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(e,t)=>t,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,t)=>!1===t,numberOfInputs:0}]});break;case"date":e.cellEditor="agDateCellEditor",e.keyCreator=e=>i(e.column,e.node,e.value),o&&a({valueFormatter:e=>{const t=i(e.column,e.node,e.value);return ze(t)?t:r("blanks","(Blanks)")},treeList:!0,treeListFormatter:(e,t)=>{if(1===t&&null!=e){const t=Eg[Number(e)-1];return r(t,bg[t])}return null!=e?e:r("blanks","(Blanks)")}});break;case"dateString":{e.cellEditor="agDateStringCellEditor",e.keyCreator=e=>i(e.column,e.node,e.value);const n=t.dateParser;a(o?{valueFormatter:e=>{const t=i(e.column,e.node,e.value);return ze(t)?t:r("blanks","(Blanks)")},treeList:!0,treeListPathGetter:e=>{const t=n(null!=e?e:void 0);return t?[String(t.getFullYear()),String(t.getMonth()+1),String(t.getDate())]:null},treeListFormatter:(e,t)=>{if(1===t&&null!=e){const t=Eg[Number(e)-1];return r(t,bg[t])}return null!=e?e:r("blanks","(Blanks)")}}:{comparator:(e,t)=>{const i=n(t);return null==t||i<e?-1:i>e?1:0}});break}case"object":e.cellEditorParams={useFormatter:!0},e.comparator=(e,t)=>{const o=this.columnModel.getPrimaryColumn(n),r=null==o?void 0:o.getColDef();if(!o||!r)return 0;const a=null==e?"":i(o,null,e),s=null==t?"":i(o,null,t);return a===s?0:a>s?1:-1},e.keyCreator=e=>i(e.column,e.node,e.value),o?a({valueFormatter:e=>{const t=i(e.column,e.node,e.value);return ze(t)?t:r("blanks","(Blanks)")}}):e.filterValueGetter=e=>i(e.column,e.node,this.valueService.getValue(e.column,e.node))}}getDefaultDataTypes(){const e=e=>!!e.match("^\\d{4}-\\d{2}-\\d{2}$"),t=this.localeService.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:e=>{var t,n;return""===(null==(n=null==(t=e.newValue)?void 0:t.trim)?void 0:n.call(t))?null:Number(e.newValue)},valueFormatter:e=>null==e.value?"":"number"!=typeof e.value||isNaN(e.value)?t("invalidNumber","Invalid Number"):String(e.value),dataTypeMatcher:e=>"number"==typeof e},text:{baseDataType:"text",valueParser:e=>""===e.newValue?null:Be(e.newValue),dataTypeMatcher:e=>"string"==typeof e},boolean:{baseDataType:"boolean",valueParser:e=>{var t,n;return null==e.newValue?e.newValue:""===(null==(n=null==(t=e.newValue)?void 0:t.trim)?void 0:n.call(t))?null:"true"===String(e.newValue).toLowerCase()},valueFormatter:e=>null==e.value?"":String(e.value),dataTypeMatcher:e=>"boolean"==typeof e},date:{baseDataType:"date",valueParser:e=>fo(null==e.newValue?null:String(e.newValue)),valueFormatter:e=>{var n;return null==e.value?"":e.value instanceof Date&&!isNaN(e.value.getTime())?null!=(n=po(e.value,!1))?n:"":t("invalidDate","Invalid Date")},dataTypeMatcher:e=>e instanceof Date},dateString:{baseDataType:"dateString",dateParser:e=>{var t;return null!=(t=fo(e))?t:void 0},dateFormatter:e=>{var t;return null!=(t=po(null!=e?e:null,!1))?t:void 0},valueParser:t=>e(String(t.newValue))?t.newValue:null,valueFormatter:t=>e(String(t.value))?t.value:"",dataTypeMatcher:t=>"string"==typeof t&&e(t)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:e=>{var t;return null!=(t=Be(e.value))?t:""}}}}};_e([xt("rowModel")],Sg.prototype,"rowModel",2),_e([xt("columnModel")],Sg.prototype,"columnModel",2),_e([xt("valueService")],Sg.prototype,"valueService",2),_e([Tt],Sg.prototype,"init",1),Sg=_e([At("dataTypeService")],Sg);var Dg=class extends En{constructor(){super(...arguments),this.waitingForColumns=!1}postConstruct(){this.addManagedPropertyListener("columnDefs",(e=>this.setColumnDefs(e)))}start(){this.ctrlsService.whenReady((()=>{const e=this.gos.get("columnDefs");e?this.setColumnsAndData(e):this.waitingForColumns=!0,this.gridReady()}))}setColumnsAndData(e){this.columnModel.setColumnDefs(null!=e?e:[],"gridInitializing"),this.rowModel.start()}gridReady(){this.dispatchGridReadyEvent();const e=St.__isRegistered("@ag-grid-enterprise/core",this.context.getGridId());new Ac("AG Grid",(()=>this.gos.get("debug"))).log(`initialised successfully, enterprise = ${e}`)}dispatchGridReadyEvent(){const e={type:An.EVENT_GRID_READY};this.eventService.dispatchEvent(e)}setColumnDefs(e){const t=this.gos.get("columnDefs");if(t)return this.waitingForColumns?(this.waitingForColumns=!1,void this.setColumnsAndData(t)):void this.columnModel.setColumnDefs(t,Un(e.source))}};_e([xt("ctrlsService")],Dg.prototype,"ctrlsService",2),_e([xt("columnModel")],Dg.prototype,"columnModel",2),_e([xt("rowModel")],Dg.prototype,"rowModel",2),_e([Tt],Dg.prototype,"postConstruct",1),Dg=_e([At("syncService")],Dg);var Tg=class extends En{constructor(){super(...arguments),this.manuallyDisplayed=!1}postConstruct(){this.addManagedListener(this.eventService,An.EVENT_ROW_DATA_UPDATED,(()=>this.onRowDataUpdated())),this.addManagedListener(this.eventService,An.EVENT_NEW_COLUMNS_LOADED,(()=>this.onNewColumnsLoaded()))}registerOverlayWrapperComp(e){this.overlayWrapperComp=e,(!this.gos.get("columnDefs")||this.gos.isRowModelType("clientSide")&&!this.gos.get("rowData"))&&this.showLoadingOverlay()}showLoadingOverlay(){if(this.gos.get("suppressLoadingOverlay"))return;const e=this.userComponentFactory.getLoadingOverlayCompDetails({});this.showOverlay(e,"ag-overlay-loading-wrapper","loadingOverlayComponentParams")}showNoRowsOverlay(){if(this.gos.get("suppressNoRowsOverlay"))return;const e=this.userComponentFactory.getNoRowsOverlayCompDetails({});this.showOverlay(e,"ag-overlay-no-rows-wrapper","noRowsOverlayComponentParams")}showOverlay(e,t,n){const i=e.newAgStackInstance(),o=this.addManagedPropertyListener(n,(({currentValue:e})=>{i.then((t=>{t.refresh&&t.refresh(this.gos.addGridCommonParams(Ie({},null!=e?e:{})))}))}));this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.overlayWrapperComp.showOverlay(i,t,o)}hideOverlay(){this.manuallyDisplayed=!1,this.overlayWrapperComp.hideOverlay()}showOrHideOverlay(){const e=this.paginationProxy.isEmpty(),t=this.gos.get("suppressNoRowsOverlay");e&&!t?this.showNoRowsOverlay():this.hideOverlay()}onRowDataUpdated(){this.showOrHideOverlay()}onNewColumnsLoaded(){!this.columnModel.isReady()||this.paginationProxy.isEmpty()||this.manuallyDisplayed||this.hideOverlay()}};_e([xt("userComponentFactory")],Tg.prototype,"userComponentFactory",2),_e([xt("paginationProxy")],Tg.prototype,"paginationProxy",2),_e([xt("columnModel")],Tg.prototype,"columnModel",2),_e([Tt],Tg.prototype,"postConstruct",1),Tg=_e([At("overlayService")],Tg);var Rg=class extends En{constructor(){super(...arguments),this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=vt((()=>this.dispatchQueuedStateUpdateEvents()),0),this.onRowGroupOpenedDebounced=vt((()=>this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState())),0),this.onRowSelectedDebounced=vt((()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())}),0),this.staleStateKeys=new Set}postConstruct(){var e;this.isClientSideRowModel="clientSide"===this.rowModel.getType(),this.cachedState=null!=(e=this.gos.get("initialState"))?e:{},this.ctrlsService.whenReady((()=>this.suppressEventsAndDispatchInitEvent((()=>this.setupStateOnGridReady()))));const t=this.addManagedListener(this.eventService,An.EVENT_NEW_COLUMNS_LOADED,(({source:e})=>{"gridInitializing"===e&&(null==t||t(),this.suppressEventsAndDispatchInitEvent((()=>this.setupStateOnColumnsInitialised())))})),n=this.addManagedListener(this.eventService,An.EVENT_ROW_COUNT_READY,(()=>{null==n||n(),this.suppressEventsAndDispatchInitEvent((()=>this.setupStateOnRowCountReady()))})),i=this.addManagedListener(this.eventService,An.EVENT_FIRST_DATA_RENDERED,(()=>{null==i||i(),this.suppressEventsAndDispatchInitEvent((()=>this.setupStateOnFirstDataRendered()))}))}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setupStateOnGridReady(){this.updateCachedState("sideBar",this.getSideBarState()),this.addManagedListener(this.eventService,An.EVENT_TOOL_PANEL_VISIBLE_CHANGED,(()=>this.updateCachedState("sideBar",this.getSideBarState()))),this.addManagedListener(this.eventService,An.EVENT_SIDE_BAR_UPDATED,(()=>this.updateCachedState("sideBar",this.getSideBarState())))}setupStateOnColumnsInitialised(){var e;const t=null!=(e=this.gos.get("initialState"))?e:{};this.setColumnState(t),this.setColumnGroupState(t),this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState()),this.addManagedListener(this.eventService,An.EVENT_COLUMN_VALUE_CHANGED,(()=>this.updateColumnState(["aggregation"]))),this.addManagedListener(this.eventService,An.EVENT_COLUMN_MOVED,(()=>this.updateColumnState(["columnOrder"]))),this.addManagedListener(this.eventService,An.EVENT_COLUMN_PINNED,(()=>this.updateColumnState(["columnPinning"]))),this.addManagedListener(this.eventService,An.EVENT_COLUMN_RESIZED,(()=>this.updateColumnState(["columnSizing"]))),this.addManagedListener(this.eventService,An.EVENT_COLUMN_VISIBLE,(()=>this.updateColumnState(["columnVisibility"]))),this.addManagedListener(this.eventService,An.EVENT_COLUMN_PIVOT_CHANGED,(()=>this.updateColumnState(["pivot"]))),this.addManagedListener(this.eventService,An.EVENT_COLUMN_PIVOT_MODE_CHANGED,(()=>this.updateColumnState(["pivot"]))),this.addManagedListener(this.eventService,An.EVENT_COLUMN_ROW_GROUP_CHANGED,(()=>this.updateColumnState(["rowGroup"]))),this.addManagedListener(this.eventService,An.EVENT_SORT_CHANGED,(()=>this.updateColumnState(["sort"]))),this.addManagedListener(this.eventService,An.EVENT_NEW_COLUMNS_LOADED,(()=>this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"]))),this.addManagedListener(this.eventService,An.EVENT_COLUMN_GROUP_OPENED,(()=>this.updateCachedState("columnGroup",this.getColumnGroupState())))}setupStateOnRowCountReady(){var e;const{filter:t,rowGroupExpansion:n,rowSelection:i,pagination:o}=null!=(e=this.gos.get("initialState"))?e:{},r=this.gos.get("advancedFilterModel");(t||r)&&this.setFilterState(t,r),n&&this.setRowGroupExpansionState(n),i&&this.setRowSelectionState(i),o&&this.setPaginationState(o),this.updateCachedState("filter",this.getFilterState()),this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState()),this.updateCachedState("rowSelection",this.getRowSelectionState()),this.updateCachedState("pagination",this.getPaginationState()),this.addManagedListener(this.eventService,An.EVENT_FILTER_CHANGED,(()=>this.updateCachedState("filter",this.getFilterState()))),this.addManagedListener(this.eventService,An.EVENT_ROW_GROUP_OPENED,(()=>this.onRowGroupOpenedDebounced())),this.addManagedListener(this.eventService,An.EVENT_EXPAND_COLLAPSE_ALL,(()=>this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState()))),this.addManagedListener(this.eventService,An.EVENT_SELECTION_CHANGED,(()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()})),this.addManagedListener(this.eventService,An.EVENT_PAGINATION_CHANGED,(e=>{(e.newPage||e.newPageSize)&&this.updateCachedState("pagination",this.getPaginationState())}))}setupStateOnFirstDataRendered(){var e;const{scroll:t,rangeSelection:n,focusedCell:i,columnOrder:o}=null!=(e=this.gos.get("initialState"))?e:{};i&&this.setFocusedCellState(i),n&&this.setRangeSelectionState(n),t&&this.setScrollState(t),this.setColumnPivotState(!!(null==o?void 0:o.orderedColIds)),this.updateCachedState("sideBar",this.getSideBarState()),this.updateCachedState("focusedCell",this.getFocusedCellState()),this.updateCachedState("rangeSelection",this.getRangeSelectionState()),this.updateCachedState("scroll",this.getScrollState()),this.addManagedListener(this.eventService,An.EVENT_CELL_FOCUSED,(()=>this.updateCachedState("focusedCell",this.getFocusedCellState()))),this.addManagedListener(this.eventService,An.EVENT_RANGE_SELECTION_CHANGED,(e=>{e.finished&&this.updateCachedState("rangeSelection",this.getRangeSelectionState())})),this.addManagedListener(this.eventService,An.EVENT_BODY_SCROLL_END,(()=>this.updateCachedState("scroll",this.getScrollState())))}getColumnState(){const e=this.columnModel.isPivotMode(),t=[],n=[],i=[],o=[],r=[],a=[],s=[],l=[],d=[],c=this.columnModel.getColumnState();for(let e=0;e<c.length;e++){const{colId:g,sort:u,sortIndex:h,rowGroup:p,rowGroupIndex:m,aggFunc:v,pivot:f,pivotIndex:C,pinned:w,hide:y,width:b,flex:E}=c[e];d.push(g),u&&(t[null!=h?h:0]={colId:g,sort:u}),p&&(n[null!=m?m:0]=g),"string"==typeof v&&i.push({colId:g,aggFunc:v}),f&&(o[null!=C?C:0]=g),w&&("right"===w?a:r).push(g),y&&s.push(g),(E||b)&&l.push({colId:g,flex:null!=E?E:void 0,width:b})}return{sort:t.length?{sortModel:t}:void 0,rowGroup:n.length?{groupColIds:n}:void 0,aggregation:i.length?{aggregationModel:i}:void 0,pivot:o.length||e?{pivotMode:e,pivotColIds:o}:void 0,columnPinning:r.length||a.length?{leftColIds:r,rightColIds:a}:void 0,columnVisibility:s.length?{hiddenColIds:s}:void 0,columnSizing:l.length?{columnSizingModel:l}:void 0,columnOrder:d.length?{orderedColIds:d}:void 0}}setColumnState(e){const{sort:t,rowGroup:n,aggregation:i,pivot:o,columnPinning:r,columnVisibility:a,columnSizing:s,columnOrder:l}=e,d={},c=e=>{let t=d[e];return t||(t={colId:e},d[e]=t,t)};t&&t.sortModel.forEach((({colId:e,sort:t},n)=>{const i=c(e);i.sort=t,i.sortIndex=n})),n&&n.groupColIds.forEach(((e,t)=>{const n=c(e);n.rowGroup=!0,n.rowGroupIndex=t})),i&&i.aggregationModel.forEach((({colId:e,aggFunc:t})=>{c(e).aggFunc=t})),o&&(o.pivotColIds.forEach(((e,t)=>{const n=c(e);n.pivot=!0,n.pivotIndex=t})),this.gos.updateGridOptions({options:{pivotMode:o.pivotMode},source:"gridInitializing"})),r&&(r.leftColIds.forEach((e=>{c(e).pinned="left"})),r.rightColIds.forEach((e=>{c(e).pinned="right"}))),a&&a.hiddenColIds.forEach((e=>{c(e).hide=!0})),s&&s.columnSizingModel.forEach((({colId:e,flex:t,width:n})=>{const i=c(e);i.flex=null!=t?t:null,i.width=n}));const g=null==l?void 0:l.orderedColIds,u=!!(null==g?void 0:g.length),h=u?g.map((e=>c(e))):Object.values(d);if(h.length){this.columnStates=h;const e={sort:null,sortIndex:null,rowGroup:null,rowGroupIndex:null,aggFunc:null,pivot:null,pivotIndex:null,pinned:null,hide:null,flex:null};this.columnModel.applyColumnState({state:h,applyOrder:u,defaultState:e},"gridInitializing")}}setColumnPivotState(e){const t=this.columnStates;this.columnStates=void 0;const n=this.columnGroupStates;if(this.columnGroupStates=void 0,this.columnModel.isSecondaryColumnsPresent()){if(t){let n=[];for(const e of t)this.columnModel.getSecondaryColumn(e.colId)&&n.push(e);this.columnModel.applyColumnState({state:n,applyOrder:e},"gridInitializing")}n&&this.columnModel.setColumnGroupState(n,"gridInitializing")}}getColumnGroupState(){const e=this.columnModel.getColumnGroupState(),t=[];return e.forEach((({groupId:e,open:n})=>{n&&t.push(e)})),t.length?{openColumnGroupIds:t}:void 0}setColumnGroupState(e){var t;if(!e.hasOwnProperty("columnGroup"))return;const n=new Set(null==(t=e.columnGroup)?void 0:t.openColumnGroupIds),i=this.columnModel.getColumnGroupState().map((({groupId:e})=>{const t=n.has(e);return t&&n.delete(e),{groupId:e,open:t}}));n.forEach((e=>{i.push({groupId:e,open:!0})})),i.length&&(this.columnGroupStates=i),this.columnModel.setColumnGroupState(i,"gridInitializing")}getFilterState(){var e;let t=this.filterManager.getFilterModel();t&&0===Object.keys(t).length&&(t=void 0);const n=null!=(e=this.filterManager.getAdvancedFilterModel())?e:void 0;return t||n?{filterModel:t,advancedFilterModel:n}:void 0}setFilterState(e,t){const{filterModel:n,advancedFilterModel:i}=null!=e?e:{advancedFilterModel:t};n&&this.filterManager.setFilterModel(n,"columnFilter"),i&&this.filterManager.setAdvancedFilterModel(i)}getRangeSelectionState(){var e;const t=null==(e=this.rangeService)?void 0:e.getCellRanges().map((e=>{const{id:t,type:n,startRow:i,endRow:o,columns:r,startColumn:a}=e;return{id:t,type:n,startRow:i,endRow:o,colIds:r.map((e=>e.getColId())),startColId:a.getColId()}}));return(null==t?void 0:t.length)?{cellRanges:t}:void 0}setRangeSelectionState(e){if(!this.gos.get("enableRangeSelection")||!this.rangeService)return;const t=[];e.cellRanges.forEach((e=>{const n=[];if(e.colIds.forEach((e=>{const t=this.columnModel.getGridColumn(e);t&&n.push(t)})),!n.length)return;let i=this.columnModel.getGridColumn(e.startColId);if(!i){const e=this.columnModel.getAllDisplayedColumns(),t=new Set(n);i=e.find((e=>t.has(e)))}t.push(Le(Ie({},e),{columns:n,startColumn:i}))})),this.rangeService.setCellRanges(t)}getScrollState(){var e,t,n;if(!this.isClientSideRowModel)return;const i=null==(e=this.ctrlsService.getGridBodyCtrl())?void 0:e.getScrollFeature(),{left:o}=null!=(t=null==i?void 0:i.getHScrollPosition())?t:{left:0},{top:r}=null!=(n=null==i?void 0:i.getVScrollPosition())?n:{top:0};return r||o?{top:r,left:o}:void 0}setScrollState(e){var t;if(!this.isClientSideRowModel)return;const{top:n,left:i}=e;null==(t=this.ctrlsService.getGridBodyCtrl())||t.getScrollFeature().setScrollPosition(n,i)}getSideBarState(){var e,t;return null==(t=null==(e=this.sideBarService)?void 0:e.getSideBarComp())?void 0:t.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;const e=this.focusService.getFocusedCell();if(e){const{column:t,rowIndex:n,rowPinned:i}=e;return{colId:t.getColId(),rowIndex:n,rowPinned:i}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;const{colId:t,rowIndex:n,rowPinned:i}=e;this.focusService.setFocusedCell({column:this.columnModel.getGridColumn(t),rowIndex:n,rowPinned:i,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){const e=this.paginationProxy.getCurrentPage(),t=this.gos.get("paginationAutoPageSize")?void 0:this.paginationProxy.getPageSize();if(e||t)return{page:e,pageSize:t}}setPaginationState(e){e.pageSize&&!this.gos.get("paginationAutoPageSize")&&this.paginationProxy.setPageSize(e.pageSize,"initialState"),"number"==typeof e.page&&this.paginationProxy.setPage(e.page)}getRowSelectionState(){var e;const t=this.selectionService.getSelectionState();return!t||!Array.isArray(t)&&(!1===t.selectAll||!1===t.selectAllChildren)&&!(null==(e=null==t?void 0:t.toggledNodes)?void 0:e.length)?void 0:t}setRowSelectionState(e){this.selectionService.setSelectionState(e,"gridInitializing")}getRowGroupExpansionState(){const e=this.expansionService.getExpandedRows();return e.length?{expandedRowGroupIds:e}:void 0}setRowGroupExpansionState(e){this.expansionService.expandRows(e.expandedRowGroupIds)}updateColumnState(e){const t=this.getColumnState();let n=!1;Object.entries(t).forEach((([e,t])=>{Ke(t,this.cachedState[e])||(n=!0)})),this.cachedState=Ie(Ie({},this.cachedState),t),n&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){const n=this.cachedState[e];this.setCachedStateValue(e,t),Ke(t,n)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState=Le(Ie({},this.cachedState),{[e]:t})}refreshStaleState(){this.staleStateKeys.forEach((e=>{if("rowSelection"===e)this.setCachedStateValue(e,this.getRowSelectionState())})),this.staleStateKeys.clear()}dispatchStateUpdateEvent(e){this.suppressEvents||(e.forEach((e=>this.queuedUpdateSources.add(e))),this.dispatchStateUpdateEventDebounced())}dispatchQueuedStateUpdateEvents(){const e=Array.from(this.queuedUpdateSources);this.queuedUpdateSources.clear();const t={type:An.EVENT_STATE_UPDATED,sources:e,state:this.cachedState};this.eventService.dispatchEvent(t)}suppressEventsAndDispatchInitEvent(e){this.suppressEvents=!0,this.columnAnimationService.setSuppressAnimation(!0),e(),setTimeout((()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(this.columnAnimationService.setSuppressAnimation(!1),this.dispatchStateUpdateEvent(["gridInitializing"]))}))}};_e([xt("filterManager")],Rg.prototype,"filterManager",2),_e([xt("ctrlsService")],Rg.prototype,"ctrlsService",2),_e([xt("focusService")],Rg.prototype,"focusService",2),_e([xt("columnModel")],Rg.prototype,"columnModel",2),_e([xt("paginationProxy")],Rg.prototype,"paginationProxy",2),_e([xt("rowModel")],Rg.prototype,"rowModel",2),_e([xt("selectionService")],Rg.prototype,"selectionService",2),_e([xt("expansionService")],Rg.prototype,"expansionService",2),_e([xt("columnAnimationService")],Rg.prototype,"columnAnimationService",2),_e([Mt("sideBarService")],Rg.prototype,"sideBarService",2),_e([Mt("rangeService")],Rg.prototype,"rangeService",2),_e([Tt],Rg.prototype,"postConstruct",1),Rg=_e([At("stateService")],Rg);var Ag=class extends En{init(){this.processGridOptions(this.gridOptions)}processGridOptions(e){this.processOptions(e,vg)}processColumnDefs(e){this.processOptions(e,hg)}processOptions(e,t){const{validations:n,deprecations:i,allProperties:o,propertyExceptions:r,objectName:a,docsUrl:s}=t;o&&!0!==this.gridOptions.suppressPropertyNamesCheck&&this.checkProperties(e,[...null!=r?r:[],...Object.keys(i)],o,a,s);const l=new Set;Object.keys(e).forEach((t=>{var o;const r=i[t];if(r)if("renamed"in r){const{renamed:n,version:i}=r;l.add(`As of v${i}, ${String(t)} is deprecated. Please use ${String(n)} instead.`),e[n]=e[t]}else{const{message:e,version:n}=r;l.add(`As of v${n}, ${String(t)} is deprecated. ${null!=e?e:""}`)}const a=e[t];if(null==a||!1===a)return;const s=n[t];let d;if(!s)return;if("function"==typeof s){const n=s(e,this.gridOptions);if(!n)return;if("objectName"in n){const i=e[t];return Array.isArray(i)?void i.forEach((e=>{this.processOptions(e,n)})):void this.processOptions(e[t],n)}d=n}else d=s;const{module:c,dependencies:g,supportedRowModels:u}=d;if(u){const e=null!=(o=this.gridOptions.rowModelType)?o:"clientSide";if(!u.includes(e))return void l.add(`${String(t)} is not supported with the '${e}' row model.`)}if(c){const e=Array.isArray(c)?c:[c];let n=!0;if(e.forEach((e=>{St.__assertRegistered(e,String(t),this.context.getGridId())||(n=!1,l.add(`${String(t)} is only available when ${e} is loaded.`))})),!n)return}if(g){const n=this.checkForWarning(t,g,e);if(n)return void l.add(n)}})),l.size>0&&l.forEach((e=>{st(e)}))}checkForWarning(e,t,n){if("function"==typeof t)return t(n,this.gridOptions);const i=Object.entries(t).find((([e,t])=>{const i=n[e];return!t.includes(i)}));if(!i)return null;const[o,r]=i;return r.length>1?`'${String(e)}' requires '${o}' to be one of [${r.join(", ")}].`:`'${String(e)}' requires '${o}' to be ${r[0]}.`}checkProperties(e,t,n,i,o){const r=ar(Object.getOwnPropertyNames(e),["__ob__","__v_skip","__metadata__",...t,...n],n);if(qe(r,((e,t)=>{st(`invalid ${i} property '${e}' did you mean any of these: ${t.slice(0,8).join(", ")}`)})),Object.keys(r).length>0&&o){const e=this.getFrameworkOverrides().getDocLink(o);st(`to see all the valid ${i} properties please check: ${e}`)}}};_e([xt("gridOptions")],Ag.prototype,"gridOptions",2),_e([Tt],Ag.prototype,"init",1),Ag=_e([At("validationService")],Ag);var xg=class extends En{constructor(){super(...arguments),this.syncEventListeners=new Map,this.asyncEventListeners=new Map,this.syncGlobalEventListeners=new Set,this.globalEventListenerPairs=new Map}postConstruct(){this.frameworkEventWrappingService=new Ft(this.getFrameworkOverrides())}addEventListener(e,t){const n=this.frameworkEventWrappingService.wrap(t),i=this.gos.useAsyncEvents()&&!xn.has(e),o=i?this.asyncEventListeners:this.syncEventListeners;o.has(e)||o.set(e,new Set),o.get(e).add(n),this.eventService.addEventListener(e,n,i)}removeEventListener(e,t){var n;const i=this.frameworkEventWrappingService.unwrap(t),o=this.asyncEventListeners.get(e),r=!!(null==o?void 0:o.delete(i));r||null==(n=this.syncEventListeners.get(e))||n.delete(i),this.eventService.removeEventListener(e,i,r)}addGlobalListener(e){const t=this.frameworkEventWrappingService.wrapGlobal(e);if(this.gos.useAsyncEvents()){const n=(e,n)=>{xn.has(e)&&t(e,n)},i=(e,n)=>{xn.has(e)||t(e,n)};this.globalEventListenerPairs.set(e,{syncListener:n,asyncListener:i}),this.eventService.addGlobalListener(n,!1),this.eventService.addGlobalListener(i,!0)}else this.syncGlobalEventListeners.add(t),this.eventService.addGlobalListener(t,!1)}removeGlobalListener(e){const t=this.frameworkEventWrappingService.unwrapGlobal(e);if(this.globalEventListenerPairs.has(t)){const{syncListener:n,asyncListener:i}=this.globalEventListenerPairs.get(t);this.eventService.removeGlobalListener(n,!1),this.eventService.removeGlobalListener(i,!0),this.globalEventListenerPairs.delete(e)}else this.syncGlobalEventListeners.delete(t),this.eventService.removeGlobalListener(t,!1)}destroyEventListeners(e,t){e.forEach(((e,n)=>{e.forEach((e=>this.eventService.removeEventListener(n,e,t))),e.clear()})),e.clear()}destroyGlobalListeners(e,t){e.forEach((e=>this.eventService.removeGlobalListener(e,t))),e.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncEventListeners,!1),this.destroyEventListeners(this.asyncEventListeners,!0),this.destroyGlobalListeners(this.syncGlobalEventListeners,!1),this.globalEventListenerPairs.forEach((({syncListener:e,asyncListener:t})=>{this.eventService.removeGlobalListener(e,!1),this.eventService.removeGlobalListener(t,!0)})),this.globalEventListenerPairs.clear()}};_e([Tt],xg.prototype,"postConstruct",1),xg=_e([At("apiEventService")],xg);var Mg=class extends _r{constructor(){super('<span class="ag-paging-page-size"></span>'),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;const e=this.selectPageSizeComp.getValue();if(!e)return;const t=Number(e);isNaN(t)||t<1||t===this.paginationProxy.getPageSize()||(this.paginationProxy.setPageSize(t,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}init(){this.addManagedPropertyListener("paginationPageSizeSelector",(()=>{this.onPageSizeSelectorValuesChange()})),this.addManagedListener(this.eventService,An.EVENT_PAGINATION_CHANGED,(e=>this.handlePaginationChanged(e)))}handlePaginationChanged(e){if(!this.selectPageSizeComp||!(null==e?void 0:e.newPageSize))return;const t=this.paginationProxy.getPageSize();this.getPageSizeSelectorValues().includes(t)?this.selectPageSizeComp.setValue(t.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(e){this.selectPageSizeComp&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp&&this.appendChild(this.selectPageSizeComp))}reset(){ko(this.getGui()),this.selectPageSizeComp&&(this.destroyBean(this.selectPageSizeComp),this.selectPageSizeComp=void 0)}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("paginationPageSizeSelector")}reloadPageSizesSelector(){const e=this.getPageSizeSelectorValues(),t=this.paginationProxy.getPageSize(),n=!t||!e.includes(t);n&&(e.unshift(""),st("The paginationPageSize grid option is set to a value that is not in the list of page size options.\n Please make sure that the paginationPageSize grid option is set to one of the values in the \n paginationPageSizeSelector array, or set the paginationPageSizeSelector to false to hide the page size selector.")),this.selectPageSizeComp&&(this.destroyBean(this.selectPageSizeComp),this.selectPageSizeComp=void 0);const i=this.localeService.getLocaleTextFunc(),o=i("pageSizeSelectorLabel","Page Size:"),r=e.map((e=>({value:String(e),text:String(e)}))),a=i("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new ta).addOptions(r).setValue(String(n?"":t)).setAriaLabel(a).setLabel(o).onValueChange((()=>this.handlePageSizeItemSelected())),this.hasEmptyOption=n}getPageSizeSelectorValues(){const e=[20,50,100],t=this.gos.get("paginationPageSizeSelector");return Array.isArray(t)&&this.validateValues(t)?[...t].sort(((e,t)=>e-t)):e}validateValues(e){if(!e.length)return st("The paginationPageSizeSelector grid option is an empty array. This is most likely a mistake.\n If you want to hide the page size selector, please set the paginationPageSizeSelector to false."),!1;for(let t=0;t<e.length;t++){const n=e[t],i=n>0;if(!("number"==typeof n))return st("The paginationPageSizeSelector grid option contains a non-numeric value.\n Please make sure that all values in the paginationPageSizeSelector array are numbers."),!1;if(!i)return st("The paginationPageSizeSelector grid option contains a negative number or zero.\n Please make sure that all values in the paginationPageSizeSelector array are positive."),!1}return!0}destroy(){this.toggleSelectDisplay(!1),super.destroy()}};_e([xt("paginationProxy")],Mg.prototype,"paginationProxy",2),_e([Tt],Mg.prototype,"init",1);var Ng=class extends En{constructor(){super(),this.descriptionContainer=null,this.announceValue=vt(this.announceValue.bind(this),200)}postConstruct(){const e=this.gos.getDocument(),t=this.descriptionContainer=e.createElement("div");t.classList.add("ag-aria-description-container"),ui(t,"polite"),pi(t,"additions text"),hi(t,!0),this.eGridDiv.appendChild(t)}announceValue(e){this.descriptionContainer&&(this.descriptionContainer.textContent="",setTimeout((()=>{this.isAlive()&&this.descriptionContainer&&(this.descriptionContainer.textContent=e)}),50))}destroy(){super.destroy();const{descriptionContainer:e}=this;e&&(ko(e),e.parentElement&&e.parentElement.removeChild(e)),this.descriptionContainer=null,this.eGridDiv=null}};_e([xt("eGridDiv")],Ng.prototype,"eGridDiv",2),_e([Tt],Ng.prototype,"postConstruct",1),Ng=_e([At("ariaAnnouncementService")],Ng);var Pg=class{};Pg.gridOptions=void 0;var Ig=1,Lg=class{wrap(e,t,n=[],i){const o=this.createWrapper(e,i);return t.forEach((e=>{this.createMethod(o,e,!0)})),n.forEach((e=>{this.createMethod(o,e,!1)})),o}unwrap(e){return e}createMethod(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))}createMethodProxy(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&console.warn("AG Grid: Framework component is missing the method "+t+"()"),null)}}},Fg="undefined"==typeof global?{}:global;Fg.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,Fg.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,Fg.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,Fg.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,Fg.Node="undefined"==typeof Node?{}:Node,Fg.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var _g=Object.defineProperty,Og=Object.defineProperties,kg=Object.getOwnPropertyDescriptors,Gg=Object.getOwnPropertySymbols,zg=Object.prototype.hasOwnProperty,Vg=Object.prototype.propertyIsEnumerable,Hg=(e,t,n)=>t in e?_g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bg=(e,t)=>{for(var n in t||(t={}))zg.call(t,n)&&Hg(e,n,t[n]);if(Gg)for(var n of Gg(t))Vg.call(t,n)&&Hg(e,n,t[n]);return e},Wg=(e,t)=>Og(e,kg(t)),Ug=r({setMethods:()=>{}}),jg=a((e=>{const{initialProps:t,addUpdateCallback:n,CustomComponentClass:i,setMethods:r}=e,[a,s]=c(t);return m((()=>{n((e=>s(e)))}),[]),o.createElement(Ug.Provider,{value:{setMethods:r}},o.createElement(i,Bg({},a)))})),Kg=0;function Yg(){return"agPortalKey_"+ ++Kg}var $g=class{constructor(e,t,n,i){this.portal=null,this.oldPortal=null,this.reactComponent=e,this.portalManager=t,this.componentType=n,this.suppressFallbackMethods=!!i,this.statelessComponent=this.isStateless(this.reactComponent),this.key=Yg(),this.portalKey=Yg(),this.instanceCreated=this.isStatelessComponent()?xr.resolve(!1):new xr((e=>{this.resolveInstanceCreated=e}))}getGui(){return this.eParentElement}getRootElement(){return this.eParentElement.firstChild}destroy(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)}createParentElement(e){const t=this.portalManager.getComponentWrappingElement(),n=document.createElement(t||"div");return n.classList.add("ag-react-container"),e.reactContainer=n,n}addParentContainerStyleAndClasses(){if(this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&(Rr.warnOnce('Since v31.1 "getReactContainerStyle" is deprecated. Apply styling directly to ".ag-react-container" if needed.'),Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle())),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses())){Rr.warnOnce('Since v31.1 "getReactContainerClasses" is deprecated. Apply styling directly to ".ag-react-container" if needed.');this.componentInstance.getReactContainerClasses().forEach((e=>this.eParentElement.classList.add(e)))}}statelessComponentRendered(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0}getFrameworkComponentInstance(){return this.componentInstance}isStatelessComponent(){return this.statelessComponent}getReactComponentName(){return this.reactComponent.name}getMemoType(){return this.hasSymbol()?Symbol.for("react.memo"):60115}hasSymbol(){return"function"==typeof Symbol&&Symbol.for}isStateless(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===this.getMemoType()}hasMethod(e){const t=this.getFrameworkComponentInstance();return!!t&&null!=t[e]||this.fallbackMethodAvailable(e)}callMethod(e,t){const n=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(!n)return void setTimeout((()=>this.callMethod(e,t)));const i=n[e];return i?i.apply(n,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0}addMethod(e,t){this[e]=t}init(e){return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new xr((e=>this.createReactComponent(e)))}createOrUpdatePortal(e){this.isStatelessComponent()||(this.ref=e=>{var t;this.componentInstance=e,this.addParentContainerStyleAndClasses(),null==(t=this.resolveInstanceCreated)||t.call(this,!0),this.resolveInstanceCreated=void 0},e.ref=this.ref),this.reactElement=this.createElement(this.reactComponent,Wg(Bg({},e),{key:this.key})),this.portal=x(this.reactElement,this.eParentElement,this.portalKey)}createElement(e,t){return v(e,t)}createReactComponent(e){this.portalManager.mountReactPortal(this.portal,this,(t=>{e(t)}))}isNullValue(){return this.valueRenderedIsNull(this.params)}rendered(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())}valueRenderedIsNull(e){if(!this.componentType.cellRenderer)return!1;const t=console.error;try{console.error=()=>{};return""===M(v(this.reactComponent,e))}catch(e){}finally{console.error=t}return!1}refreshComponent(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)}fallbackMethod(e,t){const n=this[`${e}Component`];if(!this.suppressFallbackMethods&&n)return n.bind(this)(t)}fallbackMethodAvailable(e){if(this.suppressFallbackMethods)return!1;return!!this[`${e}Component`]}};function Qg(e,t,n){e.forEach((e=>{const i=t[e];i&&(n[e]=i)}))}var qg=class extends $g{constructor(){super(...arguments),this.awaitUpdateCallback=new xr((e=>{this.resolveUpdateCallback=e})),this.wrapperComponent=jg}init(e){return this.sourceParams=e,super.init(this.getProps())}addMethod(){}getInstance(){return this.instanceCreated.then((()=>this.componentInstance))}getFrameworkComponentInstance(){return this}createElement(e,t){return super.createElement(this.wrapperComponent,{initialProps:t,CustomComponentClass:e,setMethods:e=>this.setMethods(e),addUpdateCallback:e=>{this.updateCallback=()=>(e(this.getProps()),new xr((e=>{setTimeout((()=>{e()}))}))),this.resolveUpdateCallback()}})}setMethods(e){this.providedMethods=e,Qg(this.getOptionalMethods(),this.providedMethods,this)}getOptionalMethods(){return[]}getProps(){return Wg(Bg({},this.sourceParams),{key:this.key,ref:this.ref})}refreshProps(){return this.updateCallback?this.updateCallback():new xr((e=>this.awaitUpdateCallback.then((()=>{this.updateCallback().then((()=>e()))}))))}},Xg=class extends qg{constructor(){super(...arguments),this.date=null,this.onDateChange=e=>this.updateDate(e)}getDate(){return this.date}setDate(e){this.date=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled"]}updateDate(e){this.setDate(e),this.sourceParams.onDateChanged()}getProps(){const e=super.getProps();return e.date=this.date,e.onDateChange=this.onDateChange,delete e.onDateChanged,e}},Zg=class extends qg{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e),this.onUiChange=()=>this.sourceParams.filterChangedCallback()}isFilterActive(){return null!=this.model}doesFilterPass(e){return this.providedMethods.doesFilterPass(e)}getModel(){return this.model}setModel(e){return this.model=e,this.refreshProps()}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}getOptionalMethods(){return["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onAnyFilterChanged"]}updateModel(e){this.setModel(e).then((()=>this.sourceParams.filterChangedCallback()))}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e.onUiChange=this.onUiChange,delete e.filterChangedCallback,delete e.filterModifiedCallback,delete e.valueGetter,e}};function Jg(e,t){e.parentFilterInstance((n=>{(n.setModel(t)||xr.resolve()).then((()=>{e.filterParams.filterChangedCallback()}))}))}var eu=class extends qg{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e)}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),Jg(this.sourceParams,e)}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e}},tu=class extends qg{refresh(e){this.sourceParams=e,this.refreshProps()}},nu=class extends qg{constructor(){super(...arguments),this.active=!1,this.expanded=!1,this.onActiveChange=e=>this.updateActive(e)}setActive(e){this.awaitSetActive(e)}setExpanded(e){this.expanded=e,this.refreshProps()}getOptionalMethods(){return["select","configureDefaults"]}awaitSetActive(e){return this.active=e,this.refreshProps()}updateActive(e){const t=this.awaitSetActive(e);e&&t.then((()=>this.sourceParams.onItemActivated()))}getProps(){const e=super.getProps();return e.active=this.active,e.expanded=this.expanded,e.onActiveChange=this.onActiveChange,delete e.onItemActivated,e}},iu=class extends qg{refresh(e){this.sourceParams=e,this.refreshProps()}},ou=class extends qg{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},ru=class extends qg{constructor(){super(...arguments),this.onStateChange=e=>this.updateState(e)}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}getState(){return this.state}updateState(e){this.state=e,this.refreshProps(),this.sourceParams.onStateUpdated()}getProps(){const e=super.getProps();return e.state=this.state,e.onStateChange=this.onStateChange,e}},au=class _PortalManager{constructor(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.refresher=e,this.maxComponentCreationTimeMs=n||_PortalManager.MAX_COMPONENT_CREATION_TIME_IN_MS}getPortals(){return this.portals}destroy(){this.destroyed=!0}destroyPortal(e){this.portals=this.portals.filter((t=>t!==e)),this.batchUpdate()}getComponentWrappingElement(){return this.wrappingElement}mountReactPortal(e,t,n){this.portals=[...this.portals,e],this.waitForInstance(t,n),this.batchUpdate()}updateReactPortal(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()}batchUpdate(){this.hasPendingPortalUpdate||(setTimeout((()=>{this.destroyed||(this.refresher(),this.hasPendingPortalUpdate=!1)})),this.hasPendingPortalUpdate=!0)}waitForInstance(e,t,n=Date.now()){if(this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):(console.error(`AG Grid: React Component '${e.getReactComponentName()}' not created within ${this.maxComponentCreationTimeMs}ms.`),void console.error(" If the component is using `forwardRef` but not `useImperativeHandle`, add the following: `useImperativeHandle(ref, () => ({}));`"));window.setTimeout((()=>{this.waitForInstance(e,t,n)}))}}};au.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3;var su=au,lu=o.createContext({}),du=(...e)=>e.filter((e=>null!=e&&""!==e)).join(" "),cu=class _CssClasses{constructor(...e){this.classesMap={},e.forEach((e=>{this.classesMap[e]=!0}))}setClass(e,t){if(!!this.classesMap[e]==t)return this;const n=new _CssClasses;return n.classesMap=Bg({},this.classesMap),n.classesMap[e]=t,n}toString(){return Object.keys(this.classesMap).filter((e=>this.classesMap[e])).join(" ")}},gu=e=>"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===("function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115),uu=null!=A.createRoot&&null!=A.flushSync,hu=!1;var pu=(e,t)=>{uu&&e&&!hu?A.flushSync(t):t()};function mu(e,t,n){if(null==t||null==e)return t;if(e===t||0===t.length&&0===e.length)return e;if(n||0===e.length&&t.length>0||e.length>0&&0===t.length)return t;const i=[],o=[],r=new Map,a=new Map;for(let e=0;e<t.length;e++){const n=t[e];a.set(n.getInstanceId(),n)}for(let t=0;t<e.length;t++){const n=e[t];r.set(n.getInstanceId(),n),a.has(n.getInstanceId())&&i.push(n)}for(let e=0;e<t.length;e++){const n=t[e],i=n.getInstanceId();r.has(i)||o.push(n)}return i.length===e.length&&0===o.length?e:0===i.length&&o.length===t.length?t:0===i.length?o:0===o.length?i:[...i,...o]}var vu=(e,t,n,i)=>{if(!e||e.componentFromFramework||t.isDestroyed())return;const o=e.newAgStackInstance();if(!o)return;let r,a,s=!1;return o.then((e=>{s?t.destroyBean(e):(r=e,a=r.getGui(),n.appendChild(a),fu(i,r))})),()=>{s=!0,r&&(a&&a.parentElement&&a.parentElement.removeChild(a),t.destroyBean(r),i&&fu(i,void 0))}},fu=(e,t)=>{if(e)if(e instanceof Function){e(t)}else{e.current=t}},Cu=s(((e,t)=>{var n;const i=l(lu).context,r=d(null),a=d(null),s=d(null),m=d(null),v=d(null),f=d(),[C,w]=c(),[y,b]=c(),[E,S]=c(),[D,T]=c((()=>new cu)),[R,A]=c((()=>new cu("ag-hidden"))),[x,M]=c((()=>new cu("ag-hidden"))),[N,P]=c((()=>new cu("ag-invisible")));g(t,(()=>({refresh:()=>!1}))),u((()=>vu(C,i,a.current)),[C]);const I=h((t=>{if(r.current=t,!r.current)return i.destroyBean(f.current),void(f.current=null);const n={setInnerRenderer:(e,t)=>{w(e),S(t)},setChildCount:e=>b(e),addOrRemoveCssClass:(e,t)=>T((n=>n.setClass(e,t))),setContractedDisplayed:e=>M((t=>t.setClass("ag-hidden",!e))),setExpandedDisplayed:e=>A((t=>t.setClass("ag-hidden",!e))),setCheckboxVisible:e=>P((t=>t.setClass("ag-invisible",!e)))};f.current=i.createBean(new ts),f.current.init(n,r.current,s.current,m.current,v.current,Cu,e)}),[]),L=p((()=>`ag-cell-wrapper ${D.toString()}`),[D]),F=p((()=>`ag-group-expanded ${R.toString()}`),[R]),_=p((()=>`ag-group-contracted ${x.toString()}`),[x]),O=p((()=>`ag-group-checkbox ${N.toString()}`),[N]),k=C&&C.componentFromFramework,G=k?C.componentClass:void 0,z=null==C&&null!=E,V=Rr.escapeString(E,!0);return o.createElement("span",Bg({className:L,ref:I},e.colDef?{}:{role:null==(n=f.current)?void 0:n.getCellAriaRole()}),o.createElement("span",{className:F,ref:m}),o.createElement("span",{className:_,ref:v}),o.createElement("span",{className:O,ref:s}),o.createElement("span",{className:"ag-group-value",ref:a},z&&o.createElement(o.Fragment,null,V),k&&o.createElement(G,Bg({},C.params))),o.createElement("span",{className:"ag-group-child-count"},y))})),wu=Cu,yu=a((e=>{const{ctrl:t}=e,n=t.isAlive(),{context:i}=l(lu),r=n?t.getColId():void 0,[a,s]=c(),g=d(null),v=d(null),f=d(null),C=d();let w=d();n&&!w.current&&(w.current=new Mr((()=>g.current)));const y=h((e=>{var i;if(g.current=e,!g.current||!n)return;const o={setWidth:e=>{g.current&&(g.current.style.width=e)},addOrRemoveCssClass:(e,t)=>w.current.addOrRemoveCssClass(e,t),setAriaSort:e=>{g.current&&(e?Rr.setAriaSort(g.current,e):Rr.removeAriaSort(g.current))},setUserCompDetails:e=>s(e),getUserCompInstance:()=>C.current||void 0};t.setComp(o,g.current,v.current,f.current);const r=t.getSelectAllGui();null==(i=v.current)||i.insertAdjacentElement("afterend",r)}),[]);u((()=>vu(a,i,f.current,C)),[a]),m((()=>{t.setDragSource(g.current)}),[a]);const b=p((()=>!!((null==a?void 0:a.componentFromFramework)&&gu(a.componentClass))),[a]),E=a&&a.componentFromFramework,S=a&&a.componentClass;return o.createElement("div",{ref:y,className:"ag-header-cell","col-id":r,role:"columnheader"},o.createElement("div",{ref:v,className:"ag-header-cell-resize",role:"presentation"}),o.createElement("div",{ref:f,className:"ag-header-cell-comp-wrapper",role:"presentation"},E&&b&&o.createElement(S,Bg({},a.params)),E&&!b&&o.createElement(S,Wg(Bg({},a.params),{ref:C}))))})),bu=a((e=>{const{context:t}=l(lu),{ctrl:n}=e,[i,r]=c((()=>new cu)),[a,s]=c((()=>new cu)),[g,v]=c("false"),[f,C]=c(),[w,y]=c(),b=p((()=>n.getColId()),[]),E=d(null),S=d(null),D=d(),T=h((e=>{if(E.current=e,!E.current)return;const t={setWidth:e=>{E.current&&(E.current.style.width=e)},addOrRemoveCssClass:(e,t)=>r((n=>n.setClass(e,t))),setUserCompDetails:e=>y(e),setResizableDisplayed:e=>{s((t=>t.setClass("ag-hidden",!e))),v(e?"false":"true")},setAriaExpanded:e=>C(e),getUserCompInstance:()=>D.current||void 0};n.setComp(t,E.current,S.current)}),[]);u((()=>vu(w,t,E.current)),[w]),m((()=>{E.current&&n.setDragSource(E.current)}),[w]);const R=p((()=>!!((null==w?void 0:w.componentFromFramework)&&gu(w.componentClass))),[w]),A=p((()=>"ag-header-group-cell "+i.toString()),[i]),x=p((()=>"ag-header-cell-resize "+a.toString()),[a]),M=w&&w.componentFromFramework,N=w&&w.componentClass;return o.createElement("div",{ref:T,className:A,"col-id":b,role:"columnheader","aria-expanded":f},M&&R&&o.createElement(N,Bg({},w.params)),M&&!R&&o.createElement(N,Wg(Bg({},w.params),{ref:D})),o.createElement("div",{ref:S,"aria-hidden":g,className:x}))}));function Eu(){Rr.warnOnce("Using custom components without `reactiveCustomComponents = true` is deprecated.")}var Su=a((e=>{const{context:t,gos:n}=l(lu),[i,r]=c((()=>new cu("ag-header-cell","ag-floating-filter"))),[a,s]=c((()=>new cu)),[g,m]=c((()=>new cu("ag-floating-filter-button","ag-hidden"))),[v,f]=c("false"),[C,w]=c(),[y,b]=c(1),E=d(null),S=d(null),D=d(null),T=d(null),R=d(),A=d(),x=e=>{null!=e&&R.current&&R.current(e)},{ctrl:M}=e,N=h((e=>{if(E.current=e,!E.current)return;A.current=new xr((e=>{R.current=e}));const t={addOrRemoveCssClass:(e,t)=>r((n=>n.setClass(e,t))),addOrRemoveBodyCssClass:(e,t)=>s((n=>n.setClass(e,t))),setButtonWrapperDisplayed:e=>{m((t=>t.setClass("ag-hidden",!e))),f(e?"false":"true")},setWidth:e=>{E.current&&(E.current.style.width=e)},setCompDetails:e=>w(e),getFloatingFilterComp:()=>A.current?A.current:null,setMenuIcon:e=>{var t;return null==(t=T.current)?void 0:t.appendChild(e)}};M.setComp(t,E.current,T.current,S.current)}),[]);u((()=>vu(C,t,S.current,x)),[C]);const P=p((()=>i.toString()),[i]),I=p((()=>a.toString()),[a]),L=p((()=>g.toString()),[g]),F=p((()=>!!(C&&C.componentFromFramework&&gu(C.componentClass))),[C]),_=p((()=>n.get("reactiveCustomComponents")),[]),O=p((()=>{if(C){if(_){const e=new class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t,this.model=null,this.onModelChange=e=>this.updateModel(e)}getProps(){return Wg(Bg({},this.floatingFilterParams),{model:this.model,onModelChange:this.onModelChange})}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){Qg(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),Jg(this.floatingFilterParams,e)}}(C.params,(()=>b((e=>e+1))));return x(e),e}C.componentFromFramework&&Eu()}}),[C]),k=null==O?void 0:O.getProps(),G=C&&C.componentFromFramework,z=C&&C.componentClass;return o.createElement("div",{ref:N,className:P,role:"gridcell"},o.createElement("div",{ref:S,className:I,role:"presentation"},G&&!_&&o.createElement(z,Wg(Bg({},C.params),{ref:F?()=>{}:x})),G&&_&&o.createElement(Ug.Provider,{value:{setMethods:e=>O.setMethods(e)}},o.createElement(z,Bg({},k)))),o.createElement("div",{ref:D,"aria-hidden":v,className:L,role:"presentation"},o.createElement("button",{ref:T,type:"button",className:"ag-button ag-floating-filter-button-button",tabIndex:-1})))})),Du=a((e=>{const{ctrl:t}=e,{topOffset:n,rowHeight:i}=p((()=>t.getTopAndHeight()),[]),r=t.getAriaRowIndex(),a=t.getHeaderRowClass(),[s,l]=c((()=>i+"px")),[g,u]=c((()=>n+"px")),m=d(null),v=d(null),[f,C]=c((()=>t.getHeaderCtrls())),w=d(null),y=h((e=>{if(w.current=e,!e)return;const n={setHeight:e=>l(e),setTop:e=>u(e),setHeaderCtrls:(e,t,n)=>{v.current=m.current,m.current=e;const i=mu(v.current,e,t);i!==v.current&&pu(n,(()=>C(i)))},setWidth:e=>{w.current&&(w.current.style.width=e)}};t.setComp(n,!1)}),[]),b=p((()=>({height:s,top:g})),[s,g]),E=h((e=>{switch(t.getType()){case ql.COLUMN_GROUP:return o.createElement(bu,{ctrl:e,key:e.getInstanceId()});case ql.FLOATING_FILTER:return o.createElement(Su,{ctrl:e,key:e.getInstanceId()});default:return o.createElement(yu,{ctrl:e,key:e.getInstanceId()})}}),[]);return o.createElement("div",{ref:y,className:a,role:"row",style:b,"aria-rowindex":r},f.map(E))})),Tu=a((e=>{const[t,n]=c(!0),[i,r]=c([]),{context:a}=l(lu),s=d(null),g=d(null),u=d(null),p="left"===e.pinned,m="right"===e.pinned,v=!p&&!m,f=h((t=>{if(s.current=t,!s.current)return a.destroyBean(u.current),void(u.current=null);const i={setDisplayed:n,setCtrls:e=>r(e),setCenterWidth:e=>{g.current&&(g.current.style.width=e)},setViewportScrollLeft:e=>{s.current&&(s.current.scrollLeft=e)},setPinnedContainerWidth:e=>{s.current&&(s.current.style.width=e,s.current.style.minWidth=e,s.current.style.maxWidth=e)}};u.current=a.createBean(new ud(e.pinned)),u.current.setComp(i,s.current)}),[]),C=t?"":"ag-hidden",w=()=>i.map((e=>o.createElement(Du,{ctrl:e,key:e.getInstanceId()})));return o.createElement(o.Fragment,null,p&&o.createElement("div",{ref:f,className:"ag-pinned-left-header "+C,"aria-hidden":!t,role:"rowgroup"},w()),m&&o.createElement("div",{ref:f,className:"ag-pinned-right-header "+C,"aria-hidden":!t,role:"rowgroup"},w()),v&&o.createElement("div",{ref:f,className:"ag-header-viewport "+C,role:"presentation"},o.createElement("div",{ref:g,className:"ag-header-container",role:"rowgroup"},w())))})),Ru=a((()=>{const[e,t]=c((()=>new cu)),[n,i]=c(),{context:r}=l(lu),a=d(null),s=d(null),g=h((e=>{if(a.current=e,!e)return r.destroyBean(s.current),void(s.current=null);const n={addOrRemoveCssClass:(e,n)=>t((t=>t.setClass(e,n))),setHeightAndMinHeight:e=>i(e)};s.current=r.createBean(new vd),s.current.setComp(n,a.current,a.current)}),[]),u=p((()=>"ag-header "+e.toString()),[e]),m=p((()=>({height:n,minHeight:n})),[n]);return o.createElement("div",{ref:g,className:u,style:m,role:"presentation"},o.createElement(Tu,{pinned:"left"}),o.createElement(Tu,{pinned:null}),o.createElement(Tu,{pinned:"right"}))})),Au=(e,t)=>{m((()=>{const n=t.current;if(n){const t=n.parentElement;if(t){const i=document.createComment(e);return t.insertBefore(i,n),()=>{t.removeChild(i)}}}}),[e])},xu=a((e=>{const[t,n]=c(),{context:i,popupService:r,localeService:a,gos:s}=l(lu);return(e=>{const t=d(e),n=d(),i=d(!1),o=d(!1),[,r]=c(0);i.current&&(o.current=!0),m((()=>(i.current||(n.current=t.current(),i.current=!0),r((e=>e+1)),()=>{o.current&&n.current&&n.current()})),[])})((()=>{const{editDetails:t,cellCtrl:o,eParentCell:l}=e,{compDetails:d}=t,c=s.get("stopEditingWhenCellsLoseFocus"),g=i.createBean(new Gl(d.params)),u=g.getGui();if(e.jsChildComp){const t=e.jsChildComp.getGui();t&&u.appendChild(t)}const h={column:o.getColumn(),rowNode:o.getRowNode(),type:"popupCellEditor",eventSource:l,ePopup:u,position:t.popupPosition,keepWithinBounds:!0},p=r.positionPopupByComponent.bind(r,h),m=a.getLocaleTextFunc(),v=r.addPopup({modal:c,eChild:u,closeOnEsc:!0,closedCallback:()=>{o.onPopupEditorClosed()},anchorToElement:l,positionCallback:p,ariaLabel:m("ariaLabelCellEditor","Cell Editor")}),f=v?v.hideFunc:void 0;return n(g),e.jsChildComp&&e.jsChildComp.afterGuiAttached&&e.jsChildComp.afterGuiAttached(),()=>{null!=f&&f(),i.destroyBean(g)}})),o.createElement(o.Fragment,null,t&&e.wrappedContent&&x(e.wrappedContent,t.getGui()))})),Mu=(e,t,n,i,o,r)=>{const{context:a}=l(lu),s=h((()=>{const e=o.current;if(!e)return;const t=e.getGui();t&&t.parentElement&&t.parentElement.removeChild(t),a.destroyBean(e),o.current=void 0}),[]);m((()=>{const i=null!=e,a=e&&e.compDetails&&!e.compDetails.componentFromFramework;if(!(i&&a&&!(t&&null==n)))return void s();const l=e.compDetails;if(o.current){const t=o.current,n=!!(null!=t.refresh&&0==e.force)&&t.refresh(l.params);if(!0===n||void 0===n)return;s()}const d=l.newAgStackInstance();if(!d)return;const c=d.resolveNow(null,(e=>e));if(!c)return;const g=c.getGui();if(!g)return;(t?n:r.current).appendChild(g),o.current=c}),[e,t,i]),m((()=>s),[])},Nu=(e,t,n)=>{const i=e.compProxy;return o.createElement(o.Fragment,null,!i&&o.createElement(t,Wg(Bg({},e.compDetails.params),{ref:n})),i&&((e,t,n)=>{const{compProxy:i}=e;n(i);const r=i.getProps(),a=gu(t);return o.createElement(Ug.Provider,{value:{setMethods:e=>i.setMethods(e)}},a&&o.createElement(t,Bg({},r)),!a&&o.createElement(t,Wg(Bg({},r),{ref:e=>i.setRef(e)})))})(e,t,n))},Pu=a((e=>{const{context:t}=l(lu),{cellCtrl:n,printLayout:i,editingRow:r}=e,a=n.getTabIndex(),s=n.getColumnIdSanitised(),g=n.getInstanceId(),[m,v]=c((()=>n.isCellRenderer()?void 0:{compDetails:void 0,value:n.getValueToDisplay(),force:!1})),[f,C]=c(),[w,y]=c(1),[b,E]=c(),[S,D]=c(!1),[T,R]=c(!1),[A,x]=c(!1),[M,N]=c(),P=p((()=>n.isForceWrapper()),[n]),I=p((()=>n.getCellAriaRole()),[n]),L=d(null),F=d(null),_=d(),O=d(),k=d(),G=d([]),z=d(),[V,H]=c(0),B=h((e=>{z.current=e,H((e=>e+1))}),[]),W=P||null!=m&&(S||A||T),U=h(((e,t)=>{if(O.current=t,t){((e,t,n)=>{const i=n.getColumn();if(!e&&t.isPopup&&t.isPopup()){const e=`AG Grid: Found an issue in column ${i.getColId()}. If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.`;Rr.doOnce((()=>console.warn(e)),"jsEditorComp-isPopup-"+n.getColumn().getColId())}if(e&&t.getPopupPosition&&null!=t.getPopupPosition()){const e=`AG Grid: Found an issue in column ${i.getColId()}. If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.`;Rr.doOnce((()=>console.warn(e)),"jsEditorComp-getPopupPosition-"+n.getColumn().getColId())}})(e,t,n);t.isCancelBeforeStart&&t.isCancelBeforeStart()&&setTimeout((()=>{n.stopEditing(!0),n.focusCell(!0)}))}}),[n]),j=h((e=>U(!0,e)),[U]),K=h((e=>U(!1,e)),[U]);let Y=d();Y.current||(Y.current=new Mr((()=>L.current))),Mu(m,W,z.current,V,_,L);const $=d();u((()=>{const e=$.current,t=m;if($.current=m,null==e||null==e.compDetails||null==t||null==t.compDetails)return;const n=e.compDetails,i=t.compDetails;if(n.componentClass!=i.componentClass)return;if(null==F.current||null==F.current.refresh)return;1!=F.current.refresh(i.params)&&y((e=>e+1))}),[m]),u((()=>{if(!(f&&!f.compDetails.componentFromFramework))return;const e=f.compDetails,n=!0===f.popup,i=(e=>{const t=e.newAgStackInstance();if(t)return t.resolveNow(null,(e=>e))})(e);if(!i)return;const o=i.getGui();if(U(n,i),!n){const e=(P?k:L).current;null==e||e.appendChild(o),i.afterGuiAttached&&i.afterGuiAttached()}return N(i),()=>{t.destroyBean(i),U(n,void 0),N(void 0),o&&o.parentElement&&o.parentElement.removeChild(o)}}),[f]);const Q=h((e=>{if(k.current=e,!k.current)return G.current.forEach((e=>e())),void(G.current=[]);const i=e=>{var n;if(e){const i=e.getGui();null==(n=k.current)||n.insertAdjacentElement("afterbegin",i),G.current.push((()=>{t.destroyBean(e),Rr.removeFromParent(i)}))}return e};if(S){i(n.createSelectionCheckbox())}A&&i(n.createDndSource()),T&&i(n.createRowDragComp())}),[n,t,A,T,S]),q=h((e=>{if(L.current=e,!L.current)return;if(!n)return;const t={addOrRemoveCssClass:(e,t)=>Y.current.addOrRemoveCssClass(e,t),setUserStyles:e=>E(e),getFocusableElement:()=>L.current,setIncludeSelection:e=>D(e),setIncludeRowDrag:e=>R(e),setIncludeDndSource:e=>x(e),getCellEditor:()=>O.current||null,getCellRenderer:()=>F.current?F.current:_.current,getParentOfValue:()=>z.current?z.current:k.current?k.current:L.current,setRenderDetails:(e,t,n)=>{v((i=>(null==i?void 0:i.compDetails)!==e||(null==i?void 0:i.value)!==t||(null==i?void 0:i.force)!==n?{value:t,compDetails:e,force:n}:i))},setEditDetails:(e,t,n,i)=>{if(e){let o;i?o=new class{constructor(e,t){this.cellEditorParams=e,this.refreshProps=t,this.instanceCreated=new xr((e=>{this.resolveInstanceCreated=e})),this.onValueChange=e=>this.updateValue(e),this.value=e.value}getProps(){return Wg(Bg({},this.cellEditorParams),{initialValue:this.cellEditorParams.value,value:this.value,onValueChange:this.onValueChange})}getValue(){return this.value}refresh(e){this.cellEditorParams=e,this.refreshProps()}setMethods(e){Qg(this.getOptionalMethods(),e,this)}getInstance(){return this.instanceCreated.then((()=>this.componentInstance))}setRef(e){var t;this.componentInstance=e,null==(t=this.resolveInstanceCreated)||t.call(this),this.resolveInstanceCreated=void 0}getOptionalMethods(){return["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached"]}updateValue(e){this.value=e,this.refreshProps()}}(e.params,(()=>y((e=>e+1)))):e.componentFromFramework&&Eu(),C({compDetails:e,popup:t,popupPosition:n,compProxy:o}),t||v(void 0)}else C((e=>{(null==e?void 0:e.compProxy)&&(O.current=void 0)}))}},o=k.current||void 0;n.setComp(t,L.current,o,i,r)}),[]),X=p((()=>!!(m&&m.compDetails&&m.compDetails.componentFromFramework&&gu(m.compDetails.componentClass))),[m]);u((()=>{var e;L.current&&(Y.current.addOrRemoveCssClass("ag-cell-value",!W),Y.current.addOrRemoveCssClass("ag-cell-inline-editing",!!f&&!f.popup),Y.current.addOrRemoveCssClass("ag-cell-popup-editing",!!f&&!!f.popup),Y.current.addOrRemoveCssClass("ag-cell-not-inline-editing",!f||!!f.popup),null==(e=n.getRowCtrl())||e.setInlineEditingCss(!!f),n.shouldRestoreFocus()&&!n.isEditing()&&L.current.focus({preventScroll:!0}))}));const Z=()=>o.createElement(o.Fragment,null,null!=m&&((e,t,n,i,r,a,s)=>{const{compDetails:l,value:d}=e,c=!l,g=l&&l.componentFromFramework,u=l&&l.componentClass,h=(null==d?void 0:d.toString)?d.toString():d,p=()=>o.createElement(o.Fragment,null,c&&o.createElement(o.Fragment,null,h),g&&!a&&o.createElement(u,Wg(Bg({},l.params),{key:t,ref:i})),g&&a&&o.createElement(u,Wg(Bg({},l.params),{key:t})));return o.createElement(o.Fragment,null,r?o.createElement("span",{role:"presentation",id:`cell-${n}`,className:"ag-cell-value",ref:s},p()):p())})(m,w,g,F,W,X,B),null!=f&&((e,t,n,i,r,a)=>{const s=e.compDetails,l=s.componentClass,d=s.componentFromFramework&&!e.popup,c=s.componentFromFramework&&e.popup,g=!s.componentFromFramework&&e.popup;return o.createElement(o.Fragment,null,d&&Nu(e,l,t),c&&o.createElement(xu,{editDetails:e,cellCtrl:r,eParentCell:i,wrappedContent:Nu(e,l,n)}),g&&a&&o.createElement(xu,{editDetails:e,cellCtrl:r,eParentCell:i,jsChildComp:a}))})(f,K,j,L.current,n,M));return o.createElement("div",{ref:q,style:b,tabIndex:a,role:I,"col-id":s},W?o.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:Q},Z()):Z())})),Iu=a((e=>{const{context:t,gos:n}=l(lu),{rowCtrl:i,containerType:r}=e,a=i.getTabIndex(),s=d(i.getDomOrder()),g=i.isFullWidth(),v=i.getRowNode().displayed,[f,C]=c((()=>v?i.getRowIndex():null)),[w,y]=c((()=>i.getRowId())),[b,E]=c((()=>i.getBusinessKey())),[S,D]=c((()=>i.getRowStyles())),T=d(null),R=d(null),[A,x]=c((()=>null)),[M,N]=c(),[P,I]=c((()=>v?i.getInitialRowTop(r):void 0)),[L,F]=c((()=>v?i.getInitialTransform(r):void 0)),_=d(null),O=d(),k=d(!1),[G,z]=c(0);m((()=>{var e;if(k.current)return;if(!M)return;if(G>10)return;const t=null==(e=_.current)?void 0:e.firstChild;t?(i.setupDetailRowAutoHeight(t),k.current=!0):z((e=>e+1))}),[M,G]);let V=d();V.current||(V.current=new Mr((()=>_.current)));const H=h((e=>{if(_.current=e,!_.current)return void i.unsetComp(r);if(!i.isAlive())return;const t={setTop:I,setTransform:F,addOrRemoveCssClass:(e,t)=>V.current.addOrRemoveCssClass(e,t),setDomOrder:e=>s.current=e,setRowIndex:C,setRowId:y,setRowBusinessKey:E,setUserStyles:D,setCellCtrls:(e,t)=>{R.current=T.current,T.current=e;const n=mu(R.current,e,s.current);n!==R.current&&pu(t,(()=>x(n)))},showFullWidth:e=>N(e),getFullWidthCellRenderer:()=>O.current,refreshFullWidth:e=>K.current?(N((t=>Wg(Bg({},t),{params:e()}))),!0):!(!O.current||!O.current.refresh)&&O.current.refresh(e())};i.setComp(t,_.current,r)}),[]);u((()=>vu(M,t,_.current,O)),[M]);const B=p((()=>{const e={top:P,transform:L};return Object.assign(e,S),e}),[P,L,S]),W=g&&M&&M.componentFromFramework,U=!g&&null!=A,j=p((()=>!!((null==M?void 0:M.componentFromFramework)&&gu(M.componentClass))),[M]),K=d(!1);m((()=>{K.current=j&&!!M&&!!n.get("reactiveCustomComponents")}),[j,M]);return o.createElement("div",{ref:H,role:"row",style:B,"row-index":f,"row-id":w,"row-business-key":b,tabIndex:a},U&&(null==A?void 0:A.map((e=>o.createElement(Pu,{cellCtrl:e,editingRow:i.isEditing(),printLayout:i.isPrintLayout(),key:e.getInstanceId()})))),W&&(()=>{const e=M.componentClass;return o.createElement(o.Fragment,null,j&&o.createElement(e,Bg({},M.params)),!j&&o.createElement(e,Wg(Bg({},M.params),{ref:O})))})())})),Lu=a((e=>{const{context:t}=l(lu),{name:n}=e,i=p((()=>xl(n)),[n]),r=d(null),a=d(null),s=d([]),g=d([]),[u,m]=c((()=>[])),v=d(!1),f=d(),C=p((()=>Il.getRowContainerCssClasses(n)),[n]),w=p((()=>du(C.viewport)),[C]),y=p((()=>du(C.container)),[C]),b=n===Al.CENTER||n===Al.TOP_CENTER||n===Al.BOTTOM_CENTER||n===Al.STICKY_TOP_CENTER||n===Al.STICKY_BOTTOM_CENTER;Au(" AG Row Container "+n+" ",b?r:a);const E=h((()=>b?null!=r.current&&null!=a.current:null!=a.current),[]),S=h((()=>b?null==r.current&&null==a.current:null==a.current),[]),D=h((()=>{if(S()&&(t.destroyBean(f.current),f.current=null),E()){const e=e=>{const t=mu(g.current,s.current,v.current);t!==g.current&&(g.current=t,pu(e,(()=>m(t))))},i={setViewportHeight:e=>{r.current&&(r.current.style.height=e)},setRowCtrls:({rowCtrls:t,useFlushSync:n})=>{const i=!!n&&s.current.length>0&&t.length>0;s.current=t,e(i)},setDomOrder:t=>{v.current!=t&&(v.current=t,e(!1))},setContainerWidth:e=>{a.current&&(a.current.style.width=e)}};f.current=t.createBean(new Il(n)),f.current.setComp(i,a.current,r.current)}}),[E,S]),T=h((e=>{a.current=e,D()}),[D]),R=h((e=>{r.current=e,D()}),[D]),A=()=>o.createElement("div",{className:y,ref:T,role:"rowgroup"},u.map((e=>o.createElement(Iu,{rowCtrl:e,containerType:i,key:e.getInstanceId()}))));return o.createElement(o.Fragment,null,b?o.createElement("div",{className:w,ref:R,role:"presentation"},A()):A())})),Fu=a((()=>{const{context:e,agStackComponentsRegistry:t,resizeObserverService:n}=l(lu),[i,r]=c(""),[a,s]=c(0),[g,u]=c(0),[m,v]=c("0px"),[f,C]=c("0px"),[w,y]=c("100%"),[b,E]=c("0px"),[S,D]=c("0px"),[T,R]=c("100%"),[A,x]=c(""),[M,N]=c(""),[P,I]=c(null),[L,F]=c(""),[_,O]=c(null),[k,G]=c("ag-layout-normal");let z=d();z.current||(z.current=new Mr((()=>V.current)));const V=d(null),H=d(null),B=d(null),W=d(null),U=d(null),j=d(null),K=d(null),Y=d([]),$=d([]);Au(" AG Grid Body ",V),Au(" AG Pinned Top ",H),Au(" AG Sticky Top ",B),Au(" AG Middle ",j),Au(" AG Pinned Bottom ",K);const Q=h((i=>{if(V.current=i,!V.current)return e.destroyBeans(Y.current),$.current.forEach((e=>e())),Y.current=[],void($.current=[]);if(!e)return;const o=n=>{const i=t.getComponentClass(n),o=e.createBean(new i);return Y.current.push(o),o},a=(e,t)=>{e.appendChild(t),$.current.push((()=>e.removeChild(t)))};a(V.current,document.createComment(" AG Fake Horizontal Scroll ")),a(V.current,o("AG-FAKE-HORIZONTAL-SCROLL").getGui()),a(V.current,document.createComment(" AG Overlay Wrapper ")),a(V.current,o("AG-OVERLAY-WRAPPER").getGui()),U.current&&(a(U.current,document.createComment(" AG Fake Vertical Scroll ")),a(U.current,o("AG-FAKE-VERTICAL-SCROLL").getGui()));const l={setRowAnimationCssOnBodyViewport:r,setColumnCount:e=>{V.current&&Rr.setAriaColCount(V.current,e)},setRowCount:e=>{V.current&&Rr.setAriaRowCount(V.current,e)},setTopHeight:s,setBottomHeight:u,setStickyTopHeight:v,setStickyTopTop:C,setStickyTopWidth:y,setTopDisplay:x,setBottomDisplay:N,setColumnMovingCss:(e,t)=>z.current.addOrRemoveCssClass(e,t),updateLayoutClasses:G,setAlwaysVerticalScrollClass:I,setPinnedTopBottomOverflowY:F,setCellSelectableCss:(e,t)=>O(t?e:null),setBodyViewportWidth:e=>{j.current&&(j.current.style.width=e)},registerBodyViewportResizeListener:e=>{if(j.current){const t=n.observeResize(j.current,e);$.current.push((()=>t()))}},setStickyBottomHeight:E,setStickyBottomBottom:D,setStickyBottomWidth:R},d=e.createBean(new rl);Y.current.push(d),d.setComp(l,V.current,j.current,H.current,K.current,B.current,W.current)}),[]),q=p((()=>du("ag-root","ag-unselectable",k)),[k]),X=p((()=>du("ag-body-viewport",i,k,P,_)),[i,k,P,_]),Z=p((()=>du("ag-body",k)),[k]),J=p((()=>du("ag-floating-top",_)),[_]),ee=p((()=>du("ag-sticky-top",_)),[_]),te=p((()=>du("ag-sticky-bottom",_)),[_]),ne=p((()=>du("ag-floating-bottom",_)),[_]),ie=p((()=>({height:a,minHeight:a,display:A,overflowY:L})),[a,A,L]),oe=p((()=>({height:m,top:f,width:w})),[m,f,w]),re=p((()=>({height:b,bottom:S,width:T})),[b,S,T]),ae=p((()=>({height:g,minHeight:g,display:M,overflowY:L})),[g,M,L]),se=e=>o.createElement(Lu,{name:e,key:`${e}-container`}),le=({section:e,children:t,className:n,style:i})=>o.createElement("div",{ref:e,className:n,role:"presentation",style:i},t.map(se));return o.createElement("div",{ref:Q,className:q,role:"treegrid"},o.createElement(Ru,null),le({section:H,className:J,style:ie,children:[Al.TOP_LEFT,Al.TOP_CENTER,Al.TOP_RIGHT,Al.TOP_FULL_WIDTH]}),o.createElement("div",{className:Z,ref:U,role:"presentation"},le({section:j,className:X,children:[Al.LEFT,Al.CENTER,Al.RIGHT,Al.FULL_WIDTH]})),le({section:B,className:ee,style:oe,children:[Al.STICKY_TOP_LEFT,Al.STICKY_TOP_CENTER,Al.STICKY_TOP_RIGHT,Al.STICKY_TOP_FULL_WIDTH]}),le({section:W,className:te,style:re,children:[Al.STICKY_BOTTOM_LEFT,Al.STICKY_BOTTOM_CENTER,Al.STICKY_BOTTOM_RIGHT,Al.STICKY_BOTTOM_FULL_WIDTH]}),le({section:K,className:ne,style:ae,children:[Al.BOTTOM_LEFT,Al.BOTTOM_CENTER,Al.BOTTOM_RIGHT,Al.BOTTOM_FULL_WIDTH]}))})),_u=a(s(((e,t)=>{const{children:n,eFocusableElement:i,onTabKeyDown:r,gridCtrl:a,forceFocusOutWhenTabGuardsAreEmpty:s}=e,{context:c}=l(lu),u=d(null),p=d(null),m=d(),v=e=>{const t=null==e?void 0:parseInt(e,10).toString();[u,p].forEach((e=>{var n,i;void 0===t?null==(n=e.current)||n.removeAttribute("tabindex"):null==(i=e.current)||i.setAttribute("tabindex",t)}))};g(t,(()=>({forceFocusOutOfContainer(e){var t;null==(t=m.current)||t.forceFocusOutOfContainer(e)}})));const f=h((()=>{if(!u.current&&!p.current)return c.destroyBean(m.current),void(m.current=null);if(u.current&&p.current){const e={setTabIndex:v};m.current=c.createBean(new Ed({comp:e,eTopGuard:u.current,eBottomGuard:p.current,eFocusableElement:i,onTabKeyDown:r,forceFocusOutWhenTabGuardsAreEmpty:s,focusInnerElement:e=>a.focusInnerElement(e)}))}}),[]),C=h((e=>{u.current=e,f()}),[f]),w=h((e=>{p.current=e,f()}),[f]),y=e=>{const t="top"===e?bd.TAB_GUARD_TOP:bd.TAB_GUARD_BOTTOM;return o.createElement("div",{className:`${bd.TAB_GUARD} ${t}`,role:"presentation",ref:"top"===e?C:w})};return o.createElement(o.Fragment,null,y("top"),n,y("bottom"))}))),Ou=a((({context:e})=>{const[t,n]=c(""),[i,r]=c(""),[a,s]=c(""),[l,g]=c(null),[u,v]=c(null),[f,C]=c(!1),[w,y]=c(),b=d(null),E=d(null),S=d(),[D,T]=c(null),R=d((()=>{})),A=h((()=>{}),[]),x=p((()=>e.isDestroyed()?null:e.getBean("beans")),[e]);Au(" AG Grid ",E);const M=h((t=>{if(E.current=t,!E.current)return e.destroyBean(b.current),void(b.current=null);if(e.isDestroyed())return;b.current=e.createBean(new xc);const i=b.current;R.current=i.focusInnerElement.bind(i);const o={destroyGridUi:()=>{},setRtlClass:n,forceFocusOutOfContainer:e=>{var t;null==(t=S.current)||t.forceFocusOutOfContainer(e)},updateLayoutClasses:s,getFocusableContainers:()=>{var e,t;const n=[],i=null==(e=E.current)?void 0:e.querySelector(".ag-root"),o=null==(t=E.current)?void 0:t.querySelector(".ag-side-bar:not(.ag-hidden)");return i&&n.push(i),o&&n.push(o),n},setCursor:g,setUserSelect:v};i.setComp(o,E.current,E.current),C(!0)}),[]);m((()=>{if(!(w&&x&&b.current&&D&&E.current))return;const t=b.current,n=[],{agStackComponentsRegistry:i}=x,o=i.getComponentClass("AG-GRID-HEADER-DROP-ZONES"),r=i.getComponentClass("AG-SIDE-BAR"),a=i.getComponentClass("AG-STATUS-BAR"),s=i.getComponentClass("AG-WATERMARK"),l=i.getComponentClass("AG-PAGINATION"),d=[],c=E.current;if(t.showDropZones()&&o){const t=e.createBean(new o),i=t.getGui();c.insertAdjacentElement("afterbegin",i),d.push(i),n.push(t)}if(t.showSideBar()&&r){const t=e.createBean(new r),i=t.getGui(),o=D.querySelector(".ag-tab-guard-bottom");o&&(o.insertAdjacentElement("beforebegin",i),d.push(i)),n.push(t)}if(t.showStatusBar()&&a){const t=e.createBean(new a),i=t.getGui();c.insertAdjacentElement("beforeend",i),d.push(i),n.push(t)}if(l){const t=e.createBean(new l),i=t.getGui();c.insertAdjacentElement("beforeend",i),d.push(i),n.push(t)}if(t.showWatermark()&&s){const t=e.createBean(new s),i=t.getGui();c.insertAdjacentElement("beforeend",i),d.push(i),n.push(t)}return()=>{e.destroyBeans(n),d.forEach((e=>{e.parentElement&&e.parentElement.removeChild(e)}))}}),[w,D,x]);const N=p((()=>du("ag-root-wrapper",t,i,a)),[t,i,a]),P=p((()=>du("ag-root-wrapper-body","ag-focus-managed",a)),[a]),I=p((()=>({userSelect:null!=u?u:"",WebkitUserSelect:null!=u?u:"",cursor:null!=l?l:""})),[u,l]),L=h((e=>{S.current=e,y(null!==e)}),[]);return o.createElement("div",{ref:M,className:N,style:I,role:"presentation"},o.createElement("div",{className:P,ref:T,role:"presentation"},f&&D&&x&&o.createElement(lu.Provider,{value:x},o.createElement(_u,{ref:L,eFocusableElement:D,onTabKeyDown:A,gridCtrl:b.current,forceFocusOutWhenTabGuardsAreEmpty:!0},o.createElement(Fu,null)))))})),ku=e=>{var t,n;const i=d(),r=d(null),a=d(null),s=d([]),l=d([]),g=d(e),u=d(!1),[v,f]=c(void 0),[,C]=c(0),w=h((t=>{if(r.current=t,!r.current)return s.current.forEach((e=>e())),void(s.current.length=0);const n=e.modules||[];a.current||(a.current=new su((()=>C((e=>e+1))),e.componentWrappingElement,e.maxComponentCreationTimeMs),s.current.push((()=>{var e;null==(e=a.current)||e.destroy(),a.current=null})));const o=Xn.combineAttributesAndGridOptions(e.gridOptions,e),d={providedBeanInstances:{frameworkComponentWrapper:new Gu(a.current,!!o.reactiveCustomComponents)},modules:n,frameworkOverrides:new Vu},c=new class{create(e,t,n,i,o){var r;let a={};Pg.gridOptions?(et(a,Pg.gridOptions,!0,!0),a=Ie(Ie({},a),t)):a=t;const s=fg.getCoercedGridOptions(a),l=!!s.debug,d=null!=(r=s.gridId)?r:String(Ig++),c=this.getRegisteredModules(o,d),g=this.createBeansList(s.rowModelType,c,d),u=this.createProvidedBeans(e,s,o);if(!g)return void lt("Failed to create grid.");const h={providedBeanInstances:u,beanClasses:g,debug:l,gridId:d},p=new Ac("Context",(()=>h.debug)),m=new class{constructor(e,t){if(this.beanWrappers={},this.destroyed=!1,!e||!e.beanClasses)return;this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.createBeans();const n=this.getBeanInstances();this.wireBeans(n),this.logger.log(">> ag-Application Context ready - component is alive")}getBeanInstances(){return $e(this.beanWrappers).map((e=>e.beanInstance))}createBean(e,t){if(!e)throw Error("Can't wire to bean since it is null");return this.wireBeans([e],t),e}wireBeans(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),ze(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")}createBeans(){this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),qe(this.beanWrappers,((e,t)=>{let n;t.bean.__agBeanMetaData&&t.bean.__agBeanMetaData.autowireMethods&&t.bean.__agBeanMetaData.autowireMethods.agConstructor&&(n=t.bean.__agBeanMetaData.autowireMethods.agConstructor);const i=this.getBeansForParameters(n,t.bean.name),o=new(t.bean.bind.apply(t.bean,[null,...i]));t.beanInstance=o}));const e=Object.keys(this.beanWrappers).join(", ");this.logger.log(`created beans: ${e}`)}createBeanWrapper(e){const t=e.__agBeanMetaData;if(!t){let t;return t=e.prototype.constructor?dt(e.prototype.constructor):""+e,void console.error(`Context item ${t} is not a bean`)}const n={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=n}autoWireBeans(e){e.forEach((e=>{this.forEachMetaDataInHierarchy(e,((t,n)=>{const i=t.agClassAttributes;i&&i.forEach((t=>{const i=this.lookupBeanInstance(n,t.beanName,t.optional);e[t.attributeName]=i}))}))}))}methodWireBeans(e){e.forEach((e=>{this.forEachMetaDataInHierarchy(e,((t,n)=>{qe(t.autowireMethods,((t,i)=>{if("agConstructor"===t)return;const o=this.getBeansForParameters(i,n);e[t].apply(e,o)}))}))}))}forEachMetaDataInHierarchy(e,t){let n=Object.getPrototypeOf(e);for(;null!=n;){const e=n.constructor;e.hasOwnProperty("__agBeanMetaData")&&t(e.__agBeanMetaData,this.getBeanName(e)),n=Object.getPrototypeOf(n)}}getBeanName(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;const t=e.toString();return t.substring(9,t.indexOf("("))}getBeansForParameters(e,t){const n=[];return e&&qe(e,((e,i)=>{const o=this.lookupBeanInstance(t,i);n[Number(e)]=o})),n}lookupBeanInstance(e,t,n=!1){if(this.destroyed)return this.logger.log(`AG Grid: bean reference ${t} is used after the grid is destroyed!`),null;if("context"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];const i=this.beanWrappers[t];return i?i.beanInstance:(n||console.error(`AG Grid: unable to find bean reference ${t} while initialising ${e}`),null)}callLifeCycleMethods(e,t){e.forEach((e=>this.callLifeCycleMethodsOnBean(e,t)))}callLifeCycleMethodsOnBean(e,t,n){const i={};this.forEachMetaDataInHierarchy(e,(e=>{const o=e[t];o&&o.forEach((e=>{e!=n&&(i[e]=!0)}))})),Object.keys(i).forEach((t=>e[t]()))}getBean(e){return this.lookupBeanInstance("getBean",e,!0)}destroy(){if(this.destroyed)return;this.destroyed=!0,this.logger.log(">> Shutting down ag-Application Context");const e=this.getBeanInstances();this.destroyBeans(e),this.contextParams.providedBeanInstances=null,St.__unRegisterGridModules(this.contextParams.gridId),this.logger.log(">> ag-Application Context shut down - component is dead")}destroyBean(e){e&&this.destroyBeans([e])}destroyBeans(e){return e?(e.forEach((e=>{this.callLifeCycleMethodsOnBean(e,"preDestroyMethods","destroy");const t=e;"function"==typeof t.destroy&&t.destroy()})),[]):[]}isDestroyed(){return this.destroyed}getGridId(){return this.contextParams.gridId}}(h,p),v=m.getBean("beans");return this.registerModuleUserComponents(v,c),this.registerStackComponents(v,c),this.registerControllers(v,c),n(m),v.syncService.start(),i&&i(m),m.getBean("gridApi")}registerControllers(e,t){t.forEach((t=>{t.controllers&&t.controllers.forEach((t=>e.ctrlsFactory.register(t)))}))}registerStackComponents(e,t){const n=this.createAgStackComponentsList(t);e.agStackComponentsRegistry.setupComponents(n)}getRegisteredModules(e,t){const n=e?e.modules:null,i=St.__getRegisteredModules(t),o=[],r={},a=(e,t,n)=>{var i;r[(i=t).moduleName]||(r[i.moduleName]=!0,o.push(i),St.__register(i,e,n)),t.dependantModules&&t.dependantModules.forEach((t=>a(e,t,n)))};return n&&n.forEach((e=>a(!0,e,t))),i&&i.forEach((e=>a(!St.__isPackageBased(),e,void 0))),o}registerModuleUserComponents(e,t){const n=this.extractModuleEntity(t,(e=>e.userComponents?e.userComponents:[]));n.forEach((t=>{e.userComponentRegistry.registerDefaultComponent(t.componentName,t.componentClass)}))}createProvidedBeans(e,t,n){let i=n?n.frameworkOverrides:null;Ve(i)&&(i=new wc);const o={gridOptions:t,eGridDiv:e,globalEventListener:n?n.globalEventListener:null,globalSyncEventListener:n?n.globalSyncEventListener:null,frameworkOverrides:i};return n&&n.providedBeanInstances&&Object.assign(o,n.providedBeanInstances),o}createAgStackComponentsList(e){let t=[{componentName:"AgCheckbox",componentClass:ia},{componentName:"AgRadioButton",componentClass:oa},{componentName:"AgToggleButton",componentClass:Hd},{componentName:"AgInputTextField",componentClass:va},{componentName:"AgInputTextArea",componentClass:Bd},{componentName:"AgInputNumberField",componentClass:fa},{componentName:"AgInputDateField",componentClass:Wd},{componentName:"AgInputRange",componentClass:Ud},{componentName:"AgRichSelect",componentClass:$d},{componentName:"AgSelect",componentClass:ta},{componentName:"AgSlider",componentClass:qd},{componentName:"AgGridBody",componentClass:Ll},{componentName:"AgHeaderRoot",componentClass:Cd},{componentName:"AgSortIndicator",componentClass:La},{componentName:"AgPagination",componentClass:Uc},{componentName:"AgPageSizeSelector",componentClass:Mg},{componentName:"AgOverlayWrapper",componentClass:Kc},{componentName:"AgGroupComponent",componentClass:Zd},{componentName:"AgRowContainer",componentClass:Hl},{componentName:"AgFakeHorizontalScroll",componentClass:lg},{componentName:"AgFakeVerticalScroll",componentClass:yg},{componentName:"AgAutocomplete",componentClass:pc}];const n=this.extractModuleEntity(e,(e=>e.agStackComponents?e.agStackComponents:[]));return t=t.concat(n),t}createBeansList(e="clientSide",t,n){const i=t.filter((t=>!t.rowModel||t.rowModel===e)),o={clientSide:"@ag-grid-community/client-side-row-model",infinite:"@ag-grid-community/infinite-row-model",serverSide:"@ag-grid-enterprise/server-side-row-model",viewport:"@ag-grid-enterprise/viewport-row-model"};if(!o[e])return void lt("Could not find row model for rowModelType = "+e);if(!St.__assertRegistered(o[e],`rowModelType = '${e}'`,n))return;const r=[dl,Yc,$c,eg,Fc,Qs,ys,kc,Gc,Td,Hs,Bc,wd,Cg,Ag,Fd,js,Kn,Lt,fg,dc,Ec,Xs,Wn,md,zd,Id,Tc,Sn,bc,Ol,_c,Dc,Rc,Nd,yd,qa,Sc,Pc,_l,Hc,yc,Vd,Fl,Nc,Ic,Lc,Wc,Nn,Oc,Rd,Jc,Zn,tg,ng,Gd,ig,og,dg,cg,rg,Sg,qs,Dg,Tg,Rg,xd,xg,Ng,Md],a=this.extractModuleEntity(i,(e=>e.beans?e.beans:[]));r.push(...a);const s=[];return r.forEach((e=>{s.indexOf(e)<0&&s.push(e)})),s}extractModuleEntity(e,t){return[].concat(...e.map(t))}};i.current=c.create(r.current,o,(t=>{f(t),s.current.push((()=>{t.destroy()}));t.getBean(og.NAME).whenReady((()=>{if(t.isDestroyed())return;const n=i.current;n&&e.setGridApi&&e.setGridApi(n,new Sc(n))}))}),(e=>{e.getBean(og.NAME).whenReady((()=>{l.current.forEach((e=>e())),l.current.length=0,u.current=!0}))}),d)}),[]),y=p((()=>Bg({height:"100%"},e.containerStyle||{})),[e.containerStyle]),b=h((e=>{u.current?e():l.current.push(e)}),[]);return m((()=>{const t=function(e,t){const n={};return Object.keys(t).forEach((i=>{const o=t[i];e[i]!==o&&(n[i]=o)})),n}(g.current,e);g.current=e,b((()=>{i.current&&Xn.processOnChange(t,i.current)}))}),[e]),o.createElement("div",{style:y,className:e.className,ref:w},v&&!v.isDestroyed()?o.createElement(Ou,{context:v}):null,null!=(n=null==(t=a.current)?void 0:t.getPortals())?n:null)};var Gu=class extends Lg{constructor(e,t){super(),this.parent=e,this.reactiveCustomComponents=t}createWrapper(e,t){if(this.reactiveCustomComponents){const n=(e=>{switch(e){case"filter":return Zg;case"floatingFilterComponent":return eu;case"dateComponent":return Xg;case"loadingOverlayComponent":return tu;case"noRowsOverlayComponent":return iu;case"statusPanel":return ou;case"toolPanel":return ru;case"menuItem":return nu}})(t.propertyName);if(n)return new n(e,this.parent,t)}else switch(t.propertyName){case"filter":case"floatingFilterComponent":case"dateComponent":case"loadingOverlayComponent":case"noRowsOverlayComponent":case"statusPanel":case"toolPanel":case"menuItem":Eu()}const n=!t.cellRenderer&&"toolPanel"!==t.propertyName;return new $g(e,this.parent,t,n)}},zu=s(((e,t)=>{const{ctrlsFactory:n,context:i,gos:r,resizeObserverService:a,clientSideRowModel:s,serverSideRowModel:u}=l(lu),[m,v]=c((()=>new cu)),[f,C]=c((()=>new cu)),[w,y]=c(),[b,E]=c(),S=d(),D=d(null),T=d(),R=p((()=>St.__getGridRegisteredModules(e.api.getGridId())),[e]),A=p((()=>m.toString()+" ag-details-row"),[m]),x=p((()=>f.toString()+" ag-details-grid"),[f]);t&&g(t,(()=>({refresh(){var e,t;return null!=(t=null==(e=S.current)?void 0:e.refresh())&&t}}))),e.template&&Rr.warnOnce("detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://ag-grid.com/react-data-grid/master-detail-custom-detail/");const M=h((t=>{if(D.current=t,!D.current)return i.destroyBean(S.current),void(T.current&&T.current());const o={addOrRemoveCssClass:(e,t)=>v((n=>n.setClass(e,t))),addOrRemoveDetailGridCssClass:(e,t)=>C((n=>n.setClass(e,t))),setDetailGrid:e=>y(e),setRowData:e=>E(e),getGui:()=>D.current},l=n.getInstance("detailCellRenderer");if(l&&(i.createBean(l),l.init(o,e),S.current=l,r.get("detailRowAutoHeight"))){const t=()=>{if(null==D.current)return;const t=D.current.clientHeight;if(null!=t&&t>0){setTimeout((()=>{e.node.setRowHeight(t),s?s.onRowHeightChanged():u&&u.onRowHeightChanged()}),0)}};T.current=a.observeResize(D.current,t),t()}}),[]),N=h(((e,t)=>{var n;null==(n=S.current)||n.registerDetailWithMaster(e,t)}),[]);return o.createElement("div",{className:A,ref:M},w&&o.createElement(ku,Wg(Bg({className:x},w),{modules:R,rowData:b,setGridApi:N})))})),Vu=class extends wc{constructor(){super("react"),this.frameworkComponents={agGroupCellRenderer:wu,agGroupRowRenderer:wu,agDetailCellRenderer:zu},this.wrapIncoming=(e,t)=>{return"ensureVisible"===t?(n=e,hu||setTimeout((()=>hu=!1),0),hu=!0,n()):e();var n},this.renderingEngine="react"}frameworkComponent(e){return this.frameworkComponents[e]}isFrameworkComponent(e){if(!e)return!1;const t=e.prototype;return!(t&&"getGui"in t)}},Hu=class extends f{constructor(){super(...arguments),this.apiListeners=[],this.setGridApi=(e,t)=>{this.api=e,this.columnApi=t,this.apiListeners.forEach((t=>t(e)))}}registerApiListener(e){this.apiListeners.push(e)}componentWillUnmount(){this.apiListeners.length=0}render(){return o.createElement(ku,Wg(Bg({},this.props),{setGridApi:this.setGridApi}))}};const Bu=()=>l(Uh).gridInstance,Wu=()=>{const e=Bu().selection;return{type:e.type,selectedRecordIds:e.selectedRecordIds,allRecordsSelected:e.allRecordsSelected,toggle:(t,n)=>e.toggle(t,n),clear:()=>e.clear(),selectAll:()=>e.selectAll()}},Uu=(e,t)=>t?"100%":`calc(${e} * 42px + var(--height-offset))`,ju=()=>{const e=Bu().recordUpdateService;return{isDirty:e.isDirty,hasInvalidRecords:e.hasInvalidRecords,updatedRecords:[...e.updatedRecords.values()],saveAll:()=>e.saveAll(),clearAll:()=>e.clearAll(),record:t=>{const n=e.record(t);return{get:()=>n.get(),setValue:(e,t)=>{n.setValue(e,t)}}}}};class Component$1 extends GridDependency{constructor(){super(...arguments),this._debouncedGetLookupValue=((e,t)=>{let n=null,i=null;return(...o)=>w(void 0,void 0,void 0,(function*(){return i||(i=e(...o)),n&&clearTimeout(n),n=setTimeout((()=>{i=null}),t),i}))})(this._getLookupValue.bind(this),50)}getControlProps(e){var t;return w(this,void 0,void 0,(function*(){const{column:n,value:i,onNotifyOutputChanged:o,additionalParameters:r,formattedValue:a}=Object.assign({},e),[s,l]=new ColumnValidation(this._grid,e.column).validate(i);switch(n.dataType){case Ce.LOOKUP_SIMPLE:case Ce.LOOKUP_OWNER:{const e=yield this._grid.metadata.get(n),a=null!==(t=e.Attributes.get(n.attributeName).attributeDescriptor.Targets)&&void 0!==t?t:[];n.dataType===Ce.LOOKUP_OWNER&&a.push("systemuser","team");return{context:this._getInjectedContext(r),parameters:Object.assign({value:{getAllViews:e=>w(this,void 0,void 0,(function*(){Component$1._lookupSavedQueriesCache.get(e)||Component$1._lookupSavedQueriesCache.set(e,new Promise((t=>w(this,void 0,void 0,(function*(){const n=yield this._pcfContext.webAPI.retrieveMultipleRecords("savedquery",`?$filter=returnedtypecode eq '${e}' and querytype eq 64 and isdefault eq true&$select=name,savedqueryid,fetchxml`);t(n.entities[0])})))));const t=yield Component$1._lookupSavedQueriesCache.get(e);return[{isDefault:!0,viewName:t.name,viewId:t.savedqueryid,fetchXml:t.fetchxml}]})),raw:yield this._debouncedGetLookupValue(a,i),attributes:{Targets:a},error:!s,errorMessage:l}},r),onNotifyOutputChanged:e=>o(e.value)}}case Ce.TWO_OPTIONS:{const e=i,[t,a]=yield this._grid.metadata.getOptions(n);return{context:this._getInjectedContext(r),parameters:Object.assign({value:{raw:!0===e,error:!s,errorMessage:l,attributes:{Options:a}}},r),onNotifyOutputChanged:e=>o(e.value)}}case Ce.OPTIONSET:{const e=i,[t,a]=yield this._grid.metadata.getOptions(n);return{context:this._getInjectedContext(r),parameters:Object.assign({value:{raw:null!=e?e:null,error:!s,errorMessage:l,attributes:{Options:a}}},r),onNotifyOutputChanged:e=>o(e.value)}}case Ce.MULTI_SELECT_OPTIONSET:{const[e,t]=yield this._grid.metadata.getOptions(n),a=i;return{context:this._getInjectedContext(r),parameters:Object.assign({value:{raw:null!=a?a:null,error:!s,errorMessage:l,attributes:{Options:t}}},r),onNotifyOutputChanged:e=>o(e.value)}}case Ce.DATE_AND_TIME_DATE_AND_TIME:case Ce.DATE_AND_TIME_DATE_ONLY:{const e=i,t=yield this._grid.metadata.get(n),a=S(e);return{context:this._getInjectedContext(r),parameters:Object.assign({value:{raw:a.isValid()?a.toDate():e,error:!s,errorMessage:l,attributes:{Behavior:t.Attributes.get(n.attributeName).Behavior,Format:n.dataType}}},r),onNotifyOutputChanged:e=>o(e.value)}}case Ce.WHOLE_NONE:case Ce.DECIMAL:case Ce.CURRENCY:case Ce.WHOLE_DURATION:{const e=i,t=(yield this._grid.metadata.get(n)).Attributes.get(n.attributeName).Precision;return{context:this._getInjectedContext(r),parameters:Object.assign({value:{raw:null!=e?e:null,error:!s,formatted:a,errorMessage:l,type:n.dataType,attributes:{Precision:t}},NotifyOutputChangedOnUnmount:{raw:!0}},r),onNotifyOutputChanged:e=>o(e.value)}}default:return{context:this._getInjectedContext(r),parameters:Object.assign({isResizable:{raw:!1},NotifyOutputChangedOnUnmount:{raw:!0},value:{raw:i,error:!s,errorMessage:l}},r),onNotifyOutputChanged:e=>o(e.value)}}}))}_getInjectedContext(e){var t,n,i,o;return Object.assign(Object.assign({},this._pcfContext),{mode:Object.assign(Object.assign({},this._pcfContext.mode),{allocatedHeight:null!==(n=null===(t=null==e?void 0:e.Height)||void 0===t?void 0:t.raw)&&void 0!==n?n:this._pcfContext.mode.allocatedHeight,allocatedWidth:null!==(o=null===(i=null==e?void 0:e.Width)||void 0===i?void 0:i.raw)&&void 0!==o?o:this._pcfContext.mode.allocatedWidth})})}_getLookupValue(e,t){return w(this,void 0,void 0,(function*(){if(!t||0===t.length)return[];if(!t[0].entityType)for(const n of t)for(const t of e)try{const e=yield this._pcfContext.utils.getEntityMetadata(t,[]),i=yield this._pcfContext.webAPI.retrieveRecord(t,n.id,`?$select=${e.PrimaryNameAttribute}`);n.entityType=t,n.name=i[e.PrimaryNameAttribute];break}catch(e){continue}return t}))}}Component$1._lookupSavedQueriesCache=new Map;const Ku=n=>{const i=(e=>{const t=Bu(),n=p((()=>new Component$1(t)),[]),[i,o]=c(),r=d(!0);return m((()=>{w(void 0,void 0,void 0,(function*(){const t=yield n.getControlProps(e);r.current&&o({column:e.column,componentProps:t})}))}),[e]),m((()=>()=>{r.current=!1}),[]),i})(n),{column:o,componentProps:r}=Object.assign({},i);if(!o)return e(t,{});switch(o.dataType){case Ce.TWO_OPTIONS:return e(te,Object.assign({},r));case Ce.OPTIONSET:return e(J,Object.assign({},r));case Ce.MULTI_SELECT_OPTIONSET:return e(Z,Object.assign({},r));case Ce.DATE_AND_TIME_DATE_AND_TIME:case Ce.DATE_AND_TIME_DATE_ONLY:return e(q,Object.assign({},r));case Ce.DECIMAL:case Ce.WHOLE_NONE:case Ce.CURRENCY:return e(X,Object.assign({},r));case Ce.LOOKUP_SIMPLE:case Ce.LOOKUP_OWNER:return e(y,Object.assign({},r));case Ce.WHOLE_DURATION:return e(ne,Object.assign({},r));default:return e(ee,Object.assign({},r))}},Yu=t=>{const n=Bu(),o=t.baseColumn,r=ju(),a=i.useRef(!0),s=i.useRef(!1),l=(()=>{const e=n.recordUpdateService.record(t.data.getRecordId()).get();return null!=e?e:t.data})(),d=i.useRef(l.getValue(o.key)),[c,g]=i.useState(d.current);i.useEffect((()=>()=>{a.current=!1,s.current&&r.record(l.getRecordId()).setValue(o.key,u(d.current))}),[]);const u=e=>{var t;switch(o.dataType){case Ce.TWO_OPTIONS:e=!0===e?"1":"0";break;case Ce.LOOKUP_SIMPLE:case Ce.LOOKUP_OWNER:e=null===(t=null==e?void 0:e.map((e=>({entityName:e.entityType,name:e.name,id:e.id}))))||void 0===t?void 0:t[0]}return e};return e(Ku,{column:o,value:(e=>{if(s.current)return e;switch(o.dataType){case Ce.TWO_OPTIONS:e="1"===e;break;case Ce.OPTIONSET:e=e?parseInt(e):null;break;case Ce.MULTI_SELECT_OPTIONSET:e=e?e.split(",").map((e=>parseInt(e))):null;break;case Ce.LOOKUP_SIMPLE:case Ce.LOOKUP_OWNER:e&&!Array.isArray(e)&&(e=[e]),e=null==e?void 0:e.map((e=>({entityType:e.etn,id:e.id.guid,name:e.name})))}return e})(c),formattedValue:l.getFormattedValue(o.key),onNotifyOutputChanged:e=>{if(d.current=e,s.current=!0,a.current){switch(o.dataType){case Ce.OPTIONSET:case Ce.DATE_AND_TIME_DATE_ONLY:return void t.stopEditing();case Ce.LOOKUP_OWNER:case Ce.LOOKUP_SIMPLE:if((null==e?void 0:e.length)>0)return void t.stopEditing()}g(d.current)}else r.record(l.getRecordId()).setValue(o.key,u(d.current))},additionalParameters:{AutoFocus:{raw:!0},Height:{raw:41},EnableNavigation:{raw:!1},IsInlineNewEnabled:{raw:!1}}})},$u=P({"100%":{backgroundPosition:"150px 0"}}),Qu=e=>N({root:{display:"flex",height:"100%",alignItems:"center",gap:10},text:{fontSize:14,overflow:"hidden",textOverflow:"ellipsis"},link:{fontSize:14,overflow:"hidden",textOverflow:"ellipsis"},fileWrapper:{display:"flex",gap:3},image:{marginRight:5,img:{width:32}},cellContent:{display:"flex",height:"100%",alignItems:"center",flexGrow:1,overflow:"hidden",':has([data-align="right"])':{justifyContent:"flex-end"}},loadingLine:{height:7,borderRadius:5,width:"100%",animation:`${$u} 2s infinite`,backgroundSize:"1000px 100%",background:`linear-gradient(to right, color-mix(in oklab, ${e.palette.white}, ${e.palette.black} 8%) 4%, color-mix(in oklab, ${e.palette.white}, ${e.palette.black} 5%) 25%, color-mix(in oklab, ${e.palette.white}, ${e.palette.black} 8%) 36%)`}}),qu=N({root:{backgroundColor:"transparent"},talxisRoot:{minWidth:0,flexShrink:1,flexGrow:1},button:{backgroundColor:"transparent"},icon:{width:16,height:16,marginLeft:4,marginRight:4}}),Xu=P({"0%":{backgroundPosition:"-100px 0"},"100%":{backgroundPosition:"100px 0"}}),Zu=a((({name:t})=>{var n;const i=(null===(n=window.TALXIS)||void 0===n?void 0:n.Portal)?t:`https://${window.location.host}${window.Xrm.Utility.getGlobalContext().getWebResourceUrl(t)}`;return e("svg",{"data-src":i,className:qu.icon})})),Ju=({record:n})=>{const[i]=(t=>{const n=Bu(),i=n.dataset;console.log("rendering ribbon");const[o,r]=c(null);m((()=>{w(void 0,void 0,void 0,(function*(){r(yield a())}))}),[]);const a=()=>w(void 0,void 0,void 0,(function*(){var o;const r=[];if(!i.retrieveRecordCommand)return[];const a=yield i.retrieveRecordCommand([t.getRecordId()],n.inlineRibbonButtonIds);for(const t of a)t.shouldBeVisible&&r.push({key:t.commandButtonId,text:t.label,"data-id":t.commandButtonId,"data-command":t.commandId,buttonStyles:{root:qu.button,rootHovered:qu.button,rootPressed:qu.button},onClick:e=>{null==e||e.stopPropagation(),t.execute()},onRenderIcon:(null===(o=t.icon)||void 0===o?void 0:o.includes(".svg"))?()=>e(Zu,{name:t.icon}):void 0,iconProps:t.icon?{iconName:t.icon}:void 0});return r}));return[o]})(n),o=(r=I(),N({loading:{overflow:"hidden",padding:15,flex:1,display:"grid",alignItems:"center",gridTemplateColumns:"repeat(3, minmax(0px, 100px))",gap:15,justifyContent:"flex-start"},loadingLine:{height:10,borderRadius:5,width:"100%",animation:`${Xu} 2s infinite`,backgroundSize:"1000px 100%",background:`linear-gradient(to right, color-mix(in oklab, ${r.palette.white}, ${r.palette.black} 8%) 4%, color-mix(in oklab, ${r.palette.white}, ${r.palette.black} 5%) 25%, color-mix(in oklab, ${r.palette.white}, ${r.palette.black} 8%) 36%)`}}));var r;return i?(null==i?void 0:i.length)>0?e(re,{className:qu.talxisRoot,overflowButtonProps:{styles:{root:qu.button,rootHovered:qu.button,rootPressed:qu.button,rootExpanded:qu.button}},styles:{root:qu.root},items:[],farItems:i}):e(t,{}):e("div",Object.assign({className:o.loading},{children:Array.from(Array(3).keys()).map((t=>e("div",{className:o.loadingLine},t)))}))},eh=N({root:{display:"flex",gap:5,overflow:"hidden","--light":80,"--threshold":60,flexGrow:1},option:{borderRadius:5,paddingLeft:4,paddingRight:4,overflow:"hidden",textOverflow:"ellipsis",flexGrow:1,textAlign:"center",">span":{color:"inherit"}}}),th=n=>{const i=Bu(),{record:o,column:r,defaultRender:a}=Object.assign({},n),[s,l]=c(null),d=I().palette.neutralLight;return m((()=>{w(void 0,void 0,void 0,(function*(){const e=yield w(void 0,void 0,void 0,(function*(){var e;const[t,n]=yield i.metadata.getOptions(r);let a=o.getValue(r.key);return r.dataType===Ce.OPTIONSET&&(a=a?[parseInt(a)]:null),r.dataType===Ce.MULTI_SELECT_OPTIONSET&&(a=a?a.split(",").map((e=>parseInt(e))):null),r.dataType===Ce.TWO_OPTIONS&&(a=[parseInt(a)]),null!==(e=n.filter((e=>null==a?void 0:a.includes(e.Value))))&&void 0!==e?e:[]}));l(e)}))}),[o.getValue(r.key)]),null===s?e(t,{}):0!==s.length&&s.find((e=>e.Color))?e("div",Object.assign({className:eh.root},{children:s.map((t=>{var n,i;return e("div",Object.assign({title:t.Label,className:eh.option,style:{backgroundColor:null!==(n=t.Color)&&void 0!==n?n:d,color:new se(null!==(i=t.Color)&&void 0!==i?i:d).isDark()?"white":"black"}},{children:e(oe,{children:t.Label})}),t.Value)}))})):a()},nh=t=>{const o=Bu(),r=t.baseColumn,a=t.data,s=I(),l=Qu(s),d=i.useMemo((()=>Math.random().toString()),[]),[g,u]=(e=>{const t=Bu(),n=e.column,i=e.record,o=p((()=>new ColumnValidation(t,n)),[]),[r,a]=c(!0),[s,l]=c("");return m((()=>{if(!n.isEditable)return;const[e,t]=o.validate(i.getValue(n.key));a(e),l(t)}),[i.getValue(n.key)]),[r,s]})({column:r,record:a});return e(L,Object.assign({id:d,content:g||o.loading?void 0:u},{children:n("div",Object.assign({className:l.root,"data-is-valid":g},{children:[e("div",Object.assign({className:l.cellContent},{children:e(ih,Object.assign({},t))})),!g&&e(F,{styles:{root:{color:s.semanticColors.errorIcon}},iconName:"Error"})]}))}))},ih=o=>{(()=>{const[e,t]=c(0)})();const r=Bu(),a=o.baseColumn,s=I(),l=Qu(s),d=Wu(),g=(()=>{const e=r.recordUpdateService.record(o.data.getRecordId()).get();return null!=e?e:o.data})(),u=g.getFormattedValue(a.key);i.useEffect((()=>{}),[g.getValue(a.key)]);const h=(t,n)=>{switch(a.dataType){case Ce.LOOKUP_OWNER:case Ce.LOOKUP_SIMPLE:if(!r.isNavigationEnabled)return p()}return e(ie,Object.assign({},t,{className:l.link,title:n},{children:n}))},p=()=>a.isPrimary&&r.isNavigationEnabled?h({onClick:()=>r.openDatasetItem(g.getNamedReference())},u):e(oe,Object.assign({className:`${l.text} talxis-cell-text`,title:u},{children:u})),m=()=>{var e;const t=new ae(r.pcfContext.webAPI),n=g.getNamedReference();t.downloadFileFromAttribute({entityName:null!==(e=n.etn)&&void 0!==e?e:n.entityName,recordId:g.getRecordId(),fileAttribute:a.key},!0)};switch(a.dataType){case Ce.SINGLE_LINE_EMAIL:return h({href:`mailto:${u}`},u);case Ce.SINGLE_LINE_PHONE:return h({href:`tel:${u}`},u);case Ce.SINGLE_LINE_URL:return h({href:u,target:"_blank",rel:"noopener noreferrer"},u);case Ce.LOOKUP_SIMPLE:case Ce.LOOKUP_OWNER:return h({onClick:()=>r.openDatasetItem(g.getValue(a.key))},u);case Ce.FILE:return u?n("div",Object.assign({className:l.fileWrapper},{children:[e(F,{iconName:"Attach"}),h({onClick:m},r.labels.download())]})):e(t,{});case Ce.IMAGE:return u?n("div",Object.assign({className:l.fileWrapper},{children:[e(O,{className:l.image,src:`data:image/png;base64,${u}`}),h({onClick:m},"Download")]})):e(t,{});case Ce.OPTIONSET:case Ce.MULTI_SELECT_OPTIONSET:case Ce.TWO_OPTIONS:return r.enableOptionSetColors?e(th,{column:a,record:g,defaultRender:p}):p();default:return"__checkbox"===a.key?e(_,{checked:o.node.isSelected(),onChange:(e,t)=>{null==e||e.stopPropagation(),d.toggle(g,t)}}):a.key===ve?e(Ju,{record:g}):p()}},oh=N({controls:{display:"flex",flexDirection:"column",gap:10,flexGrow:1},root:{minHeight:200,padding:16,".ms-Callout-main":{display:"flex",flexDirection:"column",gap:10},'.TALXIS__combobox__root, [class*="TALXIS__textfield__root"], [class*="TALXIS__tag-picker__root"]':{padding:"0x !important"}},title:{fontWeight:600,flexGrow:1},header:{display:"flex",i:{fontSize:12}},footer:{display:"flex",gap:10,justifyContent:"flex-end"}}),rh=e=>{const t=Bu().filtering,n=p((()=>t.condition(e)),[]),[i,o]=c(),r=()=>w(void 0,void 0,void 0,(function*(){const e=yield n;o((t=>Object.assign(Object.assign({},t),{isAppliedToDataset:e.isAppliedToDataset,column:null==e?void 0:e.column,operator:{get:()=>e.operator.get(),set:t=>e.operator.set(t)},value:{valid:e.isValid,get:()=>e.value.get(),set:t=>e.value.set(t)},remove:()=>null==e?void 0:e.remove(),save:()=>null==e?void 0:e.save(),clear:()=>null==e?void 0:e.clear()})))}));return((e,t)=>{const n=p((()=>crypto.randomUUID()),[]);m((()=>(w(void 0,void 0,void 0,(function*(){(yield e).addRefreshCallback(n,t)})),()=>{w(void 0,void 0,void 0,(function*(){(yield e).removeRefreshCallback(n)}))})),[])})(n,r),m((()=>{w(void 0,void 0,void 0,(function*(){r()}))}),[]),i||null},ah=n=>{const{column:i}=Object.assign({},n),o=FilteringUtils.condition().operator(),r=Bu(),a=rh(i);return a?e(le,Object.assign({},n,{selectedKey:a.operator.get(),shouldRestoreFocus:!1,options:(()=>{let e=o.textFieldOperators;switch(i.dataType){case Ce.WHOLE_NONE:case Ce.DECIMAL:case Ce.FP:case Ce.WHOLE_DURATION:case Ce.CURRENCY:e=o.numberOperators;break;case Ce.DATE_AND_TIME_DATE_AND_TIME:case Ce.DATE_AND_TIME_DATE_ONLY:e=o.dateOperators;break;case Ce.MULTI_SELECT_OPTIONSET:e=o.multipleOptionSetOperators;break;case Ce.FILE:case Ce.IMAGE:e=o.fileOperators}return e.map((e=>({key:e.type,text:r.labels[e.key]()})))})(),useComboBoxAsMenuWidth:!0,styles:{callout:{maxHeight:"300px !important"}},onChange:(e,t)=>{a.operator.set(t.key)}})):e(t,{})};class ConditionComponentValue{constructor(e){this._conditionUtils=FilteringUtils.condition(),this._columnFilterConditionControllerRef=e}get column(){const e=Object.assign({},this._columnFilterConditionController.column);switch(e.isRequired=!1,this._columnFilterConditionController.value.valid||(e.isRequired=!0),this._columnFilterConditionController.column.dataType){case Ce.OPTIONSET:case Ce.TWO_OPTIONS:e.dataType=Ce.MULTI_SELECT_OPTIONSET;break;case Ce.SINGLE_LINE_EMAIL:case Ce.SINGLE_LINE_URL:e.dataType=Ce.SINGLE_LINE_TEXT;break;case Ce.DATE_AND_TIME_DATE_AND_TIME:e.dataType=Ce.DATE_AND_TIME_DATE_ONLY}return this._conditionUtils.operator(this._operator.get()).allowsOnlyNumber,this._conditionUtils.operator(this._operator.get()).allowsOnlyNumber&&(e.dataType=Ce.WHOLE_NONE),this._conditionUtils.operator(this._operator.get()).allowsOnlyFreeText&&(e.dataType=Ce.SINGLE_LINE_TEXT),e}get(){let e=this._value.get();if(!e)return null;switch(this.column.dataType){case Ce.MULTI_SELECT_OPTIONSET:return"string"==typeof e&&(e=[e]),e.map((e=>parseInt(e)));case Ce.LOOKUP_OWNER:case Ce.LOOKUP_SIMPLE:return"string"==typeof e&&(e=[e]),e.map((e=>({entityType:"",name:"",id:e})))}return e}set(e){var t;switch(this.column.dataType){case Ce.DATE_AND_TIME_DATE_AND_TIME:case Ce.DATE_AND_TIME_DATE_ONLY:e instanceof Date&&(e=S(e).format("YYYY-MM-DD"));break;case Ce.MULTI_SELECT_OPTIONSET:switch(this._operator.get()){case fe.Equal:case fe.NotEqual:if(1===(null==e?void 0:e.length))return e=e[0].toString(),void this._value.set(e)}for(let t=0;t<(null==e?void 0:e.length);t++)e[t]=e[t].toString();return void this._value.set(e);case Ce.LOOKUP_OWNER:case Ce.LOOKUP_SIMPLE:if((null==e?void 0:e.length)>1){e=e.map((e=>e.id));break}e=null===(t=e[0])||void 0===t?void 0:t.id}this._value.set(e)}get _columnFilterConditionController(){return this._columnFilterConditionControllerRef.current}get _value(){return this._columnFilterConditionController.value}get _operator(){return this._columnFilterConditionController.operator}}const sh=n=>{const i=rh(n.column);return i?e(lh,Object.assign({},i)):e(t,{})},lh=t=>{const n=d(null),i=d(t);i.current=t;const o=p((()=>new ConditionComponentValue(i)),[]),r=o.column;return m((()=>{var e;if(null===o.get()){const t=null===(e=n.current)||void 0===e?void 0:e.querySelector("input");null==t||t.focus()}}),[o.get()]),e("div",Object.assign({ref:n},{children:e(Ku,{column:r,value:o.get(),onNotifyOutputChanged:e=>o.set(e),additionalParameters:{MultipleEnabled:{raw:!0},IsInlineNewEnabled:{raw:!1}}})}))},dh=o=>{const{column:r,onDismiss:a}=Object.assign({},o),s=rh(r),l=Bu(),d=i.useRef();d.current=s;const c=null==s?void 0:s.operator.get(),g=null==s?void 0:s.value.get(),u=FilteringUtils.condition();return i.useEffect((()=>()=>{var e;null===(e=d.current)||void 0===e||e.clear()}),[]),n(k,Object.assign({},o,{calloutWidth:230,className:oh.root},{children:[n("div",Object.assign({className:oh.header},{children:[e(oe,Object.assign({className:oh.title,variant:"mediumPlus"},{children:l.labels["filtermenu-filterby"]()})),e(G,{onClick:()=>a(),iconProps:{iconName:"ChromeClose"}})]})),s&&n(t,{children:[n("div",Object.assign({className:oh.controls},{children:[e(ah,{column:r}),u.value(c).isEditable&&e(sh,{column:r})]})),n("div",Object.assign({className:oh.footer},{children:[e(z,{text:l.labels["filtermenu-applybutton"](),onClick:()=>w(void 0,void 0,void 0,(function*(){(yield s.save())&&o.onDismiss()}))}),u.value(c).isEditable&&e(V,{text:l.labels["filtermenu-clearbutton"](),disabled:(()=>{switch(g){case null:case void 0:case"":return!0}return!1})(),onClick:()=>{s.value.set(null)}})]}))]})]}))},ch=t=>{const n=Bu(),i=n.labels,o=(r=I(),N({item:{"& .is-checked":{backgroundColor:r.semanticColors.buttonBackgroundHovered,fontWeight:600}}}));var r;const{column:a,onDismiss:s}=Object.assign({},t),l=(e=>{const t=Bu().sorting.get(e),n=()=>({value:t.value,sort:e=>t.sort(e)}),[i,o]=c((()=>n()));return m((()=>{o(n())}),[t.value]),i})(a),d=rh(a),[g,u]=c([]);m((()=>{w(void 0,void 0,void 0,(function*(){u(yield p())}))}),[d]);const h=e=>w(void 0,void 0,void 0,(function*(){switch(a.dataType){case Ce.WHOLE_NONE:case Ce.DECIMAL:case Ce.FP:case Ce.CURRENCY:return e?i["filtersortmenu-sortnumber-z-a"]():i["filtersortmenu-sortnumber-a-z"]();case Ce.DATE_AND_TIME_DATE_AND_TIME:case Ce.DATE_AND_TIME_DATE_ONLY:return e?i["filtersortmenu-sortdate-z-a"]():i["filtersortmenu-sortdate-a-z"]();case Ce.TWO_OPTIONS:return(e=>w(void 0,void 0,void 0,(function*(){const[t,o]=yield n.metadata.getOptions(a);return e?`${o[1].Label} ${i["filtersortmenu-sorttwooption-joint"]()} ${o[0].Label}`:`${o[0].Label} ${i["filtersortmenu-sorttwooption-joint"]()} ${o[1].Label}`})))(e);default:return e?i["filtersortmenu-sorttext-z-a"]():i["filtersortmenu-sorttext-a-z"]()}})),p=()=>w(void 0,void 0,void 0,(function*(){if(!d)return[];const e=[{key:"sort_asc",checked:a.isSorted&&!a.isSortedDescending,disabled:!a.isSortable||a.dataType===Ce.MULTI_SELECT_OPTIONSET,text:yield h(),className:o.item,iconProps:{iconName:"SortUp"},onClick:()=>l.sort(0)},{key:"sort_desc",checked:a.isSorted&&a.isSortedDescending,disabled:!a.isSortable||a.dataType===Ce.MULTI_SELECT_OPTIONSET,text:yield h(!0),className:o.item,iconProps:{iconName:"SortDown"},onClick:()=>l.sort(1)},{key:"divider",itemType:H.Divider},{key:"filter",className:o.item,disabled:!a.isFilterable,text:i["filtermenu-filterby"](),iconProps:{iconName:"Filter"},onClick:e=>s(e,!1,!0)}];return d.isAppliedToDataset&&e.push({key:"clearFilter",text:i["filtersortmenu-clearfilter"](),iconProps:{iconName:"ClearFilter"},onClick:()=>{d.remove(),d.save()}}),e}));return e(B,Object.assign({},t,{items:g}))},gh=i=>{const o=Bu(),r=i.baseColumn,[a,s]=c(null),[l,g]=c(null),u=(h=I(),N({root:{width:"100%",textAlign:"left",height:42,paddingLeft:10,paddingRight:10,".ms-Button-flexContainer":{justifyContent:"flex-start",gap:2,pointerEvents:"none"}},labelWrapper:{flex:1,display:"flex",minWidth:0},label:{overflow:"hidden",textOverflow:"ellipsis",cursor:"pointer"},requiredSymbol:{color:h.semanticColors.errorIcon,position:"relative",top:4,left:2},filterSortIcons:{display:"flex",gap:2},editIcon:{marginRight:3}}));var h;const p=d(null),m=e=>{var t,n;if("scroll"!==e.type)return!1;const i=e.target;return!(!(null===(t=null==i?void 0:i.classList)||void 0===t?void 0:t.contains("ag-body-viewport"))&&!(null===(n=null==i?void 0:i.classList)||void 0===n?void 0:n.contains("ag-body-vertical-scroll-viewport")))||!!/iPad|iPhone|iPod/.test(navigator.userAgent)};return n(t,{children:[n(W,Object.assign({elementRef:p,title:r.displayName,className:u.root,onClick:()=>{!1===r.isFilterable&&!1===r.isSortable||s({column:r,onDismiss:(e,t,n)=>{s(null),n&&g({column:r,onDismiss:()=>{g(null)}})}})}},{children:[o.isEditable&&!r.isEditable&&e(F,{className:u.editIcon,iconName:"Uneditable"}),n("div",Object.assign({className:u.labelWrapper},{children:[e(U,Object.assign({className:u.label},{children:r.displayName})),r.isRequired&&e("span",Object.assign({className:u.requiredSymbol},{children:"*"}))]})),n("div",Object.assign({className:u.filterSortIcons},{children:[r.isSorted&&e(F,{iconName:r.isSortedDescending?"SortDown":"SortUp"}),r.isFiltered&&e(F,{iconName:"Filter"})]}))]})),a&&e(ch,Object.assign({target:p,calloutProps:{preventDismissOnEvent:m}},a)),l&&e(dh,Object.assign({preventDismissOnEvent:m,target:p},l))]})},uh=()=>{const n=Bu(),i=(e=>N({root:{backgroundColor:e.palette.white,flexGrow:1,display:"flex",justifyContent:"center",height:"100%",alignItems:"center",position:"relative",left:1}}))(I()),o=Wu();return 0===n.dataset.sortedRecordIds.length?e(t,{}):e("div",Object.assign({className:i.root},{children:"multiple"===o.type&&e(_,{checked:o.allRecordsSelected,indeterminate:o.selectedRecordIds.length>0&&!o.allRecordsSelected,onChange:(e,t)=>{t?o.selectAll():o.clear()}})}))};class AgGrid$1 extends GridDependency{constructor(e,t){var n,i;super(e),this._gridApiRef=t,this.initialPageSize=null!==(i=null===(n=e.state)||void 0===n?void 0:n.initialPageSize)&&void 0!==i?i:e.paging.pageSize}get columns(){const e=[];for(const t of this._grid.columns){const n={colId:t.key,field:t.key,headerName:t.displayName,initialWidth:t.width,sortable:t.isSortable,editable:t.isEditable,resizable:t.isResizable,suppressMovable:!!this._grid.props.parameters.ChangeEditorMode||void 0,autoHeaderHeight:!0,suppressSizeToFit:"__checkbox"===t.key,cellClass:this._getCellClassName(t),valueFormatter:e=>e.data.getFormattedValue(t.key),valueGetter:e=>e.data.getValue(t.key),cellRendererParams:{baseColumn:t},cellEditorParams:{baseColumn:t},headerComponentParams:{baseColumn:t},suppressKeyboardEvent:e=>{if("Enter"!==e.event.key||0===e.api.getEditingCells().length)return!1;switch(t.dataType){case Ce.DATE_AND_TIME_DATE_AND_TIME:case Ce.DATE_AND_TIME_DATE_ONLY:case Ce.LOOKUP_OWNER:case Ce.LOOKUP_SIMPLE:case Ce.MULTI_SELECT_OPTIONSET:case Ce.OPTIONSET:case Ce.TWO_OPTIONS:case Ce.WHOLE_DURATION:return!0}return!1}};e.push(n)}return e}get maxNumberOfVisibleRecords(){return this.initialPageSize<this._grid.records.length?this.initialPageSize:this._grid.records.length}getTotalColumnsWidth(){if(!this._gridApi)return 0;let e=0;for(const t of this._gridApi.getAllGridColumns())e+=t.getActualWidth();return e}selectRows(){if(!this._gridApi)return;const e=[];this._gridApi.deselectAll(),this._gridApi.forEachNode((t=>{this._grid.dataset.getSelectedRecordIds().includes(t.data.getRecordId())&&e.push(t)})),this._gridApi.setNodesSelected({nodes:e,newValue:!0}),this._gridApi.refreshCells({columns:["__checkbox"],force:!0})}get _gridApi(){return this._gridApiRef.current}_getCellClassName(e){switch(e.dataType){case Ce.CURRENCY:case Ce.DECIMAL:case Ce.WHOLE_NONE:return"talxis-cell-align-right"}return"talxis-cell-align-left"}}var hh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,mh=(e,t,n,i)=>{for(var o,r=i>1?void 0:i?ph(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&hh(t,n,r),r},vh=class _ClientSideNodeManager{constructor(e,t,n,i,o,r){this.nextId=0,this.rowCountReady=!1,this.allNodesMap={},this.rootNode=e,this.gos=t,this.eventService=n,this.columnModel=i,this.beans=r,this.selectionService=o,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=_ClientSideNodeManager.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[]}getCopyOfNodesMap(){return Rr.cloneObject(this.allNodesMap)}getRowNode(e){return this.allNodesMap[e]}setRowData(e){if("string"==typeof e)return void console.warn("AG Grid: rowData must be an array.");this.rowCountReady=!0,this.dispatchRowDataUpdateStartedEvent(e);const t=this.rootNode,n=this.rootNode.sibling;t.childrenAfterFilter=null,t.childrenAfterGroup=null,t.childrenAfterAggFilter=null,t.childrenAfterSort=null,t.childrenMapped=null,t.updateHasChildren(),this.nextId=0,this.allNodesMap={},e?t.allLeafChildren=e.map((e=>this.createNode(e,this.rootNode,_ClientSideNodeManager.TOP_LEVEL))):(t.allLeafChildren=[],t.childrenAfterGroup=[]),n&&(n.childrenAfterFilter=t.childrenAfterFilter,n.childrenAfterGroup=t.childrenAfterGroup,n.childrenAfterAggFilter=t.childrenAfterAggFilter,n.childrenAfterSort=t.childrenAfterSort,n.childrenMapped=t.childrenMapped,n.allLeafChildren=t.allLeafChildren)}updateRowData(e,t){this.rowCountReady=!0,this.dispatchRowDataUpdateStartedEvent(e.add);const n={remove:[],update:[],add:[]},i=[];return this.executeRemove(e,n,i),this.executeUpdate(e,n,i),this.executeAdd(e,n),this.updateSelection(i,"rowDataChanged"),t&&Rr.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),n}isRowCountReady(){return this.rowCountReady}dispatchRowDataUpdateStartedEvent(e){const t={type:An.EVENT_ROW_DATA_UPDATE_STARTED,firstRowData:(null==e?void 0:e.length)?e[0]:null};this.eventService.dispatchEvent(t)}updateSelection(e,t){const n=e.length>0;if(n&&this.selectionService.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),this.selectionService.updateGroupsFromChildrenSelections(t),n){const e={type:An.EVENT_SELECTION_CHANGED,source:t};this.eventService.dispatchEvent(e)}}executeAdd(e,t){var n;const{add:i,addIndex:o}=e;if(Rr.missingOrEmpty(i))return;const r=i.map((e=>this.createNode(e,this.rootNode,_ClientSideNodeManager.TOP_LEVEL)));if("number"==typeof o&&o>=0){const{allLeafChildren:e}=this.rootNode,t=e.length;let i=o;if(this.gos.get("treeData")&&o>0&&t>0)for(let r=0;r<t;r++)if((null==(n=e[r])?void 0:n.rowIndex)==o-1){i=r+1;break}const a=e.slice(0,i),s=e.slice(i,e.length);this.rootNode.allLeafChildren=[...a,...r,...s]}else this.rootNode.allLeafChildren=[...this.rootNode.allLeafChildren,...r];this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),t.add=r}executeRemove(e,t,n){const{remove:i}=e;if(Rr.missingOrEmpty(i))return;const o={};i.forEach((e=>{const i=this.lookupRowNode(e);i&&(i.isSelected()&&n.push(i),i.clearRowTopAndRowIndex(),o[i.id]=!0,delete this.allNodesMap[i.id],t.remove.push(i))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((e=>!o[e.id])),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}executeUpdate(e,t,n){const{update:i}=e;Rr.missingOrEmpty(i)||i.forEach((e=>{const i=this.lookupRowNode(e);i&&(i.updateData(e),!i.selectable&&i.isSelected()&&n.push(i),this.setMasterForRow(i,e,_ClientSideNodeManager.TOP_LEVEL,!1),t.update.push(i))}))}lookupRowNode(e){const t=this.gos.getCallback("getRowId");let n;if(t){const i=t({data:e,level:0});if(n=this.allNodesMap[i],!n)return console.error(`AG Grid: could not find row id=${i}, data item was not found for this id`),null}else if(n=this.rootNode.allLeafChildren.find((t=>t.data===e)),!n)return console.error("AG Grid: could not find data item as object was not found",e),console.error("Consider using getRowId to help the Grid find matching row data"),null;return n||null}createNode(e,t,n){const i=new Ya(this.beans);i.group=!1,this.setMasterForRow(i,e,n,!0);const o=this.gos.get("suppressParentsInRowNodes");return t&&!o&&(i.parent=t),i.level=n,i.setDataAndId(e,this.nextId.toString()),this.allNodesMap[i.id]&&console.warn(`AG Grid: duplicate node id '${i.id}' detected from getRowId callback, this could cause issues in your grid.`),this.allNodesMap[i.id]=i,this.nextId++,i}setMasterForRow(e,t,n,i){if(this.gos.get("treeData"))e.setMaster(!1),i&&(e.expanded=!1);else{if(this.gos.get("masterDetail")){const n=this.gos.get("isRowMaster");n?e.setMaster(n(t)):e.setMaster(!0)}else e.setMaster(!1);if(i){const t=this.columnModel.getRowGroupColumns(),i=n+(t?t.length:0);e.expanded=!!e.master&&this.isExpanded(i)}}}isExpanded(e){const t=this.gos.get("groupDefaultExpanded");return-1===t||e<t}};vh.TOP_LEVEL=0,vh.ROOT_NODE_ID="ROOT_NODE_ID";var fh=vh,Ch=class extends En{constructor(){super(...arguments),this.onRowHeightChanged_debounced=Rr.debounce(this.onRowHeightChanged.bind(this),100),this.rowsToDisplay=[],this.hasStarted=!1,this.shouldSkipSettingDataOnStart=!1,this.isRefreshingModel=!1,this.rowCountReady=!1}init(){const e=this.refreshModel.bind(this,{step:Ad.EVERYTHING}),t=!this.gos.get("suppressAnimationFrame"),n=this.refreshModel.bind(this,{step:Ad.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:t});this.addManagedListener(this.eventService,An.EVENT_NEW_COLUMNS_LOADED,n),this.addManagedListener(this.eventService,An.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,An.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:Ad.PIVOT})),this.addManagedListener(this.eventService,An.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,An.EVENT_COLUMN_PIVOT_MODE_CHANGED,e),this.addManagedListener(this.eventService,An.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanges.bind(this)),this.addManagedListener(this.eventService,An.EVENT_GRID_READY,(()=>this.onGridReady())),this.addPropertyListeners(),this.rootNode=new Ya(this.beans),this.nodeManager=new fh(this.rootNode,this.gos,this.eventService,this.columnModel,this.selectionService,this.beans)}addPropertyListeners(){const e=new Set(["treeData","masterDetail"]),t=new Set(["suppressParentsInRowNodes","groupDefaultExpanded","groupAllowUnbalanced","initialGroupOrderComparator","groupHideOpenParents","groupDisplayType"]),n=new Set(["excludeChildrenWhenTreeDataFiltering"]),i=new Set(["removePivotHeaderRowWhenSingleValueColumn","pivotRowTotals","pivotColumnGroupTotals","suppressExpandablePivotGroups"]),o=new Set(["getGroupRowAgg","alwaysAggregateAtRootLevel","groupIncludeTotalFooter","suppressAggFilteredOnly","grandTotalRow"]),r=new Set(["postSortRows","groupDisplayType","accentedSort"]),a=new Set([]),s=new Set(["groupRemoveSingleChildren","groupRemoveLowestSingleChildren","groupIncludeFooter","groupTotalRow"]),l=[...e,...t,...n,...i,...i,...o,...r,...a,...s];this.addManagedPropertyListeners(l,(l=>{var d;const c=null==(d=l.changeSet)?void 0:d.properties;if(!c)return;const g=e=>c.some((t=>e.has(t)));g(e)?this.setRowData(this.rootNode.allLeafChildren.map((e=>e.data))):g(t)?this.refreshModel({step:Ad.EVERYTHING}):g(n)?this.refreshModel({step:Ad.FILTER}):g(i)?this.refreshModel({step:Ad.PIVOT}):g(o)?this.refreshModel({step:Ad.AGGREGATE}):g(r)?this.refreshModel({step:Ad.SORT}):g(a)?this.refreshModel({step:Ad.FILTER_AGGREGATES}):g(s)&&this.refreshModel({step:Ad.MAP})})),this.addManagedPropertyListener("rowHeight",(()=>this.resetRowHeights()))}start(){this.hasStarted=!0,this.shouldSkipSettingDataOnStart?this.dispatchUpdateEventsAndRefresh():this.setInitialData()}setInitialData(){const e=this.gos.get("rowData");e&&(this.shouldSkipSettingDataOnStart=!0,this.setRowData(e))}ensureRowHeightsValid(e,t,n,i){let o,r=!1;do{o=!1;const a=this.getRowIndexAtPixel(e),s=this.getRowIndexAtPixel(t),l=Math.max(a,n),d=Math.min(s,i);for(let e=l;e<=d;e++){const t=this.getRow(e);if(t.rowHeightEstimated){const e=this.gos.getRowHeightForNode(t);t.setRowHeight(e.height),o=!0,r=!0}}o&&this.setRowTopAndRowIndex()}while(o);return r}setRowTopAndRowIndex(){const e=this.environment.getDefaultRowHeight();let t=0;const n=new Set,i=this.gos.isDomLayout("normal");for(let o=0;o<this.rowsToDisplay.length;o++){const r=this.rowsToDisplay[o];if(null!=r.id&&n.add(r.id),null==r.rowHeight){const t=this.gos.getRowHeightForNode(r,i,e);r.setRowHeight(t.height,t.estimated)}r.setRowTop(t),r.setRowIndex(o),t+=r.rowHeight}return n}clearRowTopAndRowIndex(e,t){const n=e.isActive(),i=e=>{e&&null!=e.id&&!t.has(e.id)&&e.clearRowTopAndRowIndex()},o=e=>{if(i(e),i(e.detailNode),i(e.sibling),e.hasChildren()&&e.childrenAfterGroup){const t=-1==e.level;n&&!t&&!e.expanded||e.childrenAfterGroup.forEach(o)}};o(this.rootNode)}ensureRowsAtPixel(e,t,n=0){const i=this.getRowIndexAtPixel(t),o=this.getRow(i),r=!this.gos.get("suppressAnimationFrame");return o!==e[0]&&(e.forEach((e=>{Rr.removeFromArray(this.rootNode.allLeafChildren,e)})),e.forEach(((e,t)=>{Rr.insertIntoArray(this.rootNode.allLeafChildren,e,Math.max(i+n,0)+t)})),this.refreshModel({step:Ad.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:r}),!0)}highlightRowAtPixel(e,t){const n=null!=t?this.getRowIndexAtPixel(t):null,i=null!=n?this.getRow(n):null;if(!i||!e||i===e||null==t)return void(this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null));const o=this.getHighlightPosition(t,i);this.lastHighlightedRow&&this.lastHighlightedRow!==i&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),i.setHighlighted(o),this.lastHighlightedRow=i}getHighlightPosition(e,t){if(!t){const n=this.getRowIndexAtPixel(e);if(!(t=this.getRow(n||0)))return Bs.Below}const{rowTop:n,rowHeight:i}=t;return e-n<i/2?Bs.Above:Bs.Below}getLastHighlightedRowNode(){return this.lastHighlightedRow}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay?this.rowsToDisplay.length:0}getTopLevelRowCount(){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;const e=this.rootNode.childrenAfterAggFilter;return e?e.length:0}getTopLevelRowDisplayedIndex(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;let t=this.rootNode.childrenAfterSort[e];if(this.gos.get("groupHideOpenParents"))for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex}getRowBounds(e){if(Rr.missing(this.rowsToDisplay))return null;const t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){const e=this.gos.isAnimateRows();this.refreshModel({step:Ad.MAP,keepRenderedRows:!0,animate:e})}onFilterChanged(e){if(e.afterDataChange)return;const t=this.gos.isAnimateRows(),n=0===e.columns.length||e.columns.some((e=>e.isPrimary()))?Ad.FILTER:Ad.FILTER_AGGREGATES;this.refreshModel({step:n,keepRenderedRows:!0,animate:t})}onSortChanged(){const e=this.gos.isAnimateRows();this.refreshModel({step:Ad.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})}getType(){return"clientSide"}onValueChanged(){this.columnModel.isPivotActive()?this.refreshModel({step:Ad.PIVOT}):this.refreshModel({step:Ad.AGGREGATE})}createChangePath(e){const t=Rr.missingOrEmpty(e),n=new _d(!1,this.rootNode);return(t||this.gos.get("treeData"))&&n.setInactive(),n}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;if(null==e.rowNodeTransactions)return!1;const t=e.rowNodeTransactions.filter((e=>null!=e.add&&e.add.length>0||null!=e.remove&&e.remove.length>0));return null==t||0==t.length}buildRefreshModelParams(e){let t=Ad.EVERYTHING;const n={everything:Ad.EVERYTHING,group:Ad.EVERYTHING,filter:Ad.FILTER,map:Ad.MAP,aggregate:Ad.AGGREGATE,sort:Ad.SORT,pivot:Ad.PIVOT};if(Rr.exists(e)&&(t=n[e]),Rr.missing(t))return void console.error(`AG Grid: invalid step ${e}, available steps are ${Object.keys(n).join(", ")}`);return{step:t,keepRenderedRows:!0,keepEditingRows:!0,animate:!this.gos.get("suppressAnimationFrame")}}refreshModel(e){if(!this.hasStarted||this.isRefreshingModel||this.columnModel.shouldRowModelIgnoreRefresh())return;let t="object"==typeof e&&"step"in e?e:this.buildRefreshModelParams(e);if(!t)return;if(this.isSuppressModelUpdateAfterUpdateTransaction(t))return;const n=this.createChangePath(t.rowNodeTransactions);switch(this.isRefreshingModel=!0,t.step){case Ad.EVERYTHING:this.doRowGrouping(t.rowNodeTransactions,t.rowNodeOrder,n,!!t.afterColumnsChanged);case Ad.FILTER:this.doFilter(n);case Ad.PIVOT:this.doPivot(n);case Ad.AGGREGATE:this.doAggregate(n);case Ad.FILTER_AGGREGATES:this.doFilterAggregates(n);case Ad.SORT:this.doSort(t.rowNodeTransactions,n);case Ad.MAP:this.doRowsToDisplay()}const i=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(n,i),this.isRefreshingModel=!1;const o={type:An.EVENT_MODEL_UPDATED,animate:t.animate,keepRenderedRows:t.keepRenderedRows,newData:t.newData,newPage:!1,keepUndoRedoStack:t.keepUndoRedoStack};this.eventService.dispatchEvent(o)}isEmpty(){const e=Rr.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return Rr.missing(this.rootNode)||e||!this.columnModel.isReady()}isRowsToRender(){return Rr.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0}getNodesInRangeForSelection(e,t){let n=!t,i=!1;const o=[],r=this.gos.get("groupSelectsChildren");return this.forEachNodeAfterFilterAndSort((a=>{if(i)return;if(n&&(a===t||a===e)&&(i=!0,a.group&&r))return void o.push(...a.allLeafChildren);if(!n){if(a!==t&&a!==e)return;n=!0}(!a.group||!r)&&o.push(a)})),o}setDatasource(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")}getTopLevelNodes(){return this.rootNode?this.rootNode.childrenAfterGroup:null}getRootNode(){return this.rootNode}getRow(e){return this.rowsToDisplay[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){if(this.isEmpty()||0===this.rowsToDisplay.length)return-1;let t=0,n=this.rowsToDisplay.length-1;if(e<=0)return 0;if(Rr.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;let i=-1,o=-1;for(;;){const r=Math.floor((t+n)/2),a=this.rowsToDisplay[r];if(this.isRowInPixel(a,e))return r;a.rowTop<e?t=r+1:a.rowTop>e&&(n=r-1);if(i===t&&o===n)return r;i=t,o=n}}isRowInPixel(e,t){const n=e.rowTop,i=e.rowTop+e.rowHeight;return n<=t&&i>t}forEachLeafNode(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(((t,n)=>e(t,n)))}forEachNode(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[...this.rootNode.childrenAfterGroup||[]],callback:e,recursionType:0,index:0,includeFooterNodes:t})}forEachNodeAfterFilter(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[...this.rootNode.childrenAfterAggFilter||[]],callback:e,recursionType:1,index:0,includeFooterNodes:t})}forEachNodeAfterFilterAndSort(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[...this.rootNode.childrenAfterSort||[]],callback:e,recursionType:2,index:0,includeFooterNodes:t})}forEachPivotNode(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:e,recursionType:3,index:0,includeFooterNodes:t})}recursivelyWalkNodesAndCallback(e){const{nodes:t,callback:n,recursionType:i,includeFooterNodes:o}=e;let{index:r}=e;const a=e=>{var i;const a=null==(i=t[0])?void 0:i.parent;if(!a)return;const s=o&&this.gos.getGrandTotalRow(),l=this.gos.getGroupTotalRowCallback(),d=o&&l({node:a});a===this.rootNode?s===e&&(a.createFooter(),n(a.sibling,r++)):d===e&&(a.createFooter(),n(a.sibling,r++))};a("top");for(let e=0;e<t.length;e++){const a=t[e];if(n(a,r++),a.hasChildren()&&!a.footer){let e=null;switch(i){case 0:e=a.childrenAfterGroup;break;case 1:e=a.childrenAfterAggFilter;break;case 2:e=a.childrenAfterSort;break;case 3:e=a.leafGroup?null:a.childrenAfterSort}e&&(r=this.recursivelyWalkNodesAndCallback({nodes:[...e],callback:n,recursionType:i,index:r,includeFooterNodes:o}))}}return a("bottom"),r}doAggregate(e){var t;null==(t=this.aggregationStage)||t.execute({rowNode:this.rootNode,changedPath:e})}doFilterAggregates(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter}expandOrCollapseAll(e){const t=this.gos.get("treeData"),n=this.columnModel.isPivotActive(),i=o=>{o&&o.forEach((o=>{const r=()=>{o.expanded=e,i(o.childrenAfterGroup)};if(t){return void(Rr.exists(o.childrenAfterGroup)&&r())}if(n){return void(!o.leafGroup&&r())}o.group&&r()}))};this.rootNode&&i(this.rootNode.childrenAfterGroup),this.refreshModel({step:Ad.MAP});const o=e?"expandAll":"collapseAll",r={type:An.EVENT_EXPAND_COLLAPSE_ALL,source:o};this.eventService.dispatchEvent(r)}doSort(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})}doRowGrouping(e,t,n,i){if(this.groupStage){if(e?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,rowNodeOrder:t,changedPath:n}):this.groupStage.execute({rowNode:this.rootNode,changedPath:n,afterColumnsChanged:i}),this.gos.get("groupSelectsChildren")){if(this.selectionService.updateGroupsFromChildrenSelections("rowGroupChanged",n)){const e={type:An.EVENT_SELECTION_CHANGED,source:"rowGroupChanged"};this.eventService.dispatchEvent(e)}}}else this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren();this.nodeManager.isRowCountReady()&&(this.rowCountReady=!0,this.eventService.dispatchEventOnce({type:An.EVENT_ROW_COUNT_READY}))}doFilter(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})}doPivot(e){var t;null==(t=this.pivotStage)||t.execute({rowNode:this.rootNode,changedPath:e})}getCopyOfNodesMap(){return this.nodeManager.getCopyOfNodesMap()}getRowNode(e){if("string"==typeof e&&0==e.indexOf(Ya.ID_PREFIX_ROW_GROUP)){let t;return this.forEachNode((n=>{n.id===e&&(t=n)})),t}return this.nodeManager.getRowNode(e)}setRowData(e){this.selectionService.reset("rowDataChanged"),this.nodeManager.setRowData(e),this.hasStarted&&this.dispatchUpdateEventsAndRefresh()}dispatchUpdateEventsAndRefresh(){const e={type:An.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(e),this.refreshModel({step:Ad.EVERYTHING,newData:!0})}batchUpdateRowData(e,t){if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];const e=this.gos.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout((()=>{this.executeBatchUpdateRowData()}),e)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){this.valueCache.onDataChanged();const e=[],t=[];let n=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((i=>{const o=this.nodeManager.updateRowData(i.rowDataTransaction,void 0);t.push(o),i.callback&&e.push(i.callback.bind(null,o)),"number"==typeof i.rowDataTransaction.addIndex&&(n=!0)})),this.commonUpdateRowData(t,void 0,n),e.length>0&&window.setTimeout((()=>{e.forEach((e=>e()))}),0),t.length>0){const e={type:An.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:t};this.eventService.dispatchEvent(e)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0}updateRowData(e,t){this.valueCache.onDataChanged();const n=this.nodeManager.updateRowData(e,t),i="number"==typeof e.addIndex;return this.commonUpdateRowData([n],t,i),n}createRowNodeOrder(){if(this.gos.get("suppressMaintainUnsortedOrder"))return;const e={};if(this.rootNode&&this.rootNode.allLeafChildren)for(let t=0;t<this.rootNode.allLeafChildren.length;t++){e[this.rootNode.allLeafChildren[t].id]=t}return e}commonUpdateRowData(e,t,n){if(!this.hasStarted)return;const i=!this.gos.get("suppressAnimationFrame");n&&(t=this.createRowNodeOrder());const o={type:An.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(o),this.refreshModel({step:Ad.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,keepEditingRows:!0,animate:i})}doRowsToDisplay(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})}onRowHeightChanged(){this.refreshModel({step:Ad.MAP,keepRenderedRows:!0,keepEditingRows:!0,keepUndoRedoStack:!0})}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}resetRowHeights(){const e=this.resetRowHeightsForAllRowNodes();this.rootNode.setRowHeight(this.rootNode.rowHeight,!0),this.rootNode.sibling&&this.rootNode.sibling.setRowHeight(this.rootNode.sibling.rowHeight,!0),e&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode((t=>{t.setRowHeight(t.rowHeight,!0);const n=t.detailNode;n&&n.setRowHeight(n.rowHeight,!0),t.sibling&&t.sibling.setRowHeight(t.sibling.rowHeight,!0),e=!0})),e}onGridStylesChanges(){this.columnModel.isAutoRowHeightActive()||this.resetRowHeights()}onGridReady(){this.hasStarted||this.setInitialData()}isRowDataLoaded(){return this.rowCountReady}};mh([xt("columnModel")],Ch.prototype,"columnModel",2),mh([xt("selectionService")],Ch.prototype,"selectionService",2),mh([xt("valueCache")],Ch.prototype,"valueCache",2),mh([xt("beans")],Ch.prototype,"beans",2),mh([xt("filterStage")],Ch.prototype,"filterStage",2),mh([xt("sortStage")],Ch.prototype,"sortStage",2),mh([xt("flattenStage")],Ch.prototype,"flattenStage",2),mh([Mt("groupStage")],Ch.prototype,"groupStage",2),mh([Mt("aggregationStage")],Ch.prototype,"aggregationStage",2),mh([Mt("pivotStage")],Ch.prototype,"pivotStage",2),mh([Mt("filterAggregatesStage")],Ch.prototype,"filterAggregatesStage",2),mh([Tt],Ch.prototype,"init",1),Ch=mh([At("rowModel")],Ch);var wh=class extends En{execute(e){const{changedPath:t}=e;this.filterService.filter(t)}};mh([xt("filterService")],wh.prototype,"filterService",2),wh=mh([At("filterStage")],wh);var yh=class extends En{execute(e){const t=this.sortController.getSortOptions(),n=Rr.exists(t)&&t.length>0,i=n&&Rr.exists(e.rowNodeTransactions)&&this.gos.get("deltaSort"),o=t.some((e=>this.gos.isColumnsSortingCoupledToGroup()?e.column.isPrimary()&&e.column.isRowGroupActive():!!e.column.getColDef().showRowGroup));this.sortService.sort(t,n,i,e.rowNodeTransactions,e.changedPath,o)}};mh([xt("sortService")],yh.prototype,"sortService",2),mh([xt("sortController")],yh.prototype,"sortController",2),yh=mh([At("sortStage")],yh);var bh=class extends En{execute(e){const t=e.rowNode,n=[],i=this.beans.columnModel.isPivotMode(),o=i&&t.leafGroup,r=o?[t]:t.childrenAfterSort,a=this.getFlattenDetails();this.recursivelyAddToRowsToDisplay(a,r,n,i,0);if(!o&&n.length>0&&a.grandTotalRow){t.createFooter();const e="top"===a.grandTotalRow;this.addRowNodeToRowsToDisplay(a,t.sibling,n,0,e)}return n}getFlattenDetails(){const e=this.gos.get("groupRemoveSingleChildren");return{groupRemoveLowestSingleChildren:!e&&this.gos.get("groupRemoveLowestSingleChildren"),groupRemoveSingleChildren:e,isGroupMultiAutoColumn:this.gos.isGroupMultiAutoColumn(),hideOpenParents:this.gos.get("groupHideOpenParents"),grandTotalRow:this.gos.getGrandTotalRow(),groupTotalRow:this.gos.getGroupTotalRowCallback()}}recursivelyAddToRowsToDisplay(e,t,n,i,o){if(!Rr.missingOrEmpty(t))for(let r=0;r<t.length;r++){const a=t[r],s=a.hasChildren(),l=i&&!s,d=e.groupRemoveSingleChildren&&s&&1===a.childrenAfterGroup.length,c=e.groupRemoveLowestSingleChildren&&s&&a.leafGroup&&1===a.childrenAfterGroup.length,g=i&&a.leafGroup,u=e.hideOpenParents&&a.expanded&&!a.master&&!g;if(!(l||u||d||c)&&this.addRowNodeToRowsToDisplay(e,a,n,o),!i||!a.leafGroup)if(s){const t=d||c;if(a.expanded||t){const r=e.groupTotalRow({node:a});r||a.destroyFooter();const s=t?o:o+1;"top"===r&&(a.createFooter(),this.addRowNodeToRowsToDisplay(e,a.sibling,n,s)),this.recursivelyAddToRowsToDisplay(e,a.childrenAfterSort,n,i,s),"bottom"===r&&(a.createFooter(),this.addRowNodeToRowsToDisplay(e,a.sibling,n,s))}}else if(a.master&&a.expanded){const t=this.createDetailNode(a);this.addRowNodeToRowsToDisplay(e,t,n,o)}}}addRowNodeToRowsToDisplay(e,t,n,i,o){o?n.unshift(t):n.push(t),t.setUiLevel(e.isGroupMultiAutoColumn?0:i)}createDetailNode(e){if(Rr.exists(e.detailNode))return e.detailNode;const t=new Ya(this.beans);return t.detail=!0,t.selectable=!1,t.parent=e,Rr.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,t}};mh([xt("beans")],bh.prototype,"beans",2),bh=mh([At("flattenStage")],bh);var Eh=class extends En{sort(e,t,n,i,o,r){const a=this.gos.get("groupMaintainOrder"),s=this.columnModel.getAllGridColumns().some((e=>e.isRowGroupActive()));let l={};n&&i&&(l=this.calculateDirtyNodes(i));const d=this.columnModel.isPivotMode(),c=this.gos.getCallback("postSortRows"),g=i=>{var g;this.pullDownGroupDataForHideOpenParents(i.childrenAfterAggFilter,!0);const u=d&&i.leafGroup;if(a&&s&&!i.leafGroup&&!r){const e=null==(g=this.columnModel.getRowGroupColumns())?void 0:g[i.level+1],t=null===(null==e?void 0:e.getSort()),n=i.childrenAfterAggFilter.slice(0);if(i.childrenAfterSort&&!t){const e={};i.childrenAfterSort.forEach(((t,n)=>{e[t.id]=n})),n.sort(((t,n)=>{var i,o;return(null!=(i=e[t.id])?i:0)-(null!=(o=e[n.id])?o:0)}))}i.childrenAfterSort=n}else i.childrenAfterSort=!t||u?i.childrenAfterAggFilter.slice(0):n?this.doDeltaSort(i,l,o,e):this.rowNodeSorter.doFullSort(i.childrenAfterAggFilter,e);if(i.sibling&&(i.sibling.childrenAfterSort=i.childrenAfterSort),this.updateChildIndexes(i),c){const e={nodes:i.childrenAfterSort};c(e)}};o&&o.forEachChangedNodeDepthFirst(g),this.updateGroupDataForHideOpenParents(o)}calculateDirtyNodes(e){const t={},n=e=>{e&&e.forEach((e=>t[e.id]=!0))};return e&&e.forEach((e=>{n(e.add),n(e.update),n(e.remove)})),t}doDeltaSort(e,t,n,i){const o=e.childrenAfterAggFilter,r=e.childrenAfterSort;if(!r)return this.rowNodeSorter.doFullSort(o,i);const a={},s=[];o.forEach((e=>{t[e.id]||!n.canSkip(e)?s.push(e):a[e.id]=!0}));const l=r.filter((e=>a[e.id])),d=(e,t)=>({currentPos:t,rowNode:e}),c=s.map(d).sort(((e,t)=>this.rowNodeSorter.compareRowNodes(i,e,t)));return this.mergeSortedArrays(i,c,l.map(d)).map((({rowNode:e})=>e))}mergeSortedArrays(e,t,n){const i=[];let o=0,r=0;for(;o<t.length&&r<n.length;){this.rowNodeSorter.compareRowNodes(e,t[o],n[r])<0?i.push(t[o++]):i.push(n[r++])}for(;o<t.length;)i.push(t[o++]);for(;r<n.length;)i.push(n[r++]);return i}updateChildIndexes(e){if(Rr.missing(e.childrenAfterSort))return;const t=e.childrenAfterSort;for(let n=0;n<t.length;n++){const i=t[n],o=0===n,r=n===e.childrenAfterSort.length-1;i.setFirstChild(o),i.setLastChild(r),i.setChildIndex(n)}}updateGroupDataForHideOpenParents(e){if(!this.gos.get("groupHideOpenParents"))return;if(this.gos.get("treeData"))return Rr.warnOnce("The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them."),!1;const t=e=>{this.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach((e=>{e.hasChildren()&&t(e)}))};e&&e.executeFromRootNode((e=>t(e)))}pullDownGroupDataForHideOpenParents(e,t){this.gos.get("groupHideOpenParents")&&!Rr.missing(e)&&e.forEach((e=>{this.columnModel.getGroupDisplayColumns().forEach((n=>{const i=n.getColDef().showRowGroup;if("string"!=typeof i)return void console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup");const o=i,r=this.columnModel.getPrimaryColumn(o);if(!(r===e.rowGroupColumn))if(t)e.setGroupValue(n.getId(),void 0);else{const t=e.getFirstChildOfFirstChild(r);t&&e.setGroupValue(n.getId(),t.key)}}))}))}};mh([xt("columnModel")],Eh.prototype,"columnModel",2),mh([xt("rowNodeSorter")],Eh.prototype,"rowNodeSorter",2),Eh=mh([At("sortService")],Eh);var Sh=class extends En{filter(e){const t=this.filterManager.isChildFilterPresent();this.filterNodes(t,e)}filterNodes(e,t){const n=(t,n)=>{t.hasChildren()?t.childrenAfterFilter=e&&!n?t.childrenAfterGroup.filter((e=>{const t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,n=e.data&&this.filterManager.doesRowPassFilter({rowNode:e});return t||n})):t.childrenAfterGroup:t.childrenAfterFilter=t.childrenAfterGroup,t.sibling&&(t.sibling.childrenAfterFilter=t.childrenAfterFilter)};if(this.doingTreeDataFiltering()){const e=(t,i)=>{if(t.childrenAfterGroup)for(let o=0;o<t.childrenAfterGroup.length;o++){const r=t.childrenAfterGroup[o],a=i||this.filterManager.doesRowPassFilter({rowNode:r});r.childrenAfterGroup?e(t.childrenAfterGroup[o],a):n(r,a)}n(t,i)},i=t=>e(t,!1);t.executeFromRootNode(i)}else{const e=e=>n(e,!1);t.forEachChangedNodeDepthFirst(e,!0)}}doingTreeDataFiltering(){return this.gos.get("treeData")&&!this.gos.get("excludeChildrenWhenTreeDataFiltering")}};mh([xt("filterManager")],Sh.prototype,"filterManager",2),Sh=mh([At("filterService")],Sh);var Dh=class extends En{postConstruct(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel,this.addManagedPropertyListener("rowData",(()=>this.onRowDataUpdated())))}isActive(){const e=this.gos.exists("getRowId");return!this.gos.get("resetRowDataOnUpdate")&&e}setRowData(e){const t=this.createTransactionForRowData(e);if(!t)return;const[n,i]=t;this.clientSideRowModel.updateRowData(n,i)}createTransactionForRowData(e){if(Rr.missing(this.clientSideRowModel))return void console.error("AG Grid: ImmutableService only works with ClientSideRowModel");const t=this.gos.getCallback("getRowId");if(null==t)return void console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!");const n={remove:[],update:[],add:[]},i=this.clientSideRowModel.getCopyOfNodesMap(),o=this.gos.get("suppressMaintainUnsortedOrder")?void 0:{};return Rr.exists(e)&&e.forEach(((e,r)=>{const a=t({data:e,level:0}),s=i[a];if(o&&(o[a]=r),s){s.data!==e&&n.update.push(e),i[a]=void 0}else n.add.push(e)})),Rr.iterateObject(i,((e,t)=>{t&&n.remove.push(t.data)})),[n,o]}onRowDataUpdated(){const e=this.gos.get("rowData");e&&(this.isActive()?this.setRowData(e):(this.selectionService.reset("rowDataChanged"),this.clientSideRowModel.setRowData(e)))}};mh([xt("rowModel")],Dh.prototype,"rowModel",2),mh([xt("rowRenderer")],Dh.prototype,"rowRenderer",2),mh([xt("selectionService")],Dh.prototype,"selectionService",2),mh([Tt],Dh.prototype,"postConstruct",1),Dh=mh([At("immutableService")],Dh);var Th={version:"31.3.2",moduleName:bt.ClientSideRowModelModule,rowModel:"clientSide",beans:[Ch,wh,yh,bh,Eh,Sh,Dh]};function Rh(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Rh('.ag-icon {\n font-family: var(--ag-icon-font-family);\n font-weight: var(--ag-icon-font-weight);\n color: var(--ag-icon-font-color);\n font-size: var(--ag-icon-size);\n line-height: var(--ag-icon-size);\n font-style: normal;\n font-variant: normal;\n text-transform: none;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n width: var(--ag-icon-size);\n height: var(--ag-icon-size);\n position: relative;\n}\n.ag-icon::before {\n content: "";\n}\n.ag-icon::after {\n background: transparent var(--ag-icon-image, none) center/contain no-repeat;\n display: var(--ag-icon-image-display);\n opacity: var(--ag-icon-image-opacity, 0.9);\n position: absolute;\n inset: 0;\n content: "";\n}\n\n.ag-icon-aggregation {\n font-family: var(--ag-icon-font-family-aggregation, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-aggregation, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-aggregation, var(--ag-icon-font-color));\n}\n\n.ag-icon-aggregation::before {\n content: var(--ag-icon-font-code-aggregation, "\\f101");\n display: var(--ag-icon-font-display-aggregation, var(--ag-icon-font-display));\n}\n\n.ag-icon-aggregation::after {\n background-image: var(--ag-icon-image-aggregation, var(--ag-icon-image));\n display: var(--ag-icon-image-display-aggregation, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-aggregation, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-arrows {\n font-family: var(--ag-icon-font-family-arrows, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-arrows, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-arrows, var(--ag-icon-font-color));\n}\n\n.ag-icon-arrows::before {\n content: var(--ag-icon-font-code-arrows, "\\f102");\n display: var(--ag-icon-font-display-arrows, var(--ag-icon-font-display));\n}\n\n.ag-icon-arrows::after {\n background-image: var(--ag-icon-image-arrows, var(--ag-icon-image));\n display: var(--ag-icon-image-display-arrows, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-arrows, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-asc {\n font-family: var(--ag-icon-font-family-asc, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-asc, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-asc, var(--ag-icon-font-color));\n}\n\n.ag-icon-asc::before {\n content: var(--ag-icon-font-code-asc, "\\f103");\n display: var(--ag-icon-font-display-asc, var(--ag-icon-font-display));\n}\n\n.ag-icon-asc::after {\n background-image: var(--ag-icon-image-asc, var(--ag-icon-image));\n display: var(--ag-icon-image-display-asc, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-asc, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-cancel {\n font-family: var(--ag-icon-font-family-cancel, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-cancel, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-cancel, var(--ag-icon-font-color));\n}\n\n.ag-icon-cancel::before {\n content: var(--ag-icon-font-code-cancel, "\\f104");\n display: var(--ag-icon-font-display-cancel, var(--ag-icon-font-display));\n}\n\n.ag-icon-cancel::after {\n background-image: var(--ag-icon-image-cancel, var(--ag-icon-image));\n display: var(--ag-icon-image-display-cancel, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-cancel, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-chart {\n font-family: var(--ag-icon-font-family-chart, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-chart, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-chart, var(--ag-icon-font-color));\n}\n\n.ag-icon-chart::before {\n content: var(--ag-icon-font-code-chart, "\\f105");\n display: var(--ag-icon-font-display-chart, var(--ag-icon-font-display));\n}\n\n.ag-icon-chart::after {\n background-image: var(--ag-icon-image-chart, var(--ag-icon-image));\n display: var(--ag-icon-image-display-chart, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-chart, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-checkbox-checked {\n font-family: var(--ag-icon-font-family-checkbox-checked, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-checkbox-checked, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-checkbox-checked, var(--ag-icon-font-color));\n}\n\n.ag-icon-checkbox-checked::before {\n content: var(--ag-icon-font-code-checkbox-checked, "\\f106");\n display: var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display));\n}\n\n.ag-icon-checkbox-checked::after {\n background-image: var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));\n display: var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-checkbox-indeterminate {\n font-family: var(--ag-icon-font-family-checkbox-indeterminate, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-checkbox-indeterminate, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-checkbox-indeterminate, var(--ag-icon-font-color));\n}\n\n.ag-icon-checkbox-indeterminate::before {\n content: var(--ag-icon-font-code-checkbox-indeterminate, "\\f107");\n display: var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display));\n}\n\n.ag-icon-checkbox-indeterminate::after {\n background-image: var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));\n display: var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-checkbox-unchecked {\n font-family: var(--ag-icon-font-family-checkbox-unchecked, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-checkbox-unchecked, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-checkbox-unchecked, var(--ag-icon-font-color));\n}\n\n.ag-icon-checkbox-unchecked::before {\n content: var(--ag-icon-font-code-checkbox-unchecked, "\\f108");\n display: var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display));\n}\n\n.ag-icon-checkbox-unchecked::after {\n background-image: var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));\n display: var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-color-picker {\n font-family: var(--ag-icon-font-family-color-picker, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-color-picker, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-color-picker, var(--ag-icon-font-color));\n}\n\n.ag-icon-color-picker::before {\n content: var(--ag-icon-font-code-color-picker, "\\f109");\n display: var(--ag-icon-font-display-color-picker, var(--ag-icon-font-display));\n}\n\n.ag-icon-color-picker::after {\n background-image: var(--ag-icon-image-color-picker, var(--ag-icon-image));\n display: var(--ag-icon-image-display-color-picker, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-color-picker, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-columns {\n font-family: var(--ag-icon-font-family-columns, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-columns, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-columns, var(--ag-icon-font-color));\n}\n\n.ag-icon-columns::before {\n content: var(--ag-icon-font-code-columns, "\\f10a");\n display: var(--ag-icon-font-display-columns, var(--ag-icon-font-display));\n}\n\n.ag-icon-columns::after {\n background-image: var(--ag-icon-image-columns, var(--ag-icon-image));\n display: var(--ag-icon-image-display-columns, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-columns, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-contracted {\n font-family: var(--ag-icon-font-family-contracted, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-contracted, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-contracted, var(--ag-icon-font-color));\n}\n\n.ag-icon-contracted::before {\n content: var(--ag-icon-font-code-contracted, "\\f10b");\n display: var(--ag-icon-font-display-contracted, var(--ag-icon-font-display));\n}\n\n.ag-icon-contracted::after {\n background-image: var(--ag-icon-image-contracted, var(--ag-icon-image));\n display: var(--ag-icon-image-display-contracted, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-contracted, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-copy {\n font-family: var(--ag-icon-font-family-copy, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-copy, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-copy, var(--ag-icon-font-color));\n}\n\n.ag-icon-copy::before {\n content: var(--ag-icon-font-code-copy, "\\f10c");\n display: var(--ag-icon-font-display-copy, var(--ag-icon-font-display));\n}\n\n.ag-icon-copy::after {\n background-image: var(--ag-icon-image-copy, var(--ag-icon-image));\n display: var(--ag-icon-image-display-copy, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-copy, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-cross {\n font-family: var(--ag-icon-font-family-cross, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-cross, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-cross, var(--ag-icon-font-color));\n}\n\n.ag-icon-cross::before {\n content: var(--ag-icon-font-code-cross, "\\f10d");\n display: var(--ag-icon-font-display-cross, var(--ag-icon-font-display));\n}\n\n.ag-icon-cross::after {\n background-image: var(--ag-icon-image-cross, var(--ag-icon-image));\n display: var(--ag-icon-image-display-cross, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-cross, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-csv {\n font-family: var(--ag-icon-font-family-csv, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-csv, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-csv, var(--ag-icon-font-color));\n}\n\n.ag-icon-csv::before {\n content: var(--ag-icon-font-code-csv, "\\f10e");\n display: var(--ag-icon-font-display-csv, var(--ag-icon-font-display));\n}\n\n.ag-icon-csv::after {\n background-image: var(--ag-icon-image-csv, var(--ag-icon-image));\n display: var(--ag-icon-image-display-csv, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-csv, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-cut {\n font-family: var(--ag-icon-font-family-cut, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-cut, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-cut, var(--ag-icon-font-color));\n}\n\n.ag-icon-cut::before {\n content: var(--ag-icon-font-code-cut, "\\f10f");\n display: var(--ag-icon-font-display-cut, var(--ag-icon-font-display));\n}\n\n.ag-icon-cut::after {\n background-image: var(--ag-icon-image-cut, var(--ag-icon-image));\n display: var(--ag-icon-image-display-cut, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-cut, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-desc {\n font-family: var(--ag-icon-font-family-desc, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-desc, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-desc, var(--ag-icon-font-color));\n}\n\n.ag-icon-desc::before {\n content: var(--ag-icon-font-code-desc, "\\f110");\n display: var(--ag-icon-font-display-desc, var(--ag-icon-font-display));\n}\n\n.ag-icon-desc::after {\n background-image: var(--ag-icon-image-desc, var(--ag-icon-image));\n display: var(--ag-icon-image-display-desc, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-desc, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-excel {\n font-family: var(--ag-icon-font-family-excel, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-excel, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-excel, var(--ag-icon-font-color));\n}\n\n.ag-icon-excel::before {\n content: var(--ag-icon-font-code-excel, "\\f111");\n display: var(--ag-icon-font-display-excel, var(--ag-icon-font-display));\n}\n\n.ag-icon-excel::after {\n background-image: var(--ag-icon-image-excel, var(--ag-icon-image));\n display: var(--ag-icon-image-display-excel, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-excel, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-expanded {\n font-family: var(--ag-icon-font-family-expanded, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-expanded, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-expanded, var(--ag-icon-font-color));\n}\n\n.ag-icon-expanded::before {\n content: var(--ag-icon-font-code-expanded, "\\f112");\n display: var(--ag-icon-font-display-expanded, var(--ag-icon-font-display));\n}\n\n.ag-icon-expanded::after {\n background-image: var(--ag-icon-image-expanded, var(--ag-icon-image));\n display: var(--ag-icon-image-display-expanded, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-expanded, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-eye-slash {\n font-family: var(--ag-icon-font-family-eye-slash, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-eye-slash, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-eye-slash, var(--ag-icon-font-color));\n}\n\n.ag-icon-eye-slash::before {\n content: var(--ag-icon-font-code-eye-slash, "\\f113");\n display: var(--ag-icon-font-display-eye-slash, var(--ag-icon-font-display));\n}\n\n.ag-icon-eye-slash::after {\n background-image: var(--ag-icon-image-eye-slash, var(--ag-icon-image));\n display: var(--ag-icon-image-display-eye-slash, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-eye-slash, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-eye {\n font-family: var(--ag-icon-font-family-eye, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-eye, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-eye, var(--ag-icon-font-color));\n}\n\n.ag-icon-eye::before {\n content: var(--ag-icon-font-code-eye, "\\f114");\n display: var(--ag-icon-font-display-eye, var(--ag-icon-font-display));\n}\n\n.ag-icon-eye::after {\n background-image: var(--ag-icon-image-eye, var(--ag-icon-image));\n display: var(--ag-icon-image-display-eye, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-eye, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-filter {\n font-family: var(--ag-icon-font-family-filter, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-filter, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-filter, var(--ag-icon-font-color));\n}\n\n.ag-icon-filter::before {\n content: var(--ag-icon-font-code-filter, "\\f115");\n display: var(--ag-icon-font-display-filter, var(--ag-icon-font-display));\n}\n\n.ag-icon-filter::after {\n background-image: var(--ag-icon-image-filter, var(--ag-icon-image));\n display: var(--ag-icon-image-display-filter, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-filter, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-first {\n font-family: var(--ag-icon-font-family-first, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-first, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-first, var(--ag-icon-font-color));\n}\n\n.ag-icon-first::before {\n content: var(--ag-icon-font-code-first, "\\f116");\n display: var(--ag-icon-font-display-first, var(--ag-icon-font-display));\n}\n\n.ag-icon-first::after {\n background-image: var(--ag-icon-image-first, var(--ag-icon-image));\n display: var(--ag-icon-image-display-first, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-first, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-grip {\n font-family: var(--ag-icon-font-family-grip, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-grip, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-grip, var(--ag-icon-font-color));\n}\n\n.ag-icon-grip::before {\n content: var(--ag-icon-font-code-grip, "\\f117");\n display: var(--ag-icon-font-display-grip, var(--ag-icon-font-display));\n}\n\n.ag-icon-grip::after {\n background-image: var(--ag-icon-image-grip, var(--ag-icon-image));\n display: var(--ag-icon-image-display-grip, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-grip, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-group {\n font-family: var(--ag-icon-font-family-group, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-group, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-group, var(--ag-icon-font-color));\n}\n\n.ag-icon-group::before {\n content: var(--ag-icon-font-code-group, "\\f118");\n display: var(--ag-icon-font-display-group, var(--ag-icon-font-display));\n}\n\n.ag-icon-group::after {\n background-image: var(--ag-icon-image-group, var(--ag-icon-image));\n display: var(--ag-icon-image-display-group, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-group, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-last {\n font-family: var(--ag-icon-font-family-last, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-last, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-last, var(--ag-icon-font-color));\n}\n\n.ag-icon-last::before {\n content: var(--ag-icon-font-code-last, "\\f119");\n display: var(--ag-icon-font-display-last, var(--ag-icon-font-display));\n}\n\n.ag-icon-last::after {\n background-image: var(--ag-icon-image-last, var(--ag-icon-image));\n display: var(--ag-icon-image-display-last, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-last, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-left {\n font-family: var(--ag-icon-font-family-left, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-left, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-left, var(--ag-icon-font-color));\n}\n\n.ag-icon-left::before {\n content: var(--ag-icon-font-code-left, "\\f11a");\n display: var(--ag-icon-font-display-left, var(--ag-icon-font-display));\n}\n\n.ag-icon-left::after {\n background-image: var(--ag-icon-image-left, var(--ag-icon-image));\n display: var(--ag-icon-image-display-left, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-left, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-linked {\n font-family: var(--ag-icon-font-family-linked, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-linked, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-linked, var(--ag-icon-font-color));\n}\n\n.ag-icon-linked::before {\n content: var(--ag-icon-font-code-linked, "\\f11b");\n display: var(--ag-icon-font-display-linked, var(--ag-icon-font-display));\n}\n\n.ag-icon-linked::after {\n background-image: var(--ag-icon-image-linked, var(--ag-icon-image));\n display: var(--ag-icon-image-display-linked, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-linked, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-loading {\n font-family: var(--ag-icon-font-family-loading, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-loading, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-loading, var(--ag-icon-font-color));\n}\n\n.ag-icon-loading::before {\n content: var(--ag-icon-font-code-loading, "\\f11c");\n display: var(--ag-icon-font-display-loading, var(--ag-icon-font-display));\n}\n\n.ag-icon-loading::after {\n background-image: var(--ag-icon-image-loading, var(--ag-icon-image));\n display: var(--ag-icon-image-display-loading, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-loading, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-maximize {\n font-family: var(--ag-icon-font-family-maximize, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-maximize, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-maximize, var(--ag-icon-font-color));\n}\n\n.ag-icon-maximize::before {\n content: var(--ag-icon-font-code-maximize, "\\f11d");\n display: var(--ag-icon-font-display-maximize, var(--ag-icon-font-display));\n}\n\n.ag-icon-maximize::after {\n background-image: var(--ag-icon-image-maximize, var(--ag-icon-image));\n display: var(--ag-icon-image-display-maximize, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-maximize, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-menu {\n font-family: var(--ag-icon-font-family-menu, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-menu, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-menu, var(--ag-icon-font-color));\n}\n\n.ag-icon-menu::before {\n content: var(--ag-icon-font-code-menu, "\\f11e");\n display: var(--ag-icon-font-display-menu, var(--ag-icon-font-display));\n}\n\n.ag-icon-menu::after {\n background-image: var(--ag-icon-image-menu, var(--ag-icon-image));\n display: var(--ag-icon-image-display-menu, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-menu, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-minimize {\n font-family: var(--ag-icon-font-family-minimize, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-minimize, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-minimize, var(--ag-icon-font-color));\n}\n\n.ag-icon-minimize::before {\n content: var(--ag-icon-font-code-minimize, "\\f11f");\n display: var(--ag-icon-font-display-minimize, var(--ag-icon-font-display));\n}\n\n.ag-icon-minimize::after {\n background-image: var(--ag-icon-image-minimize, var(--ag-icon-image));\n display: var(--ag-icon-image-display-minimize, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-minimize, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-next {\n font-family: var(--ag-icon-font-family-next, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-next, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-next, var(--ag-icon-font-color));\n}\n\n.ag-icon-next::before {\n content: var(--ag-icon-font-code-next, "\\f120");\n display: var(--ag-icon-font-display-next, var(--ag-icon-font-display));\n}\n\n.ag-icon-next::after {\n background-image: var(--ag-icon-image-next, var(--ag-icon-image));\n display: var(--ag-icon-image-display-next, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-next, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-none {\n font-family: var(--ag-icon-font-family-none, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-none, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-none, var(--ag-icon-font-color));\n}\n\n.ag-icon-none::before {\n content: var(--ag-icon-font-code-none, "\\f121");\n display: var(--ag-icon-font-display-none, var(--ag-icon-font-display));\n}\n\n.ag-icon-none::after {\n background-image: var(--ag-icon-image-none, var(--ag-icon-image));\n display: var(--ag-icon-image-display-none, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-none, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-not-allowed {\n font-family: var(--ag-icon-font-family-not-allowed, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-not-allowed, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-not-allowed, var(--ag-icon-font-color));\n}\n\n.ag-icon-not-allowed::before {\n content: var(--ag-icon-font-code-not-allowed, "\\f122");\n display: var(--ag-icon-font-display-not-allowed, var(--ag-icon-font-display));\n}\n\n.ag-icon-not-allowed::after {\n background-image: var(--ag-icon-image-not-allowed, var(--ag-icon-image));\n display: var(--ag-icon-image-display-not-allowed, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-not-allowed, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-paste {\n font-family: var(--ag-icon-font-family-paste, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-paste, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-paste, var(--ag-icon-font-color));\n}\n\n.ag-icon-paste::before {\n content: var(--ag-icon-font-code-paste, "\\f123");\n display: var(--ag-icon-font-display-paste, var(--ag-icon-font-display));\n}\n\n.ag-icon-paste::after {\n background-image: var(--ag-icon-image-paste, var(--ag-icon-image));\n display: var(--ag-icon-image-display-paste, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-paste, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-pin {\n font-family: var(--ag-icon-font-family-pin, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-pin, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-pin, var(--ag-icon-font-color));\n}\n\n.ag-icon-pin::before {\n content: var(--ag-icon-font-code-pin, "\\f124");\n display: var(--ag-icon-font-display-pin, var(--ag-icon-font-display));\n}\n\n.ag-icon-pin::after {\n background-image: var(--ag-icon-image-pin, var(--ag-icon-image));\n display: var(--ag-icon-image-display-pin, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-pin, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-pivot {\n font-family: var(--ag-icon-font-family-pivot, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-pivot, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-pivot, var(--ag-icon-font-color));\n}\n\n.ag-icon-pivot::before {\n content: var(--ag-icon-font-code-pivot, "\\f125");\n display: var(--ag-icon-font-display-pivot, var(--ag-icon-font-display));\n}\n\n.ag-icon-pivot::after {\n background-image: var(--ag-icon-image-pivot, var(--ag-icon-image));\n display: var(--ag-icon-image-display-pivot, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-pivot, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-previous {\n font-family: var(--ag-icon-font-family-previous, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-previous, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-previous, var(--ag-icon-font-color));\n}\n\n.ag-icon-previous::before {\n content: var(--ag-icon-font-code-previous, "\\f126");\n display: var(--ag-icon-font-display-previous, var(--ag-icon-font-display));\n}\n\n.ag-icon-previous::after {\n background-image: var(--ag-icon-image-previous, var(--ag-icon-image));\n display: var(--ag-icon-image-display-previous, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-previous, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-radio-button-off {\n font-family: var(--ag-icon-font-family-radio-button-off, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-radio-button-off, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-radio-button-off, var(--ag-icon-font-color));\n}\n\n.ag-icon-radio-button-off::before {\n content: var(--ag-icon-font-code-radio-button-off, "\\f127");\n display: var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display));\n}\n\n.ag-icon-radio-button-off::after {\n background-image: var(--ag-icon-image-radio-button-off, var(--ag-icon-image));\n display: var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-radio-button-on {\n font-family: var(--ag-icon-font-family-radio-button-on, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-radio-button-on, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-radio-button-on, var(--ag-icon-font-color));\n}\n\n.ag-icon-radio-button-on::before {\n content: var(--ag-icon-font-code-radio-button-on, "\\f128");\n display: var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display));\n}\n\n.ag-icon-radio-button-on::after {\n background-image: var(--ag-icon-image-radio-button-on, var(--ag-icon-image));\n display: var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-right {\n font-family: var(--ag-icon-font-family-right, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-right, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-right, var(--ag-icon-font-color));\n}\n\n.ag-icon-right::before {\n content: var(--ag-icon-font-code-right, "\\f129");\n display: var(--ag-icon-font-display-right, var(--ag-icon-font-display));\n}\n\n.ag-icon-right::after {\n background-image: var(--ag-icon-image-right, var(--ag-icon-image));\n display: var(--ag-icon-image-display-right, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-right, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-save {\n font-family: var(--ag-icon-font-family-save, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-save, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-save, var(--ag-icon-font-color));\n}\n\n.ag-icon-save::before {\n content: var(--ag-icon-font-code-save, "\\f12a");\n display: var(--ag-icon-font-display-save, var(--ag-icon-font-display));\n}\n\n.ag-icon-save::after {\n background-image: var(--ag-icon-image-save, var(--ag-icon-image));\n display: var(--ag-icon-image-display-save, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-save, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-small-down {\n font-family: var(--ag-icon-font-family-small-down, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-small-down, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-small-down, var(--ag-icon-font-color));\n}\n\n.ag-icon-small-down::before {\n content: var(--ag-icon-font-code-small-down, "\\f12b");\n display: var(--ag-icon-font-display-small-down, var(--ag-icon-font-display));\n}\n\n.ag-icon-small-down::after {\n background-image: var(--ag-icon-image-small-down, var(--ag-icon-image));\n display: var(--ag-icon-image-display-small-down, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-small-down, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-small-left {\n font-family: var(--ag-icon-font-family-small-left, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-small-left, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-small-left, var(--ag-icon-font-color));\n}\n\n.ag-icon-small-left::before {\n content: var(--ag-icon-font-code-small-left, "\\f12c");\n display: var(--ag-icon-font-display-small-left, var(--ag-icon-font-display));\n}\n\n.ag-icon-small-left::after {\n background-image: var(--ag-icon-image-small-left, var(--ag-icon-image));\n display: var(--ag-icon-image-display-small-left, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-small-left, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-small-right {\n font-family: var(--ag-icon-font-family-small-right, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-small-right, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-small-right, var(--ag-icon-font-color));\n}\n\n.ag-icon-small-right::before {\n content: var(--ag-icon-font-code-small-right, "\\f12d");\n display: var(--ag-icon-font-display-small-right, var(--ag-icon-font-display));\n}\n\n.ag-icon-small-right::after {\n background-image: var(--ag-icon-image-small-right, var(--ag-icon-image));\n display: var(--ag-icon-image-display-small-right, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-small-right, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-small-up {\n font-family: var(--ag-icon-font-family-small-up, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-small-up, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-small-up, var(--ag-icon-font-color));\n}\n\n.ag-icon-small-up::before {\n content: var(--ag-icon-font-code-small-up, "\\f12e");\n display: var(--ag-icon-font-display-small-up, var(--ag-icon-font-display));\n}\n\n.ag-icon-small-up::after {\n background-image: var(--ag-icon-image-small-up, var(--ag-icon-image));\n display: var(--ag-icon-image-display-small-up, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-small-up, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-tick {\n font-family: var(--ag-icon-font-family-tick, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-tick, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-tick, var(--ag-icon-font-color));\n}\n\n.ag-icon-tick::before {\n content: var(--ag-icon-font-code-tick, "\\f12f");\n display: var(--ag-icon-font-display-tick, var(--ag-icon-font-display));\n}\n\n.ag-icon-tick::after {\n background-image: var(--ag-icon-image-tick, var(--ag-icon-image));\n display: var(--ag-icon-image-display-tick, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-tick, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-tree-closed {\n font-family: var(--ag-icon-font-family-tree-closed, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-tree-closed, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-tree-closed, var(--ag-icon-font-color));\n}\n\n.ag-icon-tree-closed::before {\n content: var(--ag-icon-font-code-tree-closed, "\\f130");\n display: var(--ag-icon-font-display-tree-closed, var(--ag-icon-font-display));\n}\n\n.ag-icon-tree-closed::after {\n background-image: var(--ag-icon-image-tree-closed, var(--ag-icon-image));\n display: var(--ag-icon-image-display-tree-closed, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-tree-closed, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-tree-indeterminate {\n font-family: var(--ag-icon-font-family-tree-indeterminate, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-tree-indeterminate, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-tree-indeterminate, var(--ag-icon-font-color));\n}\n\n.ag-icon-tree-indeterminate::before {\n content: var(--ag-icon-font-code-tree-indeterminate, "\\f131");\n display: var(--ag-icon-font-display-tree-indeterminate, var(--ag-icon-font-display));\n}\n\n.ag-icon-tree-indeterminate::after {\n background-image: var(--ag-icon-image-tree-indeterminate, var(--ag-icon-image));\n display: var(--ag-icon-image-display-tree-indeterminate, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-tree-indeterminate, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-tree-open {\n font-family: var(--ag-icon-font-family-tree-open, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-tree-open, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-tree-open, var(--ag-icon-font-color));\n}\n\n.ag-icon-tree-open::before {\n content: var(--ag-icon-font-code-tree-open, "\\f132");\n display: var(--ag-icon-font-display-tree-open, var(--ag-icon-font-display));\n}\n\n.ag-icon-tree-open::after {\n background-image: var(--ag-icon-image-tree-open, var(--ag-icon-image));\n display: var(--ag-icon-image-display-tree-open, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-tree-open, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-unlinked {\n font-family: var(--ag-icon-font-family-unlinked, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-unlinked, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-unlinked, var(--ag-icon-font-color));\n}\n\n.ag-icon-unlinked::before {\n content: var(--ag-icon-font-code-unlinked, "\\f133");\n display: var(--ag-icon-font-display-unlinked, var(--ag-icon-font-display));\n}\n\n.ag-icon-unlinked::after {\n background-image: var(--ag-icon-image-unlinked, var(--ag-icon-image));\n display: var(--ag-icon-image-display-unlinked, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-unlinked, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-up {\n font-family: var(--ag-icon-font-family-up, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-up, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-up, var(--ag-icon-font-color));\n}\n\n.ag-icon-up::before {\n content: var(--ag-icon-font-code-up, "\\f134");\n display: var(--ag-icon-font-display-up, var(--ag-icon-font-display));\n}\n\n.ag-icon-up::after {\n background-image: var(--ag-icon-image-up, var(--ag-icon-image));\n display: var(--ag-icon-image-display-up, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-up, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-down {\n font-family: var(--ag-icon-font-family-down, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-down, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-down, var(--ag-icon-font-color));\n}\n\n.ag-icon-down::before {\n content: var(--ag-icon-font-code-down, "\\f135");\n display: var(--ag-icon-font-display-down, var(--ag-icon-font-display));\n}\n\n.ag-icon-down::after {\n background-image: var(--ag-icon-image-down, var(--ag-icon-image));\n display: var(--ag-icon-image-display-down, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-down, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-plus {\n font-family: var(--ag-icon-font-family-plus, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-plus, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-plus, var(--ag-icon-font-color));\n}\n\n.ag-icon-plus::before {\n content: var(--ag-icon-font-code-plus, "\\f136");\n display: var(--ag-icon-font-display-plus, var(--ag-icon-font-display));\n}\n\n.ag-icon-plus::after {\n background-image: var(--ag-icon-image-plus, var(--ag-icon-image));\n display: var(--ag-icon-image-display-plus, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-plus, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-minus {\n font-family: var(--ag-icon-font-family-minus, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-minus, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-minus, var(--ag-icon-font-color));\n}\n\n.ag-icon-minus::before {\n content: var(--ag-icon-font-code-minus, "\\f137");\n display: var(--ag-icon-font-display-minus, var(--ag-icon-font-display));\n}\n\n.ag-icon-minus::after {\n background-image: var(--ag-icon-image-minus, var(--ag-icon-image));\n display: var(--ag-icon-image-display-minus, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-minus, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-menu-alt {\n font-family: var(--ag-icon-font-family-menu-alt, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-menu-alt, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-menu-alt, var(--ag-icon-font-color));\n}\n\n.ag-icon-menu-alt::before {\n content: var(--ag-icon-font-code-menu-alt, "\\f138");\n display: var(--ag-icon-font-display-menu-alt, var(--ag-icon-font-display));\n}\n\n.ag-icon-menu-alt::after {\n background-image: var(--ag-icon-image-menu-alt, var(--ag-icon-image));\n display: var(--ag-icon-image-display-menu-alt, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-menu-alt, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-settings {\n font-family: var(--ag-icon-font-family-settings, var(--ag-icon-font-family));\n font-weight: var(--ag-icon-font-weight-settings, var(--ag-icon-font-weight));\n color: var(--ag-icon-font-color-settings, var(--ag-icon-font-color));\n}\n\n.ag-icon-settings::before {\n content: var(--ag-icon-font-code-settings, "\\f139");\n display: var(--ag-icon-font-display-settings, var(--ag-icon-font-display));\n}\n\n.ag-icon-settings::after {\n background-image: var(--ag-icon-image-settings, var(--ag-icon-image));\n display: var(--ag-icon-image-display-settings, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-settings, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-icon-row-drag::before {\n content: var(--ag-icon-font-code-grip);\n}\n\n.ag-left-arrow::before {\n content: var(--ag-icon-font-code-left);\n}\n\n.ag-right-arrow::before {\n content: var(--ag-icon-font-code-right);\n}\n\n[class*=ag-theme-] {\n --ag-foreground-color: #000;\n --ag-data-color: var(--ag-foreground-color);\n --ag-secondary-foreground-color: var(--ag-foreground-color);\n --ag-header-foreground-color: var(--ag-secondary-foreground-color);\n --ag-disabled-foreground-color: rgba(0, 0, 0, 0.5);\n --ag-background-color: #fff;\n --ag-header-background-color: transparent;\n --ag-tooltip-background-color: transparent;\n --ag-subheader-background-color: transparent;\n --ag-subheader-toolbar-background-color: transparent;\n --ag-control-panel-background-color: transparent;\n --ag-side-button-selected-background-color: var(--ag-control-panel-background-color);\n --ag-selected-row-background-color: #BBB;\n --ag-odd-row-background-color: var(--ag-background-color);\n --ag-modal-overlay-background-color: rgba(255, 255, 255, 0.66);\n --ag-menu-background-color: var(--ag-background-color);\n --ag-menu-border-color: var(--ag-border-color);\n --ag-panel-background-color: var(--ag-background-color);\n --ag-panel-border-color: var(--ag-border-color);\n --ag-row-hover-color: transparent;\n --ag-column-hover-color: transparent;\n --ag-range-selection-border-color: var(--ag-foreground-color);\n --ag-range-selection-border-style: solid;\n --ag-range-selection-background-color: rgba(0, 0, 0, 0.2);\n --ag-range-selection-background-color-2: var(--ag-range-selection-background-color);\n --ag-range-selection-background-color-3: var(--ag-range-selection-background-color);\n --ag-range-selection-background-color-4: var(--ag-range-selection-background-color);\n --ag-range-selection-highlight-color: var(--ag-range-selection-border-color);\n --ag-selected-tab-underline-color: var(--ag-range-selection-border-color);\n --ag-selected-tab-underline-width: 0;\n --ag-selected-tab-underline-transition-speed: 0s;\n --ag-range-selection-chart-category-background-color: rgba(0, 255, 132, 0.1);\n --ag-range-selection-chart-background-color: rgba(0, 88, 255, 0.1);\n --ag-header-cell-hover-background-color: transparent;\n --ag-header-cell-moving-background-color: var(--ag-background-color);\n --ag-value-change-value-highlight-background-color: rgba(22, 160, 133, 0.5);\n --ag-value-change-delta-up-color: #43a047;\n --ag-value-change-delta-down-color: #e53935;\n --ag-row-loading-skeleton-effect-color: rgba(66, 66, 66, 0.2);\n --ag-chip-background-color: transparent;\n --ag-chip-border-color: var(--ag-chip-background-color);\n --ag-borders: solid 1px;\n --ag-border-color: rgba(0, 0, 0, 0.25);\n --ag-borders-critical: var(--ag-borders);\n --ag-borders-secondary: var(--ag-borders);\n --ag-secondary-border-color: var(--ag-border-color);\n --ag-row-border-style: solid;\n --ag-row-border-color: var(--ag-secondary-border-color);\n --ag-row-border-width: 1px;\n --ag-cell-horizontal-border: solid transparent;\n --ag-borders-input: var(--ag-borders-secondary);\n --ag-input-border-color: var(--ag-secondary-border-color);\n --ag-borders-input-invalid: solid 2px;\n --ag-input-border-color-invalid: var(--ag-invalid-color);\n --ag-borders-side-button: var(--ag-borders);\n --ag-border-radius: 0px;\n --ag-wrapper-border-radius: var(--ag-border-radius);\n --ag-row-border-color: var(--ag-secondary-border-color);\n --ag-header-column-separator-display: none;\n --ag-header-column-separator-height: 100%;\n --ag-header-column-separator-width: 1px;\n --ag-header-column-separator-color: var(--ag-secondary-border-color);\n --ag-header-column-resize-handle-display: none;\n --ag-header-column-resize-handle-height: 50%;\n --ag-header-column-resize-handle-width: 1px;\n --ag-header-column-resize-handle-color: var(--ag-secondary-border-color);\n --ag-invalid-color: red;\n --ag-input-disabled-border-color: var(--ag-input-border-color);\n --ag-input-disabled-background-color: transparent;\n --ag-checkbox-background-color: transparent;\n --ag-checkbox-border-radius: var(--ag-border-radius);\n --ag-checkbox-checked-color: var(--ag-foreground-color);\n --ag-checkbox-unchecked-color: var(--ag-foreground-color);\n --ag-checkbox-indeterminate-color: var(--ag-checkbox-unchecked-color);\n --ag-toggle-button-off-border-color: var(--ag-checkbox-unchecked-color);\n --ag-toggle-button-off-background-color: var(--ag-checkbox-unchecked-color);\n --ag-toggle-button-on-border-color: var(--ag-checkbox-checked-color);\n --ag-toggle-button-on-background-color: var(--ag-checkbox-checked-color);\n --ag-toggle-button-switch-background-color: var(--ag-background-color);\n --ag-toggle-button-switch-border-color: var(--ag-toggle-button-off-border-color);\n --ag-toggle-button-border-width: 1px;\n --ag-toggle-button-height: var(--ag-icon-size);\n --ag-toggle-button-width: calc(var(--ag-toggle-button-height) * 2);\n --ag-input-focus-box-shadow: none;\n --ag-input-focus-border-color: none;\n --ag-minichart-selected-chart-color: var(--ag-checkbox-checked-color);\n --ag-minichart-selected-page-color: var(--ag-checkbox-checked-color);\n --ag-grid-size: 4px;\n --ag-icon-size: 12px;\n --ag-icon-font-weight: normal;\n --ag-icon-font-color: var(--ag-foreground-color);\n --ag-icon-image-display: block;\n --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);\n --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);\n --ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 2);\n --ag-widget-vertical-spacing: var(--ag-grid-size);\n --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);\n --ag-cell-widget-spacing: var(--ag-cell-horizontal-padding);\n --ag-row-height: calc(var(--ag-grid-size) * 6 + 1px);\n --ag-header-height: var(--ag-row-height);\n --ag-list-item-height: calc(var(--ag-grid-size) * 5);\n --ag-column-select-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));\n --ag-set-filter-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));\n --ag-advanced-filter-builder-indent-size: calc(var(--ag-grid-size) * 2 + var(--ag-icon-size));\n --ag-row-group-indent-size: calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size));\n --ag-filter-tool-panel-group-indent: 16px;\n --ag-tab-min-width: 220px;\n --ag-menu-min-width: 181px;\n --ag-side-bar-panel-width: 200px;\n --ag-font-family: "Helvetica Neue", sans-serif;\n --ag-font-size: 14px;\n --ag-card-radius: var(--ag-border-radius);\n --ag-card-shadow: none;\n --ag-popup-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);\n --ag-advanced-filter-join-pill-color: #f08e8d;\n --ag-advanced-filter-column-pill-color: #a6e194;\n --ag-advanced-filter-option-pill-color: #f3c08b;\n --ag-advanced-filter-value-pill-color: #85c0e4;\n}\n\n.ag-root-wrapper, .ag-sticky-top, .ag-sticky-bottom, .ag-dnd-ghost {\n background-color: var(--ag-background-color);\n}\n\n[class*=ag-theme-] {\n -webkit-font-smoothing: antialiased;\n font-family: var(--ag-font-family);\n font-size: var(--ag-font-size);\n line-height: normal;\n color: var(--ag-foreground-color);\n}\n\nag-grid, ag-grid-angular, ag-grid-ng2, ag-grid-polymer, ag-grid-aurelia {\n display: block;\n}\n\n.ag-aria-description-container {\n z-index: 9999;\n border: 0px;\n clip: rect(1px, 1px, 1px, 1px);\n height: 1px;\n width: 1px;\n position: absolute;\n overflow: hidden;\n padding: 0px;\n white-space: nowrap;\n}\n\n.ag-hidden {\n display: none !important;\n}\n\n.ag-invisible {\n visibility: hidden !important;\n}\n\n.ag-no-transition {\n transition: none !important;\n}\n\n.ag-drag-handle {\n cursor: grab;\n}\n\n.ag-column-drop-wrapper {\n display: flex;\n}\n\n.ag-column-drop-horizontal-half-width {\n display: inline-block;\n width: 50% !important;\n}\n\n.ag-unselectable {\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.ag-selectable {\n -moz-user-select: text;\n -webkit-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n\n.ag-tab {\n position: relative;\n}\n\n.ag-tab-guard {\n position: absolute;\n width: 0;\n height: 0;\n display: block;\n}\n\n.ag-select-agg-func-popup {\n position: absolute;\n}\n\n.ag-input-wrapper, .ag-picker-field-wrapper {\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n line-height: normal;\n position: relative;\n}\n\n.ag-shake-left-to-right {\n animation-direction: alternate;\n animation-duration: 0.2s;\n animation-iteration-count: infinite;\n animation-name: ag-shake-left-to-right;\n}\n\n@keyframes ag-shake-left-to-right {\n from {\n padding-left: 6px;\n padding-right: 2px;\n }\n to {\n padding-left: 2px;\n padding-right: 6px;\n }\n}\n.ag-root-wrapper {\n cursor: default;\n position: relative;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: normal;\n}\n.ag-root-wrapper.ag-layout-normal {\n height: 100%;\n}\n\n.ag-watermark {\n position: absolute;\n bottom: 20px;\n right: 25px;\n opacity: 0.7;\n transition: opacity 1s ease-out 3s;\n color: #9B9B9B;\n}\n.ag-watermark::before {\n content: "";\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjA5IiBoZWlnaHQ9IjM2IiB2aWV3Qm94PSIwIDAgMjA5IDM2IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMTkyLjk5MyAyMy42NTgyVjE1LjcxMTdIMTc5LjQ1MkwxNzEuNTA1IDIzLjY1ODJIMTkyLjk5M1oiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTIwOC4yNSAzLjk1MDgxSDE5MS4yNzZMMTgzLjI2NiAxMS44OTczSDIwOC4yNVYzLjk1MDgxWiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTYzLjYyMiAzMS42MDQ4TDE2Ny42OTEgMjcuNTM2MUgxODEuNDIzVjM1LjQ4MjdIMTYzLjYyMlYzMS42MDQ4WiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTY2LjYxIDE5Ljc4MDNIMTc1LjM4M0wxODMuMzkzIDExLjgzMzdIMTY2LjYxVjE5Ljc4MDNaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0xNTcuMDExIDMxLjYwNDdIMTYzLjYyMkwxNzEuNTA1IDIzLjY1ODJIMTU3LjAxMVYzMS42MDQ3WiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTkxLjI3NiAzLjk1MDgxTDE4Ny4yMDggOC4wMTk0MUgxNjEuMjdWMC4wNzI4NzZIMTkxLjI3NlYzLjk1MDgxWiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMjAuODM5MSAzMC4yMDYxSDguMzc4OTJMNi4yMTc0NSAzNS41NDYySDAuNzUwMjQ0TDEyLjI1NjggOC41OTE1NUgxNy4wMjQ3TDI4LjUzMTMgMzUuNTQ2MkgyMy4wMDA1TDIwLjgzOTEgMzAuMjA2MVpNMTkuMTIyNyAyNS45NDY4TDE0LjYwOSAxNC45NDg4TDEwLjA5NTQgMjUuOTQ2OEgxOS4xMjI3WiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTA0LjQzNyAxOC41MDg5QzEwNi4wMjYgMTYuMTU2NyAxMTAuMDMxIDE1LjkwMjQgMTExLjY4NCAxNS45MDI0VjIwLjQ3OTZDMTA5LjY1IDIwLjQ3OTYgMTA3LjYxNSAyMC41NDMyIDEwNi40MDcgMjEuNDMzMkMxMDUuMiAyMi4zMjMyIDEwNC41NjQgMjMuNTMxMSAxMDQuNTY0IDI0Ljk5MzJWMzUuNTQ2Mkg5OS42MDUxVjE1LjkwMjRIMTA0LjM3M0wxMDQuNDM3IDE4LjUwODlaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0xMTkuMzc2IDE1LjkwMjRIMTE0LjQxOFYzNS41NDYySDExOS4zNzZWMTUuOTAyNFoiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTExOS4zNzYgNy4xMjkzOUgxMTQuNDE4VjEyLjk3OEgxMTkuMzc2VjcuMTI5MzlaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0xNDMuOTc5IDcuMTI5MzlWMzUuNTQ2MkgxMzkuMjExTDEzOS4wODQgMzIuNTU4M0MxMzguMzg0IDMzLjU3NTUgMTM3LjQ5NCAzNC40MDE5IDEzNi40MTQgMzUuMDM3NkMxMzUuMzMzIDM1LjYwOTggMTMzLjk5OCAzNS45Mjc2IDEzMi40NzIgMzUuOTI3NkMxMzEuMTM3IDM1LjkyNzYgMTI5Ljg2NiAzNS42NzMzIDEyOC43ODUgMzUuMjI4M0MxMjcuNjQxIDM0LjcxOTcgMTI2LjYyMyAzNC4wODQgMTI1Ljc5NyAzMy4xOTRDMTI0Ljk3MSAzMi4zMDQgMTI0LjI3MSAzMS4yMjMzIDEyMy44MjYgMzAuMDE1NEMxMjMuMzE4IDI4LjgwNzUgMTIzLjEyNyAyNy40MDkgMTIzLjEyNyAyNS44ODMyQzEyMy4xMjcgMjQuMzU3NSAxMjMuMzgxIDIyLjk1ODkgMTIzLjgyNiAyMS42ODc0QzEyNC4zMzUgMjAuNDE2IDEyNC45NzEgMTkuMzM1MyAxMjUuNzk3IDE4LjQ0NTNDMTI2LjYyMyAxNy41NTUyIDEyNy42NDEgMTYuODU2IDEyOC43ODUgMTYuMzQ3NEMxMjkuOTI5IDE1LjgzODggMTMxLjEzNyAxNS41ODQ1IDEzMi40NzIgMTUuNTg0NUMxMzMuOTk4IDE1LjU4NDUgMTM1LjI2OSAxNS44Mzg4IDEzNi4zNSAxNi40MTA5QzEzNy40MzEgMTYuOTgzMSAxMzguMzIxIDE3Ljc0NTkgMTM5LjAyIDE4LjgyNjdWNy4xOTI5NUgxNDMuOTc5VjcuMTI5MzlaTTEzMy41NTMgMzEuNjY4M0MxMzUuMjA2IDMxLjY2ODMgMTM2LjQ3NyAzMS4wOTYyIDEzNy40OTQgMzAuMDE1NEMxMzguNTExIDI4LjkzNDcgMTM5LjAyIDI3LjQ3MjUgMTM5LjAyIDI1LjY5MjVDMTM5LjAyIDIzLjkxMjUgMTM4LjUxMSAyMi41MTM5IDEzNy40OTQgMjEuMzY5NkMxMzYuNDc3IDIwLjI4ODggMTM1LjIwNiAxOS43MTY3IDEzMy41NTMgMTkuNzE2N0MxMzEuOTYzIDE5LjcxNjcgMTMwLjYyOCAyMC4yODg4IDEyOS42NzUgMjEuMzY5NkMxMjguNjU4IDIyLjQ1MDMgMTI4LjE0OSAyMy45MTI1IDEyOC4xNDkgMjUuNjkyNUMxMjguMTQ5IDI3LjQ3MjUgMTI4LjY1OCAyOC44NzExIDEyOS42NzUgMjkuOTUxOEMxMzAuNjkyIDMxLjA5NjEgMTMxLjk2MyAzMS42NjgzIDEzMy41NTMgMzEuNjY4M1oiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTU3LjIwMjQgMjAuMzUyNUg0NC45MzNWMjQuNjExOEg1MS45MjU5QzUxLjczNTIgMjYuNzczMyA1MC45MDg4IDI4LjQyNjEgNDkuNTEwMiAyOS43NjExQzQ4LjExMTYgMzEuMDMyNiA0Ni4zMzE1IDMxLjY2ODMgNDQuMDQyOSAzMS42NjgzQzQyLjc3MTUgMzEuNjY4MyA0MS41NjM2IDMxLjQxNCA0MC41NDY1IDMwLjk2OUMzOS40NjU3IDMwLjUyNCAzOC41NzU3IDI5Ljg4ODMgMzcuODEyOSAyOC45OTgzQzM3LjA1IDI4LjE3MTggMzYuNDc3OCAyNy4xNTQ3IDM2LjAzMjggMjUuOTQ2OEMzNS41ODc4IDI0LjczODkgMzUuMzk3MSAyMy40Njc1IDM1LjM5NzEgMjIuMDA1M0MzNS4zOTcxIDIwLjU0MzIgMzUuNTg3OCAxOS4yNzE3IDM2LjAzMjggMTguMDYzOEMzNi40MTQzIDE2Ljg1NiAzNy4wNSAxNS45MDI0IDM3LjgxMjkgMTUuMDEyNEMzOC41NzU3IDE0LjE4NTkgMzkuNDY1NyAxMy41NTAyIDQwLjU0NjUgMTMuMDQxNkM0MS42MjcyIDEyLjU5NjYgNDIuNzcxNSAxMi4zNDIzIDQ0LjEwNjUgMTIuMzQyM0M0Ni43NzY2IDEyLjM0MjMgNDguODEwOSAxMi45NzggNTAuMjA5NSAxNC4yNDk1TDUzLjUxNTIgMTAuOTQzOEM1MS4wMzU5IDkuMDM2NTkgNDcuODU3MyA4LjAxOTQxIDQ0LjEwNjUgOC4wMTk0MUM0Mi4wMDg2IDguMDE5NDEgNDAuMTAxNSA4LjMzNzI5IDM4LjM4NSA5LjAzNjU5QzM2LjY2ODYgOS43MzU4OCAzNS4yMDY0IDEwLjYyNTkgMzMuOTk4NSAxMS44MzM3QzMyLjc5MDYgMTMuMDQxNiAzMS44MzcxIDE0LjUwMzggMzEuMjAxNCAxNi4yMjAzQzMwLjU2NTYgMTcuOTM2NyAzMC4yNDc4IDE5Ljg0MzggMzAuMjQ3OCAyMS44NzgyQzMwLjI0NzggMjMuOTEyNSAzMC41NjU2IDI1LjgxOTcgMzEuMjY0OSAyNy41MzYxQzMxLjk2NDIgMjkuMjUyNiAzMi44NTQyIDMwLjcxNDcgMzQuMDYyMSAzMS45MjI2QzM1LjI3IDMzLjEzMDUgMzYuNzMyMSAzNC4wODQxIDM4LjQ0ODYgMzQuNzE5OEM0MC4xNjUgMzUuNDE5MSA0Mi4wNzIyIDM1LjczNyA0NC4xMDY1IDM1LjczN0M0Ni4xNDA4IDM1LjczNyA0Ny45ODQ0IDM1LjQxOTEgNDkuNjM3MyAzNC43MTk4QzUxLjI5MDIgMzQuMDIwNSA1Mi42ODg4IDMzLjEzMDUgNTMuODMzMSAzMS45MjI2QzU0Ljk3NzQgMzAuNzE0NyA1NS44Njc0IDI5LjI1MjYgNTYuNTAzMSAyNy41MzYxQzU3LjEzODggMjUuODE5NyA1Ny40NTY3IDIzLjkxMjUgNTcuNDU2NyAyMS44NzgyVjIxLjA1MTdDNTcuMjY2IDIwLjkyNDYgNTcuMjAyNCAyMC42MDY3IDU3LjIwMjQgMjAuMzUyNVoiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTk1Ljk4MTUgMjAuMzUyNUg4My43MTIxVjI0LjYxMThIOTAuNzA1QzkwLjUxNDMgMjYuNzczMyA4OS42ODc5IDI4LjQyNjEgODguMjg5MyAyOS43NjExQzg2Ljg5MDcgMzEuMDMyNiA4NS4xMTA2IDMxLjY2ODMgODIuODIyIDMxLjY2ODNDODEuNTUwNiAzMS42NjgzIDgwLjM0MjcgMzEuNDE0IDc5LjMyNTYgMzAuOTY5Qzc4LjI0NDggMzAuNTI0IDc3LjM1NDggMjkuODg4MyA3Ni41OTIgMjguOTk4M0M3NS44MjkxIDI4LjE3MTggNzUuMjU3IDI3LjE1NDcgNzQuODExOSAyNS45NDY4Qzc0LjM2NjkgMjQuNzM4OSA3NC4xNzYyIDIzLjQ2NzUgNzQuMTc2MiAyMi4wMDUzQzc0LjE3NjIgMjAuNTQzMiA3NC4zNjY5IDE5LjI3MTcgNzQuODExOSAxOC4wNjM4Qzc1LjE5MzQgMTYuODU2IDc1LjgyOTEgMTUuOTAyNCA3Ni41OTIgMTUuMDEyNEM3Ny4zNTQ4IDE0LjE4NTkgNzguMjQ0OCAxMy41NTAyIDc5LjMyNTYgMTMuMDQxNkM4MC40MDYzIDEyLjU5NjYgODEuNTUwNiAxMi4zNDIzIDgyLjg4NTYgMTIuMzQyM0M4NS41NTU3IDEyLjM0MjMgODcuNTkgMTIuOTc4IDg4Ljk4ODYgMTQuMjQ5NUw5Mi4yOTQzIDEwLjk0MzhDODkuODE1IDkuMDM2NTkgODYuNjM2NCA4LjAxOTQxIDgyLjg4NTYgOC4wMTk0MUM4MC43ODc4IDguMDE5NDEgNzguODgwNiA4LjMzNzI5IDc3LjE2NDEgOS4wMzY1OUM3NS40NDc3IDkuNzM1ODggNzMuOTg1NSAxMC42MjU5IDcyLjc3NzYgMTEuODMzN0M3MS41Njk4IDEzLjA0MTYgNzAuNjE2MiAxNC41MDM4IDY5Ljk4MDUgMTYuMjIwM0M2OS4zNDQ3IDE3LjkzNjcgNjkuMDI2OSAxOS44NDM4IDY5LjAyNjkgMjEuODc4MkM2OS4wMjY5IDIzLjkxMjUgNjkuMzQ0NyAyNS44MTk3IDcwLjA0NCAyNy41MzYxQzcwLjc0MzMgMjkuMjUyNiA3MS42MzM0IDMwLjcxNDcgNzIuODQxMiAzMS45MjI2Qzc0LjA0OTEgMzMuMTMwNSA3NS41MTEyIDM0LjA4NDEgNzcuMjI3NyAzNC43MTk4Qzc4Ljk0NDEgMzUuNDE5MSA4MC44NTEzIDM1LjczNyA4Mi44ODU2IDM1LjczN0M4NC45MiAzNS43MzcgODYuNzYzNiAzNS40MTkxIDg4LjQxNjQgMzQuNzE5OEM5MC4wNjkzIDM0LjAyMDUgOTEuNDY3OSAzMy4xMzA1IDkyLjYxMjIgMzEuOTIyNkM5My43NTY1IDMwLjcxNDcgOTQuNjQ2NSAyOS4yNTI2IDk1LjI4MjIgMjcuNTM2MUM5NS45MTggMjUuODE5NyA5Ni4yMzU4IDIzLjkxMjUgOTYuMjM1OCAyMS44NzgyVjIxLjA1MTdDOTYuMDQ1MSAyMC45MjQ2IDk1Ljk4MTUgMjAuNjA2NyA5NS45ODE1IDIwLjM1MjVaIiBmaWxsPSIjOUI5QjlCIi8+Cjwvc3ZnPgo=);\n background-repeat: no-repeat;\n background-size: 170px 40px;\n display: block;\n height: 40px;\n width: 170px;\n}\n\n.ag-watermark-text {\n opacity: 0.5;\n font-weight: bold;\n font-family: Impact, sans-serif;\n font-size: 19px;\n padding-left: 0.7rem;\n}\n\n.ag-root-wrapper-body {\n display: flex;\n flex-direction: row;\n}\n.ag-root-wrapper-body.ag-layout-normal {\n flex: 1 1 auto;\n height: 0;\n min-height: 0;\n}\n\n.ag-root {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n.ag-root.ag-layout-normal, .ag-root.ag-layout-auto-height {\n overflow: hidden;\n flex: 1 1 auto;\n width: 0;\n}\n.ag-root.ag-layout-normal {\n height: 100%;\n}\n\n.ag-header-viewport,\n.ag-floating-top-viewport,\n.ag-body-viewport,\n.ag-center-cols-viewport,\n.ag-floating-bottom-viewport,\n.ag-body-horizontal-scroll-viewport,\n.ag-body-vertical-scroll-viewport,\n.ag-virtual-list-viewport,\n.ag-sticky-top-viewport,\n.ag-sticky-bottom-viewport {\n position: relative;\n height: 100%;\n min-width: 0px;\n overflow: hidden;\n flex: 1 1 auto;\n}\n\n.ag-body-viewport, .ag-center-cols-viewport {\n -ms-overflow-style: none !important;\n scrollbar-width: none !important;\n}\n.ag-body-viewport::-webkit-scrollbar, .ag-center-cols-viewport::-webkit-scrollbar {\n display: none !important;\n}\n\n.ag-body-viewport {\n display: flex;\n}\n.ag-body-viewport.ag-layout-normal {\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n}\n\n.ag-center-cols-viewport {\n min-height: 100%;\n width: 100%;\n overflow-x: auto;\n}\n\n.ag-body-horizontal-scroll-viewport {\n overflow-x: scroll;\n}\n\n.ag-body-vertical-scroll-viewport {\n overflow-y: scroll;\n}\n\n.ag-virtual-list-viewport {\n overflow: auto;\n width: 100%;\n}\n\n.ag-header-container,\n.ag-floating-top-container,\n.ag-body-container,\n.ag-pinned-right-cols-container,\n.ag-center-cols-container,\n.ag-pinned-left-cols-container,\n.ag-floating-bottom-container,\n.ag-body-horizontal-scroll-container,\n.ag-body-vertical-scroll-container,\n.ag-full-width-container,\n.ag-floating-bottom-full-width-container,\n.ag-virtual-list-container,\n.ag-sticky-top-container,\n.ag-sticky-bottom-container {\n position: relative;\n}\n\n.ag-header-container,\n.ag-floating-top-container,\n.ag-floating-bottom-container,\n.ag-sticky-top-container,\n.ag-sticky-bottom-container {\n height: 100%;\n white-space: nowrap;\n}\n\n.ag-center-cols-container {\n display: block;\n}\n\n.ag-pinned-right-cols-container {\n display: block;\n}\n\n.ag-body-horizontal-scroll-container {\n height: 100%;\n}\n\n.ag-body-vertical-scroll-container {\n width: 100%;\n}\n\n.ag-full-width-container,\n.ag-floating-top-full-width-container,\n.ag-floating-bottom-full-width-container,\n.ag-sticky-top-full-width-container,\n.ag-sticky-bottom-full-width-container {\n position: absolute;\n top: 0px;\n pointer-events: none;\n}\n.ag-ltr .ag-full-width-container,\n.ag-ltr .ag-floating-top-full-width-container,\n.ag-ltr .ag-floating-bottom-full-width-container,\n.ag-ltr .ag-sticky-top-full-width-container,\n.ag-ltr .ag-sticky-bottom-full-width-container {\n left: 0;\n}\n.ag-rtl .ag-full-width-container,\n.ag-rtl .ag-floating-top-full-width-container,\n.ag-rtl .ag-floating-bottom-full-width-container,\n.ag-rtl .ag-sticky-top-full-width-container,\n.ag-rtl .ag-sticky-bottom-full-width-container {\n right: 0;\n}\n\n.ag-full-width-container {\n width: 100%;\n}\n\n.ag-floating-bottom-full-width-container, .ag-floating-top-full-width-container {\n display: inline-block;\n overflow: hidden;\n height: 100%;\n width: 100%;\n}\n\n.ag-virtual-list-container {\n overflow: hidden;\n}\n\n.ag-body {\n position: relative;\n display: flex;\n flex: 1 1 auto;\n flex-direction: row !important;\n min-height: 0;\n}\n\n.ag-body-horizontal-scroll,\n.ag-body-vertical-scroll {\n min-height: 0;\n min-width: 0;\n display: flex;\n position: relative;\n}\n.ag-body-horizontal-scroll.ag-scrollbar-invisible,\n.ag-body-vertical-scroll.ag-scrollbar-invisible {\n position: absolute;\n bottom: 0;\n}\n.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar,\n.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar {\n opacity: 0;\n transition: opacity 400ms;\n visibility: hidden;\n}\n.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling, .ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active,\n.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling,\n.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active {\n visibility: visible;\n opacity: 1;\n}\n\n.ag-body-horizontal-scroll {\n width: 100%;\n}\n.ag-body-horizontal-scroll.ag-scrollbar-invisible {\n left: 0;\n right: 0;\n}\n\n.ag-body-vertical-scroll {\n height: 100%;\n}\n.ag-body-vertical-scroll.ag-scrollbar-invisible {\n top: 0;\n z-index: 10;\n}\n.ag-ltr .ag-body-vertical-scroll.ag-scrollbar-invisible {\n right: 0;\n}\n.ag-rtl .ag-body-vertical-scroll.ag-scrollbar-invisible {\n left: 0;\n}\n\n.ag-force-vertical-scroll {\n overflow-y: scroll !important;\n}\n\n.ag-horizontal-left-spacer, .ag-horizontal-right-spacer {\n height: 100%;\n min-width: 0;\n overflow-x: scroll;\n}\n.ag-horizontal-left-spacer.ag-scroller-corner, .ag-horizontal-right-spacer.ag-scroller-corner {\n overflow-x: hidden;\n}\n\n.ag-header, .ag-pinned-left-header, .ag-pinned-right-header {\n display: inline-block;\n overflow: hidden;\n position: relative;\n}\n\n.ag-header-cell-sortable .ag-header-cell-label {\n cursor: pointer;\n}\n\n.ag-header {\n display: flex;\n width: 100%;\n white-space: nowrap;\n}\n\n.ag-pinned-left-header {\n height: 100%;\n}\n\n.ag-pinned-right-header {\n height: 100%;\n}\n\n.ag-header-row {\n position: absolute;\n}\n\n.ag-header-row:not(.ag-header-row-column-group) {\n overflow: hidden;\n}\n\n.ag-header.ag-header-allow-overflow .ag-header-row {\n overflow: visible;\n}\n\n.ag-header-cell {\n display: inline-flex;\n align-items: center;\n position: absolute;\n height: 100%;\n}\n\n.ag-header-cell.ag-header-active .ag-header-cell-menu-button, .ag-header-cell-filter-button {\n opacity: 1;\n}\n\n.ag-header-cell-menu-button:not(.ag-header-menu-always-show) {\n transition: opacity 0.2s;\n opacity: 0;\n}\n\n.ag-header-group-cell-label, .ag-header-cell-label {\n display: flex;\n flex: 1 1 auto;\n align-self: stretch;\n align-items: center;\n}\n\n.ag-header-cell-label {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.ag-header-group-cell-label.ag-sticky-label {\n position: sticky;\n flex: none;\n max-width: 100%;\n}\n\n.ag-header-group-text {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.ag-header-cell-text {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.ag-header-cell:not(.ag-header-cell-auto-height) .ag-header-cell-comp-wrapper {\n height: 100%;\n display: flex;\n align-items: center;\n}\n\n.ag-header-cell-comp-wrapper {\n width: 100%;\n}\n\n.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper {\n white-space: normal;\n}\n\n.ag-right-aligned-header .ag-header-cell-label {\n flex-direction: row-reverse;\n}\n\n.ag-header-cell-resize {\n position: absolute;\n z-index: 2;\n height: 100%;\n width: 8px;\n top: 0;\n cursor: ew-resize;\n}\n.ag-ltr .ag-header-cell-resize {\n right: -4px;\n}\n.ag-rtl .ag-header-cell-resize {\n left: -4px;\n}\n\n.ag-pinned-left-header .ag-header-cell-resize {\n right: -4px;\n}\n\n.ag-pinned-right-header .ag-header-cell-resize {\n left: -4px;\n}\n\n.ag-header-select-all {\n display: flex;\n}\n\n.ag-header-cell-menu-button,\n.ag-header-cell-filter-button,\n.ag-side-button-button,\n.ag-panel-title-bar-button,\n.ag-floating-filter-button-button {\n cursor: pointer;\n}\n\n.ag-column-moving .ag-cell {\n transition: left 0.2s;\n}\n.ag-column-moving .ag-header-cell {\n transition: left 0.2s;\n}\n.ag-column-moving .ag-header-group-cell {\n transition: left 0.2s, width 0.2s;\n}\n\n.ag-column-panel {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n flex: 1 1 auto;\n}\n\n.ag-column-select {\n position: relative;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n flex: 3 1 0px;\n}\n\n.ag-column-select-header {\n position: relative;\n display: flex;\n flex: none;\n}\n\n.ag-column-select-header-icon {\n position: relative;\n}\n\n.ag-column-select-header-filter-wrapper {\n flex: 1 1 auto;\n}\n\n.ag-column-select-header-filter {\n width: 100%;\n}\n\n.ag-column-select-list {\n flex: 1 1 0px;\n overflow: hidden;\n}\n\n.ag-column-drop {\n position: relative;\n display: inline-flex;\n align-items: center;\n overflow: auto;\n width: 100%;\n}\n\n.ag-column-drop-list {\n display: flex;\n align-items: center;\n}\n\n.ag-column-drop-cell {\n position: relative;\n display: flex;\n align-items: center;\n}\n\n.ag-column-drop-cell-text {\n overflow: hidden;\n flex: 1 1 auto;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.ag-column-drop-vertical {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n align-items: stretch;\n flex: 1 1 0px;\n}\n\n.ag-column-drop-vertical-title-bar {\n display: flex;\n align-items: center;\n flex: none;\n}\n\n.ag-column-drop-vertical-list {\n position: relative;\n align-items: stretch;\n flex-grow: 1;\n flex-direction: column;\n overflow-x: auto;\n}\n.ag-column-drop-vertical-list > * {\n flex: none;\n}\n\n.ag-column-drop-empty .ag-column-drop-vertical-list {\n overflow: hidden;\n}\n\n.ag-column-drop-vertical-empty-message {\n display: block;\n}\n\n.ag-column-drop.ag-column-drop-horizontal {\n white-space: nowrap;\n overflow: hidden;\n}\n\n.ag-column-drop-cell-button {\n cursor: pointer;\n}\n\n.ag-filter-toolpanel {\n flex: 1 1 0px;\n min-width: 0;\n}\n\n.ag-filter-toolpanel-header {\n position: relative;\n}\n\n.ag-filter-toolpanel-header, .ag-filter-toolpanel-search {\n display: flex;\n align-items: center;\n}\n.ag-filter-toolpanel-header > *, .ag-filter-toolpanel-search > * {\n display: flex;\n align-items: center;\n}\n\n.ag-filter-apply-panel {\n display: flex;\n justify-content: flex-end;\n overflow: hidden;\n}\n\n.ag-row-animation .ag-row {\n transition: transform 0.4s, top 0.4s;\n}\n\n.ag-row-animation .ag-row.ag-after-created {\n transition: transform 0.4s, top 0.4s, height 0.4s;\n}\n\n.ag-row-no-animation .ag-row {\n transition: none;\n}\n\n.ag-row {\n white-space: nowrap;\n width: 100%;\n}\n\n.ag-row-loading {\n display: flex;\n align-items: center;\n}\n\n.ag-row-position-absolute {\n position: absolute;\n}\n\n.ag-row-position-relative {\n position: relative;\n}\n\n.ag-full-width-row {\n overflow: hidden;\n pointer-events: all;\n}\n\n.ag-row-inline-editing {\n z-index: 1;\n}\n\n.ag-row-dragging {\n z-index: 2;\n}\n\n.ag-stub-cell {\n display: flex;\n align-items: center;\n}\n\n.ag-cell {\n display: inline-block;\n position: absolute;\n white-space: nowrap;\n height: 100%;\n}\n\n.ag-cell-value {\n flex: 1 1 auto;\n}\n\n.ag-cell-value, .ag-group-value {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.ag-cell-wrap-text {\n white-space: normal;\n}\n\n.ag-cell-wrapper {\n display: flex;\n align-items: center;\n}\n.ag-cell-wrapper.ag-row-group {\n align-items: flex-start;\n}\n\n.ag-sparkline-wrapper {\n position: absolute;\n height: 100%;\n width: 100%;\n left: 0;\n top: 0;\n}\n\n.ag-full-width-row .ag-cell-wrapper.ag-row-group {\n height: 100%;\n align-items: center;\n}\n\n.ag-cell-inline-editing {\n z-index: 1;\n}\n.ag-cell-inline-editing .ag-cell-wrapper,\n.ag-cell-inline-editing .ag-cell-edit-wrapper,\n.ag-cell-inline-editing .ag-cell-editor,\n.ag-cell-inline-editing .ag-cell-editor .ag-wrapper,\n.ag-cell-inline-editing .ag-cell-editor input {\n height: 100%;\n width: 100%;\n line-height: normal;\n}\n\n.ag-cell .ag-icon {\n display: inline-block;\n vertical-align: middle;\n}\n\n.ag-set-filter-item {\n display: flex;\n align-items: center;\n height: 100%;\n}\n\n.ag-set-filter-item-checkbox {\n display: flex;\n width: 100%;\n height: 100%;\n}\n\n.ag-set-filter-group-icons {\n display: block;\n}\n.ag-set-filter-group-icons > * {\n cursor: pointer;\n}\n\n.ag-filter-body-wrapper {\n display: flex;\n flex-direction: column;\n}\n\n.ag-filter-filter {\n flex: 1 1 0px;\n}\n\n.ag-filter-condition {\n display: flex;\n justify-content: center;\n}\n\n.ag-floating-filter-body {\n position: relative;\n display: flex;\n flex: 1 1 auto;\n height: 100%;\n}\n\n.ag-floating-filter-full-body {\n display: flex;\n flex: 1 1 auto;\n height: 100%;\n width: 100%;\n align-items: center;\n overflow: hidden;\n}\n\n.ag-floating-filter-full-body > div {\n flex: 1 1 auto;\n}\n\n.ag-floating-filter-input {\n align-items: center;\n display: flex;\n width: 100%;\n}\n.ag-floating-filter-input > * {\n flex: 1 1 auto;\n}\n\n.ag-floating-filter-button {\n display: flex;\n flex: none;\n}\n\n.ag-set-floating-filter-input input[disabled] {\n pointer-events: none;\n}\n\n.ag-dnd-ghost {\n position: absolute;\n display: inline-flex;\n align-items: center;\n cursor: move;\n white-space: nowrap;\n z-index: 9999;\n}\n\n.ag-overlay {\n height: 100%;\n left: 0;\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 100%;\n z-index: 2;\n}\n\n.ag-overlay-panel {\n display: flex;\n height: 100%;\n width: 100%;\n}\n\n.ag-overlay-wrapper {\n display: flex;\n flex: none;\n width: 100%;\n height: 100%;\n align-items: center;\n justify-content: center;\n text-align: center;\n}\n\n.ag-overlay-loading-wrapper {\n pointer-events: all;\n}\n\n.ag-popup-child {\n z-index: 5;\n top: 0;\n}\n\n.ag-popup-editor {\n position: absolute;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.ag-large-text-input {\n display: block;\n}\n\n.ag-virtual-list-item {\n position: absolute;\n width: 100%;\n}\n\n.ag-floating-top {\n overflow: hidden;\n white-space: nowrap;\n width: 100%;\n position: relative;\n display: flex;\n}\n\n.ag-pinned-left-floating-top {\n display: inline-block;\n overflow: hidden;\n position: relative;\n min-width: 0px;\n}\n\n.ag-pinned-right-floating-top {\n display: inline-block;\n overflow: hidden;\n position: relative;\n min-width: 0px;\n}\n\n.ag-floating-bottom {\n overflow: hidden;\n white-space: nowrap;\n width: 100%;\n position: relative;\n display: flex;\n}\n\n.ag-pinned-left-floating-bottom {\n display: inline-block;\n overflow: hidden;\n position: relative;\n min-width: 0px;\n}\n\n.ag-pinned-right-floating-bottom {\n display: inline-block;\n overflow: hidden;\n position: relative;\n min-width: 0px;\n}\n\n.ag-sticky-top,\n.ag-sticky-bottom {\n position: absolute;\n display: flex;\n width: 100%;\n}\n\n.ag-pinned-left-sticky-top,\n.ag-pinned-right-sticky-top {\n position: relative;\n height: 100%;\n overflow: hidden;\n}\n\n.ag-sticky-top-full-width-container,\n.ag-sticky-bottom-full-width-container {\n overflow: hidden;\n width: 100%;\n height: 100%;\n}\n\n.ag-dialog, .ag-panel {\n display: flex;\n flex-direction: column;\n position: relative;\n overflow: hidden;\n}\n\n.ag-panel-title-bar {\n display: flex;\n flex: none;\n align-items: center;\n cursor: default;\n}\n\n.ag-panel-title-bar-title {\n flex: 1 1 auto;\n}\n\n.ag-panel-title-bar-buttons {\n display: flex;\n}\n\n.ag-panel-title-bar-button {\n cursor: pointer;\n}\n\n.ag-panel-content-wrapper {\n display: flex;\n flex: 1 1 auto;\n position: relative;\n overflow: hidden;\n}\n\n.ag-dialog {\n position: absolute;\n}\n\n.ag-resizer {\n position: absolute;\n pointer-events: none;\n z-index: 1;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.ag-resizer.ag-resizer-topLeft {\n top: 0;\n left: 0;\n height: 5px;\n width: 5px;\n cursor: nwse-resize;\n}\n.ag-resizer.ag-resizer-top {\n top: 0;\n left: 5px;\n right: 5px;\n height: 5px;\n cursor: ns-resize;\n}\n.ag-resizer.ag-resizer-topRight {\n top: 0;\n right: 0;\n height: 5px;\n width: 5px;\n cursor: nesw-resize;\n}\n.ag-resizer.ag-resizer-right {\n top: 5px;\n right: 0;\n bottom: 5px;\n width: 5px;\n cursor: ew-resize;\n}\n.ag-resizer.ag-resizer-bottomRight {\n bottom: 0;\n right: 0;\n height: 5px;\n width: 5px;\n cursor: nwse-resize;\n}\n.ag-resizer.ag-resizer-bottom {\n bottom: 0;\n left: 5px;\n right: 5px;\n height: 5px;\n cursor: ns-resize;\n}\n.ag-resizer.ag-resizer-bottomLeft {\n bottom: 0;\n left: 0;\n height: 5px;\n width: 5px;\n cursor: nesw-resize;\n}\n.ag-resizer.ag-resizer-left {\n left: 0;\n top: 5px;\n bottom: 5px;\n width: 5px;\n cursor: ew-resize;\n}\n\n.ag-tooltip {\n position: absolute;\n z-index: 99999;\n}\n\n.ag-tooltip-custom {\n position: absolute;\n z-index: 99999;\n}\n\n.ag-tooltip:not(.ag-tooltip-interactive),\n.ag-tooltip-custom:not(.ag-tooltip-interactive) {\n pointer-events: none;\n}\n\n.ag-value-slide-out {\n margin-right: 5px;\n opacity: 1;\n transition: opacity 3s, margin-right 3s;\n transition-timing-function: linear;\n}\n\n.ag-value-slide-out-end {\n margin-right: 10px;\n opacity: 0;\n}\n\n.ag-opacity-zero {\n opacity: 0 !important;\n}\n\n.ag-menu {\n max-height: 100%;\n overflow-y: auto;\n position: absolute;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.ag-menu-column-select-wrapper {\n height: 265px;\n overflow: auto;\n}\n.ag-menu-column-select-wrapper .ag-column-select {\n height: 100%;\n}\n\n.ag-dialog .ag-panel-content-wrapper .ag-column-select {\n user-select: none;\n}\n\n.ag-menu-list {\n display: table;\n width: 100%;\n}\n\n.ag-menu-option, .ag-menu-separator {\n display: table-row;\n}\n\n.ag-menu-option-part, .ag-menu-separator-part {\n display: table-cell;\n vertical-align: middle;\n}\n\n.ag-menu-option-text {\n white-space: nowrap;\n}\n\n.ag-menu-option-custom {\n display: contents;\n}\n\n.ag-compact-menu-option {\n width: 100%;\n display: flex;\n flex-wrap: nowrap;\n}\n\n.ag-compact-menu-option-text {\n white-space: nowrap;\n flex: 1 1 auto;\n}\n\n.ag-rich-select {\n cursor: default;\n outline: none;\n height: 100%;\n}\n\n.ag-rich-select-value {\n display: flex;\n align-items: center;\n height: 100%;\n}\n.ag-rich-select-value .ag-picker-field-display {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ag-rich-select-value .ag-picker-field-display.ag-display-as-placeholder {\n opacity: 0.5;\n}\n\n.ag-rich-select-list {\n position: relative;\n}\n.ag-rich-select-list .ag-loading-text {\n min-height: 2rem;\n}\n\n.ag-rich-select-row {\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n white-space: nowrap;\n overflow: hidden;\n height: 100%;\n}\n\n.ag-rich-select-field-input {\n flex: 1 1 auto;\n}\n.ag-rich-select-field-input .ag-input-field-input {\n padding: 0 !important;\n border: none !important;\n box-shadow: none !important;\n text-overflow: ellipsis;\n}\n.ag-rich-select-field-input .ag-input-field-input::placeholder {\n opacity: 0.8;\n}\n\n.ag-autocomplete {\n align-items: center;\n display: flex;\n}\n.ag-autocomplete > * {\n flex: 1 1 auto;\n}\n\n.ag-autocomplete-list-popup {\n position: absolute;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.ag-autocomplete-list {\n position: relative;\n}\n\n.ag-autocomplete-virtual-list-item {\n display: flex;\n}\n\n.ag-autocomplete-row {\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n overflow: hidden;\n}\n\n.ag-autocomplete-row-label {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.ag-paging-panel {\n align-items: center;\n display: flex;\n justify-content: flex-end;\n}\n\n.ag-paging-page-summary-panel {\n display: flex;\n align-items: center;\n}\n\n.ag-paging-button {\n position: relative;\n}\n\n.ag-disabled .ag-paging-page-summary-panel {\n pointer-events: none;\n}\n\n.ag-tool-panel-wrapper {\n display: flex;\n overflow-y: auto;\n overflow-x: hidden;\n cursor: default;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.ag-column-select-column,\n.ag-column-select-column-group,\n.ag-select-agg-func-item {\n position: relative;\n align-items: center;\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n height: 100%;\n}\n.ag-column-select-column > *,\n.ag-column-select-column-group > *,\n.ag-select-agg-func-item > * {\n flex: none;\n}\n\n.ag-select-agg-func-item,\n.ag-column-select-column-label {\n flex: 1 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.ag-column-select-checkbox {\n display: flex;\n}\n\n.ag-tool-panel-horizontal-resize {\n cursor: ew-resize;\n height: 100%;\n position: absolute;\n top: 0;\n width: 5px;\n z-index: 1;\n}\n\n.ag-ltr .ag-side-bar-left .ag-tool-panel-horizontal-resize {\n right: -3px;\n}\n.ag-rtl .ag-side-bar-left .ag-tool-panel-horizontal-resize {\n left: -3px;\n}\n\n.ag-ltr .ag-side-bar-right .ag-tool-panel-horizontal-resize {\n left: -3px;\n}\n.ag-rtl .ag-side-bar-right .ag-tool-panel-horizontal-resize {\n right: -3px;\n}\n\n.ag-details-row {\n width: 100%;\n}\n\n.ag-details-row-fixed-height {\n height: 100%;\n}\n\n.ag-details-grid {\n width: 100%;\n}\n\n.ag-details-grid-fixed-height {\n height: 100%;\n}\n\n.ag-header-group-cell {\n display: flex;\n align-items: center;\n height: 100%;\n position: absolute;\n}\n\n.ag-header-group-cell-no-group.ag-header-span-height .ag-header-cell-resize {\n display: none;\n}\n\n.ag-cell-label-container {\n display: flex;\n justify-content: space-between;\n flex-direction: row-reverse;\n align-items: center;\n height: 100%;\n width: 100%;\n padding: 5px 0px;\n}\n\n.ag-right-aligned-header .ag-cell-label-container {\n flex-direction: row;\n}\n.ag-right-aligned-header .ag-header-cell-text {\n text-align: end;\n}\n\n.ag-side-bar {\n display: flex;\n flex-direction: row-reverse;\n}\n\n.ag-side-bar-left {\n order: -1;\n flex-direction: row;\n}\n\n.ag-side-button-button {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n flex-wrap: nowrap;\n white-space: nowrap;\n outline: none;\n cursor: pointer;\n}\n\n.ag-side-button-label {\n writing-mode: vertical-lr;\n}\n\n.ag-status-bar {\n display: flex;\n justify-content: space-between;\n overflow: hidden;\n}\n\n.ag-status-panel {\n display: inline-flex;\n}\n\n.ag-status-name-value {\n white-space: nowrap;\n}\n\n.ag-status-bar-left {\n display: inline-flex;\n}\n\n.ag-status-bar-center {\n display: inline-flex;\n}\n\n.ag-status-bar-right {\n display: inline-flex;\n}\n\n.ag-icon {\n display: block;\n speak: none;\n}\n\n.ag-group {\n position: relative;\n width: 100%;\n}\n\n.ag-group-title-bar {\n display: flex;\n align-items: center;\n}\n\n.ag-group-title {\n display: inline;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.ag-group-title-bar .ag-group-title {\n cursor: default;\n}\n\n.ag-group-toolbar {\n display: flex;\n align-items: center;\n}\n\n.ag-group-container {\n display: flex;\n}\n\n.ag-disabled .ag-group-container {\n pointer-events: none;\n}\n\n.ag-group-container-horizontal {\n flex-direction: row;\n flex-wrap: wrap;\n}\n\n.ag-group-container-vertical {\n flex-direction: column;\n}\n\n.ag-column-group-icons {\n display: block;\n}\n.ag-column-group-icons > * {\n cursor: pointer;\n}\n\n.ag-group-item-alignment-stretch .ag-group-item {\n align-items: stretch;\n}\n\n.ag-group-item-alignment-start .ag-group-item {\n align-items: flex-start;\n}\n\n.ag-group-item-alignment-end .ag-group-item {\n align-items: flex-end;\n}\n\n.ag-toggle-button-icon {\n transition: right 0.3s;\n position: absolute;\n top: -1px;\n}\n\n.ag-input-field, .ag-select {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.ag-input-field-input {\n flex: 1 1 auto;\n}\n\n.ag-floating-filter-input .ag-input-field-input[type=date] {\n width: 1px;\n}\n\n.ag-range-field {\n display: flex;\n align-items: center;\n}\n\n.ag-angle-select {\n display: flex;\n align-items: center;\n}\n\n.ag-angle-select-wrapper {\n display: flex;\n}\n\n.ag-angle-select-parent-circle {\n display: block;\n position: relative;\n}\n\n.ag-angle-select-child-circle {\n position: absolute;\n}\n\n.ag-slider-wrapper {\n display: flex;\n}\n.ag-slider-wrapper .ag-input-field {\n flex: 1 1 auto;\n}\n\n.ag-picker-field-display {\n flex: 1 1 auto;\n}\n\n.ag-picker-field {\n display: flex;\n align-items: center;\n}\n\n.ag-picker-field-icon {\n display: flex;\n border: 0;\n padding: 0;\n margin: 0;\n cursor: pointer;\n}\n\n.ag-picker-field-wrapper {\n overflow: hidden;\n}\n\n.ag-label-align-right .ag-label {\n order: 1;\n}\n.ag-label-align-right > * {\n flex: none;\n}\n\n.ag-label-align-top {\n flex-direction: column;\n align-items: flex-start;\n}\n.ag-label-align-top > * {\n align-self: stretch;\n}\n\n.ag-label-ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n flex: 1;\n}\n\n.ag-color-panel {\n width: 100%;\n display: flex;\n flex-direction: column;\n text-align: center;\n}\n\n.ag-spectrum-color {\n flex: 1 1 auto;\n position: relative;\n overflow: hidden;\n cursor: default;\n}\n\n.ag-spectrum-fill {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n\n.ag-spectrum-val {\n cursor: pointer;\n}\n\n.ag-spectrum-dragger {\n position: absolute;\n pointer-events: none;\n cursor: pointer;\n}\n\n.ag-spectrum-hue {\n cursor: default;\n background: linear-gradient(to left, #ff0000 3%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);\n}\n\n.ag-spectrum-alpha {\n cursor: default;\n}\n\n.ag-spectrum-hue-background {\n width: 100%;\n height: 100%;\n}\n\n.ag-spectrum-alpha-background {\n background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgb(0, 0, 0));\n width: 100%;\n height: 100%;\n}\n\n.ag-spectrum-tool {\n cursor: pointer;\n}\n\n.ag-spectrum-slider {\n position: absolute;\n pointer-events: none;\n}\n\n.ag-recent-colors {\n display: flex;\n}\n\n.ag-recent-color {\n cursor: pointer;\n}\n\n.ag-ltr .ag-column-select-indent-1 {\n padding-left: 20px;\n}\n.ag-rtl .ag-column-select-indent-1 {\n padding-right: 20px;\n}\n\n.ag-ltr .ag-set-filter-indent-1 {\n padding-left: 20px;\n}\n.ag-rtl .ag-set-filter-indent-1 {\n padding-right: 20px;\n}\n\n.ag-ltr .ag-row-group-indent-1 {\n padding-left: 20px;\n}\n.ag-rtl .ag-row-group-indent-1 {\n padding-right: 20px;\n}\n\n.ag-ltr .ag-column-select-indent-2 {\n padding-left: 40px;\n}\n.ag-rtl .ag-column-select-indent-2 {\n padding-right: 40px;\n}\n\n.ag-ltr .ag-set-filter-indent-2 {\n padding-left: 40px;\n}\n.ag-rtl .ag-set-filter-indent-2 {\n padding-right: 40px;\n}\n\n.ag-ltr .ag-row-group-indent-2 {\n padding-left: 40px;\n}\n.ag-rtl .ag-row-group-indent-2 {\n padding-right: 40px;\n}\n\n.ag-ltr .ag-column-select-indent-3 {\n padding-left: 60px;\n}\n.ag-rtl .ag-column-select-indent-3 {\n padding-right: 60px;\n}\n\n.ag-ltr .ag-set-filter-indent-3 {\n padding-left: 60px;\n}\n.ag-rtl .ag-set-filter-indent-3 {\n padding-right: 60px;\n}\n\n.ag-ltr .ag-row-group-indent-3 {\n padding-left: 60px;\n}\n.ag-rtl .ag-row-group-indent-3 {\n padding-right: 60px;\n}\n\n.ag-ltr .ag-column-select-indent-4 {\n padding-left: 80px;\n}\n.ag-rtl .ag-column-select-indent-4 {\n padding-right: 80px;\n}\n\n.ag-ltr .ag-set-filter-indent-4 {\n padding-left: 80px;\n}\n.ag-rtl .ag-set-filter-indent-4 {\n padding-right: 80px;\n}\n\n.ag-ltr .ag-row-group-indent-4 {\n padding-left: 80px;\n}\n.ag-rtl .ag-row-group-indent-4 {\n padding-right: 80px;\n}\n\n.ag-ltr .ag-column-select-indent-5 {\n padding-left: 100px;\n}\n.ag-rtl .ag-column-select-indent-5 {\n padding-right: 100px;\n}\n\n.ag-ltr .ag-set-filter-indent-5 {\n padding-left: 100px;\n}\n.ag-rtl .ag-set-filter-indent-5 {\n padding-right: 100px;\n}\n\n.ag-ltr .ag-row-group-indent-5 {\n padding-left: 100px;\n}\n.ag-rtl .ag-row-group-indent-5 {\n padding-right: 100px;\n}\n\n.ag-ltr .ag-column-select-indent-6 {\n padding-left: 120px;\n}\n.ag-rtl .ag-column-select-indent-6 {\n padding-right: 120px;\n}\n\n.ag-ltr .ag-set-filter-indent-6 {\n padding-left: 120px;\n}\n.ag-rtl .ag-set-filter-indent-6 {\n padding-right: 120px;\n}\n\n.ag-ltr .ag-row-group-indent-6 {\n padding-left: 120px;\n}\n.ag-rtl .ag-row-group-indent-6 {\n padding-right: 120px;\n}\n\n.ag-ltr .ag-column-select-indent-7 {\n padding-left: 140px;\n}\n.ag-rtl .ag-column-select-indent-7 {\n padding-right: 140px;\n}\n\n.ag-ltr .ag-set-filter-indent-7 {\n padding-left: 140px;\n}\n.ag-rtl .ag-set-filter-indent-7 {\n padding-right: 140px;\n}\n\n.ag-ltr .ag-row-group-indent-7 {\n padding-left: 140px;\n}\n.ag-rtl .ag-row-group-indent-7 {\n padding-right: 140px;\n}\n\n.ag-ltr .ag-column-select-indent-8 {\n padding-left: 160px;\n}\n.ag-rtl .ag-column-select-indent-8 {\n padding-right: 160px;\n}\n\n.ag-ltr .ag-set-filter-indent-8 {\n padding-left: 160px;\n}\n.ag-rtl .ag-set-filter-indent-8 {\n padding-right: 160px;\n}\n\n.ag-ltr .ag-row-group-indent-8 {\n padding-left: 160px;\n}\n.ag-rtl .ag-row-group-indent-8 {\n padding-right: 160px;\n}\n\n.ag-ltr .ag-column-select-indent-9 {\n padding-left: 180px;\n}\n.ag-rtl .ag-column-select-indent-9 {\n padding-right: 180px;\n}\n\n.ag-ltr .ag-set-filter-indent-9 {\n padding-left: 180px;\n}\n.ag-rtl .ag-set-filter-indent-9 {\n padding-right: 180px;\n}\n\n.ag-ltr .ag-row-group-indent-9 {\n padding-left: 180px;\n}\n.ag-rtl .ag-row-group-indent-9 {\n padding-right: 180px;\n}\n\n.ag-pill-select {\n display: flex;\n flex-direction: column;\n}\n.ag-pill-select .ag-column-drop {\n flex: unset;\n}\n\n.ag-ltr {\n direction: ltr;\n}\n.ag-ltr .ag-body, .ag-ltr .ag-floating-top, .ag-ltr .ag-floating-bottom, .ag-ltr .ag-header, .ag-ltr .ag-sticky-top, .ag-ltr .ag-sticky-bottom, .ag-ltr .ag-body-viewport, .ag-ltr .ag-body-horizontal-scroll {\n flex-direction: row;\n}\n\n.ag-rtl {\n direction: rtl;\n}\n.ag-rtl .ag-body, .ag-rtl .ag-floating-top, .ag-rtl .ag-floating-bottom, .ag-rtl .ag-header, .ag-rtl .ag-sticky-top, .ag-rtl .ag-sticky-bottom, .ag-rtl .ag-body-viewport, .ag-rtl .ag-body-horizontal-scroll {\n flex-direction: row-reverse;\n}\n.ag-rtl .ag-icon-contracted,\n.ag-rtl .ag-icon-expanded,\n.ag-rtl .ag-icon-tree-closed {\n display: block;\n transform: rotate(180deg);\n}\n\n.ag-body .ag-body-viewport {\n -webkit-overflow-scrolling: touch;\n}\n\n.ag-layout-print.ag-body {\n display: block;\n height: unset;\n}\n.ag-layout-print.ag-root-wrapper {\n display: inline-block;\n}\n.ag-layout-print .ag-body-vertical-scroll {\n display: none;\n}\n.ag-layout-print .ag-body-horizontal-scroll {\n display: none;\n}\n.ag-layout-print.ag-force-vertical-scroll {\n overflow-y: visible !important;\n}\n\n@media print {\n .ag-root-wrapper.ag-layout-print {\n display: table;\n }\n .ag-root-wrapper.ag-layout-print .ag-root-wrapper-body,\n .ag-root-wrapper.ag-layout-print .ag-root,\n .ag-root-wrapper.ag-layout-print .ag-body-viewport,\n .ag-root-wrapper.ag-layout-print .ag-center-cols-container,\n .ag-root-wrapper.ag-layout-print .ag-center-cols-viewport,\n .ag-root-wrapper.ag-layout-print .ag-body-horizontal-scroll-viewport,\n .ag-root-wrapper.ag-layout-print .ag-virtual-list-viewport {\n height: auto !important;\n overflow: hidden !important;\n display: block !important;\n }\n .ag-root-wrapper.ag-layout-print .ag-row, .ag-root-wrapper.ag-layout-print .ag-cell {\n break-inside: avoid;\n }\n}\n[class^=ag-], [class^=ag-]:focus, [class^=ag-]:after, [class^=ag-]:before {\n box-sizing: border-box;\n outline: none;\n}\n\n[class^=ag-]::-ms-clear {\n display: none;\n}\n\n.ag-checkbox .ag-input-wrapper,\n.ag-radio-button .ag-input-wrapper {\n overflow: visible;\n}\n\n.ag-range-field .ag-input-wrapper {\n height: 100%;\n}\n\n.ag-toggle-button {\n flex: none;\n width: unset;\n min-width: unset;\n}\n\n.ag-button {\n border-radius: 0px;\n color: var(--ag-foreground-color);\n}\n\n.ag-button:hover {\n background-color: transparent;\n}\n\n.ag-ltr .ag-label-align-right .ag-label {\n margin-left: var(--ag-grid-size);\n}\n.ag-rtl .ag-label-align-right .ag-label {\n margin-right: var(--ag-grid-size);\n}\n\ninput[class^=ag-] {\n margin: 0;\n background-color: var(--ag-background-color);\n}\n\ntextarea[class^=ag-],\nselect[class^=ag-] {\n background-color: var(--ag-background-color);\n}\n\ninput[class^=ag-]:not([type]),\ninput[class^=ag-][type=text],\ninput[class^=ag-][type=number],\ninput[class^=ag-][type=tel],\ninput[class^=ag-][type=date],\ninput[class^=ag-][type=datetime-local],\ntextarea[class^=ag-] {\n font-size: inherit;\n line-height: inherit;\n color: inherit;\n font-family: inherit;\n border: var(--ag-borders-input) var(--ag-input-border-color);\n}\ninput[class^=ag-]:not([type]):disabled,\ninput[class^=ag-][type=text]:disabled,\ninput[class^=ag-][type=number]:disabled,\ninput[class^=ag-][type=tel]:disabled,\ninput[class^=ag-][type=date]:disabled,\ninput[class^=ag-][type=datetime-local]:disabled,\ntextarea[class^=ag-]:disabled {\n color: var(--ag-disabled-foreground-color);\n background-color: var(--ag-input-disabled-background-color);\n border-color: var(--ag-input-disabled-border-color);\n}\ninput[class^=ag-]:not([type]):focus,\ninput[class^=ag-][type=text]:focus,\ninput[class^=ag-][type=number]:focus,\ninput[class^=ag-][type=tel]:focus,\ninput[class^=ag-][type=date]:focus,\ninput[class^=ag-][type=datetime-local]:focus,\ntextarea[class^=ag-]:focus {\n outline: none;\n box-shadow: var(--ag-input-focus-box-shadow);\n border-color: var(--ag-input-focus-border-color);\n}\ninput[class^=ag-]:not([type]):invalid,\ninput[class^=ag-][type=text]:invalid,\ninput[class^=ag-][type=number]:invalid,\ninput[class^=ag-][type=tel]:invalid,\ninput[class^=ag-][type=date]:invalid,\ninput[class^=ag-][type=datetime-local]:invalid,\ntextarea[class^=ag-]:invalid {\n border: var(--ag-borders-input-invalid) var(--ag-input-border-color-invalid);\n}\n\ninput[class^=ag-][type=number]:not(.ag-number-field-input-stepper) {\n -moz-appearance: textfield;\n}\ninput[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-outer-spin-button, input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\ninput[class^=ag-][type=range] {\n padding: 0;\n}\n\ninput[class^=ag-][type=button]:focus, button[class^=ag-]:focus {\n box-shadow: var(--ag-input-focus-box-shadow);\n}\n\n.ag-drag-handle {\n color: var(--ag-secondary-foreground-color);\n}\n\n.ag-list-item, .ag-virtual-list-item {\n height: var(--ag-list-item-height);\n}\n\n.ag-virtual-list-item:focus-visible {\n outline: none;\n}\n.ag-virtual-list-item:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: 4px;\n left: 4px;\n display: block;\n width: calc(100% - 8px);\n height: calc(100% - 8px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-select-list {\n background-color: var(--ag-background-color);\n overflow-y: auto;\n overflow-x: hidden;\n border-radius: var(--ag-border-radius);\n border: var(--ag-borders) var(--ag-border-color);\n}\n\n.ag-list-item {\n display: flex;\n align-items: center;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ag-list-item.ag-active-item {\n background-color: var(--ag-row-hover-color);\n}\n\n.ag-select-list-item {\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: default;\n}\n.ag-ltr .ag-select-list-item {\n padding-left: calc(var(--ag-cell-horizontal-padding) / 2);\n}\n.ag-rtl .ag-select-list-item {\n padding-right: calc(var(--ag-cell-horizontal-padding) / 2);\n}\n.ag-select-list-item span {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.ag-row-drag,\n.ag-selection-checkbox,\n.ag-group-expanded,\n.ag-group-contracted {\n color: var(--ag-secondary-foreground-color);\n}\n.ag-ltr .ag-row-drag,\n.ag-ltr .ag-selection-checkbox,\n.ag-ltr .ag-group-expanded,\n.ag-ltr .ag-group-contracted {\n margin-right: var(--ag-cell-widget-spacing);\n}\n.ag-rtl .ag-row-drag,\n.ag-rtl .ag-selection-checkbox,\n.ag-rtl .ag-group-expanded,\n.ag-rtl .ag-group-contracted {\n margin-left: var(--ag-cell-widget-spacing);\n}\n\n.ag-cell-wrapper > *:not(.ag-cell-value):not(.ag-group-value) {\n --ag-internal-calculated-line-height: var(--ag-line-height, calc(var(--ag-row-height) - var(--ag-row-border-width)));\n --ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));\n height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height));\n display: flex;\n align-items: center;\n flex: none;\n}\n\n.ag-group-expanded,\n.ag-group-contracted {\n cursor: pointer;\n}\n\n.ag-group-title-bar-icon {\n cursor: pointer;\n flex: none;\n color: var(--ag-secondary-foreground-color);\n}\n\n.ag-ltr .ag-group-child-count {\n margin-left: 2px;\n}\n.ag-rtl .ag-group-child-count {\n margin-right: 2px;\n}\n\n.ag-group-title-bar {\n background-color: var(--ag-subheader-background-color);\n padding: var(--ag-grid-size);\n}\n\n.ag-group-toolbar {\n padding: var(--ag-grid-size);\n background-color: var(--ag-subheader-toolbar-background-color);\n}\n\n.ag-disabled-group-title-bar, .ag-disabled-group-container {\n opacity: 0.5;\n}\n\n.group-item {\n margin: calc(var(--ag-grid-size) * 0.5) 0;\n}\n\n.ag-label {\n white-space: nowrap;\n}\n.ag-ltr .ag-label {\n margin-right: var(--ag-grid-size);\n}\n.ag-rtl .ag-label {\n margin-left: var(--ag-grid-size);\n}\n\n.ag-label-align-top .ag-label {\n margin-bottom: calc(var(--ag-grid-size) * 0.5);\n}\n\n.ag-angle-select[disabled] {\n color: var(--ag-disabled-foreground-color);\n pointer-events: none;\n}\n.ag-angle-select[disabled] .ag-angle-select-field {\n opacity: 0.4;\n}\n\n.ag-ltr .ag-slider-field,\n.ag-ltr .ag-angle-select-field {\n margin-right: calc(var(--ag-grid-size) * 2);\n}\n.ag-rtl .ag-slider-field,\n.ag-rtl .ag-angle-select-field {\n margin-left: calc(var(--ag-grid-size) * 2);\n}\n\n.ag-angle-select-parent-circle {\n width: 24px;\n height: 24px;\n border-radius: 12px;\n border: solid 1px;\n border-color: var(--ag-border-color);\n background-color: var(--ag-background-color);\n}\n\n.ag-angle-select-child-circle {\n top: 4px;\n left: 12px;\n width: 6px;\n height: 6px;\n margin-left: -3px;\n margin-top: -4px;\n border-radius: 3px;\n background-color: var(--ag-secondary-foreground-color);\n}\n\n.ag-picker-field-wrapper {\n border: var(--ag-borders);\n border-color: var(--ag-border-color);\n border-radius: 5px;\n background-color: var(--ag-background-color);\n}\n.ag-picker-field-wrapper:disabled {\n color: var(--ag-disabled-foreground-color);\n background-color: var(--ag-input-disabled-background-color);\n border-color: var(--ag-input-disabled-border-color);\n}\n.ag-picker-field-wrapper.ag-picker-has-focus, .ag-picker-field-wrapper:focus-within {\n outline: none;\n box-shadow: var(--ag-input-focus-box-shadow);\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-picker-field-button {\n background-color: var(--ag-background-color);\n color: var(--ag-secondary-foreground-color);\n}\n\n.ag-dialog.ag-color-dialog {\n border-radius: 5px;\n}\n\n.ag-color-picker .ag-picker-field-display {\n height: var(--ag-icon-size);\n}\n\n.ag-color-picker .ag-picker-field-wrapper {\n max-width: 45px;\n min-width: 45px;\n}\n\n.ag-color-panel {\n padding: var(--ag-grid-size);\n}\n\n.ag-spectrum-color {\n background-color: rgb(255, 0, 0);\n border-radius: 2px;\n}\n\n.ag-spectrum-tools {\n padding: 10px;\n}\n\n.ag-spectrum-sat {\n background-image: linear-gradient(to right, white, rgba(204, 154, 129, 0));\n}\n\n.ag-spectrum-val {\n background-image: linear-gradient(to top, black, rgba(204, 154, 129, 0));\n}\n\n.ag-spectrum-dragger {\n border-radius: 12px;\n height: 12px;\n width: 12px;\n border: 1px solid white;\n background: black;\n box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.24);\n}\n\n.ag-spectrum-hue-background {\n border-radius: 2px;\n}\n\n.ag-spectrum-alpha-background {\n border-radius: 2px;\n}\n\n.ag-spectrum-tool {\n margin-bottom: 10px;\n height: 11px;\n border-radius: 2px;\n}\n\n.ag-spectrum-slider {\n margin-top: -12px;\n width: 13px;\n height: 13px;\n border-radius: 13px;\n background-color: rgb(248, 248, 248);\n box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\n}\n\n.ag-recent-color {\n margin: 0 3px;\n}\n.ag-recent-color:first-child {\n margin-left: 0;\n}\n.ag-recent-color:last-child {\n margin-right: 0;\n}\n\n.ag-spectrum-color:focus-visible:not(:disabled):not([readonly]),\n.ag-spectrum-slider:focus-visible:not(:disabled):not([readonly]),\n.ag-recent-color:focus-visible:not(:disabled):not([readonly]) {\n box-shadow: var(--ag-input-focus-box-shadow);\n}\n\n.ag-dnd-ghost {\n border: var(--ag-borders) var(--ag-border-color);\n background: var(--ag-background-color);\n border-radius: var(--ag-card-radius);\n box-shadow: var(--ag-card-shadow);\n padding: var(--ag-grid-size);\n overflow: hidden;\n text-overflow: ellipsis;\n border: var(--ag-borders-secondary) var(--ag-secondary-border-color);\n color: var(--ag-secondary-foreground-color);\n height: var(--ag-header-height) !important;\n line-height: var(--ag-header-height);\n margin: 0;\n padding: 0 calc(var(--ag-grid-size) * 2);\n transform: translateY(calc(var(--ag-grid-size) * 2));\n}\n\n.ag-dnd-ghost-icon {\n margin-right: var(--ag-grid-size);\n color: var(--ag-foreground-color);\n}\n\n.ag-popup-child:not(.ag-tooltip-custom) {\n box-shadow: var(--ag-popup-shadow);\n}\n\n.ag-select .ag-picker-field-wrapper {\n min-height: var(--ag-list-item-height);\n cursor: default;\n}\n.ag-ltr .ag-select .ag-picker-field-wrapper {\n padding-left: calc(var(--ag-cell-horizontal-padding) / 2);\n}\n.ag-rtl .ag-select .ag-picker-field-wrapper {\n padding-right: calc(var(--ag-cell-horizontal-padding) / 2);\n}\n.ag-ltr .ag-select .ag-picker-field-wrapper {\n padding-right: var(--ag-grid-size);\n}\n.ag-rtl .ag-select .ag-picker-field-wrapper {\n padding-left: var(--ag-grid-size);\n}\n.ag-select.ag-disabled .ag-picker-field-wrapper:focus {\n box-shadow: none;\n}\n.ag-select:not(.ag-cell-editor, .ag-label-align-top) {\n min-height: var(--ag-list-item-height);\n}\n.ag-select .ag-picker-field-display {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ag-select .ag-picker-field-icon {\n display: flex;\n align-items: center;\n}\n.ag-select.ag-disabled {\n opacity: 0.5;\n}\n\n.ag-rich-select-value,\n.ag-rich-select-list {\n background-color: var(--ag-background-color);\n}\n\n.ag-rich-select-list {\n width: 100%;\n height: auto;\n border-radius: var(--ag-border-radius);\n border: var(--ag-borders) var(--ag-border-color);\n}\n.ag-rich-select-list .ag-loading-text {\n padding: var(--ag-widget-vertical-spacing) var(--ag-widget-horizontal-spacing);\n}\n\n.ag-rich-select-value {\n border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);\n padding-top: 0;\n padding-bottom: 0;\n}\n.ag-ltr .ag-rich-select-value {\n padding-left: calc(var(--ag-cell-horizontal-padding) / 2);\n}\n.ag-rtl .ag-rich-select-value {\n padding-right: calc(var(--ag-cell-horizontal-padding) / 2);\n}\n.ag-ltr .ag-rich-select-value {\n padding-right: var(--ag-grid-size);\n}\n.ag-rtl .ag-rich-select-value {\n padding-left: var(--ag-grid-size);\n}\n\n.ag-ltr .ag-rich-select-field-input {\n left: calc(var(--ag-cell-horizontal-padding));\n}\n.ag-rtl .ag-rich-select-field-input {\n right: calc(var(--ag-cell-horizontal-padding));\n}\n\n.ag-popup-editor .ag-rich-select-value {\n height: var(--ag-row-height);\n min-width: 200px;\n}\n\n.ag-rich-select-virtual-list-item {\n cursor: default;\n height: var(--ag-list-item-height);\n}\n.ag-rich-select-virtual-list-item:focus-visible::after {\n content: none;\n}\n.ag-rich-select-virtual-list-item:hover {\n background-color: var(--ag-row-hover-color);\n}\n\n.ag-ltr .ag-rich-select-row {\n padding-left: calc(var(--ag-cell-horizontal-padding) / 2);\n}\n.ag-rtl .ag-rich-select-row {\n padding-right: calc(var(--ag-cell-horizontal-padding) / 2);\n}\n\n.ag-rich-select-row-selected {\n background-color: var(--ag-selected-row-background-color);\n}\n\n.ag-rich-select-row-text-highlight {\n font-weight: bold;\n}\n\n.ag-autocomplete {\n width: 100%;\n}\n\n.ag-autocomplete-list {\n width: 100%;\n min-width: 200px;\n height: calc(var(--ag-row-height) * 6.5);\n}\n\n.ag-autocomplete-virtual-list-item {\n cursor: default;\n height: var(--ag-list-item-height);\n}\n.ag-autocomplete-virtual-list-item:focus-visible::after {\n content: none;\n}\n.ag-autocomplete-virtual-list-item:hover {\n background-color: var(--ag-row-hover-color);\n}\n\n.ag-autocomplete-row-label {\n margin: 0px var(--ag-widget-container-horizontal-padding);\n}\n\n.ag-autocomplete-row-selected {\n background-color: var(--ag-selected-row-background-color);\n}\n\n.ag-dragging-range-handle .ag-dialog,\n.ag-dragging-fill-handle .ag-dialog {\n opacity: 0.7;\n pointer-events: none;\n}\n\n.ag-dialog {\n border-radius: var(--ag-border-radius);\n border: var(--ag-borders) var(--ag-border-color);\n box-shadow: var(--ag-popup-shadow);\n}\n\n.ag-panel {\n background-color: var(--ag-panel-background-color);\n border-color: var(--ag-panel-border-color);\n}\n\n.ag-panel-title-bar {\n color: var(--ag-header-foreground-color);\n height: var(--ag-header-height);\n padding: var(--ag-grid-size) var(--ag-cell-horizontal-padding);\n border-bottom: var(--ag-borders) var(--ag-border-color);\n}\n\n.ag-ltr .ag-panel-title-bar-button {\n margin-left: var(--ag-grid-size);\n}\n.ag-rtl .ag-panel-title-bar-button {\n margin-right: var(--ag-grid-size);\n}\n\n.ag-tooltip {\n background-color: var(--ag-tooltip-background-color);\n color: var(--ag-foreground-color);\n padding: var(--ag-grid-size);\n border: var(--ag-borders) var(--ag-border-color);\n border-radius: var(--ag-card-radius);\n white-space: normal;\n}\n\n.ag-tooltip.ag-tooltip-animate,\n.ag-tooltip-custom.ag-tooltip-animate {\n transition: opacity 1s;\n}\n.ag-tooltip.ag-tooltip-animate.ag-tooltip-hiding,\n.ag-tooltip-custom.ag-tooltip-animate.ag-tooltip-hiding {\n opacity: 0;\n}\n\n.ag-ltr .ag-column-select-indent-1 {\n padding-left: calc(1 * var(--ag-column-select-indent-size));\n}\n.ag-rtl .ag-column-select-indent-1 {\n padding-right: calc(1 * var(--ag-column-select-indent-size));\n}\n\n.ag-ltr .ag-column-select-indent-2 {\n padding-left: calc(2 * var(--ag-column-select-indent-size));\n}\n.ag-rtl .ag-column-select-indent-2 {\n padding-right: calc(2 * var(--ag-column-select-indent-size));\n}\n\n.ag-ltr .ag-column-select-indent-3 {\n padding-left: calc(3 * var(--ag-column-select-indent-size));\n}\n.ag-rtl .ag-column-select-indent-3 {\n padding-right: calc(3 * var(--ag-column-select-indent-size));\n}\n\n.ag-ltr .ag-column-select-indent-4 {\n padding-left: calc(4 * var(--ag-column-select-indent-size));\n}\n.ag-rtl .ag-column-select-indent-4 {\n padding-right: calc(4 * var(--ag-column-select-indent-size));\n}\n\n.ag-ltr .ag-column-select-indent-5 {\n padding-left: calc(5 * var(--ag-column-select-indent-size));\n}\n.ag-rtl .ag-column-select-indent-5 {\n padding-right: calc(5 * var(--ag-column-select-indent-size));\n}\n\n.ag-ltr .ag-column-select-indent-6 {\n padding-left: calc(6 * var(--ag-column-select-indent-size));\n}\n.ag-rtl .ag-column-select-indent-6 {\n padding-right: calc(6 * var(--ag-column-select-indent-size));\n}\n\n.ag-ltr .ag-column-select-indent-7 {\n padding-left: calc(7 * var(--ag-column-select-indent-size));\n}\n.ag-rtl .ag-column-select-indent-7 {\n padding-right: calc(7 * var(--ag-column-select-indent-size));\n}\n\n.ag-ltr .ag-column-select-indent-8 {\n padding-left: calc(8 * var(--ag-column-select-indent-size));\n}\n.ag-rtl .ag-column-select-indent-8 {\n padding-right: calc(8 * var(--ag-column-select-indent-size));\n}\n\n.ag-ltr .ag-column-select-indent-9 {\n padding-left: calc(9 * var(--ag-column-select-indent-size));\n}\n.ag-rtl .ag-column-select-indent-9 {\n padding-right: calc(9 * var(--ag-column-select-indent-size));\n}\n\n.ag-column-select-header-icon {\n cursor: pointer;\n}\n\n.ag-column-select-header-icon:focus-visible {\n outline: none;\n}\n.ag-column-select-header-icon:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: 0px;\n left: 0px;\n display: block;\n width: calc(100% - 0px);\n height: calc(100% - 0px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-ltr .ag-column-group-icons:not(:last-child),\n.ag-ltr .ag-column-select-header-icon:not(:last-child),\n.ag-ltr .ag-column-select-header-checkbox:not(:last-child),\n.ag-ltr .ag-column-select-header-filter-wrapper:not(:last-child),\n.ag-ltr .ag-column-select-checkbox:not(:last-child),\n.ag-ltr .ag-column-select-column-drag-handle:not(:last-child),\n.ag-ltr .ag-column-select-column-group-drag-handle:not(:last-child),\n.ag-ltr .ag-column-select-column-label:not(:last-child) {\n margin-right: var(--ag-widget-horizontal-spacing);\n}\n.ag-rtl .ag-column-group-icons:not(:last-child),\n.ag-rtl .ag-column-select-header-icon:not(:last-child),\n.ag-rtl .ag-column-select-header-checkbox:not(:last-child),\n.ag-rtl .ag-column-select-header-filter-wrapper:not(:last-child),\n.ag-rtl .ag-column-select-checkbox:not(:last-child),\n.ag-rtl .ag-column-select-column-drag-handle:not(:last-child),\n.ag-rtl .ag-column-select-column-group-drag-handle:not(:last-child),\n.ag-rtl .ag-column-select-column-label:not(:last-child) {\n margin-left: var(--ag-widget-horizontal-spacing);\n}\n\n.ag-column-select-virtual-list-item:focus-visible {\n outline: none;\n}\n.ag-column-select-virtual-list-item:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: 1px;\n left: 1px;\n display: block;\n width: calc(100% - 2px);\n height: calc(100% - 2px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-column-select-column-group:not(:last-child),\n.ag-column-select-column:not(:last-child) {\n margin-bottom: var(--ag-widget-vertical-spacing);\n}\n\n.ag-column-select-column-readonly,\n.ag-column-select-column-group-readonly {\n color: var(--ag-disabled-foreground-color);\n pointer-events: none;\n}\n\n.ag-ltr .ag-column-select-add-group-indent {\n margin-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);\n}\n.ag-rtl .ag-column-select-add-group-indent {\n margin-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);\n}\n\n.ag-column-select-virtual-list-viewport {\n padding: calc(var(--ag-widget-container-vertical-padding) * 0.5) 0px;\n}\n\n.ag-column-select-virtual-list-item {\n padding: 0 var(--ag-widget-container-horizontal-padding);\n}\n\n.ag-checkbox-edit {\n padding-left: var(--ag-cell-horizontal-padding);\n padding-right: var(--ag-cell-horizontal-padding);\n}\n\n.ag-pill-select .ag-column-drop {\n border-bottom: 0;\n min-height: unset;\n}\n.ag-pill-select .ag-column-drop-list {\n padding: 0;\n}\n.ag-pill-select .ag-select {\n padding-top: var(--ag-grid-size);\n}\n.ag-pill-select .ag-picker-field-wrapper {\n background-color: transparent;\n border: 0;\n}\n.ag-pill-select .ag-picker-field-display {\n cursor: pointer;\n}\n\n.ag-rtl {\n text-align: right;\n}\n\n.ag-root-wrapper {\n border-radius: var(--ag-wrapper-border-radius);\n border: var(--ag-borders) var(--ag-border-color);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-1 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 1);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-1 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 1);\n}\n\n.ag-ltr .ag-row-group-indent-1 {\n padding-left: calc(1 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-1 {\n padding-right: calc(1 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-1 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-1 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-2 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 2);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-2 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 2);\n}\n\n.ag-ltr .ag-row-group-indent-2 {\n padding-left: calc(2 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-2 {\n padding-right: calc(2 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-2 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-2 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-3 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 3);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-3 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 3);\n}\n\n.ag-ltr .ag-row-group-indent-3 {\n padding-left: calc(3 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-3 {\n padding-right: calc(3 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-3 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-3 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-4 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 4);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-4 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 4);\n}\n\n.ag-ltr .ag-row-group-indent-4 {\n padding-left: calc(4 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-4 {\n padding-right: calc(4 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-4 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-4 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-5 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 5);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-5 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 5);\n}\n\n.ag-ltr .ag-row-group-indent-5 {\n padding-left: calc(5 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-5 {\n padding-right: calc(5 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-5 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-5 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-6 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 6);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-6 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 6);\n}\n\n.ag-ltr .ag-row-group-indent-6 {\n padding-left: calc(6 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-6 {\n padding-right: calc(6 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-6 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-6 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-7 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 7);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-7 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 7);\n}\n\n.ag-ltr .ag-row-group-indent-7 {\n padding-left: calc(7 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-7 {\n padding-right: calc(7 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-7 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-7 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-8 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 8);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-8 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 8);\n}\n\n.ag-ltr .ag-row-group-indent-8 {\n padding-left: calc(8 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-8 {\n padding-right: calc(8 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-8 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-8 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-9 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 9);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-9 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 9);\n}\n\n.ag-ltr .ag-row-group-indent-9 {\n padding-left: calc(9 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-9 {\n padding-right: calc(9 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-9 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-9 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-10 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 10);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-10 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 10);\n}\n\n.ag-ltr .ag-row-group-indent-10 {\n padding-left: calc(10 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-10 {\n padding-right: calc(10 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-10 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-10 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-11 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 11);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-11 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 11);\n}\n\n.ag-ltr .ag-row-group-indent-11 {\n padding-left: calc(11 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-11 {\n padding-right: calc(11 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-11 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-11 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-12 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 12);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-12 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 12);\n}\n\n.ag-ltr .ag-row-group-indent-12 {\n padding-left: calc(12 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-12 {\n padding-right: calc(12 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-12 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-12 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-13 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 13);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-13 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 13);\n}\n\n.ag-ltr .ag-row-group-indent-13 {\n padding-left: calc(13 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-13 {\n padding-right: calc(13 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-13 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-13 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-14 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 14);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-14 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 14);\n}\n\n.ag-ltr .ag-row-group-indent-14 {\n padding-left: calc(14 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-14 {\n padding-right: calc(14 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-14 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-14 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-15 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 15);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-15 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 15);\n}\n\n.ag-ltr .ag-row-group-indent-15 {\n padding-left: calc(15 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-15 {\n padding-right: calc(15 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-15 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-15 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-16 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 16);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-16 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 16);\n}\n\n.ag-ltr .ag-row-group-indent-16 {\n padding-left: calc(16 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-16 {\n padding-right: calc(16 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-16 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-16 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-17 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 17);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-17 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 17);\n}\n\n.ag-ltr .ag-row-group-indent-17 {\n padding-left: calc(17 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-17 {\n padding-right: calc(17 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-17 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-17 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-18 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 18);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-18 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 18);\n}\n\n.ag-ltr .ag-row-group-indent-18 {\n padding-left: calc(18 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-18 {\n padding-right: calc(18 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-18 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-18 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-19 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 19);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-19 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 19);\n}\n\n.ag-ltr .ag-row-group-indent-19 {\n padding-left: calc(19 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-19 {\n padding-right: calc(19 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-19 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-19 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-20 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 20);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-20 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 20);\n}\n\n.ag-ltr .ag-row-group-indent-20 {\n padding-left: calc(20 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-20 {\n padding-right: calc(20 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-20 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-20 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-21 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 21);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-21 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 21);\n}\n\n.ag-ltr .ag-row-group-indent-21 {\n padding-left: calc(21 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-21 {\n padding-right: calc(21 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-21 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-21 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-22 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 22);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-22 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 22);\n}\n\n.ag-ltr .ag-row-group-indent-22 {\n padding-left: calc(22 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-22 {\n padding-right: calc(22 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-22 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-22 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-23 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 23);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-23 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 23);\n}\n\n.ag-ltr .ag-row-group-indent-23 {\n padding-left: calc(23 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-23 {\n padding-right: calc(23 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-23 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-23 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-24 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 24);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-24 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 24);\n}\n\n.ag-ltr .ag-row-group-indent-24 {\n padding-left: calc(24 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-24 {\n padding-right: calc(24 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-24 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-24 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-25 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 25);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-25 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 25);\n}\n\n.ag-ltr .ag-row-group-indent-25 {\n padding-left: calc(25 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-25 {\n padding-right: calc(25 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-25 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-25 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-26 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 26);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-26 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 26);\n}\n\n.ag-ltr .ag-row-group-indent-26 {\n padding-left: calc(26 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-26 {\n padding-right: calc(26 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-26 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-26 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-27 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 27);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-27 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 27);\n}\n\n.ag-ltr .ag-row-group-indent-27 {\n padding-left: calc(27 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-27 {\n padding-right: calc(27 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-27 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-27 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-28 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 28);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-28 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 28);\n}\n\n.ag-ltr .ag-row-group-indent-28 {\n padding-left: calc(28 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-28 {\n padding-right: calc(28 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-28 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-28 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-29 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 29);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-29 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 29);\n}\n\n.ag-ltr .ag-row-group-indent-29 {\n padding-left: calc(29 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-29 {\n padding-right: calc(29 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-29 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-29 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-30 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 30);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-30 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 30);\n}\n\n.ag-ltr .ag-row-group-indent-30 {\n padding-left: calc(30 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-30 {\n padding-right: calc(30 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-30 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-30 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-31 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 31);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-31 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 31);\n}\n\n.ag-ltr .ag-row-group-indent-31 {\n padding-left: calc(31 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-31 {\n padding-right: calc(31 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-31 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-31 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-32 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 32);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-32 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 32);\n}\n\n.ag-ltr .ag-row-group-indent-32 {\n padding-left: calc(32 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-32 {\n padding-right: calc(32 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-32 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-32 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-33 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 33);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-33 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 33);\n}\n\n.ag-ltr .ag-row-group-indent-33 {\n padding-left: calc(33 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-33 {\n padding-right: calc(33 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-33 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-33 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-34 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 34);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-34 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 34);\n}\n\n.ag-ltr .ag-row-group-indent-34 {\n padding-left: calc(34 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-34 {\n padding-right: calc(34 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-34 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-34 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-35 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 35);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-35 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 35);\n}\n\n.ag-ltr .ag-row-group-indent-35 {\n padding-left: calc(35 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-35 {\n padding-right: calc(35 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-35 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-35 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-36 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 36);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-36 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 36);\n}\n\n.ag-ltr .ag-row-group-indent-36 {\n padding-left: calc(36 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-36 {\n padding-right: calc(36 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-36 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-36 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-37 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 37);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-37 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 37);\n}\n\n.ag-ltr .ag-row-group-indent-37 {\n padding-left: calc(37 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-37 {\n padding-right: calc(37 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-37 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-37 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-38 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 38);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-38 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 38);\n}\n\n.ag-ltr .ag-row-group-indent-38 {\n padding-left: calc(38 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-38 {\n padding-right: calc(38 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-38 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-38 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-39 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 39);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-39 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 39);\n}\n\n.ag-ltr .ag-row-group-indent-39 {\n padding-left: calc(39 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-39 {\n padding-right: calc(39 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-39 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-39 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-40 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 40);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-40 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 40);\n}\n\n.ag-ltr .ag-row-group-indent-40 {\n padding-left: calc(40 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-40 {\n padding-right: calc(40 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-40 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-40 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-41 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 41);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-41 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 41);\n}\n\n.ag-ltr .ag-row-group-indent-41 {\n padding-left: calc(41 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-41 {\n padding-right: calc(41 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-41 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-41 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-42 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 42);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-42 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 42);\n}\n\n.ag-ltr .ag-row-group-indent-42 {\n padding-left: calc(42 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-42 {\n padding-right: calc(42 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-42 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-42 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-43 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 43);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-43 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 43);\n}\n\n.ag-ltr .ag-row-group-indent-43 {\n padding-left: calc(43 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-43 {\n padding-right: calc(43 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-43 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-43 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-44 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 44);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-44 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 44);\n}\n\n.ag-ltr .ag-row-group-indent-44 {\n padding-left: calc(44 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-44 {\n padding-right: calc(44 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-44 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-44 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-45 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 45);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-45 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 45);\n}\n\n.ag-ltr .ag-row-group-indent-45 {\n padding-left: calc(45 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-45 {\n padding-right: calc(45 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-45 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-45 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-46 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 46);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-46 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 46);\n}\n\n.ag-ltr .ag-row-group-indent-46 {\n padding-left: calc(46 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-46 {\n padding-right: calc(46 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-46 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-46 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-47 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 47);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-47 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 47);\n}\n\n.ag-ltr .ag-row-group-indent-47 {\n padding-left: calc(47 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-47 {\n padding-right: calc(47 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-47 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-47 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-48 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 48);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-48 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 48);\n}\n\n.ag-ltr .ag-row-group-indent-48 {\n padding-left: calc(48 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-48 {\n padding-right: calc(48 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-48 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-48 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-49 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 49);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-49 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 49);\n}\n\n.ag-ltr .ag-row-group-indent-49 {\n padding-left: calc(49 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-49 {\n padding-right: calc(49 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-49 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-49 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-50 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 50);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-50 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 50);\n}\n\n.ag-ltr .ag-row-group-indent-50 {\n padding-left: calc(50 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-50 {\n padding-right: calc(50 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-50 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-50 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-51 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 51);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-51 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 51);\n}\n\n.ag-ltr .ag-row-group-indent-51 {\n padding-left: calc(51 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-51 {\n padding-right: calc(51 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-51 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-51 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-52 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 52);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-52 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 52);\n}\n\n.ag-ltr .ag-row-group-indent-52 {\n padding-left: calc(52 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-52 {\n padding-right: calc(52 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-52 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-52 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-53 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 53);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-53 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 53);\n}\n\n.ag-ltr .ag-row-group-indent-53 {\n padding-left: calc(53 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-53 {\n padding-right: calc(53 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-53 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-53 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-54 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 54);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-54 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 54);\n}\n\n.ag-ltr .ag-row-group-indent-54 {\n padding-left: calc(54 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-54 {\n padding-right: calc(54 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-54 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-54 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-55 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 55);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-55 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 55);\n}\n\n.ag-ltr .ag-row-group-indent-55 {\n padding-left: calc(55 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-55 {\n padding-right: calc(55 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-55 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-55 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-56 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 56);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-56 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 56);\n}\n\n.ag-ltr .ag-row-group-indent-56 {\n padding-left: calc(56 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-56 {\n padding-right: calc(56 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-56 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-56 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-57 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 57);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-57 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 57);\n}\n\n.ag-ltr .ag-row-group-indent-57 {\n padding-left: calc(57 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-57 {\n padding-right: calc(57 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-57 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-57 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-58 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 58);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-58 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 58);\n}\n\n.ag-ltr .ag-row-group-indent-58 {\n padding-left: calc(58 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-58 {\n padding-right: calc(58 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-58 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-58 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-59 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 59);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-59 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 59);\n}\n\n.ag-ltr .ag-row-group-indent-59 {\n padding-left: calc(59 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-59 {\n padding-right: calc(59 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-59 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-59 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-60 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 60);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-60 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 60);\n}\n\n.ag-ltr .ag-row-group-indent-60 {\n padding-left: calc(60 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-60 {\n padding-right: calc(60 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-60 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-60 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-61 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 61);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-61 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 61);\n}\n\n.ag-ltr .ag-row-group-indent-61 {\n padding-left: calc(61 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-61 {\n padding-right: calc(61 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-61 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-61 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-62 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 62);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-62 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 62);\n}\n\n.ag-ltr .ag-row-group-indent-62 {\n padding-left: calc(62 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-62 {\n padding-right: calc(62 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-62 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-62 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-63 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 63);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-63 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 63);\n}\n\n.ag-ltr .ag-row-group-indent-63 {\n padding-left: calc(63 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-63 {\n padding-right: calc(63 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-63 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-63 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-64 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 64);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-64 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 64);\n}\n\n.ag-ltr .ag-row-group-indent-64 {\n padding-left: calc(64 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-64 {\n padding-right: calc(64 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-64 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-64 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-65 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 65);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-65 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 65);\n}\n\n.ag-ltr .ag-row-group-indent-65 {\n padding-left: calc(65 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-65 {\n padding-right: calc(65 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-65 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-65 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-66 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 66);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-66 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 66);\n}\n\n.ag-ltr .ag-row-group-indent-66 {\n padding-left: calc(66 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-66 {\n padding-right: calc(66 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-66 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-66 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-67 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 67);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-67 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 67);\n}\n\n.ag-ltr .ag-row-group-indent-67 {\n padding-left: calc(67 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-67 {\n padding-right: calc(67 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-67 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-67 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-68 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 68);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-68 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 68);\n}\n\n.ag-ltr .ag-row-group-indent-68 {\n padding-left: calc(68 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-68 {\n padding-right: calc(68 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-68 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-68 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-69 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 69);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-69 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 69);\n}\n\n.ag-ltr .ag-row-group-indent-69 {\n padding-left: calc(69 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-69 {\n padding-right: calc(69 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-69 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-69 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-70 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 70);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-70 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 70);\n}\n\n.ag-ltr .ag-row-group-indent-70 {\n padding-left: calc(70 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-70 {\n padding-right: calc(70 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-70 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-70 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-71 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 71);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-71 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 71);\n}\n\n.ag-ltr .ag-row-group-indent-71 {\n padding-left: calc(71 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-71 {\n padding-right: calc(71 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-71 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-71 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-72 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 72);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-72 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 72);\n}\n\n.ag-ltr .ag-row-group-indent-72 {\n padding-left: calc(72 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-72 {\n padding-right: calc(72 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-72 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-72 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-73 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 73);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-73 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 73);\n}\n\n.ag-ltr .ag-row-group-indent-73 {\n padding-left: calc(73 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-73 {\n padding-right: calc(73 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-73 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-73 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-74 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 74);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-74 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 74);\n}\n\n.ag-ltr .ag-row-group-indent-74 {\n padding-left: calc(74 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-74 {\n padding-right: calc(74 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-74 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-74 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-75 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 75);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-75 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 75);\n}\n\n.ag-ltr .ag-row-group-indent-75 {\n padding-left: calc(75 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-75 {\n padding-right: calc(75 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-75 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-75 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-76 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 76);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-76 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 76);\n}\n\n.ag-ltr .ag-row-group-indent-76 {\n padding-left: calc(76 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-76 {\n padding-right: calc(76 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-76 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-76 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-77 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 77);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-77 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 77);\n}\n\n.ag-ltr .ag-row-group-indent-77 {\n padding-left: calc(77 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-77 {\n padding-right: calc(77 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-77 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-77 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-78 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 78);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-78 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 78);\n}\n\n.ag-ltr .ag-row-group-indent-78 {\n padding-left: calc(78 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-78 {\n padding-right: calc(78 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-78 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-78 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-79 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 79);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-79 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 79);\n}\n\n.ag-ltr .ag-row-group-indent-79 {\n padding-left: calc(79 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-79 {\n padding-right: calc(79 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-79 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-79 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-80 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 80);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-80 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 80);\n}\n\n.ag-ltr .ag-row-group-indent-80 {\n padding-left: calc(80 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-80 {\n padding-right: calc(80 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-80 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-80 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-81 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 81);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-81 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 81);\n}\n\n.ag-ltr .ag-row-group-indent-81 {\n padding-left: calc(81 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-81 {\n padding-right: calc(81 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-81 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-81 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-82 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 82);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-82 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 82);\n}\n\n.ag-ltr .ag-row-group-indent-82 {\n padding-left: calc(82 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-82 {\n padding-right: calc(82 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-82 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-82 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-83 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 83);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-83 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 83);\n}\n\n.ag-ltr .ag-row-group-indent-83 {\n padding-left: calc(83 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-83 {\n padding-right: calc(83 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-83 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-83 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-84 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 84);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-84 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 84);\n}\n\n.ag-ltr .ag-row-group-indent-84 {\n padding-left: calc(84 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-84 {\n padding-right: calc(84 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-84 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-84 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-85 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 85);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-85 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 85);\n}\n\n.ag-ltr .ag-row-group-indent-85 {\n padding-left: calc(85 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-85 {\n padding-right: calc(85 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-85 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-85 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-86 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 86);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-86 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 86);\n}\n\n.ag-ltr .ag-row-group-indent-86 {\n padding-left: calc(86 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-86 {\n padding-right: calc(86 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-86 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-86 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-87 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 87);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-87 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 87);\n}\n\n.ag-ltr .ag-row-group-indent-87 {\n padding-left: calc(87 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-87 {\n padding-right: calc(87 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-87 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-87 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-88 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 88);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-88 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 88);\n}\n\n.ag-ltr .ag-row-group-indent-88 {\n padding-left: calc(88 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-88 {\n padding-right: calc(88 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-88 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-88 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-89 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 89);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-89 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 89);\n}\n\n.ag-ltr .ag-row-group-indent-89 {\n padding-left: calc(89 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-89 {\n padding-right: calc(89 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-89 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-89 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-90 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 90);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-90 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 90);\n}\n\n.ag-ltr .ag-row-group-indent-90 {\n padding-left: calc(90 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-90 {\n padding-right: calc(90 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-90 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-90 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-91 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 91);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-91 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 91);\n}\n\n.ag-ltr .ag-row-group-indent-91 {\n padding-left: calc(91 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-91 {\n padding-right: calc(91 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-91 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-91 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-92 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 92);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-92 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 92);\n}\n\n.ag-ltr .ag-row-group-indent-92 {\n padding-left: calc(92 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-92 {\n padding-right: calc(92 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-92 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-92 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-93 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 93);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-93 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 93);\n}\n\n.ag-ltr .ag-row-group-indent-93 {\n padding-left: calc(93 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-93 {\n padding-right: calc(93 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-93 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-93 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-94 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 94);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-94 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 94);\n}\n\n.ag-ltr .ag-row-group-indent-94 {\n padding-left: calc(94 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-94 {\n padding-right: calc(94 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-94 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-94 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-95 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 95);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-95 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 95);\n}\n\n.ag-ltr .ag-row-group-indent-95 {\n padding-left: calc(95 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-95 {\n padding-right: calc(95 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-95 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-95 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-96 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 96);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-96 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 96);\n}\n\n.ag-ltr .ag-row-group-indent-96 {\n padding-left: calc(96 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-96 {\n padding-right: calc(96 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-96 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-96 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-97 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 97);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-97 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 97);\n}\n\n.ag-ltr .ag-row-group-indent-97 {\n padding-left: calc(97 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-97 {\n padding-right: calc(97 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-97 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-97 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-98 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 98);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-98 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 98);\n}\n\n.ag-ltr .ag-row-group-indent-98 {\n padding-left: calc(98 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-98 {\n padding-right: calc(98 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-98 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-98 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row > .ag-cell-wrapper.ag-row-group-indent-99 {\n padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 99);\n}\n.ag-rtl .ag-row > .ag-cell-wrapper.ag-row-group-indent-99 {\n padding-right: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 99);\n}\n\n.ag-ltr .ag-row-group-indent-99 {\n padding-left: calc(99 * var(--ag-row-group-indent-size));\n}\n.ag-rtl .ag-row-group-indent-99 {\n padding-right: calc(99 * var(--ag-row-group-indent-size));\n}\n\n.ag-ltr .ag-row-level-99 .ag-pivot-leaf-group {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-level-99 .ag-pivot-leaf-group {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-ltr .ag-row-group-leaf-indent {\n margin-left: var(--ag-row-group-indent-size);\n}\n.ag-rtl .ag-row-group-leaf-indent {\n margin-right: var(--ag-row-group-indent-size);\n}\n\n.ag-value-change-delta {\n padding-right: 2px;\n}\n\n.ag-value-change-delta-up {\n color: var(--ag-value-change-delta-up-color);\n}\n\n.ag-value-change-delta-down {\n color: var(--ag-value-change-delta-down-color);\n}\n\n.ag-value-change-value {\n background-color: transparent;\n border-radius: 1px;\n padding-left: 1px;\n padding-right: 1px;\n transition: background-color 1s;\n}\n\n.ag-value-change-value-highlight {\n background-color: var(--ag-value-change-value-highlight-background-color);\n transition: background-color 0.1s;\n}\n\n.ag-cell-data-changed {\n background-color: var(--ag-value-change-value-highlight-background-color) !important;\n}\n\n.ag-cell-data-changed-animation {\n background-color: transparent;\n}\n\n.ag-cell-highlight {\n background-color: var(--ag-range-selection-highlight-color) !important;\n}\n\n.ag-row {\n height: var(--ag-row-height);\n background-color: var(--ag-background-color);\n color: var(--ag-data-color);\n border-bottom: var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width);\n}\n\n.ag-sticky-bottom .ag-row {\n border-bottom: none;\n border-top: var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width);\n}\n\n.ag-row-highlight-above::after, .ag-row-highlight-below::after {\n content: "";\n position: absolute;\n width: calc(100% - 1px);\n height: 1px;\n background-color: var(--ag-range-selection-border-color);\n left: 1px;\n}\n\n.ag-row-highlight-above::after {\n top: -1px;\n}\n\n.ag-row-highlight-above.ag-row-first::after {\n top: 0;\n}\n\n.ag-row-highlight-below::after {\n bottom: 0px;\n}\n\n.ag-row-odd {\n background-color: var(--ag-odd-row-background-color);\n}\n\n.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-left-spacer:not(.ag-scroller-corner) {\n border-right: var(--ag-borders-critical) var(--ag-border-color);\n}\n.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-right-spacer:not(.ag-scroller-corner) {\n border-left: var(--ag-borders-critical) var(--ag-border-color);\n}\n\n.ag-row-selected::before {\n content: "";\n background-color: var(--ag-selected-row-background-color);\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n\n.ag-row-hover:not(.ag-full-width-row)::before,\n.ag-row-hover.ag-full-width-row.ag-row-group::before {\n content: "";\n background-color: var(--ag-row-hover-color);\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n}\n\n.ag-row-hover.ag-full-width-row.ag-row-group > * {\n position: relative;\n}\n\n.ag-row-hover.ag-row-selected::before {\n background-color: var(--ag-row-hover-color);\n background-image: linear-gradient(var(--ag-selected-row-background-color), var(--ag-selected-row-background-color));\n}\n\n.ag-column-hover {\n background-color: var(--ag-column-hover-color);\n}\n\n.ag-ltr .ag-right-aligned-cell {\n text-align: right;\n}\n.ag-rtl .ag-right-aligned-cell {\n text-align: left;\n}\n\n.ag-ltr .ag-right-aligned-cell .ag-cell-value,\n.ag-ltr .ag-right-aligned-cell .ag-group-value {\n margin-left: auto;\n}\n.ag-rtl .ag-right-aligned-cell .ag-cell-value,\n.ag-rtl .ag-right-aligned-cell .ag-group-value {\n margin-right: auto;\n}\n\n.ag-cell, .ag-full-width-row .ag-cell-wrapper.ag-row-group {\n --ag-internal-calculated-line-height: var(--ag-line-height, calc(var(--ag-row-height) - var(--ag-row-border-width)));\n --ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));\n border: 1px solid transparent;\n line-height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height));\n padding-left: calc(var(--ag-cell-horizontal-padding) - 1px);\n padding-right: calc(var(--ag-cell-horizontal-padding) - 1px);\n -webkit-font-smoothing: subpixel-antialiased;\n}\n\n.ag-row > .ag-cell-wrapper {\n padding-left: calc(var(--ag-cell-horizontal-padding) - 1px);\n padding-right: calc(var(--ag-cell-horizontal-padding) - 1px);\n}\n\n.ag-row-dragging {\n cursor: move;\n opacity: 0.5;\n}\n\n.ag-cell-inline-editing {\n border: 1px solid var(--ag-border-color);\n border-radius: var(--ag-card-radius);\n box-shadow: var(--ag-card-shadow);\n padding: 0;\n background-color: var(--ag-control-panel-background-color);\n}\n\n.ag-popup-editor .ag-large-text,\n.ag-autocomplete-list-popup {\n border: var(--ag-borders) var(--ag-border-color);\n background: var(--ag-background-color);\n border-radius: var(--ag-card-radius);\n box-shadow: var(--ag-card-shadow);\n padding: var(--ag-grid-size);\n background-color: var(--ag-control-panel-background-color);\n padding: 0;\n}\n\n.ag-large-text-input {\n height: auto;\n padding: var(--ag-cell-horizontal-padding);\n}\n\n.ag-rtl .ag-large-text-input textarea {\n resize: none;\n}\n\n.ag-details-row {\n padding: calc(var(--ag-grid-size) * 5);\n background-color: var(--ag-background-color);\n}\n\n.ag-layout-auto-height .ag-center-cols-viewport, .ag-layout-auto-height .ag-center-cols-container, .ag-layout-print .ag-center-cols-viewport, .ag-layout-print .ag-center-cols-container {\n min-height: 50px;\n}\n\n.ag-overlay-loading-wrapper {\n background-color: var(--ag-modal-overlay-background-color);\n}\n\n.ag-overlay-loading-center {\n border: var(--ag-borders) var(--ag-border-color);\n background: var(--ag-background-color);\n border-radius: var(--ag-card-radius);\n box-shadow: var(--ag-card-shadow);\n padding: var(--ag-grid-size);\n}\n\n.ag-overlay-no-rows-wrapper.ag-layout-auto-height {\n padding-top: 30px;\n}\n\n.ag-skeleton-container {\n width: 100%;\n height: 100%;\n align-content: center;\n}\n\n.ag-skeleton-effect {\n background-color: var(--ag-row-loading-skeleton-effect-color);\n width: 100%;\n height: 1em;\n border-radius: 0.25rem;\n animation: ag-skeleton-loading 1.5s ease-in-out 0.5s infinite;\n}\n\n@keyframes ag-skeleton-loading {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n.ag-loading {\n display: flex;\n height: 100%;\n align-items: center;\n}\n.ag-ltr .ag-loading {\n padding-left: var(--ag-cell-horizontal-padding);\n}\n.ag-rtl .ag-loading {\n padding-right: var(--ag-cell-horizontal-padding);\n}\n\n.ag-ltr .ag-loading-icon {\n padding-right: var(--ag-cell-widget-spacing);\n}\n.ag-rtl .ag-loading-icon {\n padding-left: var(--ag-cell-widget-spacing);\n}\n\n.ag-icon-loading {\n animation-name: spin;\n animation-duration: 1000ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n}\n\n@keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.ag-floating-top {\n border-bottom: var(--ag-borders-critical) var(--ag-border-color);\n}\n\n.ag-floating-bottom {\n border-top: var(--ag-borders-critical) var(--ag-border-color);\n}\n\n.ag-ltr .ag-cell {\n border-right: var(--ag-cell-horizontal-border);\n}\n.ag-rtl .ag-cell {\n border-left: var(--ag-cell-horizontal-border);\n}\n.ag-ltr .ag-cell {\n border-right-width: 1px;\n}\n.ag-rtl .ag-cell {\n border-left-width: 1px;\n}\n\n.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell) {\n border-left: var(--ag-borders-critical) var(--ag-border-color);\n}\n\n.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell) {\n border-right: var(--ag-borders-critical) var(--ag-border-color);\n}\n\n.ag-cell-range-selected:not(.ag-cell-focus),\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing) {\n background-color: var(--ag-range-selection-background-color);\n}\n.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart,\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart {\n background-color: var(--ag-range-selection-chart-background-color) !important;\n}\n.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart.ag-cell-range-chart-category,\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart.ag-cell-range-chart-category {\n background-color: var(--ag-range-selection-chart-category-background-color) !important;\n}\n\n.ag-cell-range-selected-1:not(.ag-cell-focus),\n.ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing) {\n background-color: var(--ag-range-selection-background-color);\n}\n\n.ag-cell-range-selected-2:not(.ag-cell-focus),\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-2 {\n background-color: var(--ag-range-selection-background-color-2);\n}\n\n.ag-cell-range-selected-3:not(.ag-cell-focus),\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-3 {\n background-color: var(--ag-range-selection-background-color-3);\n}\n\n.ag-cell-range-selected-4:not(.ag-cell-focus),\n.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-4 {\n background-color: var(--ag-range-selection-background-color-4);\n}\n\n.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-top {\n border-top-color: var(--ag-range-selection-border-color);\n border-top-style: var(--ag-range-selection-border-style);\n}\n.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-right {\n border-right-color: var(--ag-range-selection-border-color);\n border-right-style: var(--ag-range-selection-border-style);\n}\n.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-bottom {\n border-bottom-color: var(--ag-range-selection-border-color);\n border-bottom-style: var(--ag-range-selection-border-style);\n}\n.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-left {\n border-left-color: var(--ag-range-selection-border-color);\n border-left-style: var(--ag-range-selection-border-style);\n}\n\n.ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within,\n.ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),\n.ag-ltr .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,\n.ag-ltr .ag-cell-range-single-cell,\n.ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle, .ag-rtl .ag-cell-focus:not(.ag-cell-range-selected):focus-within,\n.ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),\n.ag-rtl .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,\n.ag-rtl .ag-cell-range-single-cell,\n.ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle {\n border: 1px solid;\n border-color: var(--ag-range-selection-border-color);\n border-style: var(--ag-range-selection-border-style);\n outline: initial;\n}\n\n.ag-cell.ag-selection-fill-top,\n.ag-cell.ag-selection-fill-top.ag-cell-range-selected {\n border-top: 1px dashed;\n border-top-color: var(--ag-range-selection-border-color);\n}\n\n.ag-ltr .ag-cell.ag-selection-fill-right,\n.ag-ltr .ag-cell.ag-selection-fill-right.ag-cell-range-selected {\n border-right: 1px dashed var(--ag-range-selection-border-color) !important;\n}\n.ag-rtl .ag-cell.ag-selection-fill-right,\n.ag-rtl .ag-cell.ag-selection-fill-right.ag-cell-range-selected {\n border-left: 1px dashed var(--ag-range-selection-border-color) !important;\n}\n\n.ag-cell.ag-selection-fill-bottom,\n.ag-cell.ag-selection-fill-bottom.ag-cell-range-selected {\n border-bottom: 1px dashed;\n border-bottom-color: var(--ag-range-selection-border-color);\n}\n\n.ag-ltr .ag-cell.ag-selection-fill-left,\n.ag-ltr .ag-cell.ag-selection-fill-left.ag-cell-range-selected {\n border-left: 1px dashed var(--ag-range-selection-border-color) !important;\n}\n.ag-rtl .ag-cell.ag-selection-fill-left,\n.ag-rtl .ag-cell.ag-selection-fill-left.ag-cell-range-selected {\n border-right: 1px dashed var(--ag-range-selection-border-color) !important;\n}\n\n.ag-fill-handle, .ag-range-handle {\n position: absolute;\n width: 6px;\n height: 6px;\n bottom: -1px;\n background-color: var(--ag-range-selection-border-color);\n}\n.ag-ltr .ag-fill-handle, .ag-ltr .ag-range-handle {\n right: -1px;\n}\n.ag-rtl .ag-fill-handle, .ag-rtl .ag-range-handle {\n left: -1px;\n}\n\n.ag-fill-handle {\n cursor: cell;\n}\n\n.ag-range-handle {\n cursor: nwse-resize;\n}\n\n.ag-cell-inline-editing {\n border-color: var(--ag-input-focus-border-color) !important;\n}\n\n.ag-menu {\n border: var(--ag-borders) var(--ag-border-color);\n background: var(--ag-background-color);\n border-radius: var(--ag-card-radius);\n box-shadow: var(--ag-card-shadow);\n padding: var(--ag-grid-size);\n background-color: var(--ag-menu-background-color);\n border-color: var(--ag-menu-border-color);\n padding: 0;\n}\n\n.ag-menu-list {\n cursor: default;\n padding: var(--ag-grid-size) 0;\n}\n\n.ag-menu-separator {\n height: calc(var(--ag-grid-size) * 2 + 1px);\n}\n\n.ag-menu-separator-part::after {\n content: "";\n display: block;\n border-top: var(--ag-borders-critical) var(--ag-border-color);\n}\n\n.ag-menu-option-active, .ag-compact-menu-option-active {\n background-color: var(--ag-row-hover-color);\n}\n\n.ag-menu-option-part, .ag-compact-menu-option-part {\n line-height: var(--ag-icon-size);\n padding: calc(var(--ag-grid-size) + 2px) 0;\n}\n\n.ag-menu-option-disabled, .ag-compact-menu-option-disabled {\n opacity: 0.5;\n}\n\n.ag-menu-option-icon, .ag-compact-menu-option-icon {\n width: var(--ag-icon-size);\n}\n.ag-ltr .ag-menu-option-icon, .ag-ltr .ag-compact-menu-option-icon {\n padding-left: calc(var(--ag-grid-size) * 2);\n}\n.ag-rtl .ag-menu-option-icon, .ag-rtl .ag-compact-menu-option-icon {\n padding-right: calc(var(--ag-grid-size) * 2);\n}\n\n.ag-menu-option-text, .ag-compact-menu-option-text {\n padding-left: calc(var(--ag-grid-size) * 2);\n padding-right: calc(var(--ag-grid-size) * 2);\n}\n\n.ag-ltr .ag-menu-option-shortcut, .ag-ltr .ag-compact-menu-option-shortcut {\n padding-right: var(--ag-grid-size);\n}\n.ag-rtl .ag-menu-option-shortcut, .ag-rtl .ag-compact-menu-option-shortcut {\n padding-left: var(--ag-grid-size);\n}\n\n.ag-ltr .ag-menu-option-popup-pointer, .ag-ltr .ag-compact-menu-option-popup-pointer {\n padding-right: var(--ag-grid-size);\n}\n.ag-rtl .ag-menu-option-popup-pointer, .ag-rtl .ag-compact-menu-option-popup-pointer {\n padding-left: var(--ag-grid-size);\n}\n\n.ag-tabs {\n min-width: var(--ag-tab-min-width);\n}\n\n.ag-tabs-header {\n display: flex;\n}\n\n.ag-tabs-header-wrapper {\n display: flex;\n}\n.ag-tabs-header-wrapper .ag-tabs-header {\n flex: 1;\n}\n\n.ag-tabs-close-button-wrapper {\n border: 0;\n border-right: var(--ag-borders) var(--ag-border-color);\n padding: var(--ag-grid-size);\n}\n\n.ag-tabs-close-button {\n border: 0;\n background-color: unset;\n cursor: pointer;\n padding: 0;\n}\n\n.ag-tab {\n border-bottom: var(--ag-selected-tab-underline-width) solid transparent;\n transition: border-bottom var(--ag-selected-tab-underline-transition-speed);\n display: flex;\n flex: none;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n\n.ag-tab:focus-visible {\n outline: none;\n}\n.ag-tab:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: 4px;\n left: 4px;\n display: block;\n width: calc(100% - 8px);\n height: calc(100% - 8px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-tab-selected {\n border-bottom-color: var(--ag-selected-tab-underline-color);\n}\n\n.ag-menu-header {\n color: var(--ag-secondary-foreground-color);\n}\n\n.ag-filter-separator {\n border-top: var(--ag-borders-critical) var(--ag-border-color);\n}\n\n.ag-filter-select .ag-picker-field-wrapper {\n width: 0;\n}\n\n.ag-filter-condition-operator {\n height: 17px;\n}\n\n.ag-ltr .ag-filter-condition-operator-or {\n margin-left: calc(var(--ag-grid-size) * 2);\n}\n.ag-rtl .ag-filter-condition-operator-or {\n margin-right: calc(var(--ag-grid-size) * 2);\n}\n\n.ag-set-filter-select-all {\n padding-top: var(--ag-widget-container-vertical-padding);\n}\n\n.ag-set-filter-list, .ag-filter-no-matches {\n height: calc(var(--ag-list-item-height) * 6);\n}\n\n.ag-set-filter-tree-list {\n height: calc(var(--ag-list-item-height) * 10);\n}\n\n.ag-set-filter-filter {\n margin-top: var(--ag-widget-container-vertical-padding);\n margin-left: var(--ag-widget-container-horizontal-padding);\n margin-right: var(--ag-widget-container-horizontal-padding);\n}\n\n.ag-filter-to {\n margin-top: var(--ag-widget-vertical-spacing);\n}\n\n.ag-mini-filter {\n margin: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\n}\n\n.ag-set-filter-item {\n padding: 0px var(--ag-widget-container-horizontal-padding);\n}\n\n.ag-ltr .ag-set-filter-indent-1 {\n padding-left: calc(var(--ag-widget-container-horizontal-padding) + 1 * var(--ag-set-filter-indent-size));\n}\n.ag-rtl .ag-set-filter-indent-1 {\n padding-right: calc(var(--ag-widget-container-horizontal-padding) + 1 * var(--ag-set-filter-indent-size));\n}\n\n.ag-ltr .ag-set-filter-indent-2 {\n padding-left: calc(var(--ag-widget-container-horizontal-padding) + 2 * var(--ag-set-filter-indent-size));\n}\n.ag-rtl .ag-set-filter-indent-2 {\n padding-right: calc(var(--ag-widget-container-horizontal-padding) + 2 * var(--ag-set-filter-indent-size));\n}\n\n.ag-ltr .ag-set-filter-indent-3 {\n padding-left: calc(var(--ag-widget-container-horizontal-padding) + 3 * var(--ag-set-filter-indent-size));\n}\n.ag-rtl .ag-set-filter-indent-3 {\n padding-right: calc(var(--ag-widget-container-horizontal-padding) + 3 * var(--ag-set-filter-indent-size));\n}\n\n.ag-ltr .ag-set-filter-indent-4 {\n padding-left: calc(var(--ag-widget-container-horizontal-padding) + 4 * var(--ag-set-filter-indent-size));\n}\n.ag-rtl .ag-set-filter-indent-4 {\n padding-right: calc(var(--ag-widget-container-horizontal-padding) + 4 * var(--ag-set-filter-indent-size));\n}\n\n.ag-ltr .ag-set-filter-indent-5 {\n padding-left: calc(var(--ag-widget-container-horizontal-padding) + 5 * var(--ag-set-filter-indent-size));\n}\n.ag-rtl .ag-set-filter-indent-5 {\n padding-right: calc(var(--ag-widget-container-horizontal-padding) + 5 * var(--ag-set-filter-indent-size));\n}\n\n.ag-ltr .ag-set-filter-indent-6 {\n padding-left: calc(var(--ag-widget-container-horizontal-padding) + 6 * var(--ag-set-filter-indent-size));\n}\n.ag-rtl .ag-set-filter-indent-6 {\n padding-right: calc(var(--ag-widget-container-horizontal-padding) + 6 * var(--ag-set-filter-indent-size));\n}\n\n.ag-ltr .ag-set-filter-indent-7 {\n padding-left: calc(var(--ag-widget-container-horizontal-padding) + 7 * var(--ag-set-filter-indent-size));\n}\n.ag-rtl .ag-set-filter-indent-7 {\n padding-right: calc(var(--ag-widget-container-horizontal-padding) + 7 * var(--ag-set-filter-indent-size));\n}\n\n.ag-ltr .ag-set-filter-indent-8 {\n padding-left: calc(var(--ag-widget-container-horizontal-padding) + 8 * var(--ag-set-filter-indent-size));\n}\n.ag-rtl .ag-set-filter-indent-8 {\n padding-right: calc(var(--ag-widget-container-horizontal-padding) + 8 * var(--ag-set-filter-indent-size));\n}\n\n.ag-ltr .ag-set-filter-indent-9 {\n padding-left: calc(var(--ag-widget-container-horizontal-padding) + 9 * var(--ag-set-filter-indent-size));\n}\n.ag-rtl .ag-set-filter-indent-9 {\n padding-right: calc(var(--ag-widget-container-horizontal-padding) + 9 * var(--ag-set-filter-indent-size));\n}\n\n.ag-ltr .ag-set-filter-add-group-indent {\n margin-left: calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding));\n}\n.ag-rtl .ag-set-filter-add-group-indent {\n margin-right: calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding));\n}\n\n.ag-ltr .ag-set-filter-group-icons {\n margin-right: var(--ag-widget-container-horizontal-padding);\n}\n.ag-rtl .ag-set-filter-group-icons {\n margin-left: var(--ag-widget-container-horizontal-padding);\n}\n\n.ag-filter-menu .ag-set-filter-list {\n min-width: 200px;\n}\n\n.ag-filter-virtual-list-item:focus-visible {\n outline: none;\n}\n.ag-filter-virtual-list-item:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: 1px;\n left: 1px;\n display: block;\n width: calc(100% - 2px);\n height: calc(100% - 2px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-filter-apply-panel {\n padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\n border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\n}\n\n.ag-filter-apply-panel-button {\n line-height: 1.5;\n}\n.ag-ltr .ag-filter-apply-panel-button {\n margin-left: calc(var(--ag-grid-size) * 2);\n}\n.ag-rtl .ag-filter-apply-panel-button {\n margin-right: calc(var(--ag-grid-size) * 2);\n}\n\n.ag-simple-filter-body-wrapper {\n padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\n padding-bottom: calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));\n overflow-y: auto;\n min-height: calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));\n}\n.ag-simple-filter-body-wrapper > * {\n margin-bottom: var(--ag-widget-vertical-spacing);\n}\n.ag-simple-filter-body-wrapper .ag-resizer-wrapper {\n margin: 0;\n}\n\n.ag-menu:not(.ag-tabs) .ag-filter .ag-simple-filter-body-wrapper,\n.ag-menu:not(.ag-tabs) .ag-filter > *:not(.ag-filter-wrapper) {\n min-width: calc(var(--ag-menu-min-width) - 2px);\n}\n\n.ag-filter-no-matches {\n padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\n}\n\n.ag-multi-filter-menu-item {\n margin: var(--ag-grid-size) 0;\n}\n\n.ag-multi-filter-group-title-bar {\n padding: calc(var(--ag-grid-size) * 2) var(--ag-grid-size);\n background-color: transparent;\n}\n\n.ag-group-filter-field-select-wrapper {\n padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\n padding-bottom: calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));\n}\n.ag-group-filter-field-select-wrapper > * {\n margin-bottom: var(--ag-widget-vertical-spacing);\n}\n\n.ag-multi-filter-group-title-bar:focus-visible {\n outline: none;\n}\n.ag-multi-filter-group-title-bar:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: 4px;\n left: 4px;\n display: block;\n width: calc(100% - 8px);\n height: calc(100% - 8px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-side-bar {\n position: relative;\n}\n\n.ag-tool-panel-wrapper {\n width: var(--ag-side-bar-panel-width);\n background-color: var(--ag-control-panel-background-color);\n}\n\n.ag-side-buttons {\n padding-top: calc(var(--ag-grid-size) * 4);\n width: calc(var(--ag-icon-size) + 4px);\n position: relative;\n overflow: hidden;\n}\n\nbutton.ag-side-button-button {\n color: inherit;\n font-family: inherit;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n background: transparent;\n padding: calc(var(--ag-grid-size) * 2) 0 calc(var(--ag-grid-size) * 2) 0;\n width: 100%;\n margin: 0;\n min-height: calc(var(--ag-grid-size) * 18);\n background-position-y: center;\n background-position-x: center;\n background-repeat: no-repeat;\n border: none;\n border-top: var(--ag-borders-side-button) var(--ag-border-color);\n border-bottom: var(--ag-borders-side-button) var(--ag-border-color);\n}\nbutton.ag-side-button-button:focus {\n box-shadow: none;\n}\n\n.ag-side-button-button:focus-visible {\n outline: none;\n}\n.ag-side-button-button:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: 4px;\n left: 4px;\n display: block;\n width: calc(100% - 8px);\n height: calc(100% - 8px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-selected button.ag-side-button-button {\n background-color: var(--ag-side-button-selected-background-color);\n}\n\n.ag-side-button-icon-wrapper {\n margin-bottom: 3px;\n}\n\n.ag-ltr .ag-side-bar-left,\n.ag-rtl .ag-side-bar-right {\n border-right: var(--ag-borders) var(--ag-border-color);\n}\n.ag-ltr .ag-side-bar-left .ag-tool-panel-wrapper,\n.ag-rtl .ag-side-bar-right .ag-tool-panel-wrapper {\n border-left: var(--ag-borders) var(--ag-border-color);\n}\n.ag-ltr .ag-side-bar-left .ag-side-button-button,\n.ag-rtl .ag-side-bar-right .ag-side-button-button {\n border-right: var(--ag-selected-tab-underline-width) solid transparent;\n transition: border-right var(--ag-selected-tab-underline-transition-speed);\n}\n.ag-ltr .ag-side-bar-left .ag-selected .ag-side-button-button,\n.ag-rtl .ag-side-bar-right .ag-selected .ag-side-button-button {\n border-right-color: var(--ag-selected-tab-underline-color);\n}\n\n.ag-rtl .ag-side-bar-left,\n.ag-ltr .ag-side-bar-right {\n border-left: var(--ag-borders) var(--ag-border-color);\n}\n.ag-rtl .ag-side-bar-left .ag-tool-panel-wrapper,\n.ag-ltr .ag-side-bar-right .ag-tool-panel-wrapper {\n border-right: var(--ag-borders) var(--ag-border-color);\n}\n.ag-rtl .ag-side-bar-left .ag-side-button-button,\n.ag-ltr .ag-side-bar-right .ag-side-button-button {\n border-left: var(--ag-selected-tab-underline-width) solid transparent;\n transition: border-left var(--ag-selected-tab-underline-transition-speed);\n}\n.ag-rtl .ag-side-bar-left .ag-selected .ag-side-button-button,\n.ag-ltr .ag-side-bar-right .ag-selected .ag-side-button-button {\n border-left-color: var(--ag-selected-tab-underline-color);\n}\n\n.ag-filter-toolpanel-header {\n height: calc(var(--ag-grid-size) * 6);\n}\n\n.ag-filter-toolpanel-header,\n.ag-filter-toolpanel-search {\n padding: 0 var(--ag-grid-size);\n}\n\n.ag-filter-toolpanel-header:focus-visible {\n outline: none;\n}\n.ag-filter-toolpanel-header:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: 4px;\n left: 4px;\n display: block;\n width: calc(100% - 8px);\n height: calc(100% - 8px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-filter-toolpanel-group:not(.ag-has-filter) > .ag-group-title-bar .ag-filter-toolpanel-group-instance-header-icon {\n display: none;\n}\n\n.ag-filter-toolpanel-group-level-0-header {\n height: calc(var(--ag-grid-size) * 8);\n}\n\n.ag-filter-toolpanel-group-item {\n margin-top: calc(var(--ag-grid-size) * 0.5);\n margin-bottom: calc(var(--ag-grid-size) * 0.5);\n}\n\n.ag-filter-toolpanel-search {\n height: var(--ag-header-height);\n}\n\n.ag-filter-toolpanel-search-input {\n flex-grow: 1;\n height: calc(var(--ag-grid-size) * 4);\n}\n.ag-ltr .ag-filter-toolpanel-search-input {\n margin-right: var(--ag-grid-size);\n}\n.ag-rtl .ag-filter-toolpanel-search-input {\n margin-left: var(--ag-grid-size);\n}\n\n.ag-filter-toolpanel-group-level-0 {\n border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\n}\n\n.ag-ltr .ag-filter-toolpanel-expand,\n.ag-ltr .ag-filter-toolpanel-group-title-bar-icon {\n margin-right: var(--ag-grid-size);\n}\n.ag-rtl .ag-filter-toolpanel-expand,\n.ag-rtl .ag-filter-toolpanel-group-title-bar-icon {\n margin-left: var(--ag-grid-size);\n}\n\n.ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-1-header.ag-filter-toolpanel-group-title-bar {\n background-color: transparent;\n}\n.ag-ltr .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header {\n padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 1 + var(--ag-grid-size));\n}\n.ag-rtl .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header {\n padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 1 + var(--ag-grid-size));\n}\n\n.ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-2-header.ag-filter-toolpanel-group-title-bar {\n background-color: transparent;\n}\n.ag-ltr .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header {\n padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 2 + var(--ag-grid-size));\n}\n.ag-rtl .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header {\n padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 2 + var(--ag-grid-size));\n}\n\n.ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-3-header.ag-filter-toolpanel-group-title-bar {\n background-color: transparent;\n}\n.ag-ltr .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header {\n padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 3 + var(--ag-grid-size));\n}\n.ag-rtl .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header {\n padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 3 + var(--ag-grid-size));\n}\n\n.ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-4-header.ag-filter-toolpanel-group-title-bar {\n background-color: transparent;\n}\n.ag-ltr .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header {\n padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 4 + var(--ag-grid-size));\n}\n.ag-rtl .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header {\n padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 4 + var(--ag-grid-size));\n}\n\n.ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-5-header.ag-filter-toolpanel-group-title-bar {\n background-color: transparent;\n}\n.ag-ltr .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header {\n padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 5 + var(--ag-grid-size));\n}\n.ag-rtl .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header {\n padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 5 + var(--ag-grid-size));\n}\n\n.ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-6-header.ag-filter-toolpanel-group-title-bar {\n background-color: transparent;\n}\n.ag-ltr .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header {\n padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 6 + var(--ag-grid-size));\n}\n.ag-rtl .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header {\n padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 6 + var(--ag-grid-size));\n}\n\n.ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-7-header.ag-filter-toolpanel-group-title-bar {\n background-color: transparent;\n}\n.ag-ltr .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header {\n padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 7 + var(--ag-grid-size));\n}\n.ag-rtl .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header {\n padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 7 + var(--ag-grid-size));\n}\n\n.ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-8-header.ag-filter-toolpanel-group-title-bar {\n background-color: transparent;\n}\n.ag-ltr .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header {\n padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 8 + var(--ag-grid-size));\n}\n.ag-rtl .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header {\n padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 8 + var(--ag-grid-size));\n}\n\n.ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-9-header.ag-filter-toolpanel-group-title-bar {\n background-color: transparent;\n}\n.ag-ltr .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header {\n padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 9 + var(--ag-grid-size));\n}\n.ag-rtl .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header {\n padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 9 + var(--ag-grid-size));\n}\n\n.ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-10-header.ag-filter-toolpanel-group-title-bar {\n background-color: transparent;\n}\n.ag-ltr .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header {\n padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 10 + var(--ag-grid-size));\n}\n.ag-rtl .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header {\n padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 10 + var(--ag-grid-size));\n}\n\n.ag-filter-toolpanel-instance-header.ag-filter-toolpanel-group-level-1-header {\n padding-left: var(--ag-grid-size);\n}\n\n.ag-filter-toolpanel-instance-filter {\n border-bottom: var(--ag-borders) var(--ag-border-color);\n border-top: var(--ag-borders) var(--ag-border-color);\n margin-top: var(--ag-grid-size);\n}\n\n.ag-ltr .ag-filter-toolpanel-group-instance-header-icon,\n.ag-ltr .ag-filter-toolpanel-instance-header-icon {\n margin-left: var(--ag-grid-size);\n}\n.ag-rtl .ag-filter-toolpanel-group-instance-header-icon,\n.ag-rtl .ag-filter-toolpanel-instance-header-icon {\n margin-right: var(--ag-grid-size);\n}\n\n.ag-set-filter-group-icons {\n color: var(--ag-secondary-foreground-color);\n}\n\n.ag-pivot-mode-panel {\n min-height: var(--ag-header-height);\n height: var(--ag-header-height);\n display: flex;\n}\n\n.ag-pivot-mode-select {\n display: flex;\n align-items: center;\n}\n.ag-ltr .ag-pivot-mode-select {\n margin-left: var(--ag-widget-container-horizontal-padding);\n}\n.ag-rtl .ag-pivot-mode-select {\n margin-right: var(--ag-widget-container-horizontal-padding);\n}\n\n.ag-column-select-header:focus-visible {\n outline: none;\n}\n.ag-column-select-header:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: 4px;\n left: 4px;\n display: block;\n width: calc(100% - 8px);\n height: calc(100% - 8px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-column-select-header {\n height: var(--ag-header-height);\n align-items: center;\n padding: 0 var(--ag-widget-container-horizontal-padding);\n border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);\n}\n\n.ag-column-panel-column-select {\n border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);\n border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\n}\n\n.ag-column-group-icons,\n.ag-column-select-header-icon {\n color: var(--ag-secondary-foreground-color);\n}\n\n.ag-column-select-list .ag-list-item-hovered::after {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n height: 1px;\n background-color: var(--ag-range-selection-border-color);\n}\n.ag-column-select-list .ag-item-highlight-top::after {\n top: 0;\n}\n.ag-column-select-list .ag-item-highlight-bottom::after {\n bottom: 0;\n}\n\n.ag-header, .ag-advanced-filter-header {\n background-color: var(--ag-header-background-color);\n border-bottom: var(--ag-borders-critical) var(--ag-border-color);\n}\n\n.ag-header-row {\n color: var(--ag-header-foreground-color);\n height: var(--ag-header-height);\n}\n\n.ag-pinned-right-header {\n border-left: var(--ag-borders-critical) var(--ag-border-color);\n}\n\n.ag-pinned-left-header {\n border-right: var(--ag-borders-critical) var(--ag-border-color);\n}\n\n.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon, .ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon {\n margin-left: var(--ag-grid-size);\n}\n.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon, .ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon {\n margin-right: var(--ag-grid-size);\n}\n\n.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-label-icon, .ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon {\n margin-right: var(--ag-grid-size);\n}\n.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-label-icon, .ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon {\n margin-left: var(--ag-grid-size);\n}\n\n.ag-header-cell,\n.ag-header-group-cell {\n padding-left: var(--ag-cell-horizontal-padding);\n padding-right: var(--ag-cell-horizontal-padding);\n}\n.ag-header-cell.ag-header-cell-moving,\n.ag-header-group-cell.ag-header-cell-moving {\n background-color: var(--ag-header-cell-moving-background-color);\n}\n\n.ag-ltr .ag-header-group-cell-label.ag-sticky-label {\n left: var(--ag-cell-horizontal-padding);\n}\n.ag-rtl .ag-header-group-cell-label.ag-sticky-label {\n right: var(--ag-cell-horizontal-padding);\n}\n\n.ag-header-cell:focus-visible {\n outline: none;\n}\n.ag-header-cell:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: 4px;\n left: 4px;\n display: block;\n width: calc(100% - 8px);\n height: calc(100% - 8px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-header-group-cell:focus-visible {\n outline: none;\n}\n.ag-header-group-cell:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: 4px;\n left: 4px;\n display: block;\n width: calc(100% - 8px);\n height: calc(100% - 8px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-advanced-filter-header-cell:focus-visible {\n outline: none;\n}\n.ag-advanced-filter-header-cell:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: 4px;\n left: 4px;\n display: block;\n width: calc(100% - 8px);\n height: calc(100% - 8px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-header-icon {\n color: var(--ag-secondary-foreground-color);\n}\n\n.ag-header-expand-icon {\n cursor: pointer;\n}\n.ag-ltr .ag-header-expand-icon {\n margin-left: 4px;\n}\n.ag-rtl .ag-header-expand-icon {\n margin-right: 4px;\n}\n\n.ag-header-row:not(:first-child) .ag-header-cell:not(.ag-header-span-height.ag-header-span-total),\n.ag-header-row:not(:first-child) .ag-header-group-cell.ag-header-group-cell-with-group {\n border-top: var(--ag-borders-critical) var(--ag-border-color);\n}\n\n.ag-header-group-cell:not(.ag-column-resizing) + .ag-header-group-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover, .ag-header-group-cell:not(.ag-column-resizing) + .ag-header-group-cell:not(.ag-column-hover).ag-column-resizing,\n.ag-header-cell:not(.ag-column-resizing) + .ag-header-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover,\n.ag-header-cell:not(.ag-column-resizing) + .ag-header-cell:not(.ag-column-hover).ag-column-resizing,\n.ag-header-group-cell:first-of-type:not(.ag-header-cell-moving):hover,\n.ag-header-group-cell:first-of-type.ag-column-resizing,\n.ag-header-cell:not(.ag-column-hover):first-of-type:not(.ag-header-cell-moving):hover,\n.ag-header-cell:not(.ag-column-hover):first-of-type.ag-column-resizing {\n background-color: var(--ag-header-cell-hover-background-color);\n}\n\n.ag-header-cell::before,\n.ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group)::before {\n content: "";\n position: absolute;\n z-index: 1;\n display: var(--ag-header-column-separator-display);\n width: var(--ag-header-column-separator-width);\n height: var(--ag-header-column-separator-height);\n top: calc(50% - var(--ag-header-column-separator-height) * 0.5);\n background-color: var(--ag-header-column-separator-color);\n}\n.ag-ltr .ag-header-cell::before,\n.ag-ltr .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group)::before {\n right: 0;\n}\n.ag-rtl .ag-header-cell::before,\n.ag-rtl .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group)::before {\n left: 0;\n}\n\n.ag-header-cell-resize {\n display: flex;\n align-items: center;\n}\n\n.ag-header-cell-resize::after {\n content: "";\n position: absolute;\n z-index: 1;\n display: var(--ag-header-column-resize-handle-display);\n width: var(--ag-header-column-resize-handle-width);\n height: var(--ag-header-column-resize-handle-height);\n top: calc(50% - var(--ag-header-column-resize-handle-height) * 0.5);\n background-color: var(--ag-header-column-resize-handle-color);\n}\n.ag-header-cell.ag-header-span-height .ag-header-cell-resize::after {\n height: calc(100% - var(--ag-grid-size) * 4);\n top: calc(var(--ag-grid-size) * 2);\n}\n\n.ag-ltr .ag-header-viewport .ag-header-cell-resize::after {\n left: calc(50% - var(--ag-header-column-resize-handle-width));\n}\n.ag-rtl .ag-header-viewport .ag-header-cell-resize::after {\n right: calc(50% - var(--ag-header-column-resize-handle-width));\n}\n\n.ag-pinned-left-header .ag-header-cell-resize::after {\n left: calc(50% - var(--ag-header-column-resize-handle-width));\n}\n\n.ag-pinned-right-header .ag-header-cell-resize::after {\n left: 50%;\n}\n\n.ag-ltr .ag-header-select-all {\n margin-right: var(--ag-cell-horizontal-padding);\n}\n.ag-rtl .ag-header-select-all {\n margin-left: var(--ag-cell-horizontal-padding);\n}\n\n.ag-ltr .ag-floating-filter-button {\n margin-left: var(--ag-cell-widget-spacing);\n}\n.ag-rtl .ag-floating-filter-button {\n margin-right: var(--ag-cell-widget-spacing);\n}\n\n.ag-floating-filter-button-button {\n color: inherit;\n font-family: inherit;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n appearance: none;\n background: transparent;\n border: none;\n height: var(--ag-icon-size);\n padding: 0;\n width: var(--ag-icon-size);\n}\n\n.ag-filter-loading {\n background-color: var(--ag-control-panel-background-color);\n height: 100%;\n padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\n position: absolute;\n width: 100%;\n z-index: 1;\n}\n\n.ag-paging-panel {\n border-top: 1px solid;\n border-top-color: var(--ag-border-color);\n color: var(--ag-secondary-foreground-color);\n height: var(--ag-header-height);\n}\n.ag-paging-panel > * {\n margin: 0 var(--ag-cell-horizontal-padding);\n}\n.ag-paging-panel > .ag-paging-page-size .ag-wrapper {\n min-width: calc(var(--ag-grid-size) * 10);\n}\n\n.ag-paging-button {\n cursor: pointer;\n}\n\n.ag-paging-button.ag-disabled {\n cursor: default;\n color: var(--ag-disabled-foreground-color);\n}\n\n.ag-paging-button:focus-visible {\n outline: none;\n}\n.ag-paging-button:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: 0px;\n left: 0px;\n display: block;\n width: calc(100% - 0px);\n height: calc(100% - 0px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-paging-button, .ag-paging-description {\n margin: 0 var(--ag-grid-size);\n}\n\n.ag-status-bar {\n border-top: var(--ag-borders) var(--ag-border-color);\n color: var(--ag-disabled-foreground-color);\n padding-right: calc(var(--ag-grid-size) * 4);\n padding-left: calc(var(--ag-grid-size) * 4);\n line-height: 1.5;\n}\n\n.ag-status-name-value-value {\n color: var(--ag-foreground-color);\n}\n\n.ag-status-bar-center {\n text-align: center;\n}\n\n.ag-status-name-value {\n margin-left: var(--ag-grid-size);\n margin-right: var(--ag-grid-size);\n padding-top: calc(var(--ag-grid-size) * 2);\n padding-bottom: calc(var(--ag-grid-size) * 2);\n}\n\n.ag-column-drop-cell {\n background: var(--ag-chip-background-color);\n border-radius: calc(var(--ag-grid-size) * 4);\n height: calc(var(--ag-grid-size) * 4);\n padding: 0 calc(var(--ag-grid-size) * 0.5);\n border: 1px solid var(--ag-chip-border-color);\n}\n\n.ag-column-drop-cell:focus-visible {\n outline: none;\n}\n.ag-column-drop-cell:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: 2px;\n left: 2px;\n display: block;\n width: calc(100% - 4px);\n height: calc(100% - 4px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-column-drop-cell-text {\n margin: 0 var(--ag-grid-size);\n}\n\n.ag-column-drop-cell-button {\n min-width: calc(var(--ag-grid-size) * 4);\n margin: 0 calc(var(--ag-grid-size) * 0.5);\n color: var(--ag-secondary-foreground-color);\n}\n\n.ag-column-drop-cell-drag-handle {\n margin-left: calc(var(--ag-grid-size) * 2);\n}\n\n.ag-column-drop-cell-ghost {\n opacity: 0.5;\n}\n\n.ag-column-drop-horizontal {\n background-color: var(--ag-header-background-color);\n color: var(--ag-secondary-foreground-color);\n height: var(--ag-header-height);\n border-bottom: var(--ag-borders) var(--ag-border-color);\n}\n.ag-ltr .ag-column-drop-horizontal {\n padding-left: var(--ag-cell-horizontal-padding);\n}\n.ag-rtl .ag-column-drop-horizontal {\n padding-right: var(--ag-cell-horizontal-padding);\n}\n\n.ag-ltr .ag-column-drop-horizontal-half-width:not(:last-child) {\n border-right: var(--ag-borders) var(--ag-border-color);\n}\n.ag-rtl .ag-column-drop-horizontal-half-width:not(:last-child) {\n border-left: var(--ag-borders) var(--ag-border-color);\n}\n\n.ag-column-drop-horizontal-cell-separator {\n margin: 0 var(--ag-grid-size);\n color: var(--ag-secondary-foreground-color);\n}\n\n.ag-column-drop-horizontal-empty-message {\n color: var(--ag-disabled-foreground-color);\n}\n\n.ag-ltr .ag-column-drop-horizontal-icon {\n margin-right: var(--ag-cell-horizontal-padding);\n}\n.ag-rtl .ag-column-drop-horizontal-icon {\n margin-left: var(--ag-cell-horizontal-padding);\n}\n\n.ag-column-drop-vertical-list {\n padding-bottom: var(--ag-grid-size);\n padding-right: var(--ag-grid-size);\n padding-left: var(--ag-grid-size);\n}\n\n.ag-column-drop-vertical-cell {\n margin-top: var(--ag-grid-size);\n}\n\n.ag-column-drop-vertical {\n min-height: 50px;\n border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);\n}\n.ag-column-drop-vertical.ag-last-column-drop {\n border-bottom: none;\n}\n\n.ag-column-drop-vertical-icon {\n margin-left: var(--ag-grid-size);\n margin-right: var(--ag-grid-size);\n}\n\n.ag-column-drop-vertical-empty-message {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n overflow: hidden;\n color: var(--ag-disabled-foreground-color);\n margin-top: var(--ag-grid-size);\n}\n\n.ag-select-agg-func-popup {\n border: var(--ag-borders) var(--ag-border-color);\n background: var(--ag-background-color);\n border-radius: var(--ag-card-radius);\n box-shadow: var(--ag-card-shadow);\n padding: var(--ag-grid-size);\n background: var(--ag-background-color);\n height: calc(var(--ag-grid-size) * 5 * 3.5);\n padding: 0;\n}\n\n.ag-select-agg-func-virtual-list-item {\n cursor: default;\n}\n.ag-ltr .ag-select-agg-func-virtual-list-item {\n padding-left: calc(var(--ag-grid-size) * 2);\n}\n.ag-rtl .ag-select-agg-func-virtual-list-item {\n padding-right: calc(var(--ag-grid-size) * 2);\n}\n.ag-select-agg-func-virtual-list-item:hover {\n background-color: var(--ag-selected-row-background-color);\n}\n\n.ag-select-agg-func-virtual-list-item:focus-visible {\n outline: none;\n}\n.ag-select-agg-func-virtual-list-item:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: 1px;\n left: 1px;\n display: block;\n width: calc(100% - 2px);\n height: calc(100% - 2px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-sort-indicator-container {\n display: flex;\n}\n\n.ag-ltr .ag-sort-indicator-icon {\n padding-left: var(--ag-grid-size);\n}\n.ag-rtl .ag-sort-indicator-icon {\n padding-right: var(--ag-grid-size);\n}\n\n.ag-chart {\n position: relative;\n display: flex;\n overflow: hidden;\n width: 100%;\n height: 100%;\n}\n\n.ag-chart-components-wrapper {\n position: relative;\n display: flex;\n flex: 1 1 auto;\n overflow: hidden;\n}\n\n.ag-chart-title-edit {\n position: absolute;\n display: none;\n top: 0;\n left: 0;\n text-align: center;\n}\n\n.ag-chart-title-edit.currently-editing {\n display: inline-block;\n}\n\n.ag-chart-canvas-wrapper {\n position: relative;\n flex: 1 1 auto;\n overflow: hidden;\n}\n\n.ag-charts-canvas {\n display: block;\n}\n\n.ag-chart-menu {\n position: absolute;\n top: 16px;\n display: flex;\n flex-direction: column;\n}\n.ag-ltr .ag-chart-menu {\n right: 20px;\n}\n.ag-rtl .ag-chart-menu {\n left: 20px;\n}\n\n.ag-chart-docked-container {\n position: relative;\n width: 0;\n min-width: 0;\n transition: min-width 0.4s;\n}\n\n.ag-chart-menu-hidden ~ .ag-chart-docked-container {\n max-width: 0;\n overflow: hidden;\n}\n\n.ag-chart-tabbed-menu {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n}\n\n.ag-chart-tabbed-menu-header {\n flex: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: default;\n}\n\n.ag-chart-tabbed-menu-body {\n display: flex;\n flex: 1 1 auto;\n align-items: stretch;\n overflow: hidden;\n}\n\n.ag-chart-tab {\n width: 100%;\n overflow: hidden;\n overflow-y: auto;\n}\n\n.ag-chart-settings {\n overflow-x: hidden;\n}\n\n.ag-chart-settings-wrapper {\n position: relative;\n flex-direction: column;\n width: 100%;\n height: 100%;\n display: flex;\n overflow: hidden;\n}\n\n.ag-chart-settings-nav-bar {\n display: flex;\n align-items: center;\n width: 100%;\n height: 30px;\n padding: 0 10px;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.ag-chart-settings-card-selector {\n display: flex;\n align-items: center;\n justify-content: space-around;\n flex: 1 1 auto;\n height: 100%;\n padding: 0 10px;\n}\n\n.ag-chart-settings-card-item {\n cursor: pointer;\n width: 10px;\n height: 10px;\n background-color: #000;\n position: relative;\n}\n.ag-chart-settings-card-item.ag-not-selected {\n opacity: 0.2;\n}\n.ag-chart-settings-card-item::before {\n content: " ";\n display: block;\n position: absolute;\n background-color: transparent;\n left: 50%;\n top: 50%;\n margin-left: -10px;\n margin-top: -10px;\n width: 20px;\n height: 20px;\n}\n\n.ag-chart-settings-prev,\n.ag-chart-settings-next {\n position: relative;\n flex: none;\n}\n\n.ag-chart-settings-prev-button,\n.ag-chart-settings-next-button {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n cursor: pointer;\n opacity: 0;\n}\n\n.ag-chart-settings-mini-charts-container {\n position: relative;\n flex: 1 1 auto;\n overflow-x: hidden;\n overflow-y: auto;\n}\n\n.ag-chart-settings-mini-wrapper {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n flex-direction: column;\n width: 100%;\n min-height: 100%;\n overflow: hidden;\n}\n.ag-chart-settings-mini-wrapper.ag-animating {\n transition: left 0.3s;\n transition-timing-function: ease-in-out;\n}\n\n.ag-chart-mini-thumbnail {\n cursor: pointer;\n}\n\n.ag-chart-mini-thumbnail-canvas {\n display: block;\n}\n\n.ag-chart-data-wrapper,\n.ag-chart-format-wrapper,\n.ag-chart-advanced-settings-wrapper {\n display: flex;\n flex-direction: column;\n position: relative;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n padding-bottom: 16px;\n}\n\n.ag-chart-data-wrapper,\n.ag-chart-advanced-settings-wrapper {\n height: 100%;\n overflow-y: auto;\n}\n\n.ag-chart-advanced-settings {\n background-color: var(--ag-control-panel-background-color);\n}\n\n.ag-chart-advanced-settings-wrapper, .ag-chart-advanced-settings {\n width: 100%;\n}\n\n.ag-chart-advanced-settings-wrapper {\n padding-bottom: 0;\n}\n\n.ag-chart-data-section,\n.ag-chart-format-section,\n.ag-chart-advanced-settings-section {\n display: flex;\n margin: 0;\n}\n\n.ag-chart-advanced-settings-section {\n border-bottom: 1px solid var(--ag-secondary-border-color);\n padding-top: var(--ag-grid-size);\n padding-bottom: var(--ag-grid-size);\n}\n\n.ag-chart-empty-text {\n display: flex;\n top: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n justify-content: center;\n background-color: var(--ag-background-color);\n}\n\n.ag-chart .ag-chart-menu {\n display: none;\n}\n\n.ag-chart-menu-hidden:hover .ag-chart-menu {\n display: block;\n}\n\n.ag-chart .ag-chart-tool-panel-button-enable .ag-chart-menu, .ag-chart .ag-chart-menu-wrapper .ag-chart-menu {\n display: flex;\n flex-direction: row;\n top: 8px;\n gap: 20px;\n width: auto;\n}\n.ag-ltr .ag-chart .ag-chart-tool-panel-button-enable .ag-chart-menu, .ag-ltr .ag-chart .ag-chart-menu-wrapper .ag-chart-menu {\n right: calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);\n justify-content: right;\n}\n.ag-rtl .ag-chart .ag-chart-tool-panel-button-enable .ag-chart-menu, .ag-rtl .ag-chart .ag-chart-menu-wrapper .ag-chart-menu {\n left: calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);\n justify-content: left;\n}\n\n.ag-chart-menu-close {\n display: none;\n}\n\n.ag-chart-tool-panel-button-enable .ag-chart-menu-close {\n position: absolute;\n top: 50%;\n transition: transform 0.33s ease-in-out;\n padding: 0;\n display: block;\n cursor: pointer;\n border: none;\n}\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close {\n right: 0px;\n}\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close {\n left: 0px;\n}\n.ag-chart-tool-panel-button-enable .ag-chart-menu-close .ag-icon {\n padding: 14px 5px 14px 2px;\n width: auto;\n height: auto;\n}\n.ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\n content: "";\n position: absolute;\n top: -40px;\n bottom: -40px;\n}\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\n right: 0px;\n}\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\n left: 0px;\n}\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\n left: -10px;\n}\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before {\n right: -10px;\n}\n.ag-chart-tool-panel-button-enable .ag-icon-menu {\n display: none;\n}\n\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close {\n transform: translate(3px, -50%);\n}\n.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover {\n transform: translate(0, -50%);\n}\n.ag-ltr .ag-chart-menu-visible .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover {\n transform: translate(5px, -50%);\n}\n\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close {\n transform: translate(-3px, -50%);\n}\n.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover {\n transform: translate(0, -50%);\n}\n.ag-rtl .ag-chart-menu-visible .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover {\n transform: translate(-5px, -50%);\n}\n\n.ag-charts-font-size-color {\n display: flex;\n align-self: stretch;\n justify-content: space-between;\n}\n\n.ag-charts-data-group-item {\n position: relative;\n}\n\n.ag-charts-data-group-item:not(:last-child) {\n margin-bottom: var(--ag-grid-size);\n}\n\n.ag-chart-menu {\n border-radius: var(--ag-card-radius);\n background: var(--ag-background-color);\n}\n\n.ag-chart-menu-icon {\n opacity: 0.5;\n margin: 2px 0;\n cursor: pointer;\n border-radius: var(--ag-card-radius);\n color: var(--ag-secondary-foreground-color);\n}\n.ag-chart-menu-icon:hover {\n opacity: 1;\n}\n\n.ag-chart-menu-toolbar-button {\n border: 0;\n background-color: unset;\n padding: 0 2px;\n border-radius: 1px;\n}\n\n.ag-chart-mini-thumbnail {\n border: 1px solid var(--ag-secondary-border-color);\n border-radius: 5px;\n}\n.ag-chart-mini-thumbnail.ag-selected {\n border-color: var(--ag-minichart-selected-chart-color);\n}\n\n.ag-chart-settings-card-item {\n background: var(--ag-foreground-color);\n width: 8px;\n height: 8px;\n border-radius: 4px;\n}\n.ag-chart-settings-card-item.ag-selected {\n background-color: var(--ag-minichart-selected-page-color);\n}\n\n.ag-chart-data-column-drag-handle {\n margin-left: var(--ag-grid-size);\n}\n\n.ag-charts-settings-group-title-bar,\n.ag-charts-data-group-title-bar,\n.ag-charts-format-top-level-group-title-bar {\n border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\n position: relative;\n}\n\n.ag-charts-advanced-settings-top-level-group-title-bar {\n position: relative;\n background-color: unset;\n}\n\n.ag-charts-settings-group-title-bar:focus-visible {\n outline: none;\n}\n.ag-charts-settings-group-title-bar:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: -4px;\n left: -4px;\n display: block;\n width: calc(100% - -8px);\n height: calc(100% - -8px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-charts-data-group-title-bar:focus-visible {\n outline: none;\n}\n.ag-charts-data-group-title-bar:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: -4px;\n left: -4px;\n display: block;\n width: calc(100% - -8px);\n height: calc(100% - -8px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-charts-format-top-level-group-title-bar:focus-visible {\n outline: none;\n}\n.ag-charts-format-top-level-group-title-bar:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: -4px;\n left: -4px;\n display: block;\n width: calc(100% - -8px);\n height: calc(100% - -8px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-charts-advanced-settings-top-level-group-title-bar:focus-visible {\n outline: none;\n}\n.ag-charts-advanced-settings-top-level-group-title-bar:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: -4px;\n left: -4px;\n display: block;\n width: calc(100% - -8px);\n height: calc(100% - -8px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-charts-data-group-container {\n padding: calc(var(--ag-widget-container-vertical-padding) * 0.5) var(--ag-widget-container-horizontal-padding);\n}\n.ag-charts-data-group-container .ag-charts-data-group-item:not(.ag-charts-format-sub-level-group):not(.ag-pill-select):not(.ag-select) {\n height: var(--ag-list-item-height);\n}\n.ag-charts-data-group-container .ag-charts-data-group-item.ag-picker-field {\n margin-top: var(--ag-grid-size);\n}\n.ag-charts-data-group-container .ag-list-item-hovered::after {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n height: 1px;\n background-color: var(--ag-range-selection-border-color);\n}\n.ag-charts-data-group-container .ag-item-highlight-top::after {\n top: 0;\n}\n.ag-charts-data-group-container .ag-item-highlight-bottom::after {\n bottom: 0;\n}\n\n.ag-charts-format-top-level-group-container,\n.ag-charts-advanced-settings-top-level-group-container {\n margin-left: calc(var(--ag-grid-size) * 2);\n padding: var(--ag-grid-size);\n}\n\n.ag-charts-format-top-level-group-item,\n.ag-charts-advanced-settings-top-level-group-item {\n margin: var(--ag-grid-size) 0;\n}\n\n.ag-charts-format-sub-level-group-container {\n padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\n padding-bottom: calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));\n}\n.ag-charts-format-sub-level-group-container > * {\n margin-bottom: var(--ag-widget-vertical-spacing);\n}\n\n.ag-charts-settings-group-container {\n padding: var(--ag-grid-size);\n row-gap: 8px;\n display: grid;\n grid-template-columns: 60px 1fr 60px 1fr 60px;\n}\n.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+1) {\n grid-column: 1;\n}\n.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+2) {\n grid-column: 3;\n}\n.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+3) {\n grid-column: 5;\n}\n\n.ag-chart-menu-panel {\n background-color: var(--ag-control-panel-background-color);\n}\n.ag-ltr .ag-chart-menu-panel {\n border-left: solid 1px var(--ag-border-color);\n}\n.ag-rtl .ag-chart-menu-panel {\n border-right: solid 1px var(--ag-border-color);\n}\n\n.ag-date-time-list-page-title-bar {\n display: flex;\n}\n\n.ag-date-time-list-page-title {\n flex-grow: 1;\n text-align: center;\n}\n\n.ag-date-time-list-page-column-labels-row,\n.ag-date-time-list-page-entries-row {\n display: flex;\n}\n\n.ag-date-time-list-page-column-label,\n.ag-date-time-list-page-entry {\n flex-basis: 0;\n flex-grow: 1;\n}\n\n.ag-date-time-list-page-entry {\n cursor: pointer;\n text-align: center;\n}\n\n.ag-date-time-list-page-column-label {\n text-align: center;\n}\n\n.ag-advanced-filter-header {\n position: relative;\n display: flex;\n align-items: center;\n padding-left: var(--ag-cell-horizontal-padding);\n padding-right: var(--ag-cell-horizontal-padding);\n}\n\n.ag-advanced-filter {\n display: flex;\n align-items: center;\n width: 100%;\n}\n\n.ag-advanced-filter-apply-button, .ag-advanced-filter-builder-button {\n line-height: normal;\n white-space: nowrap;\n}\n.ag-ltr .ag-advanced-filter-apply-button, .ag-ltr .ag-advanced-filter-builder-button {\n margin-left: calc(var(--ag-grid-size) * 2);\n}\n.ag-rtl .ag-advanced-filter-apply-button, .ag-rtl .ag-advanced-filter-builder-button {\n margin-right: calc(var(--ag-grid-size) * 2);\n}\n\n.ag-advanced-filter-builder-button {\n display: flex;\n align-items: center;\n border: 0;\n background-color: unset;\n color: var(--ag-foreground-color);\n font-size: var(--ag-font-size);\n font-weight: 600;\n}\n.ag-advanced-filter-builder-button:hover:not(:disabled) {\n background-color: var(--ag-row-hover-color);\n}\n.ag-advanced-filter-builder-button:not(:disabled) {\n cursor: pointer;\n}\n\n.ag-advanced-filter-builder-button-label {\n margin-left: var(--ag-grid-size);\n}\n\n.ag-advanced-filter-builder {\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n width: 100%;\n background-color: var(--ag-control-panel-background-color);\n display: flex;\n flex-direction: column;\n}\n\n.ag-advanced-filter-builder-list {\n flex: 1;\n overflow: auto;\n}\n.ag-advanced-filter-builder-list .ag-list-item-hovered::after {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n height: 1px;\n background-color: var(--ag-range-selection-border-color);\n}\n.ag-advanced-filter-builder-list .ag-item-highlight-top::after {\n top: 0;\n}\n.ag-advanced-filter-builder-list .ag-item-highlight-bottom::after {\n bottom: 0;\n}\n\n.ag-advanced-filter-builder-button-panel {\n display: flex;\n justify-content: flex-end;\n padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);\n border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);\n}\n\n.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-apply-button,\n.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-cancel-button {\n margin-left: calc(var(--ag-grid-size) * 2);\n}\n\n.ag-advanced-filter-builder-item-wrapper {\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n justify-content: space-between;\n overflow: hidden;\n padding-left: calc(var(--ag-icon-size) / 2);\n padding-right: var(--ag-icon-size);\n}\n\n.ag-advanced-filter-builder-item-tree-lines > * {\n width: var(--ag-advanced-filter-builder-indent-size);\n}\n\n.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root {\n width: var(--ag-icon-size);\n}\n.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root::before {\n top: 50%;\n height: 50%;\n}\n\n.ag-advanced-filter-builder-item-tree-line-horizontal,\n.ag-advanced-filter-builder-item-tree-line-vertical,\n.ag-advanced-filter-builder-item-tree-line-vertical-top,\n.ag-advanced-filter-builder-item-tree-line-vertical-bottom {\n position: relative;\n height: 100%;\n display: flex;\n align-items: center;\n}\n.ag-advanced-filter-builder-item-tree-line-horizontal::before, .ag-advanced-filter-builder-item-tree-line-horizontal::after,\n.ag-advanced-filter-builder-item-tree-line-vertical::before,\n.ag-advanced-filter-builder-item-tree-line-vertical::after,\n.ag-advanced-filter-builder-item-tree-line-vertical-top::before,\n.ag-advanced-filter-builder-item-tree-line-vertical-top::after,\n.ag-advanced-filter-builder-item-tree-line-vertical-bottom::before,\n.ag-advanced-filter-builder-item-tree-line-vertical-bottom::after {\n content: "";\n position: absolute;\n height: 100%;\n}\n\n.ag-advanced-filter-builder-item-tree-line-horizontal::after {\n height: 50%;\n width: calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size));\n top: 0;\n left: calc(var(--ag-icon-size) / 2);\n border-bottom: 1px solid;\n border-color: var(--ag-border-color);\n}\n\n.ag-advanced-filter-builder-item-tree-line-vertical::before {\n width: calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);\n top: 0;\n left: calc(var(--ag-icon-size) / 2);\n border-left: 1px solid;\n border-color: var(--ag-border-color);\n}\n\n.ag-advanced-filter-builder-item-tree-line-vertical-top::before {\n height: 50%;\n width: calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);\n top: 0;\n left: calc(var(--ag-icon-size) / 2);\n border-left: 1px solid;\n border-color: var(--ag-border-color);\n}\n\n.ag-advanced-filter-builder-item-tree-line-vertical-bottom::before {\n height: calc((100% - 1.5 * var(--ag-icon-size)) / 2);\n width: calc(var(--ag-icon-size) / 2);\n top: calc((100% + 1.5 * var(--ag-icon-size)) / 2);\n left: calc(var(--ag-icon-size) / 2);\n border-left: 1px solid;\n border-color: var(--ag-border-color);\n}\n\n.ag-advanced-filter-builder-item-condition {\n padding-top: var(--ag-grid-size);\n padding-bottom: var(--ag-grid-size);\n}\n\n.ag-advanced-filter-builder-item,\n.ag-advanced-filter-builder-item-condition,\n.ag-advanced-filter-builder-pill-wrapper,\n.ag-advanced-filter-builder-pill,\n.ag-advanced-filter-builder-item-buttons,\n.ag-advanced-filter-builder-item-tree-lines {\n display: flex;\n align-items: center;\n height: 100%;\n}\n\n.ag-advanced-filter-builder-pill-wrapper {\n margin: 0px var(--ag-grid-size);\n}\n\n.ag-advanced-filter-builder-pill {\n position: relative;\n border-radius: var(--ag-border-radius);\n padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);\n min-height: calc(100% - var(--ag-grid-size) * 3);\n min-width: calc(var(--ag-grid-size) * 2);\n}\n.ag-advanced-filter-builder-pill .ag-picker-field-display {\n margin-right: var(--ag-grid-size);\n}\n.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-number {\n font-family: monospace;\n font-weight: 700;\n}\n.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-empty {\n color: var(--ag-disabled-foreground-color);\n}\n\n.ag-advanced-filter-builder-pill:focus-visible {\n outline: none;\n}\n.ag-advanced-filter-builder-pill:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: -4px;\n left: -4px;\n display: block;\n width: calc(100% - -8px);\n height: calc(100% - -8px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-advanced-filter-builder-item-button:focus-visible {\n outline: none;\n}\n.ag-advanced-filter-builder-item-button:focus-visible::after {\n content: "";\n position: absolute;\n background-color: transparent;\n pointer-events: none;\n top: -4px;\n left: -4px;\n display: block;\n width: calc(100% - -8px);\n height: calc(100% - -8px);\n border: 1px solid;\n border-color: var(--ag-input-focus-border-color);\n}\n\n.ag-advanced-filter-builder-pill-display {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-weight: 500;\n}\n\n.ag-advanced-filter-builder-join-pill {\n color: var(--ag-foreground-color);\n background-color: var(--ag-advanced-filter-join-pill-color);\n cursor: pointer;\n}\n\n.ag-advanced-filter-builder-column-pill {\n color: var(--ag-foreground-color);\n background-color: var(--ag-advanced-filter-column-pill-color);\n cursor: pointer;\n}\n\n.ag-advanced-filter-builder-option-pill {\n color: var(--ag-foreground-color);\n background-color: var(--ag-advanced-filter-option-pill-color);\n cursor: pointer;\n}\n\n.ag-advanced-filter-builder-value-pill {\n color: var(--ag-foreground-color);\n background-color: var(--ag-advanced-filter-value-pill-color);\n cursor: text;\n max-width: 140px;\n}\n.ag-advanced-filter-builder-value-pill .ag-advanced-filter-builder-pill-display {\n display: block;\n}\n\n.ag-advanced-filter-builder-item-buttons > * {\n margin: 0 calc(var(--ag-grid-size) * 0.5);\n}\n\n.ag-advanced-filter-builder-item-button {\n position: relative;\n cursor: pointer;\n color: var(--ag-secondary-foreground-color);\n opacity: 50%;\n}\n\n.ag-advanced-filter-builder-item-button-disabled {\n color: var(--ag-disabled-foreground-color);\n cursor: default;\n}\n\n.ag-advanced-filter-builder-virtual-list-container {\n top: var(--ag-grid-size);\n}\n\n.ag-advanced-filter-builder-virtual-list-item {\n display: flex;\n cursor: default;\n height: var(--ag-list-item-height);\n}\n.ag-advanced-filter-builder-virtual-list-item:hover {\n background-color: var(--ag-row-hover-color);\n}\n.ag-advanced-filter-builder-virtual-list-item:hover .ag-advanced-filter-builder-item-button {\n opacity: 100%;\n}\n\n.ag-advanced-filter-builder-virtual-list-item-highlight .ag-advanced-filter-builder-item-button:focus-visible,\n.ag-advanced-filter-builder-validation .ag-advanced-filter-builder-invalid {\n opacity: 100%;\n}\n\n.ag-advanced-filter-builder-invalid {\n margin: 0 var(--ag-grid-size);\n color: var(--ag-invalid-color);\n cursor: default;\n}\n\n.ag-input-field-input {\n width: 100%;\n min-width: 0;\n}\n\n.ag-checkbox-input-wrapper {\n font-family: var(--ag-icon-font-family);\n font-weight: var(--ag-icon-font-weight);\n color: var(--ag-icon-font-color);\n font-size: var(--ag-icon-size);\n line-height: var(--ag-icon-size);\n font-style: normal;\n font-variant: normal;\n text-transform: none;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n width: var(--ag-icon-size);\n height: var(--ag-icon-size);\n background-color: var(--ag-checkbox-background-color);\n border-radius: var(--ag-checkbox-border-radius);\n display: inline-block;\n vertical-align: middle;\n flex: none;\n}\n.ag-checkbox-input-wrapper input, .ag-checkbox-input-wrapper input {\n -webkit-appearance: none;\n opacity: 0;\n width: 100%;\n height: 100%;\n}\n.ag-checkbox-input-wrapper:focus-within, .ag-checkbox-input-wrapper:active {\n outline: none;\n box-shadow: var(--ag-input-focus-box-shadow);\n}\n.ag-checkbox-input-wrapper.ag-disabled {\n opacity: 0.5;\n}\n.ag-checkbox-input-wrapper::after {\n content: var(--ag-icon-font-code-checkbox-unchecked, "\\f108");\n color: var(--ag-checkbox-unchecked-color);\n display: var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display));\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n}\n.ag-checkbox-input-wrapper.ag-checked::after {\n content: var(--ag-icon-font-code-checkbox-checked, "\\f106");\n color: var(--ag-checkbox-checked-color);\n display: var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display));\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n}\n.ag-checkbox-input-wrapper.ag-indeterminate::after {\n content: var(--ag-icon-font-code-checkbox-indeterminate, "\\f107");\n color: var(--ag-checkbox-indeterminate-color);\n display: var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display));\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n}\n.ag-checkbox-input-wrapper::before {\n content: "";\n background: transparent center/contain no-repeat;\n position: absolute;\n inset: 0;\n background-image: var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));\n display: var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, 0.9));\n}\n.ag-checkbox-input-wrapper.ag-checked::before {\n background-image: var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));\n display: var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, 0.9));\n}\n.ag-checkbox-input-wrapper.ag-indeterminate::before {\n background-image: var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));\n display: var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, 0.9));\n}\n\n.ag-toggle-button-input-wrapper {\n box-sizing: border-box;\n width: var(--ag-toggle-button-width);\n min-width: var(--ag-toggle-button-width);\n max-width: var(--ag-toggle-button-width);\n height: var(--ag-toggle-button-height);\n background-color: var(--ag-toggle-button-off-background-color);\n border-radius: calc(var(--ag-toggle-button-height) * 0.5);\n position: relative;\n flex: none;\n border: var(--ag-toggle-button-border-width) solid;\n border-color: var(--ag-toggle-button-off-border-color);\n}\n.ag-toggle-button-input-wrapper input {\n opacity: 0;\n height: 100%;\n width: 100%;\n}\n.ag-toggle-button-input-wrapper:focus-within {\n outline: none;\n box-shadow: var(--ag-input-focus-box-shadow);\n}\n.ag-toggle-button-input-wrapper.ag-disabled {\n opacity: 0.5;\n}\n.ag-toggle-button-input-wrapper.ag-checked {\n background-color: var(--ag-toggle-button-on-background-color);\n border-color: var(--ag-toggle-button-on-border-color);\n}\n.ag-toggle-button-input-wrapper::before {\n content: " ";\n position: absolute;\n top: calc(0px - var(--ag-toggle-button-border-width));\n left: calc(0px - var(--ag-toggle-button-border-width));\n display: block;\n box-sizing: border-box;\n height: var(--ag-toggle-button-height);\n width: var(--ag-toggle-button-height);\n background-color: var(--ag-toggle-button-switch-background-color);\n border-radius: 100%;\n transition: left 100ms;\n border: var(--ag-toggle-button-border-width) solid;\n border-color: var(--ag-toggle-button-switch-border-color);\n}\n.ag-toggle-button-input-wrapper.ag-checked::before {\n left: calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-border-width));\n border-color: var(--ag-toggle-button-on-border-color);\n}\n\n.ag-radio-button-input-wrapper {\n font-family: var(--ag-icon-font-family);\n font-weight: var(--ag-icon-font-weight);\n color: var(--ag-icon-font-color);\n font-size: var(--ag-icon-size);\n line-height: var(--ag-icon-size);\n font-style: normal;\n font-variant: normal;\n text-transform: none;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n width: var(--ag-icon-size);\n height: var(--ag-icon-size);\n background-color: var(--ag-checkbox-background-color);\n border-radius: var(--ag-checkbox-border-radius);\n display: inline-block;\n vertical-align: middle;\n flex: none;\n border-radius: var(--ag-icon-size);\n}\n.ag-radio-button-input-wrapper input, .ag-radio-button-input-wrapper input {\n -webkit-appearance: none;\n opacity: 0;\n width: 100%;\n height: 100%;\n}\n.ag-radio-button-input-wrapper:focus-within, .ag-radio-button-input-wrapper:active {\n outline: none;\n box-shadow: var(--ag-input-focus-box-shadow);\n}\n.ag-radio-button-input-wrapper.ag-disabled {\n opacity: 0.5;\n}\n.ag-radio-button-input-wrapper::after {\n content: var(--ag-icon-font-code-radio-button-off, "\\f127");\n color: var(--ag-checkbox-unchecked-color);\n display: var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display));\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n}\n.ag-radio-button-input-wrapper.ag-checked::after {\n content: var(--ag-icon-font-code-radio-button-on, "\\f128");\n color: var(--ag-checkbox-checked-color);\n display: var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display));\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n}\n.ag-radio-button-input-wrapper::before {\n content: "";\n background: transparent center/contain no-repeat;\n position: absolute;\n inset: 0;\n background-image: var(--ag-icon-image-radio-button-off, var(--ag-icon-image));\n display: var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, 0.9));\n}\n.ag-radio-button-input-wrapper.ag-checked::before {\n background-image: var(--ag-icon-image-radio-button-on, var(--ag-icon-image));\n display: var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));\n opacity: var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, 0.9));\n}\n\ninput[class^=ag-][type=range] {\n -webkit-appearance: none;\n width: 100%;\n height: 100%;\n background: none;\n overflow: visible;\n}\ninput[class^=ag-][type=range]::-webkit-slider-runnable-track {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 3px;\n background-color: var(--ag-border-color);\n border-radius: var(--ag-border-radius);\n border-radius: var(--ag-checkbox-border-radius);\n}\ninput[class^=ag-][type=range]::-moz-range-track {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 3px;\n background-color: var(--ag-border-color);\n border-radius: var(--ag-border-radius);\n border-radius: var(--ag-checkbox-border-radius);\n}\ninput[class^=ag-][type=range]::-ms-track {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 3px;\n background-color: var(--ag-border-color);\n border-radius: var(--ag-border-radius);\n border-radius: var(--ag-checkbox-border-radius);\n color: transparent;\n width: calc(100% - 2px);\n}\ninput[class^=ag-][type=range]::-webkit-slider-thumb {\n margin: 0;\n padding: 0;\n -webkit-appearance: none;\n width: var(--ag-icon-size);\n height: var(--ag-icon-size);\n background-color: var(--ag-background-color);\n border: 1px solid;\n border-color: var(--ag-checkbox-unchecked-color);\n border-radius: var(--ag-icon-size);\n transform: translateY(calc(var(--ag-icon-size) * -0.5 + 1.5px));\n}\ninput[class^=ag-][type=range]::-ms-thumb {\n margin: 0;\n padding: 0;\n -webkit-appearance: none;\n width: var(--ag-icon-size);\n height: var(--ag-icon-size);\n background-color: var(--ag-background-color);\n border: 1px solid;\n border-color: var(--ag-checkbox-unchecked-color);\n border-radius: var(--ag-icon-size);\n}\ninput[class^=ag-][type=range]::-moz-ag-range-thumb {\n margin: 0;\n padding: 0;\n -webkit-appearance: none;\n width: var(--ag-icon-size);\n height: var(--ag-icon-size);\n background-color: var(--ag-background-color);\n border: 1px solid;\n border-color: var(--ag-checkbox-unchecked-color);\n border-radius: var(--ag-icon-size);\n}\ninput[class^=ag-][type=range]:focus {\n outline: none;\n}\ninput[class^=ag-][type=range]:focus::-webkit-slider-thumb {\n box-shadow: var(--ag-input-focus-box-shadow);\n border-color: var(--ag-checkbox-checked-color);\n}\ninput[class^=ag-][type=range]:focus::-ms-thumb {\n box-shadow: var(--ag-input-focus-box-shadow);\n border-color: var(--ag-checkbox-checked-color);\n}\ninput[class^=ag-][type=range]:focus::-moz-ag-range-thumb {\n box-shadow: var(--ag-input-focus-box-shadow);\n border-color: var(--ag-checkbox-checked-color);\n}\ninput[class^=ag-][type=range]:active::-webkit-slider-runnable-track {\n background-color: var(--ag-input-focus-border-color);\n}\ninput[class^=ag-][type=range]:active::-moz-ag-range-track {\n background-color: var(--ag-input-focus-border-color);\n}\ninput[class^=ag-][type=range]:active::-ms-track {\n background-color: var(--ag-input-focus-border-color);\n}\ninput[class^=ag-][type=range]:disabled {\n opacity: 0.5;\n}\n');Rh('@font-face {\n font-family: "agGridBalham";\n src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABYUAAsAAAAALgQAABXCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIlWBmAAi34KtgCsbgE2AiQDgiwLgRgABCAFhEYHhQgbFShVBoWNAwDFdIdHRcnM5KKoz4JRSvb/dQI3RERcg94LUYNDlJRRFMzQjtavWYLQT3ERFiy0h+AmMcl3xzOrdBEOnrkyLmf//l46s40Rjx2SFE0Caj9+e+++iEZTS4aYhazJQmMIWTOJkBiSNv9p6u81uXStcTtz9aNQWCTCegJgeNrmv7sD5QiVg1YMBCdgEQYIh4Vg9KEuylihU6xYtNtcVeF+1IqVkb9CXZQrtz8H3y0/gdMEmCGnwuiZzJlL5Mx56v1pf9Nf8JlgE/fK64B8AP77qu3R9TZnWJIDRkb4Ze+zzlYKOJKfrKsR8H9rqT0suIAssWuFrjDkzMzs3GX/TjbAmwldUtrw3AYIimgBFdBurgSgKlsF7Mj2Vem+qlpZV4LlofSmgUjUeQAQ7gbkYx89r5NZUyFU/7Kkb0cwOCTCSaCmjituLjwUGo2RIMVpbsTFjAopWV+KrMgbH6NzVxPqwfUQBt6IAGR5cyiz86u78i4dv3VFFeRp2QDeSoZL588el3EZCy0JCspXlnJJnq0/bvkY8sKt8CppjIPxVnwcv6b40VZFZWtPBTWkd3YUQ2CcIOkURbSaUDKYVG6yGnK6xrTGwLF55RBKSMICXX3VacPCiMqBSXP68Xs9MCjvrWy91tK7pzvRCISDQ6qW3iw9Fak+gRE2zLy4/q4y37xuulCfUCGNbxRj61PXJuniW+ZAK06xe3Xg3sgxVDTJ8AXUet41jKNskhmb3qTSdPJBiT66G0SwuNkMvtpUlrhANzvRaQTOhjC+fmuojcdjipqOLL+dcmeXapTAgozS9tsvdZrYTNiyuu7d645hcv2uypVxzrwu5RYy3jorwnSGYFl1tXVTmSuevv7gk89++l8oZCgZcirSqo33DPKztfyy7pr2uUirYfuZUJr2Gg0szclUJ/OVRwXms2pkqJoqnaPwBePrhmYpBYrNGmJCimVAux401R0YxTXKdTyTqQ7kBV+QV9I5mXxqAQZCqqbOsHkoLVBdR8yQF3qIrDJ73MQ/mTTrTGkba09yk/VCO4lr6uUbOLCuVhnmG8id/tVnZWlBnxnwZmdqXD6ce30ayAkfsQwnb2RnOx57KNPZB5YXKZId5lxx3mckh2KyzxsJgO0JPXjO7INZVrD8CeUyZ8SOGkd2wPsGbVftbmfDtRlNzStowt8ejHeA0WILzRbehSxJSR6Fp1JB8iB5g4f1uw9fdIUEJLTo6SI2z8yd8kHbr5XId+ylTH+31XNhZUAqEIFWIAUkZcuzQgH1JaeVqtp0f5D/yFGmQB7+uebBr5VjY9r8ddGNX3DC+6QF9Z5x7oiDruCe0U8Ayz+Z4wkuGxsqJpoNiCknw3wLlgUKFaIpVrdlFVU1dQ1NLW0dXb3c9qGRsYkHcGZuYWmlZm1ja2ev6+Do5Oyiq+bqpubu4kHV9vTy9gEhzVPytK170gpZTpwB7tisLo/7/yP9c9mwny5TOYCSmbCNtoFpHNcNnDCJk0aBU2ZwWh9wxhLO6gHOGQfOGwAumgAuGQMum8UVQ8BVg8A187ihF7hpBLilH7htDncs4q5h4J4p3LeAB7HMrwIxNUVQBSRoQlEoCWWhIlSFmlAXGkJTaAltoSN0hZ7QFwbCUBgJY2EiTIWZMBcWwlJYCWuLbPBrk1lbYSfshYNwNG11kmXOwkW4CjfhbiI8LLLBr2dSvIS3We4j6bCJQyQKtYjgF5tuw2UXhCAF3eGHldGfZ7yUkQ2yH3r6EEBL6vkNeOA/2N27vo335BeCopd9dwodW+/6Zdh2/dhfniJvNPmCvTvsF4u3ABwiE/OFIb4oh0MnJbHZLklEDfEgIfQ5igeDzkSoiihRIINBQddfEuQi4XFQ1IvFYAq5LiQUxxdCCRcSiiqCbWJdXYUzR1Eeh06ho74oW+LJRykCMhl1dSELOMJRJbmhLuEjcfjCLKDEYaNRD/rkGi93dYn68nd1dmp+L7jS3e3dP3FvT0/kX9NWPvIiOoFi3f04/I/Cqx0+AxP2tEd0U1d2TqdCVBCR2d0/zjku2N4ZuCnwGvsYwBANOHTPq1Yek2KWL+dLZQMPAtka6BylaxhfS5x2so5rI2xOFqTRDpsFhnj795c5SBZEV5BCjSCNW0EqM2OIxiqKrWKCYgEMB8Pe8bEQC05iG6qrLUAcA7TEJUwTFqqWhRdphgEKFF3/zyVeXVKjL782R7+96rKPXHlD5tghGvKZP+SCi+RLGxSgsx/93eTvC/vp3PwIpzTsTpflgfJZ+wrVjmRgFhXicd7+R8zvcxmP+RnF5LArOHa7zTeBxCcFPpvgqzX/ModS0pzAcW77fal1OcpMbwtFgyKP9kVPfQLBf4qdNO5JYDw+o8TTaSTOZpPJo1A9dfEu1m6fB0pYRL3JLBKXgHIko+UqYzEtQpX8LSRaon4wc+REIoK1HFSTZ71nsxfUiznjZzKJQOcWTYo0UCIRT/MZTyST4JTHfDC0GFGAm4TD7nrUy7zeKPpIfL8QTeXOeObPFQqvSSGrqFclRjKXwTUp0RdpzUTcyivnb2t3L6oX7jiP1Uc2jMaS2dPu3ztJd3BhoznLHahp6Zlyyn2lwpkWgOInNJJz/bQ462XZE08jkYXq3xVYeCH0vcWxET5alvdTvxUH1jBd7186S3ZUpsDq6b6DQXpL73IbdOHHz7UG3qFzWdWS5u9avT4zcnSyNmc122Uqun8mDxTDwNrq4EWomiYSK+So59VJtHMsi9frrhLA1ySmSFJNuF4UGj5T6DqIsIxmWVCO+9O6A2ve+cMAkP9WQ9SbPWgGHkC46AfFkzlgLL9fDfZBSrIiueBXKQYLuOMpG7JzBDHlu/MT28LTgW18u/C0AzpnZNrFX7ZvkR3/vd8JHAfIQmiIHmJO6OAH/w67PbeNqsN+ktYHbnypOWpJEjxaA/33yvJ69Ym1941dNyX+0Oq5sGpU6H5yT+8+v1KK+bx3zM6UxHNW/3WjSrnk93uOVEPpYeVFq+akueoG+jldMjr06TUsOKvDDzxwgB/NQOBoo5QyzsgsY5RQLo9sFfIeo8cxItTncNbp/OSTDWpw5EJaMuaLCSgUyqJUqAsxJTHTJJpevpzdbp292LkqNPfcCj5svNrDjB0r556EeHr7PvL6Z7vfdV3q5mdltSLZkhX+02VxgMS7R8CmPH6PndrHp9CuPvmAiJZR0iKr5r51iAfH8g8xBk6Itfue9Hsh5otRy4vbbm7hRztzq8/55jua1a0B4omUn2jLr2iqhJ/R96fdcU85edH3zD/vy9WmGiq4J4IjvnOVrJH1aVeBwdsWrF6F2zmzGYbchVe8oza5D3km83NxPx98KeVqf1LqMWR6HYZc9AwRQzwLcE2X6GvmNOoDmL9AAM/qdEVXdNXAyiEcagv67Gj+viC5gzy545538oOcUAdwkgOcyTaXHdnmDH/7FD9A2KHpxG9uIUi5PJtCKMDdDtLQ5CLgkoV7TVjxGPM0ovmCMdVrLrDocFo32s8bhhU8tG7/PX3V2QcVvVU7tC7UL8X9aw/l7rbedKO60TI7rphoskN4xjY94HymfuVWD8IryQIbYiH+2hGFoFoqBM5mHyHt4ckHz+6duM8Vu3ANlz9+X0YnTaHXFf74JwzNasRT4ov6Vfus9FEfldMMeABKjjHUQgviYKZkHS9PkMkSXBEvCa6yhARZudIJYj4Dfqy0mgRG4b0ZS5HZmNpPRF2anxoTQcQ85Rx4dswoHPloNI4iLr+Tb7sGsvd/QjdUP30/6ZcZHqNGY3MtNVRTGD8QEzoQNyVz4L83rIdwfC241Wk2OzaQTXWYzQzGUQT6zqVL7z0G+d454m0c+MTbZuSqCKWSUOU6c/uVBKHMVTlNpsUGq0VukslMcssJ0AgmmUV+HCiSMRUcl60KEfRDh52Ha+Ahp0c9c/BxVvP25iFzlaVq8GP1aDXQLFBmh4ZmKwftZbNDlczh4TcnF4u8vhEtEX3jJcIf63Ev9++/d89v27a5ZSH3ZMxjvUUP1PGDgaanXGgyB8Pf7tu3o6AAhg36W7r6Wz/dOms4dap12CoQAxMQC4gnreB6v1FlvKHEVbhDiR0qEax/477I8Re5DAfIN40oLHK5RaFWyCwWeRBjl4tS5ecAa4Ce98g/0qc3MZhCZrbIFZuN26UJUvDGpzLPZqD9v5nF1WULE85D42aOU46bMS4C/VtNKy4+8vyrpq4F6qQExnj0Q2X7uulrRO1sj5nK0b0JHPEP1QiLFx2AoXsY9foqtTvvosr3RrFvXp5gntvuc24CPocrcrs7gtFa3RpmlT+hM3Mxt328txEHQAf7Ty7WRKrl7GXM1qX/4Y0x0AnH4rjcQz9hu6Jb5TdkDr4ccOppNalUMl/TwZ+71f3aZL7qfgiFuhezg7vulIT6wLBFLVtfj0kCZpnMbE2fWWZNVA+rEKnZRY3FTWyTSG4hE6AJqPB/HhsovLNLs+uOZqnt8rwOsdfDr97cybb/zmoJDNtQD7CU7twiNfPc2m/l1yXPaS1J5hrdmeL30eON4/c8Jn6guIfSmalpJTl1X23CWvlsfnjevNz68OVkiruvOwbW97QpuJNXGjS8nBI2C8YmwsfSFiz3z7sHiY7vfJnvdFgsyZLjzExWDjs+LFMbZh0NXnz00P8jbcNtDsOWLyl5RZA0P9OQrp/GKmJPFFm1jh1J+kKdrjBayo1NWRYyljxUBInMlaWb9HvgZD+/i7FcaXSRTluol3DiUpR9W0Pl8rrxC53t2BKqqDBZ/q4LfDr8M3HS5LQS/9niuQy7W74xQ6vMzcCX4MTXhTbELQVarS+1eSccintlChZUidOTLWP21k2L0k6ryqBp2io56kGgH+9qh5poIGGeWw7rdwmo2gepIehYw82y+jp6pWMVIMAuoM6sy4zVt66VmOwqnFlXv/oKq9eSFv1KUEM+jqluTKuvY4IP1XkJezkj+AjoI96MO5qMzcYbTeqCVLh5Moa/B8zGh0xhzXhzjUGLa2tw5HhT+o3hCn4FBMa46S8oPoKDgLXPWtpaKrpFSuT7Knwfamr6E/9zv3AQ8CWsoBVRhVnbNrfZ5jizsSa9vjibY2phIhckgBk/csWt4LeX/icahcv2vLDNuc9bdrd0TyFFnurjnDPnOXfxjbKzv9RRi9L5halHmDZbYKvmMxHpDFGRmgkfWJypb/tF1qRd++LS26fKATYZH8XLvG/dcqTyLZrEwVeO4qNKQ0zyZDZ2ssIh+uMxT+bgyS24rxc2mez2zMya5+5uxgKoHgvsRnuzHYfqRjt48Ar5vxdxySlf9xXc6y+4PDPLRJuxalF/v7PP2X8MN2MvKWNvskjyMP9XUHuwZhJkVWeGlRxBJ9OKZBOkGamRFs1VSR57EicOv2XcDeVAuZIkn5jSgpXhMXgGZFbEyyaspmRQCEmqND0rOE3eRkqTEUEyq9jiSrhm5q81yZOCttz+TN5ONqU3fRvrn+SiQYvrGzxmhdqESzb/hcrb7sVCrdX19Th1PS9GEJe/K4vU2h7FS5ks/PJlCLSyRNjFntY/cv9o7bmINYsX8sVXxPyF4hFV/OjBXO67XMxbUKeOCDWCK0K18D5895txYbzwiiABZDavX08R6tJX3doxOKdg2rpjety7VyRKufxnYuLMIjKJL9Fl/DRn8+be8cv095rQtRea3+7cObkCowoE1YVc10rmps2VG2m/d/NedXR02nL1n7SRz8nPKB1VoDx772S6b87yZeN1t20OgsghHCvKA2WJJrm9aoXj+ioIx/aXGu6GLjRClOjaNK/hJthBap6Pf9CkdPyKEw1GY1tjUwO0uSL4nHZd0/yvmsrN8+YDn/jBGZMC8qUrV0rzAyY5Ew16N5wvnRTgtDEtNtQWRxdotQXRxc8d+ZwCbbHuOcRk07l0f2F0jCt99rL1cSTixENLNRDJHJFKW1qGZ0JYy7iE+8QadC8ckVgkORIxEFt4UZLqabPteAjyjlNtIwHC4ma4uw/0PNAVu8gxXWFL682lpefPty1dFhsLHNgYOSqgVtpgpppJZu7YGRk5NKgkqz1criwihoaY7st/8c6CynhmWYbpHgXe6l+cv4hn0XbMZ9gq2Uk7bmFfkizNx2ljBp4v+tuq9HT1yH9uZ/Trcx8reWLevgJdFBj+bDYLpvOnCLVv7drpAkXmg55GzIJnpSOLnU6Rp9bWsjV0NWLO/7hwGB/mfrvIzd0XYjgG3lwWxiOasJqjFvQJExo0TIzgkhnFFSLxQHfg+cLD1sRyIvHyNfzaFcJUbjUdWSjAA02ZsllT62oWOGVcN16/PIjyiYcX8A2B1kwCZ1jB/LEY2tg3UcgZAKmWt0FkwT8h7EnZtqQTmU/02JgpBpEhBMYGl/E6pEhIMOKWBW9EyJPhaalR8E+qBsDYkZ+Qp5FtWnZRpyksJfUooqtV/0hnsHt0mWD4+SGHNYVWIJ6qnbxK0jL5fzwpzoeqODL8xKEOQhYhtbwEaaQ21d6ceE+8uVgeGd54qn4X7WSnliIlOWlXdxIPq3cFJ7rI8z/kkh72pfOmuuvfUjAyCAA0Af3rqwUYVy98xZ8C8O2YkAjoL1QcMtgKDf2/9Hy9Ju6N8KS1vNAk/IeA358yqLbC9/zfk+oXqHguAP7ZpnqAnxCDfFBdg0HxhgIgqroM7CR37RgywEACFzv3AFDXahycnAaWgVKAAEhCAQRlYAEeYwMuEAc7uI9AAbi/GlMIvKAbisD9dAwCDCJ9MwxaoAnDsfqpjX/HUGP7i6pzQDXWQ2/yjzQ1wtlL8Wx1ZT+JSdHIZ6d7li7Vq1mZlSpt9kPYLioEyaLKJzkrarP4djyW+KwLJ+0TVj+18e8Y6jNC+0Ub7RxQ19RHk7D2j9aQ4H0Tzl6KZ5/2n4x9T4hGXjvdRS1dTtqrUa3MeF2lVdmPWIlPCBTkyKK9/kkO86IOoce3I+2o9MsLFwsdt6xXNUrOEmBFgS70oA8DGMIIxjCBKXxhkr4c/utWnW6vPxiOxpPpbL5Yrtab7W5/OJ7Ol+vt/ni+3h9MKONC6oZp2Y7r8QVCkVgilcl9/fg1bAVWlVKF1ggPUFWuqYvJDRyyo9B3Naqt2kju6yS3XEknfzCcpmFPRto2jEYbq/gz+yo/cxJE89hcDdThXTy3nCZO2BSdke85ife+U0mp69Kl687W85Rcn25Jy6OOjhg7+KfYcpSngKnuqr5B2YQE5f6U1WS9SpvY3z45x56jbIhU2iA0nPLZDoOgb7gatXhr2uZBvZb4PMopZY7AwjRlsRxDkCvR/Rg4irpEcb/0i9hKg74dyU9nM+FcynJpOBr3talq6yW80CS1MRTJvVx5pOHMgJV5PRtTokpKGZ05c0IvhnPqW6BWRtnCmRBslMgsw88mAUIFCgQGDQgwXCGBgwA1fMEJbpB7aOEMEe5wgRIeTwAA);\n font-weight: normal;\n font-style: normal;\n}\n.ag-theme-balham, .ag-theme-balham-dark, .ag-theme-balham-auto-dark {\n --ag-balham-active-color: #0091ea;\n --ag-foreground-color: #000;\n --ag-background-color: #fff;\n --ag-header-background-color: #f5f7f7;\n --ag-tooltip-background-color: #cbd0d3;\n --ag-subheader-background-color: #e2e9eb;\n --ag-control-panel-background-color: #f5f7f7;\n --ag-border-color: #bdc3c7;\n --ag-odd-row-background-color: #fcfdfe;\n --ag-row-hover-color: #ecf0f1;\n --ag-column-hover-color: #ecf0f1;\n --ag-input-border-color: #95a5a6;\n --ag-invalid-color: #e02525;\n --ag-input-disabled-background-color: #ebebeb;\n --ag-checkbox-unchecked-color: #7f8c8d;\n --ag-input-focus-border-color: #719ECE;\n --ag-advanced-filter-join-pill-color: #f08e8d;\n --ag-advanced-filter-column-pill-color: #a6e194;\n --ag-advanced-filter-option-pill-color: #f3c08b;\n --ag-advanced-filter-value-pill-color: #85c0e4;\n --ag-input-focus-box-shadow: 0 0 2px 1px var(--ag-input-focus-border-color);\n --ag-range-selection-border-color: var(--ag-balham-active-color);\n --ag-checkbox-checked-color: var(--ag-balham-active-color);\n --ag-checkbox-background-color: var(--ag-background-color);\n --ag-panel-background-color: var(--ag-header-background-color);\n --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);\n --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);\n --ag-subheader-toolbar-background-color: rgba(226, 233, 235, 0.5);\n --ag-row-border-color: rgba(189, 195, 199, 0.58);\n --ag-chip-background-color: rgba(0, 0, 0, 0.1);\n --ag-range-selection-background-color: rgba(0, 145, 234, 0.2);\n --ag-range-selection-background-color-2: rgba(0, 145, 234, 0.36);\n --ag-range-selection-background-color-3: rgba(0, 145, 234, 0.49);\n --ag-range-selection-background-color-4: rgba(0, 145, 234, 0.59);\n --ag-selected-row-background-color: rgba(0, 145, 234, 0.28);\n --ag-header-column-separator-color: rgba(189, 195, 199, 0.5);\n --ag-input-disabled-border-color: rgba(149, 165, 166, 0.3);\n --ag-header-column-separator-display: block;\n --ag-header-column-separator-height: 50%;\n --ag-grid-size: 4px;\n --ag-icon-size: 16px;\n --ag-row-height: calc(var(--ag-grid-size) * 7);\n --ag-header-height: calc(var(--ag-grid-size) * 8);\n --ag-list-item-height: calc(var(--ag-grid-size) * 6);\n --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));\n --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);\n --ag-input-height: calc(var(--ag-grid-size) * 4);\n --ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n --ag-font-size: 12px;\n --ag-icon-font-family: agGridBalham;\n --ag-border-radius: 2px;\n --ag-checkbox-border-radius: 3px;\n --ag-card-shadow: none;\n}\n\n.ag-theme-balham-dark {\n --ag-balham-active-color: #00B0FF;\n --ag-foreground-color: #F5F5F5;\n --ag-background-color: #2d3436;\n --ag-header-background-color: #1c1c1c;\n --ag-tooltip-background-color: #1c1f20;\n --ag-subheader-background-color: #111;\n --ag-control-panel-background-color: #202020;\n --ag-border-color: #424242;\n --ag-odd-row-background-color: #262c2e;\n --ag-row-hover-color: #3d4749;\n --ag-column-hover-color: #3d4749;\n --ag-input-border-color: #f0f0f0;\n --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);\n --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);\n --ag-checkbox-unchecked-color: #ecf0f1;\n --ag-advanced-filter-join-pill-color: #7a3a37;\n --ag-advanced-filter-column-pill-color: #355f2d;\n --ag-advanced-filter-option-pill-color: #5a3168;\n --ag-advanced-filter-value-pill-color: #374c86;\n --ag-secondary-foreground-color: var(--ag-foreground-color);\n --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);\n --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);\n --ag-row-border-color: #5c5c5c;\n --ag-chip-background-color: rgba(245, 245, 245, 0.08);\n --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);\n --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);\n --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);\n --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);\n --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);\n --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);\n --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);\n --ag-header-foreground-color: rgba(245, 245, 245, 0.64);\n --ag-toggle-button-off-background-color: transparent;\n --ag-toggle-button-off-border-color: var(--ag-foreground-color);\n --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);\n --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);\n --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);\n --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);\n color-scheme: dark;\n}\n\n@media (prefers-color-scheme: dark) {\n .ag-theme-balham-auto-dark {\n --ag-balham-active-color: #00B0FF;\n --ag-foreground-color: #F5F5F5;\n --ag-background-color: #2d3436;\n --ag-header-background-color: #1c1c1c;\n --ag-tooltip-background-color: #1c1f20;\n --ag-subheader-background-color: #111;\n --ag-control-panel-background-color: #202020;\n --ag-border-color: #424242;\n --ag-odd-row-background-color: #262c2e;\n --ag-row-hover-color: #3d4749;\n --ag-column-hover-color: #3d4749;\n --ag-input-border-color: #f0f0f0;\n --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);\n --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);\n --ag-checkbox-unchecked-color: #ecf0f1;\n --ag-advanced-filter-join-pill-color: #7a3a37;\n --ag-advanced-filter-column-pill-color: #355f2d;\n --ag-advanced-filter-option-pill-color: #5a3168;\n --ag-advanced-filter-value-pill-color: #374c86;\n --ag-secondary-foreground-color: var(--ag-foreground-color);\n --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);\n --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);\n --ag-row-border-color: #5c5c5c;\n --ag-chip-background-color: rgba(245, 245, 245, 0.08);\n --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);\n --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);\n --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);\n --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);\n --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);\n --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);\n --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);\n --ag-header-foreground-color: rgba(245, 245, 245, 0.64);\n --ag-toggle-button-off-background-color: transparent;\n --ag-toggle-button-off-border-color: var(--ag-foreground-color);\n --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);\n --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);\n --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);\n --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);\n color-scheme: dark;\n }\n}\n.ag-theme-balham .ag-filter-toolpanel-header,\n.ag-theme-balham .ag-filter-toolpanel-search,\n.ag-theme-balham .ag-status-bar,\n.ag-theme-balham .ag-header-row,\n.ag-theme-balham .ag-multi-filter-group-title-bar, .ag-theme-balham-dark .ag-filter-toolpanel-header,\n.ag-theme-balham-dark .ag-filter-toolpanel-search,\n.ag-theme-balham-dark .ag-status-bar,\n.ag-theme-balham-dark .ag-header-row,\n.ag-theme-balham-dark .ag-multi-filter-group-title-bar, .ag-theme-balham-auto-dark .ag-filter-toolpanel-header,\n.ag-theme-balham-auto-dark .ag-filter-toolpanel-search,\n.ag-theme-balham-auto-dark .ag-status-bar,\n.ag-theme-balham-auto-dark .ag-header-row,\n.ag-theme-balham-auto-dark .ag-multi-filter-group-title-bar {\n font-weight: 600;\n color: var(--ag-header-foreground-color);\n}\n.ag-theme-balham .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham .ag-ltr input[class^=ag-][type=text], .ag-theme-balham .ag-ltr input[class^=ag-][type=number], .ag-theme-balham .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham .ag-ltr input[class^=ag-][type=date], .ag-theme-balham .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-ltr textarea[class^=ag-], .ag-theme-balham-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-ltr textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-ltr textarea[class^=ag-] {\n padding-left: var(--ag-grid-size);\n}\n\n.ag-theme-balham .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham .ag-rtl input[class^=ag-][type=text], .ag-theme-balham .ag-rtl input[class^=ag-][type=number], .ag-theme-balham .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham .ag-rtl input[class^=ag-][type=date], .ag-theme-balham .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-rtl textarea[class^=ag-], .ag-theme-balham-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-rtl textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-rtl textarea[class^=ag-] {\n padding-right: var(--ag-grid-size);\n}\n\n.ag-theme-balham .ag-column-drop-vertical-empty-message, .ag-theme-balham .ag-status-bar, .ag-theme-balham-dark .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-status-bar, .ag-theme-balham-auto-dark .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-status-bar {\n font-weight: 600;\n color: var(--ag-disabled-foreground-color);\n}\n.ag-theme-balham.ag-dnd-ghost, .ag-theme-balham-dark.ag-dnd-ghost, .ag-theme-balham-auto-dark.ag-dnd-ghost {\n font-size: var(--ag-font-size);\n font-weight: 600;\n}\n.ag-theme-balham .ag-tab, .ag-theme-balham-dark .ag-tab, .ag-theme-balham-auto-dark .ag-tab {\n border: 1px solid transparent;\n padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);\n margin: var(--ag-grid-size);\n margin-bottom: -1px;\n}\n.ag-theme-balham .ag-tab-selected, .ag-theme-balham-dark .ag-tab-selected, .ag-theme-balham-auto-dark .ag-tab-selected {\n background-color: var(--ag-background-color);\n border-color: var(--ag-border-color);\n border-bottom-color: transparent;\n}\n.ag-theme-balham .ag-tabs-header, .ag-theme-balham-dark .ag-tabs-header, .ag-theme-balham-auto-dark .ag-tabs-header {\n border-bottom: 1px solid var(--ag-border-color);\n}\n.ag-theme-balham .ag-column-drop-cell, .ag-theme-balham-dark .ag-column-drop-cell, .ag-theme-balham-auto-dark .ag-column-drop-cell {\n height: calc(var(--ag-grid-size) * 6);\n}\n.ag-theme-balham .ag-column-drop-vertical-title, .ag-theme-balham-dark .ag-column-drop-vertical-title, .ag-theme-balham-auto-dark .ag-column-drop-vertical-title {\n color: var(--ag-foreground-color);\n}\n.ag-theme-balham .ag-column-drop-vertical-cell, .ag-theme-balham-dark .ag-column-drop-vertical-cell, .ag-theme-balham-auto-dark .ag-column-drop-vertical-cell {\n margin-left: calc(var(--ag-grid-size) * 2);\n margin-right: calc(var(--ag-grid-size) * 2);\n}\n.ag-theme-balham .ag-column-drop-vertical-cell-text, .ag-theme-balham-dark .ag-column-drop-vertical-cell-text, .ag-theme-balham-auto-dark .ag-column-drop-vertical-cell-text {\n margin-left: calc(var(--ag-grid-size) * 2);\n}\n.ag-theme-balham .ag-column-drop-vertical-icon, .ag-theme-balham-dark .ag-column-drop-vertical-icon, .ag-theme-balham-auto-dark .ag-column-drop-vertical-icon {\n color: var(--ag-secondary-foreground-color);\n}\n.ag-theme-balham .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message {\n padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);\n padding-right: var(--ag-grid-size);\n}\n\n.ag-theme-balham .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message {\n padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);\n padding-left: var(--ag-grid-size);\n}\n\n.ag-theme-balham .ag-column-drop-horizontal, .ag-theme-balham-dark .ag-column-drop-horizontal, .ag-theme-balham-auto-dark .ag-column-drop-horizontal {\n height: var(--ag-header-height);\n}\n.ag-theme-balham .ag-column-drop-empty, .ag-theme-balham-dark .ag-column-drop-empty, .ag-theme-balham-auto-dark .ag-column-drop-empty {\n color: var(--ag-disabled-foreground-color);\n}\n.ag-theme-balham .ag-column-drop-horizontal-cell-text, .ag-theme-balham-dark .ag-column-drop-horizontal-cell-text, .ag-theme-balham-auto-dark .ag-column-drop-horizontal-cell-text {\n margin-left: calc(var(--ag-grid-size) * 2);\n}\n.ag-theme-balham .ag-column-drop-vertical, .ag-theme-balham-dark .ag-column-drop-vertical, .ag-theme-balham-auto-dark .ag-column-drop-vertical {\n padding-top: calc(var(--ag-grid-size) * 2);\n}\n.ag-theme-balham .ag-column-select-column-readonly.ag-icon-grip,\n.ag-theme-balham .ag-column-select-column-readonly .ag-icon-grip, .ag-theme-balham-dark .ag-column-select-column-readonly.ag-icon-grip,\n.ag-theme-balham-dark .ag-column-select-column-readonly .ag-icon-grip, .ag-theme-balham-auto-dark .ag-column-select-column-readonly.ag-icon-grip,\n.ag-theme-balham-auto-dark .ag-column-select-column-readonly .ag-icon-grip {\n opacity: 0.35;\n}\n.ag-theme-balham .ag-menu-header, .ag-theme-balham-dark .ag-menu-header, .ag-theme-balham-auto-dark .ag-menu-header {\n background-color: var(--ag-header-background-color);\n}\n.ag-theme-balham .ag-overlay-loading-center, .ag-theme-balham-dark .ag-overlay-loading-center, .ag-theme-balham-auto-dark .ag-overlay-loading-center {\n background-color: var(--ag-background-color);\n border: 1px solid var(--ag-border-color);\n color: var(--ag-foreground-color);\n padding: calc(var(--ag-grid-size) * 4);\n}\n.ag-theme-balham .ag-tooltip, .ag-theme-balham-dark .ag-tooltip, .ag-theme-balham-auto-dark .ag-tooltip {\n border: none;\n}\n.ag-theme-balham .ag-panel-title-bar-button-icon, .ag-theme-balham-dark .ag-panel-title-bar-button-icon, .ag-theme-balham-auto-dark .ag-panel-title-bar-button-icon {\n font-size: calc(var(--ag-icon-size) + var(--ag-grid-size));\n}\n.ag-theme-balham .ag-panel, .ag-theme-balham-dark .ag-panel, .ag-theme-balham-auto-dark .ag-panel {\n background-color: var(--ag-header-background-color);\n}\n.ag-theme-balham .ag-chart-data-section,\n.ag-theme-balham .ag-chart-format-section,\n.ag-theme-balham .ag-chart-advanced-settings-section, .ag-theme-balham-dark .ag-chart-data-section,\n.ag-theme-balham-dark .ag-chart-format-section,\n.ag-theme-balham-dark .ag-chart-advanced-settings-section, .ag-theme-balham-auto-dark .ag-chart-data-section,\n.ag-theme-balham-auto-dark .ag-chart-format-section,\n.ag-theme-balham-auto-dark .ag-chart-advanced-settings-section {\n padding-bottom: calc(var(--ag-grid-size) * 0.5);\n}\n.ag-theme-balham .ag-group-toolbar, .ag-theme-balham-dark .ag-group-toolbar, .ag-theme-balham-auto-dark .ag-group-toolbar {\n background-color: var(--ag-subheader-toolbar-background-color);\n}\n.ag-theme-balham .ag-chart-tab, .ag-theme-balham-dark .ag-chart-tab, .ag-theme-balham-auto-dark .ag-chart-tab {\n padding-top: calc(var(--ag-grid-size) * 0.5);\n}\n.ag-theme-balham .ag-charts-format-sub-level-group-item, .ag-theme-balham-dark .ag-charts-format-sub-level-group-item, .ag-theme-balham-auto-dark .ag-charts-format-sub-level-group-item {\n margin-bottom: calc(var(--ag-grid-size) * 1.5);\n}\n.ag-theme-balham .ag-chart-menu-close, .ag-theme-balham-dark .ag-chart-menu-close, .ag-theme-balham-auto-dark .ag-chart-menu-close {\n background: var(--ag-background-color);\n}\n.ag-theme-balham .ag-chart-menu-close:hover .ag-icon, .ag-theme-balham-dark .ag-chart-menu-close:hover .ag-icon, .ag-theme-balham-auto-dark .ag-chart-menu-close:hover .ag-icon {\n border-color: var(--ag-border-color);\n}\n.ag-theme-balham .ag-chart-menu-close .ag-icon, .ag-theme-balham-dark .ag-chart-menu-close .ag-icon, .ag-theme-balham-auto-dark .ag-chart-menu-close .ag-icon {\n background: var(--ag-header-background-color);\n border: 1px solid var(--ag-secondary-border-color);\n border-right: none;\n}\n.ag-theme-balham .ag-filter-active .ag-icon-filter, .ag-theme-balham-dark .ag-filter-active .ag-icon-filter, .ag-theme-balham-auto-dark .ag-filter-active .ag-icon-filter {\n color: var(--ag-balham-active-color);\n}\n');const Ah=()=>{const e=Bu().paging;return{pageNumber:e.pageNumber,pageSize:e.pageSize,totalResultCount:e.totalResultCount,hasPreviousPage:e.hasPreviousPage,hasNextPage:e.hasNextPage,pageFirstRecordOrder:e.pageFirstRecordOrder,pageLastRecordOrder:e.pageLastRecordOrder,isEnabled:e.isEnabled,loadExactPage:t=>e.loadExactPage(t),loadNextPage:()=>e.loadNextPage(),loadPreviousPage:()=>e.loadPreviousPage(),setPageSize:t=>e.setPageSize(t),reset:()=>e.reset()}};St.registerModules([Th]);const xh=e=>{var t;const n=Bu(),i=Ah(),o=d(!1),r=p((()=>new AgGrid$1(n,e)),[]),{columns:a,records:s}=(e=>{const t=null!=e?e:l(Uh).gridInstance,[n,i]=c(t.columns),[o,r]=c((()=>t.refreshRecords())),a=(e,t)=>{const n=t.map((t=>{const n=[];for(const i of e)n.push(t.getValue(i.key));return n}));return n};return m((()=>{w(void 0,void 0,void 0,(function*(){const e=yield t.refreshColumns(),s=a(e,t.refreshRecords());D(e,n)||i(e),D(s,a(e,o))||r(t.records)}))}),[t.shouldRerender]),{columns:n,records:o}})(),[g,u]=c([]),[h,v,f]=ce(n.state),[C]=de(s,0);null===(t=e.current)||void 0===t||t.refreshCells(),m((()=>{var t;o.current&&(r.selectRows(),null===(t=e.current)||void 0===t||t.refreshHeader())}),[n.dataset.getSelectedRecordIds().join("")]),m((()=>{if(0===a.length)return;const e=r.columns;for(const t of e)t.cellRenderer=nh,t.cellEditor=Yu,t.headerComponent=gh,"__checkbox"===t.field&&(t.lockPosition="left",t.headerComponent=uh);u(e)}),[a]),m((()=>{e.current&&(n.loading?e.current.showLoadingOverlay():(e.current.hideOverlay(),setTimeout((()=>{var t;0===n.records.length&&(null===(t=e.current)||void 0===t||t.showNoRowsOverlay())}),0)))}),[n.loading]),m((()=>{e.current&&e.current.ensureIndexVisible(0)}),[i.pageNumber]),m((()=>{const t=e=>{if(n.recordUpdateService.isDirty)return e.preventDefault(),"Unsaved changes!"};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t),e.current&&(h.current.__updatedRecords=n.recordUpdateService.updatedRecords,n.paging.pageSize!==r.initialPageSize&&(h.current.initialPageSize=r.initialPageSize),n.pcfContext.mode.setControlState(v()))}}),[]),m((()=>{const t=t=>w(void 0,void 0,void 0,(function*(){var n,i,o;if((t.ctrlKey||t.metaKey)&&"c"===t.key.toLowerCase()){const t=null===(n=e.current)||void 0===n?void 0:n.getFocusedCell();if(!t)return;const r=null===(i=e.current)||void 0===i?void 0:i.getDisplayedRowAtIndex(t.rowIndex),a=null===(o=e.current)||void 0===o?void 0:o.getCellValue({rowNode:r,colKey:t.column.getColId(),useFormatter:!0});navigator.clipboard.writeText(null!=a?a:"")}}));return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}}),[]),m((()=>{const t=t=>{var n;try{((e,t)=>{let n=e;for(;!n.classList.contains("ag-theme-balham");){if(n.classList.contains(t))return!0;if("HTML"===n.tagName)return!1;if(n=n.parentElement,!n)return!0}return!1})(t.target,"ag-cell")||null===(n=e.current)||void 0===n||n.stopEditing()}catch(e){}};return document.addEventListener("click",t),()=>{document.removeEventListener("click",t)}}),[]);return{agColumns:g,records:C,maxNumberOfVisibleRecords:r.maxNumberOfVisibleRecords,stateRef:h,getTotalColumnsWidth:()=>r.getTotalColumnsWidth(),onGridReady:()=>{o.current=!0,f(Object.assign(Object.assign({},e.current.getState()),{initialPageSize:void 0,__updatedRecords:[]})),r.selectRows()}}},Mh=()=>{const t=Bu().labels,i=Ah(),o=(r=I(),N({root:{display:"flex",flexWrap:"wrap",justifyContent:"center"},pagination:{".ms-CommandBar":{paddingLeft:0,paddingRight:0}},currentPageBtn:{".ms-Button-label":{color:r.semanticColors.bodyText}},pageSizeBtnWrapper:{flexGrow:1,display:"flex",".ms-Button-label":{whiteSpace:"nowrap"},".ms-Button":{height:44}},pageSizeOption:{"& .is-checked":{backgroundColor:r.semanticColors.buttonBackgroundHovered,fontWeight:600}}}));var r;return n("div",Object.assign({className:o.root},{children:[e("div",Object.assign({className:o.pageSizeBtnWrapper},{children:e(W,{text:t["paging-pages"]({start:i.pageFirstRecordOrder,end:i.pageLastRecordOrder,recordcount:i.totalResultCount>=0?i.totalResultCount:"5000+"}),menuProps:{items:[{key:"header",itemType:H.Header,text:"Počet záznamů na stránce"},{key:"divider",itemType:H.Divider},...["25","50","75","100","250"].map((e=>({key:e,text:e,checked:parseInt(e)===i.pageSize,className:o.pageSizeOption,onClick:()=>i.setPageSize(parseInt(e))})))]}})})),e(ge,{className:o.pagination,items:[],farItems:[{key:"FirstPage",iconOnly:!0,iconProps:{iconName:"DoubleChevronLeft"},disabled:!i.hasPreviousPage,onClick:()=>i.reset()},{key:"PreviousPage",iconOnly:!0,iconProps:{iconName:"Back"},disabled:!i.hasPreviousPage,onClick:()=>i.loadPreviousPage()},{key:"CurrentPage",text:`${t["paging-page"]()} ${i.pageNumber.toString()}`,className:o.currentPageBtn,disabled:!0},{key:"NextPage",iconOnly:!0,iconProps:{iconName:"Forward"},disabled:!i.hasNextPage,onClick:()=>i.loadNextPage()}]})]}))},Nh=N({root:{display:"flex",flexDirection:"column",gap:10,alignItems:"center",position:"relative",top:18},icon:{fontSize:46},image:{img:{width:"100px"}}}),Ph=()=>{const t=Bu().labels;return n("div",Object.assign({className:`${Nh.root} TALXIS__grid__empty-records`},{children:[e(F,{className:Nh.icon,iconName:"SearchAndApps"}),e(oe,{children:t.norecordsfound()})]}))},Ih=()=>{const e=Bu(),t=e.labels,n=ju(),[i,o]=c(!1);return{isSaving:i,saveBtnProps:i?{disabled:!0,iconName:"SaveInPropgre",text:t["saving-saving"]()}:n.isDirty?{disabled:!(!n.hasInvalidRecords&&!(null===(r=e.props.parameters.ChangeEditorMode)||void 0===r?void 0:r.error)),iconName:"Save",text:t["saving-save"]()}:{disabled:!0,iconName:"Save",text:t["saving-save"]()},save:()=>w(void 0,void 0,void 0,(function*(){o(!0);const e=yield n.saveAll();return o(!1),e}))};var r},Lh=e=>{var t;const n=he();return pe({selectors:{".ms-Dialog-main":{width:e.width,minHeight:null!==(t=e.minHeight)&&void 0!==t?t:0,height:e.height},"@media(max-width: 768px)":{".ms-Dialog-main":{width:"100vw",height:"100svh",maxWidth:"100vw",maxHeight:"100svh"}},".ms-Dialog-subText":{color:n.palette.black},".ms-Dialog-content":{overflow:"auto",paddingBottom:24,flex:1},".ms-Dialog-content, .ms-Dialog-actions":{paddingLeft:24,paddingRight:24,width:"initial"},".ms-Dialog-actions":{borderTop:`1px solid ${n.semanticColors.bodyDivider}`,paddingBottom:24,paddingTop:24,margin:"initial",flex:"0 0 auto"},".ms-Dialog-inner":{padding:0,display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden"},".ms-Modal-scrollableContent":{overflow:"hidden",display:"flex","> div":{display:"flex",flexDirection:"column"}}}})},Fh=t=>{var n,i,o;return e(ue,Object.assign({},t,{modalProps:Object.assign(Object.assign({},t.modalProps),{allowTouchBodyScroll:!!(null!==(i=null===(n=t.modalProps)||void 0===n?void 0:n.allowTouchBodyScroll)&&void 0!==i?i:matchMedia("(hover: none)").matches)||void 0,className:`${null===(o=t.modalProps)||void 0===o?void 0:o.className} ${Lh(t)}`})},{children:t.children}))};Fh.defaultProps={dialogContentProps:{},modalProps:{className:""}};const _h=t=>{const i=Bu(),o=Object.assign({},t.record),r=(a=I(),N({root:{borderRadius:5,padding:8,paddingTop:10,gap:25,display:"flex",flexDirection:"column",justifyContent:"center",backgroundColor:a.semanticColors.bodyBackground,boxShadow:a.semanticColors.cardShadow,">span":{fontWeight:600},">i":{alignSelf:"center",fontSize:22}},readOnlyGrid:{".ag-theme-balham > div > .ms-MessageBar":{minHeight:0,height:0,".ms-MessageBar-actionsSingleLine":{position:"relative",top:-28}}},gridTitleWrapper:{borderBottom:`1px solid ${a.semanticColors.bodyDivider}`,paddingBottom:10,">span":{fontWeight:600,fontSize:15,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"block",maxWidth:"calc(100% - 130px)"}},editableGrid:{position:"relative",top:-5}}));var a;const s={context:Object.assign(Object.assign({},i.pcfContext),{mode:Object.assign(Object.assign({},i.pcfContext.mode),{setControlState:e=>!1})}),state:{},parameters:{EnableFiltering:{raw:!1},EnablePagination:{raw:!1},EnableSorting:{raw:!1},EnableNavigation:{raw:!1},SelectableRows:{type:"static",raw:"none"},Grid:Object.assign(Object.assign({},i.dataset),{sorting:[],columns:[...o.columns.values()],filtering:Object.assign(Object.assign({},i.dataset.filtering),{getFilter:()=>({conditions:[],filterOperator:0})}),getSelectedRecordIds:()=>[],paging:Object.assign(Object.assign({},i.dataset.paging),{pageSize:1})})}},l=(()=>{const e=[];for(const t of o.columns.values())o.isValid(t.name)||e.push(t);return e})(),d=l.length>0;return n("div",Object.assign({className:r.root},{children:[n("div",Object.assign({className:r.readOnlyGrid},{children:[e("div",Object.assign({className:r.gridTitleWrapper},{children:e(oe,Object.assign({title:o.getOriginalFormattedPrimaryNameValue(),variant:"large"},{children:o.getOriginalFormattedPrimaryNameValue()}))})),e(jh,Object.assign({},s,{parameters:Object.assign(Object.assign({},s.parameters),{ChangeEditorMode:{raw:"read",error:d},Grid:Object.assign(Object.assign({},s.parameters.Grid),{error:d,errorMessage:d?i.labels["saving-validation-error"]({columnDisplayNames:l.map((e=>e.displayName)).join(", ")}):void 0,records:{[o.getRecordId()]:(e=>({getFormattedValue:t=>e.getOriginalFormattedValue(t),getRecordId:()=>e.getRecordId(),getNamedReference:()=>e.getNamedReference(),getValue:t=>e.getOriginalValue(t),save:()=>w(void 0,void 0,void 0,(function*(){yield e.save(),i.pcfContext.factory.requestRender()})),setValue:(t,n)=>{e.clear(),i.pcfContext.factory.requestRender()}}))(o)}})})}))]})),e(me,{iconName:"DoubleChevronDown8"}),e("div",Object.assign({className:r.editableGrid},{children:e(jh,Object.assign({},s,{parameters:Object.assign(Object.assign({},s.parameters),{ChangeEditorMode:{raw:"edit"},EnableEditing:{raw:!0},Grid:Object.assign(Object.assign({},s.parameters.Grid),{records:{[o.getRecordId()]:(e=>({getFormattedValue:t=>e.getFormattedValue(t),getRecordId:()=>e.getRecordId(),getNamedReference:()=>e.getNamedReference(),getValue:t=>e.getValue(t),save:()=>{throw new Error("Should not be called!")},setValue:(t,n)=>{e.setValue(t,n),i.pcfContext.factory.requestRender()}}))(o)}})})}))}))]}))},Oh=t=>{const i=Bu().labels,o=ju(),{isSaving:r,saveBtnProps:a,save:s}=Ih(),l=o.updatedRecords,d=(c=I(),N({root:{".ag-row":{borderBottom:"none"},".ms-Dialog-title":{borderBottom:`1px solid ${c.semanticColors.bodyDivider}`},".ms-Dialog-content":{backgroundColor:"var(--talxis-main-bodyBackgroundMain, #faf9f8)"}},recordGrids:{marginTop:15,display:"flex",flexDirection:"column",gap:15},saveBtn:{".ms-Button-flexContainer":{gap:5,">span":{order:2},">div":{order:1}}}}));var c;return m((()=>{var e;0===l.length&&(null===(e=t.onDismiss)||void 0===e||e.call(t))}),[l]),n(Fh,Object.assign({},t,{width:1e3,minWidth:"80%",modalProps:{isBlocking:!0,className:d.root,layerProps:{eventBubblingEnabled:!0}},dialogContentProps:{showCloseButton:!0,title:i["saving-changepreview-title"]({numOfChanges:l.length})},hidden:!1},{children:[e("div",Object.assign({className:d.recordGrids},{children:l.map((t=>e(_h,{record:t},t.getRecordId())))})),e(j,{children:e(z,Object.assign({className:d.saveBtn,text:a.text,disabled:a.disabled,onClick:()=>s()},{children:r&&e(K,{size:Y.small})}))})]}))},kh=()=>{const i=Bu(),o=i.labels,r=N({root:{'&[data-dirty="false"]':{".ms-MessageBar":{backgroundColor:"transparent",".ms-MessageBar-icon":{display:"none"}}},".ms-MessageBar-icon":{alignItems:"center"},".ms-MessageBar-actionsSingleLine":{marginRight:0},".ms-MessageBar-innerText":{textAlign:"left"},'&[data-dirty="true"]':{cursor:"pointer"}},notificationText:{whiteSpace:"normal"},actions:{height:"100%",".ms-Button":{height:"100%",backgroundColor:"transparent",":last-child":{marginLeft:0}}}}),{isDirty:a,updatedRecords:s,hasInvalidRecords:l,clearAll:d}=ju(),{isSaving:g,saveBtnProps:u,save:h}=Ih(),[p,m]=c(!1);return n(t,{children:[e("div",Object.assign({onClick:()=>{a&&m(!0)},className:r.root,"data-dirty":a},{children:e($,Object.assign({messageBarType:l?Q.error:Q.info,actions:n("div",Object.assign({className:r.actions},{children:[e(W,{text:g?u.text:void 0,disabled:u.disabled,onRenderIcon:g?()=>e(K,{size:Y.small}):void 0,iconProps:{iconName:u.iconName},onClick:e=>{e.stopPropagation(),h()}}),e(W,{disabled:u.disabled&&!l&&!i.props.parameters.ChangeEditorMode,iconProps:{iconName:"Delete"},onClick:e=>{e.stopPropagation(),d()}})]})),isMultiline:!1},{children:a&&e("span",{className:r.notificationText,dangerouslySetInnerHTML:{__html:o["saving-changenotification"]({numOfChanges:s.length})}})}))})),p&&e(Oh,{onDismiss:e=>{"Escape"!==(null==e?void 0:e.code)&&m(!1)}})]})},Gh=e=>P({"0%":{transform:"rotate(0deg)"},"50%":{transform:`rotate(${e}deg)`},"100%":{transform:"rotate(0deg)"}}),zh=P({"0%":{transform:"rotate(-135deg)"},"50%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(225deg)"}}),Vh=P({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Hh=()=>{const t=(n=I(),N({root:{borderWidth:"3px",position:"relative",border:"none",maskImage:"radial-gradient(closest-side, transparent calc(100% - 3px), white calc(100% - 3px) calc(100% - 1px), transparent 100%)",backgroundColor:n.palette.themeLighter,color:n.palette.themePrimary,width:36,height:36,animationName:Vh,animationDuration:"1.5s",animationIterationCount:"infinite",animationTimingFunction:"linear"},tail:{position:"absolute",display:"block",width:"100%",height:"100%",maskImage:"conic-gradient(transparent 105deg, white 105deg)",animationDuration:"1.5s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(0.33,0,0.67,1)",animationName:zh,"::after, ::before":{content:"''",position:"absolute",display:"block",width:"100%",height:"100%",animation:"inherit",backgroundImage:"conic-gradient(currentcolor 135deg, transparent 135deg)"},"::after":{animationName:Gh(225)},"::before":{maskImage:"inherit",animationName:Gh(105)}}}));var n;return e("div",Object.assign({className:t.root},{children:e("div",{className:t.tail})}))},Bh=()=>{var i,o;const r=Bu(),a=Wu(),s=d(),l=d(null),c=I();let{agColumns:g,records:u,maxNumberOfVisibleRecords:h,stateRef:p,getTotalColumnsWidth:m,onGridReady:v}=xh(s);const f=Ah(),C=((e,t,n)=>N({root:{height:"100%",display:"flex",flexDirection:"column","--height-offset":"64px",':has(.ag-body-horizontal-scroll-viewport[style*="height: 0px"])':{"--height-offset":"45px"},"--ag-borders":"none !important",".ag-root-wrapper":{maxHeight:"100%","--ag-input-focus-border-color":"transparent",borderBottom:`1px solid ${e.semanticColors.bodyDivider}`,":has(.ag-overlay:not(.ag-hidden) .TALXIS__grid__empty-records), :has(.ag-center-cols-container:empty)":{minHeight:270}},".ag-root-wrapper.ag-layout-normal":{height:Uu(t,n)},".ag-body":{borderTop:`1px solid ${e.semanticColors.bodyDivider}`},".ag-header-viewport":{backgroundColor:`${e.semanticColors.bodyBackground}`},".ag-center-cols-container":{minWidth:"100%"},".ag-layout-auto-height .ag-center-cols-clipper, .ag-layout-auto-height .ag-center-cols-container, .ag-layout-print .ag-center-cols-clipper, .ag-layout-print .ag-center-cols-container":{minHeight:"42px !important"},".ag-header-cell":{paddingLeft:0,paddingRight:0,backgroundColor:`${e.semanticColors.bodyBackground} !important`},".ag-cell-inline-editing":{overflow:"visible",top:-1,backgroundColor:"transparent",input:{paddingLeft:10},".TALXIS__error-message__root":{display:"none"}},".talxis-cell-align-right":{'[class^="cellContent"]':{justifyContent:"flex-end"},".talxis-cell-text, input":{textAlign:"right"},input:{paddingRight:10}},'.ag-cell-focus:has([data-is-valid="false"])':{border:"1px solid red !important;"},'.TALXIS__combobox__root, [class*="TALXIS__textfield__root"], [class*="TALXIS__tag-picker__root"]':{padding:"0px !important"}}}))(c,h,r.useContainerAsHeight),w=()=>{const e=(()=>{var e,t;const n=null===(e=l.current)||void 0===e?void 0:e.querySelector(".ag-root-wrapper");return null!==(t=null==n?void 0:n.clientWidth)&&void 0!==t?t:0})();e>m()&&s.current.sizeColumnsToFit()};return e("div",Object.assign({ref:l,className:`${C.root} ag-theme-balham`},{children:g.length>0&&n(t,{children:[(r.isEditable&&"edit"!==(null===(i=r.parameters.ChangeEditorMode)||void 0===i?void 0:i.raw)||"read"===(null===(o=r.parameters.ChangeEditorMode)||void 0===o?void 0:o.raw))&&e(kh,{}),r.error&&e($,Object.assign({messageBarType:Q.error},{children:e("span",{dangerouslySetInnerHTML:{__html:r.errorMessage}})})),e(Hu,{animateRows:!0,rowSelection:r.selection.type,noRowsOverlayComponent:Ph,loadingOverlayComponent:Hh,suppressDragLeaveHidesColumns:!0,onColumnMoved:e=>{e.finished&&(e=>{var t;const n=null===(t=e.api.getState().columnOrder)||void 0===t?void 0:t.orderedColIds.filter((e=>!0));n&&r.pcfContext.factory.fireEvent("__updateColumnOrder",n)})(e)},reactiveCustomComponents:!0,onRowSelected:e=>{e.source.includes("api")||"gridInitializing"===e.source||a.toggle(e.data,e.node.isSelected())},onCellDoubleClicked:e=>{r.isNavigationEnabled&&!r.isEditable&&r.openDatasetItem(e.data.getNamedReference())},onCellMouseOver:e=>{var t;"__checkbox"===e.colDef.colId&&(null===(t=s.current)||void 0===t||t.setGridOption("suppressRowClickSelection",!0))},onCellMouseOut:e=>{var t;null===(t=s.current)||void 0===t||t.setGridOption("suppressRowClickSelection",!1)},getRowId:e=>e.data.getRecordId(),onGridReady:e=>{var t;s.current=e.api,r.loading&&(null===(t=s.current)||void 0===t||t.showLoadingOverlay()),w(),v()},initialState:p.current,onStateUpdated:e=>p.current=Object.assign(Object.assign({},p.current),e.state),rowHeight:42,columnDefs:g,rowData:u}),f.isEnabled&&e(Mh,{})]})}))},Wh={"condition-none":{1029:"Žádná",1033:"None"},"condition-equal":{1029:"Je rovno",1033:"Equals"},"condition-notequal":{1029:"Není rovno",1033:"Does not equal"},"condition-greaterthan":{1029:"Větší než",1033:"Greater than"},"condition-lessthan":{1029:"Menší než",1033:"Less than"},"condition-greaterequal":{1029:"Větší než nebo rovno",1033:"Greater than or equal to"},"condition-lessequal":{1029:"Menší než nebo rovno",1033:"Less than or equal to"},"condition-like":{1029:"Obsahuje",1033:"Contains"},"condition-notlike":{1029:"Neobsahuje",1033:"Does not contain"},"condition-null":{1029:"Neobsahuje data",1033:"Does not contain data"},"condition-notnull":{1029:"Obsahuje data",1033:"Contains data"},"condition-beginwith":{1029:"Začíná na",1033:"Begins with"},"condition-doesnotbeginwith":{1029:"Nezačíná na",1033:"Does not begin with"},"condition-endswith":{1029:"Končí na",1033:"Ends with"},"condition-doesnotendwith":{1029:"Nekončí na",1033:"Does not end with"},"condition-yesterday":{1029:"Včera",1033:"Yesterday"},"condition-today":{1029:"Dneska",1033:"Today"},"condition-tomorrow":{1029:"Zítra",1033:"Tomorrow"},"condition-last7days":{1029:"Posledních 7 dnů",1033:"Last 7 days"},"condition-next7days":{1029:"Příštích 7 dnů",1033:"Next 7 days"},"condition-lastweek":{1029:"Minulý týden",1033:"Last week"},"condition-thisweek":{1029:"Tento týden",1033:"This week"},"condition-lastmonth":{1029:"Minulý měsíc",1033:"Last month"},"condition-thismonth":{1029:"Tento měsíc",1033:"This month"},"condition-on":{1029:"V den",1033:"On"},"condition-onorbefore":{1029:"Před dnem (včetně)",1033:"On or before"},"condition-onorafter":{1029:"Po dni (včetně)",1033:"On or after"},"condition-lastyear":{1029:"Poslední rok",1033:"Last year"},"condition-thisyear":{1029:"Tento rok",1033:"This year"},"condition-lastxdays":{1029:"Posledních X dnů",1033:"Last X days"},"condition-nextxdays":{1029:"Příštích X dnů",1033:"Next X days"},"condition-lastxmonths":{1029:"Posledních X měsíců",1033:"Last X months"},"condition-nextxmonths":{1029:"Příštích X měsíců",1033:"Next X months"},"condition-contains":{1029:"Obsahuje",1033:"Contains"},"condition-infiscalperiodandyear":{1029:"Toto fiskální období a rok",1033:"In fiscal period and year"},"condition-above":{1029:"Nad",1033:"Above"},"condition-under":{1029:"Pod",1033:"Under"},"condition-notunder":{1029:"Není pod",1033:"Not under"},"condition-aboveorequal":{1029:"Je nad nebo se rovná",1033:"Above or equal"},"condition-underorequal":{1029:"Je pod nebo se rovná",1033:"Under or equal"},"condition-containvalues":{1029:"Obsahuje hodnoty",1033:"Contain values"},"condition-doesnotcontainvalues":{1029:"Neobsahuje hodnoty",1033:"Does not contain values"},"filtermenu-filterby":{1029:"Filtrovat podle",1033:"Filter By"},"filtermenu-applybutton":{1029:"Použít",1033:"Apply"},"filtermenu-clearbutton":{1029:"Vymazat",1033:"Clear"},"filtersortmenu-sorttext-a-z":{1029:"Seřadit od A do Z",1033:"Sort A to Z"},"filtersortmenu-sorttext-z-a":{1029:"Seřadit od Z do A",1033:"Sort Z to A"},"filtersortmenu-sortdate-a-z":{1029:"Seřadit od nejstarších",1033:"Sort older to newer"},"filtersortmenu-sortdate-z-a":{1029:"Seřadit od nejnovějších",1033:"Sort newer to older"},"filtersortmenu-sortnumber-a-z":{1029:"Seřadit od nejmenších",1033:"Sort smaller to larger"},"filtersortmenu-sortnumber-z-a":{1029:"Seřadit od největších",1033:"Sort larger to smaller"},"filtersortmenu-sorttwooption-a-z":{1029:"Seřadit od nejmenších",1033:"No to Yes"},"filtersortmenu-sorttwooption-z-a":{1029:"Seřadit od největších",1033:"Yes to No"},"filtersortmenu-sorttwooption-joint":{1029:"až",1033:"to"},"filtersortmenu-filterby":{1029:"Filtrovat podle",1033:"Filter by"},"filtersortmenu-clearfilter":{1029:"Vymazat filtr",1033:"Clear filter"},"paging-of":{1029:"z",1033:"of"},"paging-firstpage":{1029:"První strana",1033:"First page"},"paging-previouspage":{1029:"Předchozí",1033:"Previous"},"paging-page":{1029:"Strana",1033:"Page"},"paging-nextpage":{1029:"Další",1033:"Next"},"paging-lastpage":{1029:"Poslední strana",1033:"Last page"},"paging-pages":{1029:"{{start}} - {{end}} z {{recordcount}}",1033:"{{start}} - {{end}} of {{recordcount}}"},norecordsfound:{1029:"Nenašli jsme nic, co by se zde dalo zobrazit.",1033:"No records found."},"saving-changenotification":{1029:"Počet upravených záznamů: <b>{{numOfChanges}}</b>. Klikněte <u>zde</u> pro jejich zobrazení.",1033:"Number of updated records: <b>{{numOfChanges}}</b>. Click <u>here</u> to review."},"saving-save":{1029:"Uložit",1033:"Save"},"saving-saving":{1029:"Ukládání...",1033:"Saving..."},"saving-changepreview-title":{1033:"Number of updated rows: {{numOfChanges}}",1029:"Počet upravených záznamů: {{numOfChanges}}"},"saving-validation-error":{1029:"Pro uložení záznamu je nutné opravit chybové hodnoty následujících sloupců: <b>{{columnDisplayNames}}</b>",1033:"Folowing columns have validation errors: <b>{{columnDisplayNames}}</b>"},"validation-input-value":{1029:"Zadejte hodnotu",1033:"Please enter value."},"validation-email":{1029:"Neplatný formát emailové adresy.",1033:"Invalid Email address format."},"validation-url":{1029:"Neplatný formát webové adresy.",1033:"Invalid URL format."},"validation-date":{1029:"Neplatný formát datumu.",1033:"Invalid Date format."},"validation-number":{1029:"Neplatný formát čísla.",1033:"Invalid Number format."},"no-name":{1029:"(Bez názvu)",1033:"(No Name)"},download:{1029:"Stáhnout",1033:"Download"}},Uh=r(null),jh=t=>{const{labels:n}=C("Grid",t,Wh),i=p((()=>({gridInstance:new Grid$1(t,n)})),[]);return i.gridInstance.updateDependencies(t),e(Uh.Provider,Object.assign({value:i},{children:e(Bh,{})}))};export{jh as Grid,Uh as GridContext};
1
+ import"react/jsx-runtime";import"react";import"../../hooks/useControl.js";import"../../hooks/useControlTheme.js";import"./core/model/Grid.js";export{G as Grid}from"../../Grid-574c3822.js";import"./translations.js";import"./GridContext.js";import"@fluentui/react";import"fast-deep-equal/es6";import"merge-anything";import"liquidjs";import"../../hooks/useControlSizing.js";import"../../utils/Theme.js";import"@fluentui/react-migration-v8-v9";import"tslib";import"./constants.js";import"./filtering/model/Filtering.js";import"./core/model/GridDependency.js";import"./filtering/model/Condition.js";import"./core/enums/ConditionOperator.js";import"./core/enums/DataType.js";import"./validation/model/ColumnValidation.js";import"validator/es/lib/isEmail";import"validator/es/lib/isURL";import"dayjs";import"./filtering/utils/FilteringUtilts.js";import"./filtering/constants.js";import"./paging/model/Paging.js";import"./selection/model/Selection.js";import"./sorting/Sorting.js";import"./core/services/RecordUpdateService/model/RecordUpdateService.js";import"lodash";import"numeral";import"../../utils/Numeral.js";import"./core/model/Metadata.js";import"@ag-grid-community/react";import"./selection/controllers/useSelectionController.js";import"./core/hooks/useGridInstance.js";import"./core/components/AgGrid/styles.js";import"./core/components/AgGrid/controllers/useAgGridController.js";import"./core/controllers/useGridController.js";import"./core/components/Cell/EditableCell/EditableCell.js";import"./core/services/RecordUpdateService/controllers/useRecordUpdateServiceController.js";import"./core/components/Component/Component.js";import"../DateTime/DateTime.js";import"../DateTime/styles.js";import"../DateTime/hooks/useDateTime.js";import"../../hooks/useInputBasedControl.js";import"dayjs/plugin/utc";import"dayjs/plugin/customParseFormat";import"../DateTime/translations.js";import"../DateTime/components/Calendar.js";import"@fluentui/react/lib/Calendar";import"@talxis/react-components";import"../Decimal/Decimal.js";import"../../constants.js";import"../Decimal/components/ArrowButtons.js";import"../Decimal/components/styles.js";import"../Lookup/Lookup.js";import"../Lookup/hooks/useLookup.js";import"../Lookup/translations.js";import"../Lookup/hooks/useFetchXml.js";import"@talxis/client-libraries";import"../Lookup/components/TargetSelector.js";import"@fluentui/react/lib/Text";import"../Lookup/styles.js";import"../Lookup/hooks/useLoadedEntities.js";import"../../hooks/useMouseOver.js";import"../Lookup/components/RecordCreator.js";import"../../hooks/useFocusIn.js";import"../MultiSelectOptionSet/MultiSelectOptionSet.js";import"../OptionSet/OptionSet.js";import"../TextField/TextField.js";import"../TwoOptions/TwoOptions.js";import"../Duration/Duration.js";import"../Duration/translations.js";import"./core/components/Component/controller/useComponentController.js";import"./core/components/Component/model/Component.js";import"./core/components/Cell/ReadOnlyCell/ReadOnlyCell.js";import"./core/components/Cell/ReadOnlyCell/styles.js";import"./core/components/Cell/Commands/Commands.js";import"./core/components/Cell/Commands/useCommands.js";import"./core/components/Cell/Commands/Icon.js";import"external-svg-loader";import"./core/components/Cell/Commands/styles.js";import"./core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/ReadOnlyOptionSet.js";import"./core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/styles.js";import"color";import"./validation/controllers/useRecordValidationController.js";import"./core/hooks/useRerender.js";import"./core/components/ColumnHeader/ColumnHeader.js";import"./filtering/components/FilterCallout/FilterCallout.js";import"./filtering/components/FilterCallout/styles.js";import"./filtering/controller/useColumnFilterConditionController.js";import"./core/hooks/useRefreshCallback.js";import"./filtering/components/FilterCallout/components/ConditionOperator/ConditionOperator.js";import"./filtering/components/FilterCallout/components/ConditionValue/ConditionValue.js";import"./filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.js";import"./sorting/components/SortingContextualMenu/SortingContextualMenu.js";import"./sorting/components/SortingContextualMenu/styles.js";import"./sorting/controllers/useColumnSortingController.js";import"./core/components/ColumnHeader/styles.js";import"./core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.js";import"./core/components/ColumnHeader/components/GlobalCheckbox/styles.js";import"./core/components/AgGrid/model/AgGrid.js";import"@ag-grid-community/core";import"@ag-grid-community/client-side-row-model";import"use-debounce";import"@ag-grid-community/styles/ag-grid.css";import"@ag-grid-community/styles/ag-theme-balham.css";import"./paging/controllers/usePagingController.js";import"./paging/components/Paging/Paging.js";import"./paging/components/Paging/styles.js";import"./core/components/AgGrid/components/EmptyRecordsOverlay/EmptyRecords.js";import"./core/components/AgGrid/components/EmptyRecordsOverlay/styles.js";import"./core/components/Save/hooks/useSave.js";import"./core/components/Save/styles.js";import"./core/components/Dialog/index.js";import"./core/components/Dialog/Constants.js";import"./core/components/Dialog/Styles.js";import"./core/components/Save/components/ChangeEditor/components/RecordGrids/styles.js";import"./core/components/Save/components/ChangeEditor/styles.js";import"./core/components/AgGrid/components/LoadingOverlay/LoadingOverlay.js";import"./core/components/AgGrid/components/LoadingOverlay/styles.js";